@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
28 lines • 1.25 kB
TypeScript
import React from 'react';
/**
* Makes the popup transfer to the fullscreen element when fullscreen is entered. Without this, the
* popup would seem to disappear because the popup container element is not a child of the
* fullscreen element.
*
* Don't use this in conjunction with a hook that will close the popup when entering fullscreen.
* Doing so would open the popup when the intention was to close it.
*/
export declare const useTransferOnFullscreenEnter: import("@workday/canvas-kit-react/common").BehaviorHook<{
state: {
stackRef: React.RefObject<HTMLDivElement>;
targetRef: React.RefObject<HTMLButtonElement>;
initialFocusRef: React.RefObject<any> | undefined;
returnFocusRef: React.RefObject<any> | undefined;
placement: import("@popperjs/core").Placement;
id: string;
visibility: "hidden" | "visible";
};
events: {
updatePlacement(data: {
placement: import("@popperjs/core").Placement;
}): void;
show(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
hide(event?: Event | React.SyntheticEvent<Element, Event> | undefined): void;
};
}, {}>;
//# sourceMappingURL=useTransferOnFullscreenEnter.d.ts.map