{"version":3,"file":"Typography.mjs","names":[],"sources":["../../src/Markdown/Typography.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from './markdown.style';\nimport type { TypographyProps } from './type';\n\nconst Typography = memo<TypographyProps>(\n  ({\n    ref,\n    children,\n    className,\n    fontSize = 16,\n    headerMultiple = 1,\n    marginMultiple = 2,\n    lineHeight = 1.8,\n    borderRadius = 8,\n    style,\n    ...rest\n  }) => {\n    return (\n      <article\n        className={cx(styles.root, className)}\n        ref={ref}\n        style={{\n          // @ts-ignore\n          '--lobe-markdown-border-radius': borderRadius,\n          '--lobe-markdown-font-size': `${fontSize}px`,\n          '--lobe-markdown-header-multiple': headerMultiple,\n          '--lobe-markdown-line-height': lineHeight,\n          '--lobe-markdown-margin-multiple': marginMultiple,\n          ...style,\n        }}\n        {...rest}\n      >\n        {children}\n      </article>\n    );\n  },\n);\n\nTypography.displayName = 'Typography';\n\nexport default Typography;\n"],"mappings":";;;;;;AAQA,MAAM,aAAa,MAChB,EACC,KACA,UACA,WACA,WAAW,IACX,iBAAiB,GACjB,iBAAiB,GACjB,aAAa,KACb,eAAe,GACf,OACA,GAAG,WACC;AACJ,QACE,oBAAC,WAAD;EACE,WAAW,GAAG,OAAO,MAAM,UAAU;EAChC;EACL,OAAO;GAEL,iCAAiC;GACjC,6BAA6B,GAAG,SAAS;GACzC,mCAAmC;GACnC,+BAA+B;GAC/B,mCAAmC;GACnC,GAAG;GACJ;EACD,GAAI;EAEH;EACO,CAAA;EAGf;AAED,WAAW,cAAc"}