{"version":3,"file":"Badge.mjs","sources":["../../../../src/lib/nextGenComponents/components/Badge/Badge.tsx"],"sourcesContent":["import { type ReactNode } from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst BADGE_COLOR = { bg: 'bg-[rgba(164,76,197,0.16)]', text: 'text-[#A44CC5]' } as const\n\nexport const getBadgeColor = () => {\n  return BADGE_COLOR\n}\n\nexport type BadgeProps = {\n  label: string\n  className?: string\n  children?: ReactNode\n}\n\nconst Badge = ({ label, className, children }: BadgeProps) => {\n  const color = getBadgeColor()\n\n  return (\n    <span\n      data-testid=\"badge\"\n      className={cn(\n        'inline-flex items-center gap-1 rounded px-2 py-0.5 text-xs font-medium whitespace-nowrap leading-normal',\n        color.bg,\n        color.text,\n        className\n      )}\n    >\n      {children ?? label}\n    </span>\n  )\n}\n\nexport default Badge\n"],"names":["BADGE_COLOR","getBadgeColor","Badge","label","className","children","color","jsx","cn"],"mappings":";;AAIA,MAAMA,IAAc,EAAE,IAAI,8BAA8B,MAAM,iBAAA,GAEjDC,IAAgB,MACpBD,GASHE,IAAQ,CAAC,EAAE,OAAAC,GAAO,WAAAC,GAAW,UAAAC,QAA2B;AAC5D,QAAMC,IAAQL,EAAA;AAEd,SACE,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,eAAY;AAAA,MACZ,WAAWC;AAAA,QACT;AAAA,QACAF,EAAM;AAAA,QACNA,EAAM;AAAA,QACNF;AAAA,MAAA;AAAA,MAGD,UAAAC,KAAYF;AAAA,IAAA;AAAA,EAAA;AAGnB;"}