"use strict";

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

/**
 * `Caption` typographic style
 */
const Caption = exports.Caption = /*#__PURE__*/(0, _react.forwardRef)(({
  color: customColor,
  ...props
}, ref) => {
  const theme = (0, _context.useIOTheme)();
  const CaptionProps = {
    ...props,
    dynamicTypeRamp: "caption1",
    // iOS only
    weight: "Regular",
    size: captionFontSize,
    color: customColor ?? theme["textBody-default"],
    textStyle: {
      textTransform: "uppercase",
      letterSpacing: 0.5
    }
  };
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_IOText.IOText, {
    ref: ref,
    ...CaptionProps,
    children: props.children
  });
});
//# sourceMappingURL=Caption.js.map