@veeqo/ui 5.16.3 → 5.17.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,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { Text } from '../Text';
3
3
  import { AnimatedDropdown } from '../AnimatedDropdown';
4
- declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
4
+ declare const Container: import("styled-components").StyledComponent<"div", any, {
5
+ as: string;
6
+ }, "as">;
5
7
  declare const GroupLabel: import("styled-components").StyledComponent<"span", any, {} & import("../Text/types").TextProps, never>;
6
8
  declare const MainIcon: import("styled-components").StyledComponent<(props: any) => import("react").JSX.Element, any, {
7
9
  $shouldShow?: boolean | undefined;
@@ -1,11 +1,11 @@
1
1
  import { KeyboardEventHandler } from 'react';
2
2
  type UseHandleFocusArgs = {
3
- popperElement: HTMLDialogElement | null;
3
+ popperElement: HTMLDialogElement | HTMLDivElement | null;
4
4
  anchorElement: HTMLElement | null;
5
5
  onClose: () => void;
6
6
  disableFocusLock?: boolean;
7
7
  };
8
8
  export declare const useHandleFocus: ({ popperElement, anchorElement, onClose, disableFocusLock, }: UseHandleFocusArgs) => {
9
- handleKeyDown: KeyboardEventHandler<HTMLDialogElement>;
9
+ handleKeyDown: KeyboardEventHandler<HTMLDivElement | HTMLDialogElement>;
10
10
  };
11
11
  export {};
@@ -1,6 +1,10 @@
1
- export declare function useDropdown(): {
1
+ type UseDropdownInputProps = {
2
+ anchorElement?: HTMLDivElement | HTMLButtonElement | null;
3
+ };
4
+ export declare const useDropdown: ({ anchorElement }?: UseDropdownInputProps) => {
2
5
  shouldShowDropdown: boolean;
3
6
  toggleShouldShowDropdown: () => void;
4
7
  setShouldShowDropdown: (state: boolean) => void;
5
8
  closeDropdown: () => void;
6
9
  };
10
+ export {};