'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var utils = require('./utils-CTr7wn5d.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 (jsxRuntime.jsxs("div", { className: utils.cn("w-full", className), children: [displayText && (jsxRuntime.jsx("p", { className: "mb-1.5 text-end text-xs text-muted-foreground", children: displayText })), jsxRuntime.jsx(primitives_Progress.Progress, { ref: ref, value: value, ...otherProps })] }));
});
Progress.displayName = "Progress";

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