{"version":3,"sources":["../components/ui/label.tsx"],"sourcesContent":["\"use client\";\nimport * as React from 'react';\nimport { Label as LabelPrimitive } from 'radix-ui';\n\nimport { cn } from '../../utils/ui';\n\nconst Label = React.forwardRef<\n  React.ElementRef<typeof LabelPrimitive.Root>,\n  React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> & { required?: boolean }\n>(({ required = false, children, className, ...props }, ref) => (\n  <LabelPrimitive.Root\n    ref={ref}\n    className={cn(\n      'gap-1 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed',\n      className,\n    )}\n    {...props}\n  >\n    {children}\n    {required && <span className=\"text-danger\">*</span>}\n  </LabelPrimitive.Root>\n));\n\nexport { Label };\n"],"mappings":";;;;;;;;;AACA,YAAY,WAAW;AACvB,SAAS,SAAS,sBAAsB;AAIxC,IAAM,QAAc,iBAGlB,CAAC,IAAqD,QAAK;AAA1D,eAAE,aAAW,OAAO,UAAU,UATjC,IASG,IAA4C,kBAA5C,IAA4C,CAA1C,YAAkB,YAAU;AAC/B;AAAA,IAAC,eAAe;AAAA,IAAf;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,OACI;AAAA,IAEH;AAAA,IACA,YAAY,oCAAC,UAAK,WAAU,iBAAc,GAAC;AAAA,EAC9C;AAAA,CACD;","names":[]}