downshift 9.3.4 → 9.3.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.
Files changed (35) hide show
  1. package/dist/downshift.cjs.cjs +9 -14
  2. package/dist/downshift.d.ts +14 -48
  3. package/dist/downshift.esm.mjs +9 -14
  4. package/dist/downshift.native.cjs.cjs +9 -14
  5. package/dist/downshift.nativeweb.cjs.cjs +9 -14
  6. package/dist/downshift.umd.js +9 -14
  7. package/dist/downshift.umd.js.map +1 -1
  8. package/dist/downshift.umd.min.js +1 -1
  9. package/dist/downshift.umd.min.js.map +1 -1
  10. package/dist/hooks/testUtils/interactions.d.ts +7 -7
  11. package/dist/hooks/useCombobox/__tests__/utils/renderCombobox.d.ts +2 -59
  12. package/dist/hooks/useCombobox/__tests__/utils/renderUseCombobox.d.ts +1 -1
  13. package/dist/hooks/useCombobox/index.types.d.ts +0 -2
  14. package/dist/hooks/useCombobox/utils/getInitialState.d.ts +1 -6
  15. package/dist/hooks/useCombobox/utils/propTypes.d.ts +1 -43
  16. package/dist/hooks/useSelect/__tests__/utils/getItemIndexByCharacter.d.ts +1 -1
  17. package/dist/hooks/useSelect/__tests__/utils/renderSelect.d.ts +1 -58
  18. package/dist/hooks/useSelect/__tests__/utils/renderUseSelect.d.ts +1 -1
  19. package/dist/hooks/useSelect/__tests__/utils/stateChangeTestCases.d.ts +29 -50
  20. package/dist/hooks/useSelect/utils/propTypes.d.ts +1 -38
  21. package/dist/hooks/useTagGroup/__tests__/utils/renderTagGroup.d.ts +1 -63
  22. package/dist/hooks/useTagGroup/__tests__/utils/renderUseTagGroup.d.ts +2 -2
  23. package/dist/hooks/useTagGroup/index.types.d.ts +0 -1
  24. package/dist/hooks/utils/dropdownDefaultProps.d.ts +1 -2
  25. package/package.json +1 -1
  26. package/preact/dist/downshift.cjs.cjs +9 -14
  27. package/preact/dist/downshift.esm.mjs +9 -14
  28. package/preact/dist/downshift.umd.js +9 -14
  29. package/preact/dist/downshift.umd.js.map +1 -1
  30. package/preact/dist/downshift.umd.min.js +1 -1
  31. package/preact/dist/downshift.umd.min.js.map +1 -1
  32. package/dist/hooks/useMultipleSelection/index.d.ts +0 -58
  33. package/dist/hooks/useMultipleSelection/reducer.d.ts +0 -1
  34. package/dist/hooks/useMultipleSelection/stateChangeTypes.d.ts +0 -13
  35. package/dist/hooks/useMultipleSelection/utils.d.ts +0 -44
@@ -1,16 +1,16 @@
1
1
  import type userEvent from '@testing-library/user-event';
2
- export declare const waitForDebouncedA11yStatusUpdate: (shouldBeCleared?: boolean) => void;
2
+ export declare const waitForDebouncedA11yStatusUpdate: (shouldBeCleared?: boolean) => any;
3
3
  type UserEvent = ReturnType<typeof userEvent.setup>;
4
- export declare function getLabel(): HTMLElement;
5
- export declare function getMenu(): HTMLElement;
6
- export declare function getToggleButton(): HTMLElement;
7
- export declare function getItemAtIndex(index: number): HTMLElement | undefined;
8
- export declare function getItems(): HTMLElement[];
4
+ export declare function getLabel(): any;
5
+ export declare function getMenu(): any;
6
+ export declare function getToggleButton(): any;
7
+ export declare function getItemAtIndex(index: number): any;
8
+ export declare function getItems(): any;
9
9
  export declare function clickOnItemAtIndex(user: UserEvent, index: number): Promise<void>;
10
10
  export declare function clickOnToggleButton(user: UserEvent): Promise<void>;
11
11
  export declare function mouseMoveItemAtIndex(user: UserEvent, index: number): Promise<void>;
12
12
  export declare function mouseLeaveItemAtIndex(user: UserEvent, index: number): Promise<void>;
13
13
  export declare function keyDownOnToggleButton(user: UserEvent, keys: string): Promise<void>;
14
- export declare function getA11yStatusContainer(): HTMLElement | null;
14
+ export declare function getA11yStatusContainer(): any;
15
15
  export declare function tab(user: UserEvent, shiftKey?: boolean): Promise<void>;
16
16
  export {};
@@ -11,63 +11,6 @@ type DropdownComboboxProps = Partial<UseComboboxProps<string>> & {
11
11
  stringItem: string;
12
12
  }) => React.ReactNode;
13
13
  };
14
- export declare function renderCombobox(props?: Omit<DropdownComboboxProps, 'renderSpy'>, uiCallback?: (ui: React.ReactElement) => React.ReactElement): {
15
- renderSpy: jest.Mock<any, any, any>;
16
- rerender: (p: Omit<DropdownComboboxProps, 'renderSpy'>) => void;
17
- user: import("@testing-library/user-event").UserEvent;
18
- container: HTMLElement;
19
- baseElement: HTMLElement;
20
- debug: (baseElement?: any, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
21
- unmount: () => void;
22
- asFragment: () => DocumentFragment;
23
- getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
24
- getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
25
- queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
26
- queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
27
- findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
28
- findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
29
- getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
30
- getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
31
- queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
32
- queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
33
- findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
34
- findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
35
- getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
36
- getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
37
- queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
38
- queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
39
- findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
40
- findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
41
- getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
42
- getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
43
- queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
44
- queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
45
- findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
46
- findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
47
- getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
48
- getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
49
- queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
50
- queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
51
- findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
52
- findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
53
- getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
54
- getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
55
- queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
56
- queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
57
- findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
58
- findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
59
- getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement;
60
- getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
61
- queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement | null;
62
- queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
63
- findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
64
- findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
65
- getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
66
- getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
67
- queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
68
- queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
69
- findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
70
- findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
71
- };
72
- export declare function getInput(): HTMLElement;
14
+ export declare function renderCombobox(props?: Omit<DropdownComboboxProps, 'renderSpy'>, uiCallback?: (ui: React.ReactElement) => React.ReactElement): any;
15
+ export declare function getInput(): any;
73
16
  export {};
@@ -1,2 +1,2 @@
1
1
  import { UseComboboxProps } from '../../index.types';
2
- export declare function renderUseCombobox(props?: Partial<UseComboboxProps<string>>): import("@testing-library/react").RenderHookResult<import("../../index.types").UseComboboxReturnValue<string>, unknown>;
2
+ export declare function renderUseCombobox(props?: Partial<UseComboboxProps<string>>): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AnyRef, Environment, GetPropsCommonOptions, Overwrite } from '../../downshift.types';
3
2
  export interface UseComboboxState<Item> {
4
3
  highlightedIndex: number;
@@ -243,7 +242,6 @@ export interface UseComboboxGetInputPropsReturnValue {
243
242
  'aria-labelledby': string | undefined;
244
243
  'aria-label': string | undefined;
245
244
  autoComplete: 'off';
246
- disabled: boolean | undefined;
247
245
  id: string;
248
246
  role: 'combobox';
249
247
  value: string;
@@ -2,9 +2,4 @@ import { GetInitialStateProps as GetInitialStatePropsCommon } from '../../utils'
2
2
  export type GetInitialStateProps<T> = GetInitialStatePropsCommon<T> & {
3
3
  itemToString: (item: T) => string;
4
4
  };
5
- export declare function getInitialState<T>(props: GetInitialStateProps<T>): {
6
- inputValue: string;
7
- highlightedIndex: number;
8
- isOpen: boolean;
9
- selectedItem: T | null;
10
- };
5
+ export declare function getInitialState<T>(props: GetInitialStateProps<T>): any;
@@ -1,43 +1 @@
1
- import PropTypes from 'prop-types';
2
- export declare const propTypes: {
3
- items: PropTypes.Validator<any[]>;
4
- isItemDisabled: PropTypes.Requireable<(...args: any[]) => any>;
5
- inputValue: PropTypes.Requireable<string>;
6
- defaultInputValue: PropTypes.Requireable<string>;
7
- initialInputValue: PropTypes.Requireable<string>;
8
- inputId: PropTypes.Requireable<string>;
9
- onInputValueChange: PropTypes.Requireable<(...args: any[]) => any>;
10
- getA11yStatusMessage: PropTypes.Requireable<(...args: any[]) => any>;
11
- highlightedIndex: PropTypes.Requireable<number>;
12
- defaultHighlightedIndex: PropTypes.Requireable<number>;
13
- initialHighlightedIndex: PropTypes.Requireable<number>;
14
- isOpen: PropTypes.Requireable<boolean>;
15
- defaultIsOpen: PropTypes.Requireable<boolean>;
16
- initialIsOpen: PropTypes.Requireable<boolean>;
17
- selectedItem: PropTypes.Requireable<any>;
18
- initialSelectedItem: PropTypes.Requireable<any>;
19
- defaultSelectedItem: PropTypes.Requireable<any>;
20
- id: PropTypes.Requireable<string>;
21
- labelId: PropTypes.Requireable<string>;
22
- menuId: PropTypes.Requireable<string>;
23
- getItemId: PropTypes.Requireable<(...args: any[]) => any>;
24
- toggleButtonId: PropTypes.Requireable<string>;
25
- onSelectedItemChange: PropTypes.Requireable<(...args: any[]) => any>;
26
- onHighlightedIndexChange: PropTypes.Requireable<(...args: any[]) => any>;
27
- onStateChange: PropTypes.Requireable<(...args: any[]) => any>;
28
- onIsOpenChange: PropTypes.Requireable<(...args: any[]) => any>;
29
- scrollIntoView: PropTypes.Requireable<(...args: any[]) => any>;
30
- environment: PropTypes.Requireable<PropTypes.InferProps<{
31
- addEventListener: PropTypes.Validator<(...args: any[]) => any>;
32
- removeEventListener: PropTypes.Validator<(...args: any[]) => any>;
33
- document: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
34
- createElement: PropTypes.Validator<(...args: any[]) => any>;
35
- getElementById: PropTypes.Validator<(...args: any[]) => any>;
36
- activeElement: PropTypes.Validator<any>;
37
- body: PropTypes.Validator<any>;
38
- }>>>;
39
- Node: PropTypes.Validator<(...args: any[]) => any>;
40
- }>>;
41
- itemToKey: PropTypes.Requireable<(...args: any[]) => any>;
42
- stateReducer: PropTypes.Requireable<(...args: any[]) => any>;
43
- };
1
+ export declare const propTypes: any;
@@ -4,4 +4,4 @@
4
4
  * @param startIndex The index to start searching.
5
5
  * @returns The index of the item.
6
6
  */
7
- export declare function getItemIndexByCharacter(character: string, startIndex?: number): number;
7
+ export declare function getItemIndexByCharacter(character: string, startIndex?: number): any;
@@ -11,62 +11,5 @@ type DropdownSelectProps = Omit<UseSelectProps<string>, 'items'> & {
11
11
  stringItem: string;
12
12
  }) => React.ReactNode;
13
13
  };
14
- export declare function renderSelect(props: Omit<DropdownSelectProps, 'renderSpy'>, uiCallback?: (ui: React.ReactElement) => React.ReactElement): {
15
- renderSpy: jest.Mock<any, any, any>;
16
- rerender: (p: Omit<DropdownSelectProps, 'renderSpy'>) => void;
17
- user: import("@testing-library/user-event").UserEvent;
18
- container: HTMLElement;
19
- baseElement: HTMLElement;
20
- debug: (baseElement?: any, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
21
- unmount: () => void;
22
- asFragment: () => DocumentFragment;
23
- getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
24
- getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
25
- queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
26
- queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
27
- findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
28
- findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
29
- getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
30
- getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
31
- queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
32
- queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
33
- findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
34
- findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
35
- getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
36
- getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
37
- queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
38
- queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
39
- findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
40
- findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
41
- getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
42
- getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
43
- queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
44
- queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
45
- findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
46
- findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
47
- getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
48
- getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
49
- queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
50
- queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
51
- findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
52
- findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
53
- getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
54
- getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
55
- queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
56
- queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
57
- findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
58
- findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
59
- getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement;
60
- getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
61
- queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement | null;
62
- queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
63
- findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
64
- findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
65
- getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
66
- getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
67
- queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
68
- queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
69
- findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
70
- findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
71
- };
14
+ export declare function renderSelect(props: Omit<DropdownSelectProps, 'renderSpy'>, uiCallback?: (ui: React.ReactElement) => React.ReactElement): any;
72
15
  export {};
@@ -1,2 +1,2 @@
1
1
  import { UseSelectProps } from '../../index.types';
2
- export declare function renderUseSelect(props?: Partial<UseSelectProps<string>>): import("@testing-library/react").RenderHookResult<import("../../index.types").UseSelectReturnValue<string>, unknown>;
2
+ export declare function renderUseSelect(props?: Partial<UseSelectProps<string>>): any;
@@ -1,6 +1,5 @@
1
- import { clickOnItemAtIndex, clickOnToggleButton, keyDownOnToggleButton, mouseLeaveItemAtIndex, mouseMoveItemAtIndex, tab } from '../../../testUtils';
2
1
  export declare const stateChangeTestCases: ({
3
- step: typeof keyDownOnToggleButton;
2
+ step: any;
4
3
  arg: string;
5
4
  state: {
6
5
  isOpen: boolean;
@@ -10,17 +9,7 @@ export declare const stateChangeTestCases: ({
10
9
  };
11
10
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonClick;
12
11
  } | {
13
- step: typeof keyDownOnToggleButton;
14
- arg: string;
15
- state: {
16
- isOpen: boolean;
17
- highlightedIndex: number;
18
- inputValue: string;
19
- selectedItem: null;
20
- };
21
- type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEnter;
22
- } | {
23
- step: typeof keyDownOnToggleButton;
12
+ step: any;
24
13
  arg: string;
25
14
  state: {
26
15
  isOpen: boolean;
@@ -30,133 +19,123 @@ export declare const stateChangeTestCases: ({
30
19
  };
31
20
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEscape;
32
21
  } | {
33
- step: typeof keyDownOnToggleButton;
34
- arg: string;
35
- state: {
36
- isOpen: boolean;
37
- highlightedIndex: number;
38
- inputValue: string;
39
- selectedItem: null;
40
- };
41
- type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownArrowDown;
42
- } | {
43
- step: typeof keyDownOnToggleButton;
22
+ step: any;
44
23
  arg: string;
45
24
  state: {
46
25
  isOpen: boolean;
47
26
  highlightedIndex: number;
48
27
  inputValue: string;
49
- selectedItem: string | undefined;
28
+ selectedItem: any;
50
29
  };
51
30
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEnter;
52
31
  } | {
53
- step: typeof keyDownOnToggleButton;
32
+ step: any;
54
33
  arg: string;
55
34
  state: {
56
35
  isOpen: boolean;
57
36
  highlightedIndex: number;
58
37
  inputValue: string;
59
- selectedItem: string | undefined;
38
+ selectedItem: any;
60
39
  };
61
40
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownEnd;
62
41
  } | {
63
- step: typeof keyDownOnToggleButton;
42
+ step: any;
64
43
  arg: string;
65
44
  state: {
66
45
  isOpen: boolean;
67
46
  highlightedIndex: number;
68
47
  inputValue: string;
69
- selectedItem: string | undefined;
48
+ selectedItem: any;
70
49
  };
71
50
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownSpaceButton;
72
51
  } | {
73
- step: typeof clickOnToggleButton;
52
+ step: any;
74
53
  state: {
75
54
  isOpen: boolean;
76
55
  highlightedIndex: number;
77
56
  inputValue: string;
78
- selectedItem: string | undefined;
57
+ selectedItem: any;
79
58
  };
80
59
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonClick;
81
60
  arg?: undefined;
82
61
  } | {
83
- step: typeof keyDownOnToggleButton;
62
+ step: any;
84
63
  arg: string;
85
64
  state: {
86
65
  isOpen: boolean;
87
66
  highlightedIndex: number;
88
67
  inputValue: string;
89
- selectedItem: string | undefined;
68
+ selectedItem: any;
90
69
  };
91
70
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownPageUp;
92
71
  } | {
93
- step: typeof keyDownOnToggleButton;
72
+ step: any;
94
73
  arg: string;
95
74
  state: {
96
75
  isOpen: boolean;
97
76
  highlightedIndex: number;
98
77
  inputValue: string;
99
- selectedItem: string | undefined;
78
+ selectedItem: any;
100
79
  };
101
80
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownPageDown;
102
81
  } | {
103
- step: typeof mouseMoveItemAtIndex;
82
+ step: any;
104
83
  arg: number;
105
84
  state: {
106
85
  isOpen: boolean;
107
86
  highlightedIndex: number;
108
87
  inputValue: string;
109
- selectedItem: string | undefined;
88
+ selectedItem: any;
110
89
  };
111
90
  type: import("../../index.types").UseSelectStateChangeTypes.ItemMouseMove;
112
91
  } | {
113
- step: typeof mouseLeaveItemAtIndex;
92
+ step: any;
114
93
  arg: number;
115
94
  state: {
116
95
  isOpen: boolean;
117
96
  highlightedIndex: number;
118
97
  inputValue: string;
119
- selectedItem: string | undefined;
98
+ selectedItem: any;
120
99
  };
121
100
  type: import("../../index.types").UseSelectStateChangeTypes.MenuMouseLeave;
122
101
  } | {
123
- step: typeof clickOnItemAtIndex;
102
+ step: any;
124
103
  arg: number;
125
104
  state: {
126
105
  isOpen: boolean;
127
106
  highlightedIndex: number;
128
107
  inputValue: string;
129
- selectedItem: string | undefined;
108
+ selectedItem: any;
130
109
  };
131
110
  type: import("../../index.types").UseSelectStateChangeTypes.ItemClick;
132
111
  } | {
133
- step: typeof keyDownOnToggleButton;
112
+ step: any;
134
113
  arg: string;
135
114
  state: {
136
115
  isOpen: boolean;
137
116
  highlightedIndex: number;
138
117
  inputValue: string;
139
- selectedItem: string | undefined;
118
+ selectedItem: any;
140
119
  };
141
120
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownArrowDown;
142
121
  } | {
143
- step: typeof keyDownOnToggleButton;
122
+ step: any;
144
123
  arg: string;
145
124
  state: {
146
125
  isOpen: boolean;
147
126
  highlightedIndex: number;
148
127
  inputValue: string;
149
- selectedItem: string | undefined;
128
+ selectedItem: any;
150
129
  };
151
130
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownArrowUp;
152
131
  } | {
153
- step: typeof keyDownOnToggleButton;
132
+ step: any;
154
133
  arg: string;
155
134
  state: {
156
135
  isOpen: boolean;
157
136
  highlightedIndex: number;
158
137
  inputValue: string;
159
- selectedItem: string | undefined;
138
+ selectedItem: any;
160
139
  };
161
140
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonKeyDownCharacter;
162
141
  } | {
@@ -165,17 +144,17 @@ export declare const stateChangeTestCases: ({
165
144
  isOpen: boolean;
166
145
  highlightedIndex: number;
167
146
  inputValue: string;
168
- selectedItem: string | undefined;
147
+ selectedItem: any;
169
148
  };
170
149
  type: import("../../index.types").UseSelectStateChangeTypes.FunctionSetInputValue;
171
150
  arg?: undefined;
172
151
  } | {
173
- step: typeof tab;
152
+ step: any;
174
153
  state: {
175
154
  isOpen: boolean;
176
155
  highlightedIndex: number;
177
156
  inputValue: string;
178
- selectedItem: string | undefined;
157
+ selectedItem: any;
179
158
  };
180
159
  type: import("../../index.types").UseSelectStateChangeTypes.ToggleButtonBlur;
181
160
  arg?: undefined;
@@ -1,38 +1 @@
1
- import PropTypes from 'prop-types';
2
- export declare const propTypes: {
3
- items: PropTypes.Validator<any[]>;
4
- isItemDisabled: PropTypes.Requireable<(...args: any[]) => any>;
5
- getA11yStatusMessage: PropTypes.Requireable<(...args: any[]) => any>;
6
- highlightedIndex: PropTypes.Requireable<number>;
7
- defaultHighlightedIndex: PropTypes.Requireable<number>;
8
- initialHighlightedIndex: PropTypes.Requireable<number>;
9
- isOpen: PropTypes.Requireable<boolean>;
10
- defaultIsOpen: PropTypes.Requireable<boolean>;
11
- initialIsOpen: PropTypes.Requireable<boolean>;
12
- selectedItem: PropTypes.Requireable<any>;
13
- initialSelectedItem: PropTypes.Requireable<any>;
14
- defaultSelectedItem: PropTypes.Requireable<any>;
15
- id: PropTypes.Requireable<string>;
16
- labelId: PropTypes.Requireable<string>;
17
- menuId: PropTypes.Requireable<string>;
18
- getItemId: PropTypes.Requireable<(...args: any[]) => any>;
19
- toggleButtonId: PropTypes.Requireable<string>;
20
- onSelectedItemChange: PropTypes.Requireable<(...args: any[]) => any>;
21
- onHighlightedIndexChange: PropTypes.Requireable<(...args: any[]) => any>;
22
- onStateChange: PropTypes.Requireable<(...args: any[]) => any>;
23
- onIsOpenChange: PropTypes.Requireable<(...args: any[]) => any>;
24
- scrollIntoView: PropTypes.Requireable<(...args: any[]) => any>;
25
- environment: PropTypes.Requireable<PropTypes.InferProps<{
26
- addEventListener: PropTypes.Validator<(...args: any[]) => any>;
27
- removeEventListener: PropTypes.Validator<(...args: any[]) => any>;
28
- document: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
29
- createElement: PropTypes.Validator<(...args: any[]) => any>;
30
- getElementById: PropTypes.Validator<(...args: any[]) => any>;
31
- activeElement: PropTypes.Validator<any>;
32
- body: PropTypes.Validator<any>;
33
- }>>>;
34
- Node: PropTypes.Validator<(...args: any[]) => any>;
35
- }>>;
36
- itemToKey: PropTypes.Requireable<(...args: any[]) => any>;
37
- stateReducer: PropTypes.Requireable<(...args: any[]) => any>;
38
- };
1
+ export declare const propTypes: any;
@@ -1,64 +1,2 @@
1
- import * as React from 'react';
2
1
  import { UseTagGroupProps } from '../../index.types';
3
- export declare function renderTagGroup(props?: Partial<UseTagGroupProps<string>>): {
4
- getTags: () => HTMLElement[];
5
- getTagGroup: () => HTMLElement;
6
- clickOnTag: (index: number) => Promise<void>;
7
- clickOnRemoveTag: (index: number) => Promise<void>;
8
- getTagsRemoves: () => HTMLElement[];
9
- user: import("@testing-library/user-event").UserEvent;
10
- container: HTMLElement;
11
- baseElement: HTMLElement;
12
- debug: (baseElement?: any, maxLength?: number | undefined, options?: import("pretty-format").PrettyFormatOptions | undefined) => void;
13
- rerender: (ui: React.ReactNode) => void;
14
- unmount: () => void;
15
- asFragment: () => DocumentFragment;
16
- getByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
17
- getAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
18
- queryByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
19
- queryAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
20
- findByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
21
- findAllByLabelText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
22
- getByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
23
- getAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
24
- queryByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
25
- queryAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
26
- findByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
27
- findAllByPlaceholderText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
28
- getByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement;
29
- getAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
30
- queryByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement | null;
31
- queryAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined) => HTMLElement[];
32
- findByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
33
- findAllByText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
34
- getByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
35
- getAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
36
- queryByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
37
- queryAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
38
- findByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
39
- findAllByAltText: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
40
- getByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
41
- getAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
42
- queryByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
43
- queryAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
44
- findByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
45
- findAllByTitle: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
46
- getByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
47
- getAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
48
- queryByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
49
- queryAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
50
- findByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
51
- findAllByDisplayValue: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
52
- getByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement;
53
- getAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
54
- queryByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement | null;
55
- queryAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined) => HTMLElement[];
56
- findByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
57
- findAllByRole: (role: import("@testing-library/react").ByRoleMatcher, options?: import("@testing-library/react").ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
58
- getByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement;
59
- getAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
60
- queryByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement | null;
61
- queryAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
62
- findByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement>;
63
- findAllByTestId: (id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined) => Promise<HTMLElement[]>;
64
- };
2
+ export declare function renderTagGroup(props?: Partial<UseTagGroupProps<string>>): any;
@@ -1,2 +1,2 @@
1
- import { UseTagGroupProps, UseTagGroupReturnValue } from '../../index.types';
2
- export declare function renderUseTagGroup(initialProps?: Partial<UseTagGroupProps<string>>): import("@testing-library/react").RenderHookResult<UseTagGroupReturnValue<string>, Partial<UseTagGroupProps<string>>>;
1
+ import { UseTagGroupProps } from '../../index.types';
2
+ export declare function renderUseTagGroup(initialProps?: Partial<UseTagGroupProps<string>>): any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { AnyRef, Environment } from '../../downshift.types';
3
2
  export interface UseTagGroupState<Item> {
4
3
  activeIndex: number;
@@ -1,4 +1,3 @@
1
- import { scrollIntoView } from '../../utils';
2
1
  export declare const dropdownDefaultProps: {
3
2
  itemToString(item: unknown): string;
4
3
  itemToKey(item: unknown): unknown;
@@ -8,6 +7,6 @@ export declare const dropdownDefaultProps: {
8
7
  } & {
9
8
  changes: Partial<S>;
10
9
  }) => Partial<S>;
11
- scrollIntoView: typeof scrollIntoView;
10
+ scrollIntoView: any;
12
11
  environment: (Window & typeof globalThis) | undefined;
13
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "downshift",
3
- "version": "9.3.4",
3
+ "version": "9.3.5",
4
4
  "description": "🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.",
5
5
  "main": "dist/downshift.cjs.cjs",
6
6
  "react-native": "dist/downshift.native.cjs.cjs",