1 | import * as React from 'react';
|
2 | import { PageGroupProps } from './PageGroup';
|
3 | export declare enum PageLayouts {
|
4 | vertical = "vertical",
|
5 | horizontal = "horizontal"
|
6 | }
|
7 | export interface PageContextProps {
|
8 | isManagedSidebar: boolean;
|
9 | onNavToggle: () => void;
|
10 | isNavOpen: boolean;
|
11 | width: number;
|
12 | getBreakpoint: (width: number | null) => 'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
13 | }
|
14 | export declare const pageContextDefaults: PageContextProps;
|
15 | export declare const PageContext: React.Context<PageContextProps>;
|
16 | export declare const PageContextProvider: React.Provider<PageContextProps>;
|
17 | export declare const PageContextConsumer: React.Consumer<PageContextProps>;
|
18 | export interface PageProps extends React.HTMLProps<HTMLDivElement> {
|
19 |
|
20 | children?: React.ReactNode;
|
21 |
|
22 | className?: string;
|
23 |
|
24 | header?: React.ReactNode;
|
25 |
|
26 | sidebar?: React.ReactNode;
|
27 |
|
28 | notificationDrawer?: React.ReactNode;
|
29 |
|
30 | isNotificationDrawerExpanded?: boolean;
|
31 |
|
32 | isBreadcrumbWidthLimited?: boolean;
|
33 |
|
34 | onNotificationDrawerExpand?: () => void;
|
35 |
|
36 | skipToContent?: React.ReactElement;
|
37 |
|
38 | role?: string;
|
39 |
|
40 | mainContainerId?: string;
|
41 |
|
42 | mainTabIndex?: number | null;
|
43 | |
44 |
|
45 |
|
46 |
|
47 | isManagedSidebar?: boolean;
|
48 |
|
49 | isTertiaryNavWidthLimited?: boolean;
|
50 | |
51 |
|
52 |
|
53 | defaultManagedSidebarIsOpen?: boolean;
|
54 | |
55 |
|
56 |
|
57 |
|
58 | onPageResize?: (object: any) => void;
|
59 | |
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 | getBreakpoint?: (width: number | null) => 'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
66 |
|
67 | breadcrumb?: React.ReactNode;
|
68 |
|
69 | tertiaryNav?: React.ReactNode;
|
70 |
|
71 | mainAriaLabel?: string;
|
72 |
|
73 | isTertiaryNavGrouped?: boolean;
|
74 |
|
75 | isBreadcrumbGrouped?: boolean;
|
76 |
|
77 | additionalGroupedContent?: React.ReactNode;
|
78 |
|
79 | groupProps?: PageGroupProps;
|
80 | }
|
81 | export interface PageState {
|
82 | desktopIsNavOpen: boolean;
|
83 | mobileIsNavOpen: boolean;
|
84 | mobileView: boolean;
|
85 | width: number;
|
86 | }
|
87 | export declare class Page extends React.Component<PageProps, PageState> {
|
88 | static displayName: string;
|
89 | static defaultProps: PageProps;
|
90 | mainRef: React.RefObject<HTMLDivElement>;
|
91 | pageRef: React.RefObject<HTMLDivElement>;
|
92 | observer: any;
|
93 | constructor(props: PageProps);
|
94 | componentDidMount(): void;
|
95 | componentWillUnmount(): void;
|
96 | getWindowWidth: () => number;
|
97 | isMobile: () => boolean;
|
98 | resize: () => void;
|
99 | handleResize: (...args: any[]) => void;
|
100 | handleMainClick: () => void;
|
101 | onNavToggleMobile: () => void;
|
102 | onNavToggleDesktop: () => void;
|
103 | render(): JSX.Element;
|
104 | }
|
105 | //# sourceMappingURL=Page.d.ts.map |
\ | No newline at end of file |