@veeqo/ui 4.0.0 → 4.1.0-beta.1

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/README.md CHANGED
@@ -10,7 +10,7 @@ In the longer term Icons and Integrations **WILL** be moved to their own library
10
10
 
11
11
  ### Links ⚓️
12
12
 
13
- **This Library**: [Storybook 📋](https://www.ui.veeqo.amazon.dev/?path=/docs/get-started-how-to-install--docs) | [Playroom 🛝](https://www.ui.veeqo.amazon.dev/playroom/)
13
+ **This Library**: [Storybook 📋](https:/ui.veeqo.amazon.dev/?path=/docs/get-started-how-to-install--docs) | [Playroom 🛝](https://ui.veeqo.amazon.dev/playroom/)
14
14
 
15
15
  **Old Library**: [Storybook 📋](https://master.d1cz47hw90nvy2.amplifyapp.com/) | [Playroom 🛝](https://master.d1cz47hw90nvy2.amplifyapp.com/playroom)
16
16
 
@@ -1,15 +1,3 @@
1
- import React, { ReactNode } from 'react';
2
- import { Placement } from '@popperjs/core';
3
- export declare const Backdrop: import("styled-components").StyledComponent<"div", any, {
4
- zIndex: number;
5
- }, never>;
6
- export type PopoverProps = {
7
- children: ReactNode;
8
- className?: string;
9
- anchorElement: HTMLElement | null;
10
- rootElementRef?: HTMLElement;
11
- placement?: Placement;
12
- onShouldClose?: () => void;
13
- zIndex?: number;
14
- };
15
- export declare const Popover: ({ children, className, anchorElement, rootElementRef, placement, onShouldClose, zIndex, }: PopoverProps) => React.JSX.Element;
1
+ import React from 'react';
2
+ import { PopoverProps } from './types';
3
+ export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, shards, onShouldClose, style, ...dialogProps }: PopoverProps) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ type UseUpdateAriaAnchor = {
2
+ anchorElement: HTMLElement | null;
3
+ popoverId: string;
4
+ };
5
+ /**
6
+ * Update the anchor element to sent the required attributes if they haven't already set them.
7
+ *
8
+ * This allows current, inaccesible usages to be improved.
9
+ */
10
+ export declare const useUpdateAriaAnchor: ({ anchorElement, popoverId }: UseUpdateAriaAnchor) => void;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const PopoverDialog: import("styled-components").StyledComponent<"dialog", any, {
2
+ zIndex: number;
3
+ }, never>;
@@ -0,0 +1,18 @@
1
+ import { DialogHTMLAttributes, ReactNode } from 'react';
2
+ import { Placement } from '@popperjs/core';
3
+ import { ReactFocusOnProps } from 'react-focus-on/dist/es5/types';
4
+ export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
5
+ children: ReactNode;
6
+ zIndex?: number;
7
+ placement?: Placement;
8
+ anchorElement: HTMLElement | null;
9
+ rootElementRef?: HTMLElement;
10
+ /**
11
+ * An array of Elements which should be WITHIN the focus trap i.e. sub-menu.
12
+ */
13
+ shards?: ReactFocusOnProps['shards'];
14
+ /**
15
+ * When background is clicked, or ESC key is pressed we call this to close the popover.
16
+ */
17
+ onShouldClose: () => void;
18
+ };
@@ -22,6 +22,7 @@ export { FilterTag } from './FilterTag';
22
22
  export { Grid } from './Grid';
23
23
  export { Image } from './Image';
24
24
  export { InputGroup } from './InputGroup';
25
+ export { LegacyDataTable } from './LegacyDataTable';
25
26
  export { Loader } from './Loader';
26
27
  export { LoginWithAmazonButton } from './LoginWithAmazonButton';
27
28
  export { Modal } from './Modal';