"use strict";

import { forwardRef } from "react";
import { useIOTheme } from "../../context";
import { IOText } from "./IOText";
import { jsx as _jsx } from "react/jsx-runtime";
export const h5FontSize = 14;
export const h5LineHeight = 16;

/**
 * `H5` typographic style
 */
export const H5 = /*#__PURE__*/forwardRef(({
  color: customColor,
  ...props
}, ref) => {
  const theme = 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__*/_jsx(IOText, {
    ref: ref,
    ...H5Props,
    children: props.children
  });
});
//# sourceMappingURL=H5.js.map