"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.h3LineHeight = exports.h3FontSize = exports.H3 = void 0;
var _react = require("react");
var _context = require("../../context");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
/* 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 H3Props = {
    ...props,
    dynamicTypeRamp: "title2",
    // iOS only
    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