@yahoo/uds 3.31.0-beta.1 → 3.31.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 (72) hide show
  1. package/cli/FullWidthClassToProp.mock.tsx +17 -0
  2. package/dist/{Input-CiblUAAn.d.ts → Input-CShQy1AN.d.ts} +1 -1
  3. package/dist/{Input-BGoYBWuZ.d.cts → Input-PQPqt40J.d.cts} +1 -1
  4. package/dist/{Pressable-SWbWgmkV.d.cts → Pressable-B7zYkROB.d.cts} +1 -1
  5. package/dist/{Pressable-5xZkX31-.d.ts → Pressable-D_EBLD22.d.ts} +1 -1
  6. package/dist/{VStack-CQeeckDq.d.ts → VStack-CcKiHh5j.d.ts} +1 -1
  7. package/dist/{VStack-D-kwOQ5o.d.cts → VStack-Df7cOZv3.d.cts} +1 -1
  8. package/dist/{chunk-JVYFTHX7.js → chunk-C5UZEZC5.js} +1 -1
  9. package/dist/{chunk-YTRBQ73N.cjs → chunk-RA5767I6.cjs} +1 -1
  10. package/dist/client/Menu.d.cts +3 -3
  11. package/dist/client/Menu.d.ts +3 -3
  12. package/dist/client/index.d.cts +3 -3
  13. package/dist/client/index.d.ts +3 -3
  14. package/dist/defaultTokensConfig.cjs +1 -1
  15. package/dist/defaultTokensConfig.d.cts +2 -2
  16. package/dist/defaultTokensConfig.d.ts +2 -2
  17. package/dist/defaultTokensConfig.js +1 -1
  18. package/dist/experimental/client/SwitchV2.cjs +1 -0
  19. package/dist/experimental/client/SwitchV2.d.cts +1 -1
  20. package/dist/experimental/client/SwitchV2.d.ts +1 -1
  21. package/dist/experimental/client/SwitchV2.js +1 -0
  22. package/dist/{index-D8RcvAUN.d.cts → index-B9lUgtPK.d.cts} +1 -1
  23. package/dist/{index-CbmfLw3M.d.ts → index-BaI_jrSA.d.ts} +1 -1
  24. package/dist/index.d.cts +6 -6
  25. package/dist/index.d.ts +6 -6
  26. package/dist/metafile-cjs.json +1 -1
  27. package/dist/metafile-esm.json +1 -1
  28. package/dist/tailwind/plugin.cjs +1 -1
  29. package/dist/tailwind/plugin.d.cts +1 -1
  30. package/dist/tailwind/plugin.d.ts +1 -1
  31. package/dist/tailwind/plugin.js +2 -2
  32. package/dist/tailwind/purger.cjs +1 -1
  33. package/dist/tailwind/purger.js +2 -2
  34. package/dist/tailwind/utils.cjs +1 -1
  35. package/dist/tailwind/utils.d.cts +3 -3
  36. package/dist/tailwind/utils.d.ts +3 -3
  37. package/dist/tailwind/utils.js +1 -1
  38. package/dist/tokens/automation/configs.d.cts +2 -2
  39. package/dist/tokens/automation/configs.d.ts +2 -2
  40. package/dist/tokens/automation/properties.d.cts +2 -2
  41. package/dist/tokens/automation/properties.d.ts +2 -2
  42. package/dist/tokens/index.d.cts +4 -4
  43. package/dist/tokens/index.d.ts +4 -4
  44. package/dist/tokens/parseTokens.d.cts +1 -1
  45. package/dist/tokens/parseTokens.d.ts +1 -1
  46. package/dist/{types-BdTp68BU.d.cts → types-CILmuEy4.d.cts} +2025 -2024
  47. package/dist/{types-BdTp68BU.d.ts → types-CILmuEy4.d.ts} +2025 -2024
  48. package/package.json +1 -1
  49. package/dist/Input-DLaDfj3B.d.ts +0 -52
  50. package/dist/Input-kTncRDL-.d.cts +0 -52
  51. package/dist/Pressable-8ICm6dtF.d.cts +0 -44
  52. package/dist/Pressable-m2P7wcyE.d.ts +0 -44
  53. package/dist/VStack-D3EStCcZ.d.cts +0 -112
  54. package/dist/VStack-beHwBAQ7.d.ts +0 -112
  55. package/dist/chunk-33RRPC6G.js +0 -1
  56. package/dist/chunk-4BN4CQFA.js +0 -2
  57. package/dist/chunk-4T3G4LC5.js +0 -3
  58. package/dist/chunk-5NN6ZF5W.js +0 -2
  59. package/dist/chunk-DUNQUPPG.cjs +0 -2
  60. package/dist/chunk-ESXUE7WP.js +0 -1
  61. package/dist/chunk-FN67NTU3.cjs +0 -1
  62. package/dist/chunk-FSOEBCEK.cjs +0 -1
  63. package/dist/chunk-ISCBDHKR.cjs +0 -1
  64. package/dist/chunk-KEXVCU34.js +0 -1
  65. package/dist/chunk-NKIUW3BW.cjs +0 -1
  66. package/dist/chunk-QAAVGWEA.cjs +0 -1
  67. package/dist/chunk-TD6TOMCP.js +0 -1
  68. package/dist/chunk-UDUXWU4B.cjs +0 -3
  69. package/dist/index-B9RNh21D.d.ts +0 -245
  70. package/dist/index-C9DHRmxW.d.cts +0 -245
  71. package/dist/types-CLQR8V8k.d.cts +0 -10576
  72. package/dist/types-CLQR8V8k.d.ts +0 -10576
