import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import type { PopoverProps } from './Popover.types'; declare class Popover extends PureComponent { static displayName: string; static Element: React.FunctionComponent; static Content: React.FunctionComponent; static propTypes: { /** The Popover's placement: * * auto-start * * auto * * auto-end * * top-start * * top * * top-end * * right-start * * right * * right-end * * bottom-end * * bottom * * bottom-start * * left-end * * left * * left-start */ placement: PropTypes.Requireable; /** Is the content shown or not */ shown: PropTypes.Requireable; /** Enables calculations in relation to a dom element */ appendTo: PropTypes.Requireable; /** custom classname */ className: PropTypes.Requireable; /** the classname to be passed to the popover's content container */ contentClassName: PropTypes.Requireable; /** Custom arrow element */ customArrow: PropTypes.Requireable<(...args: any[]) => any>; /** Breaking change: When true - onClickOutside will be called only when popover content is shown */ disableClickOutsideWhenClosed: PropTypes.Requireable; /** popovers content is set to minnimum width of trigger element, but it can expand up to the value of maxWidth. */ dynamicWidth: PropTypes.Requireable; /** Clicking on elements with this excluded class will will not trigger onClickOutside callback */ excludeClass: PropTypes.Requireable; /** * Whether to enable the fixed behaviour. This behaviour is used to keep the `` at it's * original placement even when it's being positioned outside the boundary. */ fixed: PropTypes.Requireable; /** * Whether to enable the flip behaviour. This behaviour is used to flip the ``'s placement * when it starts to overlap the target element (``). */ flip: PropTypes.Requireable; fluid: PropTypes.Requireable; /** Hide Delay in ms */ hideDelay: PropTypes.Requireable; /** Id */ id: PropTypes.Requireable; /** * popover content maxWidth value * - `number` value which converts to css with `px` * - `string` value that contains `px` */ maxWidth: PropTypes.Requireable>; /** * popover content minWidth value * - `number` value which converts to css with `px` * - `string` value that contains `px` */ minWidth: PropTypes.Requireable>; /** Moves arrow by amount */ moveArrowTo: PropTypes.Requireable; /** Moves popover relative to the parent */ moveBy: PropTypes.Requireable; y: PropTypes.Requireable; }>>; /** onClick on the component */ onClick: PropTypes.Requireable<(...args: any[]) => any>; /** Provides callback to invoke when clicked outside of the popover */ onClickOutside: PropTypes.Requireable<(...args: any[]) => any>; /** onKeyDown on the target component */ onKeyDown: PropTypes.Requireable<(...args: any[]) => any>; /** onMouseEnter on the component */ onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>; /** onMouseLeave on the component */ onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>; /** target element role value */ role: PropTypes.Requireable; /** Show show arrow from the content */ showArrow: PropTypes.Requireable; /** Show Delay in ms */ showDelay: PropTypes.Requireable; /** Inline style */ style: PropTypes.Requireable; /** Animation timer */ timeout: PropTypes.Requireable; exit: PropTypes.Requireable; }> | null | undefined>>; /** * popover content width value * - `number` value which converts to css with `px` * - `string` value that contains `px` */ width: PropTypes.Requireable>; /** popover z-index */ zIndex: PropTypes.Requireable; /** Applied as data-hook HTML attribute that can be used in the tests */ dataHook: PropTypes.Requireable; /** Adds enter and exit animation */ animate: PropTypes.Requireable; /** The theme of the popover */ theme: PropTypes.Requireable; /** Callback fo invoke when popover is shown */ onShow: PropTypes.Requireable<(...args: any[]) => any>; /** Callback fo invoke when popover is hidden */ onHide: PropTypes.Requireable<(...args: any[]) => any>; }; static defaultProps: { appendTo: string; theme: string; animate: boolean; }; render(): React.JSX.Element; } export default Popover; //# sourceMappingURL=Popover.d.ts.map