'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var utils = require('./utils-BhM0B89p.js');
var primitives_Progress = require('./primitives/Progress.js');

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

exports.Progress = Progress;
//# sourceMappingURL=Progress-yBpMAzIU.js.map