@@ -0,0 +1,17 @@
1
+ import { Box, Button, HStack } from '@yahoo/uds';
2
+ import { VStack } from 'another-package';
3
+
4
+ export const PageA = () => {
5
+ return (
6
+ <HStack height="screen" width="full" className="max-h-screen">
7
+ <Button width="full">Click me</Button>
8
+ <Box width="full">Click me</Button>
9
+ <Box className="dont_touch_me">Box</Box>
10
+ </HStack>
11
+ <Box>Empty</Box>
12
+ <div className="w-full h-full">shouldn't be touched</div>
13
+ <VStack className="w-full">shouldn't be touched</VStack>
14
+ <Box height="full" width="full" className="foo bar">Box</Box>
15
+ <Box height="full">Box</Box>
16
+ );
17
+ }
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes } from 'react';
3
- import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-CLQR8V8k.js';
3
+ import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-CILmuEy4.js';
4
4
  import { HTMLMotionProps } from 'motion/react';
5
5
 
6
6
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { InputHTMLAttributes } from 'react';
3
- import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-CLQR8V8k.cjs';
3
+ import { U as UniversalInputProps, I as IconPropsWithSVGProps } from './types-CILmuEy4.cjs';
4
4
  import { HTMLMotionProps } from 'motion/react';
5
5
 
6
6
  type HtmlInputProps = React.InputHTMLAttributes<HTMLInputElement> & HTMLMotionProps<'input'>;
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { a as UniversalPressableProps } from './types-CLQR8V8k.cjs';
2
+ import { a as UniversalPressableProps } from './types-CILmuEy4.cjs';
3
3
 
4
4
  type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
5
  interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { a as UniversalPressableProps } from './types-BdTp68BU.js';
2
+ import { a as UniversalPressableProps } from './types-CILmuEy4.js';
3
3
 
4
4
  type HtmlButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'name'>;
5
5
  interface PressableProps extends UniversalPressableProps, HtmlButtonProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { n as UniversalBoxProps, o as UniversalStackProps, p as UniversalDividerProps } from './types-CLQR8V8k.js';
2
+ import { n as UniversalBoxProps, o as UniversalStackProps, p as UniversalDividerProps } from './types-CILmuEy4.js';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { n as UniversalBoxProps, o as UniversalStackProps, p as UniversalDividerProps } from './types-CLQR8V8k.cjs';
2
+ import { n as UniversalBoxProps, o as UniversalStackProps, p as UniversalDividerProps } from './types-CILmuEy4.cjs';
3
3
 
4
4
  type DivProps = React.HTMLAttributes<HTMLDivElement>;
5
5
  interface BoxProps extends UniversalBoxProps, DivProps {
@@ -1,2 +1,2 @@
1
1
  import{getMotionVar as r}from"./chunk-KYESDN2J.js";import{FONT_DECLARATIONS_MAP as t,fromEntries as a}from"./chunk-2N6GU6KA.js";import{entries as n}from"./chunk-EWJ3J526.js";import{TEXT_TRANSFORM_PREFIX as o,LINE_HEIGHT_PREFIX as e,FONT_SIZE_PREFIX as s,FONT_WIDTH_PREFIX as i,FONT_SLANT_PREFIX as d,FONT_WEIGHT_PREFIX as f,FONT_FAMILY_PREFIX as c,TEXT_RESPONSIVE_CLASSNAME as l,UDS_PREFIX as u}from"./chunk-24RMELG3.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,n)=>{const o=r.typography[t]?.[a];if(!o)throw new Error(`Missing typography data for variant "${t}" and key "${a}"`);const e="base"===n?o.base:o.breakpoints?.[n];if(!e)throw new Error(`Missing value for variant "${t}", key "${a}", and breakpoint "${n}"`);if(h(e))return e;switch(e.type){case"px":return e.value/16+"rem";case"unitless":return String(e.value)}return v()},w=(r,t)=>t in r.font?`var(--${c}-${t})`:t,x=(r,t)=>Object.fromEntries(m.flatMap(a=>[[`--${c}-${a}`,w(r,g(r,a,"fontFamily",t))],[`--${s}-${a}`,g(r,a,"fontSize",t)],[`--${f}-${a}`,g(r,a,"fontWeight",t)],[`--${d}-${a}`,g(r,a,"fontSlant",t)],[`--${i}-${a}`,g(r,a,"fontWidth",t)],[`--${e}-${a}`,g(r,a,"lineHeight",t)],[`--${o}-${a}`,g(r,a,"textTransform",t)]])),b=r=>Object.fromEntries(m.map(t=>[t,`var(--${r}-${t})`])),M={fontFamily:b(c),fontWeight:b(f),fontSlant:b(d),fontWidth:b(i),fontSize:b(s),lineHeight:b(e),textTransform:b(o)},k=(r,t)=>({[t]:x(r,"base")}),y=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 S(r,t){const a=L(r);for(const r of a)t({"@font-face":r})}var j=$.withOptions(function({fontIds:r}){return function({addBase:t}){S(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:n}=t[r];return a.map(r=>({fontFamily:n,fontDisplay:"swap",...r}))})}function O(r){return`"${r}"`}function W(r){return a(n(r).map(([r,a])=>{const n=`--${c}-${r}`,o=t[a];return[n,[o.fontFamily,...o.fallback].map(O).join(", ")]}))}function _(t){const o=n(t).flatMap(([t,a])=>n(a).flatMap(([a,n])=>p.map(o=>[r({variant:t,speed:a,control:o}),`${n[o]}`])));return a(o)}function F(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function z(r){return{xSmall:F(r.scaleMode.xSmall),small:F(r.scaleMode.small),medium:F(r.scaleMode.medium),large:F(r.scaleMode.large),xLarge:F(r.scaleMode.xLarge),xxLarge:F(r.scaleMode.xxLarge),xxxLarge:F(r.scaleMode.xxxLarge)}}function D({config:r,shadowType:t}){const o=r.shadow[t],e=n(o).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(e)}export{M as RESPONSIVE_TAILWIND_CONFIG_MAP,S as addFontFaceDeclarations,j as addFontsPlugin,v as assertUnreachable,k as getBaseTextVars,E as getColorModeStyles,L as getFontFaceDeclarations,W as getFontStyles,_ as getMotionStyles,y as getResponsiveTextStyles,z as getScaleModeStyles,D as getShadowStyles};
2
+ var v=r=>{throw new Error("Didn't expect to get here")};var g=(r,t,a,n)=>{const o=r.typography[t]?.[a];if(!o)throw new Error(`Missing typography data for variant "${t}" and key "${a}"`);const e="base"===n?o.base:o.breakpoints?.[n];if(!e)throw new Error(`Missing value for variant "${t}", key "${a}", and breakpoint "${n}"`);if(h(e))return e;switch(e.type){case"px":return e.value/16+"rem";case"unitless":return String(e.value)}return v()},w=(r,t)=>t in r.font?`var(--${c}-${t})`:t,x=(r,t)=>Object.fromEntries(m.flatMap(a=>[[`--${c}-${a}`,w(r,g(r,a,"fontFamily",t))],[`--${s}-${a}`,g(r,a,"fontSize",t)],[`--${f}-${a}`,g(r,a,"fontWeight",t)],[`--${d}-${a}`,g(r,a,"fontSlant",t)],[`--${i}-${a}`,g(r,a,"fontWidth",t)],[`--${e}-${a}`,g(r,a,"lineHeight",t)],[`--${o}-${a}`,g(r,a,"textTransform",t)]])),b=r=>Object.fromEntries(m.map(t=>[t,`var(--${r}-${t})`])),M={fontFamily:b(c),fontWeight:b(f),fontSlant:b(d),fontWidth:b(i),fontSize:b(s),lineHeight:b(e),textTransform:b(o)},k=r=>({":root":x(r,"base")}),y=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 S(r,t){const a=L(r);for(const r of a)t({"@font-face":r})}var j=$.withOptions(function({fontIds:r}){return function({addBase:t}){S(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:n}=t[r];return a.map(r=>({fontFamily:n,fontDisplay:"swap",...r}))})}function O(r){return`"${r}"`}function W(r){return a(n(r).map(([r,a])=>{const n=`--${c}-${r}`,o=t[a];return[n,[o.fontFamily,...o.fallback].map(O).join(", ")]}))}function _(t){const o=n(t).flatMap(([t,a])=>n(a).flatMap(([a,n])=>p.map(o=>[r({variant:t,speed:a,control:o}),`${n[o]}`])));return a(o)}function F(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function z(r){return{xSmall:F(r.scaleMode.xSmall),small:F(r.scaleMode.small),medium:F(r.scaleMode.medium),large:F(r.scaleMode.large),xLarge:F(r.scaleMode.xLarge),xxLarge:F(r.scaleMode.xxLarge),xxxLarge:F(r.scaleMode.xxxLarge)}}function D({config:r,shadowType:t}){const o=r.shadow[t],e=n(o).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(e)}export{M as RESPONSIVE_TAILWIND_CONFIG_MAP,S as addFontFaceDeclarations,j as addFontsPlugin,v as assertUnreachable,k as getBaseTextStyles,E as getColorModeStyles,L as getFontFaceDeclarations,W as getFontStyles,_ as getMotionStyles,y as getResponsiveTextStyles,z as getScaleModeStyles,D as getShadowStyles};
@@ -1 +1 @@
1
- "use strict";var e=require("./chunk-NQ7BFO3S.cjs"),t=require("./chunk-T3NVPMAQ.cjs"),r=require("./chunk-J7PUOUXC.cjs"),n=require("./chunk-3AYBRPUC.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 d=(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()},c=(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}`,c(e,d(e,r,"fontFamily",t))],[`--${n.FONT_SIZE_PREFIX}-${r}`,d(e,r,"fontSize",t)],[`--${n.FONT_WEIGHT_PREFIX}-${r}`,d(e,r,"fontWeight",t)],[`--${n.FONT_SLANT_PREFIX}-${r}`,d(e,r,"fontSlant",t)],[`--${n.FONT_WIDTH_PREFIX}-${r}`,d(e,r,"fontWidth",t)],[`--${n.LINE_HEIGHT_PREFIX}-${r}`,d(e,r,"lineHeight",t)],[`--${n.TEXT_TRANSFORM_PREFIX}-${r}`,d(e,r,"textTransform",t)]])),f=e=>Object.fromEntries(a.textVariants.map(t=>[t,`var(--${e}-${t})`])),F={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 p=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 I(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.RESPONSIVE_TAILWIND_CONFIG_MAP=F,exports.addFontFaceDeclarations=_,exports.addFontsPlugin=p,exports.assertUnreachable=l,exports.getBaseTextVars=(e,t)=>({[t]: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:I(e.scaleMode.xSmall),small:I(e.scaleMode.small),medium:I(e.scaleMode.medium),large:I(e.scaleMode.large),xLarge:I(e.scaleMode.xLarge),xxLarge:I(e.scaleMode.xxLarge),xxxLarge:I(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-NQ7BFO3S.cjs"),t=require("./chunk-T3NVPMAQ.cjs"),r=require("./chunk-J7PUOUXC.cjs"),n=require("./chunk-3AYBRPUC.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 d=(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()},c=(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}`,c(e,d(e,r,"fontFamily",t))],[`--${n.FONT_SIZE_PREFIX}-${r}`,d(e,r,"fontSize",t)],[`--${n.FONT_WEIGHT_PREFIX}-${r}`,d(e,r,"fontWeight",t)],[`--${n.FONT_SLANT_PREFIX}-${r}`,d(e,r,"fontSlant",t)],[`--${n.FONT_WIDTH_PREFIX}-${r}`,d(e,r,"fontWidth",t)],[`--${n.LINE_HEIGHT_PREFIX}-${r}`,d(e,r,"lineHeight",t)],[`--${n.TEXT_TRANSFORM_PREFIX}-${r}`,d(e,r,"textTransform",t)]])),f=e=>Object.fromEntries(a.textVariants.map(t=>[t,`var(--${e}-${t})`])),F={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 p=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 I(e){return{...e.borderRadius._vars,...e.borderWidth._vars,...e.avatarSizes._vars,...e.iconSizes._vars}}exports.RESPONSIVE_TAILWIND_CONFIG_MAP=F,exports.addFontFaceDeclarations=_,exports.addFontsPlugin=p,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:I(e.scaleMode.xSmall),small:I(e.scaleMode.small),medium:I(e.scaleMode.medium),large:I(e.scaleMode.large),xLarge:I(e.scaleMode.xLarge),xxLarge:I(e.scaleMode.xxLarge),xxxLarge:I(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,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { AriaRole, HTMLAttributes, PropsWithChildren } from 'react';
3
3
  import { MenuProps, MenuItemProps as MenuItemProps$1, MenuItemCheckboxProps as MenuItemCheckboxProps$1, MenuProviderProps as MenuProviderProps$1, MenuButtonProps, useMenuContext, useMenuStore } from '@ariakit/react/menu';
4
- import { u as SpacingAlias, v as UniversalMenuItemProps } from '../types-CLQR8V8k.cjs';
5
- import { V as VStackProps, D as DividerProps, B as BoxProps } from '../VStack-D-kwOQ5o.cjs';
6
- import { P as PressableProps } from '../Pressable-SWbWgmkV.cjs';
4
+ import { u as SpacingAlias, v as UniversalMenuItemProps } from '../types-CILmuEy4.cjs';
5
+ import { V as VStackProps, D as DividerProps, B as BoxProps } from '../VStack-Df7cOZv3.cjs';
6
+ import { P as PressableProps } from '../Pressable-B7zYkROB.cjs';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { useStoreState } from '@ariakit/react';
9
9
  import '@yahoo/uds-icons/types';
@@ -1,9 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { AriaRole, HTMLAttributes, PropsWithChildren } from 'react';
3
3
  import { MenuProps, MenuItemProps as MenuItemProps$1, MenuItemCheckboxProps as MenuItemCheckboxProps$1, MenuProviderProps as MenuProviderProps$1, MenuButtonProps, useMenuContext, useMenuStore } from '@ariakit/react/menu';
4
- import { u as SpacingAlias, v as UniversalMenuItemProps } from '../types-CLQR8V8k.js';
5
- import { V as VStackProps, D as DividerProps, B as BoxProps } from '../VStack-CQeeckDq.js';
6
- import { P as PressableProps } from '../Pressable-m2P7wcyE.js';
4
+ import { u as SpacingAlias, v as UniversalMenuItemProps } from '../types-CILmuEy4.js';
5
+ import { V as VStackProps, D as DividerProps, B as BoxProps } from '../VStack-CcKiHh5j.js';
6
+ import { P as PressableProps } from '../Pressable-D_EBLD22.js';
7
7
  import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { useStoreState } from '@ariakit/react';
9
9
  import '@yahoo/uds-icons/types';
@@ -1,10 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { cV as UniversalAvatarProps, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, d2 as UniversalChipProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d3 as UniversalChipToggleProps, d4 as UniversalIconButtonProps, d8 as UniversalRadioProps, d7 as UniversalRadioGroupProps, b$ as MotionVariant, c0 as MotionVariantSpeed, b as UniversalSwitchProps } from '../types-CLQR8V8k.cjs';
2
+ import { cV as UniversalAvatarProps, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, d2 as UniversalChipProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d3 as UniversalChipToggleProps, d4 as UniversalIconButtonProps, d8 as UniversalRadioProps, d7 as UniversalRadioGroupProps, b$ as MotionVariant, c0 as MotionVariantSpeed, b as UniversalSwitchProps } from '../types-CILmuEy4.cjs';
3
3
  import * as react from 'react';
4
4
  import react__default, { ForwardRefExoticComponent } from 'react';
5
5
  import { HTMLMotionProps, MotionConfigProps, LazyFeatureBundle } from 'motion/react';
6
- export { a as Input, I as InputProps } from '../Input-BGoYBWuZ.cjs';
7
- export { a as Pressable, P as PressableProps } from '../Pressable-SWbWgmkV.cjs';
6
+ export { a as Input, I as InputProps } from '../Input-PQPqt40J.cjs';
7
+ export { a as Pressable, P as PressableProps } from '../Pressable-B7zYkROB.cjs';
8
8
  export { Menu, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps } from '@yahoo/uds/client/Menu';
9
9
  import '@yahoo/uds-icons/types';
10
10
  import 'type-fest';
@@ -1,10 +1,10 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { cV as UniversalAvatarProps, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, d2 as UniversalChipProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d3 as UniversalChipToggleProps, d4 as UniversalIconButtonProps, d8 as UniversalRadioProps, d7 as UniversalRadioGroupProps, b$ as MotionVariant, c0 as MotionVariantSpeed, b as UniversalSwitchProps } from '../types-CLQR8V8k.js';
2
+ import { cV as UniversalAvatarProps, cT as UniversalAvatarIconProps, cU as UniversalAvatarImageProps, cW as UniversalAvatarTextProps, cX as UniversalBadgeProps, cY as UniversalButtonProps, cZ as UniversalCheckboxProps, d2 as UniversalChipProps, c$ as UniversalChipButtonProps, d0 as UniversalChipDismissibleProps, d1 as UniversalChipLinkProps, d3 as UniversalChipToggleProps, d4 as UniversalIconButtonProps, d8 as UniversalRadioProps, d7 as UniversalRadioGroupProps, b$ as MotionVariant, c0 as MotionVariantSpeed, b as UniversalSwitchProps } from '../types-CILmuEy4.js';
3
3
  import * as react from 'react';
4
4
  import react__default, { ForwardRefExoticComponent } from 'react';
5
5
  import { HTMLMotionProps, MotionConfigProps, LazyFeatureBundle } from 'motion/react';
6
- export { a as Input, I as InputProps } from '../Input-CiblUAAn.js';
7
- export { a as Pressable, P as PressableProps } from '../Pressable-m2P7wcyE.js';
6
+ export { a as Input, I as InputProps } from '../Input-CShQy1AN.js';
7
+ export { a as Pressable, P as PressableProps } from '../Pressable-D_EBLD22.js';
8
8
  export { Menu, MenuContentProps, MenuDividerProps, MenuItemCheckboxProps, MenuItemProps, MenuPlacement, MenuProviderProps, MenuTriggerProps } from '@yahoo/uds/client/Menu';
9
9
  import '@yahoo/uds-icons/types';
10
10
  import 'type-fest';