downshift 9.1.0-alpha.3 → 9.1.0-alpha.4
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/package.json +1 -1
- package/typings/index.d.ts +6 -10
- package/typings/index.legacy.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "downshift",
|
|
3
|
-
"version": "9.1.0-alpha.
|
|
3
|
+
"version": "9.1.0-alpha.4",
|
|
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.js",
|
|
6
6
|
"react-native": "dist/downshift.native.cjs.js",
|
package/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./index.legacy.d.ts" />
|
|
2
2
|
|
|
3
|
-
/* ---------------- Interfaces ---------------- */
|
|
3
|
+
/* ---------------- Downshift Interfaces ---------------- */
|
|
4
4
|
|
|
5
5
|
export interface DownshiftState<Item> extends globalThis.DownshiftState<Item> {}
|
|
6
6
|
export interface DownshiftProps<Item> extends globalThis.DownshiftProps<Item> {}
|
|
@@ -35,16 +35,9 @@ export const useMultipleSelection: typeof globalThis.useMultipleSelection;
|
|
|
35
35
|
|
|
36
36
|
/* ---------------- Enums (value + type) ---------------- */
|
|
37
37
|
|
|
38
|
-
export const StateChangeTypes: typeof globalThis.StateChangeTypes;
|
|
39
38
|
export type StateChangeTypes = globalThis.StateChangeTypes;
|
|
40
|
-
|
|
41
|
-
export const UseSelectStateChangeTypes: typeof globalThis.UseSelectStateChangeTypes;
|
|
42
39
|
export type UseSelectStateChangeTypes = globalThis.UseSelectStateChangeTypes;
|
|
43
|
-
|
|
44
|
-
export const UseComboboxStateChangeTypes: typeof globalThis.UseComboboxStateChangeTypes;
|
|
45
40
|
export type UseComboboxStateChangeTypes = globalThis.UseComboboxStateChangeTypes;
|
|
46
|
-
|
|
47
|
-
export const UseMultipleSelectionStateChangeTypes: typeof globalThis.UseMultipleSelectionStateChangeTypes;
|
|
48
41
|
export type UseMultipleSelectionStateChangeTypes = globalThis.UseMultipleSelectionStateChangeTypes;
|
|
49
42
|
|
|
50
43
|
/* ---------------- useSelect interfaces ---------------- */
|
|
@@ -84,7 +77,7 @@ export interface UseComboboxInputValueChange<Item> extends globalThis.UseCombobo
|
|
|
84
77
|
export interface UseComboboxGetMenuPropsOptions extends globalThis.UseComboboxGetMenuPropsOptions {}
|
|
85
78
|
export interface UseComboboxGetMenuPropsReturnValue extends globalThis.UseComboboxGetMenuPropsReturnValue {}
|
|
86
79
|
export interface UseComboboxGetToggleButtonPropsOptions extends globalThis.UseComboboxGetToggleButtonPropsOptions {}
|
|
87
|
-
export interface
|
|
80
|
+
export interface UseComboboxGetToggleButtonPropsReturnValue extends globalThis.UseComboboxGetToggleButtonPropsReturnValue {}
|
|
88
81
|
export interface UseComboboxGetItemPropsOptions<Item> extends globalThis.UseComboboxGetItemPropsOptions<Item> {}
|
|
89
82
|
export interface UseComboboxGetItemPropsReturnValue extends globalThis.UseComboboxGetItemPropsReturnValue {}
|
|
90
83
|
export interface UseComboboxGetInputPropsOptions extends globalThis.UseComboboxGetInputPropsOptions {}
|
|
@@ -130,6 +123,9 @@ export {
|
|
|
130
123
|
GetTagRemovePropsOptions,
|
|
131
124
|
GetTagRemovePropsReturnValue,
|
|
132
125
|
UseTagGroupStateChangeTypes,
|
|
133
|
-
} from '../
|
|
126
|
+
} from '../src/hooks/useTagGroup/index.types'
|
|
134
127
|
|
|
128
|
+
import {UseTagGroupInterface} from '../src/hooks/useTagGroup/index.types'
|
|
135
129
|
export const useTagGroup: UseTagGroupInterface;
|
|
130
|
+
export {UseTagGroupInterface}
|
|
131
|
+
|
|
@@ -274,7 +274,7 @@ type ChildrenFunction<Item> = (
|
|
|
274
274
|
options: ControllerStateAndHelpers<Item>,
|
|
275
275
|
) => React.ReactNode
|
|
276
276
|
|
|
277
|
-
declare class Downshift<Item = any> extends React.Component<
|
|
277
|
+
declare var Downshift = class Downshift<Item = any> extends React.Component<
|
|
278
278
|
DownshiftProps<Item>
|
|
279
279
|
> {
|
|
280
280
|
static stateChangeTypes: {
|
|
@@ -502,7 +502,7 @@ interface UseSelectInterface {
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
declare
|
|
505
|
+
declare var useSelect: UseSelectInterface
|
|
506
506
|
|
|
507
507
|
/* useCombobox Types */
|
|
508
508
|
|
|
@@ -727,7 +727,7 @@ interface UseComboboxInterface {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
-
declare
|
|
730
|
+
declare var useCombobox: UseComboboxInterface
|
|
731
731
|
|
|
732
732
|
// useMultipleSelection types.
|
|
733
733
|
|
|
@@ -889,4 +889,4 @@ interface UseMultipleSelectionInterface {
|
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
|
|
892
|
-
declare
|
|
892
|
+
declare var useMultipleSelection: UseMultipleSelectionInterface
|