@yahoo/uds 3.17.0-beta.2 → 3.17.0-beta.3
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/chunk-37LEXEW4.js +3 -0
- package/dist/chunk-6BNYCBB5.cjs +1 -0
- package/dist/{chunk-HN3QQ5PU.js → chunk-ESES7CXP.js} +1 -1
- package/dist/{chunk-6ZCIS462.cjs → chunk-HSI5A4OJ.cjs} +1 -1
- package/dist/chunk-M5SXYW4O.js +1 -0
- package/dist/chunk-RDF2NPZV.cjs +1 -0
- package/dist/chunk-TJZ4HVAG.cjs +3 -0
- package/dist/chunk-W4KK6R6C.js +1 -0
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +2 -1
- package/dist/experimental/client/SwitchV2.js +1 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/package.json +1 -1
- package/dist/Input-DcjzGTZ7.d.cts +0 -42
- package/dist/Input-aHg6A-xT.d.ts +0 -42
- package/dist/Pressable-BQeh2-VM.d.ts +0 -44
- package/dist/Pressable-WQVmMbYu.d.cts +0 -44
- package/dist/SpringMotionConfig-BaeJprnv.d.cts +0 -45
- package/dist/SpringMotionConfig-C_eNz6on.d.ts +0 -45
- package/dist/VStack-B_2pGe-1.d.cts +0 -112
- package/dist/VStack-Df-pFFBu.d.ts +0 -112
- package/dist/chunk-24HEQ4PT.js +0 -1
- package/dist/chunk-35PHZJZG.cjs +0 -1
- package/dist/chunk-3T5IX3JE.cjs +0 -1
- package/dist/chunk-4JQTWVQH.cjs +0 -1
- package/dist/chunk-4OQKZKM5.js +0 -1
- package/dist/chunk-72JXN7EE.js +0 -1
- package/dist/chunk-A3B3VYP6.cjs +0 -1
- package/dist/chunk-A4MU7ARJ.cjs +0 -1
- package/dist/chunk-AIZ2OTKW.cjs +0 -2
- package/dist/chunk-COGJL3WI.cjs +0 -1
- package/dist/chunk-EF6FLPTH.cjs +0 -1
- package/dist/chunk-FOQRYH73.js +0 -1
- package/dist/chunk-FSOKVNOU.cjs +0 -1
- package/dist/chunk-GP7XCURZ.js +0 -1
- package/dist/chunk-GQ5RXICK.js +0 -2
- package/dist/chunk-HUFHYJ5T.cjs +0 -1
- package/dist/chunk-LLTDVFFX.js +0 -2
- package/dist/chunk-LUIZSLSJ.cjs +0 -1
- package/dist/chunk-MWF3T6YY.cjs +0 -3
- package/dist/chunk-OJB3FVN6.js +0 -3
- package/dist/chunk-ON6FCSMM.js +0 -1
- package/dist/chunk-PN3UA6WB.cjs +0 -1
- package/dist/chunk-Q3GQNZOI.js +0 -1
- package/dist/chunk-QFJTN7H3.js +0 -2
- package/dist/chunk-SQCEFYU5.cjs +0 -3
- package/dist/chunk-TPSHAL7U.js +0 -3
- package/dist/chunk-XMZZKQMQ.js +0 -1
- package/dist/chunk-Z2ZVRADJ.js +0 -2
- package/dist/index-Bxa_xSvC.d.ts +0 -243
- package/dist/index-RAdV2BNG.d.cts +0 -243
- package/dist/types-v_SxufCg.d.cts +0 -10465
- package/dist/types-v_SxufCg.d.ts +0 -10465
@@ -0,0 +1,3 @@
|
|
1
|
+
import{variants as o}from"./chunk-NYAQO47N.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 w=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:{}}}),C=(...o)=>{const r=d(o);return w(r)},v=o=>r=>{if(!o?.variants)return C(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))?C(o,r):o),"");return C(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 N(){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 R=N(),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:w,alignItems:C,alignSelf:v,flex:W,flexDirection:B,flexGrow:E,flexShrink:N,flexWrap:G,justifyContent:k,flexBasis:z,display:H="flex",overflow:V,overflowX:j,overflowY:O,position:A,spacing:D,spacingHorizontal:I,spacingVertical:Y,spacingBottom:X,spacingEnd:$,spacingStart:F,spacingTop:M,offset:J,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:m,borderHorizontalWidth:b,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:w,alignItems:C,alignSelf:v,flex:W,flexDirection:B,flexGrow:E,flexShrink:N,flexWrap:G,justifyContent:k,flexBasis:z,display:H,overflow:V,overflowX:j,overflowY:O,position:A,spacing:D,spacingHorizontal:I,spacingVertical:Y,spacingBottom:X,spacingEnd:$,spacingStart:F,spacingTop:M,offset:J,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?R:"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=N(),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:w,borderBottomColor:C,borderWidth:v,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:N,borderTopWidth:R,borderBottomWidth:G,alignContent:k,alignItems:z,alignSelf:j,flex:O,flexDirection:A,flexGrow:D,flexShrink:I,flexWrap:Y,justifyContent:X,flexBasis:$,display:F,overflow:M,overflowX:J,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},mo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:w,borderBottomColor:C,borderWidth:v,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:N,borderTopWidth:R,borderBottomWidth:G,alignContent:k,alignItems:z,alignSelf:j,flex:O,flexDirection:A,flexGrow:D,flexShrink:I,flexWrap:Y,justifyContent:X,flexBasis:$,display:F,overflow:M,overflowX:J,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?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 A={xs:12,sm:16,md:24,lg:32},D=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:C(n,!d&&"[&_path]:fill-current")}),c=A[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})})}));D.displayName="Icon";var I=u((function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},n=o;if(n.metadata?.isSvgIcon)return g(D,{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,D as Icon,I as IconSlot,j as Text,O as VStack,N as createSlot,v as cva,C as cx,T as getStyles};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var r=require("./chunk-TJZ4HVAG.cjs"),o=require("lodash-es"),e=require("react/jsx-runtime");/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var t=require("react").memo((function({startIcon:o,endIcon:t,iconProps:i,children:a,size:n,isFilled:l,...s}){const d={helperText:r.cx(r.getStyles({inputSizeHelperText:n,inputVariantHelperText:"default",inputVariantValueHelperText:l?"filled":"empty"})),helperIcon:r.getStyles({inputSizeHelperIcon:n,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:l?"filled":"empty"})},c={variant:"outline",...i};return e.jsxs(r.HStack,{gap:"1",alignItems:"center",...s,children:[o&&e.jsx(r.IconSlot,{icon:o,...c,iconProps:i,className:d.helperIcon}),e.jsx("span",{className:d.helperText,children:a}),t&&e.jsx(r.IconSlot,{icon:t,...c,iconProps:i,className:d.helperIcon})]})}));exports.FormLabel=({htmlFor:t,required:i,label:a,children:n,color:l="muted",variant:s="label3",hasError:d=!1,showRequiredAsterisk:c=!1,as:p="label",className:f,...u})=>{const h=a?o.isFunction(a)?a():a:n;return h?e.jsxs(r.Text,{variant:s,color:l,as:p,htmlFor:t,className:r.cx("cursor-[inherit]",f),...u,children:[h,i&&c&&e.jsx(r.Text,{as:"sup",color:d?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null},exports.Image=function({width:o,height:t,src:i,alt:a,contentFit:n,backgroundColor:l,borderRadius:s,borderTopStartRadius:d,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:u,borderStartColor:h,borderEndColor:b,borderTopColor:m,borderBottomColor:x,borderWidth:g,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:C,borderEndWidth:W,borderTopWidth:H,borderBottomWidth:I,alignContent:B,alignItems:w,alignSelf:E,flex:V,flexDirection:v,flexGrow:j,flexShrink:R,flexWrap:y,justifyContent:z,flexBasis:k,display:F,overflow:G,overflowX:q,overflowY:N,position:P,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:Y,spacingEnd:J,spacingStart:L,spacingTop:M,offset:Z,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:$,offsetTop:_,columnGap:rr,rowGap:or,...er}){const tr=r.getStyles({contentFit:n,backgroundColor:l,borderRadius:s,borderTopStartRadius:d,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:u,borderStartColor:h,borderEndColor:b,borderTopColor:m,borderBottomColor:x,borderWidth:g,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:C,borderEndWidth:W,borderTopWidth:H,borderBottomWidth:I,alignContent:B,alignItems:w,alignSelf:E,flex:V,flexDirection:v,flexGrow:j,flexShrink:R,flexWrap:y,justifyContent:z,flexBasis:k,display:F,overflow:G,overflowX:q,overflowY:N,position:P,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:Y,spacingEnd:J,spacingStart:L,spacingTop:M,offset:Z,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:$,offsetTop:_,columnGap:rr,rowGap:or});return e.jsx("img",{src:i,alt:a,className:tr,style:{width:o,height:t},...er})},exports.InputHelpTextMemo=t;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{createSlot as r,getStyles as l}from"./chunk-OJB3FVN6.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as o,jsxs as a}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e((function({className:r,asChild:e,onPress:o,onClick:a=o,backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:V,borderTopWidth:b,borderBottomWidth:S,alignContent:w,alignItems:x,alignSelf:L,flex:B,flexDirection:A,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:N,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:q,spacingTop:F,offset:J,offsetVertical:O,offsetHorizontal:K,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...or},ar){const ir=l({backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:V,borderTopWidth:b,borderBottomWidth:S,alignContent:w,alignItems:x,alignSelf:L,flex:B,flexDirection:A,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:N,spacingVertical:D,spacingBottom:X,spacingEnd:Y,spacingStart:q,spacingTop:F,offset:J,offsetVertical:O,offsetHorizontal:K,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:ar,onClick:a,...or})})),h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:a("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t(o,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t(o,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t(o,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(o,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t(o,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t(o,{children:t("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 t(o,{children:t("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 t(o,{children:t("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"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t(o,{children:t("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 t(o,{children:t("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 t(o,{children:t("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 t(o,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
|
1
|
+
import{createSlot as r,getStyles as l}from"./chunk-37LEXEW4.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as o,jsxs as a}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e((function({className:r,asChild:e,onPress:o,onClick:a=o,backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:L,alignItems:w,alignSelf:x,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:N,spacingVertical:X,spacingBottom:D,spacingEnd:Y,spacingStart:q,spacingTop:F,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...or},ar){const ir=l({backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:L,alignItems:w,alignSelf:x,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:N,spacingVertical:X,spacingBottom:D,spacingEnd:Y,spacingStart:q,spacingTop:F,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:ar,onClick:a,...or})})),h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:a("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t(o,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t(o,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t(o,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(o,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t(o,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t(o,{children:t("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 t(o,{children:t("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 t(o,{children:t("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"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t(o,{children:t("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 t(o,{children:t("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 t(o,{children:t("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 t(o,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
|
2
2
|
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{n as Pressable,d as a,c as e,u as e2,s as o,f as o2,h as t};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var r=require("./chunk-MWF3T6YY.cjs"),e=require("react"),t=require("react/jsx-runtime"),l=r.createSlot(),a=e.forwardRef((function({className:e,asChild:a,onPress:n,onClick:s=n,backgroundColor:o,borderRadius:i,borderTopStartRadius:h,borderTopEndRadius:c,borderBottomStartRadius:d,borderBottomEndRadius:m,borderColor:u,borderStartColor:x,borderEndColor:f,borderTopColor:j,borderBottomColor:g,borderWidth:p,borderVerticalWidth:v,borderHorizontalWidth:z,borderStartWidth:C,borderEndWidth:M,borderTopWidth:F,borderBottomWidth:H,alignContent:b,alignItems:V,alignSelf:S,flex:w,flexDirection:L,flexGrow:A,flexShrink:B,flexWrap:W,justifyContent:T,flexBasis:E,display:_,overflow:R,overflowX:P,overflowY:k,position:I,spacing:G,spacingHorizontal:y,spacingVertical:q,spacingBottom:Y,spacingEnd:N,spacingStart:D,spacingTop:X,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:er,dropShadow:tr,insetShadow:lr,...ar},nr){const sr=r.getStyles({backgroundColor:o,borderRadius:i,borderTopStartRadius:h,borderTopEndRadius:c,borderBottomStartRadius:d,borderBottomEndRadius:m,borderColor:u,borderStartColor:x,borderEndColor:f,borderTopColor:j,borderBottomColor:g,borderWidth:p,borderVerticalWidth:v,borderHorizontalWidth:z,borderStartWidth:C,borderEndWidth:M,borderTopWidth:F,borderBottomWidth:H,alignContent:b,alignItems:V,alignSelf:S,flex:w,flexDirection:L,flexGrow:A,flexShrink:B,flexWrap:W,justifyContent:T,flexBasis:E,display:_,overflow:R,overflowX:P,overflowY:k,position:I,spacing:G,spacingHorizontal:y,spacingVertical:q,spacingBottom:Y,spacingEnd:N,spacingStart:D,spacingTop:X,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:Q,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:er,dropShadow:tr,insetShadow:lr,className:e}),or=a?l:"button";return t.jsx(or,{className:sr,ref:nr,onClick:s,...ar})})),n=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsxs("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t.jsx("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t.jsx("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t.jsx("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t.jsx(t.Fragment,{})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */n.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t.jsx(t.Fragment,{})};s.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var o=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t.jsx(t.Fragment,{})};o.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var i=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t.jsx(t.Fragment,{})};i.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var h=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t.jsx(t.Fragment,{})};h.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t.jsx("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t.jsx("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{})};c.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]},
|
1
|
+
"use strict";var r=require("./chunk-TJZ4HVAG.cjs"),e=require("react"),t=require("react/jsx-runtime"),l=r.createSlot(),a=e.forwardRef((function({className:e,asChild:a,onPress:n,onClick:s=n,backgroundColor:o,borderRadius:i,borderTopStartRadius:h,borderTopEndRadius:c,borderBottomStartRadius:d,borderBottomEndRadius:m,borderColor:u,borderStartColor:x,borderEndColor:f,borderTopColor:j,borderBottomColor:g,borderWidth:p,borderVerticalWidth:v,borderHorizontalWidth:z,borderStartWidth:C,borderEndWidth:M,borderTopWidth:F,borderBottomWidth:H,alignContent:b,alignItems:V,alignSelf:S,flex:w,flexDirection:L,flexGrow:A,flexShrink:B,flexWrap:W,justifyContent:T,flexBasis:E,display:_,overflow:R,overflowX:P,overflowY:k,position:I,spacing:G,spacingHorizontal:y,spacingVertical:q,spacingBottom:N,spacingEnd:D,spacingStart:X,spacingTop:Y,offset:J,offsetVertical:Z,offsetHorizontal:K,offsetBottom:O,offsetEnd:Q,offsetStart:U,offsetTop:$,columnGap:rr,rowGap:er,dropShadow:tr,insetShadow:lr,...ar},nr){const sr=r.getStyles({backgroundColor:o,borderRadius:i,borderTopStartRadius:h,borderTopEndRadius:c,borderBottomStartRadius:d,borderBottomEndRadius:m,borderColor:u,borderStartColor:x,borderEndColor:f,borderTopColor:j,borderBottomColor:g,borderWidth:p,borderVerticalWidth:v,borderHorizontalWidth:z,borderStartWidth:C,borderEndWidth:M,borderTopWidth:F,borderBottomWidth:H,alignContent:b,alignItems:V,alignSelf:S,flex:w,flexDirection:L,flexGrow:A,flexShrink:B,flexWrap:W,justifyContent:T,flexBasis:E,display:_,overflow:R,overflowX:P,overflowY:k,position:I,spacing:G,spacingHorizontal:y,spacingVertical:q,spacingBottom:N,spacingEnd:D,spacingStart:X,spacingTop:Y,offset:J,offsetVertical:Z,offsetHorizontal:K,offsetBottom:O,offsetEnd:Q,offsetStart:U,offsetTop:$,columnGap:rr,rowGap:er,dropShadow:tr,insetShadow:lr,className:e}),or=a?l:"button";return t.jsx(or,{className:sr,ref:nr,onClick:s,...ar})})),n=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsxs("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t.jsx("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t.jsx("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t.jsx("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t.jsx(t.Fragment,{})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */n.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t.jsx(t.Fragment,{})};s.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var o=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t.jsx(t.Fragment,{})};o.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var i=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t.jsx(t.Fragment,{})};i.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var h=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t.jsx(t.Fragment,{children:t.jsx("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t.jsx(t.Fragment,{})};h.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:e})=>{if("outline"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t.jsx("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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"===e)switch(r){case"xs":return t.jsx(t.Fragment,{children:t.jsx("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t.jsx("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{children:t.jsx("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 t.jsx(t.Fragment,{})};c.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]},
|
2
2
|
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Pressable=a,exports.a=o,exports.e=s,exports.e2=h,exports.o=i,exports.o2=c,exports.t=n;
|
@@ -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-37LEXEW4.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:e(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};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var e=require("./chunk-TJZ4HVAG.cjs"),r=require("react"),t=require("react/jsx-runtime"),i={horizontal:"w-full",vertical:""},a=r.forwardRef((function({vertical:a=!1,contentPosition:o="center",className:l,layerClassNames:n,children:s,...c},d){const x=a?"vertical":"horizontal",h=a?e.VStack:e.HStack,m=r.useMemo((()=>({root:e.cx(i[x],l,n?.root),label:e.cx(n?.text),line:n?.line})),[l,x,n?.root,n?.text,n?.line]),f=r.useMemo((()=>"vertical"===x?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0}),[x]),v=()=>t.jsx(e.Box,{flex:"1",className:m.line,style:f});return s?t.jsxs(h,{flex:"1",alignItems:"center",className:m.root,ref:d,...c,children:["start"!==o&&t.jsx(v,{}),t.jsx(e.Box,{flex:"none",children:t.jsx(e.Text,{color:"inherit",variant:"inherit",className:m.label,children:s})}),"end"!==o&&t.jsx(v,{})]}):t.jsx(e.Box,{display:"flex",flex:"none",className:m.root,ref:d,...c,children:t.jsx(v,{})})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */a.displayName="DividerCore";var o=r.forwardRef((function({variant:i="primary",layerClassNames:o,...l},n){const s=r.useMemo((()=>({root:e.cx("inherit"!==i&&e.getStyles({dividerVariantRoot:i}),o?.root),text:e.cx("inherit"!==i?e.getStyles({dividerVariantLabel:i}):void 0,o?.text),line:e.cx("inherit"!==i&&e.getStyles({dividerVariantLine:i}),o?.line)})),[o?.line,o?.root,o?.text,i]);return t.jsx(a,{ref:n,layerClassNames:s,...l})}));o.displayName="DividerInternal",exports.DividerInternal=o;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";var r=require("./chunk-A6QBZQH4.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:R,flexGrow:T,flexShrink:V,flexWrap:j,justifyContent:N,flexBasis:k,display:G="flex",overflow:H,overflowX:z,overflowY:q,position:I,spacing:F,spacingHorizontal:O,spacingVertical:A,spacingBottom:D,spacingEnd:M,spacingStart:X,spacingTop:Y,offset:$,offsetVertical:_,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:J,offsetStart:P,offsetTop:K,columnGap:L,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:R,flexGrow:T,flexShrink:V,flexWrap:j,justifyContent:N,flexBasis:k,display:G,overflow:H,overflowX:z,overflowY:q,position:I,spacing:F,spacingHorizontal:O,spacingVertical:A,spacingBottom:D,spacingEnd:M,spacingStart:X,spacingTop:Y,offset:$,offsetVertical:_,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:J,offsetStart:P,offsetTop:K,columnGap:L,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(),R={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"},T=a.forwardRef((function({className:r,asChild:o,color:e="primary",variant:t="body1",as:n=R[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:T,borderStartWidth:V,borderEndWidth:j,borderTopWidth:N,borderBottomWidth:k,alignContent:G,alignItems:H,alignSelf:z,flex:q,flexDirection:I,flexGrow:F,flexShrink:O,flexWrap:A,justifyContent:D,flexBasis:M,display:X,overflow:Y,overflowX:$,overflowY:_,position:Q,spacing:Z,spacingHorizontal:J,spacingVertical:P,spacingBottom:K,spacingEnd:L,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:T,borderStartWidth:V,borderEndWidth:j,borderTopWidth:N,borderBottomWidth:k,alignContent:G,alignItems:H,alignSelf:z,flex:q,flexDirection:I,flexGrow:F,flexShrink:O,flexWrap:A,justifyContent:D,flexBasis:M,display:X,overflow:Y,overflowX:$,overflowY:_,position:Q,spacing:Z,spacingHorizontal:J,spacingVertical:P,spacingBottom:K,spacingEnd:L,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})}));T.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={xs:12,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=T,exports.VStack=V,exports.createSlot=w,exports.cva=m,exports.cx=b,exports.getStyles=S;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{getStyles as o,cx as r,HStack as t,IconSlot as e,Text as i}from"./chunk-37LEXEW4.js";import{isFunction as a}from"lodash-es";import{jsxs as n,jsx as l}from"react/jsx-runtime";import{memo as d}from"react";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var s=({htmlFor:o,required:t,label:e,children:d,color:s="muted",variant:c="label3",hasError:p=!1,showRequiredAsterisk:f=!1,as:h="label",className:u,...b})=>{const m=e?a(e)?e():e:d;return m?n(i,{variant:c,color:s,as:h,htmlFor:o,className:r("cursor-[inherit]",u),...b,children:[m,t&&f&&l(i,{as:"sup",color:p?"alert":"inherit",variant:"inherit",spacingStart:"0.5","aria-hidden":!0,children:"*"})]}):null};function c({width:r,height:t,src:e,alt:i,contentFit:a,backgroundColor:n,borderRadius:d,borderTopStartRadius:s,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:h,borderStartColor:u,borderEndColor:b,borderTopColor:m,borderBottomColor:g,borderWidth:x,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:W,borderEndWidth:C,borderTopWidth:E,borderBottomWidth:B,alignContent:w,alignItems:v,alignSelf:H,flex:V,flexDirection:I,flexGrow:R,flexShrink:z,flexWrap:y,justifyContent:k,flexBasis:G,display:N,overflow:F,overflowX:j,overflowY:P,position:X,spacing:q,spacingHorizontal:D,spacingVertical:Y,spacingBottom:A,spacingEnd:L,spacingStart:J,spacingTop:K,offset:M,offsetVertical:O,offsetHorizontal:Q,offsetBottom:U,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:ro,...to}){const eo=o({contentFit:a,backgroundColor:n,borderRadius:d,borderTopStartRadius:s,borderTopEndRadius:c,borderBottomStartRadius:p,borderBottomEndRadius:f,borderColor:h,borderStartColor:u,borderEndColor:b,borderTopColor:m,borderBottomColor:g,borderWidth:x,borderVerticalWidth:S,borderHorizontalWidth:T,borderStartWidth:W,borderEndWidth:C,borderTopWidth:E,borderBottomWidth:B,alignContent:w,alignItems:v,alignSelf:H,flex:V,flexDirection:I,flexGrow:R,flexShrink:z,flexWrap:y,justifyContent:k,flexBasis:G,display:N,overflow:F,overflowX:j,overflowY:P,position:X,spacing:q,spacingHorizontal:D,spacingVertical:Y,spacingBottom:A,spacingEnd:L,spacingStart:J,spacingTop:K,offset:M,offsetVertical:O,offsetHorizontal:Q,offsetBottom:U,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:ro});return l("img",{src:e,alt:i,className:eo,style:{width:r,height:t},...to})}var p=d((function({startIcon:i,endIcon:a,iconProps:d,children:s,size:c,isFilled:p,...f}){const h={helperText:r(o({inputSizeHelperText:c,inputVariantHelperText:"default",inputVariantValueHelperText:p?"filled":"empty"})),helperIcon:o({inputSizeHelperIcon:c,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:p?"filled":"empty"})},u={variant:"outline",...d};return n(t,{gap:"1",alignItems:"center",...f,children:[i&&l(e,{icon:i,...u,iconProps:d,className:h.helperIcon}),l("span",{className:h.helperText,children:s}),a&&l(e,{icon:a,...u,iconProps:d,className:h.helperIcon})]})}));export{s as FormLabel,c as Image,p as InputHelpTextMemo};
|
package/dist/client/Menu.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"use client";
|
2
|
-
"use strict";var e=require("../chunk-PN3UA6WB.cjs"),r=require("../chunk-AIZ2OTKW.cjs"),t=require("../chunk-HUFHYJ5T.cjs"),a=require("../chunk-I5TC35WI.cjs"),d=require("../chunk-SQCEFYU5.cjs"),s=require("../chunk-NUEZVMWZ.cjs"),n=require("@ariakit/react/menu"),i=require("react"),c=require("use-sync-external-store/shim/index.js"),u=require("@yahoo/uds/fixtures"),o=require("motion/react"),l=require("react/jsx-runtime"),x=require("@ariakit/react");function m(e){return e&&e.__esModule?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var b=p(i),f=m(c),h={};function _(e){return e}function v(e,r){const t=e.__unstableInternals;return function(e,r){if(!e)throw new Error(r)}(t,"Invalid store"),t[r]}s.__export(h,{Content:()=>k,Divider:()=>N,Item:()=>R,ItemCheckbox:()=>P,Provider:()=>T,Trigger:()=>q,useMenuContext:()=>n.useMenuContext,useMenuStore:()=>n.useMenuStore,useStoreState:()=>x.useStoreState});var{useSyncExternalStore:g}=f.default;function I(e,r=_){const t=b.useCallback((r=>e?function(e,...r){if(e)return v(e,"subscribe")(...r)}(e,null,r):()=>{}),[e]),a=()=>{const t="string"==typeof r?r:null,a="function"==typeof r?r:null,d=null==e?void 0:e.getState();if(a)return a(d);var s,n;if(d&&(t&&(s=d,n=t,"function"==typeof Object.hasOwn?Object.hasOwn(s,n):Object.prototype.hasOwnProperty.call(s,n))))return d[t]};return g(t,a,a)}var y=o.m.create(t.VStack),S=5,w=.97,C={top:{x:0,y:S},bottom:{x:0,y:-5},left:{x:S,y:0},right:{x:-5,y:0}},j=e=>i.useMemo((()=>((e="bottom")=>{const[r="top"]=e?.split("-");return{closed:{...C[r],opacity:0,scale:w},open:{y:0,x:0,opacity:1,scale:1}}})(e)),[e]),k=i.forwardRef((function({gap:e,spacing:r,spacingBottom:t,spacingEnd:a,spacingStart:s,spacingTop:c,gutter:x="1",backgroundColor:m="primary",borderRadius:p="md",borderColor:b,borderWidth:f="thin",overflow:h,dropShadow:_="lg",className:v,sameWidth:g,focusable:S,children:w,portalElement:C,portal:k=!0,disableAutoBorderRadius:N,...M},V){const E=n.useMenuContext(),R=I(E,"open"),P=I(E,"mounted"),A=I(E,"currentPlacement"),O=I(E,"placement"),[T,q]=i.useState(A),[z,B]=i.useState(A);i.useEffect((()=>{O!==z&&B(O)}),[O]),i.useEffect((()=>{A!==z&&B(A)}),[A]),i.useEffect((()=>{P&&z!==T&&q(z)}),[P,z,T]);const H=i.useMemo((()=>R&&P?"open":"closed"),[R,P]),W=i.useMemo((()=>R?_:"none"),[R,_]),D=j(z),F=(({borderRadius:e,spacing:r})=>{if(void 0===r||"0"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))]";case"sm":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))]";case"md":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))]";case"lg":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))]"}if("px"===r||"0.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_2px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))]"}if("1"===r||"1.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_4px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_4px)]"}if("2"===r||"2.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_8px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_8px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_8px)]"}if("3"===r||"3.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))]";case"md":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-md)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-md)_-_6px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))] [&>*:last-child]:rounded-b-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))]"}if("4"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_16px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_16px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))]"}switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))] [&>*:last-child]:rounded-b-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))]"}})({borderRadius:p,spacing:r}),$=i.useMemo((()=>u.spacingMap[x]),[x]);return l.jsx(o.AnimatePresence,{initial:!1,children:l.jsx(n.Menu,{gutter:$,sameWidth:g,focusable:S,store:E,ref:V,portalElement:C,portal:k,...M,render:l.jsx(y,{backgroundColor:m,gap:e,spacing:r,spacingBottom:t,spacingEnd:a,spacingStart:s,spacingTop:c,borderRadius:p,borderColor:b,borderWidth:f,overflow:h,animate:H,variants:D,dropShadow:W,className:d.cx("uds-menu-content","transition-shadow","duration-200","ease-in-out","min-w-60","max-w-lg","max-h-96","overflow-auto","uds-ring","z-10","group",!N&&F,v),children:w})})})})),N=i.forwardRef((function({role:r="separator",contentPosition:t="start",gap:a="4",children:s,spacingVertical:n=(s?"2":"0"),spacingHorizontal:i=(s?"4":"0"),className:c,...u},o){const x={root:d.getStyles({menuDividerVariantRoot:"default",className:c}),text:d.getStyles({menuDividerVariantText:"default"}),line:d.getStyles({menuDividerVariantLine:"default"})};return l.jsx(e.DividerInternal,{ref:o,role:r,variant:"inherit",contentPosition:t,gap:a,spacingVertical:n,spacingHorizontal:i,className:x.root,layerClassNames:x,...u,children:s})}));N.displayName="MenuDivider";var M="uds-menu-item",V={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},E=i.forwardRef((function({spacing:e="0",spacingBottom:a,spacingEnd:s,spacingHorizontal:n="4",spacingStart:c,spacingTop:u,spacingVertical:x="3.5",columnGap:m="2",className:p,children:b,endIcon:f,startIcon:h,hideEndIcon:_,active:v,disabled:g,as:I,rootProps:y,name:S,alignItems:w="center",justifyContent:C="space-between",layerClassNames:j,...k},N){const E=i.Children.count(b)>1,R=(({active:e,disabled:r,className:t})=>d.cx(M,"focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",e&&["[&:not([aria-checked])]:cursor-default"],r&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",t))({active:v,disabled:g,className:p}),P=d.getStyles({className:d.cx(`${M}-content truncate`,j?.text),textAlign:"start",...E&&{columnGap:m,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),A=i.useMemo((()=>({root:d.getStyles({menuSizeRoot:"default",className:d.cx(j?.root,R)}),startIcon:d.getStyles({menuSizeStartIcon:"default",className:j?.startIcon}),endIcon:d.getStyles({menuSizeEndIcon:"default",className:j?.endIcon})})),[j,R]);return l.jsx(d.Box,{asChild:!0,spacing:e,spacingBottom:a,spacingEnd:s,spacingHorizontal:n,spacingStart:c,spacingTop:u,spacingVertical:x,columnGap:m,className:A.root,alignItems:w,justifyContent:C,children:l.jsxs(I,{render:l.jsx(r.Pressable,{ref:N,...k}),name:S??"",disabled:g,...y,children:[l.jsxs(t.HStack,{gap:m,alignItems:"center",width:"full",children:[l.jsx(o.AnimatePresence,{initial:!1,children:h&&l.jsx(o.m.span,{variants:V,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:l.jsx(d.IconSlot,{icon:h,className:A.startIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})}),l.jsx("span",{className:P,children:b})]}),l.jsx(o.AnimatePresence,{initial:!1,mode:"popLayout",children:!_&&f&&l.jsx(o.m.span,{variants:V,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:l.jsx(d.IconSlot,{icon:f,className:A.endIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})})]})})})),R=i.forwardRef((function({active:e,...r},t){const a={root:d.getStyles({menuItemVariantRoot:"default",menuItemVariantActiveRoot:e?"on":"off"}),text:d.getStyles({menuItemVariantText:"default",menuItemVariantActiveText:e?"on":"off"}),startIcon:d.getStyles({menuItemVariantIcon:"default",menuItemVariantActiveIcon:e?"on":"off"})};return l.jsx(E,{ref:t,as:n.MenuItem,active:e,layerClassNames:a,...r})}));R.displayName="MenuItem";var P=i.forwardRef((function({name:e,endIcon:t=r.e,checked:a,defaultChecked:s,className:c,...u},o){const m=e,p=i.useRef(!1),b=n.useMenuContext(),f=x.useStoreState(b);i.useEffect((()=>{!p.current&&void 0!==s&&b&&(b.setValues((e=>({...e,[m]:s}))),p.current=!0)}),[b,s,m]);const h=i.useMemo((()=>{if(void 0!==a)return a;if(f?.items?.length){const e=f?.items.find((e=>e.element?.name===m));if(e?.element)return e.element.checked}const e=f?.values[m];return"boolean"==typeof e?e:s??!1}),[f?.items,f?.values,m,a,s]),_=i.useCallback((e=>{void 0===a&&b?.setValues((r=>({...r,[m]:e.target.checked})))}),[m,b,a]),v={root:d.getStyles({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:h?"on":"off"}),text:d.getStyles({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:h?"on":"off"}),startIcon:d.getStyles({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:h?"on":"off"}),endIcon:d.getStyles({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:h?"on":"off"})};return l.jsx(E,{ref:o,as:n.MenuItemCheckbox,hideEndIcon:!h,endIcon:t,active:h,className:d.cx("uds-menu-item-checkbox",c),layerClassNames:v,rootProps:{name:e,onChange:_,defaultChecked:s,checked:void 0!==a?a:void 0},...u})}));P.displayName="MenuItemCheckbox";var A=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},O=e=>{const[r,t]=i.useState(A);return i.useEffect((()=>{if(e?.explicit)return void t(e.explicit);const r=(e=>{const r=new MutationObserver((r=>{r.some((e=>"attributes"===e.type&&"dir"===e.attributeName))&&e()}));return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r})((()=>{t(A())}));return()=>r.disconnect()}),[e?.explicit]),r},T=function({placement:e="bottom",rtl:r,...t}){const d=O({explicit:r}),s=((e,r)=>{const t=r?.rtl;if("start"===e)return t?"right":"left";if("end"===e)return t?"left":"right";if(e?.includes("-")){const[r,a]=e.split("-");if(!("start"!==r&&"end"!==r||"top"!==a&&"bottom"!==a))return`${"start"===r?t?"right":"left":t?"left":"right"}-${"bottom"===a?"end":"start"}`;if("top"===r||"bottom"===r)return`${r}-${"start"===a?t?"end":"start":t?"start":"end"}`}return e})(e,{rtl:d});return l.jsx(a.SpringMotionConfig,{children:l.jsx(n.MenuProvider,{placement:s,rtl:d,...t})})},q=i.forwardRef((function({asChild:e,className:r,...t},a){const s=i.useRef(null),c=e?l.jsx(d.Box,{ref:s,className:"uds-ring h-fit w-fit"}):void 0,u=i.useCallback((()=>{const e=s.current?.firstChild;e instanceof HTMLElement&&"function"==typeof e.focus&&e.focus()}),[s]);return l.jsx(n.MenuButton,{onFocus:u,onFocusVisible:u,ref:a,render:c,className:d.cx("uds-menu-trigger",r),...t})}));exports.Menu=h;
|
2
|
+
"use strict";var e=require("../chunk-RDF2NPZV.cjs"),r=require("../chunk-HSI5A4OJ.cjs"),t=require("../chunk-TJZ4HVAG.cjs"),a=require("../chunk-I5TC35WI.cjs"),d=require("../chunk-NUEZVMWZ.cjs"),s=require("@ariakit/react/menu"),n=require("react"),i=require("use-sync-external-store/shim/index.js"),c=require("@yahoo/uds/fixtures"),o=require("motion/react"),u=require("react/jsx-runtime"),l=require("@ariakit/react");function x(e){return e&&e.__esModule?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var p=m(n),b=x(i),f={};function h(e){return e}function _(e,r){const t=e.__unstableInternals;return function(e,r){if(!e)throw new Error(r)}(t,"Invalid store"),t[r]}d.__export(f,{Content:()=>j,Divider:()=>k,Item:()=>E,ItemCheckbox:()=>R,Provider:()=>O,Trigger:()=>z,useMenuContext:()=>s.useMenuContext,useMenuStore:()=>s.useMenuStore,useStoreState:()=>l.useStoreState});var{useSyncExternalStore:v}=b.default;function g(e,r=h){const t=p.useCallback((r=>e?function(e,...r){if(e)return _(e,"subscribe")(...r)}(e,null,r):()=>{}),[e]),a=()=>{const t="string"==typeof r?r:null,a="function"==typeof r?r:null,d=null==e?void 0:e.getState();if(a)return a(d);var s,n;if(d&&(t&&(s=d,n=t,"function"==typeof Object.hasOwn?Object.hasOwn(s,n):Object.prototype.hasOwnProperty.call(s,n))))return d[t]};return v(t,a,a)}var I=o.m.create(t.VStack),y=5,S=.97,w={top:{x:0,y:y},bottom:{x:0,y:-5},left:{x:y,y:0},right:{x:-5,y:0}},C=e=>n.useMemo((()=>((e="bottom")=>{const[r="top"]=e?.split("-");return{closed:{...w[r],opacity:0,scale:S},open:{y:0,x:0,opacity:1,scale:1}}})(e)),[e]),j=n.forwardRef((function({gap:e,spacing:r,spacingBottom:a,spacingEnd:d,spacingStart:i,spacingTop:l,gutter:x="1",backgroundColor:m="primary",borderRadius:p="md",borderColor:b,borderWidth:f="thin",overflow:h,dropShadow:_="lg",className:v,sameWidth:y,focusable:S,children:w,portalElement:j,portal:k=!0,disableAutoBorderRadius:N,...M},V){const E=s.useMenuContext(),R=g(E,"open"),P=g(E,"mounted"),A=g(E,"currentPlacement"),O=g(E,"placement"),[z,T]=n.useState(A),[q,B]=n.useState(A);n.useEffect((()=>{O!==q&&B(O)}),[O]),n.useEffect((()=>{A!==q&&B(A)}),[A]),n.useEffect((()=>{P&&q!==z&&T(q)}),[P,q,z]);const D=n.useMemo((()=>R&&P?"open":"closed"),[R,P]),H=n.useMemo((()=>R?_:"none"),[R,_]),W=C(q),$=(({borderRadius:e,spacing:r})=>{if(void 0===r||"0"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))]";case"sm":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))]";case"md":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))]";case"lg":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))]"}if("px"===r||"0.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_2px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))]"}if("1"===r||"1.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_4px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_4px)]"}if("2"===r||"2.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_8px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_8px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_8px)]"}if("3"===r||"3.5"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))]";case"md":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-md)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-md)_-_6px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))] [&>*:last-child]:rounded-b-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))]"}if("4"===r)switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_16px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_16px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))]"}switch(e){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))] [&>*:last-child]:rounded-b-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))]"}})({borderRadius:p,spacing:r}),F=n.useMemo((()=>c.spacingMap[x]),[x]);return u.jsx(o.AnimatePresence,{initial:!1,children:u.jsx(s.Menu,{gutter:F,sameWidth:y,focusable:S,store:E,ref:V,portalElement:j,portal:k,...M,render:u.jsx(I,{backgroundColor:m,gap:e,spacing:r,spacingBottom:a,spacingEnd:d,spacingStart:i,spacingTop:l,borderRadius:p,borderColor:b,borderWidth:f,overflow:h,animate:D,variants:W,dropShadow:H,className:t.cx("uds-menu-content","transition-shadow","duration-200","ease-in-out","min-w-60","max-w-lg","max-h-96","overflow-auto","uds-ring","z-10","group",!N&&$,v),children:w})})})})),k=n.forwardRef((function({role:r="separator",contentPosition:a="start",gap:d="4",children:s,spacingVertical:n=(s?"2":"0"),spacingHorizontal:i=(s?"4":"0"),className:c,...o},l){const x={root:t.getStyles({menuDividerVariantRoot:"default",className:c}),text:t.getStyles({menuDividerVariantText:"default"}),line:t.getStyles({menuDividerVariantLine:"default"})};return u.jsx(e.DividerInternal,{ref:l,role:r,variant:"inherit",contentPosition:a,gap:d,spacingVertical:n,spacingHorizontal:i,className:x.root,layerClassNames:x,...o,children:s})}));k.displayName="MenuDivider";var N="uds-menu-item",M={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},V=n.forwardRef((function({spacing:e="0",spacingBottom:a,spacingEnd:d,spacingHorizontal:s="4",spacingStart:i,spacingTop:c,spacingVertical:l="3.5",columnGap:x="2",className:m,children:p,endIcon:b,startIcon:f,hideEndIcon:h,active:_,disabled:v,as:g,rootProps:I,name:y,alignItems:S="center",justifyContent:w="space-between",layerClassNames:C,...j},k){const V=n.Children.count(p)>1,E=(({active:e,disabled:r,className:a})=>t.cx(N,"focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",e&&["[&:not([aria-checked])]:cursor-default"],r&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",a))({active:_,disabled:v,className:m}),R=t.getStyles({className:t.cx(`${N}-content truncate`,C?.text),textAlign:"start",...V&&{columnGap:x,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),P=n.useMemo((()=>({root:t.getStyles({menuSizeRoot:"default",className:t.cx(C?.root,E)}),startIcon:t.getStyles({menuSizeStartIcon:"default",className:C?.startIcon}),endIcon:t.getStyles({menuSizeEndIcon:"default",className:C?.endIcon})})),[C,E]);return u.jsx(t.Box,{asChild:!0,spacing:e,spacingBottom:a,spacingEnd:d,spacingHorizontal:s,spacingStart:i,spacingTop:c,spacingVertical:l,columnGap:x,className:P.root,alignItems:S,justifyContent:w,children:u.jsxs(g,{render:u.jsx(r.Pressable,{ref:k,...j}),name:y??"",disabled:v,...I,children:[u.jsxs(t.HStack,{gap:x,alignItems:"center",width:"full",children:[u.jsx(o.AnimatePresence,{initial:!1,children:f&&u.jsx(o.m.span,{variants:M,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:u.jsx(t.IconSlot,{icon:f,className:P.startIcon,iconProps:{size:"sm",variant:_?"fill":"outline",color:"current"}})})}),u.jsx("span",{className:R,children:p})]}),u.jsx(o.AnimatePresence,{initial:!1,mode:"popLayout",children:!h&&b&&u.jsx(o.m.span,{variants:M,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:u.jsx(t.IconSlot,{icon:b,className:P.endIcon,iconProps:{size:"sm",variant:_?"fill":"outline",color:"current"}})})})]})})})),E=n.forwardRef((function({active:e,...r},a){const d={root:t.getStyles({menuItemVariantRoot:"default",menuItemVariantActiveRoot:e?"on":"off"}),text:t.getStyles({menuItemVariantText:"default",menuItemVariantActiveText:e?"on":"off"}),startIcon:t.getStyles({menuItemVariantIcon:"default",menuItemVariantActiveIcon:e?"on":"off"})};return u.jsx(V,{ref:a,as:s.MenuItem,active:e,layerClassNames:d,...r})}));E.displayName="MenuItem";var R=n.forwardRef((function({name:e,endIcon:a=r.e,checked:d,defaultChecked:i,className:c,...o},x){const m=e,p=n.useRef(!1),b=s.useMenuContext(),f=l.useStoreState(b);n.useEffect((()=>{!p.current&&void 0!==i&&b&&(b.setValues((e=>({...e,[m]:i}))),p.current=!0)}),[b,i,m]);const h=n.useMemo((()=>{if(void 0!==d)return d;if(f?.items?.length){const e=f?.items.find((e=>e.element?.name===m));if(e?.element)return e.element.checked}const e=f?.values[m];return"boolean"==typeof e?e:i??!1}),[f?.items,f?.values,m,d,i]),_=n.useCallback((e=>{void 0===d&&b?.setValues((r=>({...r,[m]:e.target.checked})))}),[m,b,d]),v={root:t.getStyles({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:h?"on":"off"}),text:t.getStyles({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:h?"on":"off"}),startIcon:t.getStyles({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:h?"on":"off"}),endIcon:t.getStyles({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:h?"on":"off"})};return u.jsx(V,{ref:x,as:s.MenuItemCheckbox,hideEndIcon:!h,endIcon:a,active:h,className:t.cx("uds-menu-item-checkbox",c),layerClassNames:v,rootProps:{name:e,onChange:_,defaultChecked:i,checked:void 0!==d?d:void 0},...o})}));R.displayName="MenuItemCheckbox";var P=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},A=e=>{const[r,t]=n.useState(P);return n.useEffect((()=>{if(e?.explicit)return void t(e.explicit);const r=(e=>{const r=new MutationObserver((r=>{r.some((e=>"attributes"===e.type&&"dir"===e.attributeName))&&e()}));return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r})((()=>{t(P())}));return()=>r.disconnect()}),[e?.explicit]),r},O=function({placement:e="bottom",rtl:r,...t}){const d=A({explicit:r}),n=((e,r)=>{const t=r?.rtl;if("start"===e)return t?"right":"left";if("end"===e)return t?"left":"right";if(e?.includes("-")){const[r,a]=e.split("-");if(!("start"!==r&&"end"!==r||"top"!==a&&"bottom"!==a))return`${"start"===r?t?"right":"left":t?"left":"right"}-${"bottom"===a?"end":"start"}`;if("top"===r||"bottom"===r)return`${r}-${"start"===a?t?"end":"start":t?"start":"end"}`}return e})(e,{rtl:d});return u.jsx(a.SpringMotionConfig,{children:u.jsx(s.MenuProvider,{placement:n,rtl:d,...t})})},z=n.forwardRef((function({asChild:e,className:r,...a},d){const i=n.useRef(null),c=e?u.jsx(t.Box,{ref:i,className:"uds-ring h-fit w-fit"}):void 0,o=n.useCallback((()=>{const e=i.current?.firstChild;e instanceof HTMLElement&&"function"==typeof e.focus&&e.focus()}),[i]);return u.jsx(s.MenuButton,{onFocus:o,onFocusVisible:o,ref:d,render:c,className:t.cx("uds-menu-trigger",r),...a})}));exports.Menu=f;
|
package/dist/client/Menu.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{DividerInternal as r}from"../chunk-
|
3
|
-
var R={};function T(r){return r}function O(r,e){const a=r.__unstableInternals;return function(r,e){if(!r)throw new Error(e)}(a,"Invalid store"),a[e]}u(R,{Content:()=>$,Divider:()=>G,Item:()=>U,ItemCheckbox:()=>J,Provider:()=>q,Trigger:()=>Y,useMenuContext:()=>m,useMenuStore:()=>l,useStoreState:()=>z});var{useSyncExternalStore:P}=k;function A(r,e=T){const a=_.useCallback((e=>r?function(r,...e){if(r)return O(r,"subscribe")(...e)}(r,null,e):()=>{}),[r]),d=()=>{const a="string"==typeof e?e:null,d="function"==typeof e?e:null,t=null==r?void 0:r.getState();if(d)return d(t);var s,i;if(t&&(a&&(s=t,i=a,"function"==typeof Object.hasOwn?Object.hasOwn(s,i):Object.prototype.hasOwnProperty.call(s,i))))return t[a]};return P(a,d,d)}var B=S.create(d),F=5,H=.97,W={top:{x:0,y:F},bottom:{x:0,y:-5},left:{x:F,y:0},right:{x:-5,y:0}},D=r=>w((()=>((r="bottom")=>{const[e="top"]=r?.split("-");return{closed:{...W[e],opacity:0,scale:H},open:{y:0,x:0,opacity:1,scale:1}}})(r)),[r]),$=v((function({gap:r,spacing:e,spacingBottom:a,spacingEnd:d,spacingStart:t,spacingTop:s,gutter:n="1",backgroundColor:c="primary",borderRadius:o="md",borderColor:u,borderWidth:l="thin",overflow:p,dropShadow:b="lg",className:h,sameWidth:f,focusable:_,children:v,portalElement:y,portal:N=!0,disableAutoBorderRadius:C,...k},S){const j=m(),z=A(j,"open"),R=A(j,"mounted"),T=A(j,"currentPlacement"),O=A(j,"placement"),[P,F]=g(T),[H,W]=g(T);I((()=>{O!==H&&W(O)}),[O]),I((()=>{T!==H&&W(T)}),[T]),I((()=>{R&&H!==P&&F(H)}),[R,H,P]);const $=w((()=>z&&R?"open":"closed"),[z,R]),G=w((()=>z?b:"none"),[z,b]),K=D(H),L=(({borderRadius:r,spacing:e})=>{if(void 0===e||"0"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))]";case"sm":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))]";case"md":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))]";case"lg":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))]"}if("px"===e||"0.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_2px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))]"}if("1"===e||"1.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_4px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_4px)]"}if("2"===e||"2.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_8px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_8px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_8px)]"}if("3"===e||"3.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))]";case"md":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-md)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-md)_-_6px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))] [&>*:last-child]:rounded-b-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))]"}if("4"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_16px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_16px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))]"}switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))] [&>*:last-child]:rounded-b-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))]"}})({borderRadius:o,spacing:e}),Q=w((()=>V[n]),[n]);return M(E,{initial:!1,children:M(x,{gutter:Q,sameWidth:f,focusable:_,store:j,ref:S,portalElement:y,portal:N,...k,render:M(B,{backgroundColor:c,gap:r,spacing:e,spacingBottom:a,spacingEnd:d,spacingStart:t,spacingTop:s,borderRadius:o,borderColor:u,borderWidth:l,overflow:p,animate:$,variants:K,dropShadow:G,className:i("uds-menu-content","transition-shadow","duration-200","ease-in-out","min-w-60","max-w-lg","max-h-96","overflow-auto","uds-ring","z-10","group",!C&&L,h),children:v})})})})),G=v((function({role:e="separator",contentPosition:a="start",gap:d="4",children:t,spacingVertical:s=(t?"2":"0"),spacingHorizontal:i=(t?"4":"0"),className:c,...o},u){const l={root:n({menuDividerVariantRoot:"default",className:c}),text:n({menuDividerVariantText:"default"}),line:n({menuDividerVariantLine:"default"})};return M(r,{ref:u,role:e,variant:"inherit",contentPosition:a,gap:d,spacingVertical:s,spacingHorizontal:i,className:l.root,layerClassNames:l,...o,children:t})}));G.displayName="MenuDivider";var K="uds-menu-item",L={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},Q=v((function({spacing:r="0",spacingBottom:a,spacingEnd:d,spacingHorizontal:s="4",spacingStart:u,spacingTop:l,spacingVertical:m="3.5",columnGap:x="2",className:p,children:b,endIcon:h,startIcon:f,hideEndIcon:_,active:v,disabled:g,as:I,rootProps:N,name:C,alignItems:k="center",justifyContent:V="space-between",layerClassNames:z,...R},T){const O=y.count(b)>1,P=(({active:r,disabled:e,className:a})=>i(K,"focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",r&&["[&:not([aria-checked])]:cursor-default"],e&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",a))({active:v,disabled:g,className:p}),A=n({className:i(`${K}-content truncate`,z?.text),textAlign:"start",...O&&{columnGap:x,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),B=w((()=>({root:n({menuSizeRoot:"default",className:i(z?.root,P)}),startIcon:n({menuSizeStartIcon:"default",className:z?.startIcon}),endIcon:n({menuSizeEndIcon:"default",className:z?.endIcon})})),[z,P]);return M(c,{asChild:!0,spacing:r,spacingBottom:a,spacingEnd:d,spacingHorizontal:s,spacingStart:u,spacingTop:l,spacingVertical:m,columnGap:x,className:B.root,alignItems:k,justifyContent:V,children:j(I,{render:M(e,{ref:T,...R}),name:C??"",disabled:g,...N,children:[j(t,{gap:x,alignItems:"center",width:"full",children:[M(E,{initial:!1,children:f&&M(S.span,{variants:L,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:M(o,{icon:f,className:B.startIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})}),M("span",{className:A,children:b})]}),M(E,{initial:!1,mode:"popLayout",children:!_&&h&&M(S.span,{variants:L,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:M(o,{icon:h,className:B.endIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})})]})})})),U=v((function({active:r,...e},a){const d={root:n({menuItemVariantRoot:"default",menuItemVariantActiveRoot:r?"on":"off"}),text:n({menuItemVariantText:"default",menuItemVariantActiveText:r?"on":"off"}),startIcon:n({menuItemVariantIcon:"default",menuItemVariantActiveIcon:r?"on":"off"})};return M(Q,{ref:a,as:p,active:r,layerClassNames:d,...e})}));U.displayName="MenuItem";var J=v((function({name:r,endIcon:e=a,checked:d,defaultChecked:t,className:s,...c},o){const u=r,l=N(!1),x=m(),p=z(x);I((()=>{!l.current&&void 0!==t&&x&&(x.setValues((r=>({...r,[u]:t}))),l.current=!0)}),[x,t,u]);const h=w((()=>{if(void 0!==d)return d;if(p?.items?.length){const r=p?.items.find((r=>r.element?.name===u));if(r?.element)return r.element.checked}const r=p?.values[u];return"boolean"==typeof r?r:t??!1}),[p?.items,p?.values,u,d,t]),f=C((r=>{void 0===d&&x?.setValues((e=>({...e,[u]:r.target.checked})))}),[u,x,d]),_={root:n({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:h?"on":"off"}),text:n({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:h?"on":"off"}),startIcon:n({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:h?"on":"off"}),endIcon:n({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:h?"on":"off"})};return M(Q,{ref:o,as:b,hideEndIcon:!h,endIcon:e,active:h,className:i("uds-menu-item-checkbox",s),layerClassNames:_,rootProps:{name:r,onChange:f,defaultChecked:t,checked:void 0!==d?d:void 0},...c})}));J.displayName="MenuItemCheckbox";var X=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},Z=r=>{const[e,a]=g(X);return I((()=>{if(r?.explicit)return void a(r.explicit);const e=(r=>{const e=new MutationObserver((e=>{e.some((r=>"attributes"===r.type&&"dir"===r.attributeName))&&r()}));return e.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),e})((()=>{a(X())}));return()=>e.disconnect()}),[r?.explicit]),e},q=function({placement:r="bottom",rtl:e,...a}){const d=Z({explicit:e}),t=((r,e)=>{const a=e?.rtl;if("start"===r)return a?"right":"left";if("end"===r)return a?"left":"right";if(r?.includes("-")){const[e,d]=r.split("-");if(!("start"!==e&&"end"!==e||"top"!==d&&"bottom"!==d))return`${"start"===e?a?"right":"left":a?"left":"right"}-${"bottom"===d?"end":"start"}`;if("top"===e||"bottom"===e)return`${e}-${"start"===d?a?"end":"start":a?"start":"end"}`}return r})(r,{rtl:d});return M(s,{children:M(h,{placement:t,rtl:d,...a})})},Y=v((function({asChild:r,className:e,...a},d){const t=N(null),s=r?M(c,{ref:t,className:"uds-ring h-fit w-fit"}):void 0,n=C((()=>{const r=t.current?.firstChild;r instanceof HTMLElement&&"function"==typeof r.focus&&r.focus()}),[t]);return M(f,{onFocus:n,onFocusVisible:n,ref:d,render:s,className:i("uds-menu-trigger",e),...a})}));export{R as Menu};
|
2
|
+
import{DividerInternal as r}from"../chunk-M5SXYW4O.js";import{Pressable as e,e as a}from"../chunk-ESES7CXP.js";import{VStack as d,cx as t,getStyles as s,Box as i,HStack as n,IconSlot as c}from"../chunk-37LEXEW4.js";import{SpringMotionConfig as o}from"../chunk-OGMNTWFW.js";import{__export as u}from"../chunk-S5UKKXRV.js";import{useMenuStore as l,useMenuContext as m,Menu as x,MenuItem as p,MenuItemCheckbox as b,MenuProvider as h,MenuButton as f}from"@ariakit/react/menu";import*as _ from"react";import{forwardRef as v,useState as g,useEffect as I,useMemo as w,Children as y,useRef as C,useCallback as N}from"react";import k from"use-sync-external-store/shim/index.js";import{spacingMap as S}from"@yahoo/uds/fixtures";import{m as V,AnimatePresence as E}from"motion/react";import{jsx as j,jsxs as M}from"react/jsx-runtime";import{useStoreState as z}from"@ariakit/react";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
3
|
+
var R={};function T(r){return r}function P(r,e){const a=r.__unstableInternals;return function(r,e){if(!r)throw new Error(e)}(a,"Invalid store"),a[e]}u(R,{Content:()=>F,Divider:()=>G,Item:()=>U,ItemCheckbox:()=>Y,Provider:()=>Q,Trigger:()=>Z,useMenuContext:()=>m,useMenuStore:()=>l,useStoreState:()=>z});var{useSyncExternalStore:A}=k;function O(r,e=T){const a=_.useCallback((e=>r?function(r,...e){if(r)return P(r,"subscribe")(...e)}(r,null,e):()=>{}),[r]),d=()=>{const a="string"==typeof e?e:null,d="function"==typeof e?e:null,t=null==r?void 0:r.getState();if(d)return d(t);var s,i;if(t&&(a&&(s=t,i=a,"function"==typeof Object.hasOwn?Object.hasOwn(s,i):Object.prototype.hasOwnProperty.call(s,i))))return t[a]};return A(a,d,d)}var W=V.create(d),B=5,D=.97,H={top:{x:0,y:B},bottom:{x:0,y:-5},left:{x:B,y:0},right:{x:-5,y:0}},$=r=>w((()=>((r="bottom")=>{const[e="top"]=r?.split("-");return{closed:{...H[e],opacity:0,scale:D},open:{y:0,x:0,opacity:1,scale:1}}})(r)),[r]),F=v((function({gap:r,spacing:e,spacingBottom:a,spacingEnd:d,spacingStart:s,spacingTop:i,gutter:n="1",backgroundColor:c="primary",borderRadius:o="md",borderColor:u,borderWidth:l="thin",overflow:p,dropShadow:b="lg",className:h,sameWidth:f,focusable:_,children:v,portalElement:y,portal:C=!0,disableAutoBorderRadius:N,...k},V){const M=m(),z=O(M,"open"),R=O(M,"mounted"),T=O(M,"currentPlacement"),P=O(M,"placement"),[A,B]=g(T),[D,H]=g(T);I((()=>{P!==D&&H(P)}),[P]),I((()=>{T!==D&&H(T)}),[T]),I((()=>{R&&D!==A&&B(D)}),[R,D,A]);const F=w((()=>z&&R?"open":"closed"),[z,R]),G=w((()=>z?b:"none"),[z,b]),L=$(D),X=(({borderRadius:r,spacing:e})=>{if(void 0===e||"0"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xs)_-_var(--uds-border-width-thin))]";case"sm":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-sm)_-_var(--uds-border-width-thin))]";case"md":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-md)_-_var(--uds-border-width-thin))]";case"lg":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-lg)_-_var(--uds-border-width-thin))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_var(--uds-border-width-thin))]"}if("px"===e||"0.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_2px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_2px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_2px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_2px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xl)_-_2px))]"}if("1"===e||"1.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_4px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_4px)]"}if("2"===e||"2.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_8px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_8px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_8px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-lg)_-_8px))]";case"xl":return"[&>*:first-child]:rounded-t-[calc(var(--uds-border-radius-xl)_-_8px)] [&>*:last-child]:rounded-b-[calc(var(--uds-border-radius-xl)_-_8px)]"}if("3"===e||"3.5"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-xs)_-_6px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-sm)_-_6px))]";case"md":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-md)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-md)_-_6px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_6px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))] [&>*:last-child]:rounded-b-[min(20px,calc(var(--uds-border-radius-xl)_-_6px))]"}if("4"===e)switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_16px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_16px))]";case"md":return"[&>*:first-child]:rounded-t-[max(4px,calc(var(--uds-border-radius-md)_-_16px))] [&>*:last-child]:rounded-b-[max(4px,calc(var(--uds-border-radius-md)_-_16px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-lg)_-_16px))]";case"xl":return"[&>*:first-child]:rounded-t-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))] [&>*:last-child]:rounded-b-[max(6px,calc(var(--uds-border-radius-xl)_-_16px))]"}switch(r){case"xs":return"[&>*:first-child]:rounded-t-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))] [&>*:last-child]:rounded-b-[max(1px,calc(var(--uds-border-radius-xs)_-_4px))]";case"sm":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-sm)_-_4px))]";case"md":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-md)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-md)_-_4px))]";case"lg":return"[&>*:first-child]:rounded-t-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))] [&>*:last-child]:rounded-b-[max(2px,calc(var(--uds-border-radius-lg)_-_4px))]";case"xl":return"[&>*:first-child]:rounded-t-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))] [&>*:last-child]:rounded-b-[min(18px,calc(var(--uds-border-radius-xl)_-_4px))]"}})({borderRadius:o,spacing:e}),K=w((()=>S[n]),[n]);return j(E,{initial:!1,children:j(x,{gutter:K,sameWidth:f,focusable:_,store:M,ref:V,portalElement:y,portal:C,...k,render:j(W,{backgroundColor:c,gap:r,spacing:e,spacingBottom:a,spacingEnd:d,spacingStart:s,spacingTop:i,borderRadius:o,borderColor:u,borderWidth:l,overflow:p,animate:F,variants:L,dropShadow:G,className:t("uds-menu-content","transition-shadow","duration-200","ease-in-out","min-w-60","max-w-lg","max-h-96","overflow-auto","uds-ring","z-10","group",!N&&X,h),children:v})})})})),G=v((function({role:e="separator",contentPosition:a="start",gap:d="4",children:t,spacingVertical:i=(t?"2":"0"),spacingHorizontal:n=(t?"4":"0"),className:c,...o},u){const l={root:s({menuDividerVariantRoot:"default",className:c}),text:s({menuDividerVariantText:"default"}),line:s({menuDividerVariantLine:"default"})};return j(r,{ref:u,role:e,variant:"inherit",contentPosition:a,gap:d,spacingVertical:i,spacingHorizontal:n,className:l.root,layerClassNames:l,...o,children:t})}));G.displayName="MenuDivider";var L="uds-menu-item",X={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},K=v((function({spacing:r="0",spacingBottom:a,spacingEnd:d,spacingHorizontal:o="4",spacingStart:u,spacingTop:l,spacingVertical:m="3.5",columnGap:x="2",className:p,children:b,endIcon:h,startIcon:f,hideEndIcon:_,active:v,disabled:g,as:I,rootProps:C,name:N,alignItems:k="center",justifyContent:S="space-between",layerClassNames:z,...R},T){const P=y.count(b)>1,A=(({active:r,disabled:e,className:a})=>t(L,"focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",r&&["[&:not([aria-checked])]:cursor-default"],e&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",a))({active:v,disabled:g,className:p}),O=s({className:t(`${L}-content truncate`,z?.text),textAlign:"start",...P&&{columnGap:x,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),W=w((()=>({root:s({menuSizeRoot:"default",className:t(z?.root,A)}),startIcon:s({menuSizeStartIcon:"default",className:z?.startIcon}),endIcon:s({menuSizeEndIcon:"default",className:z?.endIcon})})),[z,A]);return j(i,{asChild:!0,spacing:r,spacingBottom:a,spacingEnd:d,spacingHorizontal:o,spacingStart:u,spacingTop:l,spacingVertical:m,columnGap:x,className:W.root,alignItems:k,justifyContent:S,children:M(I,{render:j(e,{ref:T,...R}),name:N??"",disabled:g,...C,children:[M(n,{gap:x,alignItems:"center",width:"full",children:[j(E,{initial:!1,children:f&&j(V.span,{variants:X,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:j(c,{icon:f,className:W.startIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})}),j("span",{className:O,children:b})]}),j(E,{initial:!1,mode:"popLayout",children:!_&&h&&j(V.span,{variants:X,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:j(c,{icon:h,className:W.endIcon,iconProps:{size:"sm",variant:v?"fill":"outline",color:"current"}})})})]})})})),U=v((function({active:r,...e},a){const d={root:s({menuItemVariantRoot:"default",menuItemVariantActiveRoot:r?"on":"off"}),text:s({menuItemVariantText:"default",menuItemVariantActiveText:r?"on":"off"}),startIcon:s({menuItemVariantIcon:"default",menuItemVariantActiveIcon:r?"on":"off"})};return j(K,{ref:a,as:p,active:r,layerClassNames:d,...e})}));U.displayName="MenuItem";var Y=v((function({name:r,endIcon:e=a,checked:d,defaultChecked:i,className:n,...c},o){const u=r,l=C(!1),x=m(),p=z(x);I((()=>{!l.current&&void 0!==i&&x&&(x.setValues((r=>({...r,[u]:i}))),l.current=!0)}),[x,i,u]);const h=w((()=>{if(void 0!==d)return d;if(p?.items?.length){const r=p?.items.find((r=>r.element?.name===u));if(r?.element)return r.element.checked}const r=p?.values[u];return"boolean"==typeof r?r:i??!1}),[p?.items,p?.values,u,d,i]),f=N((r=>{void 0===d&&x?.setValues((e=>({...e,[u]:r.target.checked})))}),[u,x,d]),_={root:s({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:h?"on":"off"}),text:s({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:h?"on":"off"}),startIcon:s({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:h?"on":"off"}),endIcon:s({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:h?"on":"off"})};return j(K,{ref:o,as:b,hideEndIcon:!h,endIcon:e,active:h,className:t("uds-menu-item-checkbox",n),layerClassNames:_,rootProps:{name:r,onChange:f,defaultChecked:i,checked:void 0!==d?d:void 0},...c})}));Y.displayName="MenuItemCheckbox";var q=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},J=r=>{const[e,a]=g(q);return I((()=>{if(r?.explicit)return void a(r.explicit);const e=(r=>{const e=new MutationObserver((e=>{e.some((r=>"attributes"===r.type&&"dir"===r.attributeName))&&r()}));return e.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),e})((()=>{a(q())}));return()=>e.disconnect()}),[r?.explicit]),e},Q=function({placement:r="bottom",rtl:e,...a}){const d=J({explicit:e}),t=((r,e)=>{const a=e?.rtl;if("start"===r)return a?"right":"left";if("end"===r)return a?"left":"right";if(r?.includes("-")){const[e,d]=r.split("-");if(!("start"!==e&&"end"!==e||"top"!==d&&"bottom"!==d))return`${"start"===e?a?"right":"left":a?"left":"right"}-${"bottom"===d?"end":"start"}`;if("top"===e||"bottom"===e)return`${e}-${"start"===d?a?"end":"start":a?"start":"end"}`}return r})(r,{rtl:d});return j(o,{children:j(h,{placement:t,rtl:d,...a})})},Z=v((function({asChild:r,className:e,...a},d){const s=C(null),n=r?j(i,{ref:s,className:"uds-ring h-fit w-fit"}):void 0,c=N((()=>{const r=s.current?.firstChild;r instanceof HTMLElement&&"function"==typeof r.focus&&r.focus()}),[s]);return j(f,{onFocus:c,onFocusVisible:c,ref:d,render:n,className:t("uds-menu-trigger",e),...a})}));export{R as Menu};
|
package/dist/client/index.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"use client";
|
2
|
-
"use strict";var e=require("../chunk-A3B3VYP6.cjs"),t=require("../chunk-AIZ2OTKW.cjs"),a=require("../chunk-HUFHYJ5T.cjs"),n=require("../chunk-LUIZSLSJ.cjs"),i=require("../chunk-I5TC35WI.cjs"),o=require("../chunk-SQCEFYU5.cjs"),s=require("../chunk-EIQXT4KY.cjs"),r=require("../chunk-4NZKRK55.cjs"),l=require("react"),c=require("react/jsx-runtime"),d=require("@yahoo/uds/fixtures"),u=require("motion/react"),p=require("lodash-es"),h=require("motion/react-m"),m=require("@yahoo/uds/client/Menu");function x(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var f=x(h),g={first:e=>e[0]||"",last:e=>e[e.length-1]||"",firstAndLast:e=>1===e.length?e[0]:`${e[0]}${e[e.length-1]}`,firstTwo:e=>e.slice(0,2).join(""),firstThree:e=>e.slice(0,3).join(""),firstOfEach:e=>e.join("")},b=(e,t="firstAndLast")=>{if(!e)return"";const a=e.trim().split(/\s+/).map((e=>e[0].toUpperCase()));return"function"==typeof t?t(e):g[t](a)},y=(e="md")=>o.getStyles({avatarSizeRoot:e,flexShrink:"0",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"visible",className:"truncate"}),v=e=>e?{height:e,width:e}:{},S="primary",C="md",I={primary:t.e2,secondary:t.t},N=({size:e=C,variant:t=S,customSize:a,icon:n,className:i})=>{const s=l.useMemo((()=>v(a)),[a]),r=l.useMemo((()=>o.cx(y(e),o.getStyles({avatarIconVariantRoot:t,overflow:"hidden"}),i)),[i,e,t]),d=l.useMemo((()=>o.getStyles({width:"full",height:"full",flexShrink:"0",overflow:"hidden",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center"})),[]),u=l.useMemo((()=>({...s,boxSizing:"content-box"})),[s]),p=l.useMemo((()=>n??I[t??"primary"]),[n,t]),h=l.useMemo((()=>o.getStyles({avatarSizeIcon:e})),[e]);return c.jsx(o.Box,{className:r,style:s,children:c.jsx(o.Box,{className:d,style:u,children:c.jsx(o.Icon,{name:p,variant:"fill",color:"current",className:h,"data-testid":"avatar-icon"})})})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */N.displayName="AvatarIcon";var j=({size:e=C,variant:t=S,name:a,initials:n,customSize:i,abbreviationStrategy:s,className:r})=>{const d=l.useMemo((()=>o.cx(y(e),o.getStyles({avatarTextVariantRoot:t,overflow:"hidden"}),"truncate",r)),[r,e,t]),u=l.useMemo((()=>o.getStyles({width:"full",height:"full",flexShrink:"0",overflow:"hidden",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",className:"truncate"})),[]),p=l.useMemo((()=>v(i)),[i]),h=l.useMemo((()=>({...p,boxSizing:"content-box"})),[p]);return c.jsx(o.Box,{className:d,style:p,children:c.jsx(o.Text,{color:"inherit",variant:"inherit",className:u,style:h,"data-testid":"avatar-text",children:n||b(a,s)})})};j.displayName="AvatarText";var k=({size:t=C,variant:a=S,src:n,srcSet:i,customSize:s,alt:r,imageProps:d,abbreviationStrategy:u,fallback:p,className:h})=>{const[m,x]=l.useState("loading");l.useEffect((()=>{let e=!0;if(n||i){const t=new Image;t.onload=()=>{e&&x("loaded")},t.onerror=()=>{e&&x("error")},n&&(t.src=n),i&&(t.srcset=i)}else x("error");return()=>{e=!1}}),[n,i]);const f=l.useMemo((()=>o.cx(y(t),o.getStyles({avatarImageVariantRoot:a,overflow:"hidden"}),h)),[h,t,a]),g=l.useMemo((()=>o.getStyles({width:"full",height:"full",flexShrink:"0",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",contentFit:"cover"})),[]),b=l.useMemo((()=>v(s)),[s]),I=l.useMemo((()=>({...b,boxSizing:"content-box"})),[b]);if("loaded"===m)return c.jsx(o.Box,{className:f,style:b,children:c.jsx(e.Image,{src:n,srcSet:i,alt:r,className:g,style:I,...d})});const k={size:t,customSize:s,variant:a};return p||r?c.jsx(j,{name:r,initials:p,abbreviationStrategy:u,...k}):c.jsx(N,{...k})};k.displayName="AvatarImage";var w=e=>c.jsx(k,{...e});w.displayName="Avatar";var V=l.forwardRef((function({variant:e="primary",size:t="md",minWidth:n,maxWidth:i=200,startIcon:s,endIcon:r,backgroundColor:d,color:u,iconColor:p,borderColor:h,children:m,className:x,...f},g){const b=o.getStyles({badgeSizeRoot:t,badgeVariantRoot:e,className:o.cx(["uds-badge","uds-badge-variant","uds-badge-size",x])}),y=o.getStyles({badgeVariantIcon:e,badgeSizeIcon:t,className:o.cx(["uds-badge-iconSize","uds-badge-iconColor"])}),v=l.useMemo((()=>({...n?{minWidth:`${n}px`}:{},..."full"===i?{}:{maxWidth:`${i}px`},...d?{backgroundColor:d}:{},...h?{borderColor:h}:{},...u?{color:u}:{}})),[d,h,u,i,n]),S=l.useMemo((()=>({variant:"fill",style:{...p?{color:p}:{}}})),[p]);return c.jsxs(a.HStack,{ref:g,gap:"2",display:"inline-flex",alignItems:"center",className:b,style:v,...f,children:[s&&c.jsx(o.IconSlot,{icon:s,iconProps:S,"data-testid":"start-icon",className:y}),c.jsx("span",{className:"flex-1 truncate whitespace-nowrap text-center",children:m}),r&&c.jsx(o.IconSlot,{icon:r,iconProps:S,"data-testid":"end-icon",className:y})]})}));V.displayName="Badge";var M={scale:.7,opacity:0},R={scale:[.7,.7,1],opacity:[0,0,1],transition:{times:[0,.5,1]}},z={icon:R,hide:M,loading:M},T={loading:R,hide:M,icon:M},P=`var(${r.BUTTON_CSS_VAR_MAP.columnGap})`,A=`var(${r.BUTTON_CSS_VAR_MAP.iconSize})`,B={rest:{scale:`var(${r.BUTTON_CSS_VAR_MAP.effects.scale.rest})`},hover:{scale:`var(${r.BUTTON_CSS_VAR_MAP.effects.scale.hover})`},pressed:{scale:`var(${r.BUTTON_CSS_VAR_MAP.effects.scale.pressed})`},withoutIcon:{columnGap:"0px"},withIcon:{columnGap:P}},E={hide:{width:"0px",opacity:0,display:"none"},loading:{width:A,display:"flex",opacity:1},icon:{width:A,display:"flex",opacity:1}},q=l.forwardRef((function({variant:e,size:a,startIcon:n,endIcon:r,iconVariant:p,loading:h,disableEffects:m,children:x,asChild:f,type:g="button",className:b,width:y,...v},S){const C=l.useRef(null);l.useImperativeHandle(S,(()=>C.current));const I=l.useMemo((()=>o.createSlot()),[]),N=l.useMemo((()=>u.m.create(I)),[I]),j=r?"icon":"hide",k=(({startIcon:e,endIcon:t,loading:a})=>e||t||a?"withIcon":"withoutIcon")({startIcon:n,endIcon:r,loading:h}),w=(({loading:e,startIcon:t})=>e?"loading":t?"icon":"hide")({loading:h,startIcon:n}),{palette:V,variant:M}=l.useMemo((()=>s.parseDeprecatedButtonPaletteVariant({flatVariant:e})),[e]),R=l.useMemo((()=>({button:o.getStyles({width:y,buttonSize:a,buttonVariant:M,buttonPalette:V,className:o.cx("uds-button","uds-ring","uds-hit-target",h&&"uds-button-loading",m&&"uds-button-without-effects","withIcon"===k&&"uds-button-with-gap",b)}),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,a,M,V,b,h,m,k]),P=u.useReducedMotion()?"smooth":"subtle",A=l.useMemo((()=>c.jsx(u.m.span,{className:R.iconContainer,initial:!1,variants:E,animate:w,children:c.jsxs(u.AnimatePresence,{initial:!1,mode:"popLayout",children:[h&&c.jsx(u.m.span,{variants:T,initial:"hide",animate:"loading",exit:"hide",children:c.jsx(o.Icon,{size:d.buttonIconSvgSize,name:t.o2,variant:p,color:"current",className:R.loading})},"loading"),n&&!h&&c.jsx(u.m.span,{variants:z,initial:"hide",animate:"icon",exit:"hide",children:c.jsx(o.IconSlot,{className:R.start,icon:n,iconProps:{size:d.buttonIconSvgSize,variant:p,color:"current"}})})]})})),[R.iconContainer,R.loading,R.start,w,h,p,n]),q=l.useMemo((()=>c.jsx(u.m.span,{className:R.iconContainer,initial:!1,variants:E,animate:j,children:c.jsx(u.AnimatePresence,{initial:!1,mode:"popLayout",children:r&&c.jsx(u.m.span,{variants:z,initial:"hide",animate:"icon",exit:"hide",children:c.jsx(o.IconSlot,{className:R.end,icon:r,iconProps:{size:d.buttonIconSvgSize,variant:p,color:"current"}})})})})),[R.iconContainer,R.end,r,j,p]),O=l.useMemo((()=>m?{...B,rest:{},hover:{},pressed:{}}:B),[m]);return f&&l.isValidElement(x)?c.jsx(i.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:P,children:c.jsx(N,{type:g,className:R.button,initial:["hide",k],animate:k,variants:O,whileHover:"hover",whileTap:"pressed",...v,children:l.cloneElement(x,x.props,c.jsxs(c.Fragment,{children:[A,c.jsx("span",{className:R.content,children:x.props.children}),q]}))})}):c.jsx(i.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:P,children:c.jsxs(u.m.button,{ref:C,type:g,className:R.button,initial:["hide",k],animate:k,variants:O,whileHover:"hover",whileTap:"pressed",...v,children:[A,c.jsx("span",{className:R.content,children:x}),q]})})})),O={primary:"alert",secondary:"alert-secondary"},L=e=>"indeterminate"===e,H=e=>L(e)?t.o:t.e,F=u.m.create(o.Box),$={layoutVariant:"smooth",layoutSpeed:"3"},_={layoutVariant:"veryBouncy",layoutSpeed:"4"},W=l.forwardRef((function({id:e,checked:t,defaultChecked:a,onChange:s,label:r,labelPosition:d="start",variant:p="primary",size:h="md",reduceMotion:m,disabled:x,required:f,hasError:g,className:b,layerClassNames:y,...v},S){const C=l.useId(),I=e??`uds-input-${C}`,N=l.useRef(null),j=void 0!==t,[k,w]=l.useState(j?t:a),[V,M]=l.useState(!1),[R,z]=l.useState(!1),T=l.useMemo((()=>g?O[p]:p),[g,p]),P=!x&&V,A=!x&&R,B=l.useMemo((()=>A?.9:P?1.1:1),[A,P]),E=l.useMemo((()=>k?A?"opacity-55":"opacity-100":"opacity-0"),[k,A]),q=l.useMemo((()=>({scale:B})),[B]),W=l.useMemo((()=>R?_:$),[R]),D=l.useCallback((e=>{s?.(e),j||w(e.target.checked)}),[j,s]),U=l.useCallback((()=>{M(!0)}),[]),G=l.useCallback((()=>{M(!1)}),[]),K=l.useCallback((()=>{z(!0)}),[]),X=l.useCallback((()=>{z(!1)}),[]),Y=e=>{N.current&&(N.current.indeterminate=L(e))},Z=m?"always":"user",J=u.useReducedMotion()||m?"duration-0":"duration-120";l.useEffect((()=>{j&&w(t)}),[t,j]),l.useEffect((()=>{Y(k)}),[k]);const Q=L(k)?"indeterminate":k?"checked":"unchecked",ee={root:o.getStyles({checkboxSizeRoot:h,checkboxVariantRoot:T,checkboxVariantValueRoot:Q,display:"flex",flexDirection:"start"===d?"row":"row-reverse",alignItems:"center",className:o.cx({"cursor-pointer":!x,"cursor-default":x,"opacity-50":x},b,y?.root)}),checkbox:o.getStyles({checkboxSizeCheckbox:h,checkboxVariantCheckbox:T,checkboxVariantValueCheckbox:Q,className:o.cx("border","rounded-[4px]","uds-ring","uds-ring-within",J,"transition-[background-color,border-color,box-shadow]",y?.checkbox)}),check:o.getStyles({checkboxVariantCheckboxIcon:T,checkboxVariantValueCheckboxIcon:Q,className:o.cx("pointer-events-none",E,J,"transition-opacity")}),htmlCheckbox:o.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:o.cx("start"===d?"text-start":"text-end",y?.label)},te=r?u.m.label:u.m.div;return c.jsx(i.SpringMotionConfig,{reducedMotion:Z,...W,children:c.jsxs(te,{className:ee.root,"data-testid":"container",onHoverStart:U,onHoverEnd:G,onTapStart:K,onTap:X,onTapCancel:X,tabIndex:-1,children:[c.jsxs(F,{position:"relative",className:ee.checkbox,alignItems:"center",justifyContent:"center",flex:"none",animate:q,children:[c.jsx("input",{type:"checkbox",...v,ref:e=>{N.current=e,Y(k),"function"==typeof S?S(e):null!==S&&(S.current=e)},id:I,disabled:x,required:f,"aria-invalid":g,checked:j?!L(k)&&k:void 0,defaultChecked:j?void 0:a,onChange:D,className:ee.htmlCheckbox}),c.jsx(o.Icon,{name:H(k),size:"sm",className:ee.check})]}),r&&c.jsx(n.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:f,label:r,className:ee.label})]})})}));W.displayName="Checkbox";var D="primary",U=l.forwardRef((function({size:e="md",minWidth:t,maxWidth:n=200,startIcon:i,endIcon:s,as:r="div",reduceMotion:d,disabled:p=!1,className:h,layerClassNames:m,children:x,...f},g){const b=u.useReducedMotion()||d?"duration-0":"duration-120",y=l.useMemo((()=>({root:o.getStyles({chipSizeRoot:e,className:o.cx({"pointer-events-none":p,"cursor-default":p,"opacity-50":p},"focus-visible:-outline-offset-2","uds-ring",b,"transition-[background-color,outline-color,box-shadow]",m?.root,h)}),icon:o.getStyles({chipSizeIcon:e,className:m?.icon})})),[h,b,p,m?.icon,m?.root,e]);return c.jsx(a.HStack,{asChild:!0,ref:g,display:"inline-flex",alignItems:"center",style:{maxWidth:`${n}px`,...t?{minWidth:`${t}px`}:{}},className:y.root,...f,children:c.jsxs(r,{disabled:p,children:[i&&c.jsx(o.IconSlot,{icon:i,iconProps:{variant:"fill",className:y.icon},"data-testid":"start-icon"}),c.jsx(o.Text,{as:"span",className:"truncate whitespace-nowrap",flex:"1",textAlign:"center",color:"current",variant:"inherit",children:x}),s&&c.jsx(o.IconSlot,{icon:s,iconProps:{variant:"fill",className:y.icon},"data-testid":"end-icon"})]})})}));U.displayName="ChipBase";var G=l.forwardRef((function({variant:e=D,...t},a){const n=l.useMemo((()=>({root:o.getStyles({chipLinkVariantRoot:e}),icon:o.getStyles({chipLinkVariantIcon:e})})),[e]);return c.jsx(U,{as:"button",ref:a,variant:e,layerClassNames:n,...t})}));G.displayName="ChipButton";var K=l.forwardRef((function({dismissButtonAriaLabel:e,onDismiss:a,dismissIcon:n,variant:i=D,disabled:s,...r},d){const u=l.useMemo((()=>({root:o.getStyles({chipDismissibleVariantRoot:i}),icon:o.getStyles({chipDismissibleVariantIcon:i})})),[i]),p=l.useCallback((e=>{e.stopPropagation(),a?.()}),[a]),h={icon:o.cx("uds-chip-dismissible-button","uds-hit-target")};return c.jsx(U,{ref:d,variant:i,disabled:s,tabIndex:-1,endIcon:a=>c.jsx(t.Pressable,{"aria-label":e,className:h.icon,onClick:p,disabled:s,children:c.jsx(o.IconSlot,{icon:n??t.a,iconProps:a,"data-testid":"dismiss-icon"})}),layerClassNames:u,...r})}));K.displayName="ChipDismissible";var X=l.forwardRef((function({variant:e=D,href:t,disabled:a,...n},i){const s=l.useMemo((()=>({root:o.getStyles({chipLinkVariantRoot:e}),icon:o.getStyles({chipLinkVariantIcon:e})})),[e]);return c.jsx(U,{as:"a",ref:i,variant:e,disabled:a,layerClassNames:s,...{...n,href:a?void 0:t}})}));X.displayName="ChipLink";var Y=l.forwardRef((function({isToggled:e=!1,onToggle:t,onClick:a,variant:n=D,...i},s){const r=l.useMemo((()=>({root:o.getStyles({chipToggleVariantRoot:n,chipToggleVariantActiveRoot:e?"on":"off"}),icon:o.getStyles({chipToggleVariantIcon:n})})),[e,n]),d=l.useCallback((n=>{t?.(!e),a?.(n)}),[e,a,t]);return c.jsx(U,{ref:s,as:"button",variant:n,onClick:d,"aria-pressed":e,layerClassNames:r,...i})}));Y.displayName="ChipToggle";var Z=l.forwardRef((function({onClick:e,href:t,linkProps:a,onDismiss:n,onToggle:i,isToggled:o,...s},r){return n?c.jsx(K,{ref:r,onDismiss:n,...s}):i?c.jsx(Y,{ref:r,onToggle:i,isToggled:o,...s}):t?c.jsx(X,{ref:r,href:t,...s,...a}):c.jsx(G,{ref:r,onClick:e,...s})}));Z.displayName="Chip";var J=l.forwardRef((function({variant:e,size:a,iconVariant:n,loading:r,disableEffects:p,name:h,type:m="button",htmlName:x,className:f,children:g,...b},y){const v=l.useRef(null);l.useImperativeHandle(y,(()=>v.current));const{palette:S,variant:C}=s.parseDeprecatedButtonPaletteVariant({flatVariant:e}),I=l.useMemo((()=>({button:o.getStyles({buttonVariant:C,buttonPalette:S,iconButtonSize:a,className:o.cx("uds-icon-button","uds-button","uds-ring","uds-hit-target",r&&"uds-button-loading",p&&"uds-button-without-effects",f)}),loading:"uds-button-icon start-content animate-spin",icon:"uds-button-icon start-content"})),[S,C,f,p,a,r]),N=u.useReducedMotion(),j=l.useMemo((()=>N?"smooth":"subtle"),[N]),k=l.useMemo((()=>{const{rest:e,hover:t,pressed:a}=B;return p?{rest:{},hover:{},pressed:{}}:{rest:e,hover:t,pressed:a}}),[p]);return c.jsx(i.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:j,reducedMotion:p?"always":"user",children:c.jsx(u.m.button,{ref:v,type:m,className:I.button,initial:"icon",variants:k,whileHover:"hover",whileTap:"pressed",name:x,...b,children:c.jsxs(u.AnimatePresence,{initial:!1,mode:"popLayout",children:[r&&c.jsx(u.m.span,{variants:T,initial:"loading",animate:"loading",exit:"hide",children:c.jsx(o.Icon,{size:d.buttonIconSvgSize,name:t.o2,variant:n,color:"current",className:I.loading})},"loading"),h&&!r&&c.jsx(u.m.span,{variants:z,initial:"icon",animate:"icon",exit:"hide",children:g||c.jsx(o.Icon,{size:d.buttonIconSvgSize,name:h,variant:n,color:"current",className:I.icon})},h.name)]})})})})),Q=({children:e,reduceMotion:t,layoutVariant:a})=>{const n=l.useRef(null),[o,s]=l.useState("auto");return l.useEffect((()=>{if(n.current){const e=new ResizeObserver((e=>{s(e[0].contentRect.height)}));return e.observe(n.current),()=>{e.disconnect()}}}),[]),c.jsx(i.SpringMotionConfig,{reducedMotion:t,layoutSpeed:"4",layoutVariant:a,children:c.jsx(u.m.div,{className:"overflow-hidden",style:{height:o,opacity:0},animate:{height:o,opacity:1},children:c.jsx("div",{ref:n,children:e})})})},ee=l.memo((function({helpText:t,helperTextIcon:a,spacingStart:n,spacingTop:i,size:s,isFilled:r,...l}){return t?c.jsx(o.Box,{spacingTop:i,spacingStart:n,...l,children:c.jsx(e.InputHelpTextMemo,{startIcon:a,size:s,isFilled:r,children:p.isFunction(t)?t():t})}):null})),te=l.memo((function({icon:e,className:t}){return e?c.jsx(o.IconSlot,{icon:e,iconProps:{variant:"outline"},className:t}):null})),ae=l.memo((function({icon:e,className:t}){if(!e)return null;return c.jsx(o.IconSlot,{icon:e,iconProps:{variant:"outline"},"data-testid":"end-icon",className:t})})),ne=l.forwardRef((function({id:e,label:t,type:n="text",size:i="md",startIcon:s,endIcon:r,helpText:d,helperTextIcon:h,hasError:m,width:x="full",defaultValue:f,required:g,readOnly:b,disabled:y,reduceMotion:v,onChange:S,className:C,...I},N){const j=l.useId(),k=e??`uds-input-${j}`,w=`uds-input-${k}-help-text`,V=l.useRef(null);l.useImperativeHandle(N,(()=>V.current));const[M,R]=l.useState(f??""),z=l.useCallback((e=>{R(e.target.value),S?.(e)}),[S]),T=u.useReducedMotion()?"smooth":"bouncy",P=v?"always":"user",A=!b&&!y,B={root:o.getStyles({inputSizeRoot:i,inputVariantRoot:"default",inputVariantValueRoot:M?"filled":"empty",className:o.cx([C,y?"opacity-50":""])}),inputWrapper:o.cx(o.getStyles({inputSizeInputWrapper:i,inputVariantInputWrapper:"default",inputVariantValueInputWrapper:M?"filled":"empty"}),"min-w-[200px]"),input:o.getStyles({inputSizeInput:i,inputVariantInput:"default",inputVariantValueInput:M?"filled":"empty",inputVariantInputPlaceholder:"default",inputVariantValueInputPlaceholder:M?"filled":"empty",className:o.cx("grow","uds-hit-target","bg-clip-text","focus:outline-none",A?"cursor-text":"cursor-not-allowed")}),label:o.cx(o.getStyles({inputSizeLabel:i,inputVariantLabel:"default",inputVariantValueLabel:M?"filled":"empty"})),labelRequired:o.getStyles({inputVariantLabelRequired:"default",inputVariantValueLabelRequired:M?"filled":"empty"}),startIcon:o.getStyles({inputSizeStartIcon:i,inputVariantStartIcon:"default",inputVariantValueStartIcon:M?"filled":"empty"}),endIcon:o.getStyles({inputSizeEndIcon:i,inputVariantEndIcon:"default",inputVariantValueEndIcon:M?"filled":"empty"})};return c.jsxs(a.VStack,{width:x,className:B.root,children:[t&&c.jsxs(o.Box,{spacingBottom:"2",columnGap:"0.5",alignItems:"flex-end",className:B.label,children:[c.jsx("label",{htmlFor:k,children:p.isFunction(t)?t():t}),g&&c.jsx("span",{className:B.labelRequired,children:"*"})]}),c.jsxs(o.Box,{position:"relative",alignItems:"center",className:B.inputWrapper,children:[c.jsx(te,{icon:s,className:B.startIcon}),c.jsx("input",{ref:V,id:k,type:n,value:M,required:g,readOnly:b,disabled:y,"aria-describedby":w,"aria-invalid":m,onChange:z,className:B.input,...I}),r&&c.jsx(a.HStack,{alignItems:"center",gap:"1",children:c.jsx(ae,{icon:r,className:B.endIcon})})]}),c.jsx(Q,{reduceMotion:P,layoutVariant:T,children:c.jsx(ee,{id:w,helpText:d,spacingTop:"2",size:i,isFilled:!!M,helperTextIcon:h})})]})}));ne.displayName="Input";var ie=class e{name;value;activeCount=0;#e=new Set;constructor(e){this.name=e}onChange(e){return this.#e.add(e),()=>{this.#e.delete(e)}}setValue(e){this.value=e,this.#e.forEach((t=>t(e)))}static findOrCreate(t,a){let n=t.get(a);return n||(n=new e(a),t.set(a,n)),n}},oe=l.createContext(new Map),se=e=>{const t=l.useId();return e??`uds-radio-group-${t}`},re={primary:"alert",secondary:"alert-secondary"},le=u.m.create(o.Box),ce={layoutVariant:"smooth",layoutSpeed:"3"},de={layoutVariant:"veryBouncy",layoutSpeed:"4"},ue=l.forwardRef((function({id:e,name:t,label:a,labelPosition:s="start",variant:r="primary",size:d="md",reduceMotion:p,value:h="",checked:m,defaultChecked:x,disabled:f,hasError:g,onChange:b,onFocus:y,onBlur:v,className:S,layerClassNames:C,...I},N){const j=l.useId(),k=e??`uds-radio-${j}`,w=l.useRef(null),{name:V,isControlled:M,checked:R,setGroupValue:z}=(({name:e,value:t,checked:a,defaultChecked:n})=>{const i=l.useContext(oe),o=i instanceof ie,s=void 0!==a||o,r=se(e),c=l.useMemo((()=>o?i:ie.findOrCreate(i,r)),[i,o,r]),[d,u]=l.useState(c.value),p=c.name??r,h=l.useCallback((e=>{c.setValue(e),s||u(e)}),[s,c]);return l.useEffect((()=>c.onChange(u)),[c]),l.useEffect((()=>{!0===a&&h(t)}),[a,t,h]),l.useEffect((()=>{if(o)return;const e=ie.findOrCreate(i,p);return e.activeCount+=1,i.set(p,e),()=>{const e=i.get(p);e&&(e.activeCount-=1,0===e.activeCount&&i.delete(p))}}),[i,o,p]),{name:p,isControlled:s,checked:s&&!o?a:void 0!==d?t===d:n??!1,setGroupValue:h}})({name:t,value:h,checked:m,defaultChecked:x}),[T,P]=l.useState(!1),[A,B]=l.useState(!1),E=l.useMemo((()=>g?re[r]:r),[g,r]),q=l.useMemo((()=>!f&&T),[f,T]),O=l.useMemo((()=>!f&&!R&&A),[R,f,A]),L=l.useMemo((()=>O?.9:q?1.1:1),[q,O]),H=l.useMemo((()=>R?O?"opacity-55":"opacity-100":"opacity-0"),[R,O]),F=l.useMemo((()=>!f&&(O&&!R||q&&R)),[R,f,q,O]),$=l.useMemo((()=>({scale:L})),[L]),_=l.useMemo((()=>A?de:ce),[A]),W=l.useCallback((e=>{z(e.target.value),b?.(e)}),[b,z]),D=l.useCallback((e=>{y?.(e)}),[y]),U=l.useCallback((e=>{v?.(e)}),[v]),G=l.useCallback((()=>{P(!0)}),[]),K=l.useCallback((()=>{P(!1)}),[]),X=l.useCallback((()=>{B(!0)}),[]),Y=l.useCallback((()=>{B(!1)}),[]),Z=p?"always":"user",J=u.useReducedMotion()||p?"duration-0":"duration-120",Q={root:o.getStyles({radioSizeRoot:d,radioVariantValueRoot:R?"checked":"unchecked",radioVariantRoot:E,display:"flex",flexDirection:"start"===s?"row":"row-reverse",alignItems:"center",className:o.cx([{"cursor-pointer":!f,"cursor-default":f,"opacity-50":f},S,C?.root])}),radio:o.getStyles({radioSizeRadio:d,radioVariantRadio:E,radioVariantValueRadio:R?"checked":"unchecked",className:o.cx(["border","uds-ring","uds-ring-within",J,"transition-[background-color,border-color]","transition-shadow",C?.radio])}),radioCircle:o.getStyles({radioVariantRadioCircle:E,radioVariantValueRadioCircle:R?"checked":"unchecked",className:o.cx(["pointer-events-none","w-[8px]","h-[8px]",H,J,"transition-opacity"])}),htmlRadio:o.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:o.cx("start"===s?"text-start":"text-end",C?.label)},ee=a?u.m.label:u.m.div;return c.jsx(i.SpringMotionConfig,{reducedMotion:Z,..._,children:c.jsxs(ee,{className:Q.root,"data-testid":"container",onHoverStart:G,onHoverEnd:K,onTapStart:X,onTap:Y,onTapCancel:Y,tabIndex:-1,children:[c.jsxs(le,{position:"relative",borderRadius:"full",alignItems:"center",justifyContent:"center",flex:"none",className:Q.radio,animate:$,insetShadow:F?"lg-invert":"none",children:[c.jsx("input",{type:"radio",...I,ref:e=>{w.current=e,"function"==typeof N?N(e):null!==N&&(N.current=e)},onFocus:D,onBlur:U,id:k,name:V,value:h,disabled:f,"aria-invalid":g,onChange:W,...M?{checked:R}:{defaultChecked:x},className:Q.htmlRadio}),c.jsx(o.Box,{borderRadius:"full",className:Q.radioCircle})]}),a&&c.jsx(n.FormLabel,{as:"div",variant:"inherit",color:"inherit",label:a,className:Q.label})]})})}));ue.displayName="Radio";var pe=o.createSlot(),he=class extends ie{onChangeCb;isControlled;constructor(e,t){super(e),this.isControlled=t}setValue(e,t=!1){this.isControlled&&!t?this.onChangeCb?.(e):super.setValue(e)}},me=l.forwardRef((function({asChild:e,name:t,value:a,defaultValue:n,onChange:i,...o},s){const r=void 0!==a,d=se(t),u=l.useMemo((()=>{const e=new he(d,r);return e.value=r?a:n,e}),[n,r,d,a]);l.useEffect((()=>{u.onChangeCb=i}),[i,u]),l.useEffect((()=>{r&&u.setValue(a,!0)}),[r,u,a]),l.useEffect((()=>u.onChange((e=>i?.(e)))),[i,u]);const p=e?pe:"div";return c.jsx(oe.Provider,{value:u,children:c.jsx(p,{role:"radiogroup",ref:s,...o})})}));me.displayName="RadioGroupProvider";var xe={md:{isOnX:20},sm:{isOnX:12}},fe=f.create(o.Box),ge={layoutVariant:"bouncy",layoutSpeed:"4"},be=l.forwardRef((function({id:e,isOn:t,defaultIsOn:a,onChange:s,label:r,labelPosition:d="start",size:p="md",onIcon:h,offIcon:m,reduceMotion:x,disabled:g,required:b,onFocus:y,onBlur:v,className:S,layerClassNames:C,...I},N){const j=l.useId(),k=e??`uds-input-${j}`,w=l.useRef(null),V=void 0!==t,[M,R]=l.useState(V?t:a),[z,T]=l.useState(!1),P=l.useMemo((()=>!g&&z),[g,z]),{isOnX:A}=xe[p],B=l.useMemo((()=>({initial:{scale:1,x:M?A:0},animate:{scale:P?1.05:1,x:M?A:0}})),[P,M,A]),E=l.useCallback((e=>{s?.(e),V||R(e.target.checked)}),[V,s]),q=l.useCallback((e=>{y?.(e)}),[y]),O=l.useCallback((e=>{v?.(e)}),[v]),L=l.useCallback((()=>{T(!0)}),[]),H=l.useCallback((()=>{T(!1)}),[]),F=x?"always":"user",$=u.useReducedMotion()||x?"duration-0":"duration-120";l.useEffect((()=>{V&&R(t)}),[t,V]);const _={root:o.getStyles({switchSizeRoot:p,switchVariantRoot:"default",switchVariantActiveRoot:M?"on":"off",display:"flex",flexDirection:"start"===d?"row":"row-reverse",alignItems:"center",className:o.cx("group",{"cursor-pointer":!g,"cursor-default":g,"opacity-50":g},C?.root,S)}),switch:o.getStyles({switchVariantSwitch:"default",switchSizeSwitch:p,switchVariantActiveSwitch:M?"on":"off",borderRadius:"full",position:"relative",alignItems:"center",className:o.cx("uds-ring","uds-ring-within",$,"transition-[background-color,box-shadow]",C?.switch)}),handle:o.getStyles({switchSizeHandle:p,className:o.cx("relative","pointer-events-none","rounded-full","overflow-hidden",C?.handle)}),handleCircle:o.getStyles({switchVariantActiveHandle:M?"on":"off",switchVariantHandle:"default",className:o.cx("absolute","top-0","left-0","right-0","bottom-0","opacity-95 group-hover:opacity-100",$,"transition-[background-color,box-shadow,opacity]")}),handleIcon:o.getStyles({switchSizeHandleIcon:p,switchVariantHandleIcon:"default",switchVariantActiveHandleIcon:M?"on":"off",className:o.cx("absolute","opacity-0","top-1/2","left-1/2","transform","translate-x-[-50%]","translate-y-[-50%]",$,"transition-opacity")}),htmlCheckbox:o.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:o.cx("start"===d?"text-start":"text-end",C?.label)},W=r?f.label:f.div;return c.jsx(i.SpringMotionConfig,{reducedMotion:F,...ge,children:c.jsxs(W,{className:_.root,"data-testid":"container",onHoverStart:L,onHoverEnd:H,tabIndex:-1,children:[c.jsxs(fe,{className:_.switch,children:[c.jsx("input",{type:"checkbox",...I,ref:e=>{w.current=e,"function"==typeof N?N(e):null!==N&&(N.current=e)},onFocus:q,onBlur:O,id:k,disabled:g,required:b,checked:V?M:void 0,defaultChecked:V?void 0:a,onChange:E,className:_.htmlCheckbox,style:{}}),c.jsxs(fe,{className:_.handle,...B,children:[c.jsx(o.Box,{className:_.handleCircle}),h&&c.jsx(o.IconSlot,{icon:h,iconProps:{variant:"fill",size:"sm"},"data-testid":"on-icon",className:o.cx(_.handleIcon,M?"opacity-100":"opacity-0")}),m&&c.jsx(o.IconSlot,{icon:m,iconProps:{variant:"fill",size:"sm"},"data-testid":"off-icon",className:o.cx(_.handleIcon,M?"opacity-0":"opacity-100")})]})]}),r&&c.jsx(n.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:b,label:r,className:_.label})]})})}));be.displayName="Switch",Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return t.Pressable}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return i.SpringMotionConfig}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return m.Menu}}),exports.Avatar=w,exports.AvatarIcon=N,exports.AvatarImage=k,exports.AvatarText=j,exports.Badge=V,exports.Button=q,exports.Checkbox=W,exports.Chip=Z,exports.ChipButton=G,exports.ChipDismissible=K,exports.ChipLink=X,exports.ChipToggle=Y,exports.IconButton=J,exports.Input=ne,exports.Radio=ue,exports.RadioGroupProvider=me,exports.Switch=be;
|
2
|
+
"use strict";var e=require("../chunk-6BNYCBB5.cjs"),t=require("../chunk-HSI5A4OJ.cjs"),a=require("../chunk-TJZ4HVAG.cjs"),n=require("../chunk-I5TC35WI.cjs"),i=require("../chunk-EIQXT4KY.cjs"),o=require("../chunk-4NZKRK55.cjs"),s=require("react"),r=require("react/jsx-runtime"),l=require("@yahoo/uds/fixtures"),c=require("motion/react"),d=require("lodash-es"),u=require("motion/react-m"),p=require("@yahoo/uds/client/Menu");function h(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var m=h(u),x={first:e=>e[0]||"",last:e=>e[e.length-1]||"",firstAndLast:e=>1===e.length?e[0]:`${e[0]}${e[e.length-1]}`,firstTwo:e=>e.slice(0,2).join(""),firstThree:e=>e.slice(0,3).join(""),firstOfEach:e=>e.join("")},f=(e,t="firstAndLast")=>{if(!e)return"";const a=e.trim().split(/\s+/).map((e=>e[0].toUpperCase()));return"function"==typeof t?t(e):x[t](a)},g=(e="md")=>a.getStyles({avatarSizeRoot:e,flexShrink:"0",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"visible",className:"truncate"}),b=e=>e?{height:e,width:e}:{},y="primary",v="md",S={primary:t.e2,secondary:t.t},C=({size:e=v,variant:t=y,customSize:n,icon:i,className:o})=>{const l=s.useMemo((()=>b(n)),[n]),c=s.useMemo((()=>a.cx(g(e),a.getStyles({avatarIconVariantRoot:t,overflow:"hidden"}),o)),[o,e,t]),d=s.useMemo((()=>a.getStyles({width:"full",height:"full",flexShrink:"0",overflow:"hidden",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center"})),[]),u=s.useMemo((()=>({...l,boxSizing:"content-box"})),[l]),p=s.useMemo((()=>i??S[t??"primary"]),[i,t]),h=s.useMemo((()=>a.getStyles({avatarSizeIcon:e})),[e]);return r.jsx(a.Box,{className:c,style:l,children:r.jsx(a.Box,{className:d,style:u,children:r.jsx(a.Icon,{name:p,variant:"fill",color:"current",className:h,"data-testid":"avatar-icon"})})})};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */C.displayName="AvatarIcon";var I=({size:e=v,variant:t=y,name:n,initials:i,customSize:o,abbreviationStrategy:l,className:c})=>{const d=s.useMemo((()=>a.cx(g(e),a.getStyles({avatarTextVariantRoot:t,overflow:"hidden"}),"truncate",c)),[c,e,t]),u=s.useMemo((()=>a.getStyles({width:"full",height:"full",flexShrink:"0",overflow:"hidden",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",className:"truncate"})),[]),p=s.useMemo((()=>b(o)),[o]),h=s.useMemo((()=>({...p,boxSizing:"content-box"})),[p]);return r.jsx(a.Box,{className:d,style:p,children:r.jsx(a.Text,{color:"inherit",variant:"inherit",className:u,style:h,"data-testid":"avatar-text",children:i||f(n,l)})})};I.displayName="AvatarText";var N=({size:t=v,variant:n=y,src:i,srcSet:o,customSize:l,alt:c,imageProps:d,abbreviationStrategy:u,fallback:p,className:h})=>{const[m,x]=s.useState("loading");s.useEffect((()=>{let e=!0;if(i||o){const t=new Image;t.onload=()=>{e&&x("loaded")},t.onerror=()=>{e&&x("error")},i&&(t.src=i),o&&(t.srcset=o)}else x("error");return()=>{e=!1}}),[i,o]);const f=s.useMemo((()=>a.cx(g(t),a.getStyles({avatarImageVariantRoot:n,overflow:"hidden"}),h)),[h,t,n]),S=s.useMemo((()=>a.getStyles({width:"full",height:"full",flexShrink:"0",textAlign:"center",display:"inline-flex",justifyContent:"center",alignItems:"center",contentFit:"cover"})),[]),N=s.useMemo((()=>b(l)),[l]),j=s.useMemo((()=>({...N,boxSizing:"content-box"})),[N]);if("loaded"===m)return r.jsx(a.Box,{className:f,style:N,children:r.jsx(e.Image,{src:i,srcSet:o,alt:c,className:S,style:j,...d})});const k={size:t,customSize:l,variant:n};return p||c?r.jsx(I,{name:c,initials:p,abbreviationStrategy:u,...k}):r.jsx(C,{...k})};N.displayName="AvatarImage";var j=e=>r.jsx(N,{...e});j.displayName="Avatar";var k=s.forwardRef((function({variant:e="primary",size:t="md",minWidth:n,maxWidth:i=200,startIcon:o,endIcon:l,backgroundColor:c,color:d,iconColor:u,borderColor:p,children:h,className:m,...x},f){const g=a.getStyles({badgeSizeRoot:t,badgeVariantRoot:e,className:a.cx(["uds-badge","uds-badge-variant","uds-badge-size",m])}),b=a.getStyles({badgeVariantIcon:e,badgeSizeIcon:t,className:a.cx(["uds-badge-iconSize","uds-badge-iconColor"])}),y=s.useMemo((()=>({...n?{minWidth:`${n}px`}:{},..."full"===i?{}:{maxWidth:`${i}px`},...c?{backgroundColor:c}:{},...p?{borderColor:p}:{},...d?{color:d}:{}})),[c,p,d,i,n]),v=s.useMemo((()=>({variant:"fill",style:{...u?{color:u}:{}}})),[u]);return r.jsxs(a.HStack,{ref:f,gap:"2",display:"inline-flex",alignItems:"center",className:g,style:y,...x,children:[o&&r.jsx(a.IconSlot,{icon:o,iconProps:v,"data-testid":"start-icon",className:b}),r.jsx("span",{className:"flex-1 truncate whitespace-nowrap text-center",children:h}),l&&r.jsx(a.IconSlot,{icon:l,iconProps:v,"data-testid":"end-icon",className:b})]})}));k.displayName="Badge";var w={scale:.7,opacity:0},V={scale:[.7,.7,1],opacity:[0,0,1],transition:{times:[0,.5,1]}},M={icon:V,hide:w,loading:w},R={loading:V,hide:w,icon:w},z=`var(${o.BUTTON_CSS_VAR_MAP.columnGap})`,T=`var(${o.BUTTON_CSS_VAR_MAP.iconSize})`,P={rest:{scale:`var(${o.BUTTON_CSS_VAR_MAP.effects.scale.rest})`},hover:{scale:`var(${o.BUTTON_CSS_VAR_MAP.effects.scale.hover})`},pressed:{scale:`var(${o.BUTTON_CSS_VAR_MAP.effects.scale.pressed})`},withoutIcon:{columnGap:"0px"},withIcon:{columnGap:z}},B={hide:{width:"0px",opacity:0,display:"none"},loading:{width:T,display:"flex",opacity:1},icon:{width:T,display:"flex",opacity:1}},A=s.forwardRef((function({variant:e,size:o,startIcon:d,endIcon:u,iconVariant:p,loading:h,disableEffects:m,children:x,asChild:f,type:g="button",className:b,width:y,...v},S){const C=s.useRef(null);s.useImperativeHandle(S,(()=>C.current));const I=s.useMemo((()=>a.createSlot()),[]),N=s.useMemo((()=>c.m.create(I)),[I]),j=u?"icon":"hide",k=(({startIcon:e,endIcon:t,loading:a})=>e||t||a?"withIcon":"withoutIcon")({startIcon:d,endIcon:u,loading:h}),w=(({loading:e,startIcon:t})=>e?"loading":t?"icon":"hide")({loading:h,startIcon:d}),{palette:V,variant:z}=s.useMemo((()=>i.parseDeprecatedButtonPaletteVariant({flatVariant:e})),[e]),T=s.useMemo((()=>({button:a.getStyles({width:y,buttonSize:o,buttonVariant:z,buttonPalette:V,className:a.cx("uds-button","uds-ring","uds-hit-target",h&&"uds-button-loading",m&&"uds-button-without-effects","withIcon"===k&&"uds-button-with-gap",b)}),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,o,z,V,b,h,m,k]),A=c.useReducedMotion()?"smooth":"subtle",E=s.useMemo((()=>r.jsx(c.m.span,{className:T.iconContainer,initial:!1,variants:B,animate:w,children:r.jsxs(c.AnimatePresence,{initial:!1,mode:"popLayout",children:[h&&r.jsx(c.m.span,{variants:R,initial:"hide",animate:"loading",exit:"hide",children:r.jsx(a.Icon,{size:l.buttonIconSvgSize,name:t.o2,variant:p,color:"current",className:T.loading})},"loading"),d&&!h&&r.jsx(c.m.span,{variants:M,initial:"hide",animate:"icon",exit:"hide",children:r.jsx(a.IconSlot,{className:T.start,icon:d,iconProps:{size:l.buttonIconSvgSize,variant:p,color:"current"}})})]})})),[T.iconContainer,T.loading,T.start,w,h,p,d]),O=s.useMemo((()=>r.jsx(c.m.span,{className:T.iconContainer,initial:!1,variants:B,animate:j,children:r.jsx(c.AnimatePresence,{initial:!1,mode:"popLayout",children:u&&r.jsx(c.m.span,{variants:M,initial:"hide",animate:"icon",exit:"hide",children:r.jsx(a.IconSlot,{className:T.end,icon:u,iconProps:{size:l.buttonIconSvgSize,variant:p,color:"current"}})})})})),[T.iconContainer,T.end,u,j,p]),q=s.useMemo((()=>m?{...P,rest:{},hover:{},pressed:{}}:P),[m]);return f&&s.isValidElement(x)?r.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:A,children:r.jsx(N,{type:g,className:T.button,initial:["hide",k],animate:k,variants:q,whileHover:"hover",whileTap:"pressed",...v,children:s.cloneElement(x,x.props,r.jsxs(r.Fragment,{children:[E,r.jsx("span",{className:T.content,children:x.props.children}),O]}))})}):r.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:A,children:r.jsxs(c.m.button,{ref:C,type:g,className:T.button,initial:["hide",k],animate:k,variants:q,whileHover:"hover",whileTap:"pressed",...v,children:[E,r.jsx("span",{className:T.content,children:x}),O]})})})),E={primary:"alert",secondary:"alert-secondary"},O=e=>"indeterminate"===e,q=e=>O(e)?t.o:t.e,H=c.m.create(a.Box),L={layoutVariant:"smooth",layoutSpeed:"3"},$={layoutVariant:"veryBouncy",layoutSpeed:"4"},_=s.forwardRef((function({id:t,checked:i,defaultChecked:o,onChange:l,label:d,labelPosition:u="start",variant:p="primary",size:h="md",reduceMotion:m,disabled:x,required:f,hasError:g,className:b,layerClassNames:y,...v},S){const C=s.useId(),I=t??`uds-input-${C}`,N=s.useRef(null),j=void 0!==i,[k,w]=s.useState(j?i:o),[V,M]=s.useState(!1),[R,z]=s.useState(!1),T=s.useMemo((()=>g?E[p]:p),[g,p]),P=!x&&V,B=!x&&R,A=s.useMemo((()=>B?.9:P?1.1:1),[B,P]),_=s.useMemo((()=>k?B?"opacity-55":"opacity-100":"opacity-0"),[k,B]),F=s.useMemo((()=>({scale:A})),[A]),W=s.useMemo((()=>R?$:L),[R]),D=s.useCallback((e=>{l?.(e),j||w(e.target.checked)}),[j,l]),G=s.useCallback((()=>{M(!0)}),[]),U=s.useCallback((()=>{M(!1)}),[]),X=s.useCallback((()=>{z(!0)}),[]),K=s.useCallback((()=>{z(!1)}),[]),J=e=>{N.current&&(N.current.indeterminate=O(e))},Y=m?"always":"user",Z=c.useReducedMotion()||m?"duration-0":"duration-120";s.useEffect((()=>{j&&w(i)}),[i,j]),s.useEffect((()=>{J(k)}),[k]);const Q=O(k)?"indeterminate":k?"checked":"unchecked",ee={root:a.getStyles({checkboxSizeRoot:h,checkboxVariantRoot:T,checkboxVariantValueRoot:Q,display:"flex",flexDirection:"start"===u?"row":"row-reverse",alignItems:"center",className:a.cx({"cursor-pointer":!x,"cursor-default":x,"opacity-50":x},b,y?.root)}),checkbox:a.getStyles({checkboxSizeCheckbox:h,checkboxVariantCheckbox:T,checkboxVariantValueCheckbox:Q,className:a.cx("border","rounded-[4px]","uds-ring","uds-ring-within",Z,"transition-[background-color,border-color,box-shadow]",y?.checkbox)}),check:a.getStyles({checkboxVariantCheckboxIcon:T,checkboxVariantValueCheckboxIcon:Q,className:a.cx("pointer-events-none",_,Z,"transition-opacity")}),htmlCheckbox:a.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:a.cx("start"===u?"text-start":"text-end",y?.label)},te=d?c.m.label:c.m.div;return r.jsx(n.SpringMotionConfig,{reducedMotion:Y,...W,children:r.jsxs(te,{className:ee.root,"data-testid":"container",onHoverStart:G,onHoverEnd:U,onTapStart:X,onTap:K,onTapCancel:K,tabIndex:-1,children:[r.jsxs(H,{position:"relative",className:ee.checkbox,alignItems:"center",justifyContent:"center",flex:"none",animate:F,children:[r.jsx("input",{type:"checkbox",...v,ref:e=>{N.current=e,J(k),"function"==typeof S?S(e):null!==S&&(S.current=e)},id:I,disabled:x,required:f,"aria-invalid":g,checked:j?!O(k)&&k:void 0,defaultChecked:j?void 0:o,onChange:D,className:ee.htmlCheckbox}),r.jsx(a.Icon,{name:q(k),size:"sm",className:ee.check})]}),d&&r.jsx(e.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:f,label:d,className:ee.label})]})})}));_.displayName="Checkbox";var F="primary",W=s.forwardRef((function({size:e="md",minWidth:t,maxWidth:n=200,startIcon:i,endIcon:o,as:l="div",reduceMotion:d,disabled:u=!1,className:p,layerClassNames:h,children:m,...x},f){const g=c.useReducedMotion()||d?"duration-0":"duration-120",b=s.useMemo((()=>({root:a.getStyles({chipSizeRoot:e,className:a.cx({"pointer-events-none":u,"cursor-default":u,"opacity-50":u},"focus-visible:-outline-offset-2","uds-ring",g,"transition-[background-color,outline-color,box-shadow]",h?.root,p)}),icon:a.getStyles({chipSizeIcon:e,className:h?.icon})})),[p,g,u,h?.icon,h?.root,e]);return r.jsx(a.HStack,{asChild:!0,ref:f,display:"inline-flex",alignItems:"center",style:{maxWidth:`${n}px`,...t?{minWidth:`${t}px`}:{}},className:b.root,...x,children:r.jsxs(l,{disabled:u,children:[i&&r.jsx(a.IconSlot,{icon:i,iconProps:{variant:"fill",className:b.icon},"data-testid":"start-icon"}),r.jsx(a.Text,{as:"span",className:"truncate whitespace-nowrap",flex:"1",textAlign:"center",color:"current",variant:"inherit",children:m}),o&&r.jsx(a.IconSlot,{icon:o,iconProps:{variant:"fill",className:b.icon},"data-testid":"end-icon"})]})})}));W.displayName="ChipBase";var D=s.forwardRef((function({variant:e=F,...t},n){const i=s.useMemo((()=>({root:a.getStyles({chipLinkVariantRoot:e}),icon:a.getStyles({chipLinkVariantIcon:e})})),[e]);return r.jsx(W,{as:"button",ref:n,variant:e,layerClassNames:i,...t})}));D.displayName="ChipButton";var G=s.forwardRef((function({dismissButtonAriaLabel:e,onDismiss:n,dismissIcon:i,variant:o=F,disabled:l,...c},d){const u=s.useMemo((()=>({root:a.getStyles({chipDismissibleVariantRoot:o}),icon:a.getStyles({chipDismissibleVariantIcon:o})})),[o]),p=s.useCallback((e=>{e.stopPropagation(),n?.()}),[n]),h={icon:a.cx("uds-chip-dismissible-button","uds-hit-target")};return r.jsx(W,{ref:d,variant:o,disabled:l,tabIndex:-1,endIcon:n=>r.jsx(t.Pressable,{"aria-label":e,className:h.icon,onClick:p,disabled:l,children:r.jsx(a.IconSlot,{icon:i??t.a,iconProps:n,"data-testid":"dismiss-icon"})}),layerClassNames:u,...c})}));G.displayName="ChipDismissible";var U=s.forwardRef((function({variant:e=F,href:t,disabled:n,...i},o){const l=s.useMemo((()=>({root:a.getStyles({chipLinkVariantRoot:e}),icon:a.getStyles({chipLinkVariantIcon:e})})),[e]);return r.jsx(W,{as:"a",ref:o,variant:e,disabled:n,layerClassNames:l,...{...i,href:n?void 0:t}})}));U.displayName="ChipLink";var X=s.forwardRef((function({isToggled:e=!1,onToggle:t,onClick:n,variant:i=F,...o},l){const c=s.useMemo((()=>({root:a.getStyles({chipToggleVariantRoot:i,chipToggleVariantActiveRoot:e?"on":"off"}),icon:a.getStyles({chipToggleVariantIcon:i})})),[e,i]),d=s.useCallback((a=>{t?.(!e),n?.(a)}),[e,n,t]);return r.jsx(W,{ref:l,as:"button",variant:i,onClick:d,"aria-pressed":e,layerClassNames:c,...o})}));X.displayName="ChipToggle";var K=s.forwardRef((function({onClick:e,href:t,linkProps:a,onDismiss:n,onToggle:i,isToggled:o,...s},l){return n?r.jsx(G,{ref:l,onDismiss:n,...s}):i?r.jsx(X,{ref:l,onToggle:i,isToggled:o,...s}):t?r.jsx(U,{ref:l,href:t,...s,...a}):r.jsx(D,{ref:l,onClick:e,...s})}));K.displayName="Chip";var J=s.forwardRef((function({variant:e,size:o,iconVariant:d,loading:u,disableEffects:p,name:h,type:m="button",htmlName:x,className:f,children:g,...b},y){const v=s.useRef(null);s.useImperativeHandle(y,(()=>v.current));const{palette:S,variant:C}=i.parseDeprecatedButtonPaletteVariant({flatVariant:e}),I=s.useMemo((()=>({button:a.getStyles({buttonVariant:C,buttonPalette:S,iconButtonSize:o,className:a.cx("uds-icon-button","uds-button","uds-ring","uds-hit-target",u&&"uds-button-loading",p&&"uds-button-without-effects",f)}),loading:"uds-button-icon start-content animate-spin",icon:"uds-button-icon start-content"})),[S,C,f,p,o,u]),N=c.useReducedMotion(),j=s.useMemo((()=>N?"smooth":"subtle"),[N]),k=s.useMemo((()=>{const{rest:e,hover:t,pressed:a}=P;return p?{rest:{},hover:{},pressed:{}}:{rest:e,hover:t,pressed:a}}),[p]);return r.jsx(n.SpringMotionConfig,{layoutSpeed:"3",layoutVariant:j,reducedMotion:p?"always":"user",children:r.jsx(c.m.button,{ref:v,type:m,className:I.button,initial:"icon",variants:k,whileHover:"hover",whileTap:"pressed",name:x,...b,children:r.jsxs(c.AnimatePresence,{initial:!1,mode:"popLayout",children:[u&&r.jsx(c.m.span,{variants:R,initial:"loading",animate:"loading",exit:"hide",children:r.jsx(a.Icon,{size:l.buttonIconSvgSize,name:t.o2,variant:d,color:"current",className:I.loading})},"loading"),h&&!u&&r.jsx(c.m.span,{variants:M,initial:"icon",animate:"icon",exit:"hide",children:g||r.jsx(a.Icon,{size:l.buttonIconSvgSize,name:h,variant:d,color:"current",className:I.icon})},h.name)]})})})})),Y=({children:e,reduceMotion:t,layoutVariant:a})=>{const i=s.useRef(null),[o,l]=s.useState("auto");return s.useEffect((()=>{if(i.current){const e=new ResizeObserver((e=>{l(e[0].contentRect.height)}));return e.observe(i.current),()=>{e.disconnect()}}}),[]),r.jsx(n.SpringMotionConfig,{reducedMotion:t,layoutSpeed:"4",layoutVariant:a,children:r.jsx(c.m.div,{className:"overflow-hidden",style:{height:o,opacity:0},animate:{height:o,opacity:1},children:r.jsx("div",{ref:i,children:e})})})},Z=s.memo((function({helpText:t,helperTextIcon:n,spacingStart:i,spacingTop:o,size:s,isFilled:l,...c}){return t?r.jsx(a.Box,{spacingTop:o,spacingStart:i,...c,children:r.jsx(e.InputHelpTextMemo,{startIcon:n,size:s,isFilled:l,children:d.isFunction(t)?t():t})}):null})),Q=s.memo((function({icon:e,className:t}){return e?r.jsx(a.IconSlot,{icon:e,iconProps:{variant:"outline"},className:t}):null})),ee=s.memo((function({icon:e,className:t}){if(!e)return null;return r.jsx(a.IconSlot,{icon:e,iconProps:{variant:"outline"},"data-testid":"end-icon",className:t})})),te=s.forwardRef((function({id:e,label:t,type:n="text",size:i="md",startIcon:o,endIcon:l,helpText:u,helperTextIcon:p,hasError:h,width:m="full",defaultValue:x,required:f,readOnly:g,disabled:b,reduceMotion:y,onChange:v,className:S,...C},I){const N=s.useId(),j=e??`uds-input-${N}`,k=`uds-input-${j}-help-text`,w=s.useRef(null);s.useImperativeHandle(I,(()=>w.current));const[V,M]=s.useState(x??""),R=s.useCallback((e=>{M(e.target.value),v?.(e)}),[v]),z=c.useReducedMotion()?"smooth":"bouncy",T=y?"always":"user",P=!g&&!b,B={root:a.getStyles({inputSizeRoot:i,inputVariantRoot:"default",inputVariantValueRoot:V?"filled":"empty",className:a.cx([S,b?"opacity-50":""])}),inputWrapper:a.cx(a.getStyles({inputSizeInputWrapper:i,inputVariantInputWrapper:"default",inputVariantValueInputWrapper:V?"filled":"empty"}),"min-w-[200px]"),input:a.getStyles({inputSizeInput:i,inputVariantInput:"default",inputVariantValueInput:V?"filled":"empty",inputVariantInputPlaceholder:"default",inputVariantValueInputPlaceholder:V?"filled":"empty",className:a.cx("grow","uds-hit-target","bg-clip-text","focus:outline-none",P?"cursor-text":"cursor-not-allowed")}),label:a.cx(a.getStyles({inputSizeLabel:i,inputVariantLabel:"default",inputVariantValueLabel:V?"filled":"empty"})),labelRequired:a.getStyles({inputVariantLabelRequired:"default",inputVariantValueLabelRequired:V?"filled":"empty"}),startIcon:a.getStyles({inputSizeStartIcon:i,inputVariantStartIcon:"default",inputVariantValueStartIcon:V?"filled":"empty"}),endIcon:a.getStyles({inputSizeEndIcon:i,inputVariantEndIcon:"default",inputVariantValueEndIcon:V?"filled":"empty"})};return r.jsxs(a.VStack,{width:m,className:B.root,children:[t&&r.jsxs(a.Box,{spacingBottom:"2",columnGap:"0.5",alignItems:"flex-end",className:B.label,children:[r.jsx("label",{htmlFor:j,children:d.isFunction(t)?t():t}),f&&r.jsx("span",{className:B.labelRequired,children:"*"})]}),r.jsxs(a.Box,{position:"relative",alignItems:"center",className:B.inputWrapper,children:[r.jsx(Q,{icon:o,className:B.startIcon}),r.jsx("input",{ref:w,id:j,type:n,value:V,required:f,readOnly:g,disabled:b,"aria-describedby":k,"aria-invalid":h,onChange:R,className:B.input,...C}),l&&r.jsx(a.HStack,{alignItems:"center",gap:"1",children:r.jsx(ee,{icon:l,className:B.endIcon})})]}),r.jsx(Y,{reduceMotion:T,layoutVariant:z,children:r.jsx(Z,{id:k,helpText:u,spacingTop:"2",size:i,isFilled:!!V,helperTextIcon:p})})]})}));te.displayName="Input";var ae=class e{name;value;activeCount=0;#e=new Set;constructor(e){this.name=e}onChange(e){return this.#e.add(e),()=>{this.#e.delete(e)}}setValue(e){this.value=e,this.#e.forEach((t=>t(e)))}static findOrCreate(t,a){let n=t.get(a);return n||(n=new e(a),t.set(a,n)),n}},ne=s.createContext(new Map),ie=e=>{const t=s.useId();return e??`uds-radio-group-${t}`},oe={primary:"alert",secondary:"alert-secondary"},se=c.m.create(a.Box),re={layoutVariant:"smooth",layoutSpeed:"3"},le={layoutVariant:"veryBouncy",layoutSpeed:"4"},ce=s.forwardRef((function({id:t,name:i,label:o,labelPosition:l="start",variant:d="primary",size:u="md",reduceMotion:p,value:h="",checked:m,defaultChecked:x,disabled:f,hasError:g,onChange:b,onFocus:y,onBlur:v,className:S,layerClassNames:C,...I},N){const j=s.useId(),k=t??`uds-radio-${j}`,w=s.useRef(null),{name:V,isControlled:M,checked:R,setGroupValue:z}=(({name:e,value:t,checked:a,defaultChecked:n})=>{const i=s.useContext(ne),o=i instanceof ae,r=void 0!==a||o,l=ie(e),c=s.useMemo((()=>o?i:ae.findOrCreate(i,l)),[i,o,l]),[d,u]=s.useState(c.value),p=c.name??l,h=s.useCallback((e=>{c.setValue(e),r||u(e)}),[r,c]);return s.useEffect((()=>c.onChange(u)),[c]),s.useEffect((()=>{!0===a&&h(t)}),[a,t,h]),s.useEffect((()=>{if(o)return;const e=ae.findOrCreate(i,p);return e.activeCount+=1,i.set(p,e),()=>{const e=i.get(p);e&&(e.activeCount-=1,0===e.activeCount&&i.delete(p))}}),[i,o,p]),{name:p,isControlled:r,checked:r&&!o?a:void 0!==d?t===d:n??!1,setGroupValue:h}})({name:i,value:h,checked:m,defaultChecked:x}),[T,P]=s.useState(!1),[B,A]=s.useState(!1),E=s.useMemo((()=>g?oe[d]:d),[g,d]),O=s.useMemo((()=>!f&&T),[f,T]),q=s.useMemo((()=>!f&&!R&&B),[R,f,B]),H=s.useMemo((()=>q?.9:O?1.1:1),[O,q]),L=s.useMemo((()=>R?q?"opacity-55":"opacity-100":"opacity-0"),[R,q]),$=s.useMemo((()=>!f&&(q&&!R||O&&R)),[R,f,O,q]),_=s.useMemo((()=>({scale:H})),[H]),F=s.useMemo((()=>B?le:re),[B]),W=s.useCallback((e=>{z(e.target.value),b?.(e)}),[b,z]),D=s.useCallback((e=>{y?.(e)}),[y]),G=s.useCallback((e=>{v?.(e)}),[v]),U=s.useCallback((()=>{P(!0)}),[]),X=s.useCallback((()=>{P(!1)}),[]),K=s.useCallback((()=>{A(!0)}),[]),J=s.useCallback((()=>{A(!1)}),[]),Y=p?"always":"user",Z=c.useReducedMotion()||p?"duration-0":"duration-120",Q={root:a.getStyles({radioSizeRoot:u,radioVariantValueRoot:R?"checked":"unchecked",radioVariantRoot:E,display:"flex",flexDirection:"start"===l?"row":"row-reverse",alignItems:"center",className:a.cx([{"cursor-pointer":!f,"cursor-default":f,"opacity-50":f},S,C?.root])}),radio:a.getStyles({radioSizeRadio:u,radioVariantRadio:E,radioVariantValueRadio:R?"checked":"unchecked",className:a.cx(["border","uds-ring","uds-ring-within",Z,"transition-[background-color,border-color]","transition-shadow",C?.radio])}),radioCircle:a.getStyles({radioVariantRadioCircle:E,radioVariantValueRadioCircle:R?"checked":"unchecked",className:a.cx(["pointer-events-none","w-[8px]","h-[8px]",L,Z,"transition-opacity"])}),htmlRadio:a.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:a.cx("start"===l?"text-start":"text-end",C?.label)},ee=o?c.m.label:c.m.div;return r.jsx(n.SpringMotionConfig,{reducedMotion:Y,...F,children:r.jsxs(ee,{className:Q.root,"data-testid":"container",onHoverStart:U,onHoverEnd:X,onTapStart:K,onTap:J,onTapCancel:J,tabIndex:-1,children:[r.jsxs(se,{position:"relative",borderRadius:"full",alignItems:"center",justifyContent:"center",flex:"none",className:Q.radio,animate:_,insetShadow:$?"lg-invert":"none",children:[r.jsx("input",{type:"radio",...I,ref:e=>{w.current=e,"function"==typeof N?N(e):null!==N&&(N.current=e)},onFocus:D,onBlur:G,id:k,name:V,value:h,disabled:f,"aria-invalid":g,onChange:W,...M?{checked:R}:{defaultChecked:x},className:Q.htmlRadio}),r.jsx(a.Box,{borderRadius:"full",className:Q.radioCircle})]}),o&&r.jsx(e.FormLabel,{as:"div",variant:"inherit",color:"inherit",label:o,className:Q.label})]})})}));ce.displayName="Radio";var de=a.createSlot(),ue=class extends ae{onChangeCb;isControlled;constructor(e,t){super(e),this.isControlled=t}setValue(e,t=!1){this.isControlled&&!t?this.onChangeCb?.(e):super.setValue(e)}},pe=s.forwardRef((function({asChild:e,name:t,value:a,defaultValue:n,onChange:i,...o},l){const c=void 0!==a,d=ie(t),u=s.useMemo((()=>{const e=new ue(d,c);return e.value=c?a:n,e}),[n,c,d,a]);s.useEffect((()=>{u.onChangeCb=i}),[i,u]),s.useEffect((()=>{c&&u.setValue(a,!0)}),[c,u,a]),s.useEffect((()=>u.onChange((e=>i?.(e)))),[i,u]);const p=e?de:"div";return r.jsx(ne.Provider,{value:u,children:r.jsx(p,{role:"radiogroup",ref:l,...o})})}));pe.displayName="RadioGroupProvider";var he={md:{isOnX:20},sm:{isOnX:12}},me=m.create(a.Box),xe={layoutVariant:"bouncy",layoutSpeed:"4"},fe=s.forwardRef((function({id:t,isOn:i,defaultIsOn:o,onChange:l,label:d,labelPosition:u="start",size:p="md",onIcon:h,offIcon:x,reduceMotion:f,disabled:g,required:b,onFocus:y,onBlur:v,className:S,layerClassNames:C,...I},N){const j=s.useId(),k=t??`uds-input-${j}`,w=s.useRef(null),V=void 0!==i,[M,R]=s.useState(V?i:o),[z,T]=s.useState(!1),P=s.useMemo((()=>!g&&z),[g,z]),{isOnX:B}=he[p],A=s.useMemo((()=>({initial:{scale:1,x:M?B:0},animate:{scale:P?1.05:1,x:M?B:0}})),[P,M,B]),E=s.useCallback((e=>{l?.(e),V||R(e.target.checked)}),[V,l]),O=s.useCallback((e=>{y?.(e)}),[y]),q=s.useCallback((e=>{v?.(e)}),[v]),H=s.useCallback((()=>{T(!0)}),[]),L=s.useCallback((()=>{T(!1)}),[]),$=f?"always":"user",_=c.useReducedMotion()||f?"duration-0":"duration-120";s.useEffect((()=>{V&&R(i)}),[i,V]);const F={root:a.getStyles({switchSizeRoot:p,switchVariantRoot:"default",switchVariantActiveRoot:M?"on":"off",display:"flex",flexDirection:"start"===u?"row":"row-reverse",alignItems:"center",className:a.cx("group",{"cursor-pointer":!g,"cursor-default":g,"opacity-50":g},C?.root,S)}),switch:a.getStyles({switchVariantSwitch:"default",switchSizeSwitch:p,switchVariantActiveSwitch:M?"on":"off",borderRadius:"full",position:"relative",alignItems:"center",className:a.cx("uds-ring","uds-ring-within",_,"transition-[background-color,box-shadow]",C?.switch)}),handle:a.getStyles({switchSizeHandle:p,className:a.cx("relative","pointer-events-none","rounded-full","overflow-hidden",C?.handle)}),handleCircle:a.getStyles({switchVariantActiveHandle:M?"on":"off",switchVariantHandle:"default",className:a.cx("absolute","top-0","left-0","right-0","bottom-0","opacity-95 group-hover:opacity-100",_,"transition-[background-color,box-shadow,opacity]")}),handleIcon:a.getStyles({switchSizeHandleIcon:p,switchVariantHandleIcon:"default",switchVariantActiveHandleIcon:M?"on":"off",className:a.cx("absolute","opacity-0","top-1/2","left-1/2","transform","translate-x-[-50%]","translate-y-[-50%]",_,"transition-opacity")}),htmlCheckbox:a.cx("cursor-[inherit]","absolute","opacity-0","top-1/2","left-1/2","w-[calc(100%+2px)]","h-[calc(100%+2px)]","transform","translate-x-[-50%]","translate-y-[-50%]"),label:a.cx("start"===u?"text-start":"text-end",C?.label)},W=d?m.label:m.div;return r.jsx(n.SpringMotionConfig,{reducedMotion:$,...xe,children:r.jsxs(W,{className:F.root,"data-testid":"container",onHoverStart:H,onHoverEnd:L,tabIndex:-1,children:[r.jsxs(me,{className:F.switch,children:[r.jsx("input",{type:"checkbox",...I,ref:e=>{w.current=e,"function"==typeof N?N(e):null!==N&&(N.current=e)},onFocus:O,onBlur:q,id:k,disabled:g,required:b,checked:V?M:void 0,defaultChecked:V?void 0:o,onChange:E,className:F.htmlCheckbox,style:{}}),r.jsxs(me,{className:F.handle,...A,children:[r.jsx(a.Box,{className:F.handleCircle}),h&&r.jsx(a.IconSlot,{icon:h,iconProps:{variant:"fill",size:"sm"},"data-testid":"on-icon",className:a.cx(F.handleIcon,M?"opacity-100":"opacity-0")}),x&&r.jsx(a.IconSlot,{icon:x,iconProps:{variant:"fill",size:"sm"},"data-testid":"off-icon",className:a.cx(F.handleIcon,M?"opacity-0":"opacity-100")})]})]}),d&&r.jsx(e.FormLabel,{as:"div",variant:"inherit",color:"inherit",required:b,label:d,className:F.label})]})})}));fe.displayName="Switch",Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return t.Pressable}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return n.SpringMotionConfig}}),Object.defineProperty(exports,"Menu",{enumerable:!0,get:function(){return p.Menu}}),exports.Avatar=j,exports.AvatarIcon=C,exports.AvatarImage=N,exports.AvatarText=I,exports.Badge=k,exports.Button=A,exports.Checkbox=_,exports.Chip=K,exports.ChipButton=D,exports.ChipDismissible=G,exports.ChipLink=U,exports.ChipToggle=X,exports.IconButton=J,exports.Input=te,exports.Radio=ce,exports.RadioGroupProvider=pe,exports.Switch=fe;
|