import { jsxs, jsx } from 'react/jsx-runtime';
import { forwardRef } from 'react';
import { c as cn } from './utils-DdHUxIdC.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 (jsxs("div", { className: cn("w-full", className), children: [displayText && (jsx("p", { className: "mb-1.5 text-end text-xs text-muted-foreground", children: displayText })), jsx(Progress$1, { ref: ref, value: value, ...otherProps })] }));
});
Progress.displayName = "Progress";

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