import { jsxs, jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { c as cn } from './utils-BJnb9o5c.js';
import { Progress as Progress$1 } from './primitives/Progress.js';

const Progress = forwardRef(
  ({ progressValue, showPercentage = false, className, value, ...otherProps }, ref) => {
    const displayText = progressValue ?? (showPercentage ? `${value ?? 0}%` : null);
    return /* @__PURE__ */ jsxs("div", { className: cn("w-full", className), children: [
      displayText && /* @__PURE__ */ jsx("p", { className: "mb-1.5 text-end text-xs text-muted-foreground", children: displayText }),
      /* @__PURE__ */ jsx(Progress$1, { ref, value, ...otherProps })
    ] });
  }
);
Progress.displayName = "Progress";

export { Progress as P };
//# sourceMappingURL=Progress-DURemsl_.js.map
