1 | import * as React from 'react';
|
2 | import { OverlayProps as BaseOverlayProps, OverlayArrowProps } from '@restart/ui/Overlay';
|
3 | import { TransitionType } from './helpers';
|
4 | import { Placement, PopperRef, RootCloseEvent } from './types';
|
5 | export interface OverlayInjectedProps {
|
6 | ref: React.RefCallback<HTMLElement>;
|
7 | style: React.CSSProperties;
|
8 | 'aria-labelledby'?: string;
|
9 | arrowProps: Partial<OverlayArrowProps>;
|
10 | show: boolean;
|
11 | placement: Placement | undefined;
|
12 | popper: PopperRef;
|
13 | hasDoneInitialMeasure?: boolean;
|
14 | [prop: string]: any;
|
15 | }
|
16 | export type OverlayChildren = React.ReactElement<OverlayInjectedProps> | ((injected: OverlayInjectedProps) => React.ReactNode);
|
17 | export interface OverlayProps extends Omit<BaseOverlayProps, 'children' | 'transition' | 'rootCloseEvent'> {
|
18 | children: OverlayChildren;
|
19 | transition?: TransitionType;
|
20 | placement?: Placement;
|
21 | rootCloseEvent?: RootCloseEvent;
|
22 | }
|
23 | declare const Overlay: React.ForwardRefExoticComponent<OverlayProps & React.RefAttributes<HTMLElement>>;
|
24 | export default Overlay;
|
25 |
|
\ | No newline at end of file |