@yahoo/uds-mobile 2.21.0 → 2.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,11 +2,13 @@
2
2
  import { SCALE_EFFECTS } from "../motion-tokens/dist/index.js";
3
3
  import { BUTTON_SPRING_CONFIG } from "../motion.js";
4
4
  import { Icon } from "./Icon.js";
5
+ import { getIconButtonControlMetrics } from "./Button/buttonTheme.js";
5
6
  import { AnimatedPressable } from "./Pressable.js";
6
7
  import { memo, useCallback, useMemo, useState } from "react";
7
8
  import { ActivityIndicator } from "react-native";
8
9
  import { jsx } from "react/jsx-runtime";
9
10
  import { buttonStyles, iconButtonStyles, styles } from "../../generated/styles";
11
+ import { useUnistyles } from "react-native-unistyles";
10
12
  import { Easing, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, withTiming } from "react-native-reanimated";
11
13
  import { useAnimatedTheme, useAnimatedVariantColor } from "react-native-unistyles/reanimated";
12
14
  //#region src/components/IconButton.tsx
@@ -55,6 +57,12 @@ function interpolateShadowAlpha(shadow, alpha) {
55
57
  const IconButton = memo(function IconButton({ name, variant = "primary", size = "md", iconVariant = "outline", iconColor, loading, disabled, style, accessibilityLabel, accessibilityHint, disableEffects = false, onPressIn, onPressOut, ref, ...props }) {
56
58
  const isDisabled = disabled || loading;
57
59
  const shouldAnimate = !disableEffects && !isDisabled;
60
+ const { theme } = useUnistyles();
61
+ const { controlHeight } = useMemo(() => getIconButtonControlMetrics(theme, size), [theme, size]);
62
+ const matchedControlDimensions = controlHeight > 0 ? {
63
+ height: controlHeight,
64
+ width: controlHeight
65
+ } : void 0;
58
66
  const [pressed, setPressed] = useState(false);
59
67
  iconButtonStyles.useVariants({ size });
60
68
  buttonStyles.useVariants({
@@ -125,6 +133,7 @@ const IconButton = memo(function IconButton({ name, variant = "primary", size =
125
133
  style: [
126
134
  iconButtonStyles.root,
127
135
  buttonStyles.root,
136
+ matchedControlDimensions,
128
137
  styles.foundation,
129
138
  animatedRootStyle,
130
139
  typeof style === "function" ? style({ pressed }) : style
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","names":["foundationStyles"],"sources":["../../src/components/IconButton.tsx"],"sourcesContent":["import type { ButtonVariantFlat, IconButtonSize, IconVariant } from '@yahoo/uds-types';\nimport type { Ref } from 'react';\nimport { memo, useCallback, useMemo, useState } from 'react';\nimport type { View } from 'react-native';\nimport { ActivityIndicator } from 'react-native';\nimport {\n Easing,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n withSpring,\n withTiming,\n} from 'react-native-reanimated';\nimport { useAnimatedTheme, useAnimatedVariantColor } from 'react-native-unistyles/reanimated';\n\nimport type { StyleProps } from '../../generated/styles';\nimport { buttonStyles, iconButtonStyles, styles as foundationStyles } from '../../generated/styles';\nimport { BUTTON_SPRING_CONFIG, SCALE_EFFECTS } from '../motion';\nimport type { IconName } from './Icon';\nimport { Icon } from './Icon';\nimport type { PressableProps } from './Pressable';\nimport { AnimatedPressable } from './Pressable';\n\n/* -------------------------------------------------------------------------- */\n/* Animation Helpers */\n/* -------------------------------------------------------------------------- */\n\nfunction interpolateShadowAlpha(shadow: string | undefined, alpha: number): string {\n 'worklet';\n if (!shadow) {\n return '';\n }\n if (alpha >= 1) {\n return shadow;\n }\n if (alpha <= 0) {\n return '';\n }\n\n return shadow.replace(/rgba\\(([^,]+),\\s*([^,]+),\\s*([^,]+),\\s*([^)]+)\\)/g, (_, r, g, b, a) => {\n const newAlpha = parseFloat(a) * alpha;\n return `rgba(${r}, ${g}, ${b}, ${newAlpha.toFixed(3)})`;\n });\n}\n\n/* -------------------------------------------------------------------------- */\n/* IconButton Props */\n/* -------------------------------------------------------------------------- */\n\ninterface IconButtonProps extends Omit<PressableProps, 'children'> {\n /** Icon to render from the icons package */\n name: IconName;\n /** The visual style variant @default 'primary' */\n variant?: ButtonVariantFlat;\n /** The size of the button @default 'md' */\n size?: IconButtonSize;\n /** The icon style variant @default 'outline' */\n iconVariant?: IconVariant;\n /** Override the icon color token without changing the button variant tokens */\n iconColor?: StyleProps['color'];\n /** Shows a loading spinner and disables the button */\n loading?: boolean;\n /**\n * Disable motion effects (scale on press, icon animations)\n * @default false\n */\n disableEffects?: boolean;\n /** Ref to the underlying View */\n ref?: Ref<View>;\n}\n\n/* -------------------------------------------------------------------------- */\n/* IconButton Component */\n/* -------------------------------------------------------------------------- */\n\n/**\n * **An icon button element that can be used to trigger an action**\n *\n * @description\n * An icon-only button for actions where space is limited. Features animated\n * scale effect on press and smooth color transitions matching the web UDS\n * IconButton behavior.\n *\n * @category Interactive\n * @platform mobile\n *\n * @example\n * ```tsx\n * import { IconButton } from '@yahoo/uds-mobile/IconButton';\n *\n * <IconButton name=\"Add\" onPress={() => console.log('pressed')} />\n * <IconButton name=\"Close\" variant=\"secondary\" size=\"sm\" />\n * <IconButton name=\"Settings\" loading />\n * ```\n *\n * @usage\n * - Use for toolbar actions\n * - Use for closing modals/dialogs\n * - Always provide accessibilityLabel for screen readers\n *\n * @accessibility\n * - Sets `accessibilityRole=\"button\"` automatically\n * - Announces loading state to screen readers\n * - **Always** provide `accessibilityLabel` since there's no visible text\n *\n * @see {@link Button} for buttons with text labels\n * @see {@link Icon} for non-interactive icons\n */\nconst IconButton = memo(function IconButton({\n name,\n variant = 'primary',\n size = 'md',\n iconVariant = 'outline',\n iconColor,\n loading,\n disabled,\n style,\n accessibilityLabel,\n accessibilityHint,\n disableEffects = false,\n onPressIn,\n onPressOut,\n ref,\n ...props\n}: IconButtonProps) {\n const isDisabled = disabled || loading;\n const shouldAnimate = !disableEffects && !isDisabled;\n\n /* --------------------------------- State ---------------------------------- */\n const [pressed, setPressed] = useState(false);\n\n // Apply layer-based styles with compound variant support\n iconButtonStyles.useVariants({ size });\n buttonStyles.useVariants({ variant, disabled: isDisabled, pressed });\n foundationStyles.useVariants({ color: iconColor });\n\n const resolvedIconColor = iconColor\n ? (foundationStyles.foundation.color as string | undefined)\n : undefined;\n\n // Animate colors using Unistyles' useAnimatedVariantColor\n const backgroundColor = useAnimatedVariantColor(buttonStyles.root, 'backgroundColor');\n const borderColor = useAnimatedVariantColor(buttonStyles.root, 'borderColor');\n\n // Get animated theme for boxShadow\n const animatedTheme = useAnimatedTheme();\n\n /* ------------------------------- Animation -------------------------------- */\n const scale = useSharedValue<number>(SCALE_EFFECTS.none);\n\n const handlePressIn = useCallback<NonNullable<PressableProps['onPressIn']>>(\n (event) => {\n setPressed(true);\n if (shouldAnimate) {\n scale.value = withSpring(SCALE_EFFECTS.down, BUTTON_SPRING_CONFIG);\n }\n onPressIn?.(event);\n },\n [shouldAnimate, scale, onPressIn],\n );\n\n const handlePressOut = useCallback<NonNullable<PressableProps['onPressOut']>>(\n (event) => {\n setPressed(false);\n if (shouldAnimate) {\n scale.value = withSpring(SCALE_EFFECTS.none, BUTTON_SPRING_CONFIG);\n }\n onPressOut?.(event);\n },\n [shouldAnimate, scale, onPressOut],\n );\n\n const a11yState = useMemo(() => ({ disabled: isDisabled, busy: loading }), [isDisabled, loading]);\n\n /* --------------------------------- Styles --------------------------------- */\n // Animate pressed state for shadow\n const pressProgress = useDerivedValue(\n () => withTiming(pressed ? 1 : 0, { duration: 220, easing: Easing.bezier(0, 0, 0.2, 1) }),\n [pressed],\n );\n\n // Animate using Unistyles' variant color system + boxShadow from theme\n const animatedRootStyle = useAnimatedStyle(() => {\n // Get boxShadow from theme using flattened path (no camelCase conversion needed!)\n const components = animatedTheme.value.components as unknown as Record<\n string,\n Record<string, unknown>\n >;\n const shadowPressed = components[`button/variant/${variant}/root/pressed`]?.boxShadow as\n | string\n | undefined;\n\n return {\n transform: [{ scale: scale.value }],\n backgroundColor: withTiming(backgroundColor.value, {\n duration: 220,\n easing: Easing.bezier(0, 0, 0.2, 1),\n }),\n borderColor: withTiming(borderColor.value, {\n duration: 220,\n easing: Easing.bezier(0, 0, 0.2, 1),\n }),\n // Only animate shadow if the theme defines one for this variant\n ...(shadowPressed && {\n boxShadow: interpolateShadowAlpha(shadowPressed, pressProgress.value),\n }),\n };\n });\n\n /* --------------------------------- Render --------------------------------- */\n return (\n <AnimatedPressable\n ref={ref}\n disabled={isDisabled}\n onPressIn={handlePressIn}\n onPressOut={handlePressOut}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n overflow=\"hidden\"\n accessibilityLabel={loading ? `${accessibilityLabel ?? ''}, loading` : accessibilityLabel}\n accessibilityHint={accessibilityHint}\n accessibilityRole=\"button\"\n accessibilityState={a11yState}\n style={[\n iconButtonStyles.root,\n buttonStyles.root,\n foundationStyles.foundation,\n animatedRootStyle,\n typeof style === 'function' ? style({ pressed }) : style,\n ]}\n {...props}\n >\n {loading ? (\n <ActivityIndicator\n size={iconButtonStyles.icon.fontSize}\n color={resolvedIconColor ?? buttonStyles.icon.color}\n />\n ) : (\n <Icon\n name={name}\n variant={iconVariant}\n style={[iconButtonStyles.icon, buttonStyles.icon]}\n dangerouslySetColor={resolvedIconColor}\n />\n )}\n </AnimatedPressable>\n );\n});\n\nIconButton.displayName = 'IconButton';\n\nexport { IconButton, type IconButtonProps };\n"],"mappings":";;;;;;;;;;;;AA2BA,SAAS,uBAAuB,QAA4B,OAAuB;AACjF;CACA,IAAI,CAAC,QACH,OAAO;CAET,IAAI,SAAS,GACX,OAAO;CAET,IAAI,SAAS,GACX,OAAO;CAGT,OAAO,OAAO,QAAQ,sDAAsD,GAAG,GAAG,GAAG,GAAG,MAAM;EAE5F,OAAO,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KADZ,WAAW,EAAE,GAAG,OACS,QAAQ,EAAE,CAAC;GACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEJ,MAAM,aAAa,KAAK,SAAS,WAAW,EAC1C,MACA,UAAU,WACV,OAAO,MACP,cAAc,WACd,WACA,SACA,UACA,OACA,oBACA,mBACA,iBAAiB,OACjB,WACA,YACA,KACA,GAAG,SACe;CAClB,MAAM,aAAa,YAAY;CAC/B,MAAM,gBAAgB,CAAC,kBAAkB,CAAC;CAG1C,MAAM,CAAC,SAAS,cAAc,SAAS,MAAM;CAG7C,iBAAiB,YAAY,EAAE,MAAM,CAAC;CACtC,aAAa,YAAY;EAAE;EAAS,UAAU;EAAY;EAAS,CAAC;CACpE,OAAiB,YAAY,EAAE,OAAO,WAAW,CAAC;CAElD,MAAM,oBAAoB,YACrBA,OAAiB,WAAW,QAC7B,KAAA;CAGJ,MAAM,kBAAkB,wBAAwB,aAAa,MAAM,kBAAkB;CACrF,MAAM,cAAc,wBAAwB,aAAa,MAAM,cAAc;CAG7E,MAAM,gBAAgB,kBAAkB;CAGxC,MAAM,QAAQ,eAAuB,cAAc,KAAK;CAExD,MAAM,gBAAgB,aACnB,UAAU;EACT,WAAW,KAAK;EAChB,IAAI,eACF,MAAM,QAAQ,WAAW,cAAc,MAAM,qBAAqB;EAEpE,YAAY,MAAM;IAEpB;EAAC;EAAe;EAAO;EAAU,CAClC;CAED,MAAM,iBAAiB,aACpB,UAAU;EACT,WAAW,MAAM;EACjB,IAAI,eACF,MAAM,QAAQ,WAAW,cAAc,MAAM,qBAAqB;EAEpE,aAAa,MAAM;IAErB;EAAC;EAAe;EAAO;EAAW,CACnC;CAED,MAAM,YAAY,eAAe;EAAE,UAAU;EAAY,MAAM;EAAS,GAAG,CAAC,YAAY,QAAQ,CAAC;CAIjG,MAAM,gBAAgB,sBACd,WAAW,UAAU,IAAI,GAAG;EAAE,UAAU;EAAK,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAK,EAAE;EAAE,CAAC,EACzF,CAAC,QAAQ,CACV;CAGD,MAAM,oBAAoB,uBAAuB;EAM/C,MAAM,gBAJa,cAAc,MAAM,WAIN,kBAAkB,QAAQ,iBAAiB;EAI5E,OAAO;GACL,WAAW,CAAC,EAAE,OAAO,MAAM,OAAO,CAAC;GACnC,iBAAiB,WAAW,gBAAgB,OAAO;IACjD,UAAU;IACV,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAK,EAAE;IACpC,CAAC;GACF,aAAa,WAAW,YAAY,OAAO;IACzC,UAAU;IACV,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAK,EAAE;IACpC,CAAC;GAEF,GAAI,iBAAiB,EACnB,WAAW,uBAAuB,eAAe,cAAc,MAAM,EACtE;GACF;GACD;CAGF,OACE,oBAAC,mBAAD;EACO;EACL,UAAU;EACV,WAAW;EACX,YAAY;EACZ,eAAc;EACd,YAAW;EACX,gBAAe;EACf,UAAS;EACT,oBAAoB,UAAU,GAAG,sBAAsB,GAAG,aAAa;EACpD;EACnB,mBAAkB;EAClB,oBAAoB;EACpB,OAAO;GACL,iBAAiB;GACjB,aAAa;GACbA,OAAiB;GACjB;GACA,OAAO,UAAU,aAAa,MAAM,EAAE,SAAS,CAAC,GAAG;GACpD;EACD,GAAI;YAEH,UACC,oBAAC,mBAAD;GACE,MAAM,iBAAiB,KAAK;GAC5B,OAAO,qBAAqB,aAAa,KAAK;GAC9C,CAAA,GAEF,oBAAC,MAAD;GACQ;GACN,SAAS;GACT,OAAO,CAAC,iBAAiB,MAAM,aAAa,KAAK;GACjD,qBAAqB;GACrB,CAAA;EAEc,CAAA;EAEtB;AAEF,WAAW,cAAc"}
1
+ {"version":3,"file":"IconButton.js","names":["foundationStyles"],"sources":["../../src/components/IconButton.tsx"],"sourcesContent":["import type { ButtonVariantFlat, IconButtonSize, IconVariant } from '@yahoo/uds-types';\nimport type { Ref } from 'react';\nimport { memo, useCallback, useMemo, useState } from 'react';\nimport type { View } from 'react-native';\nimport { ActivityIndicator } from 'react-native';\nimport {\n Easing,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n withSpring,\n withTiming,\n} from 'react-native-reanimated';\n// eslint-disable-next-line uds/no-use-unistyles -- iconbutton control height from theme size layers\nimport { useUnistyles } from 'react-native-unistyles';\nimport { useAnimatedTheme, useAnimatedVariantColor } from 'react-native-unistyles/reanimated';\n\nimport type { StyleProps } from '../../generated/styles';\nimport { buttonStyles, iconButtonStyles, styles as foundationStyles } from '../../generated/styles';\nimport { BUTTON_SPRING_CONFIG, SCALE_EFFECTS } from '../motion';\nimport { getIconButtonControlMetrics } from './Button/buttonTheme';\nimport type { IconName } from './Icon';\nimport { Icon } from './Icon';\nimport type { PressableProps } from './Pressable';\nimport { AnimatedPressable } from './Pressable';\n\n/* -------------------------------------------------------------------------- */\n/* Animation Helpers */\n/* -------------------------------------------------------------------------- */\n\nfunction interpolateShadowAlpha(shadow: string | undefined, alpha: number): string {\n 'worklet';\n if (!shadow) {\n return '';\n }\n if (alpha >= 1) {\n return shadow;\n }\n if (alpha <= 0) {\n return '';\n }\n\n return shadow.replace(/rgba\\(([^,]+),\\s*([^,]+),\\s*([^,]+),\\s*([^)]+)\\)/g, (_, r, g, b, a) => {\n const newAlpha = parseFloat(a) * alpha;\n return `rgba(${r}, ${g}, ${b}, ${newAlpha.toFixed(3)})`;\n });\n}\n\n/* -------------------------------------------------------------------------- */\n/* IconButton Props */\n/* -------------------------------------------------------------------------- */\n\ninterface IconButtonProps extends Omit<PressableProps, 'children'> {\n /** Icon to render from the icons package */\n name: IconName;\n /** The visual style variant @default 'primary' */\n variant?: ButtonVariantFlat;\n /** The size of the button @default 'md' */\n size?: IconButtonSize;\n /** The icon style variant @default 'outline' */\n iconVariant?: IconVariant;\n /** Override the icon color token without changing the button variant tokens */\n iconColor?: StyleProps['color'];\n /** Shows a loading spinner and disables the button */\n loading?: boolean;\n /**\n * Disable motion effects (scale on press, icon animations)\n * @default false\n */\n disableEffects?: boolean;\n /** Ref to the underlying View */\n ref?: Ref<View>;\n}\n\n/* -------------------------------------------------------------------------- */\n/* IconButton Component */\n/* -------------------------------------------------------------------------- */\n\n/**\n * **An icon button element that can be used to trigger an action**\n *\n * @description\n * An icon-only button for actions where space is limited. Features animated\n * scale effect on press and smooth color transitions matching the web UDS\n * IconButton behavior.\n *\n * @category Interactive\n * @platform mobile\n *\n * @example\n * ```tsx\n * import { IconButton } from '@yahoo/uds-mobile/IconButton';\n *\n * <IconButton name=\"Add\" onPress={() => console.log('pressed')} />\n * <IconButton name=\"Close\" variant=\"secondary\" size=\"sm\" />\n * <IconButton name=\"Settings\" loading />\n * ```\n *\n * @usage\n * - Use for toolbar actions\n * - Use for closing modals/dialogs\n * - Always provide accessibilityLabel for screen readers\n *\n * @accessibility\n * - Sets `accessibilityRole=\"button\"` automatically\n * - Announces loading state to screen readers\n * - **Always** provide `accessibilityLabel` since there's no visible text\n *\n * @see {@link Button} for buttons with text labels\n * @see {@link Icon} for non-interactive icons\n */\nconst IconButton = memo(function IconButton({\n name,\n variant = 'primary',\n size = 'md',\n iconVariant = 'outline',\n iconColor,\n loading,\n disabled,\n style,\n accessibilityLabel,\n accessibilityHint,\n disableEffects = false,\n onPressIn,\n onPressOut,\n ref,\n ...props\n}: IconButtonProps) {\n const isDisabled = disabled || loading;\n const shouldAnimate = !disableEffects && !isDisabled;\n\n const { theme } = useUnistyles();\n const { controlHeight } = useMemo(() => getIconButtonControlMetrics(theme, size), [theme, size]);\n const matchedControlDimensions =\n controlHeight > 0 ? ({ height: controlHeight, width: controlHeight } as const) : undefined;\n\n /* --------------------------------- State ---------------------------------- */\n const [pressed, setPressed] = useState(false);\n\n // Apply layer-based styles with compound variant support\n iconButtonStyles.useVariants({ size });\n buttonStyles.useVariants({ variant, disabled: isDisabled, pressed });\n foundationStyles.useVariants({ color: iconColor });\n\n const resolvedIconColor = iconColor\n ? (foundationStyles.foundation.color as string | undefined)\n : undefined;\n\n // Animate colors using Unistyles' useAnimatedVariantColor\n const backgroundColor = useAnimatedVariantColor(buttonStyles.root, 'backgroundColor');\n const borderColor = useAnimatedVariantColor(buttonStyles.root, 'borderColor');\n\n // Get animated theme for boxShadow\n const animatedTheme = useAnimatedTheme();\n\n /* ------------------------------- Animation -------------------------------- */\n const scale = useSharedValue<number>(SCALE_EFFECTS.none);\n\n const handlePressIn = useCallback<NonNullable<PressableProps['onPressIn']>>(\n (event) => {\n setPressed(true);\n if (shouldAnimate) {\n scale.value = withSpring(SCALE_EFFECTS.down, BUTTON_SPRING_CONFIG);\n }\n onPressIn?.(event);\n },\n [shouldAnimate, scale, onPressIn],\n );\n\n const handlePressOut = useCallback<NonNullable<PressableProps['onPressOut']>>(\n (event) => {\n setPressed(false);\n if (shouldAnimate) {\n scale.value = withSpring(SCALE_EFFECTS.none, BUTTON_SPRING_CONFIG);\n }\n onPressOut?.(event);\n },\n [shouldAnimate, scale, onPressOut],\n );\n\n const a11yState = useMemo(() => ({ disabled: isDisabled, busy: loading }), [isDisabled, loading]);\n\n /* --------------------------------- Styles --------------------------------- */\n // Animate pressed state for shadow\n const pressProgress = useDerivedValue(\n () => withTiming(pressed ? 1 : 0, { duration: 220, easing: Easing.bezier(0, 0, 0.2, 1) }),\n [pressed],\n );\n\n // Animate using Unistyles' variant color system + boxShadow from theme\n const animatedRootStyle = useAnimatedStyle(() => {\n // Get boxShadow from theme using flattened path (no camelCase conversion needed!)\n const components = animatedTheme.value.components as unknown as Record<\n string,\n Record<string, unknown>\n >;\n const shadowPressed = components[`button/variant/${variant}/root/pressed`]?.boxShadow as\n | string\n | undefined;\n\n return {\n transform: [{ scale: scale.value }],\n backgroundColor: withTiming(backgroundColor.value, {\n duration: 220,\n easing: Easing.bezier(0, 0, 0.2, 1),\n }),\n borderColor: withTiming(borderColor.value, {\n duration: 220,\n easing: Easing.bezier(0, 0, 0.2, 1),\n }),\n // Only animate shadow if the theme defines one for this variant\n ...(shadowPressed && {\n boxShadow: interpolateShadowAlpha(shadowPressed, pressProgress.value),\n }),\n };\n });\n\n /* --------------------------------- Render --------------------------------- */\n return (\n <AnimatedPressable\n ref={ref}\n disabled={isDisabled}\n onPressIn={handlePressIn}\n onPressOut={handlePressOut}\n flexDirection=\"row\"\n alignItems=\"center\"\n justifyContent=\"center\"\n overflow=\"hidden\"\n accessibilityLabel={loading ? `${accessibilityLabel ?? ''}, loading` : accessibilityLabel}\n accessibilityHint={accessibilityHint}\n accessibilityRole=\"button\"\n accessibilityState={a11yState}\n style={[\n iconButtonStyles.root,\n buttonStyles.root,\n matchedControlDimensions,\n foundationStyles.foundation,\n animatedRootStyle,\n typeof style === 'function' ? style({ pressed }) : style,\n ]}\n {...props}\n >\n {loading ? (\n <ActivityIndicator\n size={iconButtonStyles.icon.fontSize}\n color={resolvedIconColor ?? buttonStyles.icon.color}\n />\n ) : (\n <Icon\n name={name}\n variant={iconVariant}\n style={[iconButtonStyles.icon, buttonStyles.icon]}\n dangerouslySetColor={resolvedIconColor}\n />\n )}\n </AnimatedPressable>\n );\n});\n\nIconButton.displayName = 'IconButton';\n\nexport { IconButton, type IconButtonProps };\n"],"mappings":";;;;;;;;;;;;;;AA8BA,SAAS,uBAAuB,QAA4B,OAAuB;AACjF;CACA,IAAI,CAAC,QACH,OAAO;CAET,IAAI,SAAS,GACX,OAAO;CAET,IAAI,SAAS,GACX,OAAO;CAGT,OAAO,OAAO,QAAQ,sDAAsD,GAAG,GAAG,GAAG,GAAG,MAAM;EAE5F,OAAO,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KADZ,WAAW,EAAE,GAAG,OACS,QAAQ,EAAE,CAAC;GACrD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEJ,MAAM,aAAa,KAAK,SAAS,WAAW,EAC1C,MACA,UAAU,WACV,OAAO,MACP,cAAc,WACd,WACA,SACA,UACA,OACA,oBACA,mBACA,iBAAiB,OACjB,WACA,YACA,KACA,GAAG,SACe;CAClB,MAAM,aAAa,YAAY;CAC/B,MAAM,gBAAgB,CAAC,kBAAkB,CAAC;CAE1C,MAAM,EAAE,UAAU,cAAc;CAChC,MAAM,EAAE,kBAAkB,cAAc,4BAA4B,OAAO,KAAK,EAAE,CAAC,OAAO,KAAK,CAAC;CAChG,MAAM,2BACJ,gBAAgB,IAAK;EAAE,QAAQ;EAAe,OAAO;EAAe,GAAa,KAAA;CAGnF,MAAM,CAAC,SAAS,cAAc,SAAS,MAAM;CAG7C,iBAAiB,YAAY,EAAE,MAAM,CAAC;CACtC,aAAa,YAAY;EAAE;EAAS,UAAU;EAAY;EAAS,CAAC;CACpE,OAAiB,YAAY,EAAE,OAAO,WAAW,CAAC;CAElD,MAAM,oBAAoB,YACrBA,OAAiB,WAAW,QAC7B,KAAA;CAGJ,MAAM,kBAAkB,wBAAwB,aAAa,MAAM,kBAAkB;CACrF,MAAM,cAAc,wBAAwB,aAAa,MAAM,cAAc;CAG7E,MAAM,gBAAgB,kBAAkB;CAGxC,MAAM,QAAQ,eAAuB,cAAc,KAAK;CAExD,MAAM,gBAAgB,aACnB,UAAU;EACT,WAAW,KAAK;EAChB,IAAI,eACF,MAAM,QAAQ,WAAW,cAAc,MAAM,qBAAqB;EAEpE,YAAY,MAAM;IAEpB;EAAC;EAAe;EAAO;EAAU,CAClC;CAED,MAAM,iBAAiB,aACpB,UAAU;EACT,WAAW,MAAM;EACjB,IAAI,eACF,MAAM,QAAQ,WAAW,cAAc,MAAM,qBAAqB;EAEpE,aAAa,MAAM;IAErB;EAAC;EAAe;EAAO;EAAW,CACnC;CAED,MAAM,YAAY,eAAe;EAAE,UAAU;EAAY,MAAM;EAAS,GAAG,CAAC,YAAY,QAAQ,CAAC;CAIjG,MAAM,gBAAgB,sBACd,WAAW,UAAU,IAAI,GAAG;EAAE,UAAU;EAAK,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAK,EAAE;EAAE,CAAC,EACzF,CAAC,QAAQ,CACV;CAGD,MAAM,oBAAoB,uBAAuB;EAM/C,MAAM,gBAJa,cAAc,MAAM,WAIN,kBAAkB,QAAQ,iBAAiB;EAI5E,OAAO;GACL,WAAW,CAAC,EAAE,OAAO,MAAM,OAAO,CAAC;GACnC,iBAAiB,WAAW,gBAAgB,OAAO;IACjD,UAAU;IACV,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAK,EAAE;IACpC,CAAC;GACF,aAAa,WAAW,YAAY,OAAO;IACzC,UAAU;IACV,QAAQ,OAAO,OAAO,GAAG,GAAG,IAAK,EAAE;IACpC,CAAC;GAEF,GAAI,iBAAiB,EACnB,WAAW,uBAAuB,eAAe,cAAc,MAAM,EACtE;GACF;GACD;CAGF,OACE,oBAAC,mBAAD;EACO;EACL,UAAU;EACV,WAAW;EACX,YAAY;EACZ,eAAc;EACd,YAAW;EACX,gBAAe;EACf,UAAS;EACT,oBAAoB,UAAU,GAAG,sBAAsB,GAAG,aAAa;EACpD;EACnB,mBAAkB;EAClB,oBAAoB;EACpB,OAAO;GACL,iBAAiB;GACjB,aAAa;GACb;GACAA,OAAiB;GACjB;GACA,OAAO,UAAU,aAAa,MAAM,EAAE,SAAS,CAAC,GAAG;GACpD;EACD,GAAI;YAEH,UACC,oBAAC,mBAAD;GACE,MAAM,iBAAiB,KAAK;GAC5B,OAAO,qBAAqB,aAAa,KAAK;GAC9C,CAAA,GAEF,oBAAC,MAAD;GACQ;GACN,SAAS;GACT,OAAO,CAAC,iBAAiB,MAAM,aAAa,KAAK;GACjD,qBAAqB;GACrB,CAAA;EAEc,CAAA;EAEtB;AAEF,WAAW,cAAc"}
package/fonts/index.cjs CHANGED
@@ -1,270 +1,279 @@
1
1
 
2
- module.exports.fonts = [
3
- require.resolve('@yahoo/uds-mobile/fonts/yas-regular-italic.otf'),
2
+ const fonts = [];
3
+
4
+ try {
5
+ fonts.push(require.resolve('@yahoo/uds-icons/generated/font/uds-icons.ttf'));
6
+ } catch {
7
+ // @yahoo/uds-icons is optional unless icon components are used.
8
+ }
9
+
10
+ fonts.push(
4
11
  require.resolve('@yahoo/uds-mobile/fonts/centra-no2-black-italic.otf'),
5
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-medium-italic.otf'),
6
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-light.otf'),
7
- require.resolve('@yahoo/uds-mobile/fonts/yas-light-italic.otf'),
8
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-bold-italic.otf'),
9
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-semibold-italic.otf'),
10
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-light.otf'),
11
- require.resolve('@yahoo/uds-mobile/fonts/gelica-bold.otf'),
12
- require.resolve('@yahoo/uds-mobile/fonts/gelica-light-italic.otf'),
13
- require.resolve('@yahoo/uds-mobile/fonts/gelica-bold-italic.otf'),
14
- require.resolve('@yahoo/uds-mobile/fonts/gelica-medium-italic.otf'),
15
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-regular.otf'),
16
- require.resolve('@yahoo/uds-mobile/fonts/yas-medium.otf'),
17
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-extrabold.otf'),
18
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-regular-italic.otf'),
12
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-black.otf'),
13
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-bold-italic.otf'),
14
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-bold.otf'),
15
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-book-italic.otf'),
16
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-book.otf'),
19
17
  require.resolve('@yahoo/uds-mobile/fonts/centra-no2-extrabold-italic.otf'),
20
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-extrabold.otf'),
21
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-regular.otf'),
22
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-light.otf'),
23
- require.resolve('@yahoo/uds-mobile/fonts/yas-light.otf'),
24
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-black.otf'),
25
- require.resolve('@yahoo/uds-mobile/fonts/gelica-light.otf'),
26
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-medium.otf'),
27
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-semibold.otf'),
28
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-semibold-italic.otf'),
29
18
  require.resolve('@yahoo/uds-mobile/fonts/centra-no2-extrabold.otf'),
30
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-regular.otf'),
19
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-hairline-italic.otf'),
20
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-hairline.otf'),
21
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-light-italic.otf'),
22
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-light.otf'),
23
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-medium-italic.otf'),
31
24
  require.resolve('@yahoo/uds-mobile/fonts/centra-no2-medium.otf'),
32
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-semibold.otf'),
33
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-regular-italic.otf'),
25
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-thin-italic.otf'),
26
+ require.resolve('@yahoo/uds-mobile/fonts/centra-no2-thin.otf'),
27
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-black-italic.otf'),
28
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-black.otf'),
29
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-bold-italic.otf'),
30
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-bold.otf'),
31
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-extra-light-italic.otf'),
32
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-extra-light.otf'),
33
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-light-italic.otf'),
34
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-light.otf'),
35
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-medium-italic.otf'),
36
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-medium.otf'),
37
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-regular-italic.otf'),
38
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-regular.otf'),
39
+ require.resolve('@yahoo/uds-mobile/fonts/gelica-semi-bold-italic.otf'),
34
40
  require.resolve('@yahoo/uds-mobile/fonts/gelica-semi-bold.otf'),
35
41
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-bold.otf'),
36
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-black-italic.otf'),
37
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-bold-italic.otf'),
42
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-medium.otf'),
38
43
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-regular.otf'),
39
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-black.otf'),
40
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-light-italic.otf'),
41
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-black.otf'),
44
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-beta-bold.otf'),
42
45
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-beta-medium.otf'),
43
- require.resolve('@yahoo/uds-mobile/fonts/gelica-extra-light-italic.otf'),
44
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-bold.otf'),
45
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-light.otf'),
46
- require.resolve('@yahoo/uds-mobile/fonts/yas-medium-italic.otf'),
47
- require.resolve('@yahoo/uds-mobile/fonts/yas-black.otf'),
48
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-regular.otf'),
49
- require.resolve('@yahoo/uds-mobile/fonts/gelica-black.otf'),
46
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-beta-regular.otf'),
47
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-black.otf'),
48
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-bold.otf'),
49
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-black.otf'),
50
50
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-bold.otf'),
51
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-light.otf'),
52
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-medium.otf'),
53
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-regular.otf'),
54
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-extrabold.otf'),
55
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-extralight.otf'),
56
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-italic.otf'),
57
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-light.otf'),
51
58
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-medium.otf'),
52
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-beta-bold.otf'),
53
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-medium.otf'),
54
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-light.otf'),
55
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-light.otf'),
56
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-light-italic.otf'),
57
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-text-bold.otf'),
58
- require.resolve('@yahoo/uds-mobile/fonts/yas-semibold.otf'),
59
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-hairline-italic.otf'),
60
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-book-italic.otf'),
61
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-thin.otf'),
59
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-regular-italic.otf'),
60
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-regular.otf'),
61
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-semibold.otf'),
62
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-black.otf'),
62
63
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-bold.otf'),
63
- require.resolve('@yahoo/uds-mobile/fonts/gelica-medium.otf'),
64
- require.resolve('@yahoo/uds-mobile/fonts/yas-regular.otf'),
65
- require.resolve('@yahoo/uds-mobile/fonts/gelica-black-italic.otf'),
66
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-black.otf'),
67
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-medium-italic.otf'),
68
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-bold.otf'),
64
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-extrabold.otf'),
65
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-light.otf'),
66
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-regular.otf'),
67
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-text-bold.otf'),
69
68
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-text-italic.otf'),
70
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-regular-italic.otf'),
71
- require.resolve('@yahoo/uds-mobile/fonts/yas-semibold-italic.otf'),
72
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-medium.otf'),
73
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-black.otf'),
74
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-bold.otf'),
75
69
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-text-regular.otf'),
76
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-medium-italic.otf'),
77
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-display-black.otf'),
78
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-extralight.otf'),
79
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-black-italic.otf'),
80
- require.resolve('@yahoo/uds-mobile/fonts/gelica-regular.otf'),
81
- require.resolve('@yahoo/uds-mobile/fonts/yas-extended-semibold.otf'),
82
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-regular.otf'),
83
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-bold-italic.otf'),
84
- require.resolve('@yahoo/uds-mobile/fonts/yas-bold-italic.otf'),
85
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-italic.otf'),
86
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-beta-regular.otf'),
87
- require.resolve('@yahoo/uds-mobile/fonts/gelica-semi-bold-italic.otf'),
88
- require.resolve('@yahoo/uds-mobile/fonts/gelica-extra-light.otf'),
89
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-light-italic.otf'),
90
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-medium.otf'),
91
- require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-bold.otf'),
92
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-book.otf'),
93
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-thin-italic.otf'),
94
70
  require.resolve('@yahoo/uds-mobile/fonts/yas-black-italic.otf'),
71
+ require.resolve('@yahoo/uds-mobile/fonts/yas-black.otf'),
72
+ require.resolve('@yahoo/uds-mobile/fonts/yas-bold-italic.otf'),
95
73
  require.resolve('@yahoo/uds-mobile/fonts/yas-bold.otf'),
96
- require.resolve('@yahoo/uds-mobile/fonts/centra-no2-hairline.otf'),
97
- require.resolve('@yahoo/uds-mobile/fonts/gelica-regular-italic.otf'),
74
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-black-italic.otf'),
75
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-black.otf'),
76
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-bold-italic.otf'),
77
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-bold.otf'),
78
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-light-italic.otf'),
79
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-light.otf'),
80
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-medium-italic.otf'),
81
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-medium.otf'),
82
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-regular-italic.otf'),
83
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-regular.otf'),
84
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-semibold-italic.otf'),
85
+ require.resolve('@yahoo/uds-mobile/fonts/yas-condensed-semibold.otf'),
86
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-black-italic.otf'),
87
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-black.otf'),
88
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-bold-italic.otf'),
89
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-bold.otf'),
90
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-light-italic.otf'),
91
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-light.otf'),
92
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-medium-italic.otf'),
93
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-medium.otf'),
94
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-regular-italic.otf'),
95
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-regular.otf'),
96
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-semibold-italic.otf'),
97
+ require.resolve('@yahoo/uds-mobile/fonts/yas-extended-semibold.otf'),
98
+ require.resolve('@yahoo/uds-mobile/fonts/yas-light-italic.otf'),
99
+ require.resolve('@yahoo/uds-mobile/fonts/yas-light.otf'),
100
+ require.resolve('@yahoo/uds-mobile/fonts/yas-medium-italic.otf'),
101
+ require.resolve('@yahoo/uds-mobile/fonts/yas-medium.otf'),
102
+ require.resolve('@yahoo/uds-mobile/fonts/yas-regular-italic.otf'),
103
+ require.resolve('@yahoo/uds-mobile/fonts/yas-regular.otf'),
104
+ require.resolve('@yahoo/uds-mobile/fonts/yas-semibold-italic.otf'),
105
+ require.resolve('@yahoo/uds-mobile/fonts/yas-semibold.otf'),
106
+ require.resolve('@yahoo/uds-mobile/fonts/inter-black.ttf'),
107
+ require.resolve('@yahoo/uds-mobile/fonts/inter-bold.ttf'),
108
+ require.resolve('@yahoo/uds-mobile/fonts/inter-extra-bold.ttf'),
109
+ require.resolve('@yahoo/uds-mobile/fonts/inter-extra-light.ttf'),
98
110
  require.resolve('@yahoo/uds-mobile/fonts/inter-light.ttf'),
99
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-bold.ttf'),
100
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-text-bold-italic.ttf'),
101
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-cr4-medium.ttf'),
102
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-bold-italic.ttf'),
103
111
  require.resolve('@yahoo/uds-mobile/fonts/inter-medium.ttf'),
104
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-bold-italic.ttf'),
105
- require.resolve('@yahoo/uds-mobile/fonts/inter-extra-light.ttf'),
106
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-black-italic.ttf'),
107
- require.resolve('@yahoo/uds-mobile/fonts/inter-bold.ttf'),
108
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-thin-italic.ttf'),
109
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-medium.ttf'),
110
- require.resolve('@yahoo/uds-mobile/fonts/inter-thin.ttf'),
111
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-cr4-regular.ttf'),
112
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-cr4-bold.ttf'),
113
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-semibold-italic.ttf'),
114
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-regular.ttf'),
115
112
  require.resolve('@yahoo/uds-mobile/fonts/inter-regular.ttf'),
116
- require.resolve('@yahoo/uds-mobile/fonts/uds-icons.ttf'),
117
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-semibold.ttf'),
118
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-regular-italic.ttf'),
113
+ require.resolve('@yahoo/uds-mobile/fonts/inter-semi-bold.ttf'),
114
+ require.resolve('@yahoo/uds-mobile/fonts/inter-thin.ttf'),
115
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-bold-italic.ttf'),
116
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-bold.ttf'),
119
117
  require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-light-italic.ttf'),
118
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-light.ttf'),
119
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-medium-italic.ttf'),
120
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-medium.ttf'),
121
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-regular-italic.ttf'),
122
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-regular.ttf'),
123
+ require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-thin-italic.ttf'),
120
124
  require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-thin.ttf'),
125
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-black-italic.ttf'),
121
126
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-black.ttf'),
122
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-regular.ttf'),
123
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-medium.ttf'),
124
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-xbold.ttf'),
127
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-bold-italic.ttf'),
128
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-bold.ttf'),
125
129
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-light-italic.ttf'),
126
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-bold.ttf'),
127
- require.resolve('@yahoo/uds-mobile/fonts/inter-semi-bold.ttf'),
128
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-light.ttf'),
129
- require.resolve('@yahoo/uds-mobile/fonts/inter-black.ttf'),
130
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-medium-italic.ttf'),
131
130
  require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-light.ttf'),
132
- require.resolve('@yahoo/uds-mobile/fonts/inter-extra-bold.ttf'),
133
- require.resolve('@yahoo/uds-mobile/fonts/roboto-mono-medium-italic.ttf'),
134
- require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-regular-italic.ttf')
135
- ];
131
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-medium-italic.ttf'),
132
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-medium.ttf'),
133
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-regular-italic.ttf'),
134
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-regular.ttf'),
135
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-semibold-italic.ttf'),
136
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-product-sans-extended-semibold.ttf'),
137
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-condensed-xbold.ttf'),
138
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-cr4-bold.ttf'),
139
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-cr4-medium.ttf'),
140
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-sans-cr4-regular.ttf'),
141
+ require.resolve('@yahoo/uds-mobile/fonts/yahoo-serif-text-bold-italic.ttf')
142
+ );
143
+
144
+ module.exports.fonts = fonts;
136
145
 
137
146
  module.exports.fontAliasToPostscript = {
138
147
  "uds-icons": "uds-icons",
139
- "yas-regular-italic": "YASans-Italic",
140
148
  "centra-no2-black-italic": "CentraNo2-BlackItalic",
141
- "yas-condensed-medium-italic": "YASansCn-MediumItalic",
142
- "yahoo-sans-light": "YahooSans-Light",
143
- "yas-light-italic": "YASans-LightItalic",
144
- "yas-condensed-bold-italic": "YASansCn-BoldItalic",
145
- "yas-extended-semibold-italic": "YASansExt-SmBdItalic",
146
- "yahoo-serif-display-light": "YahooSerifDisplay-Light",
147
- "gelica-bold": "Gelica-Bold",
148
- "gelica-light-italic": "Gelica-LightItalic",
149
- "gelica-bold-italic": "Gelica-BoldItalic",
150
- "gelica-medium-italic": "Gelica-MediumItalic",
151
- "yahoo-sans-condensed-regular": "YahooSansCond-Regular",
152
- "yas-medium": "YASans-Medium",
153
- "yahoo-serif-display-extrabold": "YahooSerifDisplay-Extrabold",
154
- "yahoo-sans-regular-italic": "YahooSans-Italic",
149
+ "centra-no2-black": "CentraNo2-Black",
150
+ "centra-no2-bold-italic": "CentraNo2-BoldItalic",
151
+ "centra-no2-bold": "CentraNo2-Bold",
152
+ "centra-no2-book-italic": "CentraNo2-BookItalic",
153
+ "centra-no2-book": "CentraNo2-Book",
155
154
  "centra-no2-extrabold-italic": "CentraNo2-ExtraBoldItalic",
156
- "yahoo-sans-extrabold": "YahooSans-ExtraBold",
157
- "yahoo-serif-display-regular": "YahooSerifDisplay-Regular",
158
- "yas-condensed-light": "YASansCn-Light",
159
- "yas-light": "YASans-Light",
160
- "yas-condensed-black": "YASansCn-Black",
161
- "gelica-light": "Gelica-Light",
162
- "yahoo-product-sans-medium": "YahooProductSans-Medium",
163
- "yas-condensed-semibold": "YASansCn-SmBd",
164
- "yas-condensed-semibold-italic": "YASansCn-SmBdItalic",
165
155
  "centra-no2-extrabold": "CentraNo2-ExtraBold",
166
- "yahoo-sans-regular": "YahooSans-Regular",
156
+ "centra-no2-hairline-italic": "CentraNo2-HairlineItalic",
157
+ "centra-no2-hairline": "CentraNo2-Hairline",
158
+ "centra-no2-light-italic": "CentraNo2-LightItalic",
159
+ "centra-no2-light": "CentraNo2-Light",
160
+ "centra-no2-medium-italic": "CentraNo2-MediumItalic",
167
161
  "centra-no2-medium": "CentraNo2-Medium",
168
- "yahoo-sans-semibold": "YahooSans-Semibold",
169
- "yas-extended-regular-italic": "YASansExt-Italic",
162
+ "centra-no2-thin-italic": "CentraNo2-ThinItalic",
163
+ "centra-no2-thin": "CentraNo2-Thin",
164
+ "gelica-black-italic": "Gelica-BlackItalic",
165
+ "gelica-black": "Gelica-Black",
166
+ "gelica-bold-italic": "Gelica-BoldItalic",
167
+ "gelica-bold": "Gelica-Bold",
168
+ "gelica-extra-light-italic": "Gelica-ExtraLightItalic",
169
+ "gelica-extra-light": "Gelica-ExtraLight",
170
+ "gelica-light-italic": "Gelica-LightItalic",
171
+ "gelica-light": "Gelica-Light",
172
+ "gelica-medium-italic": "Gelica-MediumItalic",
173
+ "gelica-medium": "Gelica-Medium",
174
+ "gelica-regular-italic": "Gelica-Italic",
175
+ "gelica-regular": "Gelica-Regular",
176
+ "gelica-semi-bold-italic": "Gelica-SemiBoldItalic",
170
177
  "gelica-semi-bold": "Gelica-SemiBold",
171
178
  "yahoo-product-sans-bold": "YahooProductSans-Bold",
172
- "yas-condensed-black-italic": "YASansCn-BlackItalic",
173
- "yas-extended-bold-italic": "YASansExt-BoldItalic",
179
+ "yahoo-product-sans-medium": "YahooProductSans-Medium",
174
180
  "yahoo-product-sans-regular": "YahooProductSans",
175
- "yahoo-sans-black": "YahooSans-Black",
176
- "yas-extended-light-italic": "YASansExt-LightItalic",
177
- "yas-extended-black": "YASansExt-Black",
181
+ "yahoo-sans-beta-bold": "YahooCR2BETA-Bold",
178
182
  "yahoo-sans-beta-medium": "YahooCR2BETA-Medium",
179
- "gelica-extra-light-italic": "Gelica-ExtraLightItalic",
180
- "yas-extended-bold": "YASansExt-Bold",
181
- "yahoo-sans-condensed-light": "YahooSansCond-Light",
182
- "yas-medium-italic": "YASans-MediumItalic",
183
- "yas-black": "YASans-Black",
184
- "yas-extended-regular": "YASansExt",
185
- "gelica-black": "Gelica-Black",
183
+ "yahoo-sans-beta-regular": "YahooCR2BETA-Regular",
184
+ "yahoo-sans-black": "YahooSans-Black",
185
+ "yahoo-sans-bold": "YahooSans-Bold",
186
+ "yahoo-sans-condensed-black": "YahooSansCond-Black",
186
187
  "yahoo-sans-condensed-bold": "YahooSansCond-Bold",
188
+ "yahoo-sans-condensed-light": "YahooSansCond-Light",
189
+ "yahoo-sans-condensed-medium": "YahooSansCond-Medium",
190
+ "yahoo-sans-condensed-regular": "YahooSansCond-Regular",
191
+ "yahoo-sans-extrabold": "YahooSans-ExtraBold",
192
+ "yahoo-sans-extralight": "YahooSans-ExtraLight",
193
+ "yahoo-sans-italic": "YahooSans-Italic",
194
+ "yahoo-sans-light": "YahooSans-Light",
187
195
  "yahoo-sans-medium": "YahooSans-Medium",
188
- "yahoo-sans-beta-bold": "YahooCR2BETA-Bold",
189
- "yas-extended-medium": "YASansExt-Medium",
190
- "yas-extended-light": "YASansExt-Light",
191
- "centra-no2-light": "CentraNo2-Light",
192
- "centra-no2-light-italic": "CentraNo2-LightItalic",
193
- "yahoo-serif-text-bold": "YahooSerifText-Bold",
194
- "yas-semibold": "YASans-SmBd",
195
- "centra-no2-hairline-italic": "CentraNo2-HairlineItalic",
196
- "centra-no2-book-italic": "CentraNo2-BookItalic",
197
- "centra-no2-thin": "CentraNo2-Thin",
196
+ "yahoo-sans-regular-italic": "YahooSans-Italic",
197
+ "yahoo-sans-regular": "YahooSans-Regular",
198
+ "yahoo-sans-semibold": "YahooSans-Semibold",
199
+ "yahoo-serif-display-black": "YahooSerifDisplay-Black",
198
200
  "yahoo-serif-display-bold": "YahooSerifDisplay-Bold",
199
- "gelica-medium": "Gelica-Medium",
200
- "yas-regular": "YASans",
201
- "gelica-black-italic": "Gelica-BlackItalic",
202
- "centra-no2-black": "CentraNo2-Black",
203
- "centra-no2-medium-italic": "CentraNo2-MediumItalic",
204
- "yahoo-sans-bold": "YahooSans-Bold",
201
+ "yahoo-serif-display-extrabold": "YahooSerifDisplay-Extrabold",
202
+ "yahoo-serif-display-light": "YahooSerifDisplay-Light",
203
+ "yahoo-serif-display-regular": "YahooSerifDisplay-Regular",
204
+ "yahoo-serif-text-bold": "YahooSerifText-Bold",
205
205
  "yahoo-serif-text-italic": "YahooSerifText-Italic",
206
- "yas-condensed-regular-italic": "YASansCn-Italic",
207
- "yas-semibold-italic": "YASans-SmBdItalic",
208
- "yas-condensed-medium": "YASansCn-Medium",
209
- "yahoo-sans-condensed-black": "YahooSansCond-Black",
210
- "centra-no2-bold": "CentraNo2-Bold",
211
206
  "yahoo-serif-text-regular": "YahooSerifText-Regular",
212
- "yas-extended-medium-italic": "YASansExt-MediumItalic",
213
- "yahoo-serif-display-black": "YahooSerifDisplay-Black",
214
- "yahoo-sans-extralight": "YahooSans-ExtraLight",
215
- "yas-extended-black-italic": "YASansExt-BlackItalic",
216
- "gelica-regular": "Gelica-Regular",
217
- "yas-extended-semibold": "YASansExt-SmBd",
218
- "yas-condensed-regular": "YASansCn",
219
- "centra-no2-bold-italic": "CentraNo2-BoldItalic",
220
- "yas-bold-italic": "YASans-BoldItalic",
221
- "yahoo-sans-italic": "YahooSans-Italic",
222
- "yahoo-sans-beta-regular": "YahooCR2BETA-Regular",
223
- "gelica-semi-bold-italic": "Gelica-SemiBoldItalic",
224
- "gelica-extra-light": "Gelica-ExtraLight",
225
- "yas-condensed-light-italic": "YASansCn-LightItalic",
226
- "yahoo-sans-condensed-medium": "YahooSansCond-Medium",
227
- "yas-condensed-bold": "YASansCn-Bold",
228
- "centra-no2-book": "CentraNo2-Book",
229
- "centra-no2-thin-italic": "CentraNo2-ThinItalic",
230
207
  "yas-black-italic": "YASans-BlackItalic",
208
+ "yas-black": "YASans-Black",
209
+ "yas-bold-italic": "YASans-BoldItalic",
231
210
  "yas-bold": "YASans-Bold",
232
- "centra-no2-hairline": "CentraNo2-Hairline",
233
- "gelica-regular-italic": "Gelica-Italic",
211
+ "yas-condensed-black-italic": "YASansCn-BlackItalic",
212
+ "yas-condensed-black": "YASansCn-Black",
213
+ "yas-condensed-bold-italic": "YASansCn-BoldItalic",
214
+ "yas-condensed-bold": "YASansCn-Bold",
215
+ "yas-condensed-light-italic": "YASansCn-LightItalic",
216
+ "yas-condensed-light": "YASansCn-Light",
217
+ "yas-condensed-medium-italic": "YASansCn-MediumItalic",
218
+ "yas-condensed-medium": "YASansCn-Medium",
219
+ "yas-condensed-regular-italic": "YASansCn-Italic",
220
+ "yas-condensed-regular": "YASansCn",
221
+ "yas-condensed-semibold-italic": "YASansCn-SmBdItalic",
222
+ "yas-condensed-semibold": "YASansCn-SmBd",
223
+ "yas-extended-black-italic": "YASansExt-BlackItalic",
224
+ "yas-extended-black": "YASansExt-Black",
225
+ "yas-extended-bold-italic": "YASansExt-BoldItalic",
226
+ "yas-extended-bold": "YASansExt-Bold",
227
+ "yas-extended-light-italic": "YASansExt-LightItalic",
228
+ "yas-extended-light": "YASansExt-Light",
229
+ "yas-extended-medium-italic": "YASansExt-MediumItalic",
230
+ "yas-extended-medium": "YASansExt-Medium",
231
+ "yas-extended-regular-italic": "YASansExt-Italic",
232
+ "yas-extended-regular": "YASansExt",
233
+ "yas-extended-semibold-italic": "YASansExt-SmBdItalic",
234
+ "yas-extended-semibold": "YASansExt-SmBd",
235
+ "yas-light-italic": "YASans-LightItalic",
236
+ "yas-light": "YASans-Light",
237
+ "yas-medium-italic": "YASans-MediumItalic",
238
+ "yas-medium": "YASans-Medium",
239
+ "yas-regular-italic": "YASans-Italic",
240
+ "yas-regular": "YASans",
241
+ "yas-semibold-italic": "YASans-SmBdItalic",
242
+ "yas-semibold": "YASans-SmBd",
243
+ "inter-black": "InterVariable-TextBlack",
244
+ "inter-bold": "InterVariable-TextBold",
245
+ "inter-extra-bold": "InterVariable-TextExtraBold",
246
+ "inter-extra-light": "InterVariable-TextExtraLight",
234
247
  "inter-light": "InterVariable-TextLight",
235
- "yahoo-product-sans-extended-bold": "YahooSans-Regular",
236
- "yahoo-serif-text-bold-italic": "YahooSerifText-BoldItalic",
237
- "yahoo-sans-cr4-medium": "YahooCR4BETA-VF",
238
- "roboto-mono-bold-italic": "RobotoMono-BoldItalic",
239
248
  "inter-medium": "InterVariable-TextMedium",
240
- "yahoo-product-sans-extended-bold-italic": "YahooSans-Regular",
241
- "inter-extra-light": "InterVariable-TextExtraLight",
242
- "yahoo-product-sans-extended-black-italic": "YahooSans-Regular",
243
- "inter-bold": "InterVariable-TextBold",
244
- "roboto-mono-thin-italic": "RobotoMono-ThinItalic",
245
- "yahoo-product-sans-extended-medium": "YahooSans-Regular",
246
- "inter-thin": "InterVariable-TextThin",
247
- "yahoo-sans-cr4-regular": "YahooCR4BETA-VF",
248
- "yahoo-sans-cr4-bold": "YahooCR4BETA-VF",
249
- "yahoo-product-sans-extended-semibold-italic": "YahooSans-Regular",
250
- "roboto-mono-regular": "RobotoMono-Regular",
251
249
  "inter-regular": "InterVariable-Text",
252
- "yahoo-product-sans-extended-semibold": "YahooSans-Regular",
253
- "roboto-mono-regular-italic": "RobotoMono-Italic",
250
+ "inter-semi-bold": "InterVariable-TextSemiBold",
251
+ "inter-thin": "InterVariable-TextThin",
252
+ "roboto-mono-bold-italic": "RobotoMono-BoldItalic",
253
+ "roboto-mono-bold": "RobotoMono-Bold",
254
254
  "roboto-mono-light-italic": "RobotoMono-LightItalic",
255
+ "roboto-mono-light": "RobotoMono-Light",
256
+ "roboto-mono-medium-italic": "RobotoMono-MediumItalic",
257
+ "roboto-mono-medium": "RobotoMono-Medium",
258
+ "roboto-mono-regular-italic": "RobotoMono-Italic",
259
+ "roboto-mono-regular": "RobotoMono-Regular",
260
+ "roboto-mono-thin-italic": "RobotoMono-ThinItalic",
255
261
  "roboto-mono-thin": "RobotoMono-Thin",
262
+ "yahoo-product-sans-extended-black-italic": "YahooSans-Regular",
256
263
  "yahoo-product-sans-extended-black": "YahooSans-Regular",
257
- "yahoo-product-sans-extended-regular": "YahooSans-Regular",
258
- "roboto-mono-medium": "RobotoMono-Medium",
259
- "yahoo-sans-condensed-xbold": "YahooSansCond-Bold",
264
+ "yahoo-product-sans-extended-bold-italic": "YahooSans-Regular",
265
+ "yahoo-product-sans-extended-bold": "YahooSans-Regular",
260
266
  "yahoo-product-sans-extended-light-italic": "YahooSans-Regular",
261
- "roboto-mono-bold": "RobotoMono-Bold",
262
- "inter-semi-bold": "InterVariable-TextSemiBold",
263
- "roboto-mono-light": "RobotoMono-Light",
264
- "inter-black": "InterVariable-TextBlack",
265
- "yahoo-product-sans-extended-medium-italic": "YahooSans-Regular",
266
267
  "yahoo-product-sans-extended-light": "YahooSans-Regular",
267
- "inter-extra-bold": "InterVariable-TextExtraBold",
268
- "roboto-mono-medium-italic": "RobotoMono-MediumItalic",
269
- "yahoo-product-sans-extended-regular-italic": "YahooSans-Regular"
268
+ "yahoo-product-sans-extended-medium-italic": "YahooSans-Regular",
269
+ "yahoo-product-sans-extended-medium": "YahooSans-Regular",
270
+ "yahoo-product-sans-extended-regular-italic": "YahooSans-Regular",
271
+ "yahoo-product-sans-extended-regular": "YahooSans-Regular",
272
+ "yahoo-product-sans-extended-semibold-italic": "YahooSans-Regular",
273
+ "yahoo-product-sans-extended-semibold": "YahooSans-Regular",
274
+ "yahoo-sans-condensed-xbold": "YahooSansCond-Bold",
275
+ "yahoo-sans-cr4-bold": "YahooCR4BETA-VF",
276
+ "yahoo-sans-cr4-medium": "YahooCR4BETA-VF",
277
+ "yahoo-sans-cr4-regular": "YahooCR4BETA-VF",
278
+ "yahoo-serif-text-bold-italic": "YahooSerifText-BoldItalic"
270
279
  };