{"name":"button","dependencies":["@base-ui/react"],"files":[{"path":"button.tsx","content":"import { Button as ButtonPrimitive } from \"@base-ui/react/button\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"cn\";\n\nconst buttonVariants = cva(\n\t\"group/button pressible focus-visible:focus-ring relative isolate inline-flex shrink-0 origin-center cursor-pointer select-none items-center justify-center gap-2 whitespace-nowrap rounded-3xl font-medium text-sm outline-none transition-all disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 has-data-[icon=inline-start]:ps-3.5 has-data-[icon=inline-end]:pe-3.5 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-70 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault:\n\t\t\t\t\t\"bg-primary text-primary-foreground hover:bg-primary/80 active:bg-primary/80 aria-expanded:bg-primary/80\",\n\t\t\t\toutline:\n\t\t\t\t\t\"border border-border hover:bg-muted hover:text-foreground active:bg-muted active:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground group-data-[variant=secondary]/input-group:text-foreground dark:active:bg-muted/50 dark:hover:bg-muted/50\",\n\t\t\t\tsecondary:\n\t\t\t\t\t\"bg-default text-primary-soft-foreground hover:brightness-95 active:brightness-95 aria-expanded:brightness-95 dark:active:brightness-110 dark:hover:brightness-110\",\n\t\t\t\ttertiary:\n\t\t\t\t\t\"bg-default text-default-foreground hover:brightness-95 active:brightness-95 aria-expanded:brightness-95 dark:active:brightness-110 dark:hover:brightness-110\",\n\t\t\t\tghost:\n\t\t\t\t\t\"hover:bg-muted hover:text-foreground active:bg-muted active:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground group-data-[variant=secondary]/input-group:text-foreground dark:hover:bg-muted/50\",\n\t\t\t\tlink: \"text-primary underline-offset-4 hover:underline\",\n\t\t\t\tdestructive:\n\t\t\t\t\t\"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive active:bg-destructive/80 aria-expanded:bg-destructive/80\",\n\t\t\t\t\"destructive-soft\":\n\t\t\t\t\t\"bg-destructive-soft text-destructive-soft-foreground hover:brightness-90 focus-visible:ring-destructive active:brightness-90 dark:active:brightness-110 dark:hover:brightness-110\",\n\t\t\t},\n\t\t\tsize: {\n\t\t\t\tdefault: \"h-9 px-4 py-2\",\n\t\t\t\txs: \"h-7 gap-0.5 px-2.5 has-data-[icon=inline-start]:ps-2 has-data-[icon=inline-end]:pe-2 [&_svg:not([class*='size-'])]:size-3\",\n\t\t\t\tsm: \"h-8 gap-1 px-3 has-data-[icon=inline-start]:ps-2.5 has-data-[icon=inline-end]:pe-2.5 [&_svg:not([class*='size-'])]:size-3.5\",\n\t\t\t\tlg: \"h-10 gap-1.5 px-4 text-base [&_svg:not([class*='size-'])]:size-4\",\n\t\t\t\ticon: \"size-9 [&_svg:not([class*='size-'])]:size-5\",\n\t\t\t\t\"icon-xs\":\n\t\t\t\t\t\"size-7 has-data-[icon=inline-start]:ps-2.5 has-data-[icon=inline-end]:pe-2.5 [&_svg:not([class*='size-'])]:size-3.5\",\n\t\t\t\t\"icon-sm\": \"size-8 [&_svg:not([class*='size-'])]:size-4\",\n\t\t\t\t\"icon-lg\": \"size-10 [&_svg:not([class*='size-'])]:size-5.5\",\n\t\t\t},\n\t\t},\n\t\tdefaultVariants: {\n\t\t\tvariant: \"default\",\n\t\t\tsize: \"default\",\n\t\t},\n\t},\n);\n\nfunction Button({\n\tclassName,\n\tvariant = \"default\",\n\tsize = \"default\",\n\t...props\n}: ButtonPrimitive.Props & VariantProps<typeof buttonVariants>) {\n\treturn (\n\t\t<ButtonPrimitive\n\t\t\tdata-slot=\"button\"\n\t\t\tclassName={cn(buttonVariants({ variant, size, className }))}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n\nexport { Button, buttonVariants };\n","type":"registry:ui"}],"cssVars":{"theme":{"--color-default":"var(--default)","--color-default-foreground":"var(--default-foreground)","--color-primary-soft-foreground":"var(--primary-soft-foreground)","--color-destructive-foreground":"var(--destructive-foreground)","--color-destructive-soft":"var(--destructive-soft)","--color-destructive-soft-foreground":"var(--destructive-soft-foreground)"},"light":{"--eclipse":"oklch(0.2103 0.0059 285.89)","--snow":"oklch(0.9911 0 0)","--default":"oklch(94% 0.001 286.375)","--default-foreground":"var(--eclipse)","--primary-soft-foreground":"color-mix(in oklab, var(--primary) 70%, var(--foreground) 30%)","--destructive-foreground":"var(--snow)","--destructive-soft":"color-mix(in oklab, var(--destructive) 15%, transparent)","--destructive-soft-foreground":"color-mix(in oklab, var(--destructive) 70%, var(--foreground) 40%)"},"dark":{"--default":"oklch(27.4% 0.006 286.033)","--default-foreground":"var(--snow)","--primary-soft-foreground":"color-mix(in oklab, var(--primary) 80%, var(--foreground) 30%)","--destructive-foreground":"var(--snow)","--destructive-soft":"color-mix(in oklab, var(--destructive) 15%, transparent)","--destructive-soft-foreground":"color-mix(in oklab, var(--destructive) 80%, var(--foreground) 30%)"}},"css":{"@utility pressible":{"transition":"transform 250ms var(--ease-smooth), background-color 100ms var(--ease-out), box-shadow 100ms var(--ease-out)","@apply transform-gpu motion-reduce:transition-none active:scale-[0.97] aria-expanded:scale-[0.97]":{}},"@utility focus-ring":{"@apply ring-2 ring-ring ring-offset-2 ring-offset-background outline-none":{}}},"type":"registry:ui"}