@veeqo/ui 4.0.2-beta.4 → 4.0.2-beta.5

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.
@@ -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, disableFocusLock, ...dialogProps }: PopoverProps) => React.JSX.Element;
3
+ export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, onShouldClose, style, disableFocusLock, ...dialogProps }: PopoverProps) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { KeyboardEventHandler } from 'react';
2
+ export declare const useHandleFocus: (ref: HTMLDialogElement | null, onClose: () => void, disableFocusLock?: boolean) => {
3
+ handleKeyDown: KeyboardEventHandler<HTMLDialogElement>;
4
+ };
@@ -1,6 +1,5 @@
1
1
  import { DialogHTMLAttributes, ReactNode } from 'react';
2
2
  import { Placement } from '@popperjs/core';
3
- import { ReactFocusLockProps } from 'react-focus-lock/interfaces';
4
3
  export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
5
4
  children: ReactNode;
6
5
  zIndex?: number;
@@ -11,10 +10,6 @@ export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
11
10
  * Will disable the focus lock if set to true, use only if taking manual control.
12
11
  */
13
12
  disableFocusLock?: boolean;
14
- /**
15
- * An array of Elements which should be WITHIN the focus trap i.e. sub-menu.
16
- */
17
- shards?: ReactFocusLockProps['shards'];
18
13
  /**
19
14
  * When background is clicked, or ESC key is pressed we call this to close the popover.
20
15
  */