"use client";
import {
  Box
} from "./chunk-JD3FIVZ7.js";

// src/components/Text/Text.tsx
import React from "react";
var Text = React.forwardRef(
  ({
    as = "div",
    children,
    className,
    color = "primaryText",
    display,
    font = "body",
    id,
    size = "16",
    style,
    tabIndex,
    title,
    textAlign = "inherit",
    textTransform = "none",
    weight = "regular",
    testId
  }, ref) => {
    return /* @__PURE__ */ React.createElement(
      Box,
      {
        as,
        className,
        color: color === "inherit" ? void 0 : color,
        display,
        fontFamily: font,
        fontSize: size,
        fontWeight: weight,
        id,
        title,
        ref,
        style,
        tabIndex,
        textAlign,
        textTransform,
        testId,
        background: { selection: "textSelection" }
      },
      children
    );
  }
);
Text.displayName = "Text";

export {
  Text
};
