"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 NumberedList = ({
  className,
  type = "1",
  spacing,
  as,
  children,
  ...rest
}) => {
  const ListElement = as || "ol";
  return /* @__PURE__ */ jsxRuntime.jsx(
    ListElement,
    {
      className: classNames(
        "eds-text--numbered-list",
        { [`eds-text--numbered-list--type-${type}`]: type },
        utils.getSpacingClasses(spacing, "eds-text--numbered-list"),
        className
      ),
      type,
      ...rest,
      children
    }
  );
};
exports.NumberedList = NumberedList;
//# sourceMappingURL=NumberedList.cjs.map
