import { forwardRef } from "react"; /** * Progress * * variant: "secondary" | "accent" | "info" | "success" | "warning" | "danger" | "neutral" | (default) * value: number - 0–100; omit for indeterminate state * max: number (default: 100) * label: string | ReactNode - label above the bar * valueLabel: string | ReactNode - label below the bar * id: string - ties label[for] to progress[id] */ export const Progress = forwardRef(function Progress( { variant, value, max = 100, label, valueLabel, id, className = "", ...props }, ref ) { const classes = [ "prs-progress", variant && variant !== "default" && `prs-progress-${variant}`, className, ] .filter(Boolean) .join(" "); const indeterminate = value === undefined || value === null; return (