"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const React = require("react");
const Text = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/components/Text/Text.cjs");
const createPolymorphicComponent = require("../../node_modules/.pnpm/@mantine_core@7.15.2_patch_hash_jclkxeaefn6uz54h34k3r3yjsq_@mantine_hooks@7.15.2_react@18.3.1_szqfuioo5damkjdixckhzmwycq/node_modules/@mantine/core/esm/core/factory/create-polymorphic-component.cjs");
const TYPOGRAPHY_STYLES_MAP = {
  // v2 variants
  "headline-lg": {
    fz: 24,
    lh: "32px",
    fw: 700,
    c: "carbon.9"
  },
  "headline-md": {
    fz: 20,
    lh: "30px",
    fw: 700,
    c: "carbon.9"
  },
  "headline-sm": {
    fz: 18,
    lh: "28px",
    fw: 700,
    c: "carbon.9"
  },
  "title-lg": {
    fz: 16,
    lh: "24px",
    fw: 700,
    c: "carbon.9"
  },
  "title-md": {
    fz: 14,
    lh: "20px",
    fw: 700,
    c: "carbon.9"
  },
  "title-sm": {
    fz: 12,
    lh: "18px",
    fw: 700,
    c: "carbon.9"
  },
  "action-lg": {
    fz: 16,
    lh: "24px",
    fw: 600,
    c: "peacock.7"
  },
  "action-md": {
    fz: 14,
    lh: "20px",
    fw: 600,
    c: "peacock.7"
  },
  "action-sm": {
    fz: 12,
    lh: "18px",
    fw: 600,
    c: "peacock.7"
  },
  "label-lg": {
    fz: 14,
    lh: "20px",
    fw: 500,
    c: "carbon.8"
  },
  "label-md": {
    fz: 13,
    lh: "18px",
    fw: 500,
    c: "carbon.8"
  },
  "label-sm": {
    fz: 12,
    lh: "18px",
    fw: 500,
    c: "carbon.8"
  },
  "label-xs": {
    fz: 11,
    lh: "16px",
    fw: 500,
    c: "carbon.8"
  },
  "body-lg": {
    fz: 14,
    lh: "20px",
    fw: 400,
    c: "carbon.8"
  },
  "body-md": {
    fz: 13,
    lh: "18px",
    fw: 400,
    c: "carbon.8"
  },
  "body-sm": {
    fz: 12,
    lh: "18px",
    fw: 400,
    c: "carbon.8"
  },
  "body-xs": {
    fz: 11,
    lh: "16px",
    fw: 400,
    c: "carbon.8"
  }
};
const _Typography = React.forwardRef(
  ({ children, variant, ...rest }, ref) => {
    const styleProps = variant ? TYPOGRAPHY_STYLES_MAP[variant] : {};
    return /* @__PURE__ */ jsxRuntime.jsx(Text.Text, { ref, ...styleProps, ...rest, children });
  }
);
const Typography = createPolymorphicComponent.createPolymorphicComponent(_Typography);
exports.TYPOGRAPHY_STYLES_MAP = TYPOGRAPHY_STYLES_MAP;
exports.Typography = Typography;
