import { cva } from "class-variance-authority";
export { default as Toggle } from "./Toggle.vue";
export const toggleVariants = cva(
  "inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm font-medium transition-all duration-180 outline-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
  {
    variants: {
      variant: {
        default: "bg-transparent text-zinc-600 hover:bg-zinc-50 hover:text-zinc-900 data-[state=on]:bg-[color-mix(in_srgb,var(--primary)_12%,white)] data-[state=on]:text-(--primary)",
        outline: "border border-zinc-200 bg-white text-zinc-700 shadow-xs hover:bg-zinc-50 hover:text-zinc-900 data-[state=on]:border-[color-mix(in_srgb,var(--primary)_50%,white)] data-[state=on]:bg-[color-mix(in_srgb,var(--primary)_12%,white)] data-[state=on]:text-(--primary)"
      },
      size: {
        default: "h-9 min-w-9 px-3",
        sm: "h-8 min-w-8 px-2.5 text-xs",
        lg: "h-10 min-w-10 px-4",
        xs: "h-7 min-w-7 px-2 text-xs"
      }
    },
    defaultVariants: {
      variant: "default",
      size: "default"
    }
  }
);
