{"version":3,"file":"Headers.cjs","sources":["../../../../src/lib/Text/Headers.tsx"],"sourcesContent":["import type {ReactNode} from 'react';\nimport {forwardRef} from 'react';\nimport classNames from 'classnames';\n\nimport type {DataAttributes, LibraryProps} from '@/internal/LibraryAPI';\n\nimport classes from './Text.module.css';\n\nexport type Props = DataAttributes &\n    LibraryProps & {\n        children?: ReactNode;\n    };\n\nexport const H1 = forwardRef<HTMLHeadingElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <h1 {...nativeProps} className={classNames(classes.header1, className)} ref={ref}>\n                {children}\n            </h1>\n        );\n    }\n);\n\nH1.displayName = 'H1';\n\nexport const H2 = forwardRef<HTMLHeadingElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <h2 {...nativeProps} className={classNames(classes.header2, className)} ref={ref}>\n                {children}\n            </h2>\n        );\n    }\n);\n\nH2.displayName = 'H2';\n\nexport const H3 = forwardRef<HTMLHeadingElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <h3 {...nativeProps} className={classNames(classes.header3, className)} ref={ref}>\n                {children}\n            </h3>\n        );\n    }\n);\n\nH3.displayName = 'H3';\n\nexport const H4 = forwardRef<HTMLHeadingElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <h4 {...nativeProps} className={classNames(classes.header4, className)} ref={ref}>\n                {children}\n            </h4>\n        );\n    }\n);\n\nH4.displayName = 'H4';\n\nexport const H5 = forwardRef<HTMLHeadingElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <h5 {...nativeProps} className={classNames(classes.header5, className)} ref={ref}>\n                {children}\n            </h5>\n        );\n    }\n);\n\nH5.displayName = 'H5';\n\nexport const H6 = forwardRef<HTMLHeadingElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <h6 {...nativeProps} className={classNames(classes.header6, className)} ref={ref}>\n                {children}\n            </h6>\n        );\n    }\n);\n\nH6.displayName = 'H6';\n"],"names":["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