@veeqo/ui 4.0.2-beta.2 → 4.0.2-beta.4
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/styled.d.ts +2 -3
- package/dist/components/Popover/types.d.ts +8 -5
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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, shards, onShouldClose, style,
|
|
3
|
+
export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, shards, onShouldClose, style, disableFocusLock, ...dialogProps }: PopoverProps) => React.JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { BackdropProps } from './types';
|
|
1
2
|
export declare const PopoverDialog: import("styled-components").StyledComponent<"dialog", any, {
|
|
2
3
|
zIndex: number;
|
|
3
4
|
}, never>;
|
|
4
|
-
export declare const Backdrop: import("styled-components").StyledComponent<"div", any,
|
|
5
|
-
zIndex: number;
|
|
6
|
-
}, never>;
|
|
5
|
+
export declare const Backdrop: import("styled-components").StyledComponent<"div", any, Pick<BackdropProps, "zIndex">, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Placement } from '@popperjs/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactFocusLockProps } from 'react-focus-lock/interfaces';
|
|
4
4
|
export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
zIndex?: number;
|
|
@@ -8,16 +8,19 @@ export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
|
|
|
8
8
|
anchorElement: HTMLElement | null;
|
|
9
9
|
rootElementRef?: HTMLElement;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* you are taking manual control of focus behaviour you may disable it.
|
|
11
|
+
* Will disable the focus lock if set to true, use only if taking manual control.
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
disableFocusLock?: boolean;
|
|
15
14
|
/**
|
|
16
15
|
* An array of Elements which should be WITHIN the focus trap i.e. sub-menu.
|
|
17
16
|
*/
|
|
18
|
-
shards?:
|
|
17
|
+
shards?: ReactFocusLockProps['shards'];
|
|
19
18
|
/**
|
|
20
19
|
* When background is clicked, or ESC key is pressed we call this to close the popover.
|
|
21
20
|
*/
|
|
22
21
|
onShouldClose: () => void;
|
|
23
22
|
};
|
|
23
|
+
export type BackdropProps = {
|
|
24
|
+
zIndex: number;
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
};
|