"use strict";

/**
 * Define the font size values for the typography elements
 */

export const fontSizeMapping = {
  regular: 16,
  small: 14,
  mini: 12
};
export const lineHeightMapping = {
  regular: 24,
  small: 24,
  mini: 18
};

/**
 * Define the font name values for the typography elements
 */

/**
 * The style exported for the typography elements, without the fields characterizing the font style
 */

/**
 * Define a generic type for props used by all the typography leaf components
 */

// Define a standard type, using IOFontWeight and IOColors

/**
 * A default function used to calculate the weight and color with some fallback values if not specified.
 * @param defaultWeight the default weight value to use if weight is not defined
 * @param defaultColor the default color value to use if color is not defined
 * @param weight the optional weight value
 * @param color the optional color value
 */
export function calculateWeightColor(defaultWeight, defaultColor, weight, color) {
  return {
    weight: weight ?? defaultWeight,
    color: color ?? defaultColor
  };
}

/**
 * Define the common props interface for all the leaf Typography components.
 * In addition to the {@link DefaultTypographyProps} all the {@link Text} props are allowed (`style` excluded)
 */

/**
 * Define mandatory all the keys of {@link TypographyProps}
 */
//# sourceMappingURL=common.js.map