@veeqo/ui 6.0.0-beta.7 → 6.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/hooks/useHandleFocus.d.ts +2 -1
- package/dist/components/Popover/types.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PopoverProps } from './types';
|
|
3
|
-
export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, onShouldClose, style, disableFocusLock, useAnchorWidth, supressWarnings, ...dialogProps }: PopoverProps) => React.JSX.Element;
|
|
3
|
+
export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, onShouldClose, style, disableFocusLock, shouldStealFocus, useAnchorWidth, supressWarnings, ...dialogProps }: PopoverProps) => React.JSX.Element;
|
|
@@ -4,8 +4,9 @@ type UseHandleFocusArgs = {
|
|
|
4
4
|
anchorElement: HTMLElement | null;
|
|
5
5
|
onClose: () => void;
|
|
6
6
|
disableFocusLock?: boolean;
|
|
7
|
+
shouldStealFocus?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const useHandleFocus: ({ popperElement, anchorElement, onClose, disableFocusLock, }: UseHandleFocusArgs) => {
|
|
9
|
+
export declare const useHandleFocus: ({ popperElement, anchorElement, onClose, disableFocusLock, shouldStealFocus, }: UseHandleFocusArgs) => {
|
|
9
10
|
handleKeyDown: KeyboardEventHandler<HTMLDialogElement>;
|
|
10
11
|
};
|
|
11
12
|
export {};
|
|
@@ -10,6 +10,7 @@ export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
|
|
|
10
10
|
* Will disable the focus lock if set to true, use only if taking manual control.
|
|
11
11
|
*/
|
|
12
12
|
disableFocusLock?: boolean;
|
|
13
|
+
shouldStealFocus?: boolean;
|
|
13
14
|
/**
|
|
14
15
|
* When background is clicked, or ESC key is pressed we call this to close the popover.
|
|
15
16
|
*/
|