"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.h1LineHeight = exports.h1FontSize = exports.H1 = void 0;
var _react = require("react");
var _context = require("../../context");
var _IOText = require("./IOText");
var _jsxRuntime = require("react/jsx-runtime");
const h1FontSize = exports.h1FontSize = 28;
const h1LineHeight = exports.h1LineHeight = 42;

/**
 * `H1` typographic style
 */
const H1 = exports.H1 = /*#__PURE__*/(0, _react.forwardRef)(({
  color: customColor,
  ...props
}, ref) => {
  const theme = (0, _context.useIOTheme)();
  const H1Props = {
    ...props,
    dynamicTypeRamp: "largeTitle",
    // iOS only
    weight: "Semibold",
    size: h1FontSize,
    lineHeight: h1LineHeight,
    color: customColor ?? theme["textHeading-default"]
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IOText.IOText, {
    ref: ref,
    ...H1Props,
    children: props.children
  });
});
//# sourceMappingURL=H1.js.map