"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require('../../styles/components/text.css');const jsxRuntime = require("react/jsx-runtime");
const classNames = require("classnames");
const utils = require("../utils/utils.cjs");
;/* empty css            */
const TypographyText = ({
  children,
  as,
  size,
  variant,
  weight,
  spacing,
  className,
  ...rest
}) => {
  const BodyElement = as || utils.getSemanticTypeFromTextVariant(variant);
  return /* @__PURE__ */ jsxRuntime.jsx(
    BodyElement,
    {
      className: classNames(
        "eds-text",
        variant && `eds-text--${variant}`,
        size && `eds-text--${size}`,
        weight && `eds-text--weight-${weight}`,
        utils.getSpacingClasses(spacing, "eds-text"),
        className
      ),
      ...rest,
      children
    }
  );
};
const Text = TypographyText;
exports.Text = Text;
//# sourceMappingURL=Text.cjs.map
