{"version":3,"file":"separator.cjs","sources":["../../../components/separator/separator.tsx"],"sourcesContent":["import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport styles from './separator.module.css';\n\nconst separator = cva(styles.separator, {\n  variants: {\n    size: {\n      small: styles['separator-small'],\n      half: styles['separator-half'],\n      full: styles['separator-full']\n    },\n    color: {\n      primary: styles['separator-primary'],\n      secondary: styles['separator-secondary'],\n      tertiary: styles['separator-tertiary']\n    }\n  },\n  defaultVariants: {\n    size: 'full',\n    color: 'primary'\n  }\n});\n\ntype SeparatorProps = SeparatorPrimitive.Props &\n  VariantProps<typeof separator> & {\n    /**\n     * When true, the separator is purely decorative and hidden from\n     * assistive technology. Use for visual dividers that don't convey\n     * structure.\n     * @default false\n     */\n    decorative?: boolean;\n  };\n\nexport function Separator({\n  className,\n  orientation = 'horizontal',\n  size,\n  color,\n  decorative,\n  ...props\n}: SeparatorProps) {\n  const decorativeProps = decorative\n    ? {\n        role: 'presentation',\n        'aria-hidden': true,\n        'aria-orientation': undefined\n      }\n    : {};\n  return (\n    <SeparatorPrimitive\n      data-slot='separator'\n      orientation={orientation}\n      className={separator({ size, color, className })}\n      {...decorativeProps}\n      {...props}\n    />\n  );\n}\n\nSeparator.displayName = 'Separator';\n"],"names":["cva","styles","_jsx","SeparatorPrimitive"],"mappings":";;;;;;;AAKA,MAAM,SAAS,GAAGA,0BAAG,CAACC,wBAAM,CAAC,SAAS,EAAE;AACtC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAEA,wBAAM,CAAC,iBAAiB,CAAC;AAChC,YAAA,IAAI,EAAEA,wBAAM,CAAC,gBAAgB,CAAC;AAC9B,YAAA,IAAI,EAAEA,wBAAM,CAAC,gBAAgB,CAAC;AAC/B,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,OAAO,EAAEA,wBAAM,CAAC,mBAAmB,CAAC;AACpC,YAAA,SAAS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