import { jsx } from "react/jsx-runtime";
import classNames from "classnames";
import { getSpacingClasses } from "../utils/utils.mjs";
import '../../styles/components/text.css';/* empty css           */
const NumberedList = ({
  className,
  type = "1",
  spacing,
  as,
  children,
  ...rest
}) => {
  const ListElement = as || "ol";
  return /* @__PURE__ */ jsx(
    ListElement,
    {
      className: classNames(
        "eds-text--numbered-list",
        { [`eds-text--numbered-list--type-${type}`]: type },
        getSpacingClasses(spacing, "eds-text--numbered-list"),
        className
      ),
      type,
      ...rest,
      children
    }
  );
};
export {
  NumberedList
};
//# sourceMappingURL=NumberedList.mjs.map
