import { merge as d } from "../../utilities/merge.es.es.js";
import n from "react";
import { decorationMap as m, wordBreakMap as p, whitespaceMap as f, overflowMap as c, displayMap as g } from "../shared/records.es.es.js";
const u = {
  default: "tw-font-regular",
  strong: "tw-font-medium",
  "x-strong": "tw-font-bold"
}, b = {
  "x-small": "tw-text-body-x-small",
  small: "tw-text-body-small",
  medium: "tw-text-body-medium",
  large: "tw-text-body-large"
}, v = {
  default: "tw-text-text",
  weak: "tw-text-text-weak",
  "x-weak": "tw-text-text-x-weak",
  disabled: "tw-text-text-disabled",
  negative: "tw-text-text-negative",
  positive: "tw-text-text-positive",
  warning: "tw-text-text-warning",
  interactive: "tw-text-text-interactive"
}, h = ({
  children: a,
  as: o = "span",
  weight: i = "default",
  size: l = "medium",
  color: r = "default",
  decoration: w = "none",
  wordBreak: s = "normal",
  whitespace: x = "normal",
  overflow: t = "visible",
  display: e
}) => /* @__PURE__ */ n.createElement(o, {
  "data-test-id": "text",
  className: d([
    "tw-font-body tw-max-w-full",
    u[i],
    b[l],
    v[r],
    m[w],
    p[s],
    t !== "truncate" && f[x],
    c[t],
    e && g[e]
  ])
}, a);
export {
  h as Text
};
//# sourceMappingURL=Text.es.es.js.map
