@yahoo/uds 3.41.1 → 3.41.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Box-CfWJXdeW.d.cts → Box-BQypZMqK.d.cts} +1 -1
- package/dist/{Box-BW0Ct5XD.d.ts → Box-DVBNsZP-.d.ts} +1 -1
- package/dist/{Pressable-Nqmlz_FD.d.ts → Pressable-BUnPR5Jz.d.ts} +1 -1
- package/dist/{Pressable-DZi-Ay9z.d.cts → Pressable-DszdqWG8.d.cts} +1 -1
- package/dist/{Text-Di0xLhJx.d.cts → Text-BiRnIMq9.d.cts} +2 -2
- package/dist/{Text-CXdUVeWA.d.ts → Text-_YQwqzEU.d.ts} +2 -2
- package/dist/{VStack-By9oddRo.d.ts → VStack-6HCMXOVA.d.ts} +2 -2
- package/dist/{VStack-CEArkoYF.d.cts → VStack-DIEn4Ej-.d.cts} +2 -2
- package/dist/{chunk-Y5LHP2WU.cjs → chunk-246TFVNK.cjs} +1 -1
- package/dist/{chunk-PI6G7IEW.js → chunk-2H43JYG6.js} +3 -3
- package/dist/{chunk-BG6J7LLT.cjs → chunk-5QARLKER.cjs} +1 -1
- package/dist/chunk-6B367G47.js +1 -0
- package/dist/{chunk-7RZHMPND.cjs → chunk-6SGL2RSZ.cjs} +1 -1
- package/dist/{chunk-BDJ33DB7.js → chunk-7NIY4P3T.js} +1 -1
- package/dist/{chunk-R7QLT7IG.js → chunk-CON7PCS7.js} +1 -1
- package/dist/{chunk-GSEOWOTM.js → chunk-EAWAEOIH.js} +2 -2
- package/dist/{chunk-LWXI5KNF.cjs → chunk-HIDTGATZ.cjs} +1 -1
- package/dist/chunk-IEGNLDIQ.cjs +1 -0
- package/dist/{chunk-UO7B7MHG.cjs → chunk-LDTPSM22.cjs} +1 -1
- package/dist/chunk-LJA4GYGV.js +1 -0
- package/dist/{chunk-AQQHB7VE.js → chunk-M6OTZ44P.js} +2 -2
- package/dist/{chunk-TVB5Y4GA.js → chunk-R7H6N4CT.js} +1 -1
- package/dist/{chunk-WILCJRXV.js → chunk-RMBR7QGP.js} +1 -1
- package/dist/{chunk-5RTXYZAR.cjs → chunk-VB3FJZDC.cjs} +1 -1
- package/dist/{chunk-IAD33G4C.cjs → chunk-VLK7EUQY.cjs} +2 -2
- package/dist/{chunk-3KCKTFBM.cjs → chunk-XVDW53GP.cjs} +1 -1
- package/dist/chunk-YAQXHV4P.cjs +1 -0
- package/dist/{chunk-PMTM3ZON.js → chunk-ZHZZBPTD.js} +1 -1
- package/dist/client/Menu.cjs +2 -2
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +5 -5
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +1 -1
- package/dist/defaultTokensConfig.cjs +1 -1
- package/dist/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/defaultTokensConfig.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +1 -1
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +1 -1
- package/dist/experimental/client/index.cjs +1 -1
- package/dist/experimental/client/index.js +1 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/{index-C23ezu3B.d.cts → index-B0O0u_Hs.d.cts} +8 -8
- package/dist/{index-BZR0-8yC.d.ts → index-OWLRM0RK.d.ts} +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +108 -106
- package/dist/index.d.ts +108 -106
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +262 -262
- package/dist/tokens/index.d.ts +262 -262
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/package.json +1 -1
- package/cli/FullWidthClassToProp.mock.tsx +0 -17
- package/dist/chunk-EIPNPQY4.cjs +0 -1
- package/dist/chunk-ELYY2QWM.cjs +0 -1
- package/dist/chunk-HOAXINBM.js +0 -1
- package/dist/chunk-TJ3N7GMT.js +0 -1
- package/dist/{types-A7dQQHNE.d.cts → types-DK15J9TU.d.cts} +2126 -2126
- package/dist/{types-A7dQQHNE.d.ts → types-DK15J9TU.d.ts} +2126 -2126
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { a as UniversalBoxProps } from './types-
|
2
|
+
import { a as UniversalBoxProps } from './types-DK15J9TU.cjs';
|
3
3
|
|
4
4
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
5
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { a as UniversalBoxProps } from './types-
|
2
|
+
import { a as UniversalBoxProps } from './types-DK15J9TU.js';
|
3
3
|
|
4
4
|
type DivProps = React.HTMLAttributes<HTMLDivElement>;
|
5
5
|
interface BoxProps extends UniversalBoxProps, DivProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { U as UniversalPressableProps } from './types-
|
2
|
+
import { U as UniversalPressableProps } from './types-DK15J9TU.js';
|
3
3
|
|
4
4
|
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
5
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { U as UniversalPressableProps } from './types-
|
2
|
+
import { U as UniversalPressableProps } from './types-DK15J9TU.cjs';
|
3
3
|
|
4
4
|
type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
|
5
5
|
interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { InputHTMLAttributes, Ref } from 'react';
|
3
|
-
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-
|
3
|
+
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-DK15J9TU.cjs';
|
4
4
|
import { HTMLMotionProps } from 'motion/react';
|
5
|
-
import { B as BoxProps } from './Box-
|
5
|
+
import { B as BoxProps } from './Box-BQypZMqK.cjs';
|
6
6
|
|
7
7
|
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
8
|
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { InputHTMLAttributes, Ref } from 'react';
|
3
|
-
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-
|
3
|
+
import { l as UniversalInputProps, m as IconPropsWithSVGProps, n as UniversalTextProps } from './types-DK15J9TU.js';
|
4
4
|
import { HTMLMotionProps } from 'motion/react';
|
5
|
-
import { B as BoxProps } from './Box-
|
5
|
+
import { B as BoxProps } from './Box-DVBNsZP-.js';
|
6
6
|
|
7
7
|
type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
|
8
8
|
type NativeInputProps = Omit<HtmlInputProps, 'height' | 'size' | 'width' | 'color' | 'required'>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { p as UniversalStackProps, q as UniversalDividerProps } from './types-
|
3
|
-
import { B as BoxProps, D as DivProps } from './Box-
|
2
|
+
import { p as UniversalStackProps, q as UniversalDividerProps } from './types-DK15J9TU.js';
|
3
|
+
import { B as BoxProps, D as DivProps } from './Box-DVBNsZP-.js';
|
4
4
|
|
5
5
|
interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
|
6
6
|
layerClassNames?: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as react from 'react';
|
2
|
-
import { p as UniversalStackProps, q as UniversalDividerProps } from './types-
|
3
|
-
import { B as BoxProps, D as DivProps } from './Box-
|
2
|
+
import { p as UniversalStackProps, q as UniversalDividerProps } from './types-DK15J9TU.cjs';
|
3
|
+
import { B as BoxProps, D as DivProps } from './Box-BQypZMqK.cjs';
|
4
4
|
|
5
5
|
interface DividerCoreProps extends Omit<BoxProps, 'color' | 'borderColor' | 'borderWidth'>, Omit<UniversalStackProps, 'separator' | 'asChild'>, Omit<UniversalDividerProps, 'variant'> {
|
6
6
|
layerClassNames?: {
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-J7PUOUXC.cjs"),o=require("./chunk-5RTXYZAR.cjs"),t=require("./chunk-QLXJH36U.cjs"),r=require("@yahoo/uds/fixtures"),a=t.__commonJS({"../../node_modules/lodash/lowerCase.js"(e,t){var r=o.require_createCompounder()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});t.exports=r}}),n=t.__commonJS({"../../node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),s=t.__commonJS({"../../node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),l=t.__commonJS({"../../node_modules/lodash/_assocIndexOf.js"(e,o){var t=s();o.exports=function(e,o){for(var r=e.length;r--;)if(t(e[r][0],o))return r;return-1}}}),i=t.__commonJS({"../../node_modules/lodash/_listCacheDelete.js"(e,o){var t=l(),r=Array.prototype.splice;o.exports=function(e){var o=this.__data__,a=t(o,e);return!(a<0)&&(a==o.length-1?o.pop():r.call(o,a,1),--this.size,!0)}}}),u=t.__commonJS({"../../node_modules/lodash/_listCacheGet.js"(e,o){var t=l();o.exports=function(e){var o=this.__data__,r=t(o,e);return r<0?void 0:o[r][1]}}}),c=t.__commonJS({"../../node_modules/lodash/_listCacheHas.js"(e,o){var t=l();o.exports=function(e){return t(this.__data__,e)>-1}}}),p=t.__commonJS({"../../node_modules/lodash/_listCacheSet.js"(e,o){var t=l();o.exports=function(e,o){var r=this.__data__,a=t(r,e);return a<0?(++this.size,r.push([e,o])):r[a][1]=o,this}}}),f=t.__commonJS({"../../node_modules/lodash/_ListCache.js"(e,o){var t=n(),r=i(),a=u(),s=c(),l=p();function f(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}f.prototype.clear=t,f.prototype.delete=r,f.prototype.get=a,f.prototype.has=s,f.prototype.set=l,o.exports=f}}),d=t.__commonJS({"../../node_modules/lodash/_stackClear.js"(e,o){var t=f();o.exports=function(){this.__data__=new t,this.size=0}}}),m=t.__commonJS({"../../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}}}),v=t.__commonJS({"../../node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),y=t.__commonJS({"../../node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),h=t.__commonJS({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=o.require_getNative()(Object,"create");t.exports=r}}),b=t.__commonJS({"../../node_modules/lodash/_hashClear.js"(e,o){var t=h();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),_=t.__commonJS({"../../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}}}),g=t.__commonJS({"../../node_modules/lodash/_hashGet.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var a=o[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(o,e)?o[e]:void 0}}}),w=t.__commonJS({"../../node_modules/lodash/_hashHas.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:r.call(o,e)}}}),S=t.__commonJS({"../../node_modules/lodash/_hashSet.js"(e,o){var t=h();o.exports=function(e,o){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),x=t.__commonJS({"../../node_modules/lodash/_Hash.js"(e,o){var t=b(),r=_(),a=g(),n=w(),s=S();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),C=t.__commonJS({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=x(),a=f(),n=o.require_Map();t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(n||a),string:new r}}}}),j=t.__commonJS({"../../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}}}),$=t.__commonJS({"../../node_modules/lodash/_getMapData.js"(e,o){var t=j();o.exports=function(e,o){var r=e.__data__;return t(o)?r["string"==typeof o?"string":"hash"]:r.map}}}),P=t.__commonJS({"../../node_modules/lodash/_mapCacheDelete.js"(e,o){var t=$();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),k=t.__commonJS({"../../node_modules/lodash/_mapCacheGet.js"(e,o){var t=$();o.exports=function(e){return t(this,e).get(e)}}}),W=t.__commonJS({"../../node_modules/lodash/_mapCacheHas.js"(e,o){var t=$();o.exports=function(e){return t(this,e).has(e)}}}),O=t.__commonJS({"../../node_modules/lodash/_mapCacheSet.js"(e,o){var t=$();o.exports=function(e,o){var r=t(this,e),a=r.size;return r.set(e,o),this.size+=r.size==a?0:1,this}}}),A=t.__commonJS({"../../node_modules/lodash/_MapCache.js"(e,o){var t=C(),r=P(),a=k(),n=W(),s=O();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),J=t.__commonJS({"../../node_modules/lodash/_stackSet.js"(e,t){var r=f(),a=o.require_Map(),n=A();t.exports=function(e,o){var t=this.__data__;if(t instanceof r){var s=t.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++t.size,this;t=this.__data__=new n(s)}return t.set(e,o),this.size=t.size,this}}}),V=t.__commonJS({"../../node_modules/lodash/_Stack.js"(e,o){var t=f(),r=d(),a=m(),n=v(),s=y(),l=J();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=r,i.prototype.delete=a,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),T=t.__commonJS({"../../node_modules/lodash/_defineProperty.js"(e,t){var r=o.require_getNative(),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=a}}),F=t.__commonJS({"../../node_modules/lodash/_baseAssignValue.js"(e,o){var t=T();o.exports=function(e,o,r){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[o]=r}}}),E=t.__commonJS({"../../node_modules/lodash/_assignMergeValue.js"(e,o){var t=F(),r=s();o.exports=function(e,o,a){(void 0!==a&&!r(e[o],a)||void 0===a&&!(o in e))&&t(e,o,a)}}}),M=t.__commonJS({"../../node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,r){for(var a=-1,n=Object(o),s=r(o),l=s.length;l--;){var i=s[e?l:++a];if(!1===t(n[i],i,n))break}return o}}}}),N=t.__commonJS({"../../node_modules/lodash/_baseFor.js"(e,o){var t=M()();o.exports=t}}),q=t.__commonJS({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var r=o.require_root(),a="object"==typeof e&&e&&!e.nodeType&&e,n=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=n&&n.exports===a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,r=l?l(t):new e.constructor(t);return e.copy(r),r}}}),K=t.__commonJS({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=o.require_root().Uint8Array;t.exports=r}}),D=t.__commonJS({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=K();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),L=t.__commonJS({"../../node_modules/lodash/_cloneTypedArray.js"(e,o){var t=D();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),z=t.__commonJS({"../../node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,r=e.length;for(o||(o=Array(r));++t<r;)o[t]=e[t];return o}}}),R=t.__commonJS({"../../node_modules/lodash/_baseCreate.js"(e,t){var r=o.require_isObject(),a=Object.create,n=function(){function e(){}return function(o){if(!r(o))return{};if(a)return a(o);e.prototype=o;var t=new e;return e.prototype=void 0,t}}();t.exports=n}}),Y=t.__commonJS({"../../node_modules/lodash/_getPrototype.js"(e,t){var r=o.require_overArg()(Object.getPrototypeOf,Object);t.exports=r}}),B=t.__commonJS({"../../node_modules/lodash/_initCloneObject.js"(e,t){var r=R(),a=Y(),n=o.require_isPrototype();t.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:r(a(e))}}}),X=t.__commonJS({"../../node_modules/lodash/isArrayLikeObject.js"(e,t){var r=o.require_isArrayLike(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&r(e)}}}),I=t.__commonJS({"../../node_modules/lodash/isPlainObject.js"(e,t){var r=o.require_baseGetTag(),a=Y(),n=o.require_isObjectLike(),s=Function.prototype,l=Object.prototype,i=s.toString,u=l.hasOwnProperty,c=i.call(Object);t.exports=function(e){if(!n(e)||"[object Object]"!=r(e))return!1;var o=a(e);if(null===o)return!0;var t=u.call(o,"constructor")&&o.constructor;return"function"==typeof t&&t instanceof t&&i.call(t)==c}}}),U=t.__commonJS({"../../node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),H=t.__commonJS({"../../node_modules/lodash/_assignValue.js"(e,o){var t=F(),r=s(),a=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];a.call(e,o)&&r(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),G=t.__commonJS({"../../node_modules/lodash/_copyObject.js"(e,o){var t=H(),r=F();o.exports=function(e,o,a,n){var s=!a;a||(a={});for(var l=-1,i=o.length;++l<i;){var u=o[l],c=n?n(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),s?r(a,u,c):t(a,u,c)}return a}}}),Q=t.__commonJS({"../../node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,r=Array(e);++t<e;)r[t]=o(t);return r}}}),Z=t.__commonJS({"../../node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var r=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),ee=t.__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=Q(),a=o.require_isArguments(),n=o.require_isArray(),s=o.require_isBuffer(),l=Z(),i=o.require_isTypedArray(),u=Object.prototype.hasOwnProperty;t.exports=function(e,o){var t=n(e),c=!t&&a(e),p=!t&&!c&&s(e),f=!t&&!c&&!p&&i(e),d=t||c||p||f,m=d?r(e.length,String):[],v=m.length;for(var y in e)!o&&!u.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,v))||m.push(y);return m}}}),oe=t.__commonJS({"../../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}}}),te=t.__commonJS({"../../node_modules/lodash/_baseKeysIn.js"(e,t){var r=o.require_isObject(),a=o.require_isPrototype(),n=oe(),s=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return n(e);var o=a(e),t=[];for(var l in e)("constructor"!=l||!o&&s.call(e,l))&&t.push(l);return t}}}),re=t.__commonJS({"../../node_modules/lodash/keysIn.js"(e,t){var r=ee(),a=te(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e,!0):a(e)}}}),ae=t.__commonJS({"../../node_modules/lodash/toPlainObject.js"(e,o){var t=G(),r=re();o.exports=function(e){return t(e,r(e))}}}),ne=t.__commonJS({"../../node_modules/lodash/_baseMergeDeep.js"(e,t){var r=E(),a=q(),n=L(),s=z(),l=B(),i=o.require_isArguments(),u=o.require_isArray(),c=X(),p=o.require_isBuffer(),f=o.require_isFunction(),d=o.require_isObject(),m=I(),v=o.require_isTypedArray(),y=U(),h=ae();t.exports=function(e,o,t,b,_,g,w){var S=y(e,t),x=y(o,t),C=w.get(x);if(C)r(e,t,C);else{var j=g?g(S,x,t+"",e,o,w):void 0,$=void 0===j;if($){var P=u(x),k=!P&&p(x),W=!P&&!k&&v(x);j=x,P||k||W?u(S)?j=S:c(S)?j=s(S):k?($=!1,j=a(x,!0)):W?($=!1,j=n(x,!0)):j=[]:m(x)||i(x)?(j=S,i(S)?j=h(S):d(S)&&!f(S)||(j=l(x))):$=!1}$&&(w.set(x,j),_(j,x,b,g,w),w.delete(x)),r(e,t,j)}}}}),se=t.__commonJS({"../../node_modules/lodash/_baseMerge.js"(e,t){var r=V(),a=E(),n=N(),s=ne(),l=o.require_isObject(),i=re(),u=U();t.exports=function e(o,t,c,p,f){o!==t&&n(t,function(n,i){if(f||(f=new r),l(n))s(o,t,i,c,e,p,f);else{var d=p?p(u(o,i),n,i+"",o,t,f):void 0;void 0===d&&(d=n),a(o,i,d)}},i)}}}),le=t.__commonJS({"../../node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),ie=t.__commonJS({"../../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)}}}),ue=t.__commonJS({"../../node_modules/lodash/_overRest.js"(e,o){var t=ie(),r=Math.max;o.exports=function(e,o,a){return o=r(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=r(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]=a(i),t(e,this,u)}}}}),ce=t.__commonJS({"../../node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),pe=t.__commonJS({"../../node_modules/lodash/_baseSetToString.js"(e,o){var t=ce(),r=T(),a=le(),n=r?function(e,o){return r(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:a;o.exports=n}}),fe=t.__commonJS({"../../node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,r=0;return function(){var a=t(),n=16-(a-r);if(r=a,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),de=t.__commonJS({"../../node_modules/lodash/_setToString.js"(e,o){var t=pe(),r=fe()(t);o.exports=r}}),me=t.__commonJS({"../../node_modules/lodash/_baseRest.js"(e,o){var t=le(),r=ue(),a=de();o.exports=function(e,o){return a(r(e,o,t),e+"")}}}),ve=t.__commonJS({"../../node_modules/lodash/_isIterateeCall.js"(e,t){var r=s(),a=o.require_isArrayLike(),n=Z(),l=o.require_isObject();t.exports=function(e,o,t){if(!l(t))return!1;var s=typeof o;return!!("number"==s?a(t)&&n(o,t.length):"string"==s&&o in t)&&r(t[o],e)}}}),ye=t.__commonJS({"../../node_modules/lodash/_createAssigner.js"(e,o){var t=me(),r=ve();o.exports=function(e){return t(function(o,t){var a=-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&&r(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++a<n;){var i=t[a];i&&e(o,i,a,s)}return o})}}}),he=t.__commonJS({"../../node_modules/lodash/mergeWith.js"(e,o){var t=se(),r=ye()(function(e,o,r,a){t(e,o,r,a)});o.exports=r}}),be=t.__commonJS({"../../node_modules/lodash/_baseToPairs.js"(e,t){var r=o.require_arrayMap();t.exports=function(e,o){return r(o,function(o){return[o,e[o]]})}}}),_e=t.__commonJS({"../../node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,r){t[++o]=[r,e]}),t}}}),ge=t.__commonJS({"../../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}}}),we=t.__commonJS({"../../node_modules/lodash/_createToPairs.js"(e,t){var r=be(),a=o.require_getTag(),n=_e(),s=ge();t.exports=function(e){return function(o){var t=a(o);return"[object Map]"==t?n(o):"[object Set]"==t?s(o):r(o,e(o))}}}}),Se=t.__commonJS({"../../node_modules/lodash/keys.js"(e,t){var r=ee(),a=o.require_baseKeys(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e):a(e)}}}),xe=t.__commonJS({"../../node_modules/lodash/toPairs.js"(e,o){var t=we()(Se());o.exports=t}}),Ce=t.__commonJS({"../../node_modules/lodash/entries.js"(e,o){o.exports=xe()}}),je=t.__commonJS({"../../node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==o(e[t],t,e););return e}}}),$e=t.__commonJS({"../../node_modules/lodash/_baseAssign.js"(e,o){var t=G(),r=Se();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),Pe=t.__commonJS({"../../node_modules/lodash/_baseAssignIn.js"(e,o){var t=G(),r=re();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),ke=t.__commonJS({"../../node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length,a=0,n=[];++t<r;){var s=e[t];o(s,t,e)&&(n[a++]=s)}return n}}}),We=t.__commonJS({"../../node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),Oe=t.__commonJS({"../../node_modules/lodash/_getSymbols.js"(e,o){var t=ke(),r=We(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return a.call(e,o)}))}:r;o.exports=s}}),Ae=t.__commonJS({"../../node_modules/lodash/_copySymbols.js"(e,o){var t=G(),r=Oe();o.exports=function(e,o){return t(e,r(e),o)}}}),Je=t.__commonJS({"../../node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,r=o.length,a=e.length;++t<r;)e[a+t]=o[t];return e}}}),Ve=t.__commonJS({"../../node_modules/lodash/_getSymbolsIn.js"(e,o){var t=Je(),r=Y(),a=Oe(),n=We(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,a(e)),e=r(e);return o}:n;o.exports=s}}),Te=t.__commonJS({"../../node_modules/lodash/_copySymbolsIn.js"(e,o){var t=G(),r=Ve();o.exports=function(e,o){return t(e,r(e),o)}}}),Fe=t.__commonJS({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=Je(),a=o.require_isArray();t.exports=function(e,o,t){var n=o(e);return a(e)?n:r(n,t(e))}}}),Ee=t.__commonJS({"../../node_modules/lodash/_getAllKeys.js"(e,o){var t=Fe(),r=Oe(),a=Se();o.exports=function(e){return t(e,a,r)}}}),Me=t.__commonJS({"../../node_modules/lodash/_getAllKeysIn.js"(e,o){var t=Fe(),r=Ve(),a=re();o.exports=function(e){return t(e,a,r)}}}),Ne=t.__commonJS({"../../node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,r=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),qe=t.__commonJS({"../../node_modules/lodash/_cloneDataView.js"(e,o){var t=D();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),Ke=t.__commonJS({"../../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}}}),De=t.__commonJS({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var r=o.require_Symbol(),a=r?r.prototype:void 0,n=a?a.valueOf:void 0;t.exports=function(e){return n?Object(n.call(e)):{}}}}),Le=t.__commonJS({"../../node_modules/lodash/_initCloneByTag.js"(e,o){var t=D(),r=qe(),a=Ke(),n=De(),s=L();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 r(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 a(e);case"[object Symbol]":return n(e)}}}}),ze=t.__commonJS({"../../node_modules/lodash/_baseIsMap.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Map]"==r(e)}}}),Re=t.__commonJS({"../../node_modules/lodash/isMap.js"(e,t){var r=ze(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isMap,l=s?a(s):r;t.exports=l}}),Ye=t.__commonJS({"../../node_modules/lodash/_baseIsSet.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Set]"==r(e)}}}),Be=t.__commonJS({"../../node_modules/lodash/isSet.js"(e,t){var r=Ye(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isSet,l=s?a(s):r;t.exports=l}}),Xe=t.__commonJS({"../../node_modules/lodash/_baseClone.js"(e,t){var r=V(),a=je(),n=H(),s=$e(),l=Pe(),i=q(),u=z(),c=Ae(),p=Te(),f=Ee(),d=Me(),m=o.require_getTag(),v=Ne(),y=Le(),h=B(),b=o.require_isArray(),_=o.require_isBuffer(),g=Re(),w=o.require_isObject(),S=Be(),x=Se(),C=re(),j="[object Arguments]",$="[object Function]",P="[object Object]",k={};k[j]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[$]=k["[object WeakMap]"]=!1,t.exports=function e(o,t,W,O,A,J){var V,T=1&t,F=2&t,E=4&t;if(W&&(V=A?W(o,O,A,J):W(o)),void 0!==V)return V;if(!w(o))return o;var M=b(o);if(M){if(V=v(o),!T)return u(o,V)}else{var N=m(o),q=N==$||"[object GeneratorFunction]"==N;if(_(o))return i(o,T);if(N==P||N==j||q&&!A){if(V=F||q?{}:h(o),!T)return F?p(o,l(V,o)):c(o,s(V,o))}else{if(!k[N])return A?o:{};V=y(o,N,T)}}J||(J=new r);var K=J.get(o);if(K)return K;J.set(o,V),S(o)?o.forEach(function(r){V.add(e(r,t,W,r,o,J))}):g(o)&&o.forEach(function(r,a){V.set(a,e(r,t,W,a,o,J))});var D=M?void 0:(E?F?d:f:F?C:x)(o);return a(D||o,function(r,a){D&&(r=o[a=r]),n(V,a,e(r,t,W,a,o,J))}),V}}}),Ie=t.__commonJS({"../../node_modules/lodash/cloneDeep.js"(e,o){var t=Xe();o.exports=function(e){return t(e,5)}}}),Ue=t.__toESM(o.require_isFunction(),1),He=t.__toESM(a(),1),Ge=t.__toESM(he(),1);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function Qe({variantKey:e,variantValue:o,layer:t,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${o}/${a}/${n}/${t}`:`${r}/${e}/${o}/${t}`:a&&n?`${e}/${o}/${a}/${n}/${t}`:`${e}/${o}/${t}`}var Ze=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function eo(o,t){const r=o.variants?.[t];if(r)return{type:"no-sub-components",variant:r};const a=uo(o);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e.mapValues(a,e=>e.variants[t])}}function oo(e,o,t){const r=e[o]?.defaults?.[t];if(void 0===r)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return r}var to=t.__toESM(Ce(),1);function ro(e,o,t){const r=eo(e,o);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[t]}}var ao=e=>!!e?.layers,no=e=>!!e?.componentStates;function so(e,o,t){const r=ro(e,o,t);return r&&no(r)?r?.componentStates??null:null}var lo=["rest"];var io=t.__toESM(Ce(),1);function uo(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}var co=t.__toESM(Ie(),1);function po(e,o,t,r,a){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const l=s[a];if(!l)throw new Error(`No pseudoState variables found for ${a}.`);return l}function fo(e,o,t,r,a,n){const s=(0,co.default)(e),l=po(s,o,t,r,a);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}var mo={rest:"",hover:":hover:not(:has(:disabled))",pressed:":active:not(: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:":has(:disabled)","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:has(:disabled))'},vo={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 yo(e,o){const t=e.defaults[o],r=e.typeOfFixture;let a=0;return e.values.forEach((e,o)=>{e.includes(t)&&(a=o)}),r[a]}function ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,He.default)(e)}-${(0,He.default)(n)}-${(0,He.default)(o)}`:`uds-${(0,He.default)(e)}-${(0,He.default)(o)}`,t&&(i=`${i}-${(0,He.default)(t)}`),s&&l&&(i=`${i}-${(0,He.default)(s)}-${(0,He.default)(l)}`),i=`${i}-${(0,He.default)(r)}`,a&&(i=`${i}${a}`),i.replaceAll(/\s+/g,"-")}function bo({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:c,theme:p,currentStyles:f,previewOptions:d}){const m=Qe({variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});let v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});const y=i.variables[m][u];if(!y)throw"size/md/root"===m&&"spacingHorizontal"===u&&console.log({componentName:e,schemaKey:m,propertyKey:u},i.variables),new Error(`Prop definition (${e} - ${m} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const h={};for(const m in y){const b=mo[m]??"";let _="";if("root"===r)if(s&&l){const a=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n});v=ho({componentName:e,variantKey:o,layer:r,subComponentName:n,stateKey:s,stateValue:l}),_=`.${a}${b}.${v}`}else _=`.${v}${b}`;else{const i=ho({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=ho({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n}),_=`.${i}${b}.${u} .${v}`}else _=`.${i}${b} .${v}`}const g=(e,o,t,r)=>{const{value:a,type:n}=e,s=Mo[o];let l;if(Mo[o].customValueRenderer)l=Mo[o].customValueRenderer(e,i,t);else{l=t(Mo[o].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:w,extendedProperties:S}=Mo[c.name],x={},C=(0,Ue.default)(S),j=C?S({componentName:e,subComponentName:n,layer:r,propertyKey:u}):S;if(j&&j.length){if(!C&&("string"==typeof w||Array.isArray(w)&&w.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 j){const o=Mo[e].cssProperties;if("string"==typeof o){const t=f?.[_]?.[o];x[o]=g(y[m],e,p,t)}else if(Array.isArray(o))for(const t of o){const o=f?.[_]?.[t];x[t]=g(y[m],e,p,o)}}}else if("string"==typeof w){const e=f?.[_]?.[w];x[w]=g(y[m],c.name,p,e)}else if(Array.isArray(w))for(const e of w){const o=f?.[_]?.[e];x[e]=g(y[m],c.name,p,o)}if(h[_]||(h[_]={...x,...h[_]}),d?.generatePseudoStateClassModifier){const e=vo[m]??"";e.length>0&&"root"!==m&&(h[`.${e}${_}`.replace(b,"")]={...x,...h[`.${e}${_}`.replace(b,"")]})}}return h}var _o=["none","custom"],go=["none","up","down"],wo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},So={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},xo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},Co={dropShadow:{value:"none",config:null},insetShadow:{value:"none",config:null}};function jo(e){return{borderWidth:"none",borderRadius:"full",borderColor:{type:"palette",value:"transparent"},backgroundColor:{type:"palette",value:e},color:{type:"palette",value:"on-color"},scale:"none",...Co}}function $o(e){return{borderWidth:"thin",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:e},color:{type:"palette",value:e},scale:"none",...Co}}function Po(e){return{borderWidth:"none",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:e},scale:"none",...Co}}var ko={fill:jo,outline:$o,ghost:Po},Wo={defaults:{palette:"accent",variant:"primary",size:"md"},size:{sm:{spacingHorizontal:"4",spacingVertical:"1",gap:"2",iconSize:"sm",textVariant:"label1"},md:{spacingHorizontal:"6",spacingVertical:"3",gap:"2",iconSize:"sm",textVariant:"label1"},lg:{spacingHorizontal:"7",spacingVertical:"4",gap:"2",iconSize:"md",textVariant:"headline1"}},palette:{info:{primary:{kind:"fill",effect:wo,base:jo("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("info"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-10"},color:{type:"spectrum",value:"blue-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-11"},color:{type:"spectrum",value:"blue-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co}}}},accent:{primary:{kind:"fill",effect:wo,base:jo("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("accent"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-10"},color:{type:"spectrum",value:"carbon-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-11"},color:{type:"spectrum",value:"carbon-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co}}}},brand:{primary:{kind:"fill",effect:wo,base:jo("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("brand"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-10"},color:{type:"spectrum",value:"purple-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-11"},color:{type:"spectrum",value:"purple-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co}}}},alert:{primary:{kind:"fill",effect:wo,base:jo("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("alert"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-10"},color:{type:"spectrum",value:"red-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-11"},color:{type:"spectrum",value:"red-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co}}}},positive:{primary:{kind:"fill",effect:wo,base:jo("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("positive"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-10"},color:{type:"spectrum",value:"green-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-11"},color:{type:"spectrum",value:"green-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co}}}},warning:{primary:{kind:"fill",effect:wo,base:jo("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("warning"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-10"},color:{type:"spectrum",value:"orange-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-11"},color:{type:"spectrum",value:"orange-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co}}}}}},Oo="https://s.yimg.com/bw/fonts",Ao=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jo=["Georgia","Times","Times New Roman","serif"],Vo={"centra-no2":{fallback:Ao,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('${Oo}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${Oo}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${Oo}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${Oo}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Ao,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('${Oo}/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('${Oo}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Ao,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('${Oo}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Ao,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('${Oo}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Ao,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('${Oo}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Ao,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('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Ao,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('${Oo}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jo,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('${Oo}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jo,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('${Oo}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};var To={black:"0 0 0",white:"255 255 255"};function Fo({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,n="palette"===e.color?.type,s="always"===e.color?.type;let l=`var(--uds-${n?"shadow":"spectrum"}-color-${e?.color?.value})`;s&&(l=To[e.color.value]);const i=`var(${a}${o?`${o}-`:""}color, ${l})`;return`${"inset"===t?"inset ":""}${[`${r.shadowOffsetMap[e.offsetX]}px`,`${r.shadowOffsetMap[e.offsetY]}px`,`${r.spacingMap[e.blur]}px`,`${r.shadowSpreadRadiusMap[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${i} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}var Eo=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),Mo={...{backgroundColor:{name:"backgroundColor",cssProperties:"background-color",twThemePath:(e,o)=>{if("spectrumColors"===e){const[e,t]=o.split("-");return`colors.${e}.${t}`}return"backgroundPaletteColors"===e||"alwaysPaletteAliases"===e?`backgroundColor.${o}`:"Error"},possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},borderWidth:{name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>Eo(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:{name:"borderColor",cssProperties:"border-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>Eo(e)&&["outlineColor"]},fontFamily:{name:"fontFamily",cssProperties:"font-family",twThemePath:(e,o)=>`typography.fontFamily.${o}`,possibleFixtures:["textVariants"]},fontSize:{name:"fontSize",cssProperties:"font-size",twThemePath:(e,o)=>`typography.fontSize.${o}`,possibleFixtures:["textVariants"]},fontVariationSettings:{name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e;return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:(e,o)=>`typography.lineHeight.${o}`,possibleFixtures:["textVariants"]},textTransform:{name:"textTransform",cssProperties:"text-transform",twThemePath:(e,o)=>`typography.textTransform.${o}`,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:{name:"color",cssProperties:"color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"foregroundPaletteColors"===e)return`textColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`textColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},fontWeight:{name:"fontWeight",cssProperties:"font-weight",twThemePath:(e,o)=>`typography.fontWeight.${o}`,possibleFixtures:["textVariants"]},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"]},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)=>Fo({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)=>Fo({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"]}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:{name:"outlineColor",cssProperties:"outline-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,r)=>`calc(-1 * ${r("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};exports.DEFAULT_COLOR_MODE="light",exports.DEFAULT_COLOR_MODE_FOR_APP="system",exports.DEFAULT_HIGH_CONTRAST_MODE=!1,exports.DEFAULT_REGION_MODE="🇺🇸 US",exports.DEFAULT_SCALE_MODE="large",exports.DEFAULT_SCALE_MODE_FOR_APP="system",exports.FONT_DECLARATIONS_MAP=Vo,exports.alwaysPalette={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},exports.button=Wo,exports.cartesianProduct=Ze,exports.coalesceConfigVariant=eo,exports.configurableProperties=Mo,exports.createComponentStateConfig=function(e){return e},exports.createComponentStates=function(e){return e},exports.createConfigurableProperty=function(e){return e},exports.createLayerConfig=function(e){return e},exports.createSubComponentConfig=function(e){return e},exports.createVariantConfig=function(e){return e},exports.createVariantConfigWithComponentStates=function(e){return e},exports.createVariantConfigWithProperties=function(e){return e},exports.findFixtureType=yo,exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.fromEntries=function(e){return Object.fromEntries(e)},exports.generateClassName=ho,exports.generateDeclaration=bo,exports.generateKeyFromFlatConfigPath=function(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o},exports.generateSchemaKey=Qe,exports.generateStyles=function(e,o,t,r){function a(e,o){return(0,Ge.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(i.componentStates){const u=i.componentStates;for(const i in u){const c=u[i];for(const u of c.options)for(const p in c.layers){const f=c.layers[p];for(const c in f.properties){const d=f.properties[c];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:p,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:c,originalPropertyDefinition:d,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const u in i.layers){const c=i.layers[u];for(const i in c.properties){const p=c.properties[i];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,layer:u,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:i,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}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(u.componentStates){const c=u.componentStates;for(const u in c){const p=c[u];for(const c of p.options)for(const f in p.layers){const d=p.layers[f];for(const p in d.properties){const m=d.properties[p];s=a(s,bo({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:c,subComponentName:e,layer:f,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:p,originalPropertyDefinition:m,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const c in u.layers){const p=u.layers[c];for(const u in p.properties){const f=p.properties[u];s=a(s,bo({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}return s},exports.getConfigDefaultValue=oo,exports.getConfigPseudoStateVariables=po,exports.getConfigPseudoStateVariablesWithSetter=function(e,o,t,r,a){return[po(e,o,t,r,a),n=>fo(e,o,t,r,a,n)]},exports.getConfigSubcomponents=uo,exports.getConfigVariantComponentStates=so,exports.getConfigVariantComponentStatesMatrix=function(e,o,t){const r=so(e,o,t);return r?Ze((0,to.default)(r).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e):null},exports.getConfigVariantProperties=function(o){if(!o||!ao(o))return null;const t=e.mapValues(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},exports.getConfigVariantPseudoStates=function(e,o,t,r){const a=ro(e,o,r);return a?[...ao(a)?Object.entries(a?.layers??{}):[],...no(a)&&t?Object.entries(a.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...lo,...t.pseudoStates??[]].map(r=>[e,o,t,r])).reduce((e,[o,t,r,a])=>{e[a]=e[a]??[];const n=[o,t,r];return e[a].push(n),e},{}):null},exports.getConfigVariants=function(e,o="variant"){const t=eo(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(uo(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 r=(0,io.default)(t.variants).reduce((e,[o,t])=>{for(const r of t.options)e[r]??=[],e[r].includes(o)||e[r].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(r),variantToSubcomponentNames:r}},exports.getDefaultButtonBaseMap=ko,exports.getShadowLayerValue=Fo,exports.getShadowPresetValues=function({config:o,shadowType:t}){const r=o?.shadow?.[t];if(!r)return{};const a={};return e.entries(r).forEach(([e,o])=>{if("none"===e)return void(a[`--uds-${t}-shadow-${e}`]="0 0 transparent");const r=o.map((e,o)=>Fo({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));a[`--uds-${t}-shadow-${e}`]=`${r.join(", ")}`}),a},exports.isConfigDefaultValue=function(e,o,t,r){return oo(e,o,t)===r},exports.parseButtonVariantFlat=function({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`},exports.parseDeprecatedButtonPaletteVariant=function({flatVariant:e}){if(!e)return{palette:void 0,variant:void 0};const[o,t]=e.split("-");return t?{palette:o,variant:t}:["primary","secondary","tertiary"].includes(e)?{palette:"accent",variant:e}:{palette:e,variant:"primary"}},exports.setConfigPseudoStateVariable=fo,exports.shadow={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"}}]}},exports.statePseudoMapDocsMode=vo,exports.toMinimalDbConfigObject=function(e){const o={},t={};for(const o in e.variants){const r=e.variants[o];t[o]=r.default}o.defaults=t,o.variables={};for(const t in e.variants){const r=e.variants[t];for(const e of r.options)if(r.componentStates){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const l=n.layers[s],i=Qe({variantKey:t,variantValue:e,stateKey:r,stateValue:a,layer:s});o.variables[i]={};for(const t in l.properties){const r=l.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[i]={...o.variables[i],...a}}}}}else for(const a in r.layers){const n=r.layers[a],s=Qe({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const r=n.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[s]={...o.variables[s],...a}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const r in t[e].variants){const a=t[e].variants[r];o.defaults[r]=a.default;for(const t of a.options)if(a.componentStates){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Qe({variantKey:r,variantValue:t,stateKey:a,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const r=i.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[u]={...o.variables[u],...a}}}}}else for(const n in a.layers){const s=a.layers[n],l=Qe({variantKey:r,variantValue:t,layer:n,subComponentName:e});o.variables[l]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[l]={...o.variables[l],...a}}}}}return o};
|
1
|
+
"use strict";var e=require("./chunk-J7PUOUXC.cjs"),o=require("./chunk-VB3FJZDC.cjs"),t=require("./chunk-QLXJH36U.cjs"),r=require("@yahoo/uds/fixtures"),a=t.__commonJS({"../../node_modules/lodash/lowerCase.js"(e,t){var r=o.require_createCompounder()(function(e,o,t){return e+(t?" ":"")+o.toLowerCase()});t.exports=r}}),n=t.__commonJS({"../../node_modules/lodash/_listCacheClear.js"(e,o){o.exports=function(){this.__data__=[],this.size=0}}}),s=t.__commonJS({"../../node_modules/lodash/eq.js"(e,o){o.exports=function(e,o){return e===o||e!=e&&o!=o}}}),l=t.__commonJS({"../../node_modules/lodash/_assocIndexOf.js"(e,o){var t=s();o.exports=function(e,o){for(var r=e.length;r--;)if(t(e[r][0],o))return r;return-1}}}),i=t.__commonJS({"../../node_modules/lodash/_listCacheDelete.js"(e,o){var t=l(),r=Array.prototype.splice;o.exports=function(e){var o=this.__data__,a=t(o,e);return!(a<0)&&(a==o.length-1?o.pop():r.call(o,a,1),--this.size,!0)}}}),u=t.__commonJS({"../../node_modules/lodash/_listCacheGet.js"(e,o){var t=l();o.exports=function(e){var o=this.__data__,r=t(o,e);return r<0?void 0:o[r][1]}}}),c=t.__commonJS({"../../node_modules/lodash/_listCacheHas.js"(e,o){var t=l();o.exports=function(e){return t(this.__data__,e)>-1}}}),p=t.__commonJS({"../../node_modules/lodash/_listCacheSet.js"(e,o){var t=l();o.exports=function(e,o){var r=this.__data__,a=t(r,e);return a<0?(++this.size,r.push([e,o])):r[a][1]=o,this}}}),f=t.__commonJS({"../../node_modules/lodash/_ListCache.js"(e,o){var t=n(),r=i(),a=u(),s=c(),l=p();function f(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}f.prototype.clear=t,f.prototype.delete=r,f.prototype.get=a,f.prototype.has=s,f.prototype.set=l,o.exports=f}}),d=t.__commonJS({"../../node_modules/lodash/_stackClear.js"(e,o){var t=f();o.exports=function(){this.__data__=new t,this.size=0}}}),m=t.__commonJS({"../../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}}}),v=t.__commonJS({"../../node_modules/lodash/_stackGet.js"(e,o){o.exports=function(e){return this.__data__.get(e)}}}),y=t.__commonJS({"../../node_modules/lodash/_stackHas.js"(e,o){o.exports=function(e){return this.__data__.has(e)}}}),h=t.__commonJS({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=o.require_getNative()(Object,"create");t.exports=r}}),b=t.__commonJS({"../../node_modules/lodash/_hashClear.js"(e,o){var t=h();o.exports=function(){this.__data__=t?t(null):{},this.size=0}}}),_=t.__commonJS({"../../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}}}),g=t.__commonJS({"../../node_modules/lodash/_hashGet.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;if(t){var a=o[e];return"__lodash_hash_undefined__"===a?void 0:a}return r.call(o,e)?o[e]:void 0}}}),w=t.__commonJS({"../../node_modules/lodash/_hashHas.js"(e,o){var t=h(),r=Object.prototype.hasOwnProperty;o.exports=function(e){var o=this.__data__;return t?void 0!==o[e]:r.call(o,e)}}}),S=t.__commonJS({"../../node_modules/lodash/_hashSet.js"(e,o){var t=h();o.exports=function(e,o){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=t&&void 0===o?"__lodash_hash_undefined__":o,this}}}),x=t.__commonJS({"../../node_modules/lodash/_Hash.js"(e,o){var t=b(),r=_(),a=g(),n=w(),s=S();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),C=t.__commonJS({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=x(),a=f(),n=o.require_Map();t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(n||a),string:new r}}}}),j=t.__commonJS({"../../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}}}),$=t.__commonJS({"../../node_modules/lodash/_getMapData.js"(e,o){var t=j();o.exports=function(e,o){var r=e.__data__;return t(o)?r["string"==typeof o?"string":"hash"]:r.map}}}),P=t.__commonJS({"../../node_modules/lodash/_mapCacheDelete.js"(e,o){var t=$();o.exports=function(e){var o=t(this,e).delete(e);return this.size-=o?1:0,o}}}),k=t.__commonJS({"../../node_modules/lodash/_mapCacheGet.js"(e,o){var t=$();o.exports=function(e){return t(this,e).get(e)}}}),W=t.__commonJS({"../../node_modules/lodash/_mapCacheHas.js"(e,o){var t=$();o.exports=function(e){return t(this,e).has(e)}}}),O=t.__commonJS({"../../node_modules/lodash/_mapCacheSet.js"(e,o){var t=$();o.exports=function(e,o){var r=t(this,e),a=r.size;return r.set(e,o),this.size+=r.size==a?0:1,this}}}),A=t.__commonJS({"../../node_modules/lodash/_MapCache.js"(e,o){var t=C(),r=P(),a=k(),n=W(),s=O();function l(e){var o=-1,t=null==e?0:e.length;for(this.clear();++o<t;){var r=e[o];this.set(r[0],r[1])}}l.prototype.clear=t,l.prototype.delete=r,l.prototype.get=a,l.prototype.has=n,l.prototype.set=s,o.exports=l}}),J=t.__commonJS({"../../node_modules/lodash/_stackSet.js"(e,t){var r=f(),a=o.require_Map(),n=A();t.exports=function(e,o){var t=this.__data__;if(t instanceof r){var s=t.__data__;if(!a||s.length<199)return s.push([e,o]),this.size=++t.size,this;t=this.__data__=new n(s)}return t.set(e,o),this.size=t.size,this}}}),V=t.__commonJS({"../../node_modules/lodash/_Stack.js"(e,o){var t=f(),r=d(),a=m(),n=v(),s=y(),l=J();function i(e){var o=this.__data__=new t(e);this.size=o.size}i.prototype.clear=r,i.prototype.delete=a,i.prototype.get=n,i.prototype.has=s,i.prototype.set=l,o.exports=i}}),T=t.__commonJS({"../../node_modules/lodash/_defineProperty.js"(e,t){var r=o.require_getNative(),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=a}}),F=t.__commonJS({"../../node_modules/lodash/_baseAssignValue.js"(e,o){var t=T();o.exports=function(e,o,r){"__proto__"==o&&t?t(e,o,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[o]=r}}}),E=t.__commonJS({"../../node_modules/lodash/_assignMergeValue.js"(e,o){var t=F(),r=s();o.exports=function(e,o,a){(void 0!==a&&!r(e[o],a)||void 0===a&&!(o in e))&&t(e,o,a)}}}),M=t.__commonJS({"../../node_modules/lodash/_createBaseFor.js"(e,o){o.exports=function(e){return function(o,t,r){for(var a=-1,n=Object(o),s=r(o),l=s.length;l--;){var i=s[e?l:++a];if(!1===t(n[i],i,n))break}return o}}}}),N=t.__commonJS({"../../node_modules/lodash/_baseFor.js"(e,o){var t=M()();o.exports=t}}),q=t.__commonJS({"../../node_modules/lodash/_cloneBuffer.js"(e,t){var r=o.require_root(),a="object"==typeof e&&e&&!e.nodeType&&e,n=a&&"object"==typeof t&&t&&!t.nodeType&&t,s=n&&n.exports===a?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;t.exports=function(e,o){if(o)return e.slice();var t=e.length,r=l?l(t):new e.constructor(t);return e.copy(r),r}}}),K=t.__commonJS({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=o.require_root().Uint8Array;t.exports=r}}),D=t.__commonJS({"../../node_modules/lodash/_cloneArrayBuffer.js"(e,o){var t=K();o.exports=function(e){var o=new e.constructor(e.byteLength);return new t(o).set(new t(e)),o}}}),L=t.__commonJS({"../../node_modules/lodash/_cloneTypedArray.js"(e,o){var t=D();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}}}),z=t.__commonJS({"../../node_modules/lodash/_copyArray.js"(e,o){o.exports=function(e,o){var t=-1,r=e.length;for(o||(o=Array(r));++t<r;)o[t]=e[t];return o}}}),R=t.__commonJS({"../../node_modules/lodash/_baseCreate.js"(e,t){var r=o.require_isObject(),a=Object.create,n=function(){function e(){}return function(o){if(!r(o))return{};if(a)return a(o);e.prototype=o;var t=new e;return e.prototype=void 0,t}}();t.exports=n}}),B=t.__commonJS({"../../node_modules/lodash/_getPrototype.js"(e,t){var r=o.require_overArg()(Object.getPrototypeOf,Object);t.exports=r}}),Y=t.__commonJS({"../../node_modules/lodash/_initCloneObject.js"(e,t){var r=R(),a=B(),n=o.require_isPrototype();t.exports=function(e){return"function"!=typeof e.constructor||n(e)?{}:r(a(e))}}}),X=t.__commonJS({"../../node_modules/lodash/isArrayLikeObject.js"(e,t){var r=o.require_isArrayLike(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&r(e)}}}),I=t.__commonJS({"../../node_modules/lodash/isPlainObject.js"(e,t){var r=o.require_baseGetTag(),a=B(),n=o.require_isObjectLike(),s=Function.prototype,l=Object.prototype,i=s.toString,u=l.hasOwnProperty,c=i.call(Object);t.exports=function(e){if(!n(e)||"[object Object]"!=r(e))return!1;var o=a(e);if(null===o)return!0;var t=u.call(o,"constructor")&&o.constructor;return"function"==typeof t&&t instanceof t&&i.call(t)==c}}}),U=t.__commonJS({"../../node_modules/lodash/_safeGet.js"(e,o){o.exports=function(e,o){if(("constructor"!==o||"function"!=typeof e[o])&&"__proto__"!=o)return e[o]}}}),H=t.__commonJS({"../../node_modules/lodash/_assignValue.js"(e,o){var t=F(),r=s(),a=Object.prototype.hasOwnProperty;o.exports=function(e,o,n){var s=e[o];a.call(e,o)&&r(s,n)&&(void 0!==n||o in e)||t(e,o,n)}}}),G=t.__commonJS({"../../node_modules/lodash/_copyObject.js"(e,o){var t=H(),r=F();o.exports=function(e,o,a,n){var s=!a;a||(a={});for(var l=-1,i=o.length;++l<i;){var u=o[l],c=n?n(a[u],e[u],u,a,e):void 0;void 0===c&&(c=e[u]),s?r(a,u,c):t(a,u,c)}return a}}}),Q=t.__commonJS({"../../node_modules/lodash/_baseTimes.js"(e,o){o.exports=function(e,o){for(var t=-1,r=Array(e);++t<e;)r[t]=o(t);return r}}}),Z=t.__commonJS({"../../node_modules/lodash/_isIndex.js"(e,o){var t=/^(?:0|[1-9]\d*)$/;o.exports=function(e,o){var r=typeof e;return!!(o=null==o?9007199254740991:o)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<o}}}),ee=t.__commonJS({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=Q(),a=o.require_isArguments(),n=o.require_isArray(),s=o.require_isBuffer(),l=Z(),i=o.require_isTypedArray(),u=Object.prototype.hasOwnProperty;t.exports=function(e,o){var t=n(e),c=!t&&a(e),p=!t&&!c&&s(e),f=!t&&!c&&!p&&i(e),d=t||c||p||f,m=d?r(e.length,String):[],v=m.length;for(var y in e)!o&&!u.call(e,y)||d&&("length"==y||p&&("offset"==y||"parent"==y)||f&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||l(y,v))||m.push(y);return m}}}),oe=t.__commonJS({"../../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}}}),te=t.__commonJS({"../../node_modules/lodash/_baseKeysIn.js"(e,t){var r=o.require_isObject(),a=o.require_isPrototype(),n=oe(),s=Object.prototype.hasOwnProperty;t.exports=function(e){if(!r(e))return n(e);var o=a(e),t=[];for(var l in e)("constructor"!=l||!o&&s.call(e,l))&&t.push(l);return t}}}),re=t.__commonJS({"../../node_modules/lodash/keysIn.js"(e,t){var r=ee(),a=te(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e,!0):a(e)}}}),ae=t.__commonJS({"../../node_modules/lodash/toPlainObject.js"(e,o){var t=G(),r=re();o.exports=function(e){return t(e,r(e))}}}),ne=t.__commonJS({"../../node_modules/lodash/_baseMergeDeep.js"(e,t){var r=E(),a=q(),n=L(),s=z(),l=Y(),i=o.require_isArguments(),u=o.require_isArray(),c=X(),p=o.require_isBuffer(),f=o.require_isFunction(),d=o.require_isObject(),m=I(),v=o.require_isTypedArray(),y=U(),h=ae();t.exports=function(e,o,t,b,_,g,w){var S=y(e,t),x=y(o,t),C=w.get(x);if(C)r(e,t,C);else{var j=g?g(S,x,t+"",e,o,w):void 0,$=void 0===j;if($){var P=u(x),k=!P&&p(x),W=!P&&!k&&v(x);j=x,P||k||W?u(S)?j=S:c(S)?j=s(S):k?($=!1,j=a(x,!0)):W?($=!1,j=n(x,!0)):j=[]:m(x)||i(x)?(j=S,i(S)?j=h(S):d(S)&&!f(S)||(j=l(x))):$=!1}$&&(w.set(x,j),_(j,x,b,g,w),w.delete(x)),r(e,t,j)}}}}),se=t.__commonJS({"../../node_modules/lodash/_baseMerge.js"(e,t){var r=V(),a=E(),n=N(),s=ne(),l=o.require_isObject(),i=re(),u=U();t.exports=function e(o,t,c,p,f){o!==t&&n(t,function(n,i){if(f||(f=new r),l(n))s(o,t,i,c,e,p,f);else{var d=p?p(u(o,i),n,i+"",o,t,f):void 0;void 0===d&&(d=n),a(o,i,d)}},i)}}}),le=t.__commonJS({"../../node_modules/lodash/identity.js"(e,o){o.exports=function(e){return e}}}),ie=t.__commonJS({"../../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)}}}),ue=t.__commonJS({"../../node_modules/lodash/_overRest.js"(e,o){var t=ie(),r=Math.max;o.exports=function(e,o,a){return o=r(void 0===o?e.length-1:o,0),function(){for(var n=arguments,s=-1,l=r(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]=a(i),t(e,this,u)}}}}),ce=t.__commonJS({"../../node_modules/lodash/constant.js"(e,o){o.exports=function(e){return function(){return e}}}}),pe=t.__commonJS({"../../node_modules/lodash/_baseSetToString.js"(e,o){var t=ce(),r=T(),a=le(),n=r?function(e,o){return r(e,"toString",{configurable:!0,enumerable:!1,value:t(o),writable:!0})}:a;o.exports=n}}),fe=t.__commonJS({"../../node_modules/lodash/_shortOut.js"(e,o){var t=Date.now;o.exports=function(e){var o=0,r=0;return function(){var a=t(),n=16-(a-r);if(r=a,n>0){if(++o>=800)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}}}),de=t.__commonJS({"../../node_modules/lodash/_setToString.js"(e,o){var t=pe(),r=fe()(t);o.exports=r}}),me=t.__commonJS({"../../node_modules/lodash/_baseRest.js"(e,o){var t=le(),r=ue(),a=de();o.exports=function(e,o){return a(r(e,o,t),e+"")}}}),ve=t.__commonJS({"../../node_modules/lodash/_isIterateeCall.js"(e,t){var r=s(),a=o.require_isArrayLike(),n=Z(),l=o.require_isObject();t.exports=function(e,o,t){if(!l(t))return!1;var s=typeof o;return!!("number"==s?a(t)&&n(o,t.length):"string"==s&&o in t)&&r(t[o],e)}}}),ye=t.__commonJS({"../../node_modules/lodash/_createAssigner.js"(e,o){var t=me(),r=ve();o.exports=function(e){return t(function(o,t){var a=-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&&r(t[0],t[1],l)&&(s=n<3?void 0:s,n=1),o=Object(o);++a<n;){var i=t[a];i&&e(o,i,a,s)}return o})}}}),he=t.__commonJS({"../../node_modules/lodash/mergeWith.js"(e,o){var t=se(),r=ye()(function(e,o,r,a){t(e,o,r,a)});o.exports=r}}),be=t.__commonJS({"../../node_modules/lodash/_baseToPairs.js"(e,t){var r=o.require_arrayMap();t.exports=function(e,o){return r(o,function(o){return[o,e[o]]})}}}),_e=t.__commonJS({"../../node_modules/lodash/_mapToArray.js"(e,o){o.exports=function(e){var o=-1,t=Array(e.size);return e.forEach(function(e,r){t[++o]=[r,e]}),t}}}),ge=t.__commonJS({"../../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}}}),we=t.__commonJS({"../../node_modules/lodash/_createToPairs.js"(e,t){var r=be(),a=o.require_getTag(),n=_e(),s=ge();t.exports=function(e){return function(o){var t=a(o);return"[object Map]"==t?n(o):"[object Set]"==t?s(o):r(o,e(o))}}}}),Se=t.__commonJS({"../../node_modules/lodash/keys.js"(e,t){var r=ee(),a=o.require_baseKeys(),n=o.require_isArrayLike();t.exports=function(e){return n(e)?r(e):a(e)}}}),xe=t.__commonJS({"../../node_modules/lodash/toPairs.js"(e,o){var t=we()(Se());o.exports=t}}),Ce=t.__commonJS({"../../node_modules/lodash/entries.js"(e,o){o.exports=xe()}}),je=t.__commonJS({"../../node_modules/lodash/_arrayEach.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length;++t<r&&!1!==o(e[t],t,e););return e}}}),$e=t.__commonJS({"../../node_modules/lodash/_baseAssign.js"(e,o){var t=G(),r=Se();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),Pe=t.__commonJS({"../../node_modules/lodash/_baseAssignIn.js"(e,o){var t=G(),r=re();o.exports=function(e,o){return e&&t(o,r(o),e)}}}),ke=t.__commonJS({"../../node_modules/lodash/_arrayFilter.js"(e,o){o.exports=function(e,o){for(var t=-1,r=null==e?0:e.length,a=0,n=[];++t<r;){var s=e[t];o(s,t,e)&&(n[a++]=s)}return n}}}),We=t.__commonJS({"../../node_modules/lodash/stubArray.js"(e,o){o.exports=function(){return[]}}}),Oe=t.__commonJS({"../../node_modules/lodash/_getSymbols.js"(e,o){var t=ke(),r=We(),a=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols,s=n?function(e){return null==e?[]:(e=Object(e),t(n(e),function(o){return a.call(e,o)}))}:r;o.exports=s}}),Ae=t.__commonJS({"../../node_modules/lodash/_copySymbols.js"(e,o){var t=G(),r=Oe();o.exports=function(e,o){return t(e,r(e),o)}}}),Je=t.__commonJS({"../../node_modules/lodash/_arrayPush.js"(e,o){o.exports=function(e,o){for(var t=-1,r=o.length,a=e.length;++t<r;)e[a+t]=o[t];return e}}}),Ve=t.__commonJS({"../../node_modules/lodash/_getSymbolsIn.js"(e,o){var t=Je(),r=B(),a=Oe(),n=We(),s=Object.getOwnPropertySymbols?function(e){for(var o=[];e;)t(o,a(e)),e=r(e);return o}:n;o.exports=s}}),Te=t.__commonJS({"../../node_modules/lodash/_copySymbolsIn.js"(e,o){var t=G(),r=Ve();o.exports=function(e,o){return t(e,r(e),o)}}}),Fe=t.__commonJS({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=Je(),a=o.require_isArray();t.exports=function(e,o,t){var n=o(e);return a(e)?n:r(n,t(e))}}}),Ee=t.__commonJS({"../../node_modules/lodash/_getAllKeys.js"(e,o){var t=Fe(),r=Oe(),a=Se();o.exports=function(e){return t(e,a,r)}}}),Me=t.__commonJS({"../../node_modules/lodash/_getAllKeysIn.js"(e,o){var t=Fe(),r=Ve(),a=re();o.exports=function(e){return t(e,a,r)}}}),Ne=t.__commonJS({"../../node_modules/lodash/_initCloneArray.js"(e,o){var t=Object.prototype.hasOwnProperty;o.exports=function(e){var o=e.length,r=new e.constructor(o);return o&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}}}),qe=t.__commonJS({"../../node_modules/lodash/_cloneDataView.js"(e,o){var t=D();o.exports=function(e,o){var r=o?t(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}}}),Ke=t.__commonJS({"../../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}}}),De=t.__commonJS({"../../node_modules/lodash/_cloneSymbol.js"(e,t){var r=o.require_Symbol(),a=r?r.prototype:void 0,n=a?a.valueOf:void 0;t.exports=function(e){return n?Object(n.call(e)):{}}}}),Le=t.__commonJS({"../../node_modules/lodash/_initCloneByTag.js"(e,o){var t=D(),r=qe(),a=Ke(),n=De(),s=L();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 r(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 a(e);case"[object Symbol]":return n(e)}}}}),ze=t.__commonJS({"../../node_modules/lodash/_baseIsMap.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Map]"==r(e)}}}),Re=t.__commonJS({"../../node_modules/lodash/isMap.js"(e,t){var r=ze(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isMap,l=s?a(s):r;t.exports=l}}),Be=t.__commonJS({"../../node_modules/lodash/_baseIsSet.js"(e,t){var r=o.require_getTag(),a=o.require_isObjectLike();t.exports=function(e){return a(e)&&"[object Set]"==r(e)}}}),Ye=t.__commonJS({"../../node_modules/lodash/isSet.js"(e,t){var r=Be(),a=o.require_baseUnary(),n=o.require_nodeUtil(),s=n&&n.isSet,l=s?a(s):r;t.exports=l}}),Xe=t.__commonJS({"../../node_modules/lodash/_baseClone.js"(e,t){var r=V(),a=je(),n=H(),s=$e(),l=Pe(),i=q(),u=z(),c=Ae(),p=Te(),f=Ee(),d=Me(),m=o.require_getTag(),v=Ne(),y=Le(),h=Y(),b=o.require_isArray(),_=o.require_isBuffer(),g=Re(),w=o.require_isObject(),S=Ye(),x=Se(),C=re(),j="[object Arguments]",$="[object Function]",P="[object Object]",k={};k[j]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[$]=k["[object WeakMap]"]=!1,t.exports=function e(o,t,W,O,A,J){var V,T=1&t,F=2&t,E=4&t;if(W&&(V=A?W(o,O,A,J):W(o)),void 0!==V)return V;if(!w(o))return o;var M=b(o);if(M){if(V=v(o),!T)return u(o,V)}else{var N=m(o),q=N==$||"[object GeneratorFunction]"==N;if(_(o))return i(o,T);if(N==P||N==j||q&&!A){if(V=F||q?{}:h(o),!T)return F?p(o,l(V,o)):c(o,s(V,o))}else{if(!k[N])return A?o:{};V=y(o,N,T)}}J||(J=new r);var K=J.get(o);if(K)return K;J.set(o,V),S(o)?o.forEach(function(r){V.add(e(r,t,W,r,o,J))}):g(o)&&o.forEach(function(r,a){V.set(a,e(r,t,W,a,o,J))});var D=M?void 0:(E?F?d:f:F?C:x)(o);return a(D||o,function(r,a){D&&(r=o[a=r]),n(V,a,e(r,t,W,a,o,J))}),V}}}),Ie=t.__commonJS({"../../node_modules/lodash/cloneDeep.js"(e,o){var t=Xe();o.exports=function(e){return t(e,5)}}}),Ue=t.__toESM(o.require_isFunction(),1),He=t.__toESM(a(),1),Ge=t.__toESM(he(),1);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function Qe({variantKey:e,variantValue:o,layer:t,subComponentName:r,stateKey:a,stateValue:n}){return r?a&&n?`${r}/${e}/${o}/${a}/${n}/${t}`:`${r}/${e}/${o}/${t}`:a&&n?`${e}/${o}/${a}/${n}/${t}`:`${e}/${o}/${t}`}var Ze=e=>e.reduce((e,o)=>e.flatMap(e=>o.map(o=>[e,o].flat())));function eo(o,t){const r=o.variants?.[t];if(r)return{type:"no-sub-components",variant:r};const a=uo(o);if(!a)return{type:"no-variants"};return{type:"has-sub-components",variants:e.mapValues(a,e=>e.variants[t])}}function oo(e,o,t){const r=e[o]?.defaults?.[t];if(void 0===r)throw new Error(`The variant default for "${t}" is not defined for the component "${o}"`);return r}var to=t.__toESM(Ce(),1);function ro(e,o,t){const r=eo(e,o);switch(r.type){case"no-variants":return null;case"no-sub-components":return r.variant;case"has-sub-components":if(!t)throw new Error("subComponentName argument name is required for configs with subcomponents");return r.variants[t]}}var ao=e=>!!e?.layers,no=e=>!!e?.componentStates;function so(e,o,t){const r=ro(e,o,t);return r&&no(r)?r?.componentStates??null:null}var lo=["rest"];var io=t.__toESM(Ce(),1);function uo(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}var co=t.__toESM(Ie(),1);function po(e,o,t,r,a){const n=e[t].variables[o];if(!n)throw new Error(`No layer variables found for ${o}.`);const s=n[r];if(!s)throw new Error(`No property variables found for ${r}.`);const l=s[a];if(!l)throw new Error(`No pseudoState variables found for ${a}.`);return l}function fo(e,o,t,r,a,n){const s=(0,co.default)(e),l=po(s,o,t,r,a);return void 0!==n.type&&(l.type=n.type),void 0!==n.value&&(l.value=n.value),s}var mo={rest:"",hover:":hover:not(:has(:disabled))",pressed:":active:not(: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:":has(:disabled)","invalid&hover":':has(input[aria-invalid="true"]):hover:not(:has(:disabled))',"invalid&pressed":':has(input[aria-invalid="true"]):active:not(:has(:disabled))'},vo={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 yo(e,o){const t=e.defaults[o],r=e.typeOfFixture;let a=0;return e.values.forEach((e,o)=>{e.includes(t)&&(a=o)}),r[a]}function ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l}){let i="";return i=n?`uds-${(0,He.default)(e)}-${(0,He.default)(n)}-${(0,He.default)(o)}`:`uds-${(0,He.default)(e)}-${(0,He.default)(o)}`,t&&(i=`${i}-${(0,He.default)(t)}`),s&&l&&(i=`${i}-${(0,He.default)(s)}-${(0,He.default)(l)}`),i=`${i}-${(0,He.default)(r)}`,a&&(i=`${i}${a}`),i.replaceAll(/\s+/g,"-")}function bo({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n,stateKey:s,stateValue:l,schema:i,propertyKey:u,originalPropertyDefinition:c,theme:p,currentStyles:f,previewOptions:d}){const m=Qe({variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});let v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n,stateKey:s,stateValue:l});const y=i.variables[m][u];if(!y)throw"size/md/root"===m&&"spacingHorizontal"===u&&console.log({componentName:e,schemaKey:m,propertyKey:u},i.variables),new Error(`Prop definition (${e} - ${m} - ${u}) not found, this is not expected, please report the bug to the UDS team`);const h={};for(const m in y){const b=mo[m]??"";let _="";if("root"===r)if(s&&l){const a=ho({componentName:e,variantKey:o,variantValue:t,layer:r,subComponentName:n});v=ho({componentName:e,variantKey:o,layer:r,subComponentName:n,stateKey:s,stateValue:l}),_=`.${a}${b}.${v}`}else _=`.${v}${b}`;else{const i=ho({componentName:e,variantKey:o,variantValue:t,layer:"root",subComponentName:n});if(s&&l){const u=ho({componentName:e,variantKey:o,layer:"root",subComponentName:n,stateKey:s,stateValue:l});v=ho({componentName:e,variantKey:o,variantValue:t,layer:r,layerOptionalPseudoSelector:a,subComponentName:n}),_=`.${i}${b}.${u} .${v}`}else _=`.${i}${b} .${v}`}const g=(e,o,t,r)=>{const{value:a,type:n}=e,s=Mo[o];let l;if(Mo[o].customValueRenderer)l=Mo[o].customValueRenderer(e,i,t);else{l=t(Mo[o].twThemePath(n,String(a)))}if(s.concatenate&&r){return`${r}${s.concatenationDelimiter||", "}${l}`}return l},{cssProperties:w,extendedProperties:S}=Mo[c.name],x={},C=(0,Ue.default)(S),j=C?S({componentName:e,subComponentName:n,layer:r,propertyKey:u}):S;if(j&&j.length){if(!C&&("string"==typeof w||Array.isArray(w)&&w.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 j){const o=Mo[e].cssProperties;if("string"==typeof o){const t=f?.[_]?.[o];x[o]=g(y[m],e,p,t)}else if(Array.isArray(o))for(const t of o){const o=f?.[_]?.[t];x[t]=g(y[m],e,p,o)}}}else if("string"==typeof w){const e=f?.[_]?.[w];x[w]=g(y[m],c.name,p,e)}else if(Array.isArray(w))for(const e of w){const o=f?.[_]?.[e];x[e]=g(y[m],c.name,p,o)}if(h[_]||(h[_]={...x,...h[_]}),d?.generatePseudoStateClassModifier){const e=vo[m]??"";e.length>0&&"root"!==m&&(h[`.${e}${_}`.replace(b,"")]={...x,...h[`.${e}${_}`.replace(b,"")]})}}return h}var _o=["none","custom"],go=["none","up","down"],wo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},So={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},xo={hover:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"up",options:go}},pressed:{backgroundColor:{value:"none",options:_o},borderColor:{value:"none",options:_o},color:{value:"none",options:_o},scale:{value:"down",options:go}}},Co={dropShadow:{value:"none",config:null},insetShadow:{value:"none",config:null}};function jo(e){return{borderWidth:"none",borderRadius:"full",borderColor:{type:"palette",value:"transparent"},backgroundColor:{type:"palette",value:e},color:{type:"palette",value:"on-color"},scale:"none",...Co}}function $o(e){return{borderWidth:"thin",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:e},color:{type:"palette",value:e},scale:"none",...Co}}function Po(e){return{borderWidth:"none",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:e},scale:"none",...Co}}var ko={fill:jo,outline:$o,ghost:Po},Wo={defaults:{palette:"accent",variant:"primary",size:"md"},size:{sm:{spacingHorizontal:"4",spacingVertical:"1",gap:"2",iconSize:"sm",textVariant:"label1"},md:{spacingHorizontal:"6",spacingVertical:"3",gap:"2",iconSize:"sm",textVariant:"label1"},lg:{spacingHorizontal:"7",spacingVertical:"4",gap:"2",iconSize:"md",textVariant:"headline1"}},palette:{info:{primary:{kind:"fill",effect:wo,base:jo("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("info"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-10"},color:{type:"spectrum",value:"blue-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-11"},color:{type:"spectrum",value:"blue-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...Co}}}},accent:{primary:{kind:"fill",effect:wo,base:jo("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("accent"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-10"},color:{type:"spectrum",value:"carbon-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-11"},color:{type:"spectrum",value:"carbon-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...Co}}}},brand:{primary:{kind:"fill",effect:wo,base:jo("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("brand"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-10"},color:{type:"spectrum",value:"purple-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-11"},color:{type:"spectrum",value:"purple-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...Co}}}},alert:{primary:{kind:"fill",effect:wo,base:jo("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("alert"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-10"},color:{type:"spectrum",value:"red-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-11"},color:{type:"spectrum",value:"red-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...Co}}}},positive:{primary:{kind:"fill",effect:wo,base:jo("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("positive"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-10"},color:{type:"spectrum",value:"green-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-11"},color:{type:"spectrum",value:"green-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...Co}}}},warning:{primary:{kind:"fill",effect:wo,base:jo("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...Co}}},secondary:{kind:"outline",effect:So,base:$o("warning"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-10"},color:{type:"spectrum",value:"orange-10"},...Co},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-11"},color:{type:"spectrum",value:"orange-11"},...Co}}},tertiary:{kind:"ghost",effect:xo,base:Po("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...Co}}}}}},Oo="https://s.yimg.com/bw/fonts",Ao=["Helvetica Neue","Helvetica","Arial","sans-serif"],Jo=["Georgia","Times","Times New Roman","serif"],Vo={"centra-no2":{fallback:Ao,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('${Oo}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${Oo}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${Oo}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${Oo}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${Oo}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:Ao,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('${Oo}/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('${Oo}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${Oo}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${Oo}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${Oo}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${Oo}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${Oo}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:Ao,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('${Oo}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:Ao,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('${Oo}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:Ao,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('${Oo}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:Ao,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('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${Oo}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:Ao,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('${Oo}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:Jo,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('${Oo}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${Oo}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${Oo}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${Oo}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:Jo,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('${Oo}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${Oo}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${Oo}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};var To={black:"0 0 0",white:"255 255 255"};function Fo({preset:e,prefix:o,shadowType:t}){const a=`--uds-${t}-shadow-`,n="palette"===e.color?.type,s="always"===e.color?.type;let l=`var(--uds-${n?"shadow":"spectrum"}-color-${e?.color?.value})`;s&&(l=To[e.color.value]);const i=`var(${a}${o?`${o}-`:""}color, ${l})`;return`${"inset"===t?"inset ":""}${[`${r.shadowOffsetMap[e.offsetX]}px`,`${r.shadowOffsetMap[e.offsetY]}px`,`${r.spacingMap[e.blur]}px`,`${r.shadowSpreadRadiusMap[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${i} / var(${a}${o?`${o}-`:""}opacity, ${Number(e.opacity)/100}))`}`}var Eo=({componentName:e,layer:o,propertyKey:t})=>!("chip"!==e||"root"!==o||!["borderColor","borderWidth"].includes(t))||!("input"!==e||"inputWrapper"!==o||!["borderColor","borderWidth"].includes(t)),Mo={...{backgroundColor:{name:"backgroundColor",cssProperties:"background-color",twThemePath:(e,o)=>{if("spectrumColors"===e){const[e,t]=o.split("-");return`colors.${e}.${t}`}return"backgroundPaletteColors"===e||"alwaysPaletteAliases"===e?`backgroundColor.${o}`:"Error"},possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},borderWidth:{name:"borderWidth",cssProperties:"border-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>Eo(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,o)=>`borderRadius.${o}`,possibleFixtures:["borderRadii"]},borderColor:{name:"borderColor",cssProperties:"border-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>Eo(e)&&["outlineColor"]},fontFamily:{name:"fontFamily",cssProperties:"font-family",twThemePath:(e,o)=>`typography.fontFamily.${o}`,possibleFixtures:["textVariants"]},fontSize:{name:"fontSize",cssProperties:"font-size",twThemePath:(e,o)=>`typography.fontSize.${o}`,possibleFixtures:["textVariants"]},fontVariationSettings:{name:"fontVariationSettings",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:o}=e;return`"wght" var(--uds-font-weight-${o}), "slnt" var(--uds-font-slant-${o}), "wdth" var(--uds-font-width-${o});`}},lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:(e,o)=>`typography.lineHeight.${o}`,possibleFixtures:["textVariants"]},textTransform:{name:"textTransform",cssProperties:"text-transform",twThemePath:(e,o)=>`typography.textTransform.${o}`,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:{name:"color",cssProperties:"color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"foregroundPaletteColors"===e)return`textColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`textColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},fontWeight:{name:"fontWeight",cssProperties:"font-weight",twThemePath:(e,o)=>`typography.fontWeight.${o}`,possibleFixtures:["textVariants"]},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"]},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)=>Fo({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)=>Fo({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"]}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,o)=>"borderWidths"===e?`borderWidth[${o}]`:`spacing[${o}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:{name:"outlineColor",cssProperties:"outline-color",twThemePath:(e,o)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${o}`;if("spectrumColors"===e){const[e,t]=o.split("-");return`borderColor.${e}.${t}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:o},t,r)=>`calc(-1 * ${r("borderWidths"===o?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};exports.DEFAULT_COLOR_MODE="light",exports.DEFAULT_COLOR_MODE_FOR_APP="system",exports.DEFAULT_HIGH_CONTRAST_MODE=!1,exports.DEFAULT_REGION_MODE="🇺🇸 US",exports.DEFAULT_SCALE_MODE="large",exports.DEFAULT_SCALE_MODE_FOR_APP="system",exports.FONT_DECLARATIONS_MAP=Vo,exports.alwaysPalette={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},exports.button=Wo,exports.cartesianProduct=Ze,exports.coalesceConfigVariant=eo,exports.configurableProperties=Mo,exports.createComponentStateConfig=function(e){return e},exports.createComponentStates=function(e){return e},exports.createConfigurableProperty=function(e){return e},exports.createLayerConfig=function(e){return e},exports.createSubComponentConfig=function(e){return e},exports.createVariantConfig=function(e){return e},exports.createVariantConfigWithComponentStates=function(e){return e},exports.createVariantConfigWithProperties=function(e){return e},exports.findFixtureType=yo,exports.fontWeightMap={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},exports.fromEntries=function(e){return Object.fromEntries(e)},exports.generateClassName=ho,exports.generateDeclaration=bo,exports.generateKeyFromFlatConfigPath=function(e){let o=e;return o=o.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{o=o.replaceAll(e,"")}),o},exports.generateSchemaKey=Qe,exports.generateStyles=function(e,o,t,r){function a(e,o){return(0,Ge.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(i.componentStates){const u=i.componentStates;for(const i in u){const c=u[i];for(const u of c.options)for(const p in c.layers){const f=c.layers[p];for(const c in f.properties){const d=f.properties[c];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,stateKey:i,stateValue:u,layer:p,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:c,originalPropertyDefinition:d,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const u in i.layers){const c=i.layers[u];for(const i in c.properties){const p=c.properties[i];s=a(s,bo({componentName:n,variantKey:l,variantValue:e,layer:u,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:i,originalPropertyDefinition:p,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}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(u.componentStates){const c=u.componentStates;for(const u in c){const p=c[u];for(const c of p.options)for(const f in p.layers){const d=p.layers[f];for(const p in d.properties){const m=d.properties[p];s=a(s,bo({componentName:n,variantKey:i,variantValue:l,stateKey:u,stateValue:c,subComponentName:e,layer:f,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:p,originalPropertyDefinition:m,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}else for(const c in u.layers){const p=u.layers[c];for(const u in p.properties){const f=p.properties[u];s=a(s,bo({componentName:n,subComponentName:e,variantKey:i,variantValue:l,layer:c,layerOptionalPseudoSelector:p.pseudoSelector,propertyKey:u,originalPropertyDefinition:f,theme:t,schema:o,currentStyles:s,previewOptions:r}))}}}}return s},exports.getConfigDefaultValue=oo,exports.getConfigPseudoStateVariables=po,exports.getConfigPseudoStateVariablesWithSetter=function(e,o,t,r,a){return[po(e,o,t,r,a),n=>fo(e,o,t,r,a,n)]},exports.getConfigSubcomponents=uo,exports.getConfigVariantComponentStates=so,exports.getConfigVariantComponentStatesMatrix=function(e,o,t){const r=so(e,o,t);return r?Ze((0,to.default)(r).map(([e,o])=>o.options.map(o=>({[e]:o})))).map(e=>Array.isArray(e)?e.reduce((e,o)=>({...e,...o}),{}):e):null},exports.getConfigVariantProperties=function(o){if(!o||!ao(o))return null;const t=e.mapValues(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},exports.getConfigVariantPseudoStates=function(e,o,t,r){const a=ro(e,o,r);return a?[...ao(a)?Object.entries(a?.layers??{}):[],...no(a)&&t?Object.entries(a.componentStates[t].layers??{}):[]].flatMap(([e,o])=>Object.entries(o.properties).map(([o,t])=>[e,o,t])).flatMap(([e,o,t])=>[...lo,...t.pseudoStates??[]].map(r=>[e,o,t,r])).reduce((e,[o,t,r,a])=>{e[a]=e[a]??[];const n=[o,t,r];return e[a].push(n),e},{}):null},exports.getConfigVariants=function(e,o="variant"){const t=eo(e,o);if("no-variants"===t.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===t.type){if(uo(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 r=(0,io.default)(t.variants).reduce((e,[o,t])=>{for(const r of t.options)e[r]??=[],e[r].includes(o)||e[r].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(r),variantToSubcomponentNames:r}},exports.getDefaultButtonBaseMap=ko,exports.getShadowLayerValue=Fo,exports.getShadowPresetValues=function({config:o,shadowType:t}){const r=o?.shadow?.[t];if(!r)return{};const a={};return e.entries(r).forEach(([e,o])=>{if("none"===e)return void(a[`--uds-${t}-shadow-${e}`]="0 0 transparent");const r=o.map((e,o)=>Fo({preset:e,prefix:o>0?`${o+1}`:void 0,shadowType:t}));a[`--uds-${t}-shadow-${e}`]=`${r.join(", ")}`}),a},exports.isConfigDefaultValue=function(e,o,t,r){return oo(e,o,t)===r},exports.parseButtonVariantFlat=function({palette:e="accent",variant:o="primary"}){return"accent"===e?o:"primary"===o?e:`${e}-${o}`},exports.parseDeprecatedButtonPaletteVariant=function({flatVariant:e}){if(!e)return{palette:void 0,variant:void 0};const[o,t]=e.split("-");return t?{palette:o,variant:t}:["primary","secondary","tertiary"].includes(e)?{palette:"accent",variant:e}:{palette:e,variant:"primary"}},exports.setConfigPseudoStateVariable=fo,exports.shadow={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"}}]}},exports.statePseudoMapDocsMode=vo,exports.toMinimalDbConfigObject=function(e){const o={},t={};for(const o in e.variants){const r=e.variants[o];t[o]=r.default}o.defaults=t,o.variables={};for(const t in e.variants){const r=e.variants[t];for(const e of r.options)if(r.componentStates){const a=r.componentStates;for(const r in a){const n=a[r];for(const a of n.options)for(const s in n.layers){const l=n.layers[s],i=Qe({variantKey:t,variantValue:e,stateKey:r,stateValue:a,layer:s});o.variables[i]={};for(const t in l.properties){const r=l.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[i]={...o.variables[i],...a}}}}}else for(const a in r.layers){const n=r.layers[a],s=Qe({variantKey:t,variantValue:e,layer:a});o.variables[s]={};for(const t in n.properties){const r=n.properties[t],a={[t]:{rest:{type:yo(r,e),valueType:"alias",value:r.defaults[e]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[t][o]={type:yo(r,e),valueType:"alias",value:r.defaults[e]};o.variables[s]={...o.variables[s],...a}}}}if(e.subComponents){const{subComponents:t}=e;for(const e in t)for(const r in t[e].variants){const a=t[e].variants[r];o.defaults[r]=a.default;for(const t of a.options)if(a.componentStates){const n=a.componentStates;for(const a in n){const s=n[a];for(const n of s.options)for(const l in s.layers){const i=s.layers[l],u=Qe({variantKey:r,variantValue:t,stateKey:a,stateValue:n,layer:l,subComponentName:e});o.variables[u]={};for(const e in i.properties){const r=i.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[u]={...o.variables[u],...a}}}}}else for(const n in a.layers){const s=a.layers[n],l=Qe({variantKey:r,variantValue:t,layer:n,subComponentName:e});o.variables[l]={};for(const e in s.properties){const r=s.properties[e],a={[e]:{rest:{type:yo(r,t),valueType:"alias",value:r.defaults[t]}}};if(r.pseudoStates)for(const o of r.pseudoStates)a[e][o]={type:yo(r,t),valueType:"alias",value:r.defaults[t]};o.variables[l]={...o.variables[l],...a}}}}}return o};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import{require_isFunction as o,variants as r}from"./chunk-
|
2
|
-
function y(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function C(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var w=u({extend:{theme:{borderColor:d,borderWidth:l,borderRadius:s}},override:{classGroups:{"text-color":[{text:[...i,...a]}],"bg-color":[{bg:n}],"font-family":[{font:["icons",...e]}],leading:[{leading:e}]},conflictingClassGroups:{}}}),W=(...o)=>{const r=c(o);return w(r)},v=o=>r=>{if(!o?.variants)return W(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map(o=>{const n=r?.[o],i=e?.[o],a=y(n)||y(i);return t[o][a]}),i={...e,...r&&C(r)},a=o?.compoundVariants?.reduce((o,{className:r,...t})=>Object.entries(t).every(([o,r])=>i[o]===r)?W(o,r):o,"");return W(o?.base,n,a,r?.className)},B=v({variants:r}),T=new Map,N=o=>{const{useGetStylesCache:r}=f();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(C(o)),t=(new p).hash(JSON.stringify(r)).result();if(T.has(t))return T.get(t);const e=B(r);return T.set(t,e),e}return B(o)};function E(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function R(){const o=m((o,t)=>{const{children:n,...i}=o,a=S.toArray(n),s=a.find(e);if(s){const o=s.props.children,e=a.map(r=>r===s?S.count(o)>1?S.only(null):h(o)?o.props.children:null:r);return x(r,{...i,ref:t,children:h(o)?g(o,void 0,e):null})}return x(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=m((o,r)=>{const{children:t,...e}=o;return h(t)?g(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):S.count(t)>1?S.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return h(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var
|
3
|
-
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{
|
1
|
+
import{require_isFunction as o,variants as r}from"./chunk-R7H6N4CT.js";import{__toESM as t}from"./chunk-GF4A6TFM.js";import{textVariants as e,backgroundColors as n,foregroundColors as i,spectrumColors as a,borderRadii as s,borderWidths as l,lineColors as d}from"@yahoo/uds/fixtures";import{getFeatureFlags as f}from"@yahoo/uds/flags";import{clsx as c}from"clsx";import p from"imurmurhash";import{extendTailwindMerge as u}from"tailwind-merge";import{forwardRef as m,memo as b,isValidElement as h,cloneElement as g,Children as S}from"react";import{jsx as x}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
function y(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function C(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var w=u({extend:{theme:{borderColor:d,borderWidth:l,borderRadius:s}},override:{classGroups:{"text-color":[{text:[...i,...a]}],"bg-color":[{bg:n}],"font-family":[{font:["icons",...e]}],leading:[{leading:e}]},conflictingClassGroups:{}}}),W=(...o)=>{const r=c(o);return w(r)},v=o=>r=>{if(!o?.variants)return W(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map(o=>{const n=r?.[o],i=e?.[o],a=y(n)||y(i);return t[o][a]}),i={...e,...r&&C(r)},a=o?.compoundVariants?.reduce((o,{className:r,...t})=>Object.entries(t).every(([o,r])=>i[o]===r)?W(o,r):o,"");return W(o?.base,n,a,r?.className)},B=v({variants:r}),T=new Map,N=o=>{const{useGetStylesCache:r}=f();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(C(o)),t=(new p).hash(JSON.stringify(r)).result();if(T.has(t))return T.get(t);const e=B(r);return T.set(t,e),e}return B(o)};function E(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function R(){const o=m((o,t)=>{const{children:n,...i}=o,a=S.toArray(n),s=a.find(e);if(s){const o=s.props.children,e=a.map(r=>r===s?S.count(o)>1?S.only(null):h(o)?o.props.children:null:r);return x(r,{...i,ref:t,children:h(o)?g(o,void 0,e):null})}return x(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=m((o,r)=>{const{children:t,...e}=o;return h(t)?g(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):S.count(t)>1?S.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return h(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var z=R(),G=m(function({asChild:o,as:r="div",className:t,backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:g,borderEndWidth:S,borderTopWidth:y,borderBottomWidth:C,alignContent:w,alignItems:W,alignSelf:v,flex:B,flexDirection:T,flexGrow:E,flexShrink:R,flexWrap:G,justifyContent:H,flexBasis:V,display:j="flex",overflow:k,overflowX:I,overflowY:O,position:A,spacing:D,spacingHorizontal:F,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:M,spacingTop:J,offset:P,offsetVertical:Z,offsetHorizontal:_,offsetBottom:q,offsetEnd:K,offsetStart:L,offsetTop:Q,columnGap:U,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,...io},ao){const so=N({backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:g,borderEndWidth:S,borderTopWidth:y,borderBottomWidth:C,alignContent:w,alignItems:W,alignSelf:v,flex:B,flexDirection:T,flexGrow:E,flexShrink:R,flexWrap:G,justifyContent:H,flexBasis:V,display:j,overflow:k,overflowX:I,overflowY:O,position:A,spacing:D,spacingHorizontal:F,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:M,spacingTop:J,offset:P,offsetVertical:Z,offsetHorizontal:_,offsetBottom:q,offsetEnd:K,offsetStart:L,offsetTop:Q,columnGap:U,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,className:t});return x(o?z:r,{className:so,ref:ao,...io})});G.displayName="Box";var H=R(),V={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},j=m(function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=V[e],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:l,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:g,borderStartColor:S,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:W,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:E,borderTopWidth:R,borderBottomWidth:z,alignContent:G,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:A,flexShrink:D,flexWrap:F,justifyContent:X,flexBasis:Y,display:$,overflow:M,overflowX:J,overflowY:P,position:Z,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:s??e,lineHeight:l??e,textTransform:d??e}:{},textAlign:f},mo=N({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:g,borderStartColor:S,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:W,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:E,borderTopWidth:R,borderBottomWidth:z,alignContent:G,alignItems:j,alignSelf:k,flex:I,flexDirection:O,flexGrow:A,flexShrink:D,flexWrap:F,justifyContent:X,flexBasis:Y,display:$,overflow:M,overflowX:J,overflowY:P,position:Z,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo});return x(r?H:n,{className:mo,ref:po,...co})});j.displayName="Text";var k={xs:12,sm:16,md:24,lg:32},I=m(function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const s=o.metadata?.variants??[],l=s.includes(t)?t:s[0]??"fill",d="multicolor"===l,f=N({flex:"none",color:d?void 0:e,className:W(n,!d&&"[&_path]:fill-current")}),c=k[r];return x("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:x(o,{size:r,variant:l})})});I.displayName="Icon";var O=t(o(),1),A=b(function({icon:o,iconProps:r,className:t,...e}){if(!o)return null;const{className:n,...i}=r||{},a=W(t,n),s=o;if(s.metadata?.isSvgIcon)return x(I,{name:s,...i,...e,className:a});if((0,O.default)(o)){const t=o(r||{}),n=t?.props.className;return h(t)&&g(t,{...e,className:W(a,n)})}return h(o)&&g(o,{...i,...o.props,...e,className:W(a,o.props.className)})});A.displayName="IconSlot";
|
3
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{G as Box,I as Icon,A as IconSlot,j as Text,R as createSlot,v as cva,W as cx,N as getStyles};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-A4HDAVWF.cjs"),t=require("./chunk-
|
1
|
+
"use strict";var e=require("./chunk-A4HDAVWF.cjs"),t=require("./chunk-246TFVNK.cjs"),r=require("./chunk-J7PUOUXC.cjs"),n=require("./chunk-VB3FJZDC.cjs"),a=require("./chunk-LZ6EKK62.cjs"),o=require("./chunk-QLXJH36U.cjs"),s=require("@yahoo/uds/fixtures");function i(e){return e&&e.__esModule?e:{default:e}}var c=i(require("tailwindcss/plugin.js")),d=o.__commonJS({"../../node_modules/lodash/isString.js"(e,t){var r=n.require_baseGetTag(),a=n.require_isArray(),o=n.require_isObjectLike();t.exports=function(e){return"string"==typeof e||!a(e)&&o(e)&&"[object String]"==r(e)}}}),u=o.__toESM(d(),1),l=e=>{throw new Error("Didn't expect to get here")};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var _=e=>"."+a.TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES[e],f=(e,t,r,n)=>{const a=e.typography[t]?.[r];if(!a)throw new Error(`Missing typography data for variant "${t}" and key "${r}"`);const o="base"===n?a.base:a.breakpoints?.[n];if(!o)throw new Error(`Missing value for variant "${t}", key "${r}", and breakpoint "${n}"`);if((0,u.default)(o))return o;switch(o.type){case"px":return o.value/16+"rem";case"unitless":return String(o.value)}return l()},E=(e,t)=>t in e.font?`var(--${a.FONT_FAMILY_PREFIX}-${t})`:t,F=(e,t)=>Object.fromEntries(s.textVariants.flatMap(r=>[[`--${a.FONT_FAMILY_PREFIX}-${r}`,E(e,f(e,r,"fontFamily",t))],[`--${a.FONT_SIZE_PREFIX}-${r}`,f(e,r,"fontSize",t)],[`--${a.FONT_WEIGHT_PREFIX}-${r}`,f(e,r,"fontWeight",t)],[`--${a.FONT_SLANT_PREFIX}-${r}`,f(e,r,"fontSlant",t)],[`--${a.FONT_WIDTH_PREFIX}-${r}`,f(e,r,"fontWidth",t)],[`--${a.LINE_HEIGHT_PREFIX}-${r}`,f(e,r,"lineHeight",t)],[`--${a.TEXT_TRANSFORM_PREFIX}-${r}`,f(e,r,"textTransform",t)]])),p=e=>Object.fromEntries(s.textVariants.map(t=>[t,`var(--${e}-${t})`])),S={fontFamily:p(a.FONT_FAMILY_PREFIX),fontWeight:p(a.FONT_WEIGHT_PREFIX),fontSlant:p(a.FONT_SLANT_PREFIX),fontWidth:p(a.FONT_WIDTH_PREFIX),fontSize:p(a.FONT_SIZE_PREFIX),lineHeight:p(a.LINE_HEIGHT_PREFIX),textTransform:p(a.TEXT_TRANSFORM_PREFIX)};function g(e,{addBase:t}){const r=m(e);for(const e of r)t({"@font-face":e})}var h=c.default.withOptions(function({fontIds:e}){return function({addBase:t}){g(e,{addBase:t})}});function m(e){return e.flatMap(e=>{const{declarations:r,fontFamily:n}=t.FONT_DECLARATIONS_MAP[e];return r.map(e=>({fontFamily:n,fontDisplay:"swap",...e}))})}function I(e){return`"${e}"`}function T(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.RESPONSIVE_TAILWIND_CONFIG_MAP=S,exports.addFontFaceDeclarations=g,exports.addFontsPlugin=h,exports.assertUnreachable=l,exports.getBaseTextVars=e=>F(e,"base"),exports.getColorModeStyles=function(e){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...e.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...e.colorMode.dark._vars}}},exports.getFontFaceDeclarations=m,exports.getFontStyles=function(e){return t.fromEntries(r.entries(e).map(([e,r])=>{const n=`--${a.FONT_FAMILY_PREFIX}-${e}`,o=t.FONT_DECLARATIONS_MAP[r];return[n,[o.fontFamily,...o.fallback].map(I).join(", ")]}))},exports.getMotionStyles=function(n){const a=r.entries(n).flatMap(([t,n])=>r.entries(n).flatMap(([r,n])=>s.motionSpringConfigOptions.map(a=>[e.getMotionVar({variant:t,speed:r,control:a}),`${n[a]}`])));return t.fromEntries(a)},exports.getResponsiveTextStyles=e=>{const t=(r=e.breakpoints,Object.entries(r)).sort(([,{value:e}],[,{value:t}])=>e-t);var r;return{[`.${a.TEXT_RESPONSIVE_CLASSNAME}`]:Object.fromEntries(t.map(([t,{value:r}])=>[`@media (min-width: ${r}px)`,F(e,t)])),[_("base")]:F(e,"base"),...Object.fromEntries(t.map(([t])=>[_(t),F(e,t)]))}},exports.getScaleModeStyles=function(e){return{xSmall:T(e.scaleMode.xSmall),small:T(e.scaleMode.small),medium:T(e.scaleMode.medium),large:T(e.scaleMode.large),xLarge:T(e.scaleMode.xLarge),xxLarge:T(e.scaleMode.xxLarge),xxxLarge:T(e.scaleMode.xxxLarge)}},exports.getShadowStyles=function({config:e,shadowType:n}){const o=e.shadow[n],s=r.entries(o).map(([e])=>[`.uds-${n}-shadow-${e}`,{[`--uds-${n}-shadow`]:`var(--${a.UDS_PREFIX}-${n}-shadow-${e})`,boxShadow:`var(--${a.UDS_PREFIX}-drop-shadow, 0 0 transparent), var(--${a.UDS_PREFIX}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}]);return t.fromEntries(s)},exports.require_isString=d;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{HStack as o}from"./chunk-RMBR7QGP.js";import{getStyles as t,cx as r,IconSlot as e,Box as i}from"./chunk-2H43JYG6.js";import{jsxs as n,jsx as a}from"react/jsx-runtime";import{memo as l}from"react";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */function d({width:o,height:r,src:e,alt:i,contentFit:n,backgroundColor:l,borderRadius:d,borderTopStartRadius:s,borderTopEndRadius:p,borderBottomStartRadius:c,borderBottomEndRadius:f,borderColor:u,borderStartColor:m,borderEndColor:b,borderTopColor:h,borderBottomColor:g,borderWidth:x,borderVerticalWidth:T,borderHorizontalWidth:S,borderStartWidth:C,borderEndWidth:W,borderTopWidth:B,borderBottomWidth:H,alignContent:R,alignItems:V,alignSelf:I,flex:w,flexDirection:z,flexGrow:E,flexShrink:y,flexWrap:v,justifyContent:G,flexBasis:N,display:k,overflow:j,overflowX:F,overflowY:P,position:Y,spacing:D,spacingHorizontal:X,spacingVertical:J,spacingBottom:M,spacingEnd:Q,spacingStart:q,spacingTop:A,offset:K,offsetVertical:L,offsetHorizontal:O,offsetBottom:U,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:to,...ro}){const eo=t({contentFit:n,backgroundColor:l,borderRadius:d,borderTopStartRadius:s,borderTopEndRadius:p,borderBottomStartRadius:c,borderBottomEndRadius:f,borderColor:u,borderStartColor:m,borderEndColor:b,borderTopColor:h,borderBottomColor:g,borderWidth:x,borderVerticalWidth:T,borderHorizontalWidth:S,borderStartWidth:C,borderEndWidth:W,borderTopWidth:B,borderBottomWidth:H,alignContent:R,alignItems:V,alignSelf:I,flex:w,flexDirection:z,flexGrow:E,flexShrink:y,flexWrap:v,justifyContent:G,flexBasis:N,display:k,overflow:j,overflowX:F,overflowY:P,position:Y,spacing:D,spacingHorizontal:X,spacingVertical:J,spacingBottom:M,spacingEnd:Q,spacingStart:q,spacingTop:A,offset:K,offsetVertical:L,offsetHorizontal:O,offsetBottom:U,offsetEnd:Z,offsetStart:$,offsetTop:_,columnGap:oo,rowGap:to});return a("img",{src:e,alt:i,className:eo,style:{width:o,height:r},...ro})}function s({startIcon:i,endIcon:l,iconProps:d,children:s,size:p,isFilled:c,...f}){const u={helperText:r(t({inputSizeHelperText:p,inputVariantHelperText:"default",inputVariantValueHelperText:c?"filled":"empty"})),helperIcon:t({inputSizeHelperIcon:p,inputVariantHelperIcon:"default",inputVariantValueHelperIcon:c?"filled":"empty"})},m={variant:"outline",...d};return n(o,{gap:"1",alignItems:"center",...f,children:[i&&a(e,{icon:i,...m,iconProps:d,className:u.helperIcon}),a("span",{className:u.helperText,children:s}),l&&a(e,{icon:l,...m,iconProps:d,className:u.helperIcon})]})}s.displayName="InputHelpTextInternal";var p=l(s),c=({size:o="md",isFilled:r,...e})=>{const n={root:t({inputSizeRoot:o,inputVariantRoot:"default",inputVariantValueRoot:r?"filled":"empty"})};return a(i,{asChild:!0,spacingTop:"2",className:n.root,children:a(s,{size:o,isFilled:r,...e})})};c.displayName="InputHelpText";var f=l(c);export{d as Image,p as InputHelpTextInternalMemo,f as InputHelpTextMemo};
|