UNPKG

@wix/design-system

Version:

@wix/design-system

9 lines 973 B
import type { PopoverNextProps } from '../PopoverNext.types'; import { PopoverNextContextValue } from './usePopoverNextContext'; export type UsePopoverProps = Omit<PopoverNextProps, 'children'> & { rootRef: React.RefObject<HTMLDivElement> | null; }; type UsePopoverReturn = Omit<PopoverNextContextValue, 'rootPortal' | 'flip' | 'placement'>; export declare function usePopover({ dataHook, open, onOpenChange, focusManagerEnabled, appendTo, dynamicWidth, zIndex, width, minWidth, maxWidth, excludeClass, moveBy, flip: shouldFlip, placement, fixed, rootRef, showDelay, hideDelay, timeout: duration, skin, transitionSettings, onClickOutside, overlay, role, tabIndex, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, id, style, onClick, animate, showArrow, customArrow, contentClassName, onMouseEnter, onMouseLeave, autoUpdateOptions, }: UsePopoverProps): UsePopoverReturn; export {}; //# sourceMappingURL=usePopover.d.ts.map