import * as React from "react"; import { Progress as BaseProgress } from "@/components/ui/progress"; import { cn } from "@/lib/utils"; type ProgressColor = | "default" | "primary" | "secondary" | "success" | "warning" | "danger"; export interface ProgressProps { "aria-label"?: string; className?: string; color?: ProgressColor; label?: React.ReactNode; showValueLabel?: boolean; size?: "sm" | "md" | "lg"; value?: number; } function indicatorClassName(color: ProgressColor) { if (color === "danger") { return "bg-danger"; } if (color === "success") { return "bg-success"; } if (color === "warning") { return "bg-warning"; } return "bg-primary"; } export function Progress({ "aria-label": ariaLabel, className, color = "primary", label, showValueLabel, size = "md", value = 0, }: ProgressProps) { return (