@yahoo/uds 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/cli/bin/uds-linux-x64-baseline +0 -0
  2. package/dist/{chunk-BQENUWKR.cjs → chunk-2ES5G2LV.cjs} +2 -2
  3. package/dist/{chunk-HDTC4SXA.js → chunk-2XDBRKZ2.js} +1 -1
  4. package/dist/{chunk-VYFYXMA5.js → chunk-6V27ERSN.js} +2 -2
  5. package/dist/{chunk-XVDIMP4I.js → chunk-BVYYTXL4.js} +2 -2
  6. package/dist/{chunk-RTLUKBLZ.js → chunk-E4P2JJND.js} +2 -2
  7. package/dist/{chunk-FXA7CXCG.cjs → chunk-EAYMRYPF.cjs} +2 -2
  8. package/dist/{chunk-V4IAOCQT.js → chunk-F5XE4336.js} +1 -1
  9. package/dist/{chunk-BJZSTZKO.js → chunk-GL6YFZ6M.js} +4 -4
  10. package/dist/{chunk-QDDUQMIL.cjs → chunk-LHJHFGKQ.cjs} +1 -1
  11. package/dist/{chunk-UNYRPTSW.cjs → chunk-Q3FBFHUG.cjs} +2 -2
  12. package/dist/{chunk-WTM3H6RK.js → chunk-RDB36LP5.js} +1 -1
  13. package/dist/{chunk-V4KQO6WZ.cjs → chunk-SFZOXSVA.cjs} +1 -1
  14. package/dist/{chunk-5AGBM4YW.cjs → chunk-U3UWTVPP.cjs} +2 -2
  15. package/dist/{chunk-G56DRBBO.js → chunk-UZUZHTZX.js} +2 -2
  16. package/dist/{chunk-XHR7XP5T.cjs → chunk-WC3BJLIW.cjs} +2 -2
  17. package/dist/{chunk-UEKY6CPD.cjs → chunk-XJMVPGBH.cjs} +1 -1
  18. package/dist/client/index.cjs +1 -1
  19. package/dist/client/index.js +4 -4
  20. package/dist/experimental/index.cjs +1 -1
  21. package/dist/experimental/index.js +1 -1
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +2 -2
  24. package/dist/metafile-esm.json +1 -1
  25. package/dist/tailwind/plugin.cjs +3 -3
  26. package/dist/tailwind/plugin.js +3 -3
  27. package/dist/tailwind/purger.cjs +1 -1
  28. package/dist/tailwind/purger.js +1 -1
  29. package/dist/tailwind/tsMorph.cjs +2 -2
  30. package/dist/tailwind/tsMorph.js +2 -2
  31. package/dist/tailwind/utils.cjs +1 -1
  32. package/dist/tailwind/utils.js +1 -1
  33. package/dist/tokens/index.cjs +1 -1
  34. package/dist/tokens/index.js +1 -1
  35. package/dist/tokens/parseTokens.cjs +1 -1
  36. package/dist/tokens/parseTokens.js +1 -1
  37. package/package.json +1 -1
  38. /package/dist/{motionFeatures-X2TTGYMV.cjs → motionFeatures-7CSRSR25.cjs} +0 -0
  39. /package/dist/{motionFeatures-Y7AWRH5K.js → motionFeatures-IDNJEKPI.js} +0 -0
@@ -1,3 +1,3 @@
1
- "use strict";var e=require("../chunk-BQENUWKR.cjs"),t=require("../chunk-5AGBM4YW.cjs"),o=require("../chunk-XHR7XP5T.cjs"),i=require("../chunk-QDDUQMIL.cjs"),n=require("../chunk-UEKY6CPD.cjs"),r=require("../chunk-V4KQO6WZ.cjs"),a=require("@yahoo/uds/fixtures"),s=require("tailwindcss/plugin"),l=require("tailwindcss/defaultTheme");function d(e){return e&&e.__esModule?e:{default:e}}var u=d(s),_=d(l);var c="sm";function S(e,t,o){const i=e[t],n=o?.[i];return n?`var(${i}, ${n})`:`var(${i})`}function f(e,{type:t,value:o},i){const n="color"===e?"textColor":e;if("palette"===t)return a.alwaysPaletteAliases.includes(o)?o:i(`${n}.${o}`);{const[e,t]=o.split("-");return i(`colors.${e}.${t}`)}}function A({scale:e}){return a.scaleEffectMap[e][c]}function T({backgroundColor:e,borderColor:t,color:o,borderRadius:i,borderWidth:r},a){return{[n.BUTTON_CSS_VAR_MAP.backgroundColor]:f("backgroundColor",e,a),[n.BUTTON_CSS_VAR_MAP.borderColor]:f("borderColor",t,a),[n.BUTTON_CSS_VAR_MAP.color]:f("color",o,a),...i&&{[n.BUTTON_CSS_VAR_MAP.borderRadius]:a(`borderRadius.${i}`)},...r&&{[n.BUTTON_CSS_VAR_MAP.borderWidth]:a(`borderWidth.${r}`)}}}function C(e,t){const{spacingHorizontal:o,spacingVertical:i,gap:r,textVariant:a,iconSize:s}=e;return{[n.BUTTON_CSS_VAR_MAP.padding]:`${t(`spacing[${i}]`)} ${t(`spacing[${o}]`)}`,[n.BUTTON_CSS_VAR_MAP.columnGap]:t(`spacing[${r}]`),[n.BUTTON_CSS_VAR_MAP.fontFamily]:t(`typography.fontFamily.${a}`),[n.BUTTON_CSS_VAR_MAP.fontWeight]:t(`typography.fontWeight.${a}`),[n.BUTTON_CSS_VAR_MAP.fontSize]:t(`typography.fontSize.${a}`),[n.BUTTON_CSS_VAR_MAP.lineHeight]:t(`typography.lineHeight.${a}`),[n.BUTTON_CSS_VAR_MAP.textTransform]:t(`typography.textTransform.${a}`),[n.BUTTON_CSS_VAR_MAP.iconSize]:t(`sizing.icon.${s}`)}}function g(e,t){const o=e.palette[e.defaults.palette][e.defaults.variant],r=e.size[e.defaults.size],s=o.base.scale,l=o.effect.hover.scale.value,d=o.effect.pressed.scale.value,u={...T(o.base,t),...C(r,t),[n.BUTTON_CSS_VAR_MAP.effects.scale.rest]:A({scale:s}),[n.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:l}),[n.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:d})},_={borderRadius:S(n.BUTTON_CSS_VAR_MAP,"borderRadius",u),boxShadow:`inset 0 0 0 ${S(n.BUTTON_CSS_VAR_MAP,"borderWidth",u)} ${S(n.BUTTON_CSS_VAR_MAP,"borderColor",u)}`,color:S(n.BUTTON_CSS_VAR_MAP,"color",u),backgroundColor:S(n.BUTTON_CSS_VAR_MAP,"backgroundColor",u),padding:S(n.BUTTON_CSS_VAR_MAP,"padding",u),fontFamily:S(n.BUTTON_CSS_VAR_MAP,"fontFamily",u),fontWeight:S(n.BUTTON_CSS_VAR_MAP,"fontWeight",u),fontSize:S(n.BUTTON_CSS_VAR_MAP,"fontSize",u),lineHeight:S(n.BUTTON_CSS_VAR_MAP,"lineHeight",u),textTransform:S(n.BUTTON_CSS_VAR_MAP,"textTransform",u),outline:"none",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",...u,transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"220ms"},c=T(o.state.hover,t),f=T(o.state.pressed,t),g={cursor:"not-allowed",opacity:"0.2",[n.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:"none"}),[n.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:"none"})},p={outlineOffset:"2px",outlineWidth:"2px",outlineColor:t("colors.accent"),outlineStyle:"solid"},h={".uds-button":_,".uds-button .uds-button-icon":{width:S(n.BUTTON_CSS_VAR_MAP,"iconSize",u),height:S(n.BUTTON_CSS_VAR_MAP,"iconSize",u)},".uds-button .uds-button-spacer":{height:S(n.BUTTON_CSS_VAR_MAP,"iconSize",u)},[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.hover}`]:c,[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.pressed}`]:f,[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.disabled}`]:g,".disabled .uds-button":g,[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.focused}`]:p,".focused .uds-button":p,".uds-ring":{outline:"none"},[`.uds-ring${n.PSEUDO_STYLE_SELECTOR_MAP.focused}`]:p,".focused .uds-ring":p},E={".hover":{".uds-button":c},".pressed":{".uds-button":f}};for(const[o,n]of i.entries(e.size))h[`.uds-button-${o}`]=C(n,t);function O(o,{palette:i,variant:r}){const a=e.palette[i][r],s=a.base,l=a.state,d=a.effect,u={rest:{...T(s,t)},restScale:{[n.BUTTON_CSS_VAR_MAP.effects.scale.rest]:A({scale:s.scale}),[n.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:d.hover.scale.value}),[n.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:d.pressed.scale.value})},hover:T(l.hover,t),pressed:T(l.pressed,t)};h[o]=u.rest,h[`${o}${n.PSEUDO_STYLE_SELECTOR_MAP.notDisabled}`]=u.restScale,h[`${o}${n.PSEUDO_STYLE_SELECTOR_MAP.hover}`]=u.hover,h[`${o}${n.PSEUDO_STYLE_SELECTOR_MAP.pressed}`]=u.pressed,E[".hover"][o]=u.hover,E[".pressed"][o]=u.pressed}for(const t of a.buttonPalettes){O(`.uds-button-${t}`,{palette:t,variant:e.defaults.variant});for(const o of a.buttonVariants)O(`.uds-button-${t}.uds-button-${o}`,{palette:t,variant:o}),t===e.defaults.palette&&O(`.uds-button-${o}`,{palette:t,variant:o})}return{...h,...E}}var p="44px";function h(e,t){const{spacing:o,iconSize:i}=e;return{[n.ICON_BUTTON_CSS_VAR_MAP.padding]:t(`spacing[${o}]`),[n.ICON_BUTTON_CSS_VAR_MAP.iconSize]:t(`sizing.icon.${i}`)}}function E(e,t){const o=h(e.size[e.defaults.size],t),r={".uds-icon-button":{display:"inline-flex",alignItems:"center",...{padding:S(n.ICON_BUTTON_CSS_VAR_MAP,"padding",o)}},".uds-icon-button .uds-button-icon":{width:S(n.ICON_BUTTON_CSS_VAR_MAP,"iconSize",o),height:S(n.ICON_BUTTON_CSS_VAR_MAP,"iconSize",o)}};for(const[o,n]of i.entries(e.size))r[`.uds-icon-button-${o}`]=h(n,t);return r}var O={display1:"6xl",display2:"5xl",display3:"4xl",title1:"3xl",title2:"2xl",title3:"xl",title4:"lg",headline1:"base",body1:"base",label1:"sm",label2:"sm",caption1:"xs",caption2:"xs"},M={fontSize:O,lineHeight:O,borderRadius:{xs:"sm",sm:"DEFAULT",md:"md",lg:"lg",xl:"xl"},borderWidth:{thin:"DEFAULT",medium:"2",thick:"4"}};function b(e){return e.endsWith("rem")?16*parseFloat(e):parseFloat(e)}var R={...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE],fontSize:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontSize,...i.mapValues(M.fontSize,(e=>b(_.default.fontSize[e][0])))},lineHeight:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontSize,...i.mapValues(M.lineHeight,(e=>b(_.default.fontSize[e][1].lineHeight))),display1:b(_.default.fontSize[M.fontSize.display1][0]),display2:b(_.default.fontSize[M.fontSize.display2][0])},fontWeight:i.mapValues(o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontWeight,(()=>"regular")),borderRadius:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].borderRadius,...i.mapValues(M.borderRadius,(e=>b(_.default.borderRadius[e])))},borderWidth:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].borderWidth,...i.mapValues(M.borderWidth,(e=>b(_.default.borderWidth[e])))}};function m(e){return{...o.defaultTokensConfig.scaleMode[e],fontWeight:R.fontWeight,fontSize:i.mapValues(R.fontSize,((t,o)=>t+a.fontSizeRamp[e][o])),lineHeight:i.mapValues(R.lineHeight,((t,o)=>t+a.lineHeightRamp[e][o])),borderRadius:i.mapValues(R.borderRadius,((t,o)=>t+a.borderRadiusRamp[e][o])),borderWidth:i.mapValues(R.borderWidth,((t,o)=>t+a.borderWidthRamp[e][o]))}}var L={...o.defaultTokensConfig,scaleMode:{xSmall:m("xSmall"),small:m("small"),medium:m("medium"),large:m("large"),xLarge:m("xLarge"),xxLarge:m("xxLarge"),xxxLarge:m("xxxLarge")}};var P=u.default.withOptions((function({config:i=o.defaultTokensConfig,disableFontFaceDeclarations:r=!1}){return function({addBase:a,matchUtilities:s,addComponents:l,theme:d}){const u=e.parseTokens(i),_=Object.values(i.font);if(!1===r&&t.addFontFaceDeclarations(_,a),function(e,o){o({":root":t.getFontStyles(e)})}(i.font,a),
2
- /*! © 2024 Yahoo, Inc. UDS v1.1.1 */
3
- function(e,i){const r=t.getColorModeStyles(e);i({":root":r[o.DEFAULT_COLOR_MODE],[`.${n.LIGHT_COLOR_MODE_CLASSNAME}`]:r.light,[`.${n.DARK_COLOR_MODE_CLASSNAME}`]:r.dark})}(u,a),function(e,i){const r=t.getScaleModeStyles(e);i({":root":r[o.DEFAULT_SCALE_MODE],[`.${n.XSMALL_SCALE_MODE_CLASSNAME}`]:r.xSmall,[`.${n.SMALL_SCALE_MODE_CLASSNAME}`]:r.small,[`.${n.MEDIUM_SCALE_MODE_CLASSNAME}`]:r.medium,[`.${n.LARGE_SCALE_MODE_CLASSNAME}`]:r.large,[`.${n.XLARGE_SCALE_MODE_CLASSNAME}`]:r.xLarge,[`.${n.XXLARGE_SCALE_MODE_CLASSNAME}`]:r.xxLarge,[`.${n.XXXLARGE_SCALE_MODE_CLASSNAME}`]:r.xxxLarge})}(u,a),i.button){const e=function(e,t){return g(e,t)}(i.button,d);l(e)}if(i.iconButton){const e=function(e,t){return E(e,t)}(i.iconButton,d);l(e)}i.motion&&function(e,o){o({":root":t.getMotionStyles(e)})}(i.motion,a);a({".uds-hit-target":{position:"relative"},".uds-hit-target::before":{"@media (hover: none)":{content:"''",position:"absolute",top:"50%",left:"50%",width:`max(${p}, 100%)`,height:`max(${p}, 100%)`,transform:"translate(-50%, -50%)"}}}),s({iconSize:e=>({width:e,height:e,fontSize:e,lineHeight:e})},{values:d("sizing.icon")}),s({avatarSize:e=>({width:e,height:e})},{values:d("sizing.avatar")}),s({case:e=>({"text-transform":e})},{values:d("typography.textTransform")}),s({"font-weight":e=>({"font-weight":e})},{values:d("typography.fontWeight")}),s({"font-size":e=>({"font-size":e})},{values:d("typography.fontSize")})}}),(function({config:t=o.defaultTokensConfig,safelist:r=[]}){const s=e.parseTokens(t),l=s.colorMode[o.DEFAULT_COLOR_MODE].tailwindConfig,d=s.scaleMode[o.DEFAULT_SCALE_MODE],u=i.mapValues(l.spectrum,((e,t)=>({...e,...a.tailwindColorsAsUds[t]}))),_=l.palette.core,c={...a.tailwindColorsAsUds,...u,...o.alwaysPalette,..._},S=l.palette.foreground,f=l.palette.background,A=l.palette.line,T=o.fromEntries(i.entries(M.fontSize).map((([e,t])=>[t,[`var(--${n.FONT_SIZE_PREFIX}-${e})`,{lineHeight:`var(--${n.LINE_HEIGHT_PREFIX}-${e})`}]]))),C=o.fromEntries(i.entries(M.borderRadius).map((([e,t])=>[t,`var(--${n.BORDER_RADIUS_PREFIX}-${e})`]))),g={...d.borderRadius.tailwindConfig,...C},p=o.fromEntries(i.entries(M.borderWidth).map((([e,t])=>[t,`var(--${n.BORDER_WIDTH_PREFIX}-${e})`]))),h={...d.borderWidth.tailwindConfig,...p};return{darkMode:["class",n.DARK_COLOR_MODE_CLASSNAME],safelist:[n.DARK_COLOR_MODE_CLASSNAME,...r],theme:{extend:{aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',invalid:'aria-invalid="true"'},data:{active:'active="true"',"active-item":'active-item="true"',autofill:'autofill="true"',backdrop:'backdrop="true"',enter:'enter="true"',leave:'leave="true"',"focus-visible":'focus-visible="true"'},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},borderRadius:g,borderWidth:h,outlineWidth:h,fontFamily:{...Object.fromEntries(a.fontAliases.map((e=>[e,`var(--${n.FONT_FAMILY_PREFIX}-${e})`]))),...Object.fromEntries(a.textVariants.map((e=>[e,`var(--${n.FONT_FAMILY_PREFIX}-${e})`])))},fontSize:T,lineHeight:d.lineHeight.tailwindConfig,colors:c,backgroundColor:f,textColor:S,borderColor:A,fill:f,caretColor:S,placeholderColor:S,textDecorationColor:S,divideColor:A,outlineColor:A,ringColor:A,ringOffsetColor:A,stroke:A,typography:{fontFamily:d.fontFamily.tailwindConfig,fontWeight:d.fontWeight.tailwindConfig,fontSize:d.fontSize.tailwindConfig,lineHeight:d.lineHeight.tailwindConfig,textTransform:d.textTransform.tailwindConfig},sizing:{icon:d.iconSizes.tailwindConfig,avatar:d.avatarSizes.tailwindConfig}}}}}));exports.defaultTailwindThemeAsUdsConfig=L,exports.getButtonColorForProperty=f,exports.getButtonStyles=g,exports.getIconButtonStyles=E,exports.getUDSContent=()=>[r.__require.resolve("@yahoo/uds"),r.__require.resolve("@yahoo/uds/client"),r.__require.resolve("@yahoo/uds/experimental")],exports.tailwindPlugin=P,exports.udsToTailwindMap=M;
1
+ "use strict";var e=require("../chunk-2ES5G2LV.cjs"),t=require("../chunk-U3UWTVPP.cjs"),o=require("../chunk-WC3BJLIW.cjs"),i=require("../chunk-LHJHFGKQ.cjs"),n=require("../chunk-XJMVPGBH.cjs"),r=require("../chunk-SFZOXSVA.cjs"),a=require("@yahoo/uds/fixtures"),s=require("tailwindcss/plugin.js"),l=require("tailwindcss/defaultTheme.js");function d(e){return e&&e.__esModule?e:{default:e}}var u=d(s),_=d(l);var c="sm";function S(e,t,o){const i=e[t],n=o?.[i];return n?`var(${i}, ${n})`:`var(${i})`}function f(e,{type:t,value:o},i){const n="color"===e?"textColor":e;if("palette"===t)return a.alwaysPaletteAliases.includes(o)?o:i(`${n}.${o}`);{const[e,t]=o.split("-");return i(`colors.${e}.${t}`)}}function A({scale:e}){return a.scaleEffectMap[e][c]}function T({backgroundColor:e,borderColor:t,color:o,borderRadius:i,borderWidth:r},a){return{[n.BUTTON_CSS_VAR_MAP.backgroundColor]:f("backgroundColor",e,a),[n.BUTTON_CSS_VAR_MAP.borderColor]:f("borderColor",t,a),[n.BUTTON_CSS_VAR_MAP.color]:f("color",o,a),...i&&{[n.BUTTON_CSS_VAR_MAP.borderRadius]:a(`borderRadius.${i}`)},...r&&{[n.BUTTON_CSS_VAR_MAP.borderWidth]:a(`borderWidth.${r}`)}}}function C(e,t){const{spacingHorizontal:o,spacingVertical:i,gap:r,textVariant:a,iconSize:s}=e;return{[n.BUTTON_CSS_VAR_MAP.padding]:`${t(`spacing[${i}]`)} ${t(`spacing[${o}]`)}`,[n.BUTTON_CSS_VAR_MAP.columnGap]:t(`spacing[${r}]`),[n.BUTTON_CSS_VAR_MAP.fontFamily]:t(`typography.fontFamily.${a}`),[n.BUTTON_CSS_VAR_MAP.fontWeight]:t(`typography.fontWeight.${a}`),[n.BUTTON_CSS_VAR_MAP.fontSize]:t(`typography.fontSize.${a}`),[n.BUTTON_CSS_VAR_MAP.lineHeight]:t(`typography.lineHeight.${a}`),[n.BUTTON_CSS_VAR_MAP.textTransform]:t(`typography.textTransform.${a}`),[n.BUTTON_CSS_VAR_MAP.iconSize]:t(`sizing.icon.${s}`)}}function g(e,t){const o=e.palette[e.defaults.palette][e.defaults.variant],r=e.size[e.defaults.size],s=o.base.scale,l=o.effect.hover.scale.value,d=o.effect.pressed.scale.value,u={...T(o.base,t),...C(r,t),[n.BUTTON_CSS_VAR_MAP.effects.scale.rest]:A({scale:s}),[n.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:l}),[n.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:d})},_={borderRadius:S(n.BUTTON_CSS_VAR_MAP,"borderRadius",u),boxShadow:`inset 0 0 0 ${S(n.BUTTON_CSS_VAR_MAP,"borderWidth",u)} ${S(n.BUTTON_CSS_VAR_MAP,"borderColor",u)}`,color:S(n.BUTTON_CSS_VAR_MAP,"color",u),backgroundColor:S(n.BUTTON_CSS_VAR_MAP,"backgroundColor",u),padding:S(n.BUTTON_CSS_VAR_MAP,"padding",u),fontFamily:S(n.BUTTON_CSS_VAR_MAP,"fontFamily",u),fontWeight:S(n.BUTTON_CSS_VAR_MAP,"fontWeight",u),fontSize:S(n.BUTTON_CSS_VAR_MAP,"fontSize",u),lineHeight:S(n.BUTTON_CSS_VAR_MAP,"lineHeight",u),textTransform:S(n.BUTTON_CSS_VAR_MAP,"textTransform",u),outline:"none",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",...u,transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"220ms"},c=T(o.state.hover,t),f=T(o.state.pressed,t),g={cursor:"not-allowed",opacity:"0.2",[n.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:"none"}),[n.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:"none"})},p={outlineOffset:"2px",outlineWidth:"2px",outlineColor:t("colors.accent"),outlineStyle:"solid"},h={".uds-button":_,".uds-button .uds-button-icon":{width:S(n.BUTTON_CSS_VAR_MAP,"iconSize",u),height:S(n.BUTTON_CSS_VAR_MAP,"iconSize",u)},".uds-button .uds-button-spacer":{height:S(n.BUTTON_CSS_VAR_MAP,"iconSize",u)},[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.hover}`]:c,[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.pressed}`]:f,[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.disabled}`]:g,".disabled .uds-button":g,[`.uds-button${n.PSEUDO_STYLE_SELECTOR_MAP.focused}`]:p,".focused .uds-button":p,".uds-ring":{outline:"none"},[`.uds-ring${n.PSEUDO_STYLE_SELECTOR_MAP.focused}`]:p,".focused .uds-ring":p},E={".hover":{".uds-button":c},".pressed":{".uds-button":f}};for(const[o,n]of i.entries(e.size))h[`.uds-button-${o}`]=C(n,t);function O(o,{palette:i,variant:r}){const a=e.palette[i][r],s=a.base,l=a.state,d=a.effect,u={rest:{...T(s,t)},restScale:{[n.BUTTON_CSS_VAR_MAP.effects.scale.rest]:A({scale:s.scale}),[n.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:d.hover.scale.value}),[n.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:d.pressed.scale.value})},hover:T(l.hover,t),pressed:T(l.pressed,t)};h[o]=u.rest,h[`${o}${n.PSEUDO_STYLE_SELECTOR_MAP.notDisabled}`]=u.restScale,h[`${o}${n.PSEUDO_STYLE_SELECTOR_MAP.hover}`]=u.hover,h[`${o}${n.PSEUDO_STYLE_SELECTOR_MAP.pressed}`]=u.pressed,E[".hover"][o]=u.hover,E[".pressed"][o]=u.pressed}for(const t of a.buttonPalettes){O(`.uds-button-${t}`,{palette:t,variant:e.defaults.variant});for(const o of a.buttonVariants)O(`.uds-button-${t}.uds-button-${o}`,{palette:t,variant:o}),t===e.defaults.palette&&O(`.uds-button-${o}`,{palette:t,variant:o})}return{...h,...E}}var p="44px";function h(e,t){const{spacing:o,iconSize:i}=e;return{[n.ICON_BUTTON_CSS_VAR_MAP.padding]:t(`spacing[${o}]`),[n.ICON_BUTTON_CSS_VAR_MAP.iconSize]:t(`sizing.icon.${i}`)}}function E(e,t){const o=h(e.size[e.defaults.size],t),r={".uds-icon-button":{display:"inline-flex",alignItems:"center",...{padding:S(n.ICON_BUTTON_CSS_VAR_MAP,"padding",o)}},".uds-icon-button .uds-button-icon":{width:S(n.ICON_BUTTON_CSS_VAR_MAP,"iconSize",o),height:S(n.ICON_BUTTON_CSS_VAR_MAP,"iconSize",o)}};for(const[o,n]of i.entries(e.size))r[`.uds-icon-button-${o}`]=h(n,t);return r}var O={display1:"6xl",display2:"5xl",display3:"4xl",title1:"3xl",title2:"2xl",title3:"xl",title4:"lg",headline1:"base",body1:"base",label1:"sm",label2:"sm",caption1:"xs",caption2:"xs"},M={fontSize:O,lineHeight:O,borderRadius:{xs:"sm",sm:"DEFAULT",md:"md",lg:"lg",xl:"xl"},borderWidth:{thin:"DEFAULT",medium:"2",thick:"4"}};function b(e){return e.endsWith("rem")?16*parseFloat(e):parseFloat(e)}var R={...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE],fontSize:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontSize,...i.mapValues(M.fontSize,(e=>b(_.default.fontSize[e][0])))},lineHeight:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontSize,...i.mapValues(M.lineHeight,(e=>b(_.default.fontSize[e][1].lineHeight))),display1:b(_.default.fontSize[M.fontSize.display1][0]),display2:b(_.default.fontSize[M.fontSize.display2][0])},fontWeight:i.mapValues(o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontWeight,(()=>"regular")),borderRadius:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].borderRadius,...i.mapValues(M.borderRadius,(e=>b(_.default.borderRadius[e])))},borderWidth:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].borderWidth,...i.mapValues(M.borderWidth,(e=>b(_.default.borderWidth[e])))}};function L(e){return{...o.defaultTokensConfig.scaleMode[e],fontWeight:R.fontWeight,fontSize:i.mapValues(R.fontSize,((t,o)=>t+a.fontSizeRamp[e][o])),lineHeight:i.mapValues(R.lineHeight,((t,o)=>t+a.lineHeightRamp[e][o])),borderRadius:i.mapValues(R.borderRadius,((t,o)=>t+a.borderRadiusRamp[e][o])),borderWidth:i.mapValues(R.borderWidth,((t,o)=>t+a.borderWidthRamp[e][o]))}}var m={...o.defaultTokensConfig,scaleMode:{xSmall:L("xSmall"),small:L("small"),medium:L("medium"),large:L("large"),xLarge:L("xLarge"),xxLarge:L("xxLarge"),xxxLarge:L("xxxLarge")}};var P=u.default.withOptions((function({config:i=o.defaultTokensConfig,disableFontFaceDeclarations:r=!1}){return function({addBase:a,matchUtilities:s,addComponents:l,theme:d}){const u=e.parseTokens(i),_=Object.values(i.font);if(!1===r&&t.addFontFaceDeclarations(_,a),function(e,o){o({":root":t.getFontStyles(e)})}(i.font,a),
2
+ /*! © 2024 Yahoo, Inc. UDS v1.1.2 */
3
+ function(e,i){const r=t.getColorModeStyles(e);i({":root":r[o.DEFAULT_COLOR_MODE],[`.${n.LIGHT_COLOR_MODE_CLASSNAME}`]:r.light,[`.${n.DARK_COLOR_MODE_CLASSNAME}`]:r.dark})}(u,a),function(e,i){const r=t.getScaleModeStyles(e);i({":root":r[o.DEFAULT_SCALE_MODE],[`.${n.XSMALL_SCALE_MODE_CLASSNAME}`]:r.xSmall,[`.${n.SMALL_SCALE_MODE_CLASSNAME}`]:r.small,[`.${n.MEDIUM_SCALE_MODE_CLASSNAME}`]:r.medium,[`.${n.LARGE_SCALE_MODE_CLASSNAME}`]:r.large,[`.${n.XLARGE_SCALE_MODE_CLASSNAME}`]:r.xLarge,[`.${n.XXLARGE_SCALE_MODE_CLASSNAME}`]:r.xxLarge,[`.${n.XXXLARGE_SCALE_MODE_CLASSNAME}`]:r.xxxLarge})}(u,a),i.button){const e=function(e,t){return g(e,t)}(i.button,d);l(e)}if(i.iconButton){const e=function(e,t){return E(e,t)}(i.iconButton,d);l(e)}i.motion&&function(e,o){o({":root":t.getMotionStyles(e)})}(i.motion,a);a({".uds-hit-target":{position:"relative"},".uds-hit-target::before":{"@media (hover: none)":{content:"''",position:"absolute",top:"50%",left:"50%",width:`max(${p}, 100%)`,height:`max(${p}, 100%)`,transform:"translate(-50%, -50%)"}}}),s({iconSize:e=>({width:e,height:e,fontSize:e,lineHeight:e})},{values:d("sizing.icon")}),s({avatarSize:e=>({width:e,height:e})},{values:d("sizing.avatar")}),s({case:e=>({"text-transform":e})},{values:d("typography.textTransform")}),s({"font-weight":e=>({"font-weight":e})},{values:d("typography.fontWeight")}),s({"font-size":e=>({"font-size":e})},{values:d("typography.fontSize")})}}),(function({config:t=o.defaultTokensConfig,safelist:r=[]}){const s=e.parseTokens(t),l=s.colorMode[o.DEFAULT_COLOR_MODE].tailwindConfig,d=s.scaleMode[o.DEFAULT_SCALE_MODE],u=i.mapValues(l.spectrum,((e,t)=>({...e,...a.tailwindColorsAsUds[t]}))),_=l.palette.core,c={...a.tailwindColorsAsUds,...u,...o.alwaysPalette,..._},S=l.palette.foreground,f=l.palette.background,A=l.palette.line,T=o.fromEntries(i.entries(M.fontSize).map((([e,t])=>[t,[`var(--${n.FONT_SIZE_PREFIX}-${e})`,{lineHeight:`var(--${n.LINE_HEIGHT_PREFIX}-${e})`}]]))),C=o.fromEntries(i.entries(M.borderRadius).map((([e,t])=>[t,`var(--${n.BORDER_RADIUS_PREFIX}-${e})`]))),g={...d.borderRadius.tailwindConfig,...C},p=o.fromEntries(i.entries(M.borderWidth).map((([e,t])=>[t,`var(--${n.BORDER_WIDTH_PREFIX}-${e})`]))),h={...d.borderWidth.tailwindConfig,...p};return{darkMode:["class",n.DARK_COLOR_MODE_CLASSNAME],safelist:[n.DARK_COLOR_MODE_CLASSNAME,...r],theme:{extend:{aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',invalid:'aria-invalid="true"'},data:{active:'active="true"',"active-item":'active-item="true"',autofill:'autofill="true"',backdrop:'backdrop="true"',enter:'enter="true"',leave:'leave="true"',"focus-visible":'focus-visible="true"'},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},borderRadius:g,borderWidth:h,outlineWidth:h,fontFamily:{...Object.fromEntries(a.fontAliases.map((e=>[e,`var(--${n.FONT_FAMILY_PREFIX}-${e})`]))),...Object.fromEntries(a.textVariants.map((e=>[e,`var(--${n.FONT_FAMILY_PREFIX}-${e})`])))},fontSize:T,lineHeight:d.lineHeight.tailwindConfig,colors:c,backgroundColor:f,textColor:S,borderColor:A,fill:f,caretColor:S,placeholderColor:S,textDecorationColor:S,divideColor:A,outlineColor:A,ringColor:A,ringOffsetColor:A,stroke:A,typography:{fontFamily:d.fontFamily.tailwindConfig,fontWeight:d.fontWeight.tailwindConfig,fontSize:d.fontSize.tailwindConfig,lineHeight:d.lineHeight.tailwindConfig,textTransform:d.textTransform.tailwindConfig},sizing:{icon:d.iconSizes.tailwindConfig,avatar:d.avatarSizes.tailwindConfig}}}}}));exports.defaultTailwindThemeAsUdsConfig=m,exports.getButtonColorForProperty=f,exports.getButtonStyles=g,exports.getIconButtonStyles=E,exports.getUDSContent=()=>[r.__require.resolve("@yahoo/uds"),r.__require.resolve("@yahoo/uds/client"),r.__require.resolve("@yahoo/uds/experimental")],exports.tailwindPlugin=P,exports.udsToTailwindMap=M;
@@ -1,3 +1,3 @@
1
- import{parseTokens as e}from"../chunk-VYFYXMA5.js";import{addFontFaceDeclarations as t,getColorModeStyles as o,getFontStyles as i,getMotionStyles as n,getScaleModeStyles as r}from"../chunk-G56DRBBO.js";import{defaultTokensConfig as a,DEFAULT_SCALE_MODE as s,fromEntries as l,DEFAULT_COLOR_MODE as d,alwaysPalette as c}from"../chunk-BJZSTZKO.js";import{mapValues as u,entries as f}from"../chunk-WTM3H6RK.js";import{FONT_SIZE_PREFIX as g,LINE_HEIGHT_PREFIX as h,BORDER_RADIUS_PREFIX as p,BORDER_WIDTH_PREFIX as b,DARK_COLOR_MODE_CLASSNAME as m,LIGHT_COLOR_MODE_CLASSNAME as v,XSMALL_SCALE_MODE_CLASSNAME as $,SMALL_SCALE_MODE_CLASSNAME as x,MEDIUM_SCALE_MODE_CLASSNAME as z,LARGE_SCALE_MODE_CLASSNAME as S,XLARGE_SCALE_MODE_CLASSNAME as y,XXLARGE_SCALE_MODE_CLASSNAME as C,XXXLARGE_SCALE_MODE_CLASSNAME as W,BUTTON_CSS_VAR_MAP as w,PSEUDO_STYLE_SELECTOR_MAP as k,ICON_BUTTON_CSS_VAR_MAP as H,FONT_FAMILY_PREFIX as R}from"../chunk-HDTC4SXA.js";import{__require as F}from"../chunk-V4IAOCQT.js";import{tailwindColorsAsUds as T,alwaysPaletteAliases as M,buttonPalettes as L,buttonVariants as j,fontSizeRamp as O,lineHeightRamp as D,borderRadiusRamp as B,borderWidthRamp as A,fontAliases as E,textVariants as V,scaleEffectMap as I}from"@yahoo/uds/fixtures";import U from"tailwindcss/plugin";import G from"tailwindcss/defaultTheme";var K="sm";function X(e,t,o){const i=e[t],n=o?.[i];return n?`var(${i}, ${n})`:`var(${i})`}function Y(e,{type:t,value:o},i){const n="color"===e?"textColor":e;if("palette"===t)return M.includes(o)?o:i(`${n}.${o}`);{const[e,t]=o.split("-");return i(`colors.${e}.${t}`)}}function Z({scale:e}){return I[e][K]}function J({backgroundColor:e,borderColor:t,color:o,borderRadius:i,borderWidth:n},r){return{[w.backgroundColor]:Y("backgroundColor",e,r),[w.borderColor]:Y("borderColor",t,r),[w.color]:Y("color",o,r),...i&&{[w.borderRadius]:r(`borderRadius.${i}`)},...n&&{[w.borderWidth]:r(`borderWidth.${n}`)}}}function P(e,t){const{spacingHorizontal:o,spacingVertical:i,gap:n,textVariant:r,iconSize:a}=e;return{[w.padding]:`${t(`spacing[${i}]`)} ${t(`spacing[${o}]`)}`,[w.columnGap]:t(`spacing[${n}]`),[w.fontFamily]:t(`typography.fontFamily.${r}`),[w.fontWeight]:t(`typography.fontWeight.${r}`),[w.fontSize]:t(`typography.fontSize.${r}`),[w.lineHeight]:t(`typography.lineHeight.${r}`),[w.textTransform]:t(`typography.textTransform.${r}`),[w.iconSize]:t(`sizing.icon.${a}`)}}function Q(e,t){const o=e.palette[e.defaults.palette][e.defaults.variant],i=e.size[e.defaults.size],n=o.base.scale,r=o.effect.hover.scale.value,a=o.effect.pressed.scale.value,s={...J(o.base,t),...P(i,t),[w.effects.scale.rest]:Z({scale:n}),[w.effects.scale.hover]:Z({scale:r}),[w.effects.scale.pressed]:Z({scale:a})},l={borderRadius:X(w,"borderRadius",s),boxShadow:`inset 0 0 0 ${X(w,"borderWidth",s)} ${X(w,"borderColor",s)}`,color:X(w,"color",s),backgroundColor:X(w,"backgroundColor",s),padding:X(w,"padding",s),fontFamily:X(w,"fontFamily",s),fontWeight:X(w,"fontWeight",s),fontSize:X(w,"fontSize",s),lineHeight:X(w,"lineHeight",s),textTransform:X(w,"textTransform",s),outline:"none",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",...s,transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"220ms"},d=J(o.state.hover,t),c=J(o.state.pressed,t),u={cursor:"not-allowed",opacity:"0.2",[w.effects.scale.hover]:Z({scale:"none"}),[w.effects.scale.pressed]:Z({scale:"none"})},g={outlineOffset:"2px",outlineWidth:"2px",outlineColor:t("colors.accent"),outlineStyle:"solid"},h={".uds-button":l,".uds-button .uds-button-icon":{width:X(w,"iconSize",s),height:X(w,"iconSize",s)},".uds-button .uds-button-spacer":{height:X(w,"iconSize",s)},[`.uds-button${k.hover}`]:d,[`.uds-button${k.pressed}`]:c,[`.uds-button${k.disabled}`]:u,".disabled .uds-button":u,[`.uds-button${k.focused}`]:g,".focused .uds-button":g,".uds-ring":{outline:"none"},[`.uds-ring${k.focused}`]:g,".focused .uds-ring":g},p={".hover":{".uds-button":d},".pressed":{".uds-button":c}};for(const[o,i]of f(e.size))h[`.uds-button-${o}`]=P(i,t);function b(o,{palette:i,variant:n}){const r=e.palette[i][n],a=r.base,s=r.state,l=r.effect,d={rest:{...J(a,t)},restScale:{[w.effects.scale.rest]:Z({scale:a.scale}),[w.effects.scale.hover]:Z({scale:l.hover.scale.value}),[w.effects.scale.pressed]:Z({scale:l.pressed.scale.value})},hover:J(s.hover,t),pressed:J(s.pressed,t)};h[o]=d.rest,h[`${o}${k.notDisabled}`]=d.restScale,h[`${o}${k.hover}`]=d.hover,h[`${o}${k.pressed}`]=d.pressed,p[".hover"][o]=d.hover,p[".pressed"][o]=d.pressed}for(const t of L){b(`.uds-button-${t}`,{palette:t,variant:e.defaults.variant});for(const o of j)b(`.uds-button-${t}.uds-button-${o}`,{palette:t,variant:o}),t===e.defaults.palette&&b(`.uds-button-${o}`,{palette:t,variant:o})}return{...h,...p}}var q="44px";function N(e,t){const{spacing:o,iconSize:i}=e;return{[H.padding]:t(`spacing[${o}]`),[H.iconSize]:t(`sizing.icon.${i}`)}}function _(e,t){const o=N(e.size[e.defaults.size],t),i={".uds-icon-button":{display:"inline-flex",alignItems:"center",...{padding:X(H,"padding",o)}},".uds-icon-button .uds-button-icon":{width:X(H,"iconSize",o),height:X(H,"iconSize",o)}};for(const[o,n]of f(e.size))i[`.uds-icon-button-${o}`]=N(n,t);return i}var ee={display1:"6xl",display2:"5xl",display3:"4xl",title1:"3xl",title2:"2xl",title3:"xl",title4:"lg",headline1:"base",body1:"base",label1:"sm",label2:"sm",caption1:"xs",caption2:"xs"},te={fontSize:ee,lineHeight:ee,borderRadius:{xs:"sm",sm:"DEFAULT",md:"md",lg:"lg",xl:"xl"},borderWidth:{thin:"DEFAULT",medium:"2",thick:"4"}};function oe(e){return e.endsWith("rem")?16*parseFloat(e):parseFloat(e)}var ie={...a.scaleMode[s],fontSize:{...a.scaleMode[s].fontSize,...u(te.fontSize,(e=>oe(G.fontSize[e][0])))},lineHeight:{...a.scaleMode[s].fontSize,...u(te.lineHeight,(e=>oe(G.fontSize[e][1].lineHeight))),display1:oe(G.fontSize[te.fontSize.display1][0]),display2:oe(G.fontSize[te.fontSize.display2][0])},fontWeight:u(a.scaleMode[s].fontWeight,(()=>"regular")),borderRadius:{...a.scaleMode[s].borderRadius,...u(te.borderRadius,(e=>oe(G.borderRadius[e])))},borderWidth:{...a.scaleMode[s].borderWidth,...u(te.borderWidth,(e=>oe(G.borderWidth[e])))}};function ne(e){return{...a.scaleMode[e],fontWeight:ie.fontWeight,fontSize:u(ie.fontSize,((t,o)=>t+O[e][o])),lineHeight:u(ie.lineHeight,((t,o)=>t+D[e][o])),borderRadius:u(ie.borderRadius,((t,o)=>t+B[e][o])),borderWidth:u(ie.borderWidth,((t,o)=>t+A[e][o]))}}var re={...a,scaleMode:{xSmall:ne("xSmall"),small:ne("small"),medium:ne("medium"),large:ne("large"),xLarge:ne("xLarge"),xxLarge:ne("xxLarge"),xxxLarge:ne("xxxLarge")}};var ae=U.withOptions((function({config:l=a,disableFontFaceDeclarations:c=!1}){return function({addBase:a,matchUtilities:u,addComponents:f,theme:g}){const h=e(l),p=Object.values(l.font);if(!1===c&&t(p,a),function(e,t){t({":root":i(e)})}(l.font,a),
2
- /*! © 2024 Yahoo, Inc. UDS v1.1.1 */
3
- function(e,t){const i=o(e);t({":root":i[d],[`.${v}`]:i.light,[`.${m}`]:i.dark})}(h,a),function(e,t){const o=r(e);t({":root":o[s],[`.${$}`]:o.xSmall,[`.${x}`]:o.small,[`.${z}`]:o.medium,[`.${S}`]:o.large,[`.${y}`]:o.xLarge,[`.${C}`]:o.xxLarge,[`.${W}`]:o.xxxLarge})}(h,a),l.button){const e=function(e,t){return Q(e,t)}(l.button,g);f(e)}if(l.iconButton){const e=function(e,t){return _(e,t)}(l.iconButton,g);f(e)}l.motion&&function(e,t){t({":root":n(e)})}(l.motion,a);a({".uds-hit-target":{position:"relative"},".uds-hit-target::before":{"@media (hover: none)":{content:"''",position:"absolute",top:"50%",left:"50%",width:`max(${q}, 100%)`,height:`max(${q}, 100%)`,transform:"translate(-50%, -50%)"}}}),u({iconSize:e=>({width:e,height:e,fontSize:e,lineHeight:e})},{values:g("sizing.icon")}),u({avatarSize:e=>({width:e,height:e})},{values:g("sizing.avatar")}),u({case:e=>({"text-transform":e})},{values:g("typography.textTransform")}),u({"font-weight":e=>({"font-weight":e})},{values:g("typography.fontWeight")}),u({"font-size":e=>({"font-size":e})},{values:g("typography.fontSize")})}}),(function({config:t=a,safelist:o=[]}){const i=e(t),n=i.colorMode[d].tailwindConfig,r=i.scaleMode[s],v=u(n.spectrum,((e,t)=>({...e,...T[t]}))),$=n.palette.core,x={...T,...v,...c,...$},z=n.palette.foreground,S=n.palette.background,y=n.palette.line,C=l(f(te.fontSize).map((([e,t])=>[t,[`var(--${g}-${e})`,{lineHeight:`var(--${h}-${e})`}]]))),W=l(f(te.borderRadius).map((([e,t])=>[t,`var(--${p}-${e})`]))),w={...r.borderRadius.tailwindConfig,...W},k=l(f(te.borderWidth).map((([e,t])=>[t,`var(--${b}-${e})`]))),H={...r.borderWidth.tailwindConfig,...k};return{darkMode:["class",m],safelist:[m,...o],theme:{extend:{aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',invalid:'aria-invalid="true"'},data:{active:'active="true"',"active-item":'active-item="true"',autofill:'autofill="true"',backdrop:'backdrop="true"',enter:'enter="true"',leave:'leave="true"',"focus-visible":'focus-visible="true"'},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},borderRadius:w,borderWidth:H,outlineWidth:H,fontFamily:{...Object.fromEntries(E.map((e=>[e,`var(--${R}-${e})`]))),...Object.fromEntries(V.map((e=>[e,`var(--${R}-${e})`])))},fontSize:C,lineHeight:r.lineHeight.tailwindConfig,colors:x,backgroundColor:S,textColor:z,borderColor:y,fill:S,caretColor:z,placeholderColor:z,textDecorationColor:z,divideColor:y,outlineColor:y,ringColor:y,ringOffsetColor:y,stroke:y,typography:{fontFamily:r.fontFamily.tailwindConfig,fontWeight:r.fontWeight.tailwindConfig,fontSize:r.fontSize.tailwindConfig,lineHeight:r.lineHeight.tailwindConfig,textTransform:r.textTransform.tailwindConfig},sizing:{icon:r.iconSizes.tailwindConfig,avatar:r.avatarSizes.tailwindConfig}}}}})),se=()=>[F.resolve("@yahoo/uds"),F.resolve("@yahoo/uds/client"),F.resolve("@yahoo/uds/experimental")];export{re as defaultTailwindThemeAsUdsConfig,Y as getButtonColorForProperty,Q as getButtonStyles,_ as getIconButtonStyles,se as getUDSContent,ae as tailwindPlugin,te as udsToTailwindMap};
1
+ import{parseTokens as e}from"../chunk-6V27ERSN.js";import{addFontFaceDeclarations as t,getColorModeStyles as o,getFontStyles as i,getMotionStyles as n,getScaleModeStyles as r}from"../chunk-UZUZHTZX.js";import{defaultTokensConfig as a,DEFAULT_SCALE_MODE as s,fromEntries as l,DEFAULT_COLOR_MODE as d,alwaysPalette as c}from"../chunk-GL6YFZ6M.js";import{mapValues as u,entries as f}from"../chunk-RDB36LP5.js";import{FONT_SIZE_PREFIX as g,LINE_HEIGHT_PREFIX as h,BORDER_RADIUS_PREFIX as p,BORDER_WIDTH_PREFIX as b,DARK_COLOR_MODE_CLASSNAME as m,LIGHT_COLOR_MODE_CLASSNAME as v,XSMALL_SCALE_MODE_CLASSNAME as $,SMALL_SCALE_MODE_CLASSNAME as x,MEDIUM_SCALE_MODE_CLASSNAME as z,LARGE_SCALE_MODE_CLASSNAME as S,XLARGE_SCALE_MODE_CLASSNAME as y,XXLARGE_SCALE_MODE_CLASSNAME as C,XXXLARGE_SCALE_MODE_CLASSNAME as W,BUTTON_CSS_VAR_MAP as w,PSEUDO_STYLE_SELECTOR_MAP as k,ICON_BUTTON_CSS_VAR_MAP as H,FONT_FAMILY_PREFIX as R}from"../chunk-2XDBRKZ2.js";import{__require as F}from"../chunk-F5XE4336.js";import{tailwindColorsAsUds as L,alwaysPaletteAliases as M,buttonPalettes as T,buttonVariants as j,fontSizeRamp as D,lineHeightRamp as E,borderRadiusRamp as O,borderWidthRamp as B,fontAliases as U,textVariants as Z,scaleEffectMap as V}from"@yahoo/uds/fixtures";import X from"tailwindcss/plugin";import A from"tailwindcss/defaultTheme";var G="sm";function I(e,t,o){const i=e[t],n=o?.[i];return n?`var(${i}, ${n})`:`var(${i})`}function P(e,{type:t,value:o},i){const n="color"===e?"textColor":e;if("palette"===t)return M.includes(o)?o:i(`${n}.${o}`);{const[e,t]=o.split("-");return i(`colors.${e}.${t}`)}}function K({scale:e}){return V[e][G]}function N({backgroundColor:e,borderColor:t,color:o,borderRadius:i,borderWidth:n},r){return{[w.backgroundColor]:P("backgroundColor",e,r),[w.borderColor]:P("borderColor",t,r),[w.color]:P("color",o,r),...i&&{[w.borderRadius]:r(`borderRadius.${i}`)},...n&&{[w.borderWidth]:r(`borderWidth.${n}`)}}}function Y(e,t){const{spacingHorizontal:o,spacingVertical:i,gap:n,textVariant:r,iconSize:a}=e;return{[w.padding]:`${t(`spacing[${i}]`)} ${t(`spacing[${o}]`)}`,[w.columnGap]:t(`spacing[${n}]`),[w.fontFamily]:t(`typography.fontFamily.${r}`),[w.fontWeight]:t(`typography.fontWeight.${r}`),[w.fontSize]:t(`typography.fontSize.${r}`),[w.lineHeight]:t(`typography.lineHeight.${r}`),[w.textTransform]:t(`typography.textTransform.${r}`),[w.iconSize]:t(`sizing.icon.${a}`)}}function q(e,t){const o=e.palette[e.defaults.palette][e.defaults.variant],i=e.size[e.defaults.size],n=o.base.scale,r=o.effect.hover.scale.value,a=o.effect.pressed.scale.value,s={...N(o.base,t),...Y(i,t),[w.effects.scale.rest]:K({scale:n}),[w.effects.scale.hover]:K({scale:r}),[w.effects.scale.pressed]:K({scale:a})},l={borderRadius:I(w,"borderRadius",s),boxShadow:`inset 0 0 0 ${I(w,"borderWidth",s)} ${I(w,"borderColor",s)}`,color:I(w,"color",s),backgroundColor:I(w,"backgroundColor",s),padding:I(w,"padding",s),fontFamily:I(w,"fontFamily",s),fontWeight:I(w,"fontWeight",s),fontSize:I(w,"fontSize",s),lineHeight:I(w,"lineHeight",s),textTransform:I(w,"textTransform",s),outline:"none",display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",...s,transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"220ms"},d=N(o.state.hover,t),c=N(o.state.pressed,t),u={cursor:"not-allowed",opacity:"0.2",[w.effects.scale.hover]:K({scale:"none"}),[w.effects.scale.pressed]:K({scale:"none"})},g={outlineOffset:"2px",outlineWidth:"2px",outlineColor:t("colors.accent"),outlineStyle:"solid"},h={".uds-button":l,".uds-button .uds-button-icon":{width:I(w,"iconSize",s),height:I(w,"iconSize",s)},".uds-button .uds-button-spacer":{height:I(w,"iconSize",s)},[`.uds-button${k.hover}`]:d,[`.uds-button${k.pressed}`]:c,[`.uds-button${k.disabled}`]:u,".disabled .uds-button":u,[`.uds-button${k.focused}`]:g,".focused .uds-button":g,".uds-ring":{outline:"none"},[`.uds-ring${k.focused}`]:g,".focused .uds-ring":g},p={".hover":{".uds-button":d},".pressed":{".uds-button":c}};for(const[o,i]of f(e.size))h[`.uds-button-${o}`]=Y(i,t);function b(o,{palette:i,variant:n}){const r=e.palette[i][n],a=r.base,s=r.state,l=r.effect,d={rest:{...N(a,t)},restScale:{[w.effects.scale.rest]:K({scale:a.scale}),[w.effects.scale.hover]:K({scale:l.hover.scale.value}),[w.effects.scale.pressed]:K({scale:l.pressed.scale.value})},hover:N(s.hover,t),pressed:N(s.pressed,t)};h[o]=d.rest,h[`${o}${k.notDisabled}`]=d.restScale,h[`${o}${k.hover}`]=d.hover,h[`${o}${k.pressed}`]=d.pressed,p[".hover"][o]=d.hover,p[".pressed"][o]=d.pressed}for(const t of T){b(`.uds-button-${t}`,{palette:t,variant:e.defaults.variant});for(const o of j)b(`.uds-button-${t}.uds-button-${o}`,{palette:t,variant:o}),t===e.defaults.palette&&b(`.uds-button-${o}`,{palette:t,variant:o})}return{...h,...p}}var J="44px";function Q(e,t){const{spacing:o,iconSize:i}=e;return{[H.padding]:t(`spacing[${o}]`),[H.iconSize]:t(`sizing.icon.${i}`)}}function _(e,t){const o=Q(e.size[e.defaults.size],t),i={".uds-icon-button":{display:"inline-flex",alignItems:"center",...{padding:I(H,"padding",o)}},".uds-icon-button .uds-button-icon":{width:I(H,"iconSize",o),height:I(H,"iconSize",o)}};for(const[o,n]of f(e.size))i[`.uds-icon-button-${o}`]=Q(n,t);return i}var ee={display1:"6xl",display2:"5xl",display3:"4xl",title1:"3xl",title2:"2xl",title3:"xl",title4:"lg",headline1:"base",body1:"base",label1:"sm",label2:"sm",caption1:"xs",caption2:"xs"},te={fontSize:ee,lineHeight:ee,borderRadius:{xs:"sm",sm:"DEFAULT",md:"md",lg:"lg",xl:"xl"},borderWidth:{thin:"DEFAULT",medium:"2",thick:"4"}};function oe(e){return e.endsWith("rem")?16*parseFloat(e):parseFloat(e)}var ie={...a.scaleMode[s],fontSize:{...a.scaleMode[s].fontSize,...u(te.fontSize,(e=>oe(A.fontSize[e][0])))},lineHeight:{...a.scaleMode[s].fontSize,...u(te.lineHeight,(e=>oe(A.fontSize[e][1].lineHeight))),display1:oe(A.fontSize[te.fontSize.display1][0]),display2:oe(A.fontSize[te.fontSize.display2][0])},fontWeight:u(a.scaleMode[s].fontWeight,(()=>"regular")),borderRadius:{...a.scaleMode[s].borderRadius,...u(te.borderRadius,(e=>oe(A.borderRadius[e])))},borderWidth:{...a.scaleMode[s].borderWidth,...u(te.borderWidth,(e=>oe(A.borderWidth[e])))}};function ne(e){return{...a.scaleMode[e],fontWeight:ie.fontWeight,fontSize:u(ie.fontSize,((t,o)=>t+D[e][o])),lineHeight:u(ie.lineHeight,((t,o)=>t+E[e][o])),borderRadius:u(ie.borderRadius,((t,o)=>t+O[e][o])),borderWidth:u(ie.borderWidth,((t,o)=>t+B[e][o]))}}var re={...a,scaleMode:{xSmall:ne("xSmall"),small:ne("small"),medium:ne("medium"),large:ne("large"),xLarge:ne("xLarge"),xxLarge:ne("xxLarge"),xxxLarge:ne("xxxLarge")}};var ae=X.withOptions((function({config:l=a,disableFontFaceDeclarations:c=!1}){return function({addBase:a,matchUtilities:u,addComponents:f,theme:g}){const h=e(l),p=Object.values(l.font);if(!1===c&&t(p,a),function(e,t){t({":root":i(e)})}(l.font,a),
2
+ /*! © 2024 Yahoo, Inc. UDS v1.1.2 */
3
+ function(e,t){const i=o(e);t({":root":i[d],[`.${v}`]:i.light,[`.${m}`]:i.dark})}(h,a),function(e,t){const o=r(e);t({":root":o[s],[`.${$}`]:o.xSmall,[`.${x}`]:o.small,[`.${z}`]:o.medium,[`.${S}`]:o.large,[`.${y}`]:o.xLarge,[`.${C}`]:o.xxLarge,[`.${W}`]:o.xxxLarge})}(h,a),l.button){const e=function(e,t){return q(e,t)}(l.button,g);f(e)}if(l.iconButton){const e=function(e,t){return _(e,t)}(l.iconButton,g);f(e)}l.motion&&function(e,t){t({":root":n(e)})}(l.motion,a);a({".uds-hit-target":{position:"relative"},".uds-hit-target::before":{"@media (hover: none)":{content:"''",position:"absolute",top:"50%",left:"50%",width:`max(${J}, 100%)`,height:`max(${J}, 100%)`,transform:"translate(-50%, -50%)"}}}),u({iconSize:e=>({width:e,height:e,fontSize:e,lineHeight:e})},{values:g("sizing.icon")}),u({avatarSize:e=>({width:e,height:e})},{values:g("sizing.avatar")}),u({case:e=>({"text-transform":e})},{values:g("typography.textTransform")}),u({"font-weight":e=>({"font-weight":e})},{values:g("typography.fontWeight")}),u({"font-size":e=>({"font-size":e})},{values:g("typography.fontSize")})}}),(function({config:t=a,safelist:o=[]}){const i=e(t),n=i.colorMode[d].tailwindConfig,r=i.scaleMode[s],v=u(n.spectrum,((e,t)=>({...e,...L[t]}))),$=n.palette.core,x={...L,...v,...c,...$},z=n.palette.foreground,S=n.palette.background,y=n.palette.line,C=l(f(te.fontSize).map((([e,t])=>[t,[`var(--${g}-${e})`,{lineHeight:`var(--${h}-${e})`}]]))),W=l(f(te.borderRadius).map((([e,t])=>[t,`var(--${p}-${e})`]))),w={...r.borderRadius.tailwindConfig,...W},k=l(f(te.borderWidth).map((([e,t])=>[t,`var(--${b}-${e})`]))),H={...r.borderWidth.tailwindConfig,...k};return{darkMode:["class",m],safelist:[m,...o],theme:{extend:{aria:{checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',invalid:'aria-invalid="true"'},data:{active:'active="true"',"active-item":'active-item="true"',autofill:'autofill="true"',backdrop:'backdrop="true"',enter:'enter="true"',leave:'leave="true"',"focus-visible":'focus-visible="true"'},animation:{"accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"},borderRadius:w,borderWidth:H,outlineWidth:H,fontFamily:{...Object.fromEntries(U.map((e=>[e,`var(--${R}-${e})`]))),...Object.fromEntries(Z.map((e=>[e,`var(--${R}-${e})`])))},fontSize:C,lineHeight:r.lineHeight.tailwindConfig,colors:x,backgroundColor:S,textColor:z,borderColor:y,fill:S,caretColor:z,placeholderColor:z,textDecorationColor:z,divideColor:y,outlineColor:y,ringColor:y,ringOffsetColor:y,stroke:y,typography:{fontFamily:r.fontFamily.tailwindConfig,fontWeight:r.fontWeight.tailwindConfig,fontSize:r.fontSize.tailwindConfig,lineHeight:r.lineHeight.tailwindConfig,textTransform:r.textTransform.tailwindConfig},sizing:{icon:r.iconSizes.tailwindConfig,avatar:r.avatarSizes.tailwindConfig}}}}})),se=()=>[F.resolve("@yahoo/uds"),F.resolve("@yahoo/uds/client"),F.resolve("@yahoo/uds/experimental")];export{re as defaultTailwindThemeAsUdsConfig,P as getButtonColorForProperty,q as getButtonStyles,_ as getIconButtonStyles,se as getUDSContent,ae as tailwindPlugin,te as udsToTailwindMap};
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- /*! © 2024 Yahoo, Inc. UDS v1.1.1 */
2
+ /*! © 2024 Yahoo, Inc. UDS v1.1.2 */
3
3
  //! This file is generated by purgeCSS.ts from @yahoo/uds
4
4
  //! Do not edit directly
5
5
  //! If there is issue with this file please report to #ask-uds
@@ -1,4 +1,4 @@
1
- /*! © 2024 Yahoo, Inc. UDS v1.1.1 */
1
+ /*! © 2024 Yahoo, Inc. UDS v1.1.2 */
2
2
  var t=["color","placeholderColor","fontFamily","fontSize","fontWeight","lineHeight","textAlign","textTransform","spacing","spacingHorizontal","spacingVertical","spacingBottom","spacingEnd","spacingStart","spacingTop","offset","offsetVertical","offsetHorizontal","offsetBottom","offsetEnd","offsetStart","offsetTop","columnGap","rowGap","backgroundColor","borderColor","borderStartColor","borderEndColor","borderBottomColor","borderTopColor","borderRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderWidth","borderVerticalWidth","borderHorizontalWidth","borderStartWidth","borderEndWidth","borderTopWidth","borderBottomWidth","avatarSize","iconSize","alignContent","alignItems","alignSelf","flex","flexDirection","flexGrow","flexShrink","flexWrap","justifyContent","flexBasis","display","overflow","overflowX","overflowY","position","contentFit","colorMode","scaleMode","buttonPalette","buttonVariant","buttonSize","iconButtonSize"],e={Box:[["display",["flex","block","inline-block","inline","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","contents"]],["flexDirection",["row","column"]],["rowGap",["0","1","2","3","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","px","0.5","1.5","2.5","3.5"]],["columnGap",["0","1","2","3","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","px","0.5","1.5","2.5","3.5"]],["borderColor",["accent","alert","black","brand","positive","warning","white","transparent","muted","primary","secondary","tertiary","current"]],["borderRadius",["none","xs","sm","md","lg","xl","full"]],["overflow",["auto","hidden","clip","visible","scroll"]]],Button:[["color",["accent","alert","black","brand","positive","warning","white","transparent","muted","on-color","primary","secondary","tertiary","current"]]],HStack:[["alignItems",["center"]],["justifyContent",["space-between"]]],Icon:[["color",["primary","current","tertiary","accent","alert","black","brand","positive","warning","white","transparent","muted","on-color","secondary"]]],IconButton:[],Image:[],Pressable:[["display",["flex","inline-flex"]],["flexDirection",["row"]],["alignItems",["center","flex-start"]],["justifyContent",["space-between"]],["spacingVertical",["4","2"]],["spacingHorizontal",["0","1","2","3","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","px","0.5","1.5","2.5","3.5"]],["borderRadius",["md","full"]],["columnGap",["2","3"]],["backgroundColor",["accent","alert","black","brand","positive","warning","white","primary","secondary","transparent","current"]],["borderColor",["muted"]],["borderBottomWidth",["thick"]],["spacingBottom",["1"]],["spacingTop",["4"]]],SpringMotionConfig:[],Text:[["color",["primary","secondary","accent","alert","black","brand","positive","warning","white","transparent","muted","on-color","tertiary","current"]],["fontSize",["display1","display2","display3","title1","title2","title3","title4","headline1","body1","label1","label2","caption1","caption2","legal1"]],["fontFamily",["sans","sans-alt","serif","serif-alt","mono","display1","display2","display3","title1","title2","title3","title4","headline1","body1","label1","label2","caption1","caption2","legal1"]],["fontWeight",["thin","extralight","light","regular","medium","semibold","bold","extrabold","black","display1","display2","display3","title1","title2","title3","title4","headline1","body1","label1","label2","caption1","caption2","legal1"]],["lineHeight",["display1","display2","display3","title1","title2","title3","title4","headline1","body1","label1","label2","caption1","caption2","legal1"]],["textTransform",["display1","display2","display3","title1","title2","title3","title4","headline1","body1","label1","label2","caption1","caption2","legal1","none","uppercase","lowercase","capitalize"]],["display",["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","contents"]],["spacing",["0","1","2","3","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","px","0.5","1.5","2.5","3.5"]],["borderBottomColor",["accent","alert","black","brand","positive","warning","white","transparent","muted","primary","secondary","tertiary","current"]],["borderBottomWidth",["thin"]],["spacingStart",["0.5"]]],VStack:[["overflow",["hidden","auto","clip","visible","scroll"]],["spacingHorizontal",["0","1","2","3","4","5","6","7","8","9","10","11","12","14","16","20","24","28","32","36","40","44","48","52","56","60","64","72","80","96","px","0.5","1.5","2.5","3.5"]],["alignItems",["flex-start"]],["borderRadius",["lg","md"]],["backgroundColor",["primary"]],["spacingVertical",["2"]],["position",["fixed"]],["spacing",["8"]]],Accordion:[["spacingHorizontal",["4"]]],Avatar:[],CheckBox:[],Chip:[],Dropdown:[],DropdownItem:[],DropdownItemPressable:[],DropdownItems:[["overflow",["scroll"]]],DropdownTrigger:[],Modal:[],ModalDismiss:[],ModalHeader:[],Popover:[],PopoverAnchor:[],PopoverArrow:[],PopoverDescription:[],PopoverDisclosure:[],PopoverDisclosureArrow:[],PopoverDismiss:[],PopoverHeading:[],PopoverProvider:[],Spinner:[],Tab:[],TabList:[],TabPanel:[],Table:[],Tabs:[],TextInput:[["backgroundColor",["secondary"]],["borderColor",["tertiary"]],["borderWidth",["thin"]],["borderRadius",["md"]],["color",["primary"]],["placeholderColor",["tertiary"]],["spacingVertical",["3"]],["spacingHorizontal",["4"]]],TextInputGroup:[],TextInputLabel:[],ToastContainer:[]},o={Box:"container flex border",Button:"uds-button uds-button .uds-button-icon uds-button .uds-button-spacer uds-button:hover:not([disabled]) uds-button:active:not([disabled]) uds-button:disabled disabled .uds-button uds-button:focus-visible focused .uds-button hover .uds-button hover .uds-button-brand hover .uds-button-brand.uds-button-primary hover .uds-button-brand.uds-button-secondary hover .uds-button-brand.uds-button-tertiary hover .uds-button-accent hover .uds-button-accent.uds-button-primary hover .uds-button-primary hover .uds-button-accent.uds-button-secondary hover .uds-button-secondary hover .uds-button-accent.uds-button-tertiary hover .uds-button-tertiary hover .uds-button-alert hover .uds-button-alert.uds-button-primary hover .uds-button-alert.uds-button-secondary hover .uds-button-alert.uds-button-tertiary hover .uds-button-positive hover .uds-button-positive.uds-button-primary hover .uds-button-positive.uds-button-secondary hover .uds-button-positive.uds-button-tertiary hover .uds-button-warning hover .uds-button-warning.uds-button-primary hover .uds-button-warning.uds-button-secondary hover .uds-button-warning.uds-button-tertiary pressed .uds-button pressed .uds-button-brand pressed .uds-button-brand.uds-button-primary pressed .uds-button-brand.uds-button-secondary pressed .uds-button-brand.uds-button-tertiary pressed .uds-button-accent pressed .uds-button-accent.uds-button-primary pressed .uds-button-primary pressed .uds-button-accent.uds-button-secondary pressed .uds-button-secondary pressed .uds-button-accent.uds-button-tertiary pressed .uds-button-tertiary pressed .uds-button-alert pressed .uds-button-alert.uds-button-primary pressed .uds-button-alert.uds-button-secondary pressed .uds-button-alert.uds-button-tertiary pressed .uds-button-positive pressed .uds-button-positive.uds-button-primary pressed .uds-button-positive.uds-button-secondary pressed .uds-button-positive.uds-button-tertiary pressed .uds-button-warning pressed .uds-button-warning.uds-button-primary pressed .uds-button-warning.uds-button-secondary pressed .uds-button-warning.uds-button-tertiary uds-icon-button .uds-button-icon flex animate-spin overflow-hidden",HStack:"container ",Icon:"outline",IconButton:"uds-button uds-button .uds-button-icon uds-button .uds-button-spacer uds-button:hover:not([disabled]) uds-button:active:not([disabled]) uds-button:disabled disabled .uds-button uds-button:focus-visible focused .uds-button hover .uds-button hover .uds-button-brand hover .uds-button-brand.uds-button-primary hover .uds-button-brand.uds-button-secondary hover .uds-button-brand.uds-button-tertiary hover .uds-button-accent hover .uds-button-accent.uds-button-primary hover .uds-button-primary hover .uds-button-accent.uds-button-secondary hover .uds-button-secondary hover .uds-button-accent.uds-button-tertiary hover .uds-button-tertiary hover .uds-button-alert hover .uds-button-alert.uds-button-primary hover .uds-button-alert.uds-button-secondary hover .uds-button-alert.uds-button-tertiary hover .uds-button-positive hover .uds-button-positive.uds-button-primary hover .uds-button-positive.uds-button-secondary hover .uds-button-positive.uds-button-tertiary hover .uds-button-warning hover .uds-button-warning.uds-button-primary hover .uds-button-warning.uds-button-secondary hover .uds-button-warning.uds-button-tertiary pressed .uds-button pressed .uds-button-brand pressed .uds-button-brand.uds-button-primary pressed .uds-button-brand.uds-button-secondary pressed .uds-button-brand.uds-button-tertiary pressed .uds-button-accent pressed .uds-button-accent.uds-button-primary pressed .uds-button-primary pressed .uds-button-accent.uds-button-secondary pressed .uds-button-secondary pressed .uds-button-accent.uds-button-tertiary pressed .uds-button-tertiary pressed .uds-button-alert pressed .uds-button-alert.uds-button-primary pressed .uds-button-alert.uds-button-secondary pressed .uds-button-alert.uds-button-tertiary pressed .uds-button-positive pressed .uds-button-positive.uds-button-primary pressed .uds-button-positive.uds-button-secondary pressed .uds-button-positive.uds-button-tertiary pressed .uds-button-warning pressed .uds-button-warning.uds-button-primary pressed .uds-button-warning.uds-button-secondary pressed .uds-button-warning.uds-button-tertiary uds-icon-button uds-icon-button .uds-button-icon animate-spin",Image:"flex border",Pressable:"flex border",SpringMotionConfig:"transition",Text:"container flex border",VStack:"container ",Accordion:"flex hidden max-h-0 max-h-full min-h-min w-full transition-\\[max-height\\] duration-500 ease-in-out hover\\:bg-secondary\\/80:hover",Avatar:"",CheckBox:"\\!max-w-0 cursor-pointer select-none opacity-0",Chip:"inline-flex",Dropdown:"",DropdownItem:"",DropdownItemPressable:"\\!disabled .uds-button disabled .uds-button flex cursor-default hover\\:bg-gray-2:hover",DropdownItems:"z-10 max-h-\\[312px\\] min-w-\\[220px\\] \\!stroke-muted \\!stroke-1 shadow-md",DropdownTrigger:"",Modal:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden h-fit w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:bg-primary[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:opacity-60[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",ModalDismiss:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden h-fit w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:bg-primary[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:opacity-60[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",ModalHeader:"fixed inset-8 top-\\[250px\\] z-50 mx-auto hidden h-fit w-\\[600px\\] origin-center scale-95 opacity-0 shadow-md backdrop-blur-0 transition duration-150 data-\\[enter\\]\\:scale-100[data-enter] data-\\[enter\\]\\:bg-primary[data-enter] data-\\[enter\\]\\:opacity-100[data-enter] data-\\[enter\\]\\:opacity-60[data-enter] data-\\[enter\\]\\:backdrop-blur-sm[data-enter]",Popover:"",PopoverAnchor:"",PopoverArrow:"",PopoverDescription:"",PopoverDisclosure:"",PopoverDisclosureArrow:"",PopoverDismiss:"",PopoverHeading:"",PopoverProvider:"",Spinner:"sr-only absolute relative left-0 right-0 animate-spin self-center fill-accent text-gray-3",Tab:'flex border-b-transparent text-current text-primary aria-selected\\:border-b-accent[aria-selected="true"] aria-selected\\:text-accent[aria-selected="true"]',TabList:'flex border-b-transparent text-current text-primary aria-selected\\:border-b-accent[aria-selected="true"] aria-selected\\:text-accent[aria-selected="true"]',TabPanel:'flex border-b-transparent text-current text-primary aria-selected\\:border-b-accent[aria-selected="true"] aria-selected\\:text-accent[aria-selected="true"]',Table:"block inline flex table table-cell table-header-group table-row-group table-row grid hidden",Tabs:'flex border-b-transparent text-current text-primary aria-selected\\:border-b-accent[aria-selected="true"] aria-selected\\:text-accent[aria-selected="true"]',TextInput:"disabled .uds-button w-full",TextInputGroup:"w-full",TextInputLabel:"",ToastContainer:"relative flex hidden cursor-pointer p-2 transition"},r={Box:[],Button:["Icon","SpringMotionConfig"],HStack:["Box"],Icon:[],IconButton:["Icon","SpringMotionConfig"],Image:[],Pressable:[],SpringMotionConfig:[],Text:[],VStack:["Box"],Accordion:["Icon","Pressable","Text","VStack"],Avatar:[],CheckBox:["CheckBox","HStack","Icon","Text"],Chip:["Icon","Pressable","Text"],Dropdown:["PopoverProvider"],DropdownItem:["DropdownItemPressable","Icon","Text","VStack"],DropdownItemPressable:["Pressable"],DropdownItems:["Popover","PopoverArrow","VStack"],DropdownTrigger:["Button","PopoverDisclosure"],Modal:["IconButton","HStack","Text","VStack"],ModalDismiss:["IconButton","HStack","Text","VStack"],ModalHeader:["IconButton","HStack","Text","VStack"],Popover:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverAnchor:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverArrow:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDescription:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDisclosure:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDisclosureArrow:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverDismiss:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverHeading:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],PopoverProvider:["Popover","PopoverAnchor","PopoverArrow","PopoverDescription","PopoverDisclosure","PopoverDisclosureArrow","PopoverDismiss","PopoverHeading","PopoverProvider","HStack","Text"],Spinner:[],Tab:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TabList:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TabPanel:["Tab","TabList","TabPanel","Icon","Pressable","Text"],Table:["Box","Text"],Tabs:["Tab","TabList","TabPanel","Icon","Pressable","Text"],TextInput:[],TextInputGroup:["TextInput","TextInputLabel","VStack"],TextInputLabel:["Text"],ToastContainer:["IconButton","ToastContainer"]};
3
3
  //! This file is generated by purgeCSS.ts from @yahoo/uds
4
4
  //! Do not edit directly
@@ -1,3 +1,3 @@
1
- "use strict";var e=require("../chunk-UNYRPTSW.cjs"),t=require("lodash-es"),n=require("ts-morph");
2
- /*! © 2024 Yahoo, Inc. UDS v1.1.1 */
1
+ "use strict";var e=require("../chunk-Q3FBFHUG.cjs"),t=require("lodash-es"),n=require("ts-morph");
2
+ /*! © 2024 Yahoo, Inc. UDS v1.1.2 */
3
3
  function i(e){if(n.Node.isCallExpression(e)){const t=e.getExpression();if(n.Node.isIdentifier(t)&&"forwardRef"===t.getText())return!0;if(n.Node.isPropertyAccessExpression(t)&&"React.forwardRef"===t.getText())return!0}return!1}function r(e){let t;if(n.Node.isVariableDeclaration(e)||n.Node.isFunctionDeclaration(e)||n.Node.isClassDeclaration(e))t=e.getName();else if(n.Node.isFunctionExpression(e)||n.Node.isArrowFunction(e)){const i=e.getFirstAncestorByKind(n.SyntaxKind.VariableDeclaration);t=i?.getName()}return!!t&&/[A-Z]/.test(t.charAt(0))}function s(e){if(r(e)){if(n.Node.isFunctionDeclaration(e))return e;if(n.Node.isVariableDeclaration(e)){const t=e.getInitializer();if(t)if(i(t)){const[e]=t.getArguments();if(n.Node.isFunctionDeclaration(e)||n.Node.isFunctionExpression(e)||n.Node.isArrowFunction(e))return e}else if(n.Node.isFunctionDeclaration(t)||n.Node.isFunctionExpression(t)||n.Node.isArrowFunction(t))return t}}return null}function o(e){return e.getDescendants().filter((e=>n.Node.isJsxElement(e)||n.Node.isJsxSelfClosingElement(e)))}var a=e=>{const t=e.getParentWhile((e=>!s(e))).getParent();if(!t)return;const i=s(t);if(i){const e=i.getParameters();for(let t=0;t<e.length;t++){const i=e[t],r=i.getChildrenOfKind(n.SyntaxKind.ObjectBindingPattern)[0],s=i.getChildrenOfKind(n.SyntaxKind.Identifier)[0];if(r){const e=r.getFirstDescendantByKind(n.SyntaxKind.DotDotDotToken);if(void 0!==e){const t=e?.getParent()?.getFirstChildByKindOrThrow(n.SyntaxKind.Identifier).getText();return t}}else if(s)return s.getText()}}};exports.findReferencesAsJsxElements=function(e){const t=[];for(const i of e.findReferencesAsNodes()){const e=i.getFirstAncestor((e=>n.Node.isJsxOpeningElement(e)||n.Node.isJsxSelfClosingElement(e)));e&&t.push(e)}return t},exports.getJsxElement=function(e,t){return o(e).find((e=>e.getFirstDescendantByKindOrThrow(n.SyntaxKind.Identifier).getText()===t))},exports.getJsxElements=o,exports.getParentSpreadOrParamIdentifier=a,exports.getReactFunctionDeclaration=s,exports.getUsedPropsInReference=i=>{const r=i.getAttributes(),s=[];return r.forEach((r=>{if(n.Node.isJsxAttribute(r)){const i=r.getNameNode().getText(),o=r.getDescendantsOfKind(n.SyntaxKind.StringLiteral),a=[];0!==o.length&&o.forEach((e=>a.push(e.getLiteralText())));const d=r.getFirstChildByKindOrThrow(n.SyntaxKind.Identifier).getDefinitions().map((e=>e.getDeclarationNode()?.getChildrenOfKind(n.SyntaxKind.Identifier).pop()?.getType().getText())).pop()?.split(".").pop();d||t.isEmpty(i)?e.variants[t.camelCase(d)]&&!t.isEmpty(d)?s.push([t.camelCase(d),a]):t.isEmpty(i)||s.push([i,a]):s.push([i,a])}if(n.Node.isJsxSpreadAttribute(r)){const e=a(i),o=r.getExpression().getChildren(),d=0===o.length?r.getExpression():o.pop();if(!d||d?.getText()===e)return[];d.getType().getProperties().forEach((e=>{const i=e.getDeclarations().map((e=>{const i=e.getChildrenOfKind(n.SyntaxKind.TypeReference)[0]?.getText()??"";return t.camelCase(i)}))[0];t.isEmpty(e.getName())||s.push([e.getName(),[]]),t.isEmpty(i)||s.push([i,[]])}))}return[]})),s},exports.isForwardRefExpression=i,exports.isJsxComponent=r;
@@ -1,2 +1,2 @@
1
- import{variants as e}from"../chunk-RTLUKBLZ.js";import{isEmpty as t,camelCase as n}from"lodash-es";import{Node as i,SyntaxKind as r}from"ts-morph";
2
- /*! © 2024 Yahoo, Inc. UDS v1.1.1 */function s(e){if(i.isCallExpression(e)){const t=e.getExpression();if(i.isIdentifier(t)&&"forwardRef"===t.getText())return!0;if(i.isPropertyAccessExpression(t)&&"React.forwardRef"===t.getText())return!0}return!1}function o(e){let t;if(i.isVariableDeclaration(e)||i.isFunctionDeclaration(e)||i.isClassDeclaration(e))t=e.getName();else if(i.isFunctionExpression(e)||i.isArrowFunction(e)){const n=e.getFirstAncestorByKind(r.VariableDeclaration);t=n?.getName()}return!!t&&/[A-Z]/.test(t.charAt(0))}function c(e){if(o(e)){if(i.isFunctionDeclaration(e))return e;if(i.isVariableDeclaration(e)){const t=e.getInitializer();if(t)if(s(t)){const[e]=t.getArguments();if(i.isFunctionDeclaration(e)||i.isFunctionExpression(e)||i.isArrowFunction(e))return e}else if(i.isFunctionDeclaration(t)||i.isFunctionExpression(t)||i.isArrowFunction(t))return t}}return null}function a(e,t){return f(e).find((e=>e.getFirstDescendantByKindOrThrow(r.Identifier).getText()===t))}function f(e){return e.getDescendants().filter((e=>i.isJsxElement(e)||i.isJsxSelfClosingElement(e)))}function g(e){const t=[];for(const n of e.findReferencesAsNodes()){const e=n.getFirstAncestor((e=>i.isJsxOpeningElement(e)||i.isJsxSelfClosingElement(e)));e&&t.push(e)}return t}var l=e=>{const t=e.getParentWhile((e=>!c(e))).getParent();if(!t)return;const n=c(t);if(n){const e=n.getParameters();for(let t=0;t<e.length;t++){const n=e[t],i=n.getChildrenOfKind(r.ObjectBindingPattern)[0],s=n.getChildrenOfKind(r.Identifier)[0];if(i){const e=i.getFirstDescendantByKind(r.DotDotDotToken);if(void 0!==e){const t=e?.getParent()?.getFirstChildByKindOrThrow(r.Identifier).getText();return t}}else if(s)return s.getText()}}},u=s=>{const o=s.getAttributes(),c=[];return o.forEach((o=>{if(i.isJsxAttribute(o)){const i=o.getNameNode().getText(),s=o.getDescendantsOfKind(r.StringLiteral),a=[];0!==s.length&&s.forEach((e=>a.push(e.getLiteralText())));const f=o.getFirstChildByKindOrThrow(r.Identifier).getDefinitions().map((e=>e.getDeclarationNode()?.getChildrenOfKind(r.Identifier).pop()?.getType().getText())).pop()?.split(".").pop();f||t(i)?e[n(f)]&&!t(f)?c.push([n(f),a]):t(i)||c.push([i,a]):c.push([i,a])}if(i.isJsxSpreadAttribute(o)){const e=l(s),i=o.getExpression().getChildren(),a=0===i.length?o.getExpression():i.pop();if(!a||a?.getText()===e)return[];a.getType().getProperties().forEach((e=>{const i=e.getDeclarations().map((e=>{const t=e.getChildrenOfKind(r.TypeReference)[0]?.getText()??"";return n(t)}))[0];t(e.getName())||c.push([e.getName(),[]]),t(i)||c.push([i,[]])}))}return[]})),c};export{g as findReferencesAsJsxElements,a as getJsxElement,f as getJsxElements,l as getParentSpreadOrParamIdentifier,c as getReactFunctionDeclaration,u as getUsedPropsInReference,s as isForwardRefExpression,o as isJsxComponent};
1
+ import{variants as e}from"../chunk-E4P2JJND.js";import{isEmpty as t,camelCase as n}from"lodash-es";import{Node as i,SyntaxKind as r}from"ts-morph";
2
+ /*! © 2024 Yahoo, Inc. UDS v1.1.2 */function s(e){if(i.isCallExpression(e)){const t=e.getExpression();if(i.isIdentifier(t)&&"forwardRef"===t.getText())return!0;if(i.isPropertyAccessExpression(t)&&"React.forwardRef"===t.getText())return!0}return!1}function o(e){let t;if(i.isVariableDeclaration(e)||i.isFunctionDeclaration(e)||i.isClassDeclaration(e))t=e.getName();else if(i.isFunctionExpression(e)||i.isArrowFunction(e)){const n=e.getFirstAncestorByKind(r.VariableDeclaration);t=n?.getName()}return!!t&&/[A-Z]/.test(t.charAt(0))}function c(e){if(o(e)){if(i.isFunctionDeclaration(e))return e;if(i.isVariableDeclaration(e)){const t=e.getInitializer();if(t)if(s(t)){const[e]=t.getArguments();if(i.isFunctionDeclaration(e)||i.isFunctionExpression(e)||i.isArrowFunction(e))return e}else if(i.isFunctionDeclaration(t)||i.isFunctionExpression(t)||i.isArrowFunction(t))return t}}return null}function a(e,t){return f(e).find((e=>e.getFirstDescendantByKindOrThrow(r.Identifier).getText()===t))}function f(e){return e.getDescendants().filter((e=>i.isJsxElement(e)||i.isJsxSelfClosingElement(e)))}function g(e){const t=[];for(const n of e.findReferencesAsNodes()){const e=n.getFirstAncestor((e=>i.isJsxOpeningElement(e)||i.isJsxSelfClosingElement(e)));e&&t.push(e)}return t}var l=e=>{const t=e.getParentWhile((e=>!c(e))).getParent();if(!t)return;const n=c(t);if(n){const e=n.getParameters();for(let t=0;t<e.length;t++){const n=e[t],i=n.getChildrenOfKind(r.ObjectBindingPattern)[0],s=n.getChildrenOfKind(r.Identifier)[0];if(i){const e=i.getFirstDescendantByKind(r.DotDotDotToken);if(void 0!==e){const t=e?.getParent()?.getFirstChildByKindOrThrow(r.Identifier).getText();return t}}else if(s)return s.getText()}}},u=s=>{const o=s.getAttributes(),c=[];return o.forEach((o=>{if(i.isJsxAttribute(o)){const i=o.getNameNode().getText(),s=o.getDescendantsOfKind(r.StringLiteral),a=[];0!==s.length&&s.forEach((e=>a.push(e.getLiteralText())));const f=o.getFirstChildByKindOrThrow(r.Identifier).getDefinitions().map((e=>e.getDeclarationNode()?.getChildrenOfKind(r.Identifier).pop()?.getType().getText())).pop()?.split(".").pop();f||t(i)?e[n(f)]&&!t(f)?c.push([n(f),a]):t(i)||c.push([i,a]):c.push([i,a])}if(i.isJsxSpreadAttribute(o)){const e=l(s),i=o.getExpression().getChildren(),a=0===i.length?o.getExpression():i.pop();if(!a||a?.getText()===e)return[];a.getType().getProperties().forEach((e=>{const i=e.getDeclarations().map((e=>{const t=e.getChildrenOfKind(r.TypeReference)[0]?.getText()??"";return n(t)}))[0];t(e.getName())||c.push([e.getName(),[]]),t(i)||c.push([i,[]])}))}return[]})),c};export{g as findReferencesAsJsxElements,a as getJsxElement,f as getJsxElements,l as getParentSpreadOrParamIdentifier,c as getReactFunctionDeclaration,u as getUsedPropsInReference,s as isForwardRefExpression,o as isJsxComponent};
@@ -1 +1 @@
1
- "use strict";var e=require("../chunk-5AGBM4YW.cjs");Object.defineProperty(exports,"addFontsPlugin",{enumerable:!0,get:function(){return e.addFontsPlugin}}),Object.defineProperty(exports,"getColorModeStyles",{enumerable:!0,get:function(){return e.getColorModeStyles}}),Object.defineProperty(exports,"getFontFaceDeclarations",{enumerable:!0,get:function(){return e.getFontFaceDeclarations}}),Object.defineProperty(exports,"getFontStyles",{enumerable:!0,get:function(){return e.getFontStyles}}),Object.defineProperty(exports,"getMotionStyles",{enumerable:!0,get:function(){return e.getMotionStyles}}),Object.defineProperty(exports,"getMotionVar",{enumerable:!0,get:function(){return e.getMotionVar}}),Object.defineProperty(exports,"getScaleModeStyles",{enumerable:!0,get:function(){return e.getScaleModeStyles}});
1
+ "use strict";var e=require("../chunk-U3UWTVPP.cjs");Object.defineProperty(exports,"addFontsPlugin",{enumerable:!0,get:function(){return e.addFontsPlugin}}),Object.defineProperty(exports,"getColorModeStyles",{enumerable:!0,get:function(){return e.getColorModeStyles}}),Object.defineProperty(exports,"getFontFaceDeclarations",{enumerable:!0,get:function(){return e.getFontFaceDeclarations}}),Object.defineProperty(exports,"getFontStyles",{enumerable:!0,get:function(){return e.getFontStyles}}),Object.defineProperty(exports,"getMotionStyles",{enumerable:!0,get:function(){return e.getMotionStyles}}),Object.defineProperty(exports,"getMotionVar",{enumerable:!0,get:function(){return e.getMotionVar}}),Object.defineProperty(exports,"getScaleModeStyles",{enumerable:!0,get:function(){return e.getScaleModeStyles}});
@@ -1 +1 @@
1
- export{addFontsPlugin,getColorModeStyles,getFontFaceDeclarations,getFontStyles,getMotionStyles,getMotionVar,getScaleModeStyles}from"../chunk-G56DRBBO.js";
1
+ export{addFontsPlugin,getColorModeStyles,getFontFaceDeclarations,getFontStyles,getMotionStyles,getMotionVar,getScaleModeStyles}from"../chunk-UZUZHTZX.js";
@@ -1 +1 @@
1
- "use strict";var e=require("../chunk-XHR7XP5T.cjs"),t=require("../chunk-QDDUQMIL.cjs"),r=require("../chunk-UNYRPTSW.cjs"),n=require("../chunk-UEKY6CPD.cjs");Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return e.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return e.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return e.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return e.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return e.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return e.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return e.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return e.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return e.button}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return e.defaultTokensConfig}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return e.fromEntries}}),Object.defineProperty(exports,"generateConfigCombinations",{enumerable:!0,get:function(){return e.generateConfigCombinations}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return e.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return t.entries}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return t.fontWeightMap}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return t.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return r.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return n.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return n.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return n.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return n.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return n.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return n.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return n.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return n.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return n.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return n.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return n.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return n.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return n.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXXLARGE_SCALE_MODE_CLASSNAME}});
1
+ "use strict";var e=require("../chunk-WC3BJLIW.cjs"),t=require("../chunk-LHJHFGKQ.cjs"),r=require("../chunk-Q3FBFHUG.cjs"),n=require("../chunk-XJMVPGBH.cjs");Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return e.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return e.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return e.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return e.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return e.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return e.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return e.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return e.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return e.button}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return e.defaultTokensConfig}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return e.fromEntries}}),Object.defineProperty(exports,"generateConfigCombinations",{enumerable:!0,get:function(){return e.generateConfigCombinations}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return e.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return t.entries}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return t.fontWeightMap}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return t.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return r.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return n.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return n.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return n.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return n.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return n.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return n.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return n.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return n.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return n.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return n.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return n.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return n.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return n.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXXLARGE_SCALE_MODE_CLASSNAME}});
@@ -1 +1 @@
1
- export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,defaultTokensConfig,fromEntries,generateConfigCombinations,getDefaultButtonBaseMap}from"../chunk-BJZSTZKO.js";export{entries,fontWeightMap,mapValues}from"../chunk-WTM3H6RK.js";export{variants}from"../chunk-RTLUKBLZ.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_WEIGHT_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-HDTC4SXA.js";
1
+ export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,defaultTokensConfig,fromEntries,generateConfigCombinations,getDefaultButtonBaseMap}from"../chunk-GL6YFZ6M.js";export{entries,fontWeightMap,mapValues}from"../chunk-RDB36LP5.js";export{variants}from"../chunk-E4P2JJND.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_WEIGHT_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-2XDBRKZ2.js";
@@ -1 +1 @@
1
- "use strict";var e=require("../chunk-BQENUWKR.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
1
+ "use strict";var e=require("../chunk-2ES5G2LV.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
@@ -1 +1 @@
1
- export{parseTokens}from"../chunk-VYFYXMA5.js";
1
+ export{parseTokens}from"../chunk-6V27ERSN.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yahoo/uds",
3
3
  "description": "Yahoo Universal System",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "uds": "./cli/uds-cli"