@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
27 lines • 1.2 kB
TypeScript
import React from 'react';
/**
* Makes the popup transfer to fullscreen when fullscreen is exited. Without this hook, the popup
* would not operate correctly with other popups on the screen.
*
* Don't use this in conjunction with a hook that will close the popup when exiting fullscreen.
* Doing so would open the popup when the intention was to close it.
*/
export declare const useTransferOnFullscreenExit: 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=useTransferOnFullscreenExit.d.ts.map