"use client";
import { jsxs, jsx } from "react/jsx-runtime";
import { cn } from "../../lib/utils.js";
import { ProgressRoot } from "../../node_modules/@base-ui/react/esm/progress/root/ProgressRoot.js";
import { ProgressTrack as ProgressTrack$1 } from "../../node_modules/@base-ui/react/esm/progress/track/ProgressTrack.js";
import { ProgressIndicator as ProgressIndicator$1 } from "../../node_modules/@base-ui/react/esm/progress/indicator/ProgressIndicator.js";
import { ProgressLabel as ProgressLabel$1 } from "../../node_modules/@base-ui/react/esm/progress/label/ProgressLabel.js";
import { ProgressValue as ProgressValue$1 } from "../../node_modules/@base-ui/react/esm/progress/value/ProgressValue.js";
function Progress({ className, children, value, ...props }) {
  return /* @__PURE__ */ jsxs(
    ProgressRoot,
    {
      value,
      "data-slot": "progress",
      className: cn("flex flex-wrap gap-3", className),
      ...props,
      children: [
        children,
        /* @__PURE__ */ jsx(ProgressTrack, { children: /* @__PURE__ */ jsx(ProgressIndicator, {}) })
      ]
    }
  );
}
function ProgressTrack({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    ProgressTrack$1,
    {
      className: cn(
        "bg-muted h-1.5 rounded-full relative flex w-full items-center overflow-x-hidden",
        className
      ),
      "data-slot": "progress-track",
      ...props
    }
  );
}
function ProgressIndicator({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    ProgressIndicator$1,
    {
      "data-slot": "progress-indicator",
      className: cn("bg-primary h-full transition-all", className),
      ...props
    }
  );
}
function ProgressLabel({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    ProgressLabel$1,
    {
      className: cn("text-sm font-medium", className),
      "data-slot": "progress-label",
      ...props
    }
  );
}
function ProgressValue({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    ProgressValue$1,
    {
      className: cn(
        "text-muted-foreground ml-auto text-sm tabular-nums",
        className
      ),
      "data-slot": "progress-value",
      ...props
    }
  );
}
export {
  Progress,
  ProgressIndicator,
  ProgressLabel,
  ProgressTrack,
  ProgressValue
};
//# sourceMappingURL=progress.js.map
