{"version":3,"file":"Text.cjs","names":[],"sources":["../../../src/components/Typography/Text.tsx"],"sourcesContent":["/*\nCopyright 2025 New Vector Ltd.\nCopyright 2023 The Matrix.org Foundation C.I.C.\n\nSPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial\nPlease see LICENSE files in the repository root for full details.\n*/\n\nimport React from \"react\";\nimport { Typography } from \"./Typography\";\nimport type { Size } from \"../../utils/size\";\n\ntype TypographyProps = React.ComponentProps<typeof Typography>;\n\n/**\n * A text component. Underlying HTML element can be changed using the `as`\n * property. Will default to be a paragraph.\n */\nexport const Text: React.FC<\n  Omit<TypographyProps, \"type\"> & {\n    // xl is not a valid text size\n    size?: Exclude<Size, \"xl\">;\n  }\n> = ({ as = \"p\", children, ...props }) => {\n  return (\n    <Typography as={as} type=\"body\" {...props}>\n      {children}\n    </Typography>\n  );\n};\n"],"mappings":";;;;;;;;;;AAkBA,IAAa,QAKR,EAAE,KAAK,KAAK,UAAU,GAAG,YAAY;AACxC,QACE,iBAAA,GAAA,kBAAA,KAAC,mBAAA,YAAD;EAAgB;EAAI,MAAK;EAAO,GAAI;EACjC;EACU,CAAA"}