/**
* @file Modal
* @description
* @author fex
*/
///
import React from 'react';
import { ThemeProps } from 'amis-core';
import { LocaleProps } from 'amis-core';
import { type DraggableBounds, type DraggableData, type DraggableEvent } from 'react-draggable';
export declare const getContainerWithFullscreen: (container?: () => HTMLElement | HTMLElement | null) => () => HTMLElement | null;
export interface ModalProps extends ThemeProps, LocaleProps {
className?: string;
contentClassName?: string;
size?: any;
width?: any;
height?: any;
overlay?: boolean;
onHide: (e: any) => void;
closeOnEsc?: boolean;
closeOnOutside?: boolean;
container?: any;
show?: boolean;
disabled?: boolean;
onExited?: () => void;
onEntered?: () => void;
children?: React.ReactNode | Array;
modalClassName?: string;
modalMaskClassName?: string;
draggable?: boolean;
}
export interface ModalState {
bounds?: DraggableBounds;
dragPos?: {
x: number;
y: number;
};
}
export declare class Modal extends React.Component {
static defaultProps: {
container: HTMLElement;
size: string;
overlay: boolean;
draggable: boolean;
};
isRootClosed: boolean;
modalDom: HTMLElement;
static Header: {
new (props: Omit void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Omit void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element>;
} & import("hoist-non-react-statics").NonReactStatics<({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element, {}> & {
ComposedComponent: ({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Omit void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element>;
} & import("hoist-non-react-statics").NonReactStatics<({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element, {}> & {
ComposedComponent: ({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element;
}, {}> & {
ComposedComponent: {
new (props: Omit void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes, keyof LocaleProps> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element>;
} & import("hoist-non-react-statics").NonReactStatics<({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element, {}> & {
ComposedComponent: ({ classnames: cx, className, showCloseButton, onClose, children, classPrefix, translate: __, forwardedRef, ...rest }: ThemeProps & LocaleProps & {
className?: string | undefined;
showCloseButton?: boolean | undefined;
onClose?: (() => void) | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element;
};
};
static Title: {
new (props: Omit, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element>;
} & import("hoist-non-react-statics").NonReactStatics<({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element, {}> & {
ComposedComponent: ({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element;
};
static Body: {
new (props: Omit, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element>;
} & import("hoist-non-react-statics").NonReactStatics<({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element, {}> & {
ComposedComponent: ({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element;
};
static Footer: {
new (props: Omit, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element>;
} & import("hoist-non-react-statics").NonReactStatics<({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element, {}> & {
ComposedComponent: ({ classnames: cx, className, children, classPrefix, forwardedRef, ...rest }: ThemeProps & {
className?: string | undefined;
children?: React.ReactNode;
forwardedRef?: any;
} & React.HTMLAttributes) => React.JSX.Element;
};
state: Readonly;
componentDidMount(): void;
componentWillUnmount(): void;
handleEnter: () => void;
handleEntered: () => void;
handleExited: () => void;
modalRef: (ref: any) => void;
handleRootMouseDownCapture(e: MouseEvent): void;
handleRootMouseUpCapture(e: MouseEvent): void;
handleRootMouseUp(e: MouseEvent): void;
handleDragStart: (_event: DraggableEvent, uiData: DraggableData) => void;
handleDrag: (e: DraggableEvent, { deltaX, deltaY }: DraggableData) => void;
handleDragStop: (e: DraggableEvent) => void;
getDragStyle: () => React.CSSProperties;
render(): React.JSX.Element;
}
declare const _default: {
new (props: Omit, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, keyof ThemeProps> & import("packages/amis-core/lib/theme").ThemeOuterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType<{
new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Modal;
}>;
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Modal;
}, {}> & {
ComposedComponent: {
new (props: Pick, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}): {
ref: any;
childRef(ref: any): void;
getWrappedInstance(): any;
render(): React.JSX.Element;
context: unknown;
setState(state: {} | ((prevState: Readonly<{}>, props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly, "classnames" | "classPrefix" | "style" | "className" | "theme" | "mobileUI" | "children" | "closeOnEsc" | "show" | "disabled" | "onHide" | "width" | "height" | "closeOnOutside" | "onExited" | "onEntered" | "contentClassName" | "modalClassName" | "modalMaskClassName"> & {
container?: any;
size?: any;
draggable?: boolean | undefined;
overlay?: boolean | undefined;
} & {} & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context;
ComposedComponent: React.ComponentType;
} & import("hoist-non-react-statics").NonReactStatics & {
ComposedComponent: typeof Modal;
};
} & {
Header: typeof Modal.Header;
Title: typeof Modal.Title;
Body: typeof Modal.Body;
Footer: typeof Modal.Footer;
};
export default _default;