1 | import React from 'react';
|
2 | import { Placement, UsePopperOptions, Offset, State } from './usePopper';
|
3 | import { RootCloseOptions } from './useRootClose';
|
4 | import { DOMContainer } from './useWaitForDOMRef';
|
5 | import { TransitionCallbacks } from './types';
|
6 | export interface OverlayProps extends TransitionCallbacks {
|
7 | flip?: boolean;
|
8 | placement?: Placement;
|
9 | offset?: Offset;
|
10 | containerPadding?: number;
|
11 | popperConfig?: Omit<UsePopperOptions, 'placement'>;
|
12 | container?: DOMContainer;
|
13 | target: DOMContainer;
|
14 | show?: boolean;
|
15 | transition?: React.ComponentType<{
|
16 | in?: boolean;
|
17 | appear?: boolean;
|
18 | } & TransitionCallbacks>;
|
19 | onHide?: (e: Event) => void;
|
20 | rootClose?: boolean;
|
21 | rootCloseDisabled?: boolean;
|
22 | rootCloseEvent?: RootCloseOptions['clickTrigger'];
|
23 | children: (value: {
|
24 | show: boolean;
|
25 | placement: Placement;
|
26 | update: () => void;
|
27 | forceUpdate: () => void;
|
28 | state?: State;
|
29 | props: Record<string, any> & {
|
30 | ref: React.RefCallback<HTMLElement>;
|
31 | style: React.CSSProperties;
|
32 | 'aria-labelledby'?: string;
|
33 | };
|
34 | arrowProps: Record<string, any> & {
|
35 | ref: React.RefCallback<HTMLElement>;
|
36 | style: React.CSSProperties;
|
37 | };
|
38 | }) => React.ReactNode;
|
39 | }
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<HTMLElement>>;
|
45 | export default Overlay;
|