@veeqo/ui 5.1.2 → 6.0.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.
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { AnimatedDropdownProps } from './types';
3
- export declare const AnimatedDropdown: ({ cta, shouldShowDropdown, children, className, reversed, onClickAway, timeout, transitionClassnames, onClick, onMouseEnter, onMouseLeave, }: AnimatedDropdownProps) => React.JSX.Element;
3
+ export declare const AnimatedDropdown: ({ id, cta, shouldShowDropdown, children, className, reversed, placement, onShouldClose, onClick, onMouseEnter, onMouseLeave, useAnchorWidth, }: AnimatedDropdownProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { BasicDropdownProps } from '../types';
3
+ export declare const Dropdown: ({ children, placement, className, reversed, anchorElement, useAnchorWidth, onShouldClose, }: BasicDropdownProps) => React.JSX.Element;
@@ -1 +1,14 @@
1
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ /// <reference types="react" />
2
+ export declare const DropdownContainer: import("styled-components").StyledComponent<import("framer-motion").CustomDomComponent<{
3
+ [x: string]: any;
4
+ [x: number]: any;
5
+ [x: symbol]: any;
6
+ } & {
7
+ theme?: any;
8
+ } & {
9
+ as?: string | import("react").ComponentType<any> | undefined;
10
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
11
+ }>, any, {
12
+ reversed?: boolean | undefined;
13
+ useAnchorWidth?: boolean | undefined;
14
+ }, never>;
@@ -1,11 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
2
  declare const Wrap: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- declare const Dropdown: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../types").EventHandlerProps & {
5
- className?: string | undefined;
6
- children: import("react").ReactNode;
7
- role?: import("react").AriaRole | undefined;
8
- } & import("react").RefAttributes<HTMLDivElement>>, any, {
9
- reversed?: boolean | undefined;
10
- }, never>;
11
- export { Wrap, Dropdown, Container };
3
+ export { Wrap, Container };
@@ -1,15 +1,17 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { EventHandlerProps } from '../types';
3
- export type BasicDropdownProps = EventHandlerProps & {
3
+ import { PopoverProps } from '../Popover/types';
4
+ export type BasicDropdownProps = {
4
5
  className?: string;
5
6
  children: ReactNode;
6
- role?: HTMLAttributes<HTMLDivElement>['role'];
7
- };
8
- export type AnimatedDropdownProps = BasicDropdownProps & {
7
+ reversed?: boolean;
8
+ } & PopoverProps;
9
+ export type AnimatedDropdownProps = EventHandlerProps & Pick<BasicDropdownProps, 'children' | 'className' | 'placement' | 'useAnchorWidth'> & {
10
+ id?: string;
9
11
  cta?: ReactNode;
10
12
  shouldShowDropdown: boolean;
11
13
  timeout?: number;
12
14
  transitionClassnames?: string;
13
- onClickAway?: (event: Event) => void;
14
15
  reversed?: boolean;
16
+ onShouldClose: () => void;
15
17
  };
@@ -5,4 +5,4 @@ export interface ClassNamesReturnPayload {
5
5
  container?: string;
6
6
  cross?: string;
7
7
  }
8
- export declare const FilterTag: ({ className, e2eClassName, label, text, iconSlot, fill, content, footer, onClickAway, onClick, shouldCloseOnClickAway, }: FilterTagProps) => React.JSX.Element;
8
+ export declare const FilterTag: ({ className, e2eClassName, label, text, iconSlot, fill, content, footer, onClick, }: FilterTagProps) => React.JSX.Element;
@@ -8,7 +8,5 @@ export interface FilterTagProps {
8
8
  fill?: string;
9
9
  content?: ReactNode;
10
10
  footer?: ReactNode;
11
- onClickAway?: (event: Event, closeDropdown?: () => void) => void;
12
11
  onClick?: () => void;
13
- shouldCloseOnClickAway?: boolean;
14
12
  }
@@ -1,3 +1,7 @@
1
- declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ declare const Container: import("styled-components").StyledComponent<"div", any, {
2
+ onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
3
+ tabIndex: 0;
4
+ role: "option";
5
+ }, "tabIndex" | "role" | "onKeyDown">;
2
6
  declare const StyledText: import("styled-components").StyledComponent<"span", any, {} & import("../../../Text/types").TextProps, never>;
3
7
  export { StyledText as Text, Container };
@@ -1,9 +1,3 @@
1
- import React, { Component } from 'react';
2
- import { PaginationRangeOption, PaginationRangeProps, PaginationRangeState } from './types';
3
- export declare class PaginationRange extends Component<PaginationRangeProps, PaginationRangeState> {
4
- constructor(props: PaginationRangeProps);
5
- handleRangeListChange: (item: PaginationRangeOption) => void;
6
- setDropdownValue: (currentValue: PaginationRangeOption) => void;
7
- toggleShouldShow: () => void;
8
- render(): React.JSX.Element;
9
- }
1
+ import React from 'react';
2
+ import { PaginationRangeProps } from './types';
3
+ export declare const PaginationRange: ({ className, paginationRange, reversedDropdown, onPaginationRangeChange, dropdownValue: parentValue, }: PaginationRangeProps) => React.JSX.Element;
@@ -1,6 +1,2 @@
1
- /// <reference types="react" />
2
- import { Text } from '../Text';
3
1
  declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- declare const Dropdown: import("styled-components").StyledComponent<({ cta, shouldShowDropdown, children, className, reversed, onClickAway, timeout, transitionClassnames, onClick, onMouseEnter, onMouseLeave, }: import("../AnimatedDropdown/types").AnimatedDropdownProps) => import("react").JSX.Element, any, {}, never>;
5
- declare const Button: import("styled-components").StyledComponent<"button", any, {}, never>;
6
- export { Container, Dropdown, Button, Text };
2
+ export { Container };
@@ -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, ...dialogProps }: PopoverProps) => React.JSX.Element;
3
+ export declare const Popover: ({ id: passedId, children, zIndex, placement, anchorElement, rootElementRef, onShouldClose, style, disableFocusLock, useAnchorWidth, ...dialogProps }: PopoverProps) => React.JSX.Element;
@@ -14,6 +14,7 @@ export type PopoverProps = DialogHTMLAttributes<HTMLDialogElement> & {
14
14
  * When background is clicked, or ESC key is pressed we call this to close the popover.
15
15
  */
16
16
  onShouldClose: () => void;
17
+ useAnchorWidth?: boolean;
17
18
  };
18
19
  export type BackdropProps = {
19
20
  zIndex: number;