import type { VariantProps } from "class-variance-authority"
import { cva } from "class-variance-authority"

export { default as Progress } from "./Progress.vue"

export const progressVariants = cva(
  "relative w-full overflow-hidden rounded-full bg-secondary",
  {
    variants: {
      size: {
        sm: "h-2",
        default: "h-4",
        lg: "h-6",
      },
    },
    defaultVariants: {
      size: "default",
    },
  },
)

export const progressIndicatorVariants = cva(
  "h-full w-full flex-1 transition-all",
  {
    variants: {
      variant: {
        default: "bg-primary",
        success: "bg-success",
        destructive: "bg-destructive",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  },
)

export type ProgressVariants = VariantProps<typeof progressVariants>
export type ProgressIndicatorVariants = VariantProps<typeof progressIndicatorVariants>
