1 | import { HTMLAttributes, ElementType, Component, ComponentType } from "react";
|
2 | import CommonProps from '../util';
|
3 |
|
4 | export interface ShellProps extends HTMLAttributes<HTMLElement>, CommonProps {
|
5 | |
6 |
|
7 |
|
8 | device?: 'tablet' | 'desktop' | 'phone';
|
9 | type?: 'light' | 'dark' | 'brand';
|
10 | fixedHeader?: boolean;
|
11 | }
|
12 |
|
13 | export interface ShellCommonProps extends HTMLAttributes<HTMLElement>, CommonProps {
|
14 |
|
15 | }
|
16 |
|
17 | export interface ShellNavigationProps extends ShellCommonProps {
|
18 | collapse?: boolean;
|
19 | direction?: 'hoz' | 'ver';
|
20 | align?: 'left' | 'right' | 'center';
|
21 | fixed?: boolean;
|
22 | trigger?: any;
|
23 | onCollapseChange?: (collapse?: boolean) => void;
|
24 | }
|
25 |
|
26 | export interface ShellLocalNavigationProps extends ShellCommonProps {
|
27 | collapse?: boolean;
|
28 | onCollapseChange?: (collapse?: boolean) => void;
|
29 | }
|
30 |
|
31 | export interface ShellToolDockProps extends ShellCommonProps {
|
32 | collapse?: boolean;
|
33 | fixed?: boolean;
|
34 | onCollapseChange?: (collapse?: boolean) => void;
|
35 | }
|
36 |
|
37 | export interface ShellAncillaryProps extends ShellCommonProps {
|
38 | collapse?: boolean;
|
39 | onCollapseChange?: (collapse?: boolean) => void;
|
40 | }
|
41 |
|
42 | export default class Shell extends Component<ShellProps, any> {
|
43 | static Branding: ComponentType<ShellCommonProps>;
|
44 | static Action: ComponentType<ShellCommonProps>;
|
45 | static MultiTask: ComponentType<ShellCommonProps>;
|
46 | static AppBar: ComponentType<ShellCommonProps>;
|
47 | static Content: ComponentType<ShellCommonProps>;
|
48 | static Footer: ComponentType<ShellCommonProps>;
|
49 | static ToolDockItem: ComponentType<ShellCommonProps>;
|
50 |
|
51 | static Navigation: ComponentType<ShellNavigationProps>;
|
52 | static LocalNavigation: ComponentType<ShellLocalNavigationProps>;
|
53 | static Ancillary: ComponentType<ShellAncillaryProps>;
|
54 | static ToolDock: ComponentType<ShellToolDockProps>;
|
55 | }
|