"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
require("react");
require("clsx");
const useResolvedStylesApi = require("../../core/styles-api/use-resolved-styles-api/use-resolved-styles-api.cjs");
const useProps = require("../../core/MantineProvider/use-props/use-props.cjs");
const factory = require("../../core/factory/factory.cjs");
const ProgressLabel = require("./ProgressLabel/ProgressLabel.cjs");
const ProgressRoot = require("./ProgressRoot/ProgressRoot.cjs");
const ProgressSection = require("./ProgressSection/ProgressSection.cjs");
const Progress_module_css = require("./Progress.module.css.cjs");
const defaultProps = {};
const Progress = factory.factory((_props, ref) => {
  const props = useProps.useProps("Progress", defaultProps, _props);
  const {
    value,
    classNames,
    styles,
    vars,
    color,
    striped,
    animated,
    "aria-label": label,
    ...others
  } = props;
  const { resolvedClassNames, resolvedStyles } = useResolvedStylesApi.useResolvedStylesApi({
    classNames,
    styles,
    props
  });
  return /* @__PURE__ */ jsxRuntime.jsx(
    ProgressRoot.ProgressRoot,
    {
      ref,
      classNames: resolvedClassNames,
      styles: resolvedStyles,
      vars,
      ...others,
      children: /* @__PURE__ */ jsxRuntime.jsx(
        ProgressSection.ProgressSection,
        {
          value,
          color,
          striped,
          animated,
          "aria-label": label
        }
      )
    }
  );
});
Progress.classes = Progress_module_css.default;
Progress.displayName = "@mantine/core/Progress";
Progress.Section = ProgressSection.ProgressSection;
Progress.Root = ProgressRoot.ProgressRoot;
Progress.Label = ProgressLabel.ProgressLabel;
exports.Progress = Progress;
