1 | import { HTMLAttributes, ElementType, Component, ComponentType } from "react";
|
2 | import CommonProps from '../util';
|
3 |
|
4 | export interface TextProps extends HTMLAttributes<HTMLElement>, CommonProps {
|
5 | delete?: boolean;
|
6 | mark?: boolean;
|
7 | underline?: boolean;
|
8 | strong?: boolean;
|
9 | code?: boolean;
|
10 | component?: ElementType;
|
11 | }
|
12 |
|
13 | export interface TitleProps extends TextProps {
|
14 |
|
15 | }
|
16 |
|
17 | export interface ParagraphProps extends TextProps {
|
18 | }
|
19 |
|
20 | export interface TypographyProps extends TextProps {}
|
21 |
|
22 | export default class Typography extends Component<TypographyProps, any> {
|
23 | static H1: ComponentType<TitleProps>;
|
24 | static H2: ComponentType<TitleProps>;
|
25 | static H3: ComponentType<TitleProps>;
|
26 | static H4: ComponentType<TitleProps>;
|
27 | static H5: ComponentType<TitleProps>;
|
28 | static H6: ComponentType<TitleProps>;
|
29 | static Text: ComponentType<TextProps>;
|
30 | static Paragraph: ComponentType<ParagraphProps>;
|
31 | }
|