1 | import * as React from "react";
|
2 | import { ValidationMap } from "../../common/context";
|
3 | import { Props } from "../../common/props";
|
4 | export declare type PortalProps = IPortalProps;
|
5 | export interface IPortalProps extends Props {
|
6 | |
7 |
|
8 |
|
9 | onChildrenMount?: () => void;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 | container?: HTMLElement;
|
16 | }
|
17 | export interface IPortalState {
|
18 | hasMounted: boolean;
|
19 | }
|
20 | export interface IPortalContext {
|
21 |
|
22 | blueprintPortalClassName?: string;
|
23 | }
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | export declare class Portal extends React.Component<IPortalProps, IPortalState> {
|
30 | static displayName: string;
|
31 | static contextTypes: ValidationMap<IPortalContext>;
|
32 | static defaultProps: IPortalProps;
|
33 | context: IPortalContext;
|
34 | state: IPortalState;
|
35 | private portalElement;
|
36 | render(): React.ReactPortal | null;
|
37 | componentDidMount(): void;
|
38 | componentDidUpdate(prevProps: IPortalProps): void;
|
39 | componentWillUnmount(): void;
|
40 | private createContainerElement;
|
41 | private unstableRenderNoPortal;
|
42 | }
|