UNPKG

@hoosei/voxweave-react

Version:

A customizable and interactive voice UI component for React applications

49 lines (48 loc) 1.67 kB
import * as a from "react"; import { Root as d } from "./index21.js"; import { cva as i } from "./index22.js"; import { cn as s } from "./index8.js"; import { jsx as u } from "react/jsx-runtime"; const o = i("[&]:vox-reset [&]:vox-inline-flex [&]:vox-items-center [&]:vox-justify-center [&]:vox-rounded-md [&]:vox-text-sm [&]:vox-font-medium", { variants: { variant: { default: "[&]:vox-bg-primary [&]:vox-text-primary-foreground [&]:hover:vox-bg-primary/90", destructive: "[&]:vox-bg-destructive [&]:vox-text-destructive-foreground [&]:hover:vox-bg-destructive/90", outline: "[&]:vox-border [&]:vox-border-input [&]:vox-bg-background [&]:hover:vox-bg-accent [&]:hover:vox-text-accent-foreground", secondary: "[&]:vox-bg-secondary [&]:vox-text-secondary-foreground [&]:hover:vox-bg-secondary/80", ghost: "[&]:vox-hover:vox-bg-accent [&]:vox-hover:vox-text-accent-foreground", link: "[&]:vox-text-primary [&]:vox-underline-offset-4 [&]:vox-hover:vox-underline" }, size: { default: "[&]:vox-h-10 [&]:vox-px-4 [&]:vox-py-2", sm: "[&]:vox-h-9 [&]:vox-rounded-md [&]:vox-px-3", lg: "[&]:vox-h-11 [&]:vox-rounded-md [&]:vox-px-8", icon: "[&]:vox-h-10 [&]:vox-w-10" } }, defaultVariants: { variant: "default", size: "default" } }), c = a.forwardRef(({ className: t, variant: e, size: r, asChild: v = !1, ...x }, n) => /* @__PURE__ */ u(v ? d : "button", { className: s(o({ variant: e, size: r, className: t })), ref: n, ...x })); c.displayName = "Button"; const b = o; export { c as Button, b as buttonVariantsExport }; //# sourceMappingURL=index6.js.map