@forbespro/lead-agent
Version:
Lead Chat Agent React Component
2 lines (1 loc) • 2.03 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react/jsx-runtime"),g=require("react"),v=require("@radix-ui/react-slot"),m=require("./index26.js"),y=require("./index12.js");function h(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const f=h(g),o=m.cva("fpl-inline-flex fpl-items-center fpl-justify-center fpl-gap-2 fpl-text-balance fpl-h-auto fpl-text-left fpl-whitespace-nowrap fpl-rounded-md fpl-text-sm fpl-font-medium fpl-ring-offset-background fpl-transition-colors focus-visible:fpl-outline-none focus-visible:fpl-ring-2 focus-visible:fpl-ring-ring focus-visible:fpl-ring-offset-2 disabled:fpl-pointer-events-none fpl-disabled:fpl-opacity-50 [&_svg]:fpl-pointer-events-none [&_svg]:fpl-size-4 [&_svg]:fpl-shrink-0",{variants:{variant:{default:"fpl-bg-primary fpl-text-primary-foreground fpl-hover:bg-primary/90",destructive:"fpl-bg-destructive fpl-text-destructive-foreground fpl-hover:bg-destructive/90",outline:"fpl-border fpl-border-input fpl-bg-background fpl-hover:bg-accent fpl-hover:text-accent-foreground",secondary:"fpl-bg-secondary fpl-text-secondary-foreground fpl-hover:bg-secondary/80",ghost:"fpl-hover:bg-accent fpl-hover:text-accent-foreground",link:"fpl-text-primary fpl-underline-offset-4 fpl-hover:underline"},size:{default:"fpl-h-10 fpl-px-4 fpl-py-2",sm:"fpl-h-9 fpl-rounded-md fpl-px-3",lg:"fpl-h-11 fpl-rounded-md fpl-px-8",icon:"fpl-h-10 fpl-w-10"}},defaultVariants:{variant:"default",size:"default"}}),i=f.forwardRef(({className:e,variant:r,size:t,asChild:l=!1,id:p,type:a="button",...n},s)=>{const u=l?v.Slot:"button",c=f.useId(),d=p||`fpl-button-${c}`;return b.jsx(u,{id:d,type:a,className:y.cn(o({variant:r,size:t,className:e})),ref:s,"aria-disabled":n.disabled,...n})});i.displayName="Button";exports.Button=i;exports.buttonVariants=o;