1 | import * as React from 'react';
|
2 | import * as Popper from 'popper.js';
|
3 | import { CSSModule } from './index';
|
4 |
|
5 | interface PopoverChildrenRenderProps {
|
6 | scheduleUpdate: () => void;
|
7 | }
|
8 |
|
9 | export type PopoverChildren =
|
10 | | ((props: PopoverChildrenRenderProps) => React.ReactNode)
|
11 | | React.ReactNode;
|
12 |
|
13 | export interface PopoverProps extends React.HTMLAttributes<HTMLElement> {
|
14 | [key: string]: any;
|
15 | isOpen?: boolean;
|
16 | toggle?: React.MouseEventHandler<any> | (() => void);
|
17 | target: string | HTMLElement | React.RefObject<HTMLElement>;
|
18 | container?: string | HTMLElement | React.RefObject<HTMLElement>;
|
19 | boundariesElement?: Popper.Boundary | Element;
|
20 | placement?: Popper.Placement;
|
21 | popperClassName?: string;
|
22 | innerClassName?: string;
|
23 | disabled?: boolean;
|
24 | hideArrow?: boolean;
|
25 | placementPrefix?: string;
|
26 | delay?: number | { show: number; hide: number };
|
27 | modifiers?: Popper.Modifiers;
|
28 | positionFixed?: boolean;
|
29 | cssModule?: CSSModule;
|
30 | fade?: boolean;
|
31 | flip?: boolean;
|
32 | children?: PopoverChildren;
|
33 | }
|
34 |
|
35 | export interface UncontrolledPopoverProps extends PopoverProps {
|
36 | defaultOpen?: boolean;
|
37 | }
|
38 |
|
39 | declare class Popover extends React.Component<PopoverProps> {}
|
40 | export default Popover;
|
41 |
|
\ | No newline at end of file |