"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.h3LineHeight = exports.h3FontSize = exports.H3 = void 0;
var _react = _interopRequireWildcard(require("react"));
var _context = require("../../context");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
/* Common typographic styles */
const h3FontSize = exports.h3FontSize = 22;
const h3LineHeight = exports.h3LineHeight = 33;

/**
 * `H3` typographic style
 */
const H3 = exports.H3 = /*#__PURE__*/(0, _react.forwardRef)(({
  color: customColor,
  ...props
}, ref) => {
  const theme = (0, _context.useIOTheme)();
  const {
    newTypefaceEnabled
  } = (0, _context.useIONewTypeface)();
  const H3Props = {
    ...props,
    dynamicTypeRamp: "title2",
    // iOS only
    font: newTypefaceEnabled ? "Titillio" : "TitilliumSansPro",
    weight: "Semibold",
    size: h3FontSize,
    lineHeight: h3LineHeight,
    color: customColor ?? theme["textHeading-default"]
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IOText.IOText, {
    ref: ref,
    ...H3Props,
    children: props.children
  });
});
//# sourceMappingURL=H3.js.map