import { j as f } from "../../node_modules/react/jsx-runtime.js";
import { forwardRef as c } from "react";
import { cva as d } from "../../node_modules/class-variance-authority/dist/index.js";
import { cn as u } from "../../utils/index.js";
const b = d("w-full", {
  variants: {
    emphasis: {
      low: "text-content-secondary"
    },
    size: {
      sm: "text-sm",
      base: "text-base",
      lg: "text-lg",
      xl: "text-xl",
      "2xl": "text-2xl",
      "3xl": "text-3xl"
    },
    weight: {
      thin: "font-thin",
      normal: "font-normal",
      medium: "font-medium",
      semibold: "font-semibold",
      bold: "font-bold",
      black: "font-black"
    },
    align: {
      left: "text-left",
      center: "text-center",
      right: "text-right"
    },
    italic: {
      true: "italic"
    },
    underline: {
      true: "underline underline-offset-2"
    }
  },
  defaultVariants: {
    size: "base",
    align: "left"
  }
}), j = c(
  ({
    as: t,
    align: e,
    size: n,
    emphasis: l,
    italic: o,
    underline: i,
    weight: r,
    className: s,
    ...a
  }, m) => {
    const x = t || "span";
    return /* @__PURE__ */ f.jsx(
      x,
      {
        ref: m,
        className: u(
          b({
            size: n,
            weight: r,
            emphasis: l,
            italic: o,
            underline: i,
            align: e,
            className: s
          })
        ),
        ...a
      }
    );
  }
);
export {
  j as Text
};
