forked from foundation/inky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
componentFactory.d.ts
37 lines (37 loc) · 1.07 KB
/
componentFactory.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { Node } from 'parse5';
export declare const COMPONENT_DEFAULTS: {
button: string;
row: string;
columns: string;
container: string;
callout: string;
inky: string;
'block-grid': string;
menu: string;
item: string;
center: string;
spacer: string;
wrapper: string;
'h-line': string;
};
export declare class ComponentFactory {
private columnCount;
private componentTags;
constructor(columnCount?: number, componentTags?: typeof COMPONENT_DEFAULTS);
columns(element: Node): string;
hLine(element: Node): string;
row(element: Node): string;
button(element: Node): string;
container(element: Node): string;
inky(element: Node): string;
blockGrid(element: Node): string;
menu(element: Node): string;
menuItem(element: Node): string;
center(element: Node): string;
callout(element: Node): string;
spacer(element: Node): string;
wrapper(element: Node): string;
generate(element: Node): string;
convertAll(document: Node): Node;
convertAll(document: string): string;
}