"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.h5LineHeight = exports.h5FontSize = exports.H5 = void 0;
var _react = require("react");
var _context = require("../../context");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
const h5FontSize = exports.h5FontSize = 14;
const h5LineHeight = exports.h5LineHeight = 16;

/**
 * `H5` typographic style
 */
const H5 = exports.H5 = /*#__PURE__*/(0, _react.forwardRef)(({
  color: customColor,
  ...props
}, ref) => {
  const theme = (0, _context.useIOTheme)();
  const H5Props = {
    ...props,
    dynamicTypeRamp: "subheadline",
    // iOS only
    weight: "Semibold",
    size: h5FontSize,
    lineHeight: h5LineHeight,
    color: customColor ?? theme["textHeading-default"],
    textStyle: {
      textTransform: "uppercase",
      letterSpacing: 0.5
    }
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IOText.IOText, {
    ref: ref,
    ...H5Props,
    children: props.children
  });
});
//# sourceMappingURL=H5.js.map