{"version":3,"sources":["../../src/components/label.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, VariantProps } from \"class-variance-authority\";\nimport React, { ComponentProps, ForwardRefExoticComponent } from \"react\";\n\nconst label_cva = cva(\n  [\n    \"inline-flex gap-1 text-txt-black-700\",\n    \"group-disabled:text-txt-black-disabled group-disabled:cursor-not-allowed group-disabled:shadow-none\",\n    \"peer-disabled:text-txt-black-disabled peer-disabled:cursor-not-allowed peer-disabled:shadow-none\",\n  ],\n  {\n    variants: {\n      size: {\n        small: \"text-body-sm\",\n        medium: \"text-body-md\",\n        large: \"text-body-lg\",\n      },\n    },\n    defaultVariants: {\n      size: \"medium\",\n    },\n  },\n);\n\ninterface LabelProps\n  extends ComponentProps<\"label\">,\n    VariantProps<typeof label_cva> {\n  asChild?: boolean;\n}\n\nconst Label: ForwardRefExoticComponent<LabelProps> = React.forwardRef(\n  ({ asChild, size, className, ...props }, ref) => {\n    const Comp = asChild ? Slot : \"label\";\n    return (\n      <Comp className={label_cva({ size, className })} ref={ref} {...props} />\n    );\n  },\n);\nLabel.displayName = \"Label\";\n\nexport { Label };\n"],"mappings":"iDAAA,OAAS,QAAAA,MAAY,uBACrB,OAAS,OAAAC,MAAyB,2BAClC,OAAOC,MAA0D,QAgC3D,cAAAC,MAAA,oBA9BN,IAAMC,EAAYC,EAChB,CACE,uCACA,sGACA,kGACF,EACA,CACE,SAAU,CACR,KAAM,CACJ,MAAO,eACP,OAAQ,eACR,MAAO,cACT,CACF,EACA,gBAAiB,CACf,KAAM,QACR,CACF,CACF,EAQMC,EAA+CC,EAAM,WACzD,CAACC,EAAwCC,IAAQ,CAAhD,IAAAC,EAAAF,EAAE,SAAAG,EAAS,KAAAC,EAAM,UAAAC,CA/BpB,EA+BGH,EAA+BI,EAAAC,EAA/BL,EAA+B,CAA7B,UAAS,OAAM,cAEhB,OACEP,EAFWQ,EAAUK,EAAO,QAE3BC,EAAA,CAAK,UAAWb,EAAU,CAAE,KAAAQ,EAAM,UAAAC,CAAU,CAAC,EAAG,IAAKJ,GAASK,EAAO,CAE1E,CACF,EACAR,EAAM,YAAc","names":["Slot","cva","React","jsx","label_cva","cva","Label","React","_a","ref","_b","asChild","size","className","props","__objRest","Slot","__spreadValues"]}