UNPKG

1.39 kBTypeScriptView Raw
1import * as React from 'react';
2import type { CSSMotionProps } from 'rc-motion';
3import type { StretchType, AlignType, TransitionNameType, AnimationType, Point, MobileConfig } from '../interface';
4import type { PopupInnerRef } from './PopupInner';
5export interface PopupProps {
6 visible?: boolean;
7 style?: React.CSSProperties;
8 getClassNameFromAlign?: (align: AlignType) => string;
9 onAlign?: (element: HTMLElement, align: AlignType) => void;
10 getRootDomNode?: () => HTMLElement;
11 align?: AlignType;
12 destroyPopupOnHide?: boolean;
13 className?: string;
14 prefixCls: string;
15 onMouseEnter?: React.MouseEventHandler<HTMLElement>;
16 onMouseLeave?: React.MouseEventHandler<HTMLElement>;
17 onMouseDown?: React.MouseEventHandler<HTMLElement>;
18 onTouchStart?: React.TouchEventHandler<HTMLElement>;
19 onClick?: React.MouseEventHandler<HTMLDivElement>;
20 stretch?: StretchType;
21 children?: React.ReactNode;
22 point?: Point;
23 zIndex?: number;
24 mask?: boolean;
25 motion: CSSMotionProps;
26 maskMotion: CSSMotionProps;
27 forceRender?: boolean;
28 animation: AnimationType;
29 transitionName: TransitionNameType;
30 maskAnimation: AnimationType;
31 maskTransitionName: TransitionNameType;
32 mobile?: MobileConfig;
33}
34declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<PopupInnerRef>>;
35export default Popup;