@yahoo/uds 3.66.1 → 3.66.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/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/preload.ts +1 -1
- package/dist/chunk-2EFTNYYZ.cjs +1 -0
- package/dist/{chunk-KOMSMI5O.cjs → chunk-2TGUXN5Y.cjs} +1 -1
- package/dist/{chunk-6PEIP4LR.cjs → chunk-3T7MTHXL.cjs} +1 -1
- package/dist/{chunk-4DI4U2ZJ.js → chunk-52XP6M4A.js} +1 -1
- package/dist/{chunk-HTZHSZZP.cjs → chunk-5HXZ5MFF.cjs} +1 -1
- package/dist/chunk-67NZP2EJ.cjs +1 -0
- package/dist/chunk-6UJVGBVP.js +2 -0
- package/dist/chunk-6YXOYVTA.cjs +1 -0
- package/dist/{chunk-SPP3MH4Z.js → chunk-6ZL4NW6G.js} +1 -1
- package/dist/{chunk-HKI5AZ7O.js → chunk-7QE6VTZP.js} +1 -1
- package/dist/{chunk-3KGHFL34.cjs → chunk-ANRWTHU7.cjs} +1 -1
- package/dist/{chunk-W6B4I24P.js → chunk-C6TJ654O.js} +1 -1
- package/dist/{chunk-AJIPOPZP.js → chunk-CZYY6A2G.js} +1 -1
- package/dist/chunk-DXTANXUQ.js +2 -0
- package/dist/chunk-I3KJ5PGH.js +2 -0
- package/dist/chunk-JBCLDIDO.js +1 -0
- package/dist/{chunk-FK3YMO3H.cjs → chunk-JUNV7OML.cjs} +1 -1
- package/dist/{chunk-FP7OSHKI.cjs → chunk-KDIQ2J33.cjs} +1 -1
- package/dist/{chunk-IPJKEKXB.cjs → chunk-MCRXAGQ4.cjs} +2 -2
- package/dist/chunk-MIFZ6CW4.cjs +1 -0
- package/dist/{chunk-4NLPM4LX.js → chunk-MWVS3EYU.js} +1 -1
- package/dist/{chunk-LK3ZQP3J.cjs → chunk-OGYJQFQD.cjs} +1 -1
- package/dist/{chunk-S5ISY44L.cjs → chunk-OZDOYBCV.cjs} +1 -1
- package/dist/chunk-PF4DFSHW.js +2 -0
- package/dist/{chunk-FKDU4FOZ.js → chunk-PPZP6WY2.js} +1 -1
- package/dist/{chunk-O4OSO3V4.cjs → chunk-PVAHPU4A.cjs} +1 -1
- package/dist/chunk-RBWYRHZO.cjs +1 -0
- package/dist/{chunk-5PTFNIFE.js → chunk-RWROVP2I.js} +1 -1
- package/dist/chunk-RXOSKQ3M.js +2 -0
- package/dist/{chunk-C67TSNYO.cjs → chunk-SENPKUAV.cjs} +1 -1
- package/dist/chunk-STPH6333.js +2 -0
- package/dist/{chunk-EPEWMEHA.js → chunk-TY5JSXRZ.js} +3 -3
- package/dist/{chunk-OCCSRSJM.js → chunk-UHDFVABF.js} +1 -1
- package/dist/chunk-ULP73NNZ.cjs +1 -0
- package/dist/{chunk-OPJ5SIFC.js → chunk-UM2OUQWR.js} +2 -2
- package/dist/{chunk-P4XYWMJE.cjs → chunk-UNZRFPUW.cjs} +1 -1
- package/dist/{chunk-BRD7KJ5B.cjs → chunk-UTDI4LVN.cjs} +1 -1
- package/dist/{chunk-DDL45GZJ.js → chunk-X3I2OBBL.js} +1 -1
- package/dist/{chunk-B2TS37PH.cjs → chunk-XHDADABE.cjs} +1 -1
- package/dist/{chunk-Q5LASIAY.js → chunk-XLELSUQX.js} +2 -2
- package/dist/chunk-YB3FEQDR.js +2 -0
- package/dist/chunk-ZGLNOALK.cjs +1 -0
- package/dist/{chunk-VX5NJRUI.js → chunk-ZQANINIC.js} +1 -1
- package/dist/{chunk-XK6V5SIG.cjs → chunk-ZQHT2CVS.cjs} +1 -1
- package/dist/{chunk-NNSZGTMQ.js → chunk-ZVYDFFLO.js} +1 -1
- package/dist/{chunk-IMKUVCCQ.cjs → chunk-ZXZH6NST.cjs} +1 -1
- 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 +1 -1
- package/dist/experimental/client/SwitchV2.js +2 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.js +2 -2
- package/dist/fixtures.cjs +65 -65
- package/dist/fixtures.d.cts +1 -1
- package/dist/fixtures.d.ts +1 -1
- package/dist/fixtures.js +65 -65
- 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/plugin.cjs +1 -1
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/package.json +20 -17
- package/dist/chunk-27DQUYOD.cjs +0 -1
- package/dist/chunk-566E2KOV.cjs +0 -1
- package/dist/chunk-6V7QEDMR.js +0 -2
- package/dist/chunk-IOYNZUNZ.js +0 -2
- package/dist/chunk-K3SGTZBD.js +0 -2
- package/dist/chunk-LBWNL2O7.cjs +0 -1
- package/dist/chunk-LYHJT3E5.js +0 -2
- package/dist/chunk-NJH5V24C.cjs +0 -1
- package/dist/chunk-ORB5CU37.cjs +0 -1
- package/dist/chunk-QIGG4KRS.js +0 -2
- package/dist/chunk-QUNKTR5G.cjs +0 -1
- package/dist/chunk-R7SUOHEQ.js +0 -1
- package/dist/chunk-WR3CRR6L.js +0 -2
- package/dist/chunk-XN3JP4KW.cjs +0 -1
- package/dist/chunk-YZE72XPR.js +0 -2
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mapValues as e,entries as o}from"./chunk-RXOSKQ3M.js";import{require_isArray as t,require_createCompounder as a,require_getNative as r,require_Map as n,require_overArg as s,require_isPrototype as l,require_isArrayLike as i,require_isArguments as u,require_isBuffer as d,require_isTypedArray as f,require_isFunction as c,require_arrayMap as p,require_getTag as h,require_baseKeys as m,require_baseUnary as b,require_nodeUtil as v}from"./chunk-DXTANXUQ.js";import{require_baseGetTag as y,require_isObjectLike as _,require_root as g,require_isObject as w,require_Symbol as x,BUTTON_SCALE_EFFECT as j,LETTER_SPACING_PREFIX as $,TEXT_TRANSFORM_PREFIX as S,LINE_HEIGHT_PREFIX as P,FONT_SIZE_PREFIX as W,FONT_WIDTH_PREFIX as C,FONT_SLANT_PREFIX as O,FONT_WEIGHT_PREFIX as T,FONT_FAMILY_PREFIX as A,TEXT_RESPONSIVE_CLASSNAME as V,BUTTON_SCALE_EFFECT_REST as F,BUTTON_SCALE_EFFECT_HOVER as k,BUTTON_SCALE_EFFECT_PRESSED as N,BUTTON_GAP_VAR as E,TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES as K}from"./chunk-STPH6333.js";import{__commonJS as Y,__toESM as z}from"./chunk-GF4A6TFM.js";import{textVariants as R,shadowOffsetMap as M,spacingMap as X,shadowSpreadRadiusMap as B}from"@yahoo/uds/fixtures";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
|
+
var I=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isString.js"(e,o){var a=y(),r=t(),n=_();o.exports=function(e){return"string"==typeof e||!r(e)&&n(e)&&"[object String]"==a(e)}}}),D=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/lowerCase.js"(e,o){var t=a()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});o.exports=t}}),L=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),H=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),U=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(e,o){var t=H();o.exports=function(e,o){for(var a=e.length;a--;)if(t(e[a][0],o))return a;return-1}}}),G=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(e,o){var t=U(),a=Array.prototype.splice;o.exports=function(e){var o=this.__data__,r=t(o,e);return!(r<0)&&(r==o.length-1?o.pop():a.call(o,r,1),--this.size,!0)}}}),q=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(e,o){var t=U();o.exports=function(e){var o=this.__data__,a=t(o,e);return a<0?void 0:o[a][1]}}}),Q=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(e,o){var t=U();o.exports=function(e){return t(this.__data__,e)>-1}}}),J=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(e,o){var t=U();o.exports=function(e,o){var a=this.__data__,r=t(a,e);return r<0?(++this.size,a.push([e,o])):a[r][1]=o,this}}}),Z=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_ListCache.js"(e,o){var t=L(),a=G(),r=q(),n=Q(),s=J();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),ee=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackClear.js"(e,o){var t=Z();o.exports=function(){this.__data__=new t,this.size=0}}}),oe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(e,o){o.exports=function(e){var o=this.__data__,t=o.delete(e);return this.size=o.size,t}}}),te=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),ae=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),re=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(e,o){var t=r()(Object,"create");o.exports=t}}),ne=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashClear.js"(e,o){var t=re();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),se=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(e,o){o.exports=function(e){var o=this.has(e)&&delete this.__data__[e];return this.size-=o?1:0,o}}}),le=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashGet.js"(e,o){var t=re(),a=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var r=o[e];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(o,e)?o[e]:void 0}}}),ie=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashHas.js"(e,o){var t=re(),a=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:a.call(o,e)}}}),ue=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_hashSet.js"(e,o){var t=re();o.exports=function(e,o){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),de=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Hash.js"(e,o){var t=ne(),a=se(),r=le(),n=ie(),s=ue();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),fe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(e,o){var t=de(),a=Z(),r=n();o.exports=function(){this.size=0,this.__data__={hash:new t,map:new(r||a),string:new t}}}}),ce=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(e,o){o.exports=function(e){var o=typeof e;return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==e:null===e}}}),pe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getMapData.js"(e,o){var t=ce();o.exports=function(e,o){var a=e.__data__;return t(o)?a["string"==typeof o?"string":"hash"]:a.map}}}),he=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(e,o){var t=pe();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),me=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(e,o){var t=pe();o.exports=function(e){return t(this,e).get(e)}}}),be=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(e,o){var t=pe();o.exports=function(e){return t(this,e).has(e)}}}),ve=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(e,o){var t=pe();o.exports=function(e,o){var a=t(this,e),r=a.size;return a.set(e,o),this.size+=a.size==r?0:1,this}}}),ye=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_MapCache.js"(e,o){var t=fe(),a=he(),r=me(),n=be(),s=ve();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var a=e[o];this.set(a[0],a[1])}}l.prototype.clear=t,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),_e=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_stackSet.js"(e,o){var t=Z(),a=n(),r=ye();o.exports=function(e,o){var n=this.__data__;if(n instanceof t){var s=n.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++n.size,this;n=this.__data__=new r(s)}return n.set(e,o),this.size=n.size,this}}}),ge=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Stack.js"(e,o){var t=Z(),a=ee(),r=oe(),n=te(),s=ae(),l=_e();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=a,i.prototype.delete=r,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),we=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_defineProperty.js"(e,o){var t=r(),a=function(){try{var e=t(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();o.exports=a}}),xe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssignValue.js"(e,o){var t=we();o.exports=function(e,o,a){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[o]=a}}}),je=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assignMergeValue.js"(e,o){var t=xe(),a=H();o.exports=function(e,o,r){(void 0!==r&&!a(e[o],r)||void 0===r&&!(o in e))&&t(e,o,r)}}}),$e=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,a){for(var r=-1,n=Object(o),s=a(o),l=s.length;l--;){var i=s[e?l:++r];if(!1===t(n[i],i,n))break}return o}}}}),Se=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseFor.js"(e,o){var t=$e()();o.exports=t}}),Pe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneBuffer.js"(e,o){var t=g(),a="object"==typeof e&&e&&!e.nodeType&&e,r=a&&"object"==typeof o&&o&&!o.nodeType&&o,n=r&&r.exports===a?t.Buffer:void 0,s=n?n.allocUnsafe:void 0;o.exports=function(e,o){if(o)return e.slice();var t=e.length,a=s?s(t):new e.constructor(t);return e.copy(a),a}}}),We=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Uint8Array.js"(e,o){var t=g().Uint8Array;o.exports=t}}),Ce=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=We();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),Oe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneTypedArray.js"(e,o){var t=Ce();o.exports=function(e,o){var a=o?t(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.length)}}}),Te=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,a=e.length;for(o||(o=Array(a));++t<a;)o[t]=e[t];return o}}}),Ae=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseCreate.js"(e,o){var t=w(),a=Object.create,r=function(){function e(){}return function(o){if(!t(o))return{};if(a)return a(o);e.prototype=o;var r=new e;return e.prototype=void 0,r}}();o.exports=r}}),Ve=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getPrototype.js"(e,o){var t=s()(Object.getPrototypeOf,Object);o.exports=t}}),Fe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneObject.js"(e,o){var t=Ae(),a=Ve(),r=l();o.exports=function(e){return"function"!=typeof e.constructor||r(e)?{}:t(a(e))}}}),ke=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js"(e,o){var t=i(),a=_();o.exports=function(e){return a(e)&&t(e)}}}),Ne=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isPlainObject.js"(e,o){var t=y(),a=Ve(),r=_(),n=Function.prototype,s=Object.prototype,l=n.toString,i=s.hasOwnProperty,u=l.call(Object);o.exports=function(e){if(!r(e)||"[object Object]"!=t(e))return!1;var o=a(e);if(null===o)return!0;var n=i.call(o,"constructor")&&o.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}}}),Ee=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),Ke=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_assignValue.js"(e,o){var t=xe(),a=H(),r=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];r.call(e,o)&&a(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),Ye=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copyObject.js"(e,o){var t=Ke(),a=xe();o.exports=function(e,o,r,n){var s=!r;r||(r={});for(var l=-1,i=o.length;++l<i;){var u=o[l],d=n?n(r[u],e[u],u,r,e):void 0;void 0===d&&(d=e[u]),s?a(r,u,d):t(r,u,d)}return r}}}),ze=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,a=Array(e);++t<e;)a[t]=o(t);return a}}}),Re=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var a=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),Me=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayLikeKeys.js"(e,o){var a=ze(),r=u(),n=t(),s=d(),l=Re(),i=f(),c=Object.prototype.hasOwnProperty;o.exports=function(e,o){var t=n(e),u=!t&&r(e),d=!t&&!u&&s(e),f=!t&&!u&&!d&&i(e),p=t||u||d||f,h=p?a(e.length,String):[],m=h.length;for(var b in e)!o&&!c.call(e,b)||p&&("length"==b||d&&("offset"==b||"parent"==b)||f&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||l(b,m))||h.push(b);return h}}}),Xe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_nativeKeysIn.js"(e,o){o.exports=function(e){var o=[];if(null!=e)for(var t in Object(e))o.push(t);return o}}}),Be=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseKeysIn.js"(e,o){var t=w(),a=l(),r=Xe(),n=Object.prototype.hasOwnProperty;o.exports=function(e){if(!t(e))return r(e);var o=a(e),s=[];for(var l in e)("constructor"!=l||!o&&n.call(e,l))&&s.push(l);return s}}}),Ie=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/keysIn.js"(e,o){var t=Me(),a=Be(),r=i();o.exports=function(e){return r(e)?t(e,!0):a(e)}}}),De=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/toPlainObject.js"(e,o){var t=Ye(),a=Ie();o.exports=function(e){return t(e,a(e))}}}),Le=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseMergeDeep.js"(e,o){var a=je(),r=Pe(),n=Oe(),s=Te(),l=Fe(),i=u(),p=t(),h=ke(),m=d(),b=c(),v=w(),y=Ne(),_=f(),g=Ee(),x=De();o.exports=function(e,o,t,u,d,f,c){var w=g(e,t),j=g(o,t),$=c.get(j);if($)a(e,t,$);else{var S=f?f(w,j,t+"",e,o,c):void 0,P=void 0===S;if(P){var W=p(j),C=!W&&m(j),O=!W&&!C&&_(j);S=j,W||C||O?p(w)?S=w:h(w)?S=s(w):C?(P=!1,S=r(j,!0)):O?(P=!1,S=n(j,!0)):S=[]:y(j)||i(j)?(S=w,i(w)?S=x(w):v(w)&&!b(w)||(S=l(j))):P=!1}P&&(c.set(j,S),d(S,j,u,f,c),c.delete(j)),a(e,t,S)}}}}),He=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseMerge.js"(e,o){var t=ge(),a=je(),r=Se(),n=Le(),s=w(),l=Ie(),i=Ee();o.exports=function e(o,u,d,f,c){o!==u&&r(u,function(r,l){if(c||(c=new t),s(r))n(o,u,l,d,e,f,c);else{var p=f?f(i(o,l),r,l+"",o,u,c):void 0;void 0===p&&(p=r),a(o,l,p)}},l)}}}),Ue=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),Ge=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_apply.js"(e,o){o.exports=function(e,o,t){switch(t.length){case 0:return e.call(o);case 1:return e.call(o,t[0]);case 2:return e.call(o,t[0],t[1]);case 3:return e.call(o,t[0],t[1],t[2])}return e.apply(o,t)}}}),qe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_overRest.js"(e,o){var t=Ge(),a=Math.max;o.exports=function(e,o,r){return o=a(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=a(n.length-o,0),i=Array(l);++s<l;)i[s]=n[o+s];s=-1;for(var u=Array(o+1);++s<o;)u[s]=n[s];return u[o]=r(i),t(e,this,u)}}}}),Qe=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),Je=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseSetToString.js"(e,o){var t=Qe(),a=we(),r=Ue(),n=a?function(e,o){return a(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:r;o.exports=n}}),Ze=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,a=0;return function(){var r=t(),n=16-(r-a);if(a=r,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),eo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_setToString.js"(e,o){var t=Je(),a=Ze()(t);o.exports=a}}),oo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseRest.js"(e,o){var t=Ue(),a=qe(),r=eo();o.exports=function(e,o){return r(a(e,o,t),e+"")}}}),to=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"(e,o){var t=H(),a=i(),r=Re(),n=w();o.exports=function(e,o,s){if(!n(s))return!1;var l=typeof o;return!!("number"==l?a(s)&&r(o,s.length):"string"==l&&o in s)&&t(s[o],e)}}}),ao=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createAssigner.js"(e,o){var t=oo(),a=to();o.exports=function(e){return t(function(o,t){var r=-1,n=t.length,s=n>1?t[n-1]:void 0,l=n>2?t[2]:void 0;for(s=e.length>3&&"function"==typeof s?(n--,s):void 0,l&&a(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++r<n;){var i=t[r];i&&e(o,i,r,s)}return o})}}}),ro=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/mergeWith.js"(e,o){var t=He(),a=ao()(function(e,o,a,r){t(e,o,a,r)});o.exports=a}}),no=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseToPairs.js"(e,o){var t=p();o.exports=function(e,o){return t(o,function(o){return[o,e[o]]})}}}),so=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,a){t[++o]=[a,e]}),t}}}),lo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_setToPairs.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e){t[++o]=[e,e]}),t}}}),io=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_createToPairs.js"(e,o){var t=no(),a=h(),r=so(),n=lo();o.exports=function(e){return function(o){var s=a(o);return"[object Map]"==s?r(o):"[object Set]"==s?n(o):t(o,e(o))}}}}),uo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/keys.js"(e,o){var t=Me(),a=m(),r=i();o.exports=function(e){return r(e)?t(e):a(e)}}}),fo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/toPairs.js"(e,o){var t=io()(uo());o.exports=t}}),co=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/entries.js"(e,o){o.exports=fo()}}),po=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,a=null==e?0:e.length;++t<a&&!1!==o(e[t],t,e););return e}}}),ho=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssign.js"(e,o){var t=Ye(),a=uo();o.exports=function(e,o){return e&&t(o,a(o),e)}}}),mo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseAssignIn.js"(e,o){var t=Ye(),a=Ie();o.exports=function(e,o){return e&&t(o,a(o),e)}}}),bo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,a=null==e?0:e.length,r=0,n=[];++t<a;){var s=e[t];o(s,t,e)&&(n[r++]=s)}return n}}}),vo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),yo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getSymbols.js"(e,o){var t=bo(),a=vo(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return r.call(e,o)}))}:a;o.exports=s}}),_o=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copySymbols.js"(e,o){var t=Ye(),a=yo();o.exports=function(e,o){return t(e,a(e),o)}}}),go=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,a=o.length,r=e.length;++t<a;)e[r+t]=o[t];return e}}}),wo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getSymbolsIn.js"(e,o){var t=go(),a=Ve(),r=yo(),n=vo(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,r(e)),e=a(e);return o}:n;o.exports=s}}),xo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_copySymbolsIn.js"(e,o){var t=Ye(),a=wo();o.exports=function(e,o){return t(e,a(e),o)}}}),jo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetAllKeys.js"(e,o){var a=go(),r=t();o.exports=function(e,o,t){var n=o(e);return r(e)?n:a(n,t(e))}}}),$o=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getAllKeys.js"(e,o){var t=jo(),a=yo(),r=uo();o.exports=function(e){return t(e,r,a)}}}),So=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getAllKeysIn.js"(e,o){var t=jo(),a=wo(),r=Ie();o.exports=function(e){return t(e,r,a)}}}),Po=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,a=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(a.index=e.index,a.input=e.input),a}}}),Wo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneDataView.js"(e,o){var t=Ce();o.exports=function(e,o){var a=o?t(e.buffer):e.buffer;return new e.constructor(a,e.byteOffset,e.byteLength)}}}),Co=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneRegExp.js"(e,o){var t=/\w*$/;o.exports=function(e){var o=new e.constructor(e.source,t.exec(e));return o.lastIndex=e.lastIndex,o}}}),Oo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_cloneSymbol.js"(e,o){var t=x(),a=t?t.prototype:void 0,r=a?a.valueOf:void 0;o.exports=function(e){return r?Object(r.call(e)):{}}}}),To=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_initCloneByTag.js"(e,o){var t=Ce(),a=Wo(),r=Co(),n=Oo(),s=Oe();o.exports=function(e,o,l){var i=e.constructor;switch(o){case"[object ArrayBuffer]":return t(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return a(e,l);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,l);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return r(e);case"[object Symbol]":return n(e)}}}}),Ao=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsMap.js"(e,o){var t=h(),a=_();o.exports=function(e){return a(e)&&"[object Map]"==t(e)}}}),Vo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isMap.js"(e,o){var t=Ao(),a=b(),r=v(),n=r&&r.isMap,s=n?a(n):t;o.exports=s}}),Fo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseIsSet.js"(e,o){var t=h(),a=_();o.exports=function(e){return a(e)&&"[object Set]"==t(e)}}}),ko=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isSet.js"(e,o){var t=Fo(),a=b(),r=v(),n=r&&r.isSet,s=n?a(n):t;o.exports=s}}),No=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseClone.js"(e,o){var a=ge(),r=po(),n=Ke(),s=ho(),l=mo(),i=Pe(),u=Te(),f=_o(),c=xo(),p=$o(),m=So(),b=h(),v=Po(),y=To(),_=Fe(),g=t(),x=d(),j=Vo(),$=w(),S=ko(),P=uo(),W=Ie(),C="[object Arguments]",O="[object Function]",T="[object Object]",A={};A[C]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[T]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[O]=A["[object WeakMap]"]=!1,o.exports=function e(o,t,d,h,w,V){var F,k=1&t,N=2&t,E=4&t;if(d&&(F=w?d(o,h,w,V):d(o)),void 0!==F)return F;if(!$(o))return o;var K=g(o);if(K){if(F=v(o),!k)return u(o,F)}else{var Y=b(o),z=Y==O||"[object GeneratorFunction]"==Y;if(x(o))return i(o,k);if(Y==T||Y==C||z&&!w){if(F=N||z?{}:_(o),!k)return N?c(o,l(F,o)):f(o,s(F,o))}else{if(!A[Y])return w?o:{};F=y(o,Y,k)}}V||(V=new a);var R=V.get(o);if(R)return R;V.set(o,F),S(o)?o.forEach(function(a){F.add(e(a,t,d,a,o,V))}):j(o)&&o.forEach(function(a,r){F.set(r,e(a,t,d,r,o,V))});var M=K?void 0:(E?N?m:p:N?W:P)(o);return r(M||o,function(a,r){M&&(a=o[r=a]),n(F,r,e(a,t,d,r,o,V))}),F}}}),Eo=Y({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/cloneDeep.js"(e,o){var t=No();o.exports=function(e){return t(e,5)}}}),Ko=z(I(),1),Yo=e=>{throw new Error("Didn't expect to get here")};function zo(e){return Object.entries(e)}var Ro=e=>e.replace("/","-"),Mo=e=>"."+K[e],Xo=(e,o,t,a)=>{const r=e.typography[o]?.[t];if(!r)throw new Error(`Missing typography data for variant "${o}" and key "${t}"`);const n="base"===a?r.base:r.breakpoints?.[a];if(!n)throw new Error(`Missing value for variant "${o}", key "${t}", and breakpoint "${a}"`);if((0,Ko.default)(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return Yo()},Bo=(e,o)=>o in e.font?`var(--${A}-${o})`:o,Io=(e,o)=>Object.fromEntries(R.flatMap(t=>{const a=Ro(t);return[[`--${A}-${a}`,Bo(e,Xo(e,t,"fontFamily",o))],[`--${W}-${a}`,Xo(e,t,"fontSize",o)],[`--${T}-${a}`,Xo(e,t,"fontWeight",o)],[`--${O}-${a}`,Xo(e,t,"fontSlant",o)],[`--${C}-${a}`,Xo(e,t,"fontWidth",o)],[`--${P}-${a}`,Xo(e,t,"lineHeight",o)],[`--${S}-${a}`,Xo(e,t,"textTransform",o)],[`--${$}-${a}`,Xo(e,t,"letterSpacing",o)]]})),Do=e=>Object.fromEntries(R.map(Ro).map(o=>[o,`var(--${e}-${o})`])),Lo={fontFamily:Do(A),fontWeight:Do(T),fontSlant:Do(O),fontWidth:Do(C),fontSize:Do(W),lineHeight:Do(P),textTransform:Do(S),letterSpacing:Do($)},Ho=e=>Io(e,"base"),Uo=e=>{const o=zo(e.breakpoints).sort(([,{value:e}],[,{value:o}])=>e-o);return{[`.${V}`]:Object.fromEntries(o.map(([o,{value:t}])=>[`@media (min-width: ${t}px)`,Io(e,o)])),[Mo("base")]:Io(e,"base"),[Mo("defaultBreakpoint")]:Io(e,e.globalDefaults.breakpoint),...Object.fromEntries(o.map(([o])=>[Mo(o),Io(e,o)]))}},Go=z(c(),1),qo=z(D(),1),Qo=z(ro(),1);function Jo({variantKey:e,variantValue:o,layer:t,subComponentName:a,stateKey:r,stateValue:n}){return a?r&&n?`${a}/${e}/${o}/${r}/${n}/${t}`:`${a}/${e}/${o}/${t}`:r&&n?`${e}/${o}/${r}/${n}/${t}`:`${e}/${o}/${t}`}var Zo=e=>!!e?.layers,et=e=>!!e?.componentStates,ot=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function tt(o,t){const a=o.variants?.[t];if(a)return{type:"no-sub-components",variant:a};const r=ht(o);if(!r)return{type:"no-variants"};return{type:"has-sub-components",variants:e(r,e=>e.variants[t])}}function at(e,o,t){const a=e[o]?.defaults?.[t];if(void 0===a)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return a}function rt(e,o,t,a){return at(e,o,t)===a}function nt(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o}var st=z(co(),1);function lt(e,o,t){const a=tt(e,o);switch(a.type){case"no-variants":return null;case"no-sub-components":return a.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return a.variants[t]}}function it(e,o,t){const a=lt(e,o,t);return a&&et(a)?a?.componentStates??null:null}function ut(e,o,t){const a=it(e,o,t);if(!a)return null;return ot((0,st.default)(a).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e)}function dt(o){if(!o||!Zo(o))return null;const t=e(o.layers,e=>e.properties);for(const e in t){const o=t[e];o&&0!==Object.keys(o).length||delete t[e]}return 0===Object.keys(t).length?null:t}var ft=["rest"];function ct(e,o,t,a){const r=lt(e,o,a);if(!r)return null;return[...Zo(r)?Object.entries(r?.layers??{}):[],...et(r)&&t?Object.entries(r.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...t.skipRestState?ft.filter(e=>"rest"!==e):ft,...t.pseudoStates??[]].map(a=>[e,o,t,a])).reduce((e,[o,t,a,r])=>{e[r]=e[r]??[];const n=[o,t,a];return e[r].push(n),e},{})}var pt=z(co(),1);function ht(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function mt(e,o="variant"){const t=tt(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(ht(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:t.variant.description,variantNames:[...t.variant.options]}}const a=(0,pt.default)(t.variants).reduce((e,[o,t])=>{for(const a of t.options)e[a]??=[],e[a].includes(o)||e[a].push(o);return e},{});return{type:"has-sub-components",description:Object.values(t.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(a),variantToSubcomponentNames:a}}var bt=z(Eo(),1);function vt(e,o,t,a,r){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[a];if(!s)throw new Error(`No property variables found for ${a}.`);const l=s[r];if(!l)throw new Error(`No pseudoState variables found for ${r}.`);return l}function yt(e,o,t,a,r,n){const s=(0,bt.default)(e),l=vt(s,o,t,a,r);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}function _t(e,o,t,a,r){return[vt(e,o,t,a,r),n=>yt(e,o,t,a,r,n)]}var gt="line-height",wt="border-width",xt="border-color",jt="box-shadow";function $t({lineHeight:e,schema:o,iconLayerKey:t,state:a,theme:r}){const n=o.variables?.[t]?.size?.[a]?.value;if(!n)return e;return`max(${e}, ${r(`sizing.icon.${n}`)})`}function St(e){const o=e[wt],t=e[xt];if(!o||!t)return e;const a=e=>e.replace(/\s*!important\s*$/,""),r=e=>e?.includes("!important")??!1,n=[`inset 0 0 0 ${a(o)} ${a(t)}`,e[jt]&&a(e[jt])].filter(Boolean),s=r(o)||r(t)||r(e[jt]),l={...e};return l[jt]=n.join(", ")+(s?" !important":""),delete l[wt],delete l[xt],l}var Pt={rest:"",hover:":hover:not(:active, :disabled, :has(:disabled))",pressed:":active:not(:disabled, :has(:disabled))",focused:":focus","focus-within":":focus-within",invalid:':has(input[aria-invalid="true"])',"focused-keyboard":":focus-visible",visited:":visited",readonly:":has(input:read-only)",disabled:":is(:disabled, :has(:disabled))","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:active, :disabled, :has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:disabled, :has(:disabled))'},Wt={rest:"",hover:"hover",pressed:"active",focused:"focus","focus-within":"focus-within",invalid:"has-input-invalid","focused-keyboard":"focus-visible",visited:"visited",readonly:"input-readonly",disabled:"has-disabled","invalid&hover":"has-input-invalid-and-hover","invalid&pressed":"has-input-invalid-and-active"};function Ct(e,o){const t=e.defaults[o],a=e.typeOfFixture;let r=0;return e.values.forEach((e,o)=>{e.includes(t)&&(r=o)}),a[r]}function Ot(e){const o={},t={};for(const o in e.variants){const a=e.variants[o];t[o]=a.default}o.defaults=t,o.variables={};for(const t in e.variants){const a=e.variants[t];for(const e of a.options)if(et(a)){const r=a.componentStates;for(const a in r){const n=r[a];for(const r of n.options)for(const s in n.layers){const l=n.layers[s],i=Jo({variantKey:t,variantValue:e,stateKey:a,stateValue:r,layer:s});o.variables[i]={};for(const t in l.properties){const a=l.properties[t],r={[t]:{}};if(!0!==a?.skipRestState&&(r[t]={rest:{type:Ct(a,e),valueType:"alias",value:a.defaults[e]}}),a.pseudoStates)for(const o of a.pseudoStates)r[t][o]={type:Ct(a,e),valueType:"alias",value:a.defaults[e]};o.variables[i]={...o.variables[i],...r}}}}}else if(Zo(a)){const r=a.layers;for(const a in r){const n=r[a],s=Jo({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const a=n.properties[t],r={[t]:{}};if(!0!==a?.skipRestState&&(r[t]={rest:{type:Ct(a,e),valueType:"alias",value:a.defaults[e]}}),a.pseudoStates)for(const o of a.pseudoStates)r[t][o]={type:Ct(a,e),valueType:"alias",value:a.defaults[e]};o.variables[s]={...o.variables[s],...r}}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const a in t[e].variants){const r=t[e].variants[a];o.defaults[a]=r.default;for(const t of r.options)if(et(r)){const n=r.componentStates;for(const r in n){const s=n[r];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Jo({variantKey:a,variantValue:t,stateKey:r,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const a=i.properties[e],r={[e]:{}};if(!0!==a?.skipRestState&&(r[e]={rest:{type:Ct(a,t),valueType:"alias",value:a.defaults[t]}}),a.pseudoStates)for(const o of a.pseudoStates)r[e][o]={type:Ct(a,t),valueType:"alias",value:a.defaults[t]};o.variables[u]={...o.variables[u],...r}}}}}else if(Zo(r)){const n=r.layers;for(const r in n){const s=n[r],l=Jo({variantKey:a,variantValue:t,layer:r,subComponentName:e});o.variables[l]={};for(const e in s.properties){const a=s.properties[e],r={[e]:{}};if(!0!==a?.skipRestState&&(r[e]={rest:{type:Ct(a,t),valueType:"alias",value:a.defaults[t]}}),a.pseudoStates)for(const o of a.pseudoStates)r[e][o]={type:Ct(a,t),valueType:"alias",value:a.defaults[t]};o.variables[l]={...o.variables[l],...r}}}}}}return o}function Tt(e,o,t,a){return`uds-${e}${a?`-${a.toLowerCase()}`:""}-default-${o}-${t}`}function At({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,qo.default)(e)}-${(0,qo.default)(n)}-${(0,qo.default)(o)}`:`uds-${(0,qo.default)(e)}-${(0,qo.default)(o)}`,t&&(i=`${i}-${(0,qo.default)(t)}`),s&&l&&(i=`${i}-${(0,qo.default)(s)}-${(0,qo.default)(l)}`),i=`${i}-${(0,qo.default)(a)}`,r&&(i=`${i}${r}`),i.replaceAll(/\s+/g,"-")}function Vt({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:d,theme:f,currentStyles:c,previewOptions:p}){const h=Jo({variantKey:o,variantValue:t,layer:a,subComponentName:n,stateKey:s,stateValue:l});let m=At({componentName:e,variantKey:o,variantValue:t,layer:a,subComponentName:n,stateKey:s,stateValue:l});const b=i.variables[h][u];if(!b)throw new Error(`Prop definition (${e} - ${h} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const v={};for(const h in b){const y=h,_=Pt[y]??"",g=b[y];let w="";if("root"===a)if(s&&l){const r=At({componentName:e,variantKey:o,variantValue:t,layer:a,subComponentName:n});m=At({componentName:e,variantKey:o,layer:a,subComponentName:n,stateKey:s,stateValue:l}),w=`.${r}${_}.${m}`}else w=`.${m}${_}`;else{const i=At({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=At({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});m=At({componentName:e,variantKey:o,variantValue:t,layer:a,layerOptionalPseudoSelector:r,subComponentName:n}),w=`.${i}${_}.${u} .${m}`}else w=`.${i}${_} .${m}`}const x=(e,o,t,a)=>{const{value:r,type:n}=e,s=ya[o];let l;if(ya[o].customValueRenderer)l=ya[o].customValueRenderer(e,i,t);else{l=t(ya[o].twThemePath(n,String(r)))}if(s.concatenate&&a){return`${a}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:j,extendedProperties:$}=ya[d.name],S={},P=(0,Go.default)($),W=P?$({componentName:e,subComponentName:n,layer:a,propertyKey:u}):$;if(W&&W.length){if(!P&&("string"==typeof j||Array.isArray(j)&&j.length>0))throw new Error("Invalid configuration: cssProperties should not be configured when extendedProperties are defined. Please update your property configuration accordingly.");for(const e of W){const o=ya[e].cssProperties;if("string"==typeof o){const t=c?.[w]?.[o];S[o]=x(g,e,f,t)}else if(Array.isArray(o))for(const t of o){const o=c?.[w]?.[t];S[t]=x(g,e,f,o)}}}else if("string"==typeof j){const e=c?.[w]?.[j];S[j]=x(g,d.name,f,e)}else if(Array.isArray(j))for(const e of j){const o=c?.[w]?.[e];S[e]=x(g,d.name,f,o)}if("button"===e&&"root"===a){if("gap"===u&&(S[E]=S.gap),"scaleEffect"===u&&!s&&"hover"===y){const e=`.${m}`,o=e=>ya.scaleEffect.customValueRenderer?.(e,i,()=>"")??"1";v[e]||(v[e]={}),v[e][F]="1",b.hover&&(v[e][k]=o(b.hover)),b.pressed&&(v[e][N]=o(b.pressed))}if(S[gt]){const e=Jo({variantKey:o,variantValue:t,layer:"icon",subComponentName:n});S[gt]=$t({lineHeight:S[gt],schema:i,iconLayerKey:e,state:y,theme:f})}}if(v[w]||(v[w]={...S,...v[w]}),p?.generatePseudoStateClassModifier){const e=Wt[y]??"";if(e.length>0&&"root"!==h){const o=Object.fromEntries(Object.entries(S).map(([e,o])=>[e,`${o} !important`]));v[`.${e}${w}`.replace(_,"")]={...o,...v[`.${e}${w}`.replace(_,"")]}}}}return v}function Ft(e,o,t,a){function r(e,o){return(0,Qo.default)({},e,o)}let n=e.label.toLowerCase();e.overrideComponentName&&(n=e.overrideComponentName.toLowerCase());let s={};for(const l in e.variants){const i=e.variants[l];for(const e of i.options)if(et(i)){const u=i.componentStates;for(const i in u){const d=u[i];for(const u of d.options)for(const f in d.layers){const c=d.layers[f];for(const d in c.properties){const p=c.properties[d];s=r(s,Vt({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:f,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:d,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}else if(Zo(i)){const u=i.layers;for(const i in u){const d=u[i];for(const u in d.properties){const f=d.properties[u];s=r(s,Vt({componentName:n,variantKey:l,variantValue:e,layer:i,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}if(e.subComponents){const{subComponents:l}=e;for(const e in l)for(const i in l[e].variants){const u=l[e].variants[i];for(const l of u.options)if(et(u)){const d=u.componentStates;for(const u in d){const f=d[u];for(const d of f.options)for(const c in f.layers){const p=f.layers[c];for(const f in p.properties){const h=p.properties[f];s=r(s,Vt({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:d,subComponentName:e,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:f,originalPropertyDefinition:h,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}else if(Zo(u)){const d=u.layers;for(const u in d){const f=d[u];for(const d in f.properties){const c=f.properties[d];s=r(s,Vt({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:u,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:d,originalPropertyDefinition:c,theme:t,schema:o,currentStyles:s,previewOptions:a}))}}}}}if("button"===n||"iconbutton"===n)for(const e in s)e.includes("-root")&&(s[e]=St(s[e]));return s}var kt=(e,o,t,a)=>{const r=Ft(e,o,t,a);if(!e.variants&&!e.subComponents)return r;const n=e.overrideComponentName?.toLowerCase()||e.label.toLowerCase();if("button"!==n&&"iconbutton"!==n)return r;const s=new Map,l=e=>{if(Zo(e))return Object.keys(e.layers);if(et(e)){const o=new Set;for(const t of Object.values(e.componentStates))Object.keys(t.layers).forEach(e=>o.add(e));return Array.from(o)}return[]},i=(e,t)=>{for(const[a,r]of Object.entries(e)){if(!Zo(r)&&!et(r))continue;const e=l(r);if(e.length){const r=o.defaults?.[a];if(r)for(const o of e){const e=At({componentName:n,variantKey:a,variantValue:r,layer:o,subComponentName:t}),l=Tt(n,a,o,t);s.set(e,`.${e}, .${l}`)}}}};if(e.variants&&i(e.variants),e.subComponents)for(const[o,t]of Object.entries(e.subComponents))i(t.variants,o);const u={};for(const[e,o]of Object.entries(r)){let t=e,a=!1;for(const[o,r]of s.entries())if(e.includes(o)){a=!0;const e=r.match(/,\s*\.([a-z0-9-]+)/);if(e){const a=e[1];t=t.replaceAll(o,a)}}a?u[`${e}, ${t}`]=o:u[e]=o}return u};function Nt(e){return e}function Et(e){return e}function Kt(e){return e}function Yt(e){return e}function zt(e){return e}function Rt(e){return e}function Mt(e){return e}var Xt={drop:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}]},inset:{none:[],xs:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"palette",value:"primary"}}],sm:[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"palette",value:"primary"}}],md:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],lg:[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"palette",value:"primary"}}],xl:[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"palette",value:"primary"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"palette",value:"primary"}}],"2xl":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"palette",value:"primary"}}],"xs-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"5",color:{type:"always",value:"white"}}],"sm-invert":[{offsetX:"0",offsetY:"px",blur:"0.5",spread:"0",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"px",blur:"1",spread:"0",opacity:"10",color:{type:"always",value:"white"}}],"md-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-px",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"0.5",blur:"1",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"lg-invert":[{offsetX:"0",offsetY:"1",blur:"1.5",spread:"-1",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"2.5",blur:"3.5",spread:"-0.5",opacity:"10",color:{type:"always",value:"white"}}],"xl-invert":[{offsetX:"0",offsetY:"2",blur:"2.5",spread:"-1.5",opacity:"10",color:{type:"always",value:"white"}},{offsetX:"0",offsetY:"5",blur:"6",spread:"-1",opacity:"10",color:{type:"always",value:"white"}}],"2xl-invert":[{offsetX:"0",offsetY:"6",blur:"12",spread:"-3",opacity:"25",color:{type:"always",value:"white"}}]}},Bt={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},It="system",Dt="system",Lt="light",Ht="large",Ut=!1,Gt="🇺🇸 US",qt="https://s.yimg.com/bw/fonts",Qt=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jt=["Georgia","Times","Times New Roman","serif"],Zt={"centra-no2":{fallback:Qt,type:"sans",fontFamily:"Centra No2",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Hairline",value:50},{label:"Thin",value:100},{label:"Light",value:300},{label:"Book",value:400},{label:"Medium",value:500},{label:"Bold",value:700},{label:"ExtraBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"50",src:`url('${qt}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${qt}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${qt}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${qt}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${qt}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${qt}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${qt}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${qt}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${qt}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${qt}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${qt}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Qt,type:"sans",fontFamily:"Inter",isVariableFont:!0,fontSlants:[{label:"Italic",value:-10},{label:"None",value:0}],fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Extra Light",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semi Bold",value:600},{label:"Bold",value:700},{label:"Extra Bold",value:800},{label:"Black",value:900}],defaults:{fontSlant:0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/inter-vf.woff2') format('woff2')`}]},"roboto-mono":{fallback:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas","Liberation Mono","Courier New","monospace"],type:"mono",fontFamily:"Roboto Mono",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Thin",value:100},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"100",src:`url('${qt}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${qt}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${qt}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${qt}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${qt}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Qt,type:"sans",fontFamily:"Yahoo Sans",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"ExtraLight",value:200},{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Semibold",value:585},{label:"Bold",value:700},{label:"ExtraBold",value:810},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Qt,type:"sans",fontFamily:"Yahoo CR4 BETA VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Qt,type:"sans",fontFamily:"Yahoo Product Sans VF",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Qt,type:"sans",fontFamily:"YahooPd_Eval202412",isVariableFont:!0,fontSlants:[{label:"Italic",value:9},{label:"None",value:0}],fontWidths:[{label:"Cond",value:50},{label:"Normal",value:75},{label:"Ext",value:100}],fontWeights:[{label:"Light",value:300},{label:"Regular",value:450},{label:"Medium",value:500},{label:"Semibold",value:600},{label:"Bold",value:700},{label:"Black",value:850}],defaults:{fontSlant:0,fontWidth:75,fontWeight:450},declarations:[{fontWeight:"1 1000",src:`url('${qt}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${qt}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Qt,type:"sans",fontFamily:"Yahoo Sans Cond",isVariableFont:!0,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Medium",value:500},{label:"Bold",value:718},{label:"XBold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontWeight:"1 1000",src:`url('${qt}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jt,type:"serif",fontFamily:"Yahoo Serif Display",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Light",value:300},{label:"Regular",value:400},{label:"Bold",value:700},{label:"Extrabold",value:800},{label:"Black",value:900}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"300",src:`url('${qt}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${qt}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${qt}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jt,type:"serif",fontFamily:"Yahoo Serif Text",isVariableFont:!1,fontSlants:void 0,fontWidths:void 0,fontWeights:[{label:"Regular",value:400},{label:"Bold",value:700}],defaults:{fontSlant:void 0,fontWidth:void 0,fontWeight:400},declarations:[{fontStyle:"normal",fontWeight:"400",src:`url('${qt}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${qt}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${qt}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${qt}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function ea({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`}function oa(e){return Object.fromEntries(e)}var ta={black:"0 0 0",white:"255 255 255"};function aa({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,r="palette"===e.color?.type,n="always"===e.color?.type;let s=`var(--uds-${r?"shadow":"spectrum"}-color-${e?.color?.value})`;n&&(s=ta[e.color.value]);const l=`var(${a}${o?`${o}-`:""}color, ${s})`;return`${"inset"===t?"inset ":""}${[`${M[e.offsetX]}px`,`${M[e.offsetY]}px`,`${X[e.blur]}px`,`${B[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${l} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function ra({config:e,shadowType:t}){const a=e?.shadow?.[t];if(!a)return{};const r={};return o(a).forEach(([e,o])=>{if("none"===e)return void(r[`--uds-${t}-shadow-${e}`]="0 0 transparent");const a=o.map((e,o)=>aa({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));r[`--uds-${t}-shadow-${e}`]=`${a.join(", ")}`}),r}var na=e=>(o,t)=>`typography.${e}.${Ro(t)}`,sa=(e,o)=>{switch(e){case"alwaysPaletteAliases":return`colors.${o}`;case"spectrumColors":{const[e,t]=o.split("-");return`colors.${e}.${t}`}case"foregroundPaletteColors":return`textColor.${o}`;case"backgroundPaletteColors":return`backgroundColor.${o}`;case"linePaletteColors":return`borderColor.${o}`}return Yo()},la=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),ia={name:"backgroundColor",cssProperties:"background-color",twThemePath:sa,possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},ua={name:"fontSize",cssProperties:"font-size",twThemePath:na("fontSize"),possibleFixtures:["textVariants"]},da={name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e,t=Ro(o);return`"wght" var(--uds-font-weight-${t}), "slnt" var(--uds-font-slant-${t}), "wdth" var(--uds-font-width-${t})`}},fa={name:"fontWeight",cssProperties:"font-weight",twThemePath:na("fontWeight"),possibleFixtures:["textVariants"]},ca={name:"fontFamily",cssProperties:"font-family",twThemePath:na("fontFamily"),possibleFixtures:["textVariants"]},pa={name:"color",cssProperties:"color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},ha={name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>la(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},ma={name:"borderColor",cssProperties:"border-color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>la(e)&&["outlineColor"]},ba={name:"outlineColor",cssProperties:"outline-color",twThemePath:sa,possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},va={name:"textTransform",cssProperties:"text-transform",twThemePath:na("textTransform"),possibleFixtures:["textVariants"]},ya={...{backgroundColor:ia,borderWidth:ha,borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:ma,fontFamily:ca,fontSize:ua,fontVariationSettings:da,lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:na("lineHeight"),possibleFixtures:["textVariants"]},textTransform:va,letterSpacing:{name:"letterSpacing",cssProperties:"letter-spacing",twThemePath:na("letterSpacing"),possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},color:pa,opacity:{name:"opacity",cssProperties:"opacity",twThemePath:(e,o)=>`opacity[${o}]`,possibleFixtures:["opacitySteps"]},fontWeight:fa,iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,o)=>`sizing.icon.${o}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,o)=>`spacing[${o}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform","fontVariationSettings","letterSpacing"]},textDecorationLine:{name:"textDecorationLine",cssProperties:"text-decoration-line",possibleFixtures:["textDecorationLines"],twThemePath:()=>"",customValueRenderer:e=>String(e.value)},shadow:{name:"drop shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const o="drop";if("alias"===e.valueType){const t="0 0 0 transparent";if("none"===e.value)return t;if("custom"!==e.value)return`var(--uds-${o}-shadow-${e.value})`}else if("custom"===e.valueType){const t=e.value.map((e,t)=>aa({preset:e,shadowType:o,prefix:t>0?`${t+1}`:void 0}));return t?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariants"]},insetShadow:{name:"inset shadow",cssProperties:"box-shadow",twThemePath:()=>"",concatenate:!0,customValueRenderer:e=>{const o="inset";if("alias"===e.valueType){const t="0 0 0 transparent";if("none"===e.value)return t;if("custom"!==e.value)return`var(--uds-${o}-shadow-${e.value})`}else if("custom"===e.valueType){const t=e.value.map((e,t)=>aa({preset:e,shadowType:o,prefix:t>0?`${t+1}`:void 0}));return t?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,o)=>`height[${o}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,o)=>`width[${o}]`,possibleFixtures:["spacingAliases"]},scaleEffect:{name:"scaleEffect",cssProperties:j,possibleFixtures:["scaleEffects"],twThemePath:()=>"",customValueRenderer:e=>{const o=String(e.value);return"up"===o?"1.03":"down"===o?"0.97":"1"}}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:ba,insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,a)=>`calc(-1 * ${a("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{Lt as DEFAULT_COLOR_MODE,It as DEFAULT_COLOR_MODE_FOR_APP,Ut as DEFAULT_HIGH_CONTRAST_MODE,Gt as DEFAULT_REGION_MODE,Ht as DEFAULT_SCALE_MODE,Dt as DEFAULT_SCALE_MODE_FOR_APP,Zt as FONT_DECLARATIONS_MAP,Lo as RESPONSIVE_TAILWIND_CONFIG_MAP,Yo as assertUnreachable,ot as cartesianProduct,tt as coalesceConfigVariant,ya as configurableProperties,zt as createComponentStates,Nt as createConfigurableProperty,Rt as createLayerConfig,Mt as createSubComponentConfig,Et as createVariantConfig,Yt as createVariantConfigWithComponentStates,Kt as createVariantConfigWithProperties,zo as entries,Ct as findFixtureType,Bt as fontWeightMap,oa as fromEntries,At as generateClassName,Ft as generateConfigStyles,Vt as generateDeclaration,Tt as generateDefaultClassName,nt as generateKeyFromFlatConfigPath,Jo as generateSchemaKey,kt as generateStyles,Ho as getBaseTextVars,at as getConfigDefaultValue,vt as getConfigPseudoStateVariables,_t as getConfigPseudoStateVariablesWithSetter,ht as getConfigSubcomponents,it as getConfigVariantComponentStates,ut as getConfigVariantComponentStatesMatrix,dt as getConfigVariantProperties,ct as getConfigVariantPseudoStates,mt as getConfigVariants,Uo as getResponsiveTextStyles,aa as getShadowLayerValue,ra as getShadowPresetValues,rt as isConfigDefaultValue,ea as parseButtonVariantFlat,ye as require_MapCache,ge as require_Stack,We as require_Uint8Array,Se as require_baseFor,He as require_baseMerge,ao as require_createAssigner,H as require_eq,$o as require_getAllKeys,Ue as require_identity,Re as require_isIndex,I as require_isString,uo as require_keys,so as require_mapToArray,yt as setConfigPseudoStateVariable,Xt as shadow,Wt as statePseudoMapDocsMode,Ro as textVariantsSafe,Ot as toMinimalDbConfigObject};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("./chunk-QLXJH36U.cjs"),o=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(e,o){var s="object"==typeof global&&global&&global.Object===Object&&global;o.exports=s}}),s=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_root.js"(e,s){var t=o(),r="object"==typeof self&&self&&self.Object===Object&&self,_=t||r||Function("return this")();s.exports=_}}),t=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_Symbol.js"(e,o){var t=s().Symbol;o.exports=t}}),r=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(e,o){var s=t(),r=Object.prototype,_=r.hasOwnProperty,l=r.toString,d=s?s.toStringTag:void 0;o.exports=function(e){var o=_.call(e,d),s=e[d];try{e[d]=void 0;var t=!0}catch(e){}var r=l.call(e);return t&&(o?e[d]=s:delete e[d]),r}}}),_=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_objectToString.js"(e,o){var s=Object.prototype.toString;o.exports=function(e){return s.call(e)}}}),l=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(e,o){var s=t(),l=r(),d=_(),E=s?s.toStringTag:void 0;o.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":E&&E in Object(e)?l(e):d(e)}}}),d=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObject.js"(e,o){o.exports=function(e){var o=typeof e;return null!=e&&("object"==o||"function"==o)}}}),E=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isObjectLike.js"(e,o){o.exports=function(e){return null!=e&&"object"==typeof e}}}),n=e.__commonJS({"../../node_modules/.bun/lodash@4.17.21/node_modules/lodash/isSymbol.js"(e,o){var s=l(),t=E();o.exports=function(e){return"symbol"==typeof e||t(e)&&"[object Symbol]"==s(e)}}}),a="uds",S=`${a}-avatar-size`,u=`${a}-background-color`,x=`${a}-border-radius`,p=`${a}-border-width`,c=`${a}-drop-shadow`,i=`${a}-font`,m=`${a}-font-size`,O=`${a}-font-weight`,A=`${a}-font-slant`,b=`${a}-font-width`,L=`${a}-icon-size`,R=`${a}-line-color`,T=`${a}-line-height`,C=`${a}-letter-spacing`,I=`${a}-motion`,M=`${a}-spectrum-color`,N=`${a}-text-transform`,F=`${a}-color-mode-dark`,h=`${a}-color-mode-light`,f=`${a}-color-mode-system`,$=`${a}-color-mode-invert`,j=`${a}-scale-mode-xsmall`,D=`${a}-scale-mode-small`,P=`${a}-scale-mode-medium`,X=`${a}-scale-mode-large`,g=`${a}-scale-mode-xlarge`,v=`${a}-scale-mode-xxlarge`,y=`${a}-scale-mode-xxxlarge`,U=h,G=X,B=`--${a}-button-gap`,J=`--${a}-button-scale-effect`,H=`${J}-rest`,q=`${J}-hover`,k=`${J}-pressed`;/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.AVATAR_SIZE_PREFIX=S,exports.BACKGROUND_COLOR_PREFIX=u,exports.BORDER_RADIUS_PREFIX=x,exports.BORDER_WIDTH_PREFIX=p,exports.BUTTON_GAP_VAR=B,exports.BUTTON_SCALE_EFFECT=J,exports.BUTTON_SCALE_EFFECT_HOVER=q,exports.BUTTON_SCALE_EFFECT_PRESSED=k,exports.BUTTON_SCALE_EFFECT_REST=H,exports.DARK_COLOR_MODE_CLASSNAME=F,exports.DEFAULT_COLOR_MODE_CLASSNAME=U,exports.DEFAULT_SCALE_MODE_CLASSNAME=G,exports.DROP_SHADOW_PREFIX=c,exports.FONT_FAMILY_PREFIX=i,exports.FONT_SIZE_PREFIX=m,exports.FONT_SLANT_PREFIX=A,exports.FONT_WEIGHT_PREFIX=O,exports.FONT_WIDTH_PREFIX=b,exports.ICON_SIZE_PREFIX=L,exports.INVERT_COLOR_MODE_CLASSNAME=$,exports.LARGE_SCALE_MODE_CLASSNAME=X,exports.LETTER_SPACING_PREFIX=C,exports.LIGHT_COLOR_MODE_CLASSNAME=h,exports.LINE_COLOR_PREFIX=R,exports.LINE_HEIGHT_PREFIX=T,exports.MEDIUM_SCALE_MODE_CLASSNAME=P,exports.MOTION_PREFIX=I,exports.PSEUDO_STYLE_SELECTOR_MAP={hover:":hover:not([disabled])",pressed:":active:not([disabled])",disabled:":disabled",focused:":focus-visible",focusedWithin:":has(:focus-visible)",notDisabled:":not(:has(:disabled))"},exports.SMALL_SCALE_MODE_CLASSNAME=D,exports.SPECTRUM_COLOR_PREFIX=M,exports.SYSTEM_COLOR_MODE_CLASSNAME=f,exports.TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES={defaultBreakpoint:"uds-text-default",base:"uds-text-base",sm:"uds-text-sm",md:"uds-text-md",lg:"uds-text-lg",xl:"uds-text-xl","2xl":"uds-text-2xl"},exports.TEXT_RESPONSIVE_CLASSNAME="uds-text-responsive",exports.TEXT_TRANSFORM_PREFIX=N,exports.UDS_PREFIX=a,exports.XLARGE_SCALE_MODE_CLASSNAME=g,exports.XSMALL_SCALE_MODE_CLASSNAME=j,exports.XXLARGE_SCALE_MODE_CLASSNAME=v,exports.XXXLARGE_SCALE_MODE_CLASSNAME=y,exports.require_Symbol=t,exports.require_baseGetTag=l,exports.require_freeGlobal=o,exports.require_isObject=d,exports.require_isObjectLike=E,exports.require_isSymbol=n,exports.require_root=s;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Box as r}from"./chunk-
|
|
1
|
+
import{Box as r}from"./chunk-TY5JSXRZ.js";import{require_isFunction as e}from"./chunk-DXTANXUQ.js";import{__toESM as t}from"./chunk-GF4A6TFM.js";import{forwardRef as o,Children as a,cloneElement as n,isValidElement as c}from"react";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
2
2
|
var i=t(e(),1),l=(r,e)=>((r,e)=>{const t=(0,i.default)(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[t(e),r]:[r])})(a.toArray(r),r=>{const t=(0,i.default)(e)?e(r):e;return c(t)?n(t,{...t.props,key:t.key??`interspersed-${r}`}):null}),m=o(function({gap:e,children:t,separator:o,...a},n){return p(r,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...a,children:o?l(t,o):t})});m.displayName="HStack";var u=o(function({gap:e,children:t,separator:o,...a},n){return p(r,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...a,children:o?l(t,o):t})});u.displayName="VStack";export{m as HStack,u as VStack};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-
|
|
1
|
+
"use strict";var r=require("./chunk-MCRXAGQ4.cjs"),e=require("./chunk-6YXOYVTA.cjs"),t=require("./chunk-QLXJH36U.cjs"),n=require("react"),a=require("react/jsx-runtime"),c=t.__toESM(e.require_isFunction(),1),i=(r,e)=>((r,e)=>{const t=(0,c.default)(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[t(e),r]:[r])})(n.Children.toArray(r),r=>{const t=(0,c.default)(e)?e(r):e;return n.isValidElement(t)?n.cloneElement(t,{...t.props,key:t.key??`interspersed-${r}`}):null}),o=n.forwardRef(function({gap:e,children:t,separator:n,...c},o){return a.jsx(r.Box,{ref:o,flexDirection:"row",rowGap:e,columnGap:e,...c,children:n?i(t,n):t})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */o.displayName="HStack";var u=n.forwardRef(function({gap:e,children:t,separator:n,...c},o){return a.jsx(r.Box,{ref:o,flexDirection:"column",columnGap:e,rowGap:e,...c,children:n?i(t,n):t})});u.displayName="VStack",exports.HStack=o,exports.VStack=u;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createSlot as r,getStyles as l}from"./chunk-Q5LASIAY.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as a,jsxs as o}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e(function({className:r,asChild:e,onPress:a,onClick:o=a,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:x,alignItems:L,alignSelf:w,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:I,display:P,overflow:R,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:Y,spacingBottom:D,spacingEnd:X,spacingStart:q,spacingTop:Q,offset:F,offsetVertical:J,offsetHorizontal:K,offsetBottom:O,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...ar},or){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:x,alignItems:L,alignSelf:w,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:I,display:P,overflow:R,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:Y,spacingBottom:D,spacingEnd:X,spacingStart:q,spacingTop:Q,offset:F,offsetVertical:J,offsetHorizontal:K,offsetBottom:O,offsetEnd:U,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:or,onClick:o,tabIndex:0,...ar})});n.displayName="Pressable";var h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:o("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(a,{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(a,{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(a,{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(a,{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(a,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(a,{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(a,{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(a,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(a,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
|
|
1
|
+
import{createSlot as r,getStyles as l}from"./chunk-XLELSUQX.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as a,jsxs as o}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e(function({className:r,asChild:e,onPress:a,onClick:o=a,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:x,alignSelf:w,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:P,display:R,overflow:I,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:X,spacingBottom:D,spacingEnd:Y,spacingStart:q,spacingTop:Q,offset:U,offsetVertical:F,offsetHorizontal:J,offsetBottom:K,offsetEnd:O,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...ar},or){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:x,alignSelf:w,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:P,display:R,overflow:I,overflowX:k,overflowY:G,position:y,spacing:j,spacingHorizontal:N,spacingVertical:X,spacingBottom:D,spacingEnd:Y,spacingStart:q,spacingTop:Q,offset:U,offsetVertical:F,offsetHorizontal:J,offsetBottom:K,offsetEnd:O,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:or,onClick:o,tabIndex:0,...ar})});n.displayName="Pressable";var h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:o("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(a,{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(a,{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(a,{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(a,{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(a,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(a,{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(a,{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(a,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(a,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(a,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(a,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(a,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(a,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{})};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 e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-67NZP2EJ.cjs"),o=require("./chunk-QLXJH36U.cjs"),r=require("@yahoo/uds/fixtures"),t=require("@yahoo/uds/flags"),i=require("clsx"),a=require("tailwind-merge"),n=require("react"),s=require("react/jsx-runtime");/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function d(e){return"boolean"==typeof e?`${e}`:0===e?"0":e}var{useGetStylesCache:l,skipTailwindMerge:c}=t.getFeatureFlags();function p(e){const o=Object.create(null),r=Object.keys(e).sort();for(let t=0,i=r.length;t<i;t++){const i=r[t];void 0!==e[i]&&(o[i]=e[i])}return o}var f=a.extendTailwindMerge({extend:{theme:{borderColor:r.lineColors,borderWidth:r.borderWidthsWithElevation,borderRadius:r.borderRadii}},override:{classGroups:{"text-color":[{text:[...r.foregroundColors,...r.spectrumColors]}],"bg-color":[{bg:r.backgroundColors}],"font-family":[{font:["icons",...r.textVariants]}],leading:[{leading:r.textVariants}]},conflictingClassGroups:{}}}),u=(...e)=>{const o=i.clsx(e);return c?o:f(o)},h=e=>{const{base:o,variants:r,defaultVariants:t,compoundVariants:i}=e;return e=>{if(!e)return u(o);const{className:a,...n}=e;if(!r)return u(o,a);const s=[];for(const e in t){if(void 0===e)continue;if(void 0!==n[e])continue;const o=d(t[e]);s.push(r[e][o])}for(const e in n){if(void 0===e)continue;const o=d(n[e]);s.push(r[e][o])}if(!i)return u(o,s,a);let l="";for(const e of i){const{className:o,...r}=e;let i=!0;for(const e in r){const o=r[e];if(!((n[e]??t?.[e])===o)){i=!1;break}}i&&(l=u(l,o))}return u(o,s,l,a)}},m=h({variants:e.variants}),b=new Map,g=Symbol("getStylesCacheKey"),x=(e,o)=>{if(!l)return m(e);const r=(e=>{if(e[g])return e[g];const o=p(e);let r="";for(const e in o)r+=`${e}:${o[e]}|`;return e[g]=r,r})(e);if(b.has(r))return o?.(),b.get(r);const t=m(e);return b.set(r,t),t};function S(...e){return o=>e.forEach(e=>function(e,o){"function"==typeof e?e(o):null!=e&&(e.current=o)}(e,o))}function C(){const e=n.forwardRef((e,r)=>{const{children:i,...a}=e,d=n.Children.toArray(i),l=d.find(t);if(l){const e=l.props.children,t=d.map(o=>o===l?n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null:o);return s.jsx(o,{...a,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,t):null})}return s.jsx(o,{...a,ref:r,children:i})});e.displayName="Slot";const o=n.forwardRef((e,o)=>{const{children:r,...t}=e;return n.isValidElement(r)?n.cloneElement(r,{...i(t,r.props),ref:o?S(o,r.ref):r.ref}):n.Children.count(r)>1?n.Children.only(null):null});o.displayName="SlotClone";const r=({children:e})=>e;function t(e){return n.isValidElement(e)&&e.type===r}function i(e,o){const r={...o};for(const t in o){const i=e[t],a=o[t];/^on[A-Z]/.test(t)?i&&a?r[t]=(...e)=>{a(...e),i(...e)}:i&&(r[t]=i):"style"===t&&(r[t]={...i,...a})}return{...e,...r}}return e}var y=C(),v=n.forwardRef(function({asChild:e,as:o="div",className:r,backgroundColor:t,borderRadius:i,borderTopStartRadius:a,borderTopEndRadius:n,borderBottomStartRadius:d,borderBottomEndRadius:l,borderColor:c,borderStartColor:p,borderEndColor:f,borderTopColor:u,borderBottomColor:h,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:g,borderStartWidth:S,borderEndWidth:C,borderTopWidth:v,borderBottomWidth:w,alignContent:z,alignItems:B,alignSelf:W,flex:E,flexDirection:R,flexGrow:T,flexShrink:N,flexWrap:V,justifyContent:j,flexBasis:G,display:H="flex",overflow:k,overflowX:q,overflowY:I,position:F,spacing:X,spacingHorizontal:$,spacingVertical:A,spacingBottom:D,spacingEnd:M,spacingStart:Y,spacingTop:_,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:P,offsetEnd:Z,offsetStart:L,offsetTop:Q,columnGap:U,rowGap:ee,width:oe,height:re,dropShadow:te,insetShadow:ie,nestedBorderRadius:ae,nestedBorderRadiusSize:ne=(ae?i:void 0),nestedBorderRadiusSpacing:se=(ae?X:void 0),nestedBorderRadiusWidth:de=(ae?m:void 0),...le},ce){const pe=x({backgroundColor:t,borderRadius:i,borderTopStartRadius:a,borderTopEndRadius:n,borderBottomStartRadius:d,borderBottomEndRadius:l,nestedBorderRadius:ae,nestedBorderRadiusSize:ne,nestedBorderRadiusSpacing:se,nestedBorderRadiusWidth:de,borderColor:c,borderStartColor:p,borderEndColor:f,borderTopColor:u,borderBottomColor:h,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:g,borderStartWidth:S,borderEndWidth:C,borderTopWidth:v,borderBottomWidth:w,alignContent:z,alignItems:B,alignSelf:W,flex:E,flexDirection:R,flexGrow:T,flexShrink:N,flexWrap:V,justifyContent:j,flexBasis:G,display:H,overflow:k,overflowX:q,overflowY:I,position:F,spacing:X,spacingHorizontal:$,spacingVertical:A,spacingBottom:D,spacingEnd:M,spacingStart:Y,spacingTop:_,offset:J,offsetVertical:K,offsetHorizontal:O,offsetBottom:P,offsetEnd:Z,offsetStart:L,offsetTop:Q,columnGap:U,rowGap:ee,width:oe,height:re,dropShadow:te,insetShadow:ie,className:r}),fe=e?y:o;return s.jsx(fe,{className:pe,ref:ce,...le})});v.displayName="Box";var w=C(),z={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","display1/emphasized":"h1","display2/emphasized":"h1","display3/emphasized":"h1","title1/emphasized":"h1","title2/emphasized":"h2","title3/emphasized":"h3","title4/emphasized":"h4","headline1/emphasized":"h5","body1/emphasized":"p","label1/emphasized":"p","label2/emphasized":"p","label3/emphasized":"p","label4/emphasized":"p","caption1/emphasized":"p","caption2/emphasized":"p","legal1/emphasized":"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span","ui1/emphasized":"span","ui2/emphasized":"span","ui3/emphasized":"span","ui4/emphasized":"span","ui5/emphasized":"span","ui6/emphasized":"span",inherit:"p"},B=n.forwardRef(function({className:e,asChild:o,color:r="primary",variant:t="body1",as:i=z[t],fontFamily:a,fontSize:n,fontWeight:d,lineHeight:l,textTransform:c,textAlign:p,letterSpacing:f,backgroundColor:u,borderRadius:h,borderTopStartRadius:m,borderTopEndRadius:b,borderBottomStartRadius:g,borderBottomEndRadius:S,borderColor:C,borderStartColor:y,borderEndColor:v,borderTopColor:B,borderBottomColor:W,borderWidth:E,borderVerticalWidth:R,borderHorizontalWidth:T,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:G,alignContent:H,alignItems:k,alignSelf:q,flex:I,flexDirection:F,flexGrow:X,flexShrink:$,flexWrap:A,justifyContent:D,flexBasis:M,display:Y,overflow:_,overflowX:J,overflowY:K,position:O,spacing:P,spacingHorizontal:Z,spacingVertical:L,spacingBottom:Q,spacingEnd:U,spacingStart:ee,spacingTop:oe,offset:re,offsetVertical:te,offsetHorizontal:ie,offsetBottom:ae,offsetEnd:ne,offsetStart:se,offsetTop:de,columnGap:le,rowGap:ce,...pe},fe){const ue={...r&&"inherit"!==r?{color:r}:{},...t&&"inherit"!==t?{fontFamily:a??t,fontSize:n??t,fontWeight:d??t,lineHeight:l??t,textTransform:c??t,letterSpacing:f??t}:{},textAlign:p},he=x({className:e,...ue,backgroundColor:u,borderRadius:h,borderTopStartRadius:m,borderTopEndRadius:b,borderBottomStartRadius:g,borderBottomEndRadius:S,borderColor:C,borderStartColor:y,borderEndColor:v,borderTopColor:B,borderBottomColor:W,borderWidth:E,borderVerticalWidth:R,borderHorizontalWidth:T,borderStartWidth:N,borderEndWidth:V,borderTopWidth:j,borderBottomWidth:G,alignContent:H,alignItems:k,alignSelf:q,flex:I,flexDirection:F,flexGrow:X,flexShrink:$,flexWrap:A,justifyContent:D,flexBasis:M,display:Y,overflow:_,overflowX:J,overflowY:K,position:O,spacing:P,spacingHorizontal:Z,spacingVertical:L,spacingBottom:Q,spacingEnd:U,spacingStart:ee,spacingTop:oe,offset:re,offsetVertical:te,offsetHorizontal:ie,offsetBottom:ae,offsetEnd:ne,offsetStart:se,offsetTop:de,columnGap:le,rowGap:ce}),me=o?w:i;return s.jsx(me,{className:he,ref:fe,...pe})});B.displayName="Text";var W={xs:12,sm:16,md:24,lg:32},E=n.forwardRef(function({name:e,size:o="md",variant:r="outline",color:t="primary",className:i,...a},n){const d=e.metadata?.variants??[],l=d.includes(r)?r:d[0]??"fill",c="multicolor"===l,p=x({flex:"none",color:c?void 0:t,className:u(i,!c&&"[&_path]:fill-current")}),f=W[o];return s.jsx("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",width:f,height:f,viewBox:`0 0 ${f} ${f}`,"aria-hidden":"true",focusable:"false",className:p,...a,children:s.jsx(e,{size:o,variant:l})})});E.displayName="Icon";var R=o.__toESM(e.require_isFunction(),1),T=n.memo(function({icon:e,iconProps:o,className:r,...t}){if(!e)return null;const{className:i,...a}=o||{},d=u(r,i),l=e;if(l.metadata?.isSvgIcon)return s.jsx(E,{name:l,...a,...t,className:d});if((0,R.default)(e)){const r=e(o||{}),i=r?.props.className;return n.isValidElement(r)&&n.cloneElement(r,{...t,className:u(d,i)})}return n.isValidElement(e)&&n.cloneElement(e,{...a,...e.props,...t,className:u(d,e.props.className)})});T.displayName="IconSlot",
|
|
2
2
|
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Box=v,exports.Icon=E,exports.IconSlot=T,exports.Text=B,exports.createSlot=C,exports.cva=h,exports.cx=u,exports.getStyles=x,exports.getStylesCacheKeySymbol=g;
|
package/dist/client/Menu.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";var e=require("../chunk-
|
|
2
|
+
"use strict";var e=require("../chunk-3T7MTHXL.cjs"),t=require("../chunk-PVAHPU4A.cjs"),n=require("../chunk-XHDADABE.cjs"),a=require("../chunk-JUNV7OML.cjs"),r=require("../chunk-ZXZH6NST.cjs"),i=require("../chunk-QLXJH36U.cjs"),o=require("@ariakit/react"),s=require("@ariakit/react/menu"),c=require("@yahoo/uds/fixtures"),u=require("motion/react"),l=require("react"),d=require("react/jsx-runtime"),m={};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */i.__export(m,{Content:()=>v,Divider:()=>S,Item:()=>C,ItemCheckbox:()=>k,Provider:()=>j,Trigger:()=>V,useMenuContext:()=>s.useMenuContext,useMenuStore:()=>s.useMenuStore,useStoreState:()=>o.useStoreState});var f=u.m.create(n.VStack),p=5,g=.97,h={top:{x:0,y:p},bottom:{x:0,y:-5},left:{x:p,y:0},right:{x:-5,y:0}},x=e=>l.useMemo(()=>((e="bottom")=>{const[t="top"]=e?.split("-");return{closed:{...h[t],opacity:0,scale:g},open:{y:0,x:0,opacity:1,scale:1}}})(e),[e]),v=l.forwardRef(function({gap:e,spacing:t,spacingBottom:n,spacingEnd:a,spacingStart:i,spacingTop:m,gutter:p="1",backgroundColor:g="primary",borderRadius:h="md",borderColor:v,borderWidth:S="thin",overflow:b,dropShadow:I="lg",className:y,sameWidth:C,focusable:k,children:N,portalElement:M,portal:j=!0,disableAutoBorderRadius:V,nestedBorderRadius:R=!V,nestedBorderRadiusSize:w,nestedBorderRadiusSpacing:E,nestedBorderRadiusWidth:B,...P},A){const T=s.useMenuContext(),z=o.useStoreState(T,"open"),q=o.useStoreState(T,"mounted"),H=o.useStoreState(T,"currentPlacement"),D=o.useStoreState(T,"placement"),[L,O]=l.useState(H),[W,$]=l.useState(H);l.useEffect(()=>{D!==W&&$(D)},[D]),l.useEffect(()=>{H!==W&&$(H)},[H]),l.useEffect(()=>{q&&W!==L&&O(W)},[q,W,L]);const X=l.useMemo(()=>z&&q?"open":"closed",[z,q]),F=l.useMemo(()=>z?I:"none",[z,I]),G=x(W),U=l.useMemo(()=>c.spacingMap[p],[p]);return d.jsx(u.AnimatePresence,{initial:!1,children:d.jsx(s.Menu,{gutter:U,sameWidth:C,focusable:k,store:T,ref:A,portalElement:M,portal:j,...P,render:d.jsx(f,{backgroundColor:g,gap:e,spacing:t,spacingBottom:n,spacingEnd:a,spacingStart:i,spacingTop:m,borderRadius:h,borderColor:v,borderWidth:S,overflow:b,animate:X,variants:G,dropShadow:F,nestedBorderRadius:R,nestedBorderRadiusSize:w,nestedBorderRadiusSpacing:E,nestedBorderRadiusWidth:B,className:r.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",y),children:N})})})});v.displayName="MenuContent";var S=l.forwardRef(function({role:t="separator",contentPosition:n="start",gap:a="4",children:i,spacingVertical:o=(i?"2":"0"),spacingHorizontal:s=(i?"4":"0"),className:c,...u},l){const m={root:r.getStyles({menuDividerVariantRoot:"default",className:c}),text:r.getStyles({menuDividerVariantText:"default"}),line:r.getStyles({menuDividerVariantLine:"default"})};return d.jsx(e.DividerInternal,{ref:l,role:t,variant:"inherit",contentPosition:n,gap:a,spacingVertical:o,spacingHorizontal:s,className:m.root,layerClassNames:m,...u,children:i})});S.displayName="MenuDivider";var b="uds-menu-item",I={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},y=l.forwardRef(function({spacing:e="0",spacingBottom:a,spacingEnd:i,spacingHorizontal:o="4",spacingStart:s,spacingTop:c,spacingVertical:m="3.5",columnGap:f="2",className:p,children:g,endIcon:h,startIcon:x,hideEndIcon:v,active:S,disabled:y,as:C,name:k,alignItems:N="center",justifyContent:M="space-between",layerClassNames:j,slots:V,rootProps:R,...w},E){const B=l.Children.count(g)>1,P=(({active:e,disabled:t,className:n})=>r.cx(b,"flex","focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",e&&["[&:not([aria-checked])]:cursor-default"],t&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",n))({active:S,disabled:y,className:p}),A=r.getStyles({className:r.cx(`${b}-content truncate`,j?.text),textAlign:"start",...B&&{columnGap:f,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),T=l.useMemo(()=>({root:r.getStyles({menuSizeRoot:"default",flexDirection:"row",spacing:e,spacingBottom:a,spacingEnd:i,spacingHorizontal:o,spacingStart:s,spacingTop:c,spacingVertical:m,columnGap:f,alignItems:N,justifyContent:M,className:r.cx(P,j?.root)}),startIcon:r.getStyles({menuSizeStartIcon:"default",className:j?.startIcon}),endIcon:r.getStyles({menuSizeEndIcon:"default",className:j?.endIcon})}),[N,f,M,j?.endIcon,j?.root,j?.startIcon,P,e,a,i,o,s,c,m]),z=V?.root??(e=>d.jsx(t.Pressable,{...e,...w,onClick:t=>{e.onClick?.(t),w.onClick?.(t)}}));return d.jsxs(C,{ref:E,name:k??"",...R,render:z,disabled:y,className:T.root,children:[d.jsxs(n.HStack,{gap:f,alignItems:"center",width:"full",children:[d.jsx(u.AnimatePresence,{initial:!1,children:x&&d.jsx(u.m.span,{variants:I,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:d.jsx(r.IconSlot,{icon:x,className:T.startIcon,iconProps:{size:"sm",variant:S?"fill":"outline",color:"current"}})})}),d.jsx("span",{className:A,children:g})]}),d.jsx(u.AnimatePresence,{initial:!1,mode:"popLayout",children:!v&&h&&d.jsx(u.m.span,{variants:I,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:d.jsx(r.IconSlot,{icon:h,className:T.endIcon,iconProps:{size:"sm",variant:S?"fill":"outline",color:"current"}})})})]})});y.displayName="MenuItemBase";var C=l.forwardRef(function({active:e,hideOnClick:t,...n},a){const i={root:r.getStyles({menuItemVariantRoot:"default",menuItemVariantActiveRoot:e?"on":"off"}),text:r.getStyles({menuItemVariantText:"default",menuItemVariantActiveText:e?"on":"off"}),startIcon:r.getStyles({menuItemVariantIcon:"default",menuItemVariantActiveIcon:e?"on":"off"})};return d.jsx(y,{ref:a,as:s.MenuItem,active:e,layerClassNames:i,rootProps:{hideOnClick:t},...n})});C.displayName="MenuItem";var k=l.forwardRef(function({name:e,endIcon:n=t.e,checked:a,defaultChecked:i,hideOnClick:c,className:u,...m},f){const p=e,g=l.useRef(!1),h=s.useMenuContext(),x=o.useStoreState(h);l.useEffect(()=>{!g.current&&void 0!==i&&h&&(h.setValues(e=>({...e,[p]:i})),g.current=!0)},[h,i,p]);const v=l.useMemo(()=>{if(void 0!==a)return a;if(x?.items?.length){const e=x?.items.find(e=>e.element?.name===p);if(e?.element)return e.element.checked}const e=x?.values[p];return"boolean"==typeof e?e:i??!1},[x?.items,x?.values,p,a,i]),S=l.useCallback(e=>{void 0===a&&h?.setValues(t=>({...t,[p]:e.target.checked}))},[p,h,a]),b={root:r.getStyles({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:v?"on":"off"}),text:r.getStyles({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:v?"on":"off"}),startIcon:r.getStyles({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:v?"on":"off"}),endIcon:r.getStyles({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:v?"on":"off"})};return d.jsx(y,{ref:f,as:s.MenuItemCheckbox,hideEndIcon:!v,endIcon:n,active:v,className:r.cx("uds-menu-item-checkbox",u),layerClassNames:b,name:e,rootProps:{onChange:S,defaultChecked:i,checked:void 0!==a?a:void 0,hideOnClick:c},...m})});k.displayName="MenuItemCheckbox";var N=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},M=e=>{const[t,n]=l.useState(N);return l.useEffect(()=>{if(e?.explicit)return void n(e.explicit);const t=(e=>{const t=new MutationObserver(t=>{t.some(e=>"attributes"===e.type&&"dir"===e.attributeName)&&e()});return t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),t})(()=>{n(N())});return()=>t.disconnect()},[e?.explicit]),t},j=function({placement:e="bottom",rtl:t,...n}){const r=M({explicit:t}),i=((e,t)=>{const n=t?.rtl;if("start"===e)return n?"right":"left";if("end"===e)return n?"left":"right";if(e?.includes("-")){const[t,a]=e.split("-");if(!("start"!==t&&"end"!==t||"top"!==a&&"bottom"!==a))return`${"start"===t?n?"right":"left":n?"left":"right"}-${"bottom"===a?"end":"start"}`;if("top"===t||"bottom"===t)return`${t}-${"start"===a?n?"end":"start":n?"start":"end"}`}return e})(e,{rtl:r});return d.jsx(a.SpringMotionConfig,{children:d.jsx(s.MenuProvider,{placement:i,rtl:r,...n})})};j.displayName="MenuProvider";var V=l.forwardRef(function({asChild:e,children:t,className:n,...a},i){const o=l.useRef(null),c=e?{render:d.jsx(r.Box,{asChild:!0,ref:o,className:"uds-ring h-fit w-fit",children:t})}:{children:t},u=l.useCallback(()=>{const e=o.current?.firstChild;e instanceof HTMLElement&&"function"==typeof e.focus&&e.focus()},[o]);return d.jsx(s.MenuButton,{onFocus:u,onFocusVisible:u,ref:i,className:r.cx("uds-menu-trigger",n),...c,...a})});V.displayName="MenuTrigger",exports.Menu=m;
|
package/dist/client/Menu.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{DividerInternal as e}from"../chunk-
|
|
3
|
-
var
|
|
2
|
+
import{DividerInternal as e}from"../chunk-C6TJ654O.js";import{e as t,Pressable as n}from"../chunk-X3I2OBBL.js";import{VStack as a,HStack as o}from"../chunk-ZQANINIC.js";import{SpringMotionConfig as i}from"../chunk-MWVS3EYU.js";import{cx as r,getStyles as s,IconSlot as c,Box as d}from"../chunk-TY5JSXRZ.js";import{__export as l}from"../chunk-GF4A6TFM.js";import{useStoreState as u}from"@ariakit/react";import{useMenuStore as m,useMenuContext as p,Menu as f,MenuItem as h,MenuItemCheckbox as g,MenuProvider as v,MenuButton as I}from"@ariakit/react/menu";import{spacingMap as b}from"@yahoo/uds/fixtures";import{m as x,AnimatePresence as C}from"motion/react";import{forwardRef as N,useState as k,useEffect as y,useMemo as V,Children as S,useRef as R,useCallback as M}from"react";import{jsx as w,jsxs as B}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
|
3
|
+
var E={};l(E,{Content:()=>O,Divider:()=>W,Item:()=>$,ItemCheckbox:()=>G,Provider:()=>X,Trigger:()=>Y,useMenuContext:()=>p,useMenuStore:()=>m,useStoreState:()=>u});var T=x.create(a),z=5,A=.97,P={top:{x:0,y:z},bottom:{x:0,y:-5},left:{x:z,y:0},right:{x:-5,y:0}},j=e=>V(()=>((e="bottom")=>{const[t="top"]=e?.split("-");return{closed:{...P[t],opacity:0,scale:A},open:{y:0,x:0,opacity:1,scale:1}}})(e),[e]),O=N(function({gap:e,spacing:t,spacingBottom:n,spacingEnd:a,spacingStart:o,spacingTop:i,gutter:s="1",backgroundColor:c="primary",borderRadius:d="md",borderColor:l,borderWidth:m="thin",overflow:h,dropShadow:g="lg",className:v,sameWidth:I,focusable:x,children:N,portalElement:S,portal:R=!0,disableAutoBorderRadius:M,nestedBorderRadius:B=!M,nestedBorderRadiusSize:E,nestedBorderRadiusSpacing:z,nestedBorderRadiusWidth:A,...P},O){const W=p(),D=u(W,"open"),F=u(W,"mounted"),H=u(W,"currentPlacement"),$=u(W,"placement"),[G,L]=k(H),[J,X]=k(H);y(()=>{$!==J&&X($)},[$]),y(()=>{H!==J&&X(H)},[H]),y(()=>{F&&J!==G&&L(J)},[F,J,G]);const Y=V(()=>D&&F?"open":"closed",[D,F]),Z=V(()=>D?g:"none",[D,g]),Q=j(J),U=V(()=>b[s],[s]);return w(C,{initial:!1,children:w(f,{gutter:U,sameWidth:I,focusable:x,store:W,ref:O,portalElement:S,portal:R,...P,render:w(T,{backgroundColor:c,gap:e,spacing:t,spacingBottom:n,spacingEnd:a,spacingStart:o,spacingTop:i,borderRadius:d,borderColor:l,borderWidth:m,overflow:h,animate:Y,variants:Q,dropShadow:Z,nestedBorderRadius:B,nestedBorderRadiusSize:E,nestedBorderRadiusSpacing:z,nestedBorderRadiusWidth:A,className:r("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",v),children:N})})})});O.displayName="MenuContent";var W=N(function({role:t="separator",contentPosition:n="start",gap:a="4",children:o,spacingVertical:i=(o?"2":"0"),spacingHorizontal:r=(o?"4":"0"),className:c,...d},l){const u={root:s({menuDividerVariantRoot:"default",className:c}),text:s({menuDividerVariantText:"default"}),line:s({menuDividerVariantLine:"default"})};return w(e,{ref:l,role:t,variant:"inherit",contentPosition:n,gap:a,spacingVertical:i,spacingHorizontal:r,className:u.root,layerClassNames:u,...d,children:o})});W.displayName="MenuDivider";var D="uds-menu-item",F={visible:{scale:1,opacity:1},hidden:{scale:.7,opacity:0}},H=N(function({spacing:e="0",spacingBottom:t,spacingEnd:a,spacingHorizontal:i="4",spacingStart:d,spacingTop:l,spacingVertical:u="3.5",columnGap:m="2",className:p,children:f,endIcon:h,startIcon:g,hideEndIcon:v,active:I,disabled:b,as:N,name:k,alignItems:y="center",justifyContent:R="space-between",layerClassNames:M,slots:E,rootProps:T,...z},A){const P=S.count(f)>1,j=(({active:e,disabled:t,className:n})=>r(D,"flex","focus-visible:text-brand","focus-visible:bg-brand-secondary","focus-visible:z-10","uds-ring","!-outline-offset-2",e&&["[&:not([aria-checked])]:cursor-default"],t&&"opacity-25 cursor-not-allowed","duration-20 transition-[font-variation-settings] ease-in-out","z-0",n))({active:I,disabled:b,className:p}),O=s({className:r(`${D}-content truncate`,M?.text),textAlign:"start",...P&&{columnGap:m,display:"flex",alignItems:"center",width:"full",justifyContent:"space-between"}}),W=V(()=>({root:s({menuSizeRoot:"default",flexDirection:"row",spacing:e,spacingBottom:t,spacingEnd:a,spacingHorizontal:i,spacingStart:d,spacingTop:l,spacingVertical:u,columnGap:m,alignItems:y,justifyContent:R,className:r(j,M?.root)}),startIcon:s({menuSizeStartIcon:"default",className:M?.startIcon}),endIcon:s({menuSizeEndIcon:"default",className:M?.endIcon})}),[y,m,R,M?.endIcon,M?.root,M?.startIcon,j,e,t,a,i,d,l,u]);return B(N,{ref:A,name:k??"",...T,render:E?.root??(e=>w(n,{...e,...z,onClick:t=>{e.onClick?.(t),z.onClick?.(t)}})),disabled:b,className:W.root,children:[B(o,{gap:m,alignItems:"center",width:"full",children:[w(C,{initial:!1,children:g&&w(x.span,{variants:F,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-start-icon",children:w(c,{icon:g,className:W.startIcon,iconProps:{size:"sm",variant:I?"fill":"outline",color:"current"}})})}),w("span",{className:O,children:f})]}),w(C,{initial:!1,mode:"popLayout",children:!v&&h&&w(x.span,{variants:F,initial:"hidden",animate:"visible",exit:"hidden",className:"uds-end-icon",children:w(c,{icon:h,className:W.endIcon,iconProps:{size:"sm",variant:I?"fill":"outline",color:"current"}})})})]})});H.displayName="MenuItemBase";var $=N(function({active:e,hideOnClick:t,...n},a){const o={root:s({menuItemVariantRoot:"default",menuItemVariantActiveRoot:e?"on":"off"}),text:s({menuItemVariantText:"default",menuItemVariantActiveText:e?"on":"off"}),startIcon:s({menuItemVariantIcon:"default",menuItemVariantActiveIcon:e?"on":"off"})};return w(H,{ref:a,as:h,active:e,layerClassNames:o,rootProps:{hideOnClick:t},...n})});$.displayName="MenuItem";var G=N(function({name:e,endIcon:n=t,checked:a,defaultChecked:o,hideOnClick:i,className:c,...d},l){const m=e,f=R(!1),h=p(),v=u(h);y(()=>{!f.current&&void 0!==o&&h&&(h.setValues(e=>({...e,[m]:o})),f.current=!0)},[h,o,m]);const I=V(()=>{if(void 0!==a)return a;if(v?.items?.length){const e=v?.items.find(e=>e.element?.name===m);if(e?.element)return e.element.checked}const e=v?.values[m];return"boolean"==typeof e?e:o??!1},[v?.items,v?.values,m,a,o]),b=M(e=>{void 0===a&&h?.setValues(t=>({...t,[m]:e.target.checked}))},[m,h,a]),x={root:s({menuItemCheckboxVariantRoot:"default",menuItemCheckboxVariantActiveRoot:I?"on":"off"}),text:s({menuItemCheckboxVariantText:"default",menuItemCheckboxVariantActiveText:I?"on":"off"}),startIcon:s({menuItemCheckboxVariantStartIcon:"default",menuItemCheckboxVariantActiveStartIcon:I?"on":"off"}),endIcon:s({menuItemCheckboxVariantEndIcon:"default",menuItemCheckboxVariantActiveEndIcon:I?"on":"off"})};return w(H,{ref:l,as:g,hideEndIcon:!I,endIcon:n,active:I,className:r("uds-menu-item-checkbox",c),layerClassNames:x,name:e,rootProps:{onChange:b,defaultChecked:o,checked:void 0!==a?a:void 0,hideOnClick:i},...d})});G.displayName="MenuItemCheckbox";var L=()=>{if("undefined"==typeof document)return!1;return"rtl"===getComputedStyle(document.documentElement).direction},J=e=>{const[t,n]=k(L);return y(()=>{if(e?.explicit)return void n(e.explicit);const t=(e=>{const t=new MutationObserver(t=>{t.some(e=>"attributes"===e.type&&"dir"===e.attributeName)&&e()});return t.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),t})(()=>{n(L())});return()=>t.disconnect()},[e?.explicit]),t},X=function({placement:e="bottom",rtl:t,...n}){const a=J({explicit:t}),o=((e,t)=>{const n=t?.rtl;if("start"===e)return n?"right":"left";if("end"===e)return n?"left":"right";if(e?.includes("-")){const[t,a]=e.split("-");if(!("start"!==t&&"end"!==t||"top"!==a&&"bottom"!==a))return`${"start"===t?n?"right":"left":n?"left":"right"}-${"bottom"===a?"end":"start"}`;if("top"===t||"bottom"===t)return`${t}-${"start"===a?n?"end":"start":n?"start":"end"}`}return e})(e,{rtl:a});return w(i,{children:w(v,{placement:o,rtl:a,...n})})};X.displayName="MenuProvider";var Y=N(function({asChild:e,children:t,className:n,...a},o){const i=R(null),s=e?{render:w(d,{asChild:!0,ref:i,className:"uds-ring h-fit w-fit",children:t})}:{children:t},c=M(()=>{const e=i.current?.firstChild;e instanceof HTMLElement&&"function"==typeof e.focus&&e.focus()},[i]);return w(I,{onFocus:c,onFocusVisible:c,ref:o,className:r("uds-menu-trigger",n),...s,...a})});Y.displayName="MenuTrigger";export{E as Menu};
|