{"version":3,"file":"button.BPeVxIeV.js","sources":["../../../src/components/ui/button.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Slot } from '@radix-ui/react-slot'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '@lib/utils'\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center whitespace-nowrap rounded-[10px] font-[600] ring-offset-background transition-colors text-body-caption focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n variant: {\n default: 'button-variant-default',\n outline: 'button-variant-outline',\n ghost: 'button-variant-ghost',\n link: 'button-variant-link',\n content: 'button-variant-content'\n },\n size: {\n default: 'h-[40px] px-4',\n lg: 'h-[50px] px-4 text-body-main',\n icon: 'h-[40px] w-[40px]',\n 'icon-lg': 'h-[50px] w-[50px]',\n content: ''\n }\n },\n defaultVariants: {\n variant: 'default',\n size: 'default'\n }\n }\n)\n\nconst textAndIcon = ({ text, icon }: { text: React.ReactNode; icon: React.ReactNode }) => (\n
\n {text}\n {icon}\n
\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button'\n return (\n \n )\n }\n)\nButton.displayName = 'Button'\n\nexport { Button, buttonVariants, textAndIcon }\n"],"names":["buttonVariants","cva","textAndIcon","text","icon","jsxs","Button","React.forwardRef","className","variant","size","asChild","props","ref","Comp","Slot","jsx","cn"],"mappings":"ihBAMA,MAAMA,EAAiBC,EACrB,sSACA,CACE,SAAU,CACR,QAAS,CACP,QAAS,yBACT,QAAS,yBACT,MAAO,uBACP,KAAM,sBACN,QAAS,wBACX,EACA,KAAM,CACJ,QAAS,gBACT,GAAI,+BACJ,KAAM,oBACN,UAAW,oBACX,QAAS,EACX,CACF,EACA,gBAAiB,CACf,QAAS,UACT,KAAM,SACR,CACF,CACF,EAEMC,EAAc,CAAC,CAAE,KAAAC,EAAM,KAAAC,CAC3B,IAAAC,OAAC,MAAI,CAAA,UAAU,uCACZ,SAAA,CAAAF,EACAC,CAAA,EACH,EASIE,EAASC,EAAM,WACnB,CAAC,CAAE,UAAAC,EAAW,QAAAC,EAAS,KAAAC,EAAM,QAAAC,EAAU,GAAO,GAAGC,CAAM,EAAGC,IAAQ,CAC1D,MAAAC,EAAOH,EAAUI,EAAO,SAC9B,OACGC,EAAAA,IAAAF,EAAA,CAAK,UAAWG,EAAGjB,EAAe,CAAE,QAAAS,EAAS,KAAAC,EAAM,UAAAF,CAAW,CAAA,CAAC,EAAG,IAAAK,EAAW,GAAGD,CAAO,CAAA,CAE5F,CACF,EACAN,EAAO,YAAc"}