{"version":3,"file":"Preformatted.cjs","sources":["../../../../src/lib/Text/Preformatted.tsx"],"sourcesContent":["import {forwardRef, type HTMLAttributes, type ReactNode} 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        contentEditable?: HTMLAttributes<HTMLPreElement>['contentEditable'];\n    };\n\nexport const Pre = forwardRef<HTMLPreElement, Props>(\n    ({children, className, ...nativeProps}, ref) => {\n        return (\n            <pre {...nativeProps} className={classNames(classes.preformatted, className)} ref={ref}>\n                {children}\n            </pre>\n        );\n    }\n);\n\nPre.displayName = 'Pre';\n"],"names":["Pre","forwardRef","children","className","nativeProps","ref","jsx","classNames","classes"],"mappings":"gNAaaA,EAAMC,EAAAA,WACf,CAAC,CAAC,SAAAC,EAAU,UAAAC,EAAW,GAAGC,CAAA,EAAcC,IAEhCC,EAAAA,IAAC,MAAA,CAAK,GAAGF,EAAa,UAAWG,EAAWC,EAAAA,QAAQ,aAAcL,CAAS,EAAG,IAAAE,EACzE,SAAAH,CAAA,CACL,CAGZ,EAEAF,EAAI,YAAc"}