index.tsx 797 B

1234567891011121314151617181920212223242526
  1. import BaseTypography from './typography';
  2. import Text from './text';
  3. import Title from './title';
  4. import Paragraph from './paragraph';
  5. import Numeral from './numeral';
  6. export type TypographyType = typeof BaseTypography & {
  7. Text: typeof Text;
  8. Title: typeof Title;
  9. Paragraph: typeof Paragraph;
  10. Numeral: typeof Numeral
  11. };
  12. const Typography = BaseTypography as TypographyType;
  13. Typography.Text = Text;
  14. Typography.Title = Title;
  15. Typography.Paragraph = Paragraph;
  16. Typography.Numeral = Numeral;
  17. export type { BaseTypographyProps } from './base';
  18. export type { CopyableProps } from './copyable';
  19. export type { TitleProps } from './title';
  20. export type { TextProps } from './text';
  21. export type { ParagraphProps } from './paragraph';
  22. export * from './interface';
  23. export default Typography;