@yahoo/uds 3.21.0 → 3.22.0

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.
Files changed (75) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-darwin-x64 +0 -0
  3. package/cli/bin/uds-linux-arm64 +0 -0
  4. package/cli/bin/uds-linux-x64-baseline +0 -0
  5. package/dist/analytics/server.cjs +1 -1
  6. package/dist/analytics/server.js +1 -1
  7. package/dist/chunk-3WKHS4HP.cjs +1 -1
  8. package/dist/chunk-44EYIAVP.cjs +1 -1
  9. package/dist/chunk-6OYKLY27.js +1 -1
  10. package/dist/chunk-BCGLIYVJ.js +1 -1
  11. package/dist/chunk-CO72B6KB.js +1 -1
  12. package/dist/chunk-DJUNEWZ7.js +1 -1
  13. package/dist/chunk-DOU22WQU.js +1 -1
  14. package/dist/chunk-DR45EMIP.cjs +1 -1
  15. package/dist/chunk-EWJ3J526.js +1 -1
  16. package/dist/chunk-HLPRIDDR.js +1 -1
  17. package/dist/chunk-J7PUOUXC.cjs +1 -1
  18. package/dist/chunk-KF3ZAI5G.js +1 -1
  19. package/dist/chunk-LMKMOCXO.js +1 -1
  20. package/dist/chunk-NAVOLTJQ.cjs +1 -1
  21. package/dist/chunk-NUEZVMWZ.cjs +1 -1
  22. package/dist/chunk-NW3RYPC2.cjs +1 -1
  23. package/dist/chunk-NYQHJWTA.cjs +1 -1
  24. package/dist/chunk-QJFI4SGB.cjs +1 -1
  25. package/dist/chunk-QRYRSFZY.js +1 -1
  26. package/dist/chunk-S5UKKXRV.js +1 -1
  27. package/dist/chunk-VEV6WWFB.cjs +1 -1
  28. package/dist/chunk-ZMUVDUDE.cjs +1 -1
  29. package/dist/client/Menu.cjs +2 -2
  30. package/dist/client/Menu.js +2 -2
  31. package/dist/client/index.cjs +1 -1
  32. package/dist/client/index.js +1 -1
  33. package/dist/experimental/client/SwitchV2.cjs +2 -1
  34. package/dist/experimental/client/SwitchV2.js +2 -1
  35. package/dist/experimental/client/index.cjs +1 -1
  36. package/dist/experimental/client/index.js +1 -1
  37. package/dist/experimental/index.cjs +1 -1
  38. package/dist/experimental/index.js +1 -1
  39. package/dist/fixtures.d.cts +1 -1
  40. package/dist/fixtures.d.ts +1 -1
  41. package/dist/index.cjs +1 -1
  42. package/dist/index.js +1 -1
  43. package/dist/metafile-cjs.json +1 -1
  44. package/dist/metafile-esm.json +1 -1
  45. package/dist/tailwind/plugin.cjs +1 -1
  46. package/dist/tailwind/plugin.js +1 -1
  47. package/dist/tailwind/tsMorph.cjs +1 -1
  48. package/dist/tailwind/tsMorph.js +1 -1
  49. package/dist/tokens/automation/configs.cjs +1 -1
  50. package/dist/tokens/automation/configs.js +1 -1
  51. package/package.json +12 -12
  52. package/dist/Input-CjSSpDxo.d.ts +0 -42
  53. package/dist/Input-j8aXgNl5.d.cts +0 -42
  54. package/dist/Pressable-BuGapAWr.d.cts +0 -44
  55. package/dist/Pressable-DkqJ7djj.d.ts +0 -44
  56. package/dist/VStack-BPdz1Irb.d.ts +0 -112
  57. package/dist/VStack-I7A-h7cx.d.cts +0 -112
  58. package/dist/chunk-25EGJJTF.js +0 -1
  59. package/dist/chunk-3KD7Z4VU.cjs +0 -1
  60. package/dist/chunk-3LMD4WN2.cjs +0 -1
  61. package/dist/chunk-FB24G54Q.js +0 -1
  62. package/dist/chunk-FE2NSEV3.cjs +0 -1
  63. package/dist/chunk-FSOKVNOU.cjs +0 -1
  64. package/dist/chunk-HVO44Q6L.js +0 -3
  65. package/dist/chunk-LLOJ3DFF.js +0 -2
  66. package/dist/chunk-MAVEX7MK.js +0 -1
  67. package/dist/chunk-MY5QUB5N.js +0 -1
  68. package/dist/chunk-NOZDL36X.cjs +0 -3
  69. package/dist/chunk-W2Y5UCIX.cjs +0 -1
  70. package/dist/chunk-Y6EOG5IR.cjs +0 -2
  71. package/dist/chunk-Z2ZVRADJ.js +0 -2
  72. package/dist/index-C39loIM9.d.cts +0 -243
  73. package/dist/index-CGhLQEyB.d.ts +0 -243
  74. package/dist/types-D113cJbW.d.cts +0 -10465
  75. package/dist/types-D113cJbW.d.ts +0 -10465
Binary file
Binary file
Binary file
Binary file
@@ -1 +1 @@
1
- "use strict";var e=require("os"),t=require("child_process"),i=require("uuid");function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e),s=r(t),a=/^(\w+)\:\s+flags=/,o=/^(\w+)\s{2,}link encap:\w+/i,c=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,l=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function u(){let e="eth";const t=n.default.platform();return"darwin"===t?e="en":"win32"===t&&(e=void 0),e}function d(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function f(e,t,i=!1){let r;for(const n of e)if(d(n.family,t)){if(i&&n.address.startsWith("127."))continue;if("IPv6"!==t)return n;if(0===n.scopeid)return n;r||(r=n)}return r}function m(e,t){let i;i=e,i=i||u();const r=function(e,t){const i=n.default.networkInterfaces(),r=!t;if(e=e||"IPv4",t=t||u())for(let r=-1;r<8;r++){const n=i[t+(r>=0?r:"")];if(n){const t=f(n,e);if(t)return t}}if(r)for(const t in i){const r=i[t];if(r){const t=f(r,e,!0);if(t)return t}}}("IPv4",i);return r?(process.env.CI||"ff:00:00:00:00:00"!==r.mac&&"00:00:00:00:00:00"!==r.mac||(r.mac=""),r.mac?t(null,r.mac):void s.default.exec("win32"===n.default.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,n)=>{if(e||!n)return t(e);if(!i)return t();const s=function(e,t,i){const r=e.split("\n");for(let e=0;e<r.length;e++){let n=r[e].trimEnd();const s=a.exec(n)||o.exec(n);if(!s)continue;if(0!==s[1].indexOf(t))continue;let u=null,d=null,f=c.exec(n);for(f&&(d=f[1]),e++;;){if(n=r[e],!n||a.exec(n)||o.exec(n)){e--;break}d||(f=c.exec(n),f&&(d=f[1])),u||(f=l.exec(n),f&&(u=f[1])),e++}if(u===i)return d}return null}(n||"",i,r.address);t(null,s)}))):t()}async function h(){const e=await new Promise(((e,t)=>{m("",((i,r)=>{if(i)return t(i);e(r||null)}))}))??n.default.hostname();return i.v5(e,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var p={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},w={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},g=["development","test"].includes(process.env.NODE_ENV??""),v=new class{#e;#t;#i;#r=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:r,user:n}){if(!this.#r)return this.#e=t,this.#t=i,this.user=n,this.appName=e,this.debugMode=r??g,h().then((e=>{this.#i=e,this.#r=!0,this.#n()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#n(){if(!this.#r)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#n();const{role:i,team:r}=this.user.analyticsContext??{},n=i&&r?{role:{value:i},team:{value:r}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:n,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:p.all,apiSecret:w.all}].map((async({id:t,apiSecret:i})=>{try{const r=new URL("https://www.google-analytics.com/mp/collect");r.searchParams.set("measurement_id",t),r.searchParams.set("api_secret",i);const n=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!n.ok)throw new Error(`HTTP error status: ${n.status}`);g&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};exports.GA_MEASUREMENT_IDS=p,exports.GA_MEASUREMENT_SECRETS=w,exports.track=v;
1
+ "use strict";var e=require("os"),t=require("child_process"),i=require("uuid");function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e),s=r(t),a=/^(\w+)\:\s+flags=/,o=/^(\w+)\s{2,}link encap:\w+/i,c=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,l=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function u(){let e="eth";const t=n.default.platform();return"darwin"===t?e="en":"win32"===t&&(e=void 0),e}function d(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function f(e,t,i=!1){let r;for(const n of e)if(d(n.family,t)){if(i&&n.address.startsWith("127."))continue;if("IPv6"!==t)return n;if(0===n.scopeid)return n;r||(r=n)}return r}function m(e,t){let i;i=e,i=i||u();const r=function(e,t){const i=n.default.networkInterfaces(),r=!t;if(e=e||"IPv4",t=t||u())for(let r=-1;r<8;r++){const n=i[t+(r>=0?r:"")];if(n){const t=f(n,e);if(t)return t}}if(r)for(const t in i){const r=i[t];if(r){const t=f(r,e,!0);if(t)return t}}}("IPv4",i);return r?(process.env.CI||"ff:00:00:00:00:00"!==r.mac&&"00:00:00:00:00:00"!==r.mac||(r.mac=""),r.mac?t(null,r.mac):void s.default.exec("win32"===n.default.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},(e,n)=>{if(e||!n)return t(e);if(!i)return t();const s=function(e,t,i){const r=e.split("\n");for(let e=0;e<r.length;e++){let n=r[e].trimEnd();const s=a.exec(n)||o.exec(n);if(!s)continue;if(0!==s[1].indexOf(t))continue;let u=null,d=null,f=c.exec(n);for(f&&(d=f[1]),e++;;){if(n=r[e],!n||a.exec(n)||o.exec(n)){e--;break}d||(f=c.exec(n),f&&(d=f[1])),u||(f=l.exec(n),f&&(u=f[1])),e++}if(u===i)return d}return null}(n||"",i,r.address);t(null,s)})):t()}async function h(){const e=await new Promise((e,t)=>{m("",(i,r)=>{if(i)return t(i);e(r||null)})})??n.default.hostname();return i.v5(e,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var p={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},w={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},g=["development","test"].includes(process.env.NODE_ENV??""),v=new class{#e;#t;#i;#r=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:r,user:n}){if(!this.#r)return this.#e=t,this.#t=i,this.user=n,this.appName=e,this.debugMode=r??g,h().then(e=>{this.#i=e,this.#r=!0,this.#n()});console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#n(){if(!this.#r)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#n();const{role:i,team:r}=this.user.analyticsContext??{},n=i&&r?{role:{value:i},team:{value:r}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:n,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:p.all,apiSecret:w.all}].map(async({id:t,apiSecret:i})=>{try{const r=new URL("https://www.google-analytics.com/mp/collect");r.searchParams.set("measurement_id",t),r.searchParams.set("api_secret",i);const n=await fetch(r.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!n.ok)throw new Error(`HTTP error status: ${n.status}`);g&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}});return Promise.allSettled(a)}};exports.GA_MEASUREMENT_IDS=p,exports.GA_MEASUREMENT_SECRETS=w,exports.track=v;
@@ -1 +1 @@
1
- import e from"os";import t from"child_process";import{v5 as i}from"uuid";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var n=/^(\w+)\:\s+flags=/,r=/^(\w+)\s{2,}link encap:\w+/i,s=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,a=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function o(){let t="eth";const i=e.platform();return"darwin"===i?t="en":"win32"===i&&(t=void 0),t}function c(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function l(e,t,i=!1){let n;for(const r of e)if(c(r.family,t)){if(i&&r.address.startsWith("127."))continue;if("IPv6"!==t)return r;if(0===r.scopeid)return r;n||(n=r)}return n}function d(i,c){let d;d=i,d=d||o();const u=function(t,i){const n=e.networkInterfaces(),r=!i;if(t=t||"IPv4",i=i||o())for(let e=-1;e<8;e++){const r=n[i+(e>=0?e:"")];if(r){const e=l(r,t);if(e)return e}}if(r)for(const e in n){const i=n[e];if(i){const e=l(i,t,!0);if(e)return e}}}("IPv4",d);return u?(process.env.CI||"ff:00:00:00:00:00"!==u.mac&&"00:00:00:00:00:00"!==u.mac||(u.mac=""),u.mac?c(null,u.mac):void t.exec("win32"===e.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},((e,t)=>{if(e||!t)return c(e);if(!d)return c();const i=function(e,t,i){const o=e.split("\n");for(let e=0;e<o.length;e++){let c=o[e].trimEnd();const l=n.exec(c)||r.exec(c);if(!l)continue;if(0!==l[1].indexOf(t))continue;let d=null,u=null,m=s.exec(c);for(m&&(u=m[1]),e++;;){if(c=o[e],!c||n.exec(c)||r.exec(c)){e--;break}u||(m=s.exec(c),m&&(u=m[1])),d||(m=a.exec(c),m&&(d=m[1])),e++}if(d===i)return u}return null}(t||"",d,u.address);c(null,i)}))):c()}async function u(){const t=await new Promise(((e,t)=>{d("",((i,n)=>{if(i)return t(i);e(n||null)}))}))??e.hostname();return i(t,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var m={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},f={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},h=["development","test"].includes(process.env.NODE_ENV??""),p=new class{#e;#t;#i;#n=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:n,user:r}){if(!this.#n)return this.#e=t,this.#t=i,this.user=r,this.appName=e,this.debugMode=n??h,u().then((e=>{this.#i=e,this.#n=!0,this.#r()}));console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#r(){if(!this.#n)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#r();const{role:i,team:n}=this.user.analyticsContext??{},r=i&&n?{role:{value:i},team:{value:n}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:r,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:m.all,apiSecret:f.all}].map((async({id:t,apiSecret:i})=>{try{const n=new URL("https://www.google-analytics.com/mp/collect");n.searchParams.set("measurement_id",t),n.searchParams.set("api_secret",i);const r=await fetch(n.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!r.ok)throw new Error(`HTTP error status: ${r.status}`);h&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}}));return Promise.allSettled(a)}};export{m as GA_MEASUREMENT_IDS,f as GA_MEASUREMENT_SECRETS,p as track};
1
+ import e from"os";import t from"child_process";import{v5 as i}from"uuid";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var n=/^(\w+)\:\s+flags=/,r=/^(\w+)\s{2,}link encap:\w+/i,s=/(?:ether|HWaddr)\s+((?:[a-z0-9]{2}\:){5}[a-z0-9]{2})/i,a=/inet\s(?:addr\:)?(\d+\.\d+\.\d+\.\d+)/;function o(){let t="eth";const i=e.platform();return"darwin"===i?t="en":"win32"===i&&(t=void 0),t}function c(e,t){return"IPv4"===t?"IPv4"===e||4===e:"IPv6"===t?"IPv6"===e||6===e:e===t}function l(e,t,i=!1){let n;for(const r of e)if(c(r.family,t)){if(i&&r.address.startsWith("127."))continue;if("IPv6"!==t)return r;if(0===r.scopeid)return r;n||(n=r)}return n}function d(i,c){let d;d=i,d=d||o();const u=function(t,i){const n=e.networkInterfaces(),r=!i;if(t=t||"IPv4",i=i||o())for(let e=-1;e<8;e++){const r=n[i+(e>=0?e:"")];if(r){const e=l(r,t);if(e)return e}}if(r)for(const e in n){const i=n[e];if(i){const e=l(i,t,!0);if(e)return e}}}("IPv4",d);return u?(process.env.CI||"ff:00:00:00:00:00"!==u.mac&&"00:00:00:00:00:00"!==u.mac||(u.mac=""),u.mac?c(null,u.mac):void t.exec("win32"===e.platform()?"ipconfig/all":"/sbin/ifconfig",{timeout:5e3},(e,t)=>{if(e||!t)return c(e);if(!d)return c();const i=function(e,t,i){const o=e.split("\n");for(let e=0;e<o.length;e++){let c=o[e].trimEnd();const l=n.exec(c)||r.exec(c);if(!l)continue;if(0!==l[1].indexOf(t))continue;let d=null,u=null,m=s.exec(c);for(m&&(u=m[1]),e++;;){if(c=o[e],!c||n.exec(c)||r.exec(c)){e--;break}u||(m=s.exec(c),m&&(u=m[1])),d||(m=a.exec(c),m&&(d=m[1])),e++}if(d===i)return u}return null}(t||"",d,u.address);c(null,i)})):c()}async function u(){const t=await new Promise((e,t)=>{d("",(i,n)=>{if(i)return t(i);e(n||null)})})??e.hostname();return i(t,"6ba7b810-9dad-11d1-80b4-00c04fd430c8")}var m={all:"G-0C2FBF3K5Y",docs:"G-6HSWE4WFFV",cli:"G-4N1G785K8W","figma-plugin":"G-Q1PFL2R17E","figma-dev-mode":"G-ZD8YHG3NWV",metrics:"G-1JW6B5D3JH",configurator:"G-JEHT4QPKB0"},f={all:"GwoNoIVUQwy-AP5hKnoskw",cli:"lrds1CjyTGimkKEA9hvmmQ","figma-plugin":"CgJ4b2ISS8KArcJHihE9og","figma-dev-mode":"Ns1whhmxTE-QIpDdbZr45Q"},h=["development","test"].includes(process.env.NODE_ENV??""),p=new class{#e;#t;#i;#n=!1;appName;user;debugMode;async init({appName:e,measurementId:t,apiSecret:i,debugMode:n,user:r}){if(!this.#n)return this.#e=t,this.#t=i,this.user=r,this.appName=e,this.debugMode=n??h,u().then(e=>{this.#i=e,this.#n=!0,this.#r()});console.info("UDS analytics: already initialized.")}getClientId(){return this.#i}#r(){if(!this.#n)throw new Error("UDS analytics: not been initialized. Have you called init()?");if(!this.#e)throw new Error("UDS analytics: measurement property ID has not been set.");if(!this.#i)throw new Error("UDS analytics - client ID has not been set.");if(!this.user)throw new Error("UDS analytics: user has not been set.");if(!this.user.analyticsContext)throw new Error("UDS analytics: user is missing analyticsContext.")}pageview(e={}){return this.event("page_view",e)}event(e,t={}){return this.#s(e,t)}error(e={}){return this.#s("error",e)}async#s(e,t={}){this.#r();const{role:i,team:n}=this.user.analyticsContext??{},r=i&&n?{role:{value:i},team:{value:n}}:void 0,s={client_id:this.#i,user_id:this.user.id,user_properties:r,events:[{name:e,params:{app_name:this.appName,engagement_time_msec:"0",...this.debugMode&&{debug_mode:!0},...t}}]},a=[{id:this.#e,apiSecret:this.#t},{id:m.all,apiSecret:f.all}].map(async({id:t,apiSecret:i})=>{try{const n=new URL("https://www.google-analytics.com/mp/collect");n.searchParams.set("measurement_id",t),n.searchParams.set("api_secret",i);const r=await fetch(n.toString(),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)});if(!r.ok)throw new Error(`HTTP error status: ${r.status}`);h&&console.log(`UDS analytics: event "${e}" sent successfully to ${t}.`)}catch(e){console.error(`UDS analytics: error sending event to ${t}:`,e)}});return Promise.allSettled(a)}};export{m as GA_MEASUREMENT_IDS,f as GA_MEASUREMENT_SECRETS,p as track};
@@ -1 +1 @@
1
- "use strict";var r=require("./chunk-QJFI4SGB.cjs"),e=require("react"),n=require("lodash-es"),t=require("react/jsx-runtime"),a=(r,t)=>((r,e)=>{const t=n.isFunction(e)?e:()=>e;return r.flatMap(((r,e)=>0!==e?[t(e),r]:[r]))})(e.Children.toArray(r),(r=>{const a=n.isFunction(t)?t(r):t;return e.isValidElement(a)?e.cloneElement(a,{...a.props,key:a.key??`interspersed-${r}`}):null})),i=e.forwardRef((function({gap:e,children:n,separator:i,...o},c){return t.jsx(r.Box,{ref:c,flexDirection:"row",rowGap:e,columnGap:e,...o,children:i?a(n,i):n})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */i.displayName="HStack";var o=e.forwardRef((function({gap:e,children:n,separator:i,...o},c){return t.jsx(r.Box,{ref:c,flexDirection:"column",columnGap:e,rowGap:e,...o,children:i?a(n,i):n})}));o.displayName="VStack",exports.HStack=i,exports.VStack=o;
1
+ "use strict";var r=require("./chunk-QJFI4SGB.cjs"),e=require("react"),n=require("lodash-es"),t=require("react/jsx-runtime"),a=(r,t)=>((r,e)=>{const t=n.isFunction(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[t(e),r]:[r])})(e.Children.toArray(r),r=>{const a=n.isFunction(t)?t(r):t;return e.isValidElement(a)?e.cloneElement(a,{...a.props,key:a.key??`interspersed-${r}`}):null}),i=e.forwardRef(function({gap:e,children:n,separator:i,...o},c){return t.jsx(r.Box,{ref:c,flexDirection:"row",rowGap:e,columnGap:e,...o,children:i?a(n,i):n})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */i.displayName="HStack";var o=e.forwardRef(function({gap:e,children:n,separator:i,...o},c){return t.jsx(r.Box,{ref:c,flexDirection:"column",columnGap:e,rowGap:e,...o,children:i?a(n,i):n})});o.displayName="VStack",exports.HStack=i,exports.VStack=o;
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-YMQMU4E2.cjs"),s=require("react"),t=require("motion/react"),n=require("react/jsx-runtime"),i=s.createContext(!1),o=i.Provider,r={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},a=()=>import("./domAnimation-ESPUKI4G.cjs").then((({domAnimation:e})=>e));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.AvoidMotionLibraryProvider=o,exports.SpringMotionConfig=function({children:o,reducedMotion:f="user",loadFeatures:d=a,layoutVariant:p="subtle",layoutSpeed:m="3",colorVariant:g="smooth",colorSpeed:u="3"}){const c=r[p][m],l=r[g][u],[y,M]=s.useState(c),[b,V]=s.useState(l),h={variant:g,speed:u},v=e.getMotionVar({...h,control:"stiffness"}),x=e.getMotionVar({...h,control:"damping"}),C={variant:p,speed:m},P=e.getMotionVar({...C,control:"stiffness"}),S=e.getMotionVar({...C,control:"damping"});s.useEffect((()=>{const e=getComputedStyle(document.documentElement),s={type:"spring",damping:Number(e.getPropertyValue(S)),stiffness:Number(e.getPropertyValue(P))},t={type:"spring",damping:Number(e.getPropertyValue(x)),stiffness:Number(e.getPropertyValue(v))};M(s),V(t)}),[x,v,S,P]);const j=s.useMemo((()=>({type:"spring",mass:1,...y,layout:y,opacity:b,color:b,borderColor:b,backgroundColor:b})),[b,y]);return s.useContext(i)?o:n.jsx(t.LazyMotion,{features:d,strict:!0,children:n.jsx(t.MotionConfig,{transition:j,reducedMotion:f,children:o})})};
1
+ "use strict";var e=require("./chunk-YMQMU4E2.cjs"),s=require("react"),t=require("motion/react"),n=require("react/jsx-runtime"),i=s.createContext(!1),o=i.Provider,r={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},a=()=>import("./domAnimation-ESPUKI4G.cjs").then(({domAnimation:e})=>e);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.AvoidMotionLibraryProvider=o,exports.SpringMotionConfig=function({children:o,reducedMotion:f="user",loadFeatures:d=a,layoutVariant:p="subtle",layoutSpeed:m="3",colorVariant:g="smooth",colorSpeed:u="3"}){const c=r[p][m],l=r[g][u],[y,M]=s.useState(c),[b,V]=s.useState(l),h={variant:g,speed:u},v=e.getMotionVar({...h,control:"stiffness"}),x=e.getMotionVar({...h,control:"damping"}),C={variant:p,speed:m},P=e.getMotionVar({...C,control:"stiffness"}),S=e.getMotionVar({...C,control:"damping"});s.useEffect(()=>{const e=getComputedStyle(document.documentElement),s={type:"spring",damping:Number(e.getPropertyValue(S)),stiffness:Number(e.getPropertyValue(P))},t={type:"spring",damping:Number(e.getPropertyValue(x)),stiffness:Number(e.getPropertyValue(v))};M(s),V(t)},[x,v,S,P]);const j=s.useMemo(()=>({type:"spring",mass:1,...y,layout:y,opacity:b,color:b,borderColor:b,backgroundColor:b}),[b,y]);return s.useContext(i)?o:n.jsx(t.LazyMotion,{features:d,strict:!0,children:n.jsx(t.MotionConfig,{transition:j,reducedMotion:f,children:o})})};
@@ -1,2 +1,2 @@
1
1
  import{mapValues as e,entries as t}from"./chunk-EWJ3J526.js";import{shadowOffsetMap as o,spacingMap as a,shadowSpreadRadiusMap as r}from"@yahoo/uds/fixtures";import{entries as l,cloneDeep as n,lowerCase as s,isFunction as i,mergeWith as p}from"lodash-es";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function u({variantKey:e,variantValue:t,layer:o,subComponentName:a,stateKey:r,stateValue:l}){return a?r&&l?`${a}/${e}/${t}/${r}/${l}/${o}`:`${a}/${e}/${t}/${o}`:r&&l?`${e}/${t}/${r}/${l}/${o}`:`${e}/${t}/${o}`}var c=e=>e.reduce(((e,t)=>e.flatMap((e=>t.map((t=>[e,t].flat()))))));function f(t,o){const a=t.variants?.[o];if(a)return{type:"no-sub-components",variant:a};const r=x(t);if(!r)return{type:"no-variants"};return{type:"has-sub-components",variants:e(r,(e=>e.variants[o]))}}function d(e,t,o){const a=e[t]?.defaults?.[o];if(void 0===a)throw new Error(`The variant default for "${o}" is not defined for the component "${t}"`);return a}function v(e,t,o,a){return d(e,t,o)===a}function y(e){let t=e;return t=t.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach((e=>{t=t.replaceAll(e,"")})),t}function b(e,t,o){const a=f(e,t);switch(a.type){case"no-variants":return null;case"no-sub-components":return a.variant;case"has-sub-components":if(!o)throw new Error("subComponentName argument name is required for configs with subcomponents");return a.variants[o]}}var m=e=>!!e?.layers,h=e=>!!e?.componentStates;function g(e,t,o){const a=b(e,t,o);return a&&h(a)?a?.componentStates??null:null}function w(e,t,o){const a=g(e,t,o);if(!a)return null;return c(l(a).map((([e,t])=>t.options.map((t=>({[e]:t})))))).map((e=>Array.isArray(e)?e.reduce(((e,t)=>({...e,...t})),{}):e))}function $(t){if(!t||!m(t))return null;const o=e(t.layers,(e=>e.properties));for(const e in o){const t=o[e];t&&0!==Object.keys(t).length||delete o[e]}return 0===Object.keys(o).length?null:o}var C=["rest"];function S(e,t,o,a){const r=b(e,t,a);if(!r)return null;return[...m(r)?Object.entries(r?.layers??{}):[],...h(r)&&o?Object.entries(r.componentStates[o].layers??{}):[]].flatMap((([e,t])=>Object.entries(t.properties).map((([t,o])=>[e,t,o])))).flatMap((([e,t,o])=>[...C,...o.pseudoStates??[]].map((a=>[e,t,o,a])))).reduce(((e,[t,o,a,r])=>{e[r]=e[r]??[];const l=[t,o,a];return e[r].push(l),e}),{})}function x(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function W(e,t="variant"){const o=f(e,t);if("no-variants"===o.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===o.type){if(x(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:o.variant.description,variantNames:[...o.variant.options]}}const a=l(o.variants).reduce(((e,[t,o])=>{for(const a of o.options)e[a]??=[],e[a].includes(t)||e[a].push(t);return e}),{});return{type:"has-sub-components",description:Object.values(o.variants).map((e=>e.description)).filter((e=>e))[0]??"",variantNames:Object.keys(a),variantToSubcomponentNames:a}}function k(e,t,o,a,r){const l=e[o].variables[t];if(!l)throw new Error(`No layer variables found for ${t}.`);const n=l[a];if(!n)throw new Error(`No property variables found for ${a}.`);const s=n[r];if(!s)throw new Error(`No pseudoState variables found for ${r}.`);return s}function P(e,t,o,a,r,l){const s=n(e),i=k(s,t,o,a,r);return void 0!==l.type&&(i.type=l.type),void 0!==l.value&&(i.value=l.value),s}function V(e,t,o,a,r){return[k(e,t,o,a,r),l=>P(e,t,o,a,r,l)]}var T={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))'},F={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 N(e,t){const o=e.defaults[t],a=e.typeOfFixture;let r=0;return e.values.forEach(((e,t)=>{e.includes(o)&&(r=t)})),a[r]}function Y(e){const t={},o={};for(const t in e.variants){const a=e.variants[t];o[t]=a.default}t.defaults=o,t.variables={};for(const o in e.variants){const a=e.variants[o];for(const e of a.options)if(a.componentStates){const r=a.componentStates;for(const a in r){const l=r[a];for(const r of l.options)for(const n in l.layers){const s=l.layers[n],i=u({variantKey:o,variantValue:e,stateKey:a,stateValue:r,layer:n});t.variables[i]={};for(const o in s.properties){const a=s.properties[o],r={[o]:{rest:{type:N(a,e),valueType:"alias",value:a.defaults[e]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[o][t]={type:N(a,e),valueType:"alias",value:a.defaults[e]};t.variables[i]={...t.variables[i],...r}}}}}else for(const r in a.layers){const l=a.layers[r],n=u({variantKey:o,variantValue:e,layer:r});t.variables[n]={};for(const o in l.properties){const a=l.properties[o],r={[o]:{rest:{type:N(a,e),valueType:"alias",value:a.defaults[e]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[o][t]={type:N(a,e),valueType:"alias",value:a.defaults[e]};t.variables[n]={...t.variables[n],...r}}}}if(e.subComponents){const{subComponents:o}=e;for(const e in o)for(const a in o[e].variants){const r=o[e].variants[a];t.defaults[a]=r.default;for(const o of r.options)if(r.componentStates){const l=r.componentStates;for(const r in l){const n=l[r];for(const l of n.options)for(const s in n.layers){const i=n.layers[s],p=u({variantKey:a,variantValue:o,stateKey:r,stateValue:l,layer:s,subComponentName:e});t.variables[p]={};for(const e in i.properties){const a=i.properties[e],r={[e]:{rest:{type:N(a,o),valueType:"alias",value:a.defaults[o]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[e][t]={type:N(a,o),valueType:"alias",value:a.defaults[o]};t.variables[p]={...t.variables[p],...r}}}}}else for(const l in r.layers){const n=r.layers[l],s=u({variantKey:a,variantValue:o,layer:l,subComponentName:e});t.variables[s]={};for(const e in n.properties){const a=n.properties[e],r={[e]:{rest:{type:N(a,o),valueType:"alias",value:a.defaults[o]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[e][t]={type:N(a,o),valueType:"alias",value:a.defaults[o]};t.variables[s]={...t.variables[s],...r}}}}}return t}function K({componentName:e,variantKey:t,variantValue:o,layer:a,layerOptionalPseudoSelector:r,subComponentName:l,stateKey:n,stateValue:i}){let p="";return p=l?`uds-${s(e)}-${s(l)}-${s(t)}`:`uds-${s(e)}-${s(t)}`,o&&(p=`${p}-${s(o)}`),n&&i&&(p=`${p}-${s(n)}-${s(i)}`),p=`${p}-${s(a)}`,r&&(p=`${p}${r}`),p.replaceAll(/\s+/g,"-")}function X({componentName:e,variantKey:t,variantValue:o,layer:a,layerOptionalPseudoSelector:r,subComponentName:l,stateKey:n,stateValue:s,schema:p,propertyKey:c,originalPropertyDefinition:f,theme:d,currentStyles:v,previewOptions:y}){const b=u({variantKey:t,variantValue:o,layer:a,subComponentName:l,stateKey:n,stateValue:s});let m=K({componentName:e,variantKey:t,variantValue:o,layer:a,subComponentName:l,stateKey:n,stateValue:s});const h=p.variables[b][c];if(!h)throw"size/md/root"===b&&"spacingHorizontal"===c&&console.log({componentName:e,schemaKey:b,propertyKey:c},p.variables),new Error(`Prop definition (${e} - ${b} - ${c}) not found, this is not expected, please report the bug to the UDS team`);const g={};for(const u in h){const b=T[u]??"";let w="";if("root"===a)if(n&&s){const r=K({componentName:e,variantKey:t,variantValue:o,layer:a,subComponentName:l});m=K({componentName:e,variantKey:t,layer:a,subComponentName:l,stateKey:n,stateValue:s}),w=`.${r}${b}.${m}`}else w=`.${m}${b}`;else{const i=K({componentName:e,variantKey:t,variantValue:o,layer:"root",subComponentName:l});if(n&&s){const p=K({componentName:e,variantKey:t,layer:"root",subComponentName:l,stateKey:n,stateValue:s});m=K({componentName:e,variantKey:t,variantValue:o,layer:a,layerOptionalPseudoSelector:r,subComponentName:l}),w=`.${i}${b}.${p} .${m}`}else w=`.${i}${b} .${m}`}const $=(e,t,o,a)=>{const{value:r,type:l}=e,n=$e[t];let s;if($e[t].customValueRenderer)s=$e[t].customValueRenderer(e,p,o);else{s=o($e[t].twThemePath(l,String(r)))}if(n.concatenate&&a){return`${a}${n.concatenationDelimiter||", "}${s}`}return s},{cssProperties:C,extendedProperties:S}=$e[f.name],x={},W=i(S),k=W?S({componentName:e,subComponentName:l,layer:a,propertyKey:c}):S;if(k&&k.length){if(!W&&("string"==typeof C||Array.isArray(C)&&C.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 k){const t=$e[e].cssProperties;if("string"==typeof t){const o=v?.[w]?.[t];x[t]=$(h[u],e,d,o)}else if(Array.isArray(t))for(const o of t){const t=v?.[w]?.[o];x[o]=$(h[u],e,d,t)}}}else if("string"==typeof C){const e=v?.[w]?.[C];x[C]=$(h[u],f.name,d,e)}else if(Array.isArray(C))for(const e of C){const t=v?.[w]?.[e];x[e]=$(h[u],f.name,d,t)}if(g[w]||(g[w]={...x,...g[w]}),y?.generatePseudoStateClassModifier){const e=F[u]??"";e.length>0&&"root"!==u&&(g[`.${e}${w}`.replace(b,"")]={...x,...g[`.${e}${w}`.replace(b,"")]})}}return g}function A(e,t,o,a){function r(e,t){return p({},e,t)}let l=e.label.toLowerCase();e.overrideComponentName&&(l=e.overrideComponentName.toLowerCase());let n={};for(const s in e.variants){const i=e.variants[s];for(const e of i.options)if(i.componentStates){const p=i.componentStates;for(const i in p){const u=p[i];for(const p of u.options)for(const c in u.layers){const f=u.layers[c];for(const u in f.properties){const d=f.properties[u];n=r(n,X({componentName:l,variantKey:s,variantValue:e,stateKey:i,stateValue:p,layer:c,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:u,originalPropertyDefinition:d,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}}else for(const p in i.layers){const u=i.layers[p];for(const i in u.properties){const c=u.properties[i];n=r(n,X({componentName:l,variantKey:s,variantValue:e,layer:p,layerOptionalPseudoSelector:u.pseudoSelector,propertyKey:i,originalPropertyDefinition:c,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}if(e.subComponents){const{subComponents:s}=e;for(const e in s)for(const i in s[e].variants){const p=s[e].variants[i];for(const s of p.options)if(p.componentStates){const u=p.componentStates;for(const p in u){const c=u[p];for(const u of c.options)for(const f in c.layers){const d=c.layers[f];for(const c in d.properties){const v=d.properties[c];n=r(n,X({componentName:l,variantKey:i,variantValue:s,stateKey:p,stateValue:u,subComponentName:e,layer:f,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:c,originalPropertyDefinition:v,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}}else for(const u in p.layers){const c=p.layers[u];for(const p in c.properties){const f=c.properties[p];n=r(n,X({componentName:l,subComponentName:e,variantKey:i,variantValue:s,layer:u,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:p,originalPropertyDefinition:f,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}}return n}function O(e){return e}function E(e){return e}function R(e){return e}function B(e){return e}function z(e){return e}function M(e){return e}function L(e){return e}function j(e){return e}var H=["none","custom"],D=["none","up","down"],I={hover:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"up",options:D}},pressed:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"down",options:D}}},_={hover:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"up",options:D}},pressed:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"down",options:D}}},J={hover:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"up",options:D}},pressed:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"down",options:D}}},U={dropShadow:{value:"none",config:null},insetShadow:{value:"none",config:null}};function q(e){return{borderWidth:"none",borderRadius:"full",borderColor:{type:"palette",value:"transparent"},backgroundColor:{type:"palette",value:e},color:{type:"palette",value:"on-color"},scale:"none",...U}}function G(e){return{borderWidth:"thin",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:e},color:{type:"palette",value:e},scale:"none",...U}}function Q(e){return{borderWidth:"none",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:e},scale:"none",...U}}var Z={fill:q,outline:G,ghost:Q},ee={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:I,base:q("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("info"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-10"},color:{type:"spectrum",value:"blue-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-11"},color:{type:"spectrum",value:"blue-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...U}}}},accent:{primary:{kind:"fill",effect:I,base:q("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("accent"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-10"},color:{type:"spectrum",value:"carbon-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-11"},color:{type:"spectrum",value:"carbon-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...U}}}},brand:{primary:{kind:"fill",effect:I,base:q("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("brand"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-10"},color:{type:"spectrum",value:"purple-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-11"},color:{type:"spectrum",value:"purple-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...U}}}},alert:{primary:{kind:"fill",effect:I,base:q("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("alert"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-10"},color:{type:"spectrum",value:"red-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-11"},color:{type:"spectrum",value:"red-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...U}}}},positive:{primary:{kind:"fill",effect:I,base:q("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("positive"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-10"},color:{type:"spectrum",value:"green-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-11"},color:{type:"spectrum",value:"green-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...U}}}},warning:{primary:{kind:"fill",effect:I,base:q("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("warning"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-10"},color:{type:"spectrum",value:"orange-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-11"},color:{type:"spectrum",value:"orange-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...U}}}}}},te={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},oe={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"}}]}},ae={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},re="system",le="system",ne="light",se="large",ie=!1,pe="🇺🇸 US",ue="https://s.yimg.com/bw/fonts",ce=["Helvetica Neue","Helvetica","Arial","sans-serif"],fe=["Georgia","Times","Times New Roman","serif"],de={"centra-no2":{fallback:ce,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('${ue}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${ue}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${ue}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${ue}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${ue}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${ue}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${ue}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${ue}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${ue}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${ue}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${ue}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${ue}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${ue}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${ue}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${ue}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:ce,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('${ue}/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('${ue}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${ue}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${ue}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${ue}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${ue}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${ue}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${ue}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${ue}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${ue}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:ce,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('${ue}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:ce,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('${ue}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:ce,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('${ue}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:ce,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('${ue}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${ue}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:ce,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('${ue}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:fe,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('${ue}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${ue}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${ue}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${ue}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:fe,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('${ue}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${ue}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${ue}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function ve({palette:e="accent",variant:t="primary"}){return"accent"===e?t:"primary"===t?e:`${e}-${t}`}function ye({flatVariant:e}){if(!e)return{palette:void 0,variant:void 0};const[t,o]=e.split("-");return o?{palette:t,variant:o}:["primary","secondary","tertiary"].includes(e)?{palette:"accent",variant:e}:{palette:e,variant:"primary"}}function be(e){return Object.fromEntries(e)}var me={black:"0 0 0",white:"255 255 255"};function he({preset:e,prefix:t,shadowType:l}){const n=`--uds-${l}-shadow-`,s="palette"===e.color?.type,i="always"===e.color?.type;let p=`var(--uds-${s?"shadow":"spectrum"}-color-${e?.color?.value})`;i&&(p=me[e.color.value]);const u=`var(${n}${t?`${t}-`:""}color, ${p})`;return`${"inset"===l?"inset ":""}${[`${o[e.offsetX]}px`,`${o[e.offsetY]}px`,`${a[e.blur]}px`,`${r[e.spread]}px`].map((e=>e)).join(" ")} ${`rgb(${u} / var(${n}${t?`${t}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function ge({config:e,shadowType:o}){const a=e?.shadow?.[o];if(!a)return{};const r={};return t(a).forEach((([e,t])=>{if("none"===e)return void(r[`--uds-${o}-shadow-${e}`]="0 0 transparent");const a=t.map(((e,t)=>he({preset:e,prefix:t>0?`${t+1}`:void 0,shadowType:o})));r[`--uds-${o}-shadow-${e}`]=`${a.join(", ")}`})),r}var we=({componentName:e,layer:t,propertyKey:o})=>!("chip"!==e||"root"!==t||!["borderColor","borderWidth"].includes(o))||!("input"!==e||"inputWrapper"!==t||!["borderColor","borderWidth"].includes(o)),$e={...{backgroundColor:{name:"backgroundColor",cssProperties:"background-color",twThemePath:(e,t)=>{if("spectrumColors"===e){const[e,o]=t.split("-");return`colors.${e}.${o}`}return"backgroundPaletteColors"===e||"alwaysPaletteAliases"===e?`backgroundColor.${t}`:"Error"},possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},borderWidth:{name:"borderWidth",cssProperties:"border-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>we(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,t)=>`borderRadius.${t}`,possibleFixtures:["borderRadii"]},borderColor:{name:"borderColor",cssProperties:"border-color",twThemePath:(e,t)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${t}`;if("spectrumColors"===e){const[e,o]=t.split("-");return`borderColor.${e}.${o}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>we(e)&&["outlineColor"]},fontFamily:{name:"fontFamily",cssProperties:"font-family",twThemePath:(e,t)=>`typography.fontFamily.${t}`,possibleFixtures:["textVariants"]},fontSize:{name:"fontSize",cssProperties:"font-size",twThemePath:(e,t)=>`typography.fontSize.${t}`,possibleFixtures:["textVariants"]},lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:(e,t)=>`typography.lineHeight.${t}`,possibleFixtures:["textVariants"]},textTransform:{name:"textTransform",cssProperties:"text-transform",twThemePath:(e,t)=>`typography.textTransform.${t}`,possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},color:{name:"color",cssProperties:"color",twThemePath:(e,t)=>{if("alwaysPaletteAliases"===e||"foregroundPaletteColors"===e)return`textColor.${t}`;if("spectrumColors"===e){const[e,o]=t.split("-");return`textColor.${e}.${o}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},fontWeight:{name:"fontWeight",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:t}=e;return`"wght" var(--uds-font-weight-${t}), "slnt" var(--uds-font-slant-${t}), "wdth" var(--uds-font-width-${t});`}},iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,t)=>`sizing.icon.${t}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform"]},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 t="drop";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map(((e,o)=>he({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0})));return o?.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 t="inset";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map(((e,o)=>he({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0})));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,t)=>`height[${t}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,t)=>`width[${t}]`,possibleFixtures:["spacingAliases"]}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:{name:"outlineColor",cssProperties:"outline-color",twThemePath:(e,t)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${t}`;if("spectrumColors"===e){const[e,o]=t.split("-");return`borderColor.${e}.${o}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:t},o,a)=>`calc(-1 * ${a("borderWidths"===t?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{ne as DEFAULT_COLOR_MODE,re as DEFAULT_COLOR_MODE_FOR_APP,ie as DEFAULT_HIGH_CONTRAST_MODE,pe as DEFAULT_REGION_MODE,se as DEFAULT_SCALE_MODE,le as DEFAULT_SCALE_MODE_FOR_APP,de as FONT_DECLARATIONS_MAP,te as alwaysPalette,ee as button,c as cartesianProduct,f as coalesceConfigVariant,$e as configurableProperties,R as createComponentStateConfig,M as createComponentStates,O as createConfigurableProperty,L as createLayerConfig,j as createSubComponentConfig,E as createVariantConfig,z as createVariantConfigWithComponentStates,B as createVariantConfigWithProperties,N as findFixtureType,ae as fontWeightMap,be as fromEntries,K as generateClassName,X as generateDeclaration,y as generateKeyFromFlatConfigPath,u as generateSchemaKey,A as generateStyles,d as getConfigDefaultValue,k as getConfigPseudoStateVariables,V as getConfigPseudoStateVariablesWithSetter,x as getConfigSubcomponents,g as getConfigVariantComponentStates,w as getConfigVariantComponentStatesMatrix,$ as getConfigVariantProperties,S as getConfigVariantPseudoStates,W as getConfigVariants,Z as getDefaultButtonBaseMap,he as getShadowLayerValue,ge as getShadowPresetValues,v as isConfigDefaultValue,ve as parseButtonVariantFlat,ye as parseDeprecatedButtonPaletteVariant,P as setConfigPseudoStateVariable,oe as shadow,F as statePseudoMapDocsMode,Y as toMinimalDbConfigObject};
2
+ function u({variantKey:e,variantValue:t,layer:o,subComponentName:a,stateKey:r,stateValue:l}){return a?r&&l?`${a}/${e}/${t}/${r}/${l}/${o}`:`${a}/${e}/${t}/${o}`:r&&l?`${e}/${t}/${r}/${l}/${o}`:`${e}/${t}/${o}`}var c=e=>e.reduce((e,t)=>e.flatMap(e=>t.map(t=>[e,t].flat())));function f(t,o){const a=t.variants?.[o];if(a)return{type:"no-sub-components",variant:a};const r=x(t);if(!r)return{type:"no-variants"};return{type:"has-sub-components",variants:e(r,e=>e.variants[o])}}function d(e,t,o){const a=e[t]?.defaults?.[o];if(void 0===a)throw new Error(`The variant default for "${o}" is not defined for the component "${t}"`);return a}function v(e,t,o,a){return d(e,t,o)===a}function y(e){let t=e;return t=t.replaceAll(".","/"),["root/","variables/","variant/","/value"].forEach(e=>{t=t.replaceAll(e,"")}),t}function b(e,t,o){const a=f(e,t);switch(a.type){case"no-variants":return null;case"no-sub-components":return a.variant;case"has-sub-components":if(!o)throw new Error("subComponentName argument name is required for configs with subcomponents");return a.variants[o]}}var m=e=>!!e?.layers,h=e=>!!e?.componentStates;function g(e,t,o){const a=b(e,t,o);return a&&h(a)?a?.componentStates??null:null}function w(e,t,o){const a=g(e,t,o);if(!a)return null;return c(l(a).map(([e,t])=>t.options.map(t=>({[e]:t})))).map(e=>Array.isArray(e)?e.reduce((e,t)=>({...e,...t}),{}):e)}function $(t){if(!t||!m(t))return null;const o=e(t.layers,e=>e.properties);for(const e in o){const t=o[e];t&&0!==Object.keys(t).length||delete o[e]}return 0===Object.keys(o).length?null:o}var C=["rest"];function S(e,t,o,a){const r=b(e,t,a);if(!r)return null;return[...m(r)?Object.entries(r?.layers??{}):[],...h(r)&&o?Object.entries(r.componentStates[o].layers??{}):[]].flatMap(([e,t])=>Object.entries(t.properties).map(([t,o])=>[e,t,o])).flatMap(([e,t,o])=>[...C,...o.pseudoStates??[]].map(a=>[e,t,o,a])).reduce((e,[t,o,a,r])=>{e[r]=e[r]??[];const l=[t,o,a];return e[r].push(l),e},{})}function x(e){return e.subComponents?0===Object.keys(e.subComponents).length?null:e.subComponents:null}function W(e,t="variant"){const o=f(e,t);if("no-variants"===o.type)return{type:"no-variants",description:"No variants"};if("no-sub-components"===o.type){if(x(e))throw new Error("A config with a root variants.variant defintion cannot have subcomponents");return{type:"no-sub-components",description:o.variant.description,variantNames:[...o.variant.options]}}const a=l(o.variants).reduce((e,[t,o])=>{for(const a of o.options)e[a]??=[],e[a].includes(t)||e[a].push(t);return e},{});return{type:"has-sub-components",description:Object.values(o.variants).map(e=>e.description).filter(e=>e)[0]??"",variantNames:Object.keys(a),variantToSubcomponentNames:a}}function k(e,t,o,a,r){const l=e[o].variables[t];if(!l)throw new Error(`No layer variables found for ${t}.`);const n=l[a];if(!n)throw new Error(`No property variables found for ${a}.`);const s=n[r];if(!s)throw new Error(`No pseudoState variables found for ${r}.`);return s}function P(e,t,o,a,r,l){const s=n(e),i=k(s,t,o,a,r);return void 0!==l.type&&(i.type=l.type),void 0!==l.value&&(i.value=l.value),s}function V(e,t,o,a,r){return[k(e,t,o,a,r),l=>P(e,t,o,a,r,l)]}var T={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))'},F={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 N(e,t){const o=e.defaults[t],a=e.typeOfFixture;let r=0;return e.values.forEach((e,t)=>{e.includes(o)&&(r=t)}),a[r]}function Y(e){const t={},o={};for(const t in e.variants){const a=e.variants[t];o[t]=a.default}t.defaults=o,t.variables={};for(const o in e.variants){const a=e.variants[o];for(const e of a.options)if(a.componentStates){const r=a.componentStates;for(const a in r){const l=r[a];for(const r of l.options)for(const n in l.layers){const s=l.layers[n],i=u({variantKey:o,variantValue:e,stateKey:a,stateValue:r,layer:n});t.variables[i]={};for(const o in s.properties){const a=s.properties[o],r={[o]:{rest:{type:N(a,e),valueType:"alias",value:a.defaults[e]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[o][t]={type:N(a,e),valueType:"alias",value:a.defaults[e]};t.variables[i]={...t.variables[i],...r}}}}}else for(const r in a.layers){const l=a.layers[r],n=u({variantKey:o,variantValue:e,layer:r});t.variables[n]={};for(const o in l.properties){const a=l.properties[o],r={[o]:{rest:{type:N(a,e),valueType:"alias",value:a.defaults[e]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[o][t]={type:N(a,e),valueType:"alias",value:a.defaults[e]};t.variables[n]={...t.variables[n],...r}}}}if(e.subComponents){const{subComponents:o}=e;for(const e in o)for(const a in o[e].variants){const r=o[e].variants[a];t.defaults[a]=r.default;for(const o of r.options)if(r.componentStates){const l=r.componentStates;for(const r in l){const n=l[r];for(const l of n.options)for(const s in n.layers){const i=n.layers[s],p=u({variantKey:a,variantValue:o,stateKey:r,stateValue:l,layer:s,subComponentName:e});t.variables[p]={};for(const e in i.properties){const a=i.properties[e],r={[e]:{rest:{type:N(a,o),valueType:"alias",value:a.defaults[o]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[e][t]={type:N(a,o),valueType:"alias",value:a.defaults[o]};t.variables[p]={...t.variables[p],...r}}}}}else for(const l in r.layers){const n=r.layers[l],s=u({variantKey:a,variantValue:o,layer:l,subComponentName:e});t.variables[s]={};for(const e in n.properties){const a=n.properties[e],r={[e]:{rest:{type:N(a,o),valueType:"alias",value:a.defaults[o]}}};if(a.pseudoStates)for(const t of a.pseudoStates)r[e][t]={type:N(a,o),valueType:"alias",value:a.defaults[o]};t.variables[s]={...t.variables[s],...r}}}}}return t}function K({componentName:e,variantKey:t,variantValue:o,layer:a,layerOptionalPseudoSelector:r,subComponentName:l,stateKey:n,stateValue:i}){let p="";return p=l?`uds-${s(e)}-${s(l)}-${s(t)}`:`uds-${s(e)}-${s(t)}`,o&&(p=`${p}-${s(o)}`),n&&i&&(p=`${p}-${s(n)}-${s(i)}`),p=`${p}-${s(a)}`,r&&(p=`${p}${r}`),p.replaceAll(/\s+/g,"-")}function X({componentName:e,variantKey:t,variantValue:o,layer:a,layerOptionalPseudoSelector:r,subComponentName:l,stateKey:n,stateValue:s,schema:p,propertyKey:c,originalPropertyDefinition:f,theme:d,currentStyles:v,previewOptions:y}){const b=u({variantKey:t,variantValue:o,layer:a,subComponentName:l,stateKey:n,stateValue:s});let m=K({componentName:e,variantKey:t,variantValue:o,layer:a,subComponentName:l,stateKey:n,stateValue:s});const h=p.variables[b][c];if(!h)throw"size/md/root"===b&&"spacingHorizontal"===c&&console.log({componentName:e,schemaKey:b,propertyKey:c},p.variables),new Error(`Prop definition (${e} - ${b} - ${c}) not found, this is not expected, please report the bug to the UDS team`);const g={};for(const u in h){const b=T[u]??"";let w="";if("root"===a)if(n&&s){const r=K({componentName:e,variantKey:t,variantValue:o,layer:a,subComponentName:l});m=K({componentName:e,variantKey:t,layer:a,subComponentName:l,stateKey:n,stateValue:s}),w=`.${r}${b}.${m}`}else w=`.${m}${b}`;else{const i=K({componentName:e,variantKey:t,variantValue:o,layer:"root",subComponentName:l});if(n&&s){const p=K({componentName:e,variantKey:t,layer:"root",subComponentName:l,stateKey:n,stateValue:s});m=K({componentName:e,variantKey:t,variantValue:o,layer:a,layerOptionalPseudoSelector:r,subComponentName:l}),w=`.${i}${b}.${p} .${m}`}else w=`.${i}${b} .${m}`}const $=(e,t,o,a)=>{const{value:r,type:l}=e,n=$e[t];let s;if($e[t].customValueRenderer)s=$e[t].customValueRenderer(e,p,o);else{s=o($e[t].twThemePath(l,String(r)))}if(n.concatenate&&a){return`${a}${n.concatenationDelimiter||", "}${s}`}return s},{cssProperties:C,extendedProperties:S}=$e[f.name],x={},W=i(S),k=W?S({componentName:e,subComponentName:l,layer:a,propertyKey:c}):S;if(k&&k.length){if(!W&&("string"==typeof C||Array.isArray(C)&&C.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 k){const t=$e[e].cssProperties;if("string"==typeof t){const o=v?.[w]?.[t];x[t]=$(h[u],e,d,o)}else if(Array.isArray(t))for(const o of t){const t=v?.[w]?.[o];x[o]=$(h[u],e,d,t)}}}else if("string"==typeof C){const e=v?.[w]?.[C];x[C]=$(h[u],f.name,d,e)}else if(Array.isArray(C))for(const e of C){const t=v?.[w]?.[e];x[e]=$(h[u],f.name,d,t)}if(g[w]||(g[w]={...x,...g[w]}),y?.generatePseudoStateClassModifier){const e=F[u]??"";e.length>0&&"root"!==u&&(g[`.${e}${w}`.replace(b,"")]={...x,...g[`.${e}${w}`.replace(b,"")]})}}return g}function A(e,t,o,a){function r(e,t){return p({},e,t)}let l=e.label.toLowerCase();e.overrideComponentName&&(l=e.overrideComponentName.toLowerCase());let n={};for(const s in e.variants){const i=e.variants[s];for(const e of i.options)if(i.componentStates){const p=i.componentStates;for(const i in p){const u=p[i];for(const p of u.options)for(const c in u.layers){const f=u.layers[c];for(const u in f.properties){const d=f.properties[u];n=r(n,X({componentName:l,variantKey:s,variantValue:e,stateKey:i,stateValue:p,layer:c,layerOptionalPseudoSelector:f.pseudoSelector,propertyKey:u,originalPropertyDefinition:d,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}}else for(const p in i.layers){const u=i.layers[p];for(const i in u.properties){const c=u.properties[i];n=r(n,X({componentName:l,variantKey:s,variantValue:e,layer:p,layerOptionalPseudoSelector:u.pseudoSelector,propertyKey:i,originalPropertyDefinition:c,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}if(e.subComponents){const{subComponents:s}=e;for(const e in s)for(const i in s[e].variants){const p=s[e].variants[i];for(const s of p.options)if(p.componentStates){const u=p.componentStates;for(const p in u){const c=u[p];for(const u of c.options)for(const f in c.layers){const d=c.layers[f];for(const c in d.properties){const v=d.properties[c];n=r(n,X({componentName:l,variantKey:i,variantValue:s,stateKey:p,stateValue:u,subComponentName:e,layer:f,layerOptionalPseudoSelector:d.pseudoSelector,propertyKey:c,originalPropertyDefinition:v,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}}else for(const u in p.layers){const c=p.layers[u];for(const p in c.properties){const f=c.properties[p];n=r(n,X({componentName:l,subComponentName:e,variantKey:i,variantValue:s,layer:u,layerOptionalPseudoSelector:c.pseudoSelector,propertyKey:p,originalPropertyDefinition:f,theme:o,schema:t,currentStyles:n,previewOptions:a}))}}}}return n}function O(e){return e}function E(e){return e}function R(e){return e}function B(e){return e}function z(e){return e}function M(e){return e}function L(e){return e}function j(e){return e}var H=["none","custom"],D=["none","up","down"],I={hover:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"up",options:D}},pressed:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"down",options:D}}},_={hover:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"up",options:D}},pressed:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"down",options:D}}},J={hover:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"up",options:D}},pressed:{backgroundColor:{value:"none",options:H},borderColor:{value:"none",options:H},color:{value:"none",options:H},scale:{value:"down",options:D}}},U={dropShadow:{value:"none",config:null},insetShadow:{value:"none",config:null}};function q(e){return{borderWidth:"none",borderRadius:"full",borderColor:{type:"palette",value:"transparent"},backgroundColor:{type:"palette",value:e},color:{type:"palette",value:"on-color"},scale:"none",...U}}function G(e){return{borderWidth:"thin",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:e},color:{type:"palette",value:e},scale:"none",...U}}function Q(e){return{borderWidth:"none",borderRadius:"full",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:e},scale:"none",...U}}var Z={fill:q,outline:G,ghost:Q},ee={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:I,base:q("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("info"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-10"},color:{type:"spectrum",value:"blue-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"blue-11"},color:{type:"spectrum",value:"blue-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("info"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"blue-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"blue-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"info"},...U}}}},accent:{primary:{kind:"fill",effect:I,base:q("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("accent"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-10"},color:{type:"spectrum",value:"carbon-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"carbon-11"},color:{type:"spectrum",value:"carbon-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("accent"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"carbon-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"carbon-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"accent"},...U}}}},brand:{primary:{kind:"fill",effect:I,base:q("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("brand"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-10"},color:{type:"spectrum",value:"purple-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"purple-11"},color:{type:"spectrum",value:"purple-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("brand"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"purple-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"purple-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"brand"},...U}}}},alert:{primary:{kind:"fill",effect:I,base:q("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("alert"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-10"},color:{type:"spectrum",value:"red-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"red-11"},color:{type:"spectrum",value:"red-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("alert"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"red-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"red-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"alert"},...U}}}},positive:{primary:{kind:"fill",effect:I,base:q("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("positive"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-10"},color:{type:"spectrum",value:"green-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"green-11"},color:{type:"spectrum",value:"green-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("positive"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"green-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"green-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"positive"},...U}}}},warning:{primary:{kind:"fill",effect:I,base:q("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-10"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-11"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"on-color"},...U}}},secondary:{kind:"outline",effect:_,base:G("warning"),state:{hover:{scale:"up",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-10"},color:{type:"spectrum",value:"orange-10"},...U},pressed:{scale:"down",backgroundColor:{type:"palette",value:"transparent"},borderColor:{type:"spectrum",value:"orange-11"},color:{type:"spectrum",value:"orange-11"},...U}}},tertiary:{kind:"ghost",effect:J,base:Q("warning"),state:{hover:{scale:"up",backgroundColor:{type:"spectrum",value:"orange-2"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...U},pressed:{scale:"down",backgroundColor:{type:"spectrum",value:"orange-4"},borderColor:{type:"palette",value:"transparent"},color:{type:"palette",value:"warning"},...U}}}}}},te={white:"#ffffff",black:"#000000",transparent:"transparent",current:"currentColor"},oe={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"}}]}},ae={thin:"100",extralight:"200",light:"300",regular:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},re="system",le="system",ne="light",se="large",ie=!1,pe="🇺🇸 US",ue="https://s.yimg.com/bw/fonts",ce=["Helvetica Neue","Helvetica","Arial","sans-serif"],fe=["Georgia","Times","Times New Roman","serif"],de={"centra-no2":{fallback:ce,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('${ue}/centra-no2-hairline.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"50",src:`url('${ue}/centra-no2-hairline-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"100",src:`url('${ue}/centra-no2-thin.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${ue}/centra-no2-thin-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${ue}/centra-no2-light.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${ue}/centra-no2-light-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${ue}/centra-no2-book.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${ue}/centra-no2-book-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${ue}/centra-no2-medium.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${ue}/centra-no2-medium-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/centra-no2-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${ue}/centra-no2-bold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${ue}/centra-no2-extrabold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"800",src:`url('${ue}/centra-no2-extrabold-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${ue}/centra-no2-black.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"900",src:`url('${ue}/centra-no2-black-italic.woff2') format('woff2')`}]},inter:{fallback:ce,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('${ue}/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('${ue}/roboto-mono-100.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"100",src:`url('${ue}/roboto-mono-100-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"300",src:`url('${ue}/roboto-mono-300.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"300",src:`url('${ue}/roboto-mono-300-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${ue}/roboto-mono-400.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${ue}/roboto-mono-400-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"500",src:`url('${ue}/roboto-mono-500.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"500",src:`url('${ue}/roboto-mono-500-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/roboto-mono-700.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${ue}/roboto-mono-700-italic.woff2') format('woff2')`}]},"yahoo-sans":{fallback:ce,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('${ue}/yahoo-sans-vf.woff2') format('woff2')`}]},"yahoo-sans-cr4":{fallback:ce,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('${ue}/yahoo-sans-cr4-vf.woff2') format('woff2')`}]},"yahoo-product-sans":{fallback:ce,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('${ue}/yahoo-product-sans-vf.woff2') format('woff2-variations')`}]},"yahoo-product-sans-extended":{fallback:ce,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('${ue}/YahooPd_Eval202412-v1.1.0.woff2') format("woff2 supports variations"), url('${ue}/YahooPd_Eval202412-v1.1.0.woff2') format('woff2-variations')`}]},"yahoo-sans-condensed":{fallback:ce,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('${ue}/yahoo-sans-condensed-vf.woff2') format('woff2')`}]},"yahoo-serif-display":{fallback:fe,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('${ue}/yahoo-serif-display-light.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"400",src:`url('${ue}/yahoo-serif-display-regular.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/yahoo-serif-display-bold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"800",src:`url('${ue}/yahoo-serif-display-extrabold.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"900",src:`url('${ue}/yahoo-serif-display-black.woff2') format('woff2')`}]},"yahoo-serif-text":{fallback:fe,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('${ue}/yahoo-serif-text-regular.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"400",src:`url('${ue}/yahoo-serif-text-italic.woff2') format('woff2')`},{fontStyle:"normal",fontWeight:"700",src:`url('${ue}/yahoo-serif-text-bold.woff2') format('woff2')`},{fontStyle:"italic",fontWeight:"700",src:`url('${ue}/yahoo-serif-text-bold-italic.woff2') format('woff2')`}]}};function ve({palette:e="accent",variant:t="primary"}){return"accent"===e?t:"primary"===t?e:`${e}-${t}`}function ye({flatVariant:e}){if(!e)return{palette:void 0,variant:void 0};const[t,o]=e.split("-");return o?{palette:t,variant:o}:["primary","secondary","tertiary"].includes(e)?{palette:"accent",variant:e}:{palette:e,variant:"primary"}}function be(e){return Object.fromEntries(e)}var me={black:"0 0 0",white:"255 255 255"};function he({preset:e,prefix:t,shadowType:l}){const n=`--uds-${l}-shadow-`,s="palette"===e.color?.type,i="always"===e.color?.type;let p=`var(--uds-${s?"shadow":"spectrum"}-color-${e?.color?.value})`;i&&(p=me[e.color.value]);const u=`var(${n}${t?`${t}-`:""}color, ${p})`;return`${"inset"===l?"inset ":""}${[`${o[e.offsetX]}px`,`${o[e.offsetY]}px`,`${a[e.blur]}px`,`${r[e.spread]}px`].map(e=>e).join(" ")} ${`rgb(${u} / var(${n}${t?`${t}-`:""}opacity, ${Number(e.opacity)/100}))`}`}function ge({config:e,shadowType:o}){const a=e?.shadow?.[o];if(!a)return{};const r={};return t(a).forEach(([e,t])=>{if("none"===e)return void(r[`--uds-${o}-shadow-${e}`]="0 0 transparent");const a=t.map((e,t)=>he({preset:e,prefix:t>0?`${t+1}`:void 0,shadowType:o}));r[`--uds-${o}-shadow-${e}`]=`${a.join(", ")}`}),r}var we=({componentName:e,layer:t,propertyKey:o})=>!("chip"!==e||"root"!==t||!["borderColor","borderWidth"].includes(o))||!("input"!==e||"inputWrapper"!==t||!["borderColor","borderWidth"].includes(o)),$e={...{backgroundColor:{name:"backgroundColor",cssProperties:"background-color",twThemePath:(e,t)=>{if("spectrumColors"===e){const[e,o]=t.split("-");return`colors.${e}.${o}`}return"backgroundPaletteColors"===e||"alwaysPaletteAliases"===e?`backgroundColor.${t}`:"Error"},possibleFixtures:["backgroundPaletteColors","spectrumColors","alwaysPaletteAliases"]},borderWidth:{name:"borderWidth",cssProperties:"border-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"],extendedProperties:e=>we(e)&&["outlineWidth","insetOutlineOffset","solidOutline"]},borderRadius:{name:"borderRadius",cssProperties:"border-radius",twThemePath:(e,t)=>`borderRadius.${t}`,possibleFixtures:["borderRadii"]},borderColor:{name:"borderColor",cssProperties:"border-color",twThemePath:(e,t)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${t}`;if("spectrumColors"===e){const[e,o]=t.split("-");return`borderColor.${e}.${o}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"],extendedProperties:e=>we(e)&&["outlineColor"]},fontFamily:{name:"fontFamily",cssProperties:"font-family",twThemePath:(e,t)=>`typography.fontFamily.${t}`,possibleFixtures:["textVariants"]},fontSize:{name:"fontSize",cssProperties:"font-size",twThemePath:(e,t)=>`typography.fontSize.${t}`,possibleFixtures:["textVariants"]},lineHeight:{name:"lineHeight",cssProperties:"line-height",twThemePath:(e,t)=>`typography.lineHeight.${t}`,possibleFixtures:["textVariants"]},textTransform:{name:"textTransform",cssProperties:"text-transform",twThemePath:(e,t)=>`typography.textTransform.${t}`,possibleFixtures:["textVariants"]},padding:{name:"padding",cssProperties:"padding",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},gap:{name:"gap",cssProperties:"gap",twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},color:{name:"color",cssProperties:"color",twThemePath:(e,t)=>{if("alwaysPaletteAliases"===e||"foregroundPaletteColors"===e)return`textColor.${t}`;if("spectrumColors"===e){const[e,o]=t.split("-");return`textColor.${e}.${o}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","foregroundPaletteColors"]},fontWeight:{name:"fontWeight",cssProperties:"font-variation-settings",twThemePath:()=>"",possibleFixtures:["textVariants"],customValueRenderer:e=>{const{value:t}=e;return`"wght" var(--uds-font-weight-${t}), "slnt" var(--uds-font-slant-${t}), "wdth" var(--uds-font-width-${t});`}},iconSize:{name:"iconSize",cssProperties:["width","height"],twThemePath:(e,t)=>`sizing.icon.${t}`,possibleFixtures:["iconSizes"]},spacingHorizontal:{name:"spacingHorizontal",cssProperties:["padding-right","padding-left"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},spacingVertical:{name:"spacingVertical",cssProperties:["padding-top","padding-bottom"],twThemePath:(e,t)=>`spacing[${t}]`,possibleFixtures:["spacingAliases"]},textVariant:{name:"textVariant",cssProperties:[],twThemePath:()=>"",possibleFixtures:["textVariants"],extendedProperties:["fontSize","fontWeight","fontFamily","lineHeight","textTransform"]},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 t="drop";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>he({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.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 t="inset";if("alias"===e.valueType){const o="0 0 0 transparent";if("none"===e.value)return o;if("custom"!==e.value)return`var(--uds-${t}-shadow-${e.value})`}else if("custom"===e.valueType){const o=e.value.map((e,o)=>he({preset:e,shadowType:t,prefix:o>0?`${o+1}`:void 0}));return o?.join(", ")||"0 0 0 transparent"}throw new Error("Invalid valueType")},possibleFixtures:["shadowVariantsWithInvert"]},height:{name:"height",cssProperties:"height",twThemePath:(e,t)=>`height[${t}]`,possibleFixtures:["spacingAliases"]},width:{name:"width",cssProperties:"width",twThemePath:(e,t)=>`width[${t}]`,possibleFixtures:["spacingAliases"]}},...{outlineWidth:{name:"outlineWidth",cssProperties:"outline-width",twThemePath:(e,t)=>"borderWidths"===e?`borderWidth[${t}]`:`spacing[${t}]`,possibleFixtures:["borderWidths","spacingAliases"]},outlineColor:{name:"outlineColor",cssProperties:"outline-color",twThemePath:(e,t)=>{if("alwaysPaletteAliases"===e||"linePaletteColors"===e)return`borderColor.${t}`;if("spectrumColors"===e){const[e,o]=t.split("-");return`borderColor.${e}.${o}`}return"Error"},possibleFixtures:["alwaysPaletteAliases","spectrumColors","linePaletteColors"]},insetOutlineOffset:{name:"insetOutlineOffset",cssProperties:"outline-offset",twThemePath:()=>"",customValueRenderer:({value:e,type:t},o,a)=>`calc(-1 * ${a("borderWidths"===t?`borderWidth[${e}]`:`spacing[${e}]`)})`,possibleFixtures:["borderWidths","spacingAliases"]},solidOutline:{name:"solidOutline",cssProperties:"outline-style",twThemePath:()=>"",customValueRenderer:()=>"solid",possibleFixtures:[]}}};export{ne as DEFAULT_COLOR_MODE,re as DEFAULT_COLOR_MODE_FOR_APP,ie as DEFAULT_HIGH_CONTRAST_MODE,pe as DEFAULT_REGION_MODE,se as DEFAULT_SCALE_MODE,le as DEFAULT_SCALE_MODE_FOR_APP,de as FONT_DECLARATIONS_MAP,te as alwaysPalette,ee as button,c as cartesianProduct,f as coalesceConfigVariant,$e as configurableProperties,R as createComponentStateConfig,M as createComponentStates,O as createConfigurableProperty,L as createLayerConfig,j as createSubComponentConfig,E as createVariantConfig,z as createVariantConfigWithComponentStates,B as createVariantConfigWithProperties,N as findFixtureType,ae as fontWeightMap,be as fromEntries,K as generateClassName,X as generateDeclaration,y as generateKeyFromFlatConfigPath,u as generateSchemaKey,A as generateStyles,d as getConfigDefaultValue,k as getConfigPseudoStateVariables,V as getConfigPseudoStateVariablesWithSetter,x as getConfigSubcomponents,g as getConfigVariantComponentStates,w as getConfigVariantComponentStatesMatrix,$ as getConfigVariantProperties,S as getConfigVariantPseudoStates,W as getConfigVariants,Z as getDefaultButtonBaseMap,he as getShadowLayerValue,ge as getShadowPresetValues,v as isConfigDefaultValue,ve as parseButtonVariantFlat,ye as parseDeprecatedButtonPaletteVariant,P as setConfigPseudoStateVariable,oe as shadow,F as statePseudoMapDocsMode,Y as toMinimalDbConfigObject};
@@ -1 +1 @@
1
- import{getMotionVar as s}from"./chunk-T7G5JTDY.js";import{createContext as n,useState as t,useEffect as e,useMemo as i,useContext as o}from"react";import{LazyMotion as r,MotionConfig as f}from"motion/react";import{jsx as a}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var m=n(!1),p=m.Provider,d={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},g=()=>import("./domAnimation-MWKTMI4P.js").then((({domAnimation:s})=>s));function u({children:n,reducedMotion:p="user",loadFeatures:u=g,layoutVariant:c="subtle",layoutSpeed:l="3",colorVariant:y="smooth",colorSpeed:b="3"}){const h=d[c][l],P=d[y][b],[V,v]=t(h),[M,N]=t(P),j={variant:y,speed:b},C=s({...j,control:"stiffness"}),S=s({...j,control:"damping"}),T={variant:c,speed:l},k=s({...T,control:"stiffness"}),x=s({...T,control:"damping"});e((()=>{const s=getComputedStyle(document.documentElement),n={type:"spring",damping:Number(s.getPropertyValue(x)),stiffness:Number(s.getPropertyValue(k))},t={type:"spring",damping:Number(s.getPropertyValue(S)),stiffness:Number(s.getPropertyValue(C))};v(n),N(t)}),[S,C,x,k]);const A=i((()=>({type:"spring",mass:1,...V,layout:V,opacity:M,color:M,borderColor:M,backgroundColor:M})),[M,V]);return o(m)?n:a(r,{features:u,strict:!0,children:a(f,{transition:A,reducedMotion:p,children:n})})}export{p as AvoidMotionLibraryProvider,u as SpringMotionConfig};
1
+ import{getMotionVar as s}from"./chunk-T7G5JTDY.js";import{createContext as n,useState as t,useEffect as e,useMemo as i,useContext as o}from"react";import{LazyMotion as r,MotionConfig as f}from"motion/react";import{jsx as a}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var m=n(!1),p=m.Provider,d={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},g=()=>import("./domAnimation-MWKTMI4P.js").then(({domAnimation:s})=>s);function u({children:n,reducedMotion:p="user",loadFeatures:u=g,layoutVariant:c="subtle",layoutSpeed:l="3",colorVariant:y="smooth",colorSpeed:b="3"}){const h=d[c][l],P=d[y][b],[V,v]=t(h),[M,N]=t(P),j={variant:y,speed:b},C=s({...j,control:"stiffness"}),S=s({...j,control:"damping"}),T={variant:c,speed:l},k=s({...T,control:"stiffness"}),x=s({...T,control:"damping"});e(()=>{const s=getComputedStyle(document.documentElement),n={type:"spring",damping:Number(s.getPropertyValue(x)),stiffness:Number(s.getPropertyValue(k))},t={type:"spring",damping:Number(s.getPropertyValue(S)),stiffness:Number(s.getPropertyValue(C))};v(n),N(t)},[S,C,x,k]);const A=i(()=>({type:"spring",mass:1,...V,layout:V,opacity:M,color:M,borderColor:M,backgroundColor:M}),[M,V]);return o(m)?n:a(r,{features:u,strict:!0,children:a(f,{transition:A,reducedMotion:p,children:n})})}export{p as AvoidMotionLibraryProvider,u as SpringMotionConfig};
@@ -1,2 +1,2 @@
1
- import{createSlot as r,getStyles as l}from"./chunk-DOU22WQU.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as o,jsxs as a}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e((function({className:r,asChild:e,onPress:o,onClick:a=o,backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:w,alignItems:x,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:D,spacingVertical:N,spacingBottom:U,spacingEnd:X,spacingStart:Y,spacingTop:q,offset:O,offsetVertical:Q,offsetHorizontal:F,offsetBottom:J,offsetEnd:K,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...or},ar){const ir=l({backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:w,alignItems:x,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:D,spacingVertical:N,spacingBottom:U,spacingEnd:X,spacingStart:Y,spacingTop:q,offset:O,offsetVertical:Q,offsetHorizontal:F,offsetBottom:J,offsetEnd:K,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:ar,onClick:a,...or})})),h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:a("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t(o,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t(o,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t(o,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(o,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t(o,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M7.9 2.7a5.2 5.2 0 1 0 5.2 5.2h1.6a6.8 6.8 0 1 1-6.8-6.8.8.8 0 1 1 0 1.6"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 8 8h2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2a1 1 0 1 1 0 2"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16.15 4.3C9.605 4.3 4.3 9.605 4.3 16.15S9.605 28 16.15 28 28 22.695 28 16.15h2.3c0 7.815-6.335 14.15-14.15 14.15S2 23.965 2 16.15 8.335 2 16.15 2a1.15 1.15 0 0 1 0 2.3"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8 2.9A5.1 5.1 0 1 0 13.1 8h1.8A6.9 6.9 0 1 1 8 1.1a.9.9 0 1 1 0 1.8"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12.15 4.3A7.85 7.85 0 1 0 20 12.15h2.3c0 5.606-4.544 10.15-10.15 10.15S2 17.756 2 12.15 6.544 2 12.15 2a1.15 1.15 0 0 1 0 2.3"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16.35 4.7C9.916 4.7 4.7 9.916 4.7 16.35S9.916 28 16.35 28 28 22.784 28 16.35h2.7c0 7.925-6.425 14.35-14.35 14.35S2 24.275 2 16.35 8.425 2 16.35 2a1.35 1.35 0 1 1 0 2.7"})})}return t(o,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
1
+ import{createSlot as r,getStyles as l}from"./chunk-DOU22WQU.js";import{forwardRef as e}from"react";import{jsx as t,Fragment as o,jsxs as a}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=r(),n=e(function({className:r,asChild:e,onPress:o,onClick:a=o,backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:w,alignItems:x,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:D,spacingVertical:N,spacingBottom:U,spacingEnd:X,spacingStart:Y,spacingTop:q,offset:O,offsetVertical:Q,offsetHorizontal:F,offsetBottom:J,offsetEnd:K,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,...or},ar){const ir=l({backgroundColor:n,borderRadius:h,borderTopStartRadius:c,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:f,borderStartColor:m,borderEndColor:v,borderTopColor:p,borderBottomColor:z,borderWidth:C,borderVerticalWidth:M,borderHorizontalWidth:g,borderStartWidth:H,borderEndWidth:b,borderTopWidth:V,borderBottomWidth:S,alignContent:w,alignItems:x,alignSelf:L,flex:A,flexDirection:B,flexGrow:W,flexShrink:E,flexWrap:T,justifyContent:_,flexBasis:R,display:P,overflow:k,overflowX:I,overflowY:G,position:j,spacing:y,spacingHorizontal:D,spacingVertical:N,spacingBottom:U,spacingEnd:X,spacingStart:Y,spacingTop:q,offset:O,offsetVertical:Q,offsetHorizontal:F,offsetBottom:J,offsetEnd:K,offsetStart:Z,offsetTop:$,columnGap:rr,rowGap:lr,dropShadow:er,insetShadow:tr,className:r});return t(e?i:"button",{className:ir,ref:ar,onClick:a,...or})}),h=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:a("g",{fill:"currentColor",clipPath:"url(#Building-outline-12_svg__a)",children:[t("path",{d:"M4.875 8.125h-1.5v-1.5h1.5zm0-2.625h-1.5V4h1.5z"}),t("path",{d:"m7.5 2.643 3.75 1.31v7.297H.75V.75H7.5zM1.95 10.05H6.3v-8.1H1.95zm5.625 0h2.475V4.805l-2.475-.866z"})]})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8.4 2.6H2.6v10.8H4V11h3v2.4h1.4zM1 15V1h9v2.524l5 1.746V15zm9.1-9.746V13.4h3.3V6.406zM4.5 4h2v2h-2zm2 3.5h-2v2h2z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M13.367 4.752H4.3v14.495h2.724v-4.533h3.619v4.533h2.714V4.762l.01.003zM21.5 21.047h-19V2.952h12.667v2.494L21.5 7.843zm-1.8-1.8V9.087L15.167 7.37v11.876zM7.929 11.095h-1.81v1.81h1.81zm-1.81-3.619h1.81v1.81h-1.81zm5.429 0h-1.81v1.81h1.81zm-1.81 3.619h1.81v1.81h-1.81z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.8 4.2H4.2v23.6H8V21h6v6.8h3.8zM2 30V2h18v5.725l10 3.626V30zm18.2-19.862V27.8h7.6V12.894zM10 8H7v3h3zm-3 6h3v3H7zm5-6h3v3h-3zm3 6h-3v3h3zm7.5 1h3v3h-3zm3 6h-3v3h3z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("g",{fill:"currentColor",clipPath:"url(#Building-fill-12_svg__a)",children:t("path",{d:"M7.5 11.25H.75V.75H7.5zM3.375 8.125h1.5v-1.5h-1.5zm0-2.625h1.5V4h-1.5zm7.875-1.547v7.297H9V3z"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M4.5 4v2h2V4zm2 3.5h-2v2h2zM12 4l3 1.27V15h-3zM1 1h9v14H1z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.5 2.952h10.857v18.095H2.5zm2.714 7.238V12h1.81v-1.81zm1.81-3.619h-1.81v1.81h1.81zm1.81 0v1.81h1.809V6.57zm1.809 3.62h-1.81V12h1.81zm-4.524 4.523v4.524h3.62v-4.524zM21.5 7.843l-6.333-3.081v16.285H21.5z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M2 2h16v28H2zm5 19v7h6v-7zM8.5 7h-3v3h3zm-3 6v3h3v-3zm9-6h-3v3h3zm-3 6v3h3v-3zM20 7l10 4.351V30H20zm3.5 8v3h3v-3z"})})}return t(o,{})};h.metadata={name:"Building",isSvgIcon:!0,variants:["outline","fill"]};var c=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.843 2.896-5.77 6.966L1.15 5.98l.845-.853 2.99 2.96L9.919 2.13z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.5 3.89 6.951 12 2.5 7.48l.958-.993 3.394 3.447L12.452 3z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M20.264 5.852 10.37 18.366l-6.642-6.89 1.295-1.249 5.213 5.407 8.616-10.898z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.19 6.341 13.677 26.276 2.803 15.509l1.688-1.706 9.012 8.922L28.341 4.81z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.985 2.883 5.081 10.01 1.01 5.98l.985-.996L4.98 7.94l4.928-5.95z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M13.593 4.502 6.968 12.5 2.4 7.978 3.505 6.86l3.348 3.315 5.53-6.676z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m20.545 5.82-10.16 12.85-6.94-7.198 1.584-1.527 5.192 5.385L18.82 4.455z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M30.33 6.328 13.687 26.423 2.662 15.51l1.829-1.848 9.005 8.916 14.832-17.91z"})})}return t(o,{})};c.metadata={name:"Check",isSvgIcon:!0,variants:["outline","fill"]};var d=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.745 3.099-2.9 2.898 2.901 2.9-.849.85-2.899-2.901-2.9 2.9-.848-.849 2.9-2.9L2.25 3.1l.848-.848L5.997 5.15l2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m12.526 4.465-.99-.99L8 7.01 4.465 3.475l-.99.99L7.01 8l-3.535 3.536.99.99L8 8.99l3.536 3.536.99-.99L8.99 8z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m13.44 11.956 6.572-6.571L18.527 3.9l-6.571 6.57L5.385 3.9 3.9 5.385l6.57 6.57-6.57 6.572 1.485 1.485 6.57-6.571 6.572 6.57 1.485-1.484z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.702 15.934 28.818 4.818 27.05 3.05 15.934 14.166 4.818 3.05 3.05 4.818l11.116 11.116L3.05 27.05l1.768 1.768 11.116-11.116L27.05 28.818l1.768-1.768z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m9.888 3.099-2.9 2.898 2.899 2.9-.99.99-2.9-2.9-2.898 2.9-.99-.99 2.898-2.9L2.108 3.1l.99-.99 2.9 2.898 2.9-2.898z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"m9.131 8 3.536-3.536-1.131-1.131L8 6.869 4.464 3.333 3.333 4.464 6.869 8l-3.536 3.535 1.131 1.132L8 9.13l3.535 3.536 1.132-1.131z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"m12 13.768 6.337 6.337 1.768-1.768L13.768 12l6.337-6.337-1.768-1.768L12 10.232 5.663 3.895 3.895 5.663 10.232 12l-6.337 6.337 1.768 1.768z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M17.91 16 28.954 4.955l-1.91-1.91L16 14.091 4.955 3.045l-1.91 1.91L14.091 16 3.045 27.045l1.91 1.91L16 17.909l11.045 11.046 1.91-1.91z"})})}return t(o,{})};d.metadata={name:"Cross",isSvgIcon:!0,variants:["outline","fill"]};var s=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"m10.698 6.597-9.4.001v-1.2h9.4z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.7 8.7H3.3V7.3h9.4z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.97 10.75h17.838v2.1H2.97z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27 17H4.7v-2.3H27z"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M10.799 6.698h-9.6v-1.4h9.6z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M12.8 8.8H3.2V7.2h9.6z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M2.966 10.75h18.068v2.5H2.966z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M27.3 17.3H4.7v-2.6h22.6z"})})}return t(o,{})};s.metadata={name:"Minus",isSvgIcon:!0,variants:["outline","fill"]};var u=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6.9 3.375a.9.9 0 1 0-1.8 0 .9.9 0 0 0 1.8 0m1.35 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0m.53 4.643a2.2 2.2 0 0 0-1.104-.293H4.324a2.224 2.224 0 0 0-2.183 1.8h7.718a2.22 2.22 0 0 0-1.08-1.507M.75 9.95a3.574 3.574 0 0 1 3.574-3.574h3.352A3.574 3.574 0 0 1 11.25 9.95v.875a.05.05 0 0 1-.05.051H.8a.05.05 0 0 1-.05-.05z"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M9.2 4.5a1.2 1.2 0 1 0-2.4 0 1.2 1.2 0 0 0 2.4 0m1.8 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0m.706 6.19a2.97 2.97 0 0 0-1.472-.39H5.766a2.966 2.966 0 0 0-2.912 2.4h10.292a2.97 2.97 0 0 0-1.44-2.01M1 13.267A4.766 4.766 0 0 1 5.766 8.5h4.468A4.765 4.765 0 0 1 15 13.266v1.166c0 .038-.03.068-.068.068H1.068A.07.07 0 0 1 1 14.432z"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M14.25 7.95a2.25 2.25 0 1 0-4.5 0 2.25 2.25 0 0 0 4.5 0m1.8 0a4.05 4.05 0 1 1-8.1 0 4.05 4.05 0 0 1 8.1 0m.927 7.244A4.2 4.2 0 0 0 15 14.7H9a4.2 4.2 0 0 0-4.157 3.6h14.314a4.2 4.2 0 0 0-2.18-3.106M3 18.9a6 6 0 0 1 6-6h6a6 6 0 0 1 6 6v1.121a.08.08 0 0 1-.079.079H3.08a.08.08 0 0 1-.08-.08z"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M19.7 10a3.7 3.7 0 1 0-7.4 0 3.7 3.7 0 0 0 7.4 0m2.3 0a6 6 0 1 1-12 0 6 6 0 0 1 12 0m8 17.043q0-.681-.1-1.343a9.044 9.044 0 0 0-8.943-7.7h-9.914A9.04 9.04 0 0 0 2 27.043V28h28zM8.144 20.955a6.74 6.74 0 0 1 2.9-.655h9.913a6.744 6.744 0 0 1 6.608 5.4H4.435a6.74 6.74 0 0 1 3.71-4.745"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("path",{fill:"currentColor",d:"M6 5.625a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5m-3.45 1.22A3.57 3.57 0 0 0 .75 9.95v.875c0 .028.023.051.05.051h10.4a.05.05 0 0 0 .05-.05V9.95a3.574 3.574 0 0 0-3.574-3.574H4.324c-.622 0-1.233.162-1.773.47"})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8 7.5a3 3 0 1 0 0-6 3 3 0 0 0 0 6M3.401 9.128A4.77 4.77 0 0 0 1 13.266v1.166c0 .038.03.068.068.068h13.864c.038 0 .068-.03.068-.068v-1.166A4.766 4.766 0 0 0 10.234 8.5H5.766a4.76 4.76 0 0 0-2.365.628"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12 12a4.05 4.05 0 1 0 0-8.1 4.05 4.05 0 0 0 0 8.1m-5.824 1.606A6 6 0 0 0 3 18.9v1.121c0 .044.035.079.079.079H20.92a.08.08 0 0 0 .08-.08V18.9a6 6 0 0 0-6-6H9a6 6 0 0 0-2.824.706"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12m-8.845 2.878A9.04 9.04 0 0 0 2 27.043V28h28v-.957A9.043 9.043 0 0 0 20.957 18h-9.914a9.05 9.05 0 0 0-3.888.878"})})}return t(o,{})};u.metadata={name:"Person",isSvgIcon:!0,variants:["outline","fill"]};var f=({size:r,variant:l})=>{if("outline"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-outline-12_svg__a)",children:t("path",{fill:"currentColor",d:"M5.924 2.025a3.9 3.9 0 1 0 3.9 3.9h1.2a5.1 5.1 0 1 1-5.1-5.1.6.6 0 1 1 0 1.2"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M7.9 2.7a5.2 5.2 0 1 0 5.2 5.2h1.6a6.8 6.8 0 1 1-6.8-6.8.8.8 0 1 1 0 1.6"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 8 8h2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2a1 1 0 1 1 0 2"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16.15 4.3C9.605 4.3 4.3 9.605 4.3 16.15S9.605 28 16.15 28 28 22.695 28 16.15h2.3c0 7.815-6.335 14.15-14.15 14.15S2 23.965 2 16.15 8.335 2 16.15 2a1.15 1.15 0 0 1 0 2.3"})})}if("fill"===l)switch(r){case"xs":return t(o,{children:t("g",{clipPath:"url(#Progress-fill-12_svg__a)",children:t("path",{fill:"currentColor",d:"M6 2.175A3.825 3.825 0 1 0 9.823 6h1.35A5.175 5.175 0 1 1 6 .825a.675.675 0 0 1 0 1.35"})})});case"sm":return t(o,{children:t("path",{fill:"currentColor",d:"M8 2.9A5.1 5.1 0 1 0 13.1 8h1.8A6.9 6.9 0 1 1 8 1.1a.9.9 0 1 1 0 1.8"})});case"md":return t(o,{children:t("path",{fill:"currentColor",d:"M12.15 4.3A7.85 7.85 0 1 0 20 12.15h2.3c0 5.606-4.544 10.15-10.15 10.15S2 17.756 2 12.15 6.544 2 12.15 2a1.15 1.15 0 0 1 0 2.3"})});case"lg":return t(o,{children:t("path",{fill:"currentColor",d:"M16.35 4.7C9.916 4.7 4.7 9.916 4.7 16.35S9.916 28 16.35 28 28 22.784 28 16.35h2.7c0 7.925-6.425 14.35-14.35 14.35S2 24.275 2 16.35 8.425 2 16.35 2a1.35 1.35 0 1 1 0 2.7"})})}return t(o,{})};f.metadata={name:"Progress",isSvgIcon:!0,variants:["outline","fill"]};
2
2
  /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{n as Pressable,d as a,c as e,u as e2,s as o,f as o2,h as t};
@@ -1,2 +1,2 @@
1
1
  import{mapValues as t,entries as o}from"./chunk-EWJ3J526.js";import{SPECTRUM_COLOR_PREFIX as r,UDS_PREFIX as n,ICON_SIZE_PREFIX as e,AVATAR_SIZE_PREFIX as i,BORDER_WIDTH_PREFIX as a,BORDER_RADIUS_PREFIX as s,TEXT_TRANSFORM_PREFIX as c,LINE_HEIGHT_PREFIX as f,FONT_WIDTH_PREFIX as $,FONT_SLANT_PREFIX as l,FONT_WEIGHT_PREFIX as d,FONT_SIZE_PREFIX as u,FONT_FAMILY_PREFIX as p}from"./chunk-N4FHPR6Q.js";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function v(t){const{palette:e,spectrum:i}=t,a={},s={spectrum:{},palette:{}};for(const[t,n]of o(i))for(const[e,i]of o(n)){const o=`--${r}-${`${t}-${e}`}`;s.spectrum[t]||(s.spectrum[t]={}),s.spectrum[t][e]=`rgb(var(${o}))`,a[o]=i}return o(e).forEach((([t,o])=>{for(const[e,{hue:i,step:c,opacity:f}]of Object.entries(o)){t in s.palette||(s.palette[t]={});const o=`--${n}-${t}-color-${e}`;a[o]=`var(--${r}-${i}-${c})`,s.palette[t][e]=f?`rgb(var(${o}) / ${f})`:`rgb(var(${o}))`}})),{_vars:a,_raw:t,tailwindConfig:s}}function g(t,r){const n={},e={};for(const[i,a]of o(r)){const o=`--${t}-${i}`;n[o]=`${a}`,e[i]=`var(${o})`}return{_vars:n,_raw:r,tailwindConfig:e}}function h(t,r,n){const e={},i={};for(const[a,s]of o(r)){const o=`--${t}-${a}`,r=n?n(s):s;e[o]=r,i[a]=`var(${o})`}return{_vars:e,_raw:r,tailwindConfig:i}}function m(t,r){if(!r)return{_vars:{},_raw:{},tailwindConfig:{}};const n={},e={};for(const[i,a]of o(r)){const o=`--${t}-${i}`,r=`${a}px`;n[o]=r,e[i]=`var(${o})`}return{_vars:n,_raw:r,tailwindConfig:e}}function w(o){const{colorMode:r,scaleMode:n}=o;return{...o,colorMode:{light:v(r.light),dark:v(r.dark)},scaleMode:t(n,(({borderRadius:t,borderWidth:o,fontSize:r,lineHeight:n,fontFamily:v,fontWeight:w,fontSlant:_,fontWidth:b,textTransform:S,avatarSizes:W,iconSizes:z})=>({fontFamily:h(p,v,(t=>`var(--${p}-${t})`)),fontSize:m(u,r),fontWeight:g(d,w),fontSlant:g(l,_),fontWidth:g($,b),lineHeight:m(f,n),textTransform:h(c,S),borderRadius:m(s,t),borderWidth:m(a,o),avatarSizes:m(i,W),iconSizes:m(e,z)})))}}export{w as parseTokens};
2
+ function v(t){const{palette:e,spectrum:i}=t,a={},s={spectrum:{},palette:{}};for(const[t,n]of o(i))for(const[e,i]of o(n)){const o=`--${r}-${`${t}-${e}`}`;s.spectrum[t]||(s.spectrum[t]={}),s.spectrum[t][e]=`rgb(var(${o}))`,a[o]=i}return o(e).forEach(([t,o])=>{for(const[e,{hue:i,step:c,opacity:f}]of Object.entries(o)){t in s.palette||(s.palette[t]={});const o=`--${n}-${t}-color-${e}`;a[o]=`var(--${r}-${i}-${c})`,s.palette[t][e]=f?`rgb(var(${o}) / ${f})`:`rgb(var(${o}))`}}),{_vars:a,_raw:t,tailwindConfig:s}}function g(t,r){const n={},e={};for(const[i,a]of o(r)){const o=`--${t}-${i}`;n[o]=`${a}`,e[i]=`var(${o})`}return{_vars:n,_raw:r,tailwindConfig:e}}function h(t,r,n){const e={},i={};for(const[a,s]of o(r)){const o=`--${t}-${a}`,r=n?n(s):s;e[o]=r,i[a]=`var(${o})`}return{_vars:e,_raw:r,tailwindConfig:i}}function m(t,r){if(!r)return{_vars:{},_raw:{},tailwindConfig:{}};const n={},e={};for(const[i,a]of o(r)){const o=`--${t}-${i}`,r=`${a}px`;n[o]=r,e[i]=`var(${o})`}return{_vars:n,_raw:r,tailwindConfig:e}}function w(o){const{colorMode:r,scaleMode:n}=o;return{...o,colorMode:{light:v(r.light),dark:v(r.dark)},scaleMode:t(n,({borderRadius:t,borderWidth:o,fontSize:r,lineHeight:n,fontFamily:v,fontWeight:w,fontSlant:_,fontWidth:b,textTransform:S,avatarSizes:W,iconSizes:z})=>({fontFamily:h(p,v,t=>`var(--${p}-${t})`),fontSize:m(u,r),fontWeight:g(d,w),fontSlant:g(l,_),fontWidth:g($,b),lineHeight:m(f,n),textTransform:h(c,S),borderRadius:m(s,t),borderWidth:m(a,o),avatarSizes:m(i,W),iconSizes:m(e,z)}))}}export{w as parseTokens};
@@ -1,3 +1,3 @@
1
1
  import{variants as o}from"./chunk-NYAQO47N.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as n,borderRadii as i,borderWidths as a,lineColors as l}from"@yahoo/uds/fixtures";import{getFeatureFlags as s}from"@yahoo/uds/flags";import d from"clsx";import f from"imurmurhash";import{extendTailwindMerge as c}from"tailwind-merge";import{forwardRef as p,memo as u,isValidElement as b,cloneElement as m,Children as h}from"react";import{jsx as g}from"react/jsx-runtime";import{isFunction as S}from"lodash-es";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var C=c({extend:{theme:{borderColor:l,borderWidth:a,borderRadius:i}},override:{classGroups:{"text-color":[{text:[...e,...n]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),w=(...o)=>{const r=d(o);return C(r)},W=o=>r=>{if(!o?.variants)return w(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map((o=>{const n=r?.[o],i=e?.[o],a=x(n)||x(i);return t[o][a]})),i={...e,...r&&y(r)},a=o?.compoundVariants?.reduce(((o,{className:r,...t})=>Object.entries(t).every((([o,r])=>i[o]===r))?w(o,r):o),"");return w(o?.base,n,a,r?.className)},v=W({variants:o}),B=new Map,T=o=>{const{useGetStylesCache:r}=s();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(y(o)),t=(new f).hash(JSON.stringify(r)).result();if(B.has(t))return B.get(t);const e=v(r);return B.set(t,e),e}return v(o)};function E(...o){return r=>o.forEach((o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r)))}function R(){const o=p(((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),l=a.find(e);if(l){const o=l.props.children,e=a.map((r=>r===l?h.count(o)>1?h.only(null):b(o)?o.props.children:null:r));return g(r,{...i,ref:t,children:b(o)?m(o,void 0,e):null})}return g(r,{...i,ref:t,children:n})}));o.displayName="Slot";const r=p(((o,r)=>{const{children:t,...e}=o;return b(t)?m(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):h.count(t)>1?h.only(null):null}));r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return b(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var N=R(),z=p((function({asChild:o,className:r,backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:b,borderHorizontalWidth:m,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:W,flex:v,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:z,justifyContent:G,flexBasis:H,display:V="flex",overflow:j,overflowX:k,overflowY:O,position:I,spacing:A,spacingHorizontal:Y,spacingVertical:D,spacingBottom:X,spacingEnd:$,spacingStart:F,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:L,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,...no},io){const ao=T({backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:b,borderHorizontalWidth:m,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:W,flex:v,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:z,justifyContent:G,flexBasis:H,display:V,overflow:j,overflowX:k,overflowY:O,position:I,spacing:A,spacingHorizontal:Y,spacingVertical:D,spacingBottom:X,spacingEnd:$,spacingStart:F,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:L,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,className:r});return g(o?N:"div",{className:ao,ref:io,...no})}));z.displayName="Box";var G=R(),H={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",inherit:"p"},V=p((function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=H[e],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:s,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:W,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:O,flexDirection:I,flexGrow:A,flexShrink:Y,flexWrap:D,justifyContent:X,flexBasis:$,display:F,overflow:J,overflowX:M,overflowY:P,position:Q,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:l??e,lineHeight:s??e,textTransform:d??e}:{},textAlign:f},bo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:W,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:O,flexDirection:I,flexGrow:A,flexShrink:Y,flexWrap:D,justifyContent:X,flexBasis:$,display:F,overflow:J,overflowX:M,overflowY:P,position:Q,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo});return g(r?G:n,{className:bo,ref:po,...co})}));V.displayName="Text";var j={xs:12,sm:16,md:24,lg:32},k=p((function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const l=o.metadata?.variants??[],s=l.includes(t)?t:l[0]??"fill",d="multicolor"===s,f=T({flex:"none",color:d?void 0:e,className:w(n,!d&&"[&_path]:fill-current")}),c=j[r];return g("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:g(o,{size:r,variant:s})})}));k.displayName="Icon";var O=u((function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},n=o;if(n.metadata?.isSvgIcon)return g(k,{name:n,...e,...t});if(S(o)){const r=o(e);return b(r)&&m(r,t)}return b(o)&&m(o,{...e,...o.props,...t})}));
2
+ function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var C=c({extend:{theme:{borderColor:l,borderWidth:a,borderRadius:i}},override:{classGroups:{"text-color":[{text:[...e,...n]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),w=(...o)=>{const r=d(o);return C(r)},W=o=>r=>{if(!o?.variants)return w(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map(o=>{const n=r?.[o],i=e?.[o],a=x(n)||x(i);return t[o][a]}),i={...e,...r&&y(r)},a=o?.compoundVariants?.reduce((o,{className:r,...t})=>Object.entries(t).every(([o,r])=>i[o]===r)?w(o,r):o,"");return w(o?.base,n,a,r?.className)},v=W({variants:o}),B=new Map,T=o=>{const{useGetStylesCache:r}=s();if(r){const r=function(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];r[n]=o[n]}return r}(y(o)),t=(new f).hash(JSON.stringify(r)).result();if(B.has(t))return B.get(t);const e=v(r);return B.set(t,e),e}return v(o)};function E(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function R(){const o=p((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),l=a.find(e);if(l){const o=l.props.children,e=a.map(r=>r===l?h.count(o)>1?h.only(null):b(o)?o.props.children:null:r);return g(r,{...i,ref:t,children:b(o)?m(o,void 0,e):null})}return g(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=p((o,r)=>{const{children:t,...e}=o;return b(t)?m(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):h.count(t)>1?h.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return b(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var N=R(),z=p(function({asChild:o,className:r,backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:b,borderHorizontalWidth:m,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:W,flex:v,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:z,justifyContent:G,flexBasis:H,display:V="flex",overflow:j,overflowX:k,overflowY:O,position:I,spacing:A,spacingHorizontal:Y,spacingVertical:D,spacingBottom:X,spacingEnd:$,spacingStart:F,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:L,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,...no},io){const ao=T({backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:b,borderHorizontalWidth:m,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:W,flex:v,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:z,justifyContent:G,flexBasis:H,display:V,overflow:j,overflowX:k,overflowY:O,position:I,spacing:A,spacingHorizontal:Y,spacingVertical:D,spacingBottom:X,spacingEnd:$,spacingStart:F,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:L,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,className:r});return g(o?N:"div",{className:ao,ref:io,...no})});z.displayName="Box";var G=R(),H={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",inherit:"p"},V=p(function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=H[e],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:s,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:W,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:O,flexDirection:I,flexGrow:A,flexShrink:Y,flexWrap:D,justifyContent:X,flexBasis:$,display:F,overflow:J,overflowX:M,overflowY:P,position:Q,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:l??e,lineHeight:s??e,textTransform:d??e}:{},textAlign:f},bo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:W,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:O,flexDirection:I,flexGrow:A,flexShrink:Y,flexWrap:D,justifyContent:X,flexBasis:$,display:F,overflow:J,overflowX:M,overflowY:P,position:Q,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:K,spacingEnd:L,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo});return g(r?G:n,{className:bo,ref:po,...co})});V.displayName="Text";var j={xs:12,sm:16,md:24,lg:32},k=p(function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const l=o.metadata?.variants??[],s=l.includes(t)?t:l[0]??"fill",d="multicolor"===s,f=T({flex:"none",color:d?void 0:e,className:w(n,!d&&"[&_path]:fill-current")}),c=j[r];return g("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:g(o,{size:r,variant:s})})});k.displayName="Icon";var O=u(function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},n=o;if(n.metadata?.isSvgIcon)return g(k,{name:n,...e,...t});if(S(o)){const r=o(e);return b(r)&&m(r,t)}return b(o)&&m(o,{...e,...o.props,...t})});
3
3
  /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{z as Box,k as Icon,O as IconSlot,V as Text,R as createSlot,W as cva,w as cx,T as getStyles};
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-YMQMU4E2.cjs"),t=require("./chunk-NW3RYPC2.cjs"),r=require("./chunk-J7PUOUXC.cjs"),n=require("./chunk-4NZKRK55.cjs"),a=require("@yahoo/uds/fixtures"),o=require("lodash-es");function s(e){return e&&e.__esModule?e:{default:e}}var i=s(require("tailwindcss/plugin.js")),l=e=>{throw new Error("Didn't expect to get here")};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(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 s="base"===n?a.base:a.breakpoints?.[n];if(!s)throw new Error(`Missing value for variant "${t}", key "${r}", and breakpoint "${n}"`);if(o.isString(s))return s;switch(s.type){case"px":return s.value/16+"rem";case"unitless":return String(s.value)}return l()},d=(e,t)=>t in e.font?`var(--${n.FONT_FAMILY_PREFIX}-${t})`:t,u=(e,t)=>Object.fromEntries(a.textVariants.flatMap((r=>[[`--${n.FONT_FAMILY_PREFIX}-${r}`,d(e,c(e,r,"fontFamily",t))],[`--${n.FONT_SIZE_PREFIX}-${r}`,c(e,r,"fontSize",t)],[`--${n.FONT_WEIGHT_PREFIX}-${r}`,c(e,r,"fontWeight",t)],[`--${n.LINE_HEIGHT_PREFIX}-${r}`,c(e,r,"lineHeight",t)],[`--${n.TEXT_TRANSFORM_PREFIX}-${r}`,c(e,r,"textTransform",t)]]))),f=e=>Object.fromEntries(a.textVariants.map((t=>[t,`var(--${e}-${t})`]))),p={fontFamily:f(n.FONT_FAMILY_PREFIX),fontWeight:f(n.FONT_WEIGHT_PREFIX),fontSlant:f(n.FONT_SLANT_PREFIX),fontWidth:f(n.FONT_WIDTH_PREFIX),fontSize:f(n.FONT_SIZE_PREFIX),lineHeight:f(n.LINE_HEIGHT_PREFIX),textTransform:f(n.TEXT_TRANSFORM_PREFIX)};function _(e,t){const r=E(e);for(const e of r)t({"@font-face":e})}var F=i.default.withOptions((function({fontIds:e}){return function({addBase:t}){_(e,t)}}));function E(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 h(e){return`"${e}"`}function g(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.RESPONSIVE_TAILWIND_CONFIG_MAP=p,exports.addFontFaceDeclarations=_,exports.addFontsPlugin=F,exports.assertUnreachable=l,exports.getBaseTextStyles=e=>({":root":u(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=E,exports.getFontStyles=function(e){return t.fromEntries(r.entries(e).map((([e,r])=>{const a=`--${n.FONT_FAMILY_PREFIX}-${e}`,o=t.FONT_DECLARATIONS_MAP[r];return[a,[o.fontFamily,...o.fallback].map(h).join(", ")]})))},exports.getMotionStyles=function(n){const o=r.entries(n).flatMap((([t,n])=>r.entries(n).flatMap((([r,n])=>a.motionSpringConfigOptions.map((a=>[e.getMotionVar({variant:t,speed:r,control:a}),`${n[a]}`]))))));return t.fromEntries(o)},exports.getResponsiveTextStyles=e=>{const t=(r=e.breakpoints,Object.entries(r)).sort((([,{value:e}],[,{value:t}])=>e-t));var r;return{[`.${n.TEXT_RESPONSIVE_CLASSNAME}`]:Object.fromEntries(t.map((([t,{value:r}])=>[`@media (min-width: ${r}px)`,u(e,t)]))),".uds-text-base":u(e,"base"),...Object.fromEntries(t.map((([t])=>[`.uds-text-${t}`,u(e,t)])))}},exports.getScaleModeStyles=function(e){return{xSmall:g(e.scaleMode.xSmall),small:g(e.scaleMode.small),medium:g(e.scaleMode.medium),large:g(e.scaleMode.large),xLarge:g(e.scaleMode.xLarge),xxLarge:g(e.scaleMode.xxLarge),xxxLarge:g(e.scaleMode.xxxLarge)}},exports.getShadowStyles=function({config:e,shadowType:a}){const o=e.shadow[a],s=r.entries(o).map((([e])=>[`.uds-${a}-shadow-${e}`,{[`--uds-${a}-shadow`]:`var(--${n.UDS_PREFIX}-${a}-shadow-${e})`,boxShadow:`var(--${n.UDS_PREFIX}-drop-shadow, 0 0 transparent), var(--${n.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)};
1
+ "use strict";var e=require("./chunk-YMQMU4E2.cjs"),t=require("./chunk-NW3RYPC2.cjs"),r=require("./chunk-J7PUOUXC.cjs"),n=require("./chunk-4NZKRK55.cjs"),a=require("@yahoo/uds/fixtures"),o=require("lodash-es");function s(e){return e&&e.__esModule?e:{default:e}}var i=s(require("tailwindcss/plugin.js")),l=e=>{throw new Error("Didn't expect to get here")};/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(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 s="base"===n?a.base:a.breakpoints?.[n];if(!s)throw new Error(`Missing value for variant "${t}", key "${r}", and breakpoint "${n}"`);if(o.isString(s))return s;switch(s.type){case"px":return s.value/16+"rem";case"unitless":return String(s.value)}return l()},d=(e,t)=>t in e.font?`var(--${n.FONT_FAMILY_PREFIX}-${t})`:t,u=(e,t)=>Object.fromEntries(a.textVariants.flatMap(r=>[[`--${n.FONT_FAMILY_PREFIX}-${r}`,d(e,c(e,r,"fontFamily",t))],[`--${n.FONT_SIZE_PREFIX}-${r}`,c(e,r,"fontSize",t)],[`--${n.FONT_WEIGHT_PREFIX}-${r}`,c(e,r,"fontWeight",t)],[`--${n.LINE_HEIGHT_PREFIX}-${r}`,c(e,r,"lineHeight",t)],[`--${n.TEXT_TRANSFORM_PREFIX}-${r}`,c(e,r,"textTransform",t)]])),f=e=>Object.fromEntries(a.textVariants.map(t=>[t,`var(--${e}-${t})`])),p={fontFamily:f(n.FONT_FAMILY_PREFIX),fontWeight:f(n.FONT_WEIGHT_PREFIX),fontSlant:f(n.FONT_SLANT_PREFIX),fontWidth:f(n.FONT_WIDTH_PREFIX),fontSize:f(n.FONT_SIZE_PREFIX),lineHeight:f(n.LINE_HEIGHT_PREFIX),textTransform:f(n.TEXT_TRANSFORM_PREFIX)};function _(e,t){const r=E(e);for(const e of r)t({"@font-face":e})}var F=i.default.withOptions(function({fontIds:e}){return function({addBase:t}){_(e,t)}});function E(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 h(e){return`"${e}"`}function g(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.RESPONSIVE_TAILWIND_CONFIG_MAP=p,exports.addFontFaceDeclarations=_,exports.addFontsPlugin=F,exports.assertUnreachable=l,exports.getBaseTextStyles=e=>({":root":u(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=E,exports.getFontStyles=function(e){return t.fromEntries(r.entries(e).map(([e,r])=>{const a=`--${n.FONT_FAMILY_PREFIX}-${e}`,o=t.FONT_DECLARATIONS_MAP[r];return[a,[o.fontFamily,...o.fallback].map(h).join(", ")]}))},exports.getMotionStyles=function(n){const o=r.entries(n).flatMap(([t,n])=>r.entries(n).flatMap(([r,n])=>a.motionSpringConfigOptions.map(a=>[e.getMotionVar({variant:t,speed:r,control:a}),`${n[a]}`])));return t.fromEntries(o)},exports.getResponsiveTextStyles=e=>{const t=(r=e.breakpoints,Object.entries(r)).sort(([,{value:e}],[,{value:t}])=>e-t);var r;return{[`.${n.TEXT_RESPONSIVE_CLASSNAME}`]:Object.fromEntries(t.map(([t,{value:r}])=>[`@media (min-width: ${r}px)`,u(e,t)])),".uds-text-base":u(e,"base"),...Object.fromEntries(t.map(([t])=>[`.uds-text-${t}`,u(e,t)]))}},exports.getScaleModeStyles=function(e){return{xSmall:g(e.scaleMode.xSmall),small:g(e.scaleMode.small),medium:g(e.scaleMode.medium),large:g(e.scaleMode.large),xLarge:g(e.scaleMode.xLarge),xxLarge:g(e.scaleMode.xxLarge),xxxLarge:g(e.scaleMode.xxxLarge)}},exports.getShadowStyles=function({config:e,shadowType:a}){const o=e.shadow[a],s=r.entries(o).map(([e])=>[`.uds-${a}-shadow-${e}`,{[`--uds-${a}-shadow`]:`var(--${n.UDS_PREFIX}-${a}-shadow-${e})`,boxShadow:`var(--${n.UDS_PREFIX}-drop-shadow, 0 0 transparent), var(--${n.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)};
@@ -1,2 +1,2 @@
1
1
  /*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- function e(e){return Object.entries(e)}function t(e,t){return Object.keys(e).reduce(((n,r,c)=>(n[r]=t(e[r],r,c),n)),{})}export{e as entries,t as mapValues};
2
+ function e(e){return Object.entries(e)}function t(e,t){return Object.keys(e).reduce((n,r,c)=>(n[r]=t(e[r],r,c),n),{})}export{e as entries,t as mapValues};
@@ -1 +1 @@
1
- import{Box as r}from"./chunk-DOU22WQU.js";import{forwardRef as e,Children as o,cloneElement as t,isValidElement as a}from"react";import{isFunction as n}from"lodash-es";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(r,e)=>((r,e)=>{const o=n(e)?e:()=>e;return r.flatMap(((r,e)=>0!==e?[o(e),r]:[r]))})(o.toArray(r),(r=>{const o=n(e)?e(r):e;return a(o)?t(o,{...o.props,key:o.key??`interspersed-${r}`}):null})),i=e((function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...a,children:t?c(o,t):o})}));i.displayName="HStack";var l=e((function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...a,children:t?c(o,t):o})}));l.displayName="VStack";export{i as HStack,l as VStack};
1
+ import{Box as r}from"./chunk-DOU22WQU.js";import{forwardRef as e,Children as o,cloneElement as t,isValidElement as a}from"react";import{isFunction as n}from"lodash-es";import{jsx as p}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c=(r,e)=>((r,e)=>{const o=n(e)?e:()=>e;return r.flatMap((r,e)=>0!==e?[o(e),r]:[r])})(o.toArray(r),r=>{const o=n(e)?e(r):e;return a(o)?t(o,{...o.props,key:o.key??`interspersed-${r}`}):null}),i=e(function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...a,children:t?c(o,t):o})});i.displayName="HStack";var l=e(function({gap:e,children:o,separator:t,...a},n){return p(r,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...a,children:t?c(o,t):o})});l.displayName="VStack";export{i as HStack,l as VStack};
@@ -1 +1 @@
1
- "use strict";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.entries=function(e){return Object.entries(e)},exports.mapValues=function(e,t){return Object.keys(e).reduce(((r,n,s)=>(r[n]=t(e[n],n,s),r)),{})};
1
+ "use strict";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.entries=function(e){return Object.entries(e)},exports.mapValues=function(e,t){return Object.keys(e).reduce((r,n,s)=>(r[n]=t(e[n],n,s),r),{})};
@@ -1 +1 @@
1
- import{VStack as e,HStack as r}from"./chunk-HLPRIDDR.js";import{cx as t,Box as i,Text as o,getStyles as a}from"./chunk-DOU22WQU.js";import{forwardRef as n,useMemo as l}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c={horizontal:"w-full",vertical:""},m=n((function({vertical:a=!1,contentPosition:n="center",className:m,layerClassNames:h,children:f,...v},x){const p=a?"vertical":"horizontal",N=a?e:r,b=l((()=>({root:t(c[p],m,h?.root),label:t(h?.text),line:h?.line})),[m,p,h?.root,h?.text,h?.line]),u=l((()=>"vertical"===p?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0}),[p]),y=()=>d(i,{flex:"1",className:b.line,style:u});return f?s(N,{flex:"1",alignItems:"center",className:b.root,ref:x,...v,children:["start"!==n&&d(y,{}),d(i,{flex:"none",children:d(o,{color:"inherit",variant:"inherit",className:b.label,children:f})}),"end"!==n&&d(y,{})]}):d(i,{display:"flex",flex:"none",className:b.root,ref:x,...v,children:d(y,{})})}));m.displayName="DividerCore";var h=n((function({variant:e="primary",layerClassNames:r,...i},o){const n=l((()=>({root:t("inherit"!==e&&a({dividerVariantRoot:e}),r?.root),text:t("inherit"!==e?a({dividerVariantLabel:e}):void 0,r?.text),line:t("inherit"!==e&&a({dividerVariantLine:e}),r?.line)})),[r?.line,r?.root,r?.text,e]);return d(m,{ref:o,layerClassNames:n,...i})}));h.displayName="DividerInternal";export{h as DividerInternal};
1
+ import{VStack as e,HStack as r}from"./chunk-HLPRIDDR.js";import{cx as t,Box as i,Text as o,getStyles as a}from"./chunk-DOU22WQU.js";import{forwardRef as n,useMemo as l}from"react";import{jsxs as s,jsx as d}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c={horizontal:"w-full",vertical:""},m=n(function({vertical:a=!1,contentPosition:n="center",className:m,layerClassNames:h,children:f,...v},x){const p=a?"vertical":"horizontal",N=a?e:r,b=l(()=>({root:t(c[p],m,h?.root),label:t(h?.text),line:h?.line}),[m,p,h?.root,h?.text,h?.line]),u=l(()=>"vertical"===p?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[p]),y=()=>d(i,{flex:"1",className:b.line,style:u});return f?s(N,{flex:"1",alignItems:"center",className:b.root,ref:x,...v,children:["start"!==n&&d(y,{}),d(i,{flex:"none",children:d(o,{color:"inherit",variant:"inherit",className:b.label,children:f})}),"end"!==n&&d(y,{})]}):d(i,{display:"flex",flex:"none",className:b.root,ref:x,...v,children:d(y,{})})});m.displayName="DividerCore";var h=n(function({variant:e="primary",layerClassNames:r,...i},o){const n=l(()=>({root:t("inherit"!==e&&a({dividerVariantRoot:e}),r?.root),text:t("inherit"!==e?a({dividerVariantLabel:e}):void 0,r?.text),line:t("inherit"!==e&&a({dividerVariantLine:e}),r?.line)}),[r?.line,r?.root,r?.text,e]);return d(m,{ref:o,layerClassNames:n,...i})});h.displayName="DividerInternal";export{h as DividerInternal};
@@ -1,2 +1,2 @@
1
1
  import{getMotionVar as r}from"./chunk-T7G5JTDY.js";import{FONT_DECLARATIONS_MAP as t,fromEntries as a}from"./chunk-6OYKLY27.js";import{entries as o}from"./chunk-EWJ3J526.js";import{TEXT_TRANSFORM_PREFIX as e,LINE_HEIGHT_PREFIX as n,FONT_SIZE_PREFIX as s,FONT_WIDTH_PREFIX as i,FONT_SLANT_PREFIX as d,FONT_WEIGHT_PREFIX as c,FONT_FAMILY_PREFIX as f,TEXT_RESPONSIVE_CLASSNAME as l,UDS_PREFIX as u}from"./chunk-N4FHPR6Q.js";import{textVariants as m,motionSpringConfigOptions as p}from"@yahoo/uds/fixtures";import{isString as h}from"lodash-es";import $ from"tailwindcss/plugin.js";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- var v=r=>{throw new Error("Didn't expect to get here")};var g=(r,t,a,o)=>{const e=r.typography[t]?.[a];if(!e)throw new Error(`Missing typography data for variant "${t}" and key "${a}"`);const n="base"===o?e.base:e.breakpoints?.[o];if(!n)throw new Error(`Missing value for variant "${t}", key "${a}", and breakpoint "${o}"`);if(h(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return v()},w=(r,t)=>t in r.font?`var(--${f}-${t})`:t,x=(r,t)=>Object.fromEntries(m.flatMap((a=>[[`--${f}-${a}`,w(r,g(r,a,"fontFamily",t))],[`--${s}-${a}`,g(r,a,"fontSize",t)],[`--${c}-${a}`,g(r,a,"fontWeight",t)],[`--${n}-${a}`,g(r,a,"lineHeight",t)],[`--${e}-${a}`,g(r,a,"textTransform",t)]]))),b=r=>Object.fromEntries(m.map((t=>[t,`var(--${r}-${t})`]))),k={fontFamily:b(f),fontWeight:b(c),fontSlant:b(d),fontWidth:b(i),fontSize:b(s),lineHeight:b(n),textTransform:b(e)},y=r=>({":root":x(r,"base")}),M=r=>{const t=(a=r.breakpoints,Object.entries(a)).sort((([,{value:r}],[,{value:t}])=>r-t));var a;return{[`.${l}`]:Object.fromEntries(t.map((([t,{value:a}])=>[`@media (min-width: ${a}px)`,x(r,t)]))),".uds-text-base":x(r,"base"),...Object.fromEntries(t.map((([t])=>[`.uds-text-${t}`,x(r,t)])))}};function j(r,t){const a=L(r);for(const r of a)t({"@font-face":r})}var S=$.withOptions((function({fontIds:r}){return function({addBase:t}){j(r,t)}}));function E(r){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...r.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...r.colorMode.dark._vars}}}function L(r){return r.flatMap((r=>{const{declarations:a,fontFamily:o}=t[r];return a.map((r=>({fontFamily:o,fontDisplay:"swap",...r})))}))}function O(r){return`"${r}"`}function F(r){return a(o(r).map((([r,a])=>{const o=`--${f}-${r}`,e=t[a];return[o,[e.fontFamily,...e.fallback].map(O).join(", ")]})))}function _(t){const e=o(t).flatMap((([t,a])=>o(a).flatMap((([a,o])=>p.map((e=>[r({variant:t,speed:a,control:e}),`${o[e]}`]))))));return a(e)}function T(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function W(r){return{xSmall:T(r.scaleMode.xSmall),small:T(r.scaleMode.small),medium:T(r.scaleMode.medium),large:T(r.scaleMode.large),xLarge:T(r.scaleMode.xLarge),xxLarge:T(r.scaleMode.xxLarge),xxxLarge:T(r.scaleMode.xxxLarge)}}function z({config:r,shadowType:t}){const e=r.shadow[t],n=o(e).map((([r])=>[`.uds-${t}-shadow-${r}`,{[`--uds-${t}-shadow`]:`var(--${u}-${t}-shadow-${r})`,boxShadow:`var(--${u}-drop-shadow, 0 0 transparent), var(--${u}-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 a(n)}export{k as RESPONSIVE_TAILWIND_CONFIG_MAP,j as addFontFaceDeclarations,S as addFontsPlugin,v as assertUnreachable,y as getBaseTextStyles,E as getColorModeStyles,L as getFontFaceDeclarations,F as getFontStyles,_ as getMotionStyles,M as getResponsiveTextStyles,W as getScaleModeStyles,z as getShadowStyles};
2
+ var v=r=>{throw new Error("Didn't expect to get here")};var g=(r,t,a,o)=>{const e=r.typography[t]?.[a];if(!e)throw new Error(`Missing typography data for variant "${t}" and key "${a}"`);const n="base"===o?e.base:e.breakpoints?.[o];if(!n)throw new Error(`Missing value for variant "${t}", key "${a}", and breakpoint "${o}"`);if(h(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return v()},w=(r,t)=>t in r.font?`var(--${f}-${t})`:t,x=(r,t)=>Object.fromEntries(m.flatMap(a=>[[`--${f}-${a}`,w(r,g(r,a,"fontFamily",t))],[`--${s}-${a}`,g(r,a,"fontSize",t)],[`--${c}-${a}`,g(r,a,"fontWeight",t)],[`--${n}-${a}`,g(r,a,"lineHeight",t)],[`--${e}-${a}`,g(r,a,"textTransform",t)]])),b=r=>Object.fromEntries(m.map(t=>[t,`var(--${r}-${t})`])),k={fontFamily:b(f),fontWeight:b(c),fontSlant:b(d),fontWidth:b(i),fontSize:b(s),lineHeight:b(n),textTransform:b(e)},y=r=>({":root":x(r,"base")}),M=r=>{const t=(a=r.breakpoints,Object.entries(a)).sort(([,{value:r}],[,{value:t}])=>r-t);var a;return{[`.${l}`]:Object.fromEntries(t.map(([t,{value:a}])=>[`@media (min-width: ${a}px)`,x(r,t)])),".uds-text-base":x(r,"base"),...Object.fromEntries(t.map(([t])=>[`.uds-text-${t}`,x(r,t)]))}};function j(r,t){const a=L(r);for(const r of a)t({"@font-face":r})}var S=$.withOptions(function({fontIds:r}){return function({addBase:t}){j(r,t)}});function E(r){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...r.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...r.colorMode.dark._vars}}}function L(r){return r.flatMap(r=>{const{declarations:a,fontFamily:o}=t[r];return a.map(r=>({fontFamily:o,fontDisplay:"swap",...r}))})}function O(r){return`"${r}"`}function F(r){return a(o(r).map(([r,a])=>{const o=`--${f}-${r}`,e=t[a];return[o,[e.fontFamily,...e.fallback].map(O).join(", ")]}))}function _(t){const e=o(t).flatMap(([t,a])=>o(a).flatMap(([a,o])=>p.map(e=>[r({variant:t,speed:a,control:e}),`${o[e]}`])));return a(e)}function T(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function W(r){return{xSmall:T(r.scaleMode.xSmall),small:T(r.scaleMode.small),medium:T(r.scaleMode.medium),large:T(r.scaleMode.large),xLarge:T(r.scaleMode.xLarge),xxLarge:T(r.scaleMode.xxLarge),xxxLarge:T(r.scaleMode.xxxLarge)}}function z({config:r,shadowType:t}){const e=r.shadow[t],n=o(e).map(([r])=>[`.uds-${t}-shadow-${r}`,{[`--uds-${t}-shadow`]:`var(--${u}-${t}-shadow-${r})`,boxShadow:`var(--${u}-drop-shadow, 0 0 transparent), var(--${u}-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 a(n)}export{k as RESPONSIVE_TAILWIND_CONFIG_MAP,j as addFontFaceDeclarations,S as addFontsPlugin,v as assertUnreachable,y as getBaseTextStyles,E as getColorModeStyles,L as getFontFaceDeclarations,F as getFontStyles,_ as getMotionStyles,M as getResponsiveTextStyles,W as getScaleModeStyles,z as getShadowStyles};
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-3WKHS4HP.cjs"),r=require("./chunk-QJFI4SGB.cjs"),t=require("react"),i=require("react/jsx-runtime"),a={horizontal:"w-full",vertical:""},o=t.forwardRef((function({vertical:o=!1,contentPosition:l="center",className:n,layerClassNames:s,children:c,...d},x){const h=o?"vertical":"horizontal",m=o?e.VStack:e.HStack,f=t.useMemo((()=>({root:r.cx(a[h],n,s?.root),label:r.cx(s?.text),line:s?.line})),[n,h,s?.root,s?.text,s?.line]),u=t.useMemo((()=>"vertical"===h?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0}),[h]),v=()=>i.jsx(r.Box,{flex:"1",className:f.line,style:u});return c?i.jsxs(m,{flex:"1",alignItems:"center",className:f.root,ref:x,...d,children:["start"!==l&&i.jsx(v,{}),i.jsx(r.Box,{flex:"none",children:i.jsx(r.Text,{color:"inherit",variant:"inherit",className:f.label,children:c})}),"end"!==l&&i.jsx(v,{})]}):i.jsx(r.Box,{display:"flex",flex:"none",className:f.root,ref:x,...d,children:i.jsx(v,{})})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */o.displayName="DividerCore";var l=t.forwardRef((function({variant:e="primary",layerClassNames:a,...l},n){const s=t.useMemo((()=>({root:r.cx("inherit"!==e&&r.getStyles({dividerVariantRoot:e}),a?.root),text:r.cx("inherit"!==e?r.getStyles({dividerVariantLabel:e}):void 0,a?.text),line:r.cx("inherit"!==e&&r.getStyles({dividerVariantLine:e}),a?.line)})),[a?.line,a?.root,a?.text,e]);return i.jsx(o,{ref:n,layerClassNames:s,...l})}));l.displayName="DividerInternal",exports.DividerInternal=l;
1
+ "use strict";var e=require("./chunk-3WKHS4HP.cjs"),r=require("./chunk-QJFI4SGB.cjs"),t=require("react"),i=require("react/jsx-runtime"),a={horizontal:"w-full",vertical:""},o=t.forwardRef(function({vertical:o=!1,contentPosition:l="center",className:n,layerClassNames:s,children:c,...d},x){const h=o?"vertical":"horizontal",m=o?e.VStack:e.HStack,f=t.useMemo(()=>({root:r.cx(a[h],n,s?.root),label:r.cx(s?.text),line:s?.line}),[n,h,s?.root,s?.text,s?.line]),u=t.useMemo(()=>"vertical"===h?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0},[h]),v=()=>i.jsx(r.Box,{flex:"1",className:f.line,style:u});return c?i.jsxs(m,{flex:"1",alignItems:"center",className:f.root,ref:x,...d,children:["start"!==l&&i.jsx(v,{}),i.jsx(r.Box,{flex:"none",children:i.jsx(r.Text,{color:"inherit",variant:"inherit",className:f.label,children:c})}),"end"!==l&&i.jsx(v,{})]}):i.jsx(r.Box,{display:"flex",flex:"none",className:f.root,ref:x,...d,children:i.jsx(v,{})})});/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */o.displayName="DividerCore";var l=t.forwardRef(function({variant:e="primary",layerClassNames:a,...l},n){const s=t.useMemo(()=>({root:r.cx("inherit"!==e&&r.getStyles({dividerVariantRoot:e}),a?.root),text:r.cx("inherit"!==e?r.getStyles({dividerVariantLabel:e}):void 0,a?.text),line:r.cx("inherit"!==e&&r.getStyles({dividerVariantLine:e}),a?.line)}),[a?.line,a?.root,a?.text,e]);return i.jsx(o,{ref:n,layerClassNames:s,...l})});l.displayName="DividerInternal",exports.DividerInternal=l;
@@ -1 +1 @@
1
- "use strict";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var e=Object.defineProperty,r=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,r)=>("undefined"!=typeof require?require:e)[r]}):e)((function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}));exports.__export=(r,i)=>{for(var t in i)e(r,t,{get:i[t],enumerable:!0})},exports.__require=r;
1
+ "use strict";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var e=Object.defineProperty,r=(e=>"undefined"!=typeof require?require:"undefined"!=typeof Proxy?new Proxy(e,{get:(e,r)=>("undefined"!=typeof require?require:e)[r]}):e)(function(e){if("undefined"!=typeof require)return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});exports.__export=(r,i)=>{for(var t in i)e(r,t,{get:i[t],enumerable:!0})},exports.__require=r;