{"version":3,"file":"fieldset.cjs","sources":["../../../components/fieldset/fieldset.tsx"],"sourcesContent":["import { Fieldset as FieldsetPrimitive } from '@base-ui/react/fieldset';\nimport { cx } from 'class-variance-authority';\nimport styles from './fieldset.module.css';\n\nexport interface FieldsetProps extends FieldsetPrimitive.Root.Props {\n  legend?: string;\n}\n\nfunction FieldsetRoot({\n  legend,\n  className,\n  children,\n  ...props\n}: FieldsetProps) {\n  return (\n    <FieldsetPrimitive.Root\n      className={cx(styles.fieldset, className)}\n      data-slot='fieldset'\n      {...props}\n    >\n      {legend && <FieldsetLegend>{legend}</FieldsetLegend>}\n      {children}\n    </FieldsetPrimitive.Root>\n  );\n}\n\nfunction FieldsetLegend({\n  className,\n  ...props\n}: FieldsetPrimitive.Legend.Props) {\n  return (\n    <FieldsetPrimitive.Legend\n      className={cx(styles.legend, className)}\n      data-slot='fieldset-legend'\n      {...props}\n    />\n  );\n}\n\nexport const Fieldset = Object.assign(FieldsetRoot, {\n  Legend: FieldsetLegend\n});\n"],"names":["_jsxs","FieldsetPrimitive","cx","styles","_jsx"],"mappings":";;;;;;;AAQA,SAAS,YAAY,CAAC,EACpB,MAAM,EACN,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACM,EAAA;AACd,IAAA,QACEA,eAAA,CAACC,iBAAiB,CAAC,IAAI,EACrB,EAAA,SAAS,EAAEC,yBAAE,CAACC,uBAAM,CAAC,QAAQ,EAAE,SAAS,CAAC,EAC/B,WAAA,EAAA,UAAU,EAChB,GAAA,KAAK,EAER,QAAA,EAAA,CAAA,MAAM,IAAIC,cAAC,CAAA,cAAc,EAAE,EAAA,QAAA,EAAA,MAAM,EAAkB,CAAA,EACnD,QAAQ,CAAA,EAAA,CACc,EACzB;AACJ,CAAC;AAED,SAAS,cAAc,CAAC,EACtB,SAAS,EACT,GAAG,KAAK,EACuB,EAAA;IAC/B,QACEA,eAACH,iBAAiB,CAAC,MAAM,EACvB,EAAA,SAAS,EAAEC,yBAAE,CAACC,uBAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAA,WAAA,EAC7B,iBAAiB,EACvB,GAAA,KAAK,EACT,CAAA,EACF;AACJ,CAAC;MAEY,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;AAClD,IAAA,MAAM,EAAE,cAAc;AACvB,CAAA;;;;"}