14 lines
651 B
Plaintext
14 lines
651 B
Plaintext
import { RefObject } from 'react';
|
|
|
|
/**
|
|
* Used to handle the outside interaction for popover-based components
|
|
* e.g. dropdown, datepicker, date-range-picker, popover, select, autocomplete etc
|
|
* @param element - the element outside of the popover ref, originally from `shouldCloseOnInteractOutside`
|
|
* @param triggerRef - The trigger ref object
|
|
* @param state - The state from the popover component
|
|
* @returns - a boolean value which is same as shouldCloseOnInteractOutside
|
|
*/
|
|
declare const ariaShouldCloseOnInteractOutside: (element: Element, triggerRef: RefObject<Element>, state: any) => boolean;
|
|
|
|
export { ariaShouldCloseOnInteractOutside };
|