import React from 'react'; interface OffsetsProps { x?: number; y?: number; } export interface DropdownProps extends Omit, 'css'> { /** * Aligning dropdown to the right parallel with it's target */ alignRight?: boolean; /** * Specify Dropdown direction and position relate to the target */ drop?: 'left' | 'right' | 'down' | 'up'; /** * To adjust Dropdown Position */ offsets?: OffsetsProps; /** * Specify target ref object you want to connect with dropdown */ targetRef?: React.RefObject; /** * Specify Dropdown visibility */ open?: boolean; /** * render additional overlay to prevent scroll action on parent element */ withOverlay?: boolean; /** * Specify dropdown wrapper zIndex */ zIndex?: number; /** * A function called when user click outside dropdown element, and it will trigger `onClose` function */ onClickOutside?: (e?: MouseEvent) => void; /** * A function called when Dropdown in an open state * */ onOpen?: () => void; /** * A function called when Dropdown in a close state */ onClose?: () => void; } export interface MenuProps extends DropdownProps { isOpen?: boolean; menuLeft?: number; menuTop?: number; isFixed?: boolean; zIndex?: number; } export {};