@yahoo/uds 2.8.0 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/PropsToClass.mock.tsx +14 -0
- package/dist/{chunk-GRZ5XQ3F.js → chunk-4ZZV37J4.js} +1 -1
- package/dist/{chunk-AJYO7N7R.js → chunk-5WTSHH5H.js} +1 -1
- package/dist/{chunk-GIKZRY45.cjs → chunk-D5OJRMIW.cjs} +1 -1
- package/dist/{chunk-T6P7XTY2.js → chunk-KTPYM4OO.js} +2 -2
- package/dist/{chunk-SBHC4YQG.cjs → chunk-PSLTRJPA.cjs} +1 -1
- package/dist/{chunk-6URF5YHM.cjs → chunk-RNQ6TDFL.cjs} +1 -1
- package/dist/{chunk-QYZNWDRL.js → chunk-TAPL6R6T.js} +2 -2
- package/dist/{chunk-TNA4SFJT.cjs → chunk-TFSKZAZE.cjs} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +3 -3
- package/dist/fixtures.cjs +1 -1
- package/dist/fixtures.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-aAFnCpDR.d.cts → types-BjtmdiGC.d.cts} +4 -4
- package/dist/{types-aAFnCpDR.d.ts → types-BjtmdiGC.d.ts} +4 -4
- package/package.json +1 -1
package/dist/tailwind/plugin.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("../chunk-
|
1
|
+
"use strict";var e=require("../chunk-D5OJRMIW.cjs"),t=require("../chunk-TFSKZAZE.cjs"),o=require("../chunk-RNQ6TDFL.cjs"),i=require("../chunk-FWF2C6TL.cjs"),n=require("../chunk-GIJ2FHY5.cjs"),r=require("../chunk-5WBROFT5.cjs"),a=require("../chunk-EYFQOFYW.cjs"),s=require("@yahoo/uds/fixtures"),l=require("tailwindcss/plugin"),d=require("tailwindcss/defaultTheme");function u(e){return e&&e.__esModule?e:{default:e}}var _=u(l),c=u(d);function f(e,t,o){const i=e[t],n=o?.[i];return n?`var(${i}, ${n})`:`var(${i})`}function S(e,{type:t,value:o},i){const n="color"===e?"textColor":e;if("palette"===t)return s.alwaysPaletteAliases.includes(o)?o:i(`${n}.${o}`);{const[e,t]=o.split("-");return i(`colors.${e}.${t}`)}}function A({scale:e}){return s.scaleEffectMap[e].sm}function T({backgroundColor:e,borderColor:t,color:o,borderRadius:i,borderWidth:n},a){return{[r.BUTTON_CSS_VAR_MAP.backgroundColor]:S("backgroundColor",e,a),[r.BUTTON_CSS_VAR_MAP.borderColor]:S("borderColor",t,a),[r.BUTTON_CSS_VAR_MAP.color]:S("color",o,a),...i&&{[r.BUTTON_CSS_VAR_MAP.borderRadius]:a(`borderRadius.${i}`)},...n&&{[r.BUTTON_CSS_VAR_MAP.borderWidth]:a(`borderWidth.${n}`)}}}function C(e,t){const{spacingHorizontal:o,spacingVertical:i,gap:n,textVariant:a,iconSize:s}=e,l=t(`typography.lineHeight.${a}`),d=t(`sizing.icon.${s}`);return{[r.BUTTON_CSS_VAR_MAP.padding]:`${t(`spacing[${i}]`)} ${t(`spacing[${o}]`)}`,[r.BUTTON_CSS_VAR_MAP.columnGap]:t(`spacing[${n}]`),[r.BUTTON_CSS_VAR_MAP.fontFamily]:t(`typography.fontFamily.${a}`),[r.BUTTON_CSS_VAR_MAP.fontWeight]:t(`typography.fontWeight.${a}`),[r.BUTTON_CSS_VAR_MAP.fontSize]:t(`typography.fontSize.${a}`),[r.BUTTON_CSS_VAR_MAP.lineHeight]:`max(${l}, ${d})`,[r.BUTTON_CSS_VAR_MAP.textTransform]:t(`typography.textTransform.${a}`),[r.BUTTON_CSS_VAR_MAP.iconSize]:t(`sizing.icon.${s}`)}}function g(e,t){const o=e.palette[e.defaults.palette][e.defaults.variant],i=e.size[e.defaults.size],a=o.base.scale,l=o.effect.hover.scale.value,d=o.effect.pressed.scale.value,u={...T(o.base,t),...C(i,t),[r.BUTTON_CSS_VAR_MAP.effects.scale.rest]:A({scale:a}),[r.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:l}),[r.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:d})},_={borderRadius:f(r.BUTTON_CSS_VAR_MAP,"borderRadius",u),boxShadow:`inset 0 0 0 ${f(r.BUTTON_CSS_VAR_MAP,"borderWidth",u)} ${f(r.BUTTON_CSS_VAR_MAP,"borderColor",u)}`,color:f(r.BUTTON_CSS_VAR_MAP,"color",u),backgroundColor:f(r.BUTTON_CSS_VAR_MAP,"backgroundColor",u),padding:f(r.BUTTON_CSS_VAR_MAP,"padding",u),fontFamily:f(r.BUTTON_CSS_VAR_MAP,"fontFamily",u),fontWeight:f(r.BUTTON_CSS_VAR_MAP,"fontWeight",u),fontSize:f(r.BUTTON_CSS_VAR_MAP,"fontSize",u),lineHeight:f(r.BUTTON_CSS_VAR_MAP,"lineHeight",u),textTransform:f(r.BUTTON_CSS_VAR_MAP,"textTransform",u),display:"inline-flex",justifyContent:"center",overflow:"hidden",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",...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),S=T(o.state.pressed,t),g={cursor:"not-allowed",opacity:"0.2",[r.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:"none"}),[r.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:"none"})},p={".uds-button":_,".uds-button .uds-button-icon":{width:f(r.BUTTON_CSS_VAR_MAP,"iconSize",u),height:f(r.BUTTON_CSS_VAR_MAP,"iconSize",u)},[`.uds-button${r.PSEUDO_STYLE_SELECTOR_MAP.hover}`]:c,[`.uds-button${r.PSEUDO_STYLE_SELECTOR_MAP.pressed}`]:S,[`.uds-button${r.PSEUDO_STYLE_SELECTOR_MAP.disabled}`]:g,".disabled .uds-button":g},h={".hover":{".uds-button":c},".pressed":{".uds-button":S}};for(const[o,i]of n.entries(e.size))p[`.uds-button-${o}`]=C(i,t);function E(o,{palette:i,variant:n}){const a=e.palette[i][n],s=a.base,l=a.state,d=a.effect,u={rest:{...T(s,t)},restScale:{[r.BUTTON_CSS_VAR_MAP.effects.scale.rest]:A({scale:s.scale}),[r.BUTTON_CSS_VAR_MAP.effects.scale.hover]:A({scale:d.hover.scale.value}),[r.BUTTON_CSS_VAR_MAP.effects.scale.pressed]:A({scale:d.pressed.scale.value})},hover:T(l.hover,t),pressed:T(l.pressed,t)};p[o]=u.rest,p[`${o}${r.PSEUDO_STYLE_SELECTOR_MAP.notDisabled}`]=u.restScale,p[`${o}${r.PSEUDO_STYLE_SELECTOR_MAP.hover}`]=u.hover,p[`${o}${r.PSEUDO_STYLE_SELECTOR_MAP.pressed}`]=u.pressed,h[".hover"][o]=u.hover,h[".pressed"][o]=u.pressed}for(const t of s.buttonPalettes){E(`.uds-button-${t}`,{palette:t,variant:e.defaults.variant});for(const o of s.buttonVariants)E(`.uds-button-${t}.uds-button-${o}`,{palette:t,variant:o}),t===e.defaults.palette&&E(`.uds-button-${o}`,{palette:t,variant:o})}return{...p,...h}}var p={outlineOffset:"var(--uds-outline-offset)",outlineWidth:"var(--uds-outline-width)",outlineColor:"var(--uds-outline-color)",outlineStyle:"var(--uds-outline-style)"};var h="44px";function E(e,t){const{spacing:o,iconSize:i}=e;return{[r.ICON_BUTTON_CSS_VAR_MAP.padding]:t(`spacing[${o}]`),[r.ICON_BUTTON_CSS_VAR_MAP.iconSize]:t(`sizing.icon.${i}`)}}function O(e,t){const o=E(e.size[e.defaults.size],t),i={".uds-icon-button":{display:"inline-flex",alignItems:"center",...{padding:f(r.ICON_BUTTON_CSS_VAR_MAP,"padding",o)}},".uds-icon-button .uds-button-icon":{width:f(r.ICON_BUTTON_CSS_VAR_MAP,"iconSize",o),height:f(r.ICON_BUTTON_CSS_VAR_MAP,"iconSize",o)}};for(const[o,r]of n.entries(e.size))i[`.uds-icon-button-${o}`]=E(r,t);return i}var M={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"},b={fontSize:M,lineHeight:M,borderRadius:{xs:"sm",sm:"DEFAULT",md:"md",lg:"lg",xl:"xl"},borderWidth:{thin:"DEFAULT",medium:"2",thick:"4"}};function R(e){return e.endsWith("rem")?16*parseFloat(e):parseFloat(e)}var m={...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE],fontSize:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontSize,...n.mapValues(b.fontSize,(e=>R(c.default.fontSize[e][0])))},lineHeight:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontSize,...n.mapValues(b.lineHeight,(e=>R(c.default.fontSize[e][1].lineHeight))),display1:R(c.default.fontSize[b.fontSize.display1][0]),display2:R(c.default.fontSize[b.fontSize.display2][0])},fontWeight:n.mapValues(o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].fontWeight,(()=>"regular")),borderRadius:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].borderRadius,...n.mapValues(b.borderRadius,(e=>R(c.default.borderRadius[e])))},borderWidth:{...o.defaultTokensConfig.scaleMode[o.DEFAULT_SCALE_MODE].borderWidth,...n.mapValues(b.borderWidth,(e=>R(c.default.borderWidth[e])))}};function L(e){return{...o.defaultTokensConfig.scaleMode[e],fontWeight:m.fontWeight,fontSize:n.mapValues(m.fontSize,((t,o)=>t+s.fontSizeRamp[e][o])),lineHeight:n.mapValues(m.lineHeight,((t,o)=>t+s.lineHeightRamp[e][o])),borderRadius:n.mapValues(m.borderRadius,((t,o)=>t+s.borderRadiusRamp[e][o])),borderWidth:n.mapValues(m.borderWidth,((t,o)=>t+s.borderWidthRamp[e][o]))}}var v={...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 U=_.default.withOptions((function({config:n=o.defaultTokensConfig,disableFontFaceDeclarations:a=!1}){return function({addBase:s,matchUtilities:l,addComponents:d,theme:u}){const _=i.parseTokens(n),c=Object.values(n.font);if(!1===a&&e.addFontFaceDeclarations(c,s),function(t,o){o({":root":e.getFontStyles(t)})}(n.font,s),/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
2
|
function(t,i){const n=e.getColorModeStyles(t);i({":root":n[o.DEFAULT_COLOR_MODE],[`.${r.LIGHT_COLOR_MODE_CLASSNAME}`]:n.light,[`.${r.DARK_COLOR_MODE_CLASSNAME}`]:n.dark})}(_,s),function(t,i){const n=e.getScaleModeStyles(t);i({":root":n[o.DEFAULT_SCALE_MODE],[`.${r.XSMALL_SCALE_MODE_CLASSNAME}`]:n.xSmall,[`.${r.SMALL_SCALE_MODE_CLASSNAME}`]:n.small,[`.${r.MEDIUM_SCALE_MODE_CLASSNAME}`]:n.medium,[`.${r.LARGE_SCALE_MODE_CLASSNAME}`]:n.large,[`.${r.XLARGE_SCALE_MODE_CLASSNAME}`]:n.xLarge,[`.${r.XXLARGE_SCALE_MODE_CLASSNAME}`]:n.xxLarge,[`.${r.XXXLARGE_SCALE_MODE_CLASSNAME}`]:n.xxxLarge})}(_,s),n.button){const e=function(e,t){return g(e,t)}(n.button,u);d(e)}if(n.iconButton){const e=function(e,t){return O(e,t)}(n.iconButton,u);d(e)}n.motion&&function(e,o){o({":root":t.getMotionStyles(e)})}(n.motion,s);s({".uds-hit-target":{position:"relative"},".uds-hit-target::before":{"@media (hover: none)":{content:"''",position:"absolute",top:"50%",left:"50%",width:`max(${h}, 100%)`,height:`max(${h}, 100%)`,transform:"translate(-50%, -50%)"}}});const f=function({theme:e}){return{".uds-ring":{"--uds-outline-offset":e("outlineOffset.DEFAULT"),"--uds-outline-width":e("outlineWidth.DEFAULT"),"--uds-outline-color":e("outlineColor.DEFAULT"),"--uds-outline-style":"solid"},[`.uds-ring${r.PSEUDO_STYLE_SELECTOR_MAP.focused}`]:p,".focused .uds-ring":p}}({theme:u});s(f),l({iconSize:e=>({width:e,height:e,fontSize:e,lineHeight:e})},{values:u("sizing.icon")}),l({avatarSize:e=>({width:e,height:e})},{values:u("sizing.avatar")}),l({case:e=>({"text-transform":e})},{values:u("typography.textTransform")}),l({"font-weight":e=>({"font-weight":e})},{values:u("typography.fontWeight")}),l({"font-size":e=>({"font-size":e})},{values:u("typography.fontSize")})}}),(function({config:e=o.defaultTokensConfig,safelist:t=[]}){const a=i.parseTokens(e),l=a.colorMode[o.DEFAULT_COLOR_MODE].tailwindConfig,d=a.scaleMode[o.DEFAULT_SCALE_MODE],u=n.mapValues(l.spectrum,((e,t)=>({...e,...s.tailwindColorsAsUds[t]}))),_=l.palette.core,c={...s.tailwindColorsAsUds,...u,...o.alwaysPalette,..._},f=l.palette.foreground,S=l.palette.background,A=l.palette.line,T=o.fromEntries(n.entries(b.fontSize).map((([e,t])=>[t,[`var(--${r.FONT_SIZE_PREFIX}-${e})`,{lineHeight:`var(--${r.LINE_HEIGHT_PREFIX}-${e})`}]]))),C=o.fromEntries(n.entries(b.borderRadius).map((([e,t])=>[t,`var(--${r.BORDER_RADIUS_PREFIX}-${e})`]))),g={...d.borderRadius.tailwindConfig,...C},p=o.fromEntries(n.entries(b.borderWidth).map((([e,t])=>[t,`var(--${r.BORDER_WIDTH_PREFIX}-${e})`]))),h={...d.borderWidth.tailwindConfig,...p};return{darkMode:["class",r.DARK_COLOR_MODE_CLASSNAME],safelist:[r.DARK_COLOR_MODE_CLASSNAME,...t],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"'},borderRadius:g,borderWidth:h,outlineWidth:{...h,DEFAULT:"2px"},outlineOffset:{...h,DEFAULT:"2px"},outlineColor:({theme:e})=>({...A,DEFAULT:e("colors.accent")}),fontFamily:{...Object.fromEntries(s.fontAliases.map((e=>[e,`var(--${r.FONT_FAMILY_PREFIX}-${e})`]))),...Object.fromEntries(s.textVariants.map((e=>[e,`var(--${r.FONT_FAMILY_PREFIX}-${e})`])))},fontSize:T,lineHeight:d.lineHeight.tailwindConfig,colors:c,backgroundColor:S,textColor:f,borderColor:A,fill:S,caretColor:f,placeholderColor:f,textDecorationColor:f,divideColor: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=v,exports.getButtonColorForProperty=S,exports.getButtonStyles=g,exports.getIconButtonStyles=O,exports.getUDSContent=()=>[a.__require.resolve("@yahoo/uds"),a.__require.resolve("@yahoo/uds/client"),a.__require.resolve("@yahoo/uds/experimental"),a.__require.resolve("@yahoo/uds/experimental/client")],exports.tailwindPlugin=U,exports.udsToTailwindMap=b;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
|
-
import { B as ButtonConfig, i as ButtonClassMap, I as IconButtonClassMap, U as UniversalTokensConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig } from '../types-
|
2
|
+
import { B as ButtonConfig, i as ButtonClassMap, I as IconButtonClassMap, U as UniversalTokensConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig } from '../types-BjtmdiGC.cjs';
|
3
3
|
import defaultTailwindTheme from 'tailwindcss/defaultTheme';
|
4
4
|
import '@yahoo/uds-icons/types';
|
5
5
|
import 'motion/react';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
2
|
-
import { B as ButtonConfig, i as ButtonClassMap, I as IconButtonClassMap, U as UniversalTokensConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig } from '../types-
|
2
|
+
import { B as ButtonConfig, i as ButtonClassMap, I as IconButtonClassMap, U as UniversalTokensConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig } from '../types-BjtmdiGC.js';
|
3
3
|
import defaultTailwindTheme from 'tailwindcss/defaultTheme';
|
4
4
|
import '@yahoo/uds-icons/types';
|
5
5
|
import 'motion/react';
|
package/dist/tailwind/plugin.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import{addFontFaceDeclarations as e,getColorModeStyles as t,getFontStyles as o,getScaleModeStyles as i}from"../chunk-
|
2
|
-
function(e,o){const i=t(e);o({":root":i[l],[`.${v}`]:i.light,[`.${m}`]:i.dark})}(g,r),function(e,t){const o=i(e);t({":root":o[a],[`.${$}`]:o.xSmall,[`.${x}`]:o.small,[`.${z}`]:o.medium,[`.${y}`]:o.large,[`.${S}`]:o.xLarge,[`.${C}`]:o.xxLarge,[`.${W}`]:o.xxxLarge})}(g,r),s.button){const e=function(e,t){return X(e,t)}(s.button,h);f(e)}if(s.iconButton){const e=function(e,t){return _(e,t)}(s.iconButton,h);f(e)}s.motion&&function(e,t){t({":root":n(e)})}(s.motion,r);r({".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%)"}}});const b=function({theme:e}){return{".uds-ring":{"--uds-outline-offset":e("outlineOffset.DEFAULT"),"--uds-outline-width":e("outlineWidth.DEFAULT"),"--uds-outline-color":e("outlineColor.DEFAULT"),"--uds-outline-style":"solid"},[`.uds-ring${k.focused}`]:
|
1
|
+
import{addFontFaceDeclarations as e,getColorModeStyles as t,getFontStyles as o,getScaleModeStyles as i}from"../chunk-4ZZV37J4.js";import{getMotionStyles as n}from"../chunk-5WTSHH5H.js";import{defaultTokensConfig as r,DEFAULT_SCALE_MODE as a,fromEntries as s,DEFAULT_COLOR_MODE as l,alwaysPalette as d}from"../chunk-TAPL6R6T.js";import{parseTokens as c}from"../chunk-X6F5UEQ5.js";import{mapValues as u,entries as f}from"../chunk-SUASN3GG.js";import{FONT_SIZE_PREFIX as h,LINE_HEIGHT_PREFIX as g,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 y,XLARGE_SCALE_MODE_CLASSNAME as S,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 F,FONT_FAMILY_PREFIX as H}from"../chunk-PE2P7J44.js";import{__require as T}from"../chunk-VPR62GYQ.js";import{tailwindColorsAsUds as L,alwaysPaletteAliases as R,buttonPalettes as D,buttonVariants as E,fontSizeRamp as j,lineHeightRamp as M,borderRadiusRamp as U,borderWidthRamp as A,fontAliases as O,textVariants as P,scaleEffectMap as G}from"@yahoo/uds/fixtures";import V from"tailwindcss/plugin";import B from"tailwindcss/defaultTheme";function I(e,t,o){const i=e[t],n=o?.[i];return n?`var(${i}, ${n})`:`var(${i})`}function J(e,{type:t,value:o},i){const n="color"===e?"textColor":e;if("palette"===t)return R.includes(o)?o:i(`${n}.${o}`);{const[e,t]=o.split("-");return i(`colors.${e}.${t}`)}}function Q({scale:e}){return G[e].sm}function Z({backgroundColor:e,borderColor:t,color:o,borderRadius:i,borderWidth:n},r){return{[w.backgroundColor]:J("backgroundColor",e,r),[w.borderColor]:J("borderColor",t,r),[w.color]:J("color",o,r),...i&&{[w.borderRadius]:r(`borderRadius.${i}`)},...n&&{[w.borderWidth]:r(`borderWidth.${n}`)}}}function N(e,t){const{spacingHorizontal:o,spacingVertical:i,gap:n,textVariant:r,iconSize:a}=e,s=t(`typography.lineHeight.${r}`),l=t(`sizing.icon.${a}`);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]:`max(${s}, ${l})`,[w.textTransform]:t(`typography.textTransform.${r}`),[w.iconSize]:t(`sizing.icon.${a}`)}}function X(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={...Z(o.base,t),...N(i,t),[w.effects.scale.rest]:Q({scale:n}),[w.effects.scale.hover]:Q({scale:r}),[w.effects.scale.pressed]:Q({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),display:"inline-flex",justifyContent:"center",overflow:"hidden",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",...s,transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"220ms"},d=Z(o.state.hover,t),c=Z(o.state.pressed,t),u={cursor:"not-allowed",opacity:"0.2",[w.effects.scale.hover]:Q({scale:"none"}),[w.effects.scale.pressed]:Q({scale:"none"})},h={".uds-button":l,".uds-button .uds-button-icon":{width:I(w,"iconSize",s),height:I(w,"iconSize",s)},[`.uds-button${k.hover}`]:d,[`.uds-button${k.pressed}`]:c,[`.uds-button${k.disabled}`]:u,".disabled .uds-button":u},g={".hover":{".uds-button":d},".pressed":{".uds-button":c}};for(const[o,i]of f(e.size))h[`.uds-button-${o}`]=N(i,t);function p(o,{palette:i,variant:n}){const r=e.palette[i][n],a=r.base,s=r.state,l=r.effect,d={rest:{...Z(a,t)},restScale:{[w.effects.scale.rest]:Q({scale:a.scale}),[w.effects.scale.hover]:Q({scale:l.hover.scale.value}),[w.effects.scale.pressed]:Q({scale:l.pressed.scale.value})},hover:Z(s.hover,t),pressed:Z(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,g[".hover"][o]=d.hover,g[".pressed"][o]=d.pressed}for(const t of D){p(`.uds-button-${t}`,{palette:t,variant:e.defaults.variant});for(const o of E)p(`.uds-button-${t}.uds-button-${o}`,{palette:t,variant:o}),t===e.defaults.palette&&p(`.uds-button-${o}`,{palette:t,variant:o})}return{...h,...g}}var Y={outlineOffset:"var(--uds-outline-offset)",outlineWidth:"var(--uds-outline-width)",outlineColor:"var(--uds-outline-color)",outlineStyle:"var(--uds-outline-style)"};var q="44px";function K(e,t){const{spacing:o,iconSize:i}=e;return{[F.padding]:t(`spacing[${o}]`),[F.iconSize]:t(`sizing.icon.${i}`)}}function _(e,t){const o=K(e.size[e.defaults.size],t),i={".uds-icon-button":{display:"inline-flex",alignItems:"center",...{padding:I(F,"padding",o)}},".uds-icon-button .uds-button-icon":{width:I(F,"iconSize",o),height:I(F,"iconSize",o)}};for(const[o,n]of f(e.size))i[`.uds-icon-button-${o}`]=K(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={...r.scaleMode[a],fontSize:{...r.scaleMode[a].fontSize,...u(te.fontSize,(e=>oe(B.fontSize[e][0])))},lineHeight:{...r.scaleMode[a].fontSize,...u(te.lineHeight,(e=>oe(B.fontSize[e][1].lineHeight))),display1:oe(B.fontSize[te.fontSize.display1][0]),display2:oe(B.fontSize[te.fontSize.display2][0])},fontWeight:u(r.scaleMode[a].fontWeight,(()=>"regular")),borderRadius:{...r.scaleMode[a].borderRadius,...u(te.borderRadius,(e=>oe(B.borderRadius[e])))},borderWidth:{...r.scaleMode[a].borderWidth,...u(te.borderWidth,(e=>oe(B.borderWidth[e])))}};function ne(e){return{...r.scaleMode[e],fontWeight:ie.fontWeight,fontSize:u(ie.fontSize,((t,o)=>t+j[e][o])),lineHeight:u(ie.lineHeight,((t,o)=>t+M[e][o])),borderRadius:u(ie.borderRadius,((t,o)=>t+U[e][o])),borderWidth:u(ie.borderWidth,((t,o)=>t+A[e][o]))}}var re={...r,scaleMode:{xSmall:ne("xSmall"),small:ne("small"),medium:ne("medium"),large:ne("large"),xLarge:ne("xLarge"),xxLarge:ne("xxLarge"),xxxLarge:ne("xxxLarge")}};var ae=V.withOptions((function({config:s=r,disableFontFaceDeclarations:d=!1}){return function({addBase:r,matchUtilities:u,addComponents:f,theme:h}){const g=c(s),p=Object.values(s.font);if(!1===d&&e(p,r),function(e,t){t({":root":o(e)})}(s.font,r),/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
function(e,o){const i=t(e);o({":root":i[l],[`.${v}`]:i.light,[`.${m}`]:i.dark})}(g,r),function(e,t){const o=i(e);t({":root":o[a],[`.${$}`]:o.xSmall,[`.${x}`]:o.small,[`.${z}`]:o.medium,[`.${y}`]:o.large,[`.${S}`]:o.xLarge,[`.${C}`]:o.xxLarge,[`.${W}`]:o.xxxLarge})}(g,r),s.button){const e=function(e,t){return X(e,t)}(s.button,h);f(e)}if(s.iconButton){const e=function(e,t){return _(e,t)}(s.iconButton,h);f(e)}s.motion&&function(e,t){t({":root":n(e)})}(s.motion,r);r({".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%)"}}});const b=function({theme:e}){return{".uds-ring":{"--uds-outline-offset":e("outlineOffset.DEFAULT"),"--uds-outline-width":e("outlineWidth.DEFAULT"),"--uds-outline-color":e("outlineColor.DEFAULT"),"--uds-outline-style":"solid"},[`.uds-ring${k.focused}`]:Y,".focused .uds-ring":Y}}({theme:h});r(b),u({iconSize:e=>({width:e,height:e,fontSize:e,lineHeight:e})},{values:h("sizing.icon")}),u({avatarSize:e=>({width:e,height:e})},{values:h("sizing.avatar")}),u({case:e=>({"text-transform":e})},{values:h("typography.textTransform")}),u({"font-weight":e=>({"font-weight":e})},{values:h("typography.fontWeight")}),u({"font-size":e=>({"font-size":e})},{values:h("typography.fontSize")})}}),(function({config:e=r,safelist:t=[]}){const o=c(e),i=o.colorMode[l].tailwindConfig,n=o.scaleMode[a],v=u(i.spectrum,((e,t)=>({...e,...L[t]}))),$=i.palette.core,x={...L,...v,...d,...$},z=i.palette.foreground,y=i.palette.background,S=i.palette.line,C=s(f(te.fontSize).map((([e,t])=>[t,[`var(--${h}-${e})`,{lineHeight:`var(--${g}-${e})`}]]))),W=s(f(te.borderRadius).map((([e,t])=>[t,`var(--${p}-${e})`]))),w={...n.borderRadius.tailwindConfig,...W},k=s(f(te.borderWidth).map((([e,t])=>[t,`var(--${b}-${e})`]))),F={...n.borderWidth.tailwindConfig,...k};return{darkMode:["class",m],safelist:[m,...t],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"'},borderRadius:w,borderWidth:F,outlineWidth:{...F,DEFAULT:"2px"},outlineOffset:{...F,DEFAULT:"2px"},outlineColor:({theme:e})=>({...S,DEFAULT:e("colors.accent")}),fontFamily:{...Object.fromEntries(O.map((e=>[e,`var(--${H}-${e})`]))),...Object.fromEntries(P.map((e=>[e,`var(--${H}-${e})`])))},fontSize:C,lineHeight:n.lineHeight.tailwindConfig,colors:x,backgroundColor:y,textColor:z,borderColor:S,fill:y,caretColor:z,placeholderColor:z,textDecorationColor:z,divideColor:S,ringColor:S,ringOffsetColor:S,stroke:S,typography:{fontFamily:n.fontFamily.tailwindConfig,fontWeight:n.fontWeight.tailwindConfig,fontSize:n.fontSize.tailwindConfig,lineHeight:n.lineHeight.tailwindConfig,textTransform:n.textTransform.tailwindConfig},sizing:{icon:n.iconSizes.tailwindConfig,avatar:n.avatarSizes.tailwindConfig}}}}})),se=()=>[T.resolve("@yahoo/uds"),T.resolve("@yahoo/uds/client"),T.resolve("@yahoo/uds/experimental"),T.resolve("@yahoo/uds/experimental/client")];export{re as defaultTailwindThemeAsUdsConfig,J as getButtonColorForProperty,X as getButtonStyles,_ as getIconButtonStyles,se as getUDSContent,ae as tailwindPlugin,te as udsToTailwindMap};
|
package/dist/tailwind/utils.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("../chunk-
|
1
|
+
"use strict";var e=require("../chunk-D5OJRMIW.cjs"),t=require("../chunk-TFSKZAZE.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,"getScaleModeStyles",{enumerable:!0,get:function(){return e.getScaleModeStyles}}),Object.defineProperty(exports,"getMotionStyles",{enumerable:!0,get:function(){return t.getMotionStyles}}),Object.defineProperty(exports,"getMotionVar",{enumerable:!0,get:function(){return t.getMotionVar}});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { M as MotionVariant, h as MotionVariantSpeed, l as MotionSpringConfigOptions, m as MotionConfig, n as FontID, o as FontDeclarationConfig, p as FontConfig } from '../types-
|
1
|
+
import { M as MotionVariant, h as MotionVariantSpeed, l as MotionSpringConfigOptions, m as MotionConfig, n as FontID, o as FontDeclarationConfig, p as FontConfig } from '../types-BjtmdiGC.cjs';
|
2
2
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
3
3
|
import { WebTokens } from '../tokens/parseTokens.cjs';
|
4
4
|
import '@yahoo/uds-icons/types';
|
package/dist/tailwind/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { M as MotionVariant, h as MotionVariantSpeed, l as MotionSpringConfigOptions, m as MotionConfig, n as FontID, o as FontDeclarationConfig, p as FontConfig } from '../types-
|
1
|
+
import { M as MotionVariant, h as MotionVariantSpeed, l as MotionSpringConfigOptions, m as MotionConfig, n as FontID, o as FontDeclarationConfig, p as FontConfig } from '../types-BjtmdiGC.js';
|
2
2
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
3
3
|
import { WebTokens } from '../tokens/parseTokens.js';
|
4
4
|
import '@yahoo/uds-icons/types';
|
package/dist/tailwind/utils.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export{addFontsPlugin,getColorModeStyles,getFontFaceDeclarations,getFontStyles,getScaleModeStyles}from"../chunk-
|
1
|
+
export{addFontsPlugin,getColorModeStyles,getFontFaceDeclarations,getFontStyles,getScaleModeStyles}from"../chunk-4ZZV37J4.js";export{getMotionStyles,getMotionVar}from"../chunk-5WTSHH5H.js";
|
package/dist/tokens/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("../chunk-
|
1
|
+
"use strict";var e=require("../chunk-RNQ6TDFL.cjs"),t=require("../chunk-6453EQCC.cjs"),r=require("../chunk-GIJ2FHY5.cjs"),n=require("../chunk-5WBROFT5.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,"variants",{enumerable:!0,get:function(){return t.variants}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return r.entries}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return r.fontWeightMap}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return r.mapValues}}),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}});
|
package/dist/tokens/index.d.cts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { aq as ButtonKind, aJ as CorePaletteAlias, al as ButtonBaseConfig, B as ButtonConfig, aG as ColorModeConfig, bA as ScaleModeConfig, p as FontConfig, ba as IconButtonConfig, m as MotionConfig, b4 as FontWeightDescriptive, d as FontWeightNumeric, aH as ColorModeForApp, bB as ScaleModeForApp, C as ColorMode, S as ScaleMode, b8 as HighContrastMode, bx as RegionMode } from '../types-
|
2
|
-
export { A as AVATAR_SIZE_PREFIX, a4 as AlwaysPalette, a5 as AlwaysPaletteAlias, a6 as Animation, a7 as AriaAttribute, a8 as AvatarShape, a9 as AvatarSize, aa as AvatarSizeConfig, x as BORDER_RADIUS_PREFIX, y as BORDER_WIDTH_PREFIX, a0 as BUTTON_CSS_VAR_MAP, ab as BackgroundColor, ac as BackgroundPalette, ad as BackgroundPaletteAlias, ae as BackgroundStyleProps, af as BorderRadius, ag as BorderRadiusConfig, ah as BorderStyleProps, ai as BorderWidth, aj as BorderWidthConfig, ak as BoxShadowConfig, i as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig, ar as ButtonMotionEffect, as as ButtonMotionProperty, at as ButtonMotionPropertyConfig, au as ButtonPalette, av as ButtonPaletteColor, aw as ButtonPaletteConfig, ax as ButtonSize, ay as ButtonSizeConfig, az as ButtonSizeProperty, aA as ButtonSpectrumColor, aB as ButtonState, aC as ButtonStateConfig, aD as ButtonStateEffectConfig, aE as ButtonVariant, aF as ButtonVariantConfig, a as ColorsConfig, aI as CorePalette, aK as CustomSizingStyleProps, N as DARK_COLOR_MODE_CLASSNAME, _ as DEFAULT_COLOR_MODE_CLASSNAME, $ as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, aN as DividerVariant, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX, aO as Flex, aP as FlexAlignContent, aQ as FlexAlignItems, aR as FlexAlignSelf, aS as FlexBasis, aT as FlexDirection, aU as FlexGrow, aV as FlexJustifyContent, aW as FlexShrink, aX as FlexStyleProps, aY as FlexWrap, aZ as FontAlias, a_ as FontCssVar, o as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontFamilyConfig, n as FontID, b1 as FontSize, b2 as FontSizeConfig, b3 as FontType, F as FontWeightConfig, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, H as Hue, b as HueStep, a1 as ICON_BUTTON_CSS_VAR_MAP, G as ICON_SIZE_PREFIX, I as IconButtonClassMap, b9 as IconButtonClassName, bb as IconButtonDefaultsConfig, bc as IconButtonSize, bd as IconSizeConfig, be as ImageStyleProps, V as LARGE_SCALE_MODE_CLASSNAME, O as LIGHT_COLOR_MODE_CLASSNAME, L as LINE_HEIGHT_PREFIX, bf as LayoutStyleProps, bg as LetterSpacing, bh as LineClampAlias, bi as LineColor, bj as LineHeight, bk as LineHeightConfig, bl as LinePalette, bm as LinePaletteAlias, R as MEDIUM_SCALE_MODE_CLASSNAME, J as MOTION_PREFIX, bn as Modes, bo as MotionCssVar, bp as MotionSpringConfig, l as MotionSpringConfigOptions, M as MotionVariant, h as MotionVariantSpeed, bq as MotionVariantValues, br as Overflow, a2 as PSEUDO_STYLE_SELECTOR_MAP, bs as Palette, c as PaletteConfig, P as PaletteType, bt as PaletteValue, bu as PlatformMode, bv as Position, bw as PropertyToPaletteAliasMap, Q as SMALL_SCALE_MODE_CLASSNAME, K as SPECTRUM_COLOR_PREFIX, by as ScaleConfig, bz as ScaleEffectMap, bC as SpacingAlias, bD as SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, q as UniversalBoxProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, s as UniversalIconProps, t as UniversalImageProps, g as UniversalPressableProps, r as UniversalStackProps, bX as UniversalTextInputProps, u as UniversalTextProps, U as UniversalTokensConfig, W as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, Y as XXLARGE_SCALE_MODE_CLASSNAME, Z as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from '../types-
|
1
|
+
import { aq as ButtonKind, aJ as CorePaletteAlias, al as ButtonBaseConfig, B as ButtonConfig, aG as ColorModeConfig, bA as ScaleModeConfig, p as FontConfig, ba as IconButtonConfig, m as MotionConfig, b4 as FontWeightDescriptive, d as FontWeightNumeric, aH as ColorModeForApp, bB as ScaleModeForApp, C as ColorMode, S as ScaleMode, b8 as HighContrastMode, bx as RegionMode } from '../types-BjtmdiGC.cjs';
|
2
|
+
export { A as AVATAR_SIZE_PREFIX, a4 as AlwaysPalette, a5 as AlwaysPaletteAlias, a6 as Animation, a7 as AriaAttribute, a8 as AvatarShape, a9 as AvatarSize, aa as AvatarSizeConfig, x as BORDER_RADIUS_PREFIX, y as BORDER_WIDTH_PREFIX, a0 as BUTTON_CSS_VAR_MAP, ab as BackgroundColor, ac as BackgroundPalette, ad as BackgroundPaletteAlias, ae as BackgroundStyleProps, af as BorderRadius, ag as BorderRadiusConfig, ah as BorderStyleProps, ai as BorderWidth, aj as BorderWidthConfig, ak as BoxShadowConfig, i as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig, ar as ButtonMotionEffect, as as ButtonMotionProperty, at as ButtonMotionPropertyConfig, au as ButtonPalette, av as ButtonPaletteColor, aw as ButtonPaletteConfig, ax as ButtonSize, ay as ButtonSizeConfig, az as ButtonSizeProperty, aA as ButtonSpectrumColor, aB as ButtonState, aC as ButtonStateConfig, aD as ButtonStateEffectConfig, aE as ButtonVariant, aF as ButtonVariantConfig, a as ColorsConfig, aI as CorePalette, aK as CustomSizingStyleProps, N as DARK_COLOR_MODE_CLASSNAME, _ as DEFAULT_COLOR_MODE_CLASSNAME, $ as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, aN as DividerVariant, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX, aO as Flex, aP as FlexAlignContent, aQ as FlexAlignItems, aR as FlexAlignSelf, aS as FlexBasis, aT as FlexDirection, aU as FlexGrow, aV as FlexJustifyContent, aW as FlexShrink, aX as FlexStyleProps, aY as FlexWrap, aZ as FontAlias, a_ as FontCssVar, o as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontFamilyConfig, n as FontID, b1 as FontSize, b2 as FontSizeConfig, b3 as FontType, F as FontWeightConfig, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, H as Hue, b as HueStep, a1 as ICON_BUTTON_CSS_VAR_MAP, G as ICON_SIZE_PREFIX, I as IconButtonClassMap, b9 as IconButtonClassName, bb as IconButtonDefaultsConfig, bc as IconButtonSize, bd as IconSizeConfig, be as ImageStyleProps, V as LARGE_SCALE_MODE_CLASSNAME, O as LIGHT_COLOR_MODE_CLASSNAME, L as LINE_HEIGHT_PREFIX, bf as LayoutStyleProps, bg as LetterSpacing, bh as LineClampAlias, bi as LineColor, bj as LineHeight, bk as LineHeightConfig, bl as LinePalette, bm as LinePaletteAlias, R as MEDIUM_SCALE_MODE_CLASSNAME, J as MOTION_PREFIX, bn as Modes, bo as MotionCssVar, bp as MotionSpringConfig, l as MotionSpringConfigOptions, M as MotionVariant, h as MotionVariantSpeed, bq as MotionVariantValues, br as Overflow, a2 as PSEUDO_STYLE_SELECTOR_MAP, bs as Palette, c as PaletteConfig, P as PaletteType, bt as PaletteValue, bu as PlatformMode, bv as Position, bw as PropertyToPaletteAliasMap, Q as SMALL_SCALE_MODE_CLASSNAME, K as SPECTRUM_COLOR_PREFIX, by as ScaleConfig, bz as ScaleEffectMap, bC as SpacingAlias, bD as SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, q as UniversalBoxProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, s as UniversalIconProps, t as UniversalImageProps, g as UniversalPressableProps, r as UniversalStackProps, bX as UniversalTextInputProps, u as UniversalTextProps, U as UniversalTokensConfig, W as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, Y as XXLARGE_SCALE_MODE_CLASSNAME, Z as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from '../types-BjtmdiGC.cjs';
|
3
3
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
4
4
|
import 'motion/react';
|
5
5
|
import 'react';
|
package/dist/tokens/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { aq as ButtonKind, aJ as CorePaletteAlias, al as ButtonBaseConfig, B as ButtonConfig, aG as ColorModeConfig, bA as ScaleModeConfig, p as FontConfig, ba as IconButtonConfig, m as MotionConfig, b4 as FontWeightDescriptive, d as FontWeightNumeric, aH as ColorModeForApp, bB as ScaleModeForApp, C as ColorMode, S as ScaleMode, b8 as HighContrastMode, bx as RegionMode } from '../types-
|
2
|
-
export { A as AVATAR_SIZE_PREFIX, a4 as AlwaysPalette, a5 as AlwaysPaletteAlias, a6 as Animation, a7 as AriaAttribute, a8 as AvatarShape, a9 as AvatarSize, aa as AvatarSizeConfig, x as BORDER_RADIUS_PREFIX, y as BORDER_WIDTH_PREFIX, a0 as BUTTON_CSS_VAR_MAP, ab as BackgroundColor, ac as BackgroundPalette, ad as BackgroundPaletteAlias, ae as BackgroundStyleProps, af as BorderRadius, ag as BorderRadiusConfig, ah as BorderStyleProps, ai as BorderWidth, aj as BorderWidthConfig, ak as BoxShadowConfig, i as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig, ar as ButtonMotionEffect, as as ButtonMotionProperty, at as ButtonMotionPropertyConfig, au as ButtonPalette, av as ButtonPaletteColor, aw as ButtonPaletteConfig, ax as ButtonSize, ay as ButtonSizeConfig, az as ButtonSizeProperty, aA as ButtonSpectrumColor, aB as ButtonState, aC as ButtonStateConfig, aD as ButtonStateEffectConfig, aE as ButtonVariant, aF as ButtonVariantConfig, a as ColorsConfig, aI as CorePalette, aK as CustomSizingStyleProps, N as DARK_COLOR_MODE_CLASSNAME, _ as DEFAULT_COLOR_MODE_CLASSNAME, $ as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, aN as DividerVariant, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX, aO as Flex, aP as FlexAlignContent, aQ as FlexAlignItems, aR as FlexAlignSelf, aS as FlexBasis, aT as FlexDirection, aU as FlexGrow, aV as FlexJustifyContent, aW as FlexShrink, aX as FlexStyleProps, aY as FlexWrap, aZ as FontAlias, a_ as FontCssVar, o as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontFamilyConfig, n as FontID, b1 as FontSize, b2 as FontSizeConfig, b3 as FontType, F as FontWeightConfig, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, H as Hue, b as HueStep, a1 as ICON_BUTTON_CSS_VAR_MAP, G as ICON_SIZE_PREFIX, I as IconButtonClassMap, b9 as IconButtonClassName, bb as IconButtonDefaultsConfig, bc as IconButtonSize, bd as IconSizeConfig, be as ImageStyleProps, V as LARGE_SCALE_MODE_CLASSNAME, O as LIGHT_COLOR_MODE_CLASSNAME, L as LINE_HEIGHT_PREFIX, bf as LayoutStyleProps, bg as LetterSpacing, bh as LineClampAlias, bi as LineColor, bj as LineHeight, bk as LineHeightConfig, bl as LinePalette, bm as LinePaletteAlias, R as MEDIUM_SCALE_MODE_CLASSNAME, J as MOTION_PREFIX, bn as Modes, bo as MotionCssVar, bp as MotionSpringConfig, l as MotionSpringConfigOptions, M as MotionVariant, h as MotionVariantSpeed, bq as MotionVariantValues, br as Overflow, a2 as PSEUDO_STYLE_SELECTOR_MAP, bs as Palette, c as PaletteConfig, P as PaletteType, bt as PaletteValue, bu as PlatformMode, bv as Position, bw as PropertyToPaletteAliasMap, Q as SMALL_SCALE_MODE_CLASSNAME, K as SPECTRUM_COLOR_PREFIX, by as ScaleConfig, bz as ScaleEffectMap, bC as SpacingAlias, bD as SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, q as UniversalBoxProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, s as UniversalIconProps, t as UniversalImageProps, g as UniversalPressableProps, r as UniversalStackProps, bX as UniversalTextInputProps, u as UniversalTextProps, U as UniversalTokensConfig, W as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, Y as XXLARGE_SCALE_MODE_CLASSNAME, Z as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from '../types-
|
1
|
+
import { aq as ButtonKind, aJ as CorePaletteAlias, al as ButtonBaseConfig, B as ButtonConfig, aG as ColorModeConfig, bA as ScaleModeConfig, p as FontConfig, ba as IconButtonConfig, m as MotionConfig, b4 as FontWeightDescriptive, d as FontWeightNumeric, aH as ColorModeForApp, bB as ScaleModeForApp, C as ColorMode, S as ScaleMode, b8 as HighContrastMode, bx as RegionMode } from '../types-BjtmdiGC.js';
|
2
|
+
export { A as AVATAR_SIZE_PREFIX, a4 as AlwaysPalette, a5 as AlwaysPaletteAlias, a6 as Animation, a7 as AriaAttribute, a8 as AvatarShape, a9 as AvatarSize, aa as AvatarSizeConfig, x as BORDER_RADIUS_PREFIX, y as BORDER_WIDTH_PREFIX, a0 as BUTTON_CSS_VAR_MAP, ab as BackgroundColor, ac as BackgroundPalette, ad as BackgroundPaletteAlias, ae as BackgroundStyleProps, af as BorderRadius, ag as BorderRadiusConfig, ah as BorderStyleProps, ai as BorderWidth, aj as BorderWidthConfig, ak as BoxShadowConfig, i as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig, ar as ButtonMotionEffect, as as ButtonMotionProperty, at as ButtonMotionPropertyConfig, au as ButtonPalette, av as ButtonPaletteColor, aw as ButtonPaletteConfig, ax as ButtonSize, ay as ButtonSizeConfig, az as ButtonSizeProperty, aA as ButtonSpectrumColor, aB as ButtonState, aC as ButtonStateConfig, aD as ButtonStateEffectConfig, aE as ButtonVariant, aF as ButtonVariantConfig, a as ColorsConfig, aI as CorePalette, aK as CustomSizingStyleProps, N as DARK_COLOR_MODE_CLASSNAME, _ as DEFAULT_COLOR_MODE_CLASSNAME, $ as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, aN as DividerVariant, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX, aO as Flex, aP as FlexAlignContent, aQ as FlexAlignItems, aR as FlexAlignSelf, aS as FlexBasis, aT as FlexDirection, aU as FlexGrow, aV as FlexJustifyContent, aW as FlexShrink, aX as FlexStyleProps, aY as FlexWrap, aZ as FontAlias, a_ as FontCssVar, o as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontFamilyConfig, n as FontID, b1 as FontSize, b2 as FontSizeConfig, b3 as FontType, F as FontWeightConfig, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, H as Hue, b as HueStep, a1 as ICON_BUTTON_CSS_VAR_MAP, G as ICON_SIZE_PREFIX, I as IconButtonClassMap, b9 as IconButtonClassName, bb as IconButtonDefaultsConfig, bc as IconButtonSize, bd as IconSizeConfig, be as ImageStyleProps, V as LARGE_SCALE_MODE_CLASSNAME, O as LIGHT_COLOR_MODE_CLASSNAME, L as LINE_HEIGHT_PREFIX, bf as LayoutStyleProps, bg as LetterSpacing, bh as LineClampAlias, bi as LineColor, bj as LineHeight, bk as LineHeightConfig, bl as LinePalette, bm as LinePaletteAlias, R as MEDIUM_SCALE_MODE_CLASSNAME, J as MOTION_PREFIX, bn as Modes, bo as MotionCssVar, bp as MotionSpringConfig, l as MotionSpringConfigOptions, M as MotionVariant, h as MotionVariantSpeed, bq as MotionVariantValues, br as Overflow, a2 as PSEUDO_STYLE_SELECTOR_MAP, bs as Palette, c as PaletteConfig, P as PaletteType, bt as PaletteValue, bu as PlatformMode, bv as Position, bw as PropertyToPaletteAliasMap, Q as SMALL_SCALE_MODE_CLASSNAME, K as SPECTRUM_COLOR_PREFIX, by as ScaleConfig, bz as ScaleEffectMap, bC as SpacingAlias, bD as SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, q as UniversalBoxProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, s as UniversalIconProps, t as UniversalImageProps, g as UniversalPressableProps, r as UniversalStackProps, bX as UniversalTextInputProps, u as UniversalTextProps, U as UniversalTokensConfig, W as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, Y as XXLARGE_SCALE_MODE_CLASSNAME, Z as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from '../types-BjtmdiGC.js';
|
3
3
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
4
4
|
import 'motion/react';
|
5
5
|
import 'react';
|
package/dist/tokens/index.js
CHANGED
@@ -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-
|
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-TAPL6R6T.js";export{variants}from"../chunk-3G7IRLGN.js";export{entries,fontWeightMap,mapValues}from"../chunk-SUASN3GG.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-PE2P7J44.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig, F as FontWeightConfig, d as FontWeightNumeric } from '../types-
|
1
|
+
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig, F as FontWeightConfig, d as FontWeightNumeric } from '../types-BjtmdiGC.cjs';
|
2
2
|
import '@yahoo/uds-icons/types';
|
3
3
|
import 'motion/react';
|
4
4
|
import 'react';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig, F as FontWeightConfig, d as FontWeightNumeric } from '../types-
|
1
|
+
import { U as UniversalTokensConfig, C as ColorMode, S as ScaleMode, a as ColorsConfig, H as Hue, b as HueStep, P as PaletteType, c as PaletteConfig, F as FontWeightConfig, d as FontWeightNumeric } from '../types-BjtmdiGC.js';
|
2
2
|
import '@yahoo/uds-icons/types';
|
3
3
|
import 'motion/react';
|
4
4
|
import 'react';
|
@@ -72,7 +72,7 @@ type FontDeclarationConfig = {
|
|
72
72
|
fontDisplay: 'swap';
|
73
73
|
fontStyle?: 'normal' | 'italic';
|
74
74
|
fontWeight?: FontWeightNumeric | '1 1000';
|
75
|
-
src: `url('${typeof UDS_FONTS_CDN_PREFIX}/${string}
|
75
|
+
src: `url('${typeof UDS_FONTS_CDN_PREFIX}/${string}.${'woff2' | `woff2?version=${number}`}') format('woff2')`;
|
76
76
|
};
|
77
77
|
declare const FONT_DECLARATIONS_MAP: {
|
78
78
|
readonly 'centra-no2': {
|
@@ -296,7 +296,7 @@ declare const FONT_DECLARATIONS_MAP: {
|
|
296
296
|
readonly type: "sans";
|
297
297
|
readonly isVariableFont: true;
|
298
298
|
readonly declarations: [{
|
299
|
-
readonly fontFamily: "Yahoo Sans CR4";
|
299
|
+
readonly fontFamily: "Yahoo Sans CR4 BETA VF";
|
300
300
|
readonly fontDisplay: "swap";
|
301
301
|
/** TODO: We can make performant by only including font weights used for this font in config */
|
302
302
|
readonly fontWeight: "1 1000";
|
@@ -308,11 +308,11 @@ declare const FONT_DECLARATIONS_MAP: {
|
|
308
308
|
readonly type: "sans";
|
309
309
|
readonly isVariableFont: true;
|
310
310
|
readonly declarations: [{
|
311
|
-
readonly fontFamily: "Yahoo Product Sans";
|
311
|
+
readonly fontFamily: "Yahoo Product Sans VF";
|
312
312
|
readonly fontDisplay: "swap";
|
313
313
|
/** TODO: We can make performant by only including font weights used for this font in config */
|
314
314
|
readonly fontWeight: "1 1000";
|
315
|
-
readonly src: "url('https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2') format('woff2')";
|
315
|
+
readonly src: "url('https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2?version=2') format('woff2')";
|
316
316
|
}];
|
317
317
|
};
|
318
318
|
readonly 'yahoo-sans-condensed': {
|
@@ -72,7 +72,7 @@ type FontDeclarationConfig = {
|
|
72
72
|
fontDisplay: 'swap';
|
73
73
|
fontStyle?: 'normal' | 'italic';
|
74
74
|
fontWeight?: FontWeightNumeric | '1 1000';
|
75
|
-
src: `url('${typeof UDS_FONTS_CDN_PREFIX}/${string}
|
75
|
+
src: `url('${typeof UDS_FONTS_CDN_PREFIX}/${string}.${'woff2' | `woff2?version=${number}`}') format('woff2')`;
|
76
76
|
};
|
77
77
|
declare const FONT_DECLARATIONS_MAP: {
|
78
78
|
readonly 'centra-no2': {
|
@@ -296,7 +296,7 @@ declare const FONT_DECLARATIONS_MAP: {
|
|
296
296
|
readonly type: "sans";
|
297
297
|
readonly isVariableFont: true;
|
298
298
|
readonly declarations: [{
|
299
|
-
readonly fontFamily: "Yahoo Sans CR4";
|
299
|
+
readonly fontFamily: "Yahoo Sans CR4 BETA VF";
|
300
300
|
readonly fontDisplay: "swap";
|
301
301
|
/** TODO: We can make performant by only including font weights used for this font in config */
|
302
302
|
readonly fontWeight: "1 1000";
|
@@ -308,11 +308,11 @@ declare const FONT_DECLARATIONS_MAP: {
|
|
308
308
|
readonly type: "sans";
|
309
309
|
readonly isVariableFont: true;
|
310
310
|
readonly declarations: [{
|
311
|
-
readonly fontFamily: "Yahoo Product Sans";
|
311
|
+
readonly fontFamily: "Yahoo Product Sans VF";
|
312
312
|
readonly fontDisplay: "swap";
|
313
313
|
/** TODO: We can make performant by only including font weights used for this font in config */
|
314
314
|
readonly fontWeight: "1 1000";
|
315
|
-
readonly src: "url('https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2') format('woff2')";
|
315
|
+
readonly src: "url('https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2?version=2') format('woff2')";
|
316
316
|
}];
|
317
317
|
};
|
318
318
|
readonly 'yahoo-sans-condensed': {
|