downshift 6.1.2-alpha.0 → 6.1.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/README.md +4 -1
- package/dist/downshift.cjs.js +139 -118
- package/dist/downshift.esm.js +140 -120
- package/dist/downshift.native.cjs.js +137 -116
- package/dist/downshift.umd.js +786 -936
- package/dist/downshift.umd.js.map +1 -1
- package/dist/downshift.umd.min.js +2 -28
- package/dist/downshift.umd.min.js.map +1 -1
- package/dist/src/hooks/reducer.d.ts +1 -0
- package/dist/src/hooks/useSelect/__tests__/utils.test.d.ts +1 -0
- package/dist/src/hooks/useSelect/reducer.d.ts +1 -0
- package/dist/src/hooks/useSelect/stateChangeTypes.d.ts +23 -0
- package/dist/src/hooks/useSelect/types.d.ts +7 -0
- package/dist/src/hooks/useSelect/utils.d.ts +23 -0
- package/dist/src/hooks/utils.d.ts +112 -0
- package/dist/src/is.macro.d.ts +2 -0
- package/dist/src/productionEnum.macro.d.ts +2 -0
- package/dist/src/set-a11y-status.d.ts +6 -0
- package/dist/src/types.d.ts +10 -0
- package/dist/src/utils.d.ts +156 -0
- package/dist/{basic.test.d.ts → test/basic.test.d.ts} +0 -0
- package/dist/{custom.test.d.ts → test/custom.test.d.ts} +0 -0
- package/dist/test/setup.d.ts +1 -0
- package/package.json +49 -36
- package/preact/dist/downshift.cjs.js +140 -118
- package/preact/dist/downshift.esm.js +141 -120
- package/preact/dist/downshift.umd.js +337 -437
- package/preact/dist/downshift.umd.js.map +1 -1
- package/preact/dist/downshift.umd.min.js +2 -11
- package/preact/dist/downshift.umd.min.js.map +1 -1
- package/typings/index.d.ts +4 -13
- package/dist/downshift.cjs.d.ts +0 -1
- package/dist/downshift.esm.d.ts +0 -1
- package/dist/downshift.native.cjs.d.ts +0 -1
- package/dist/downshift.umd.d.ts +0 -1
- package/dist/downshift.umd.min.d.ts +0 -1
package/typings/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
2
|
|
|
3
|
+
export {A11yStatusMessageOptions} from '../src/types'
|
|
4
|
+
|
|
3
5
|
type Callback = () => void
|
|
4
6
|
|
|
5
7
|
export interface DownshiftState<Item> {
|
|
@@ -84,17 +86,6 @@ export interface Environment {
|
|
|
84
86
|
document: Document
|
|
85
87
|
}
|
|
86
88
|
|
|
87
|
-
export interface A11yStatusMessageOptions<Item> {
|
|
88
|
-
highlightedIndex: number | null
|
|
89
|
-
inputValue: string
|
|
90
|
-
isOpen: boolean
|
|
91
|
-
itemToString: (item: Item | null) => string
|
|
92
|
-
previousResultCount: number
|
|
93
|
-
resultCount: number
|
|
94
|
-
highlightedItem: Item
|
|
95
|
-
selectedItem: Item | null
|
|
96
|
-
}
|
|
97
|
-
|
|
98
89
|
export interface StateChangeOptions<Item>
|
|
99
90
|
extends Partial<DownshiftState<Item>> {
|
|
100
91
|
type: StateChangeTypes
|
|
@@ -677,9 +668,9 @@ export interface UseMultipleSelectionActions<Item> {
|
|
|
677
668
|
setActiveIndex: (index: number) => void
|
|
678
669
|
}
|
|
679
670
|
|
|
680
|
-
export type UseMultipleSelectionReturnValue<
|
|
671
|
+
export type UseMultipleSelectionReturnValue<Item> = UseMultipleSelectionState<
|
|
681
672
|
Item
|
|
682
|
-
>
|
|
673
|
+
> &
|
|
683
674
|
UseMultipleSelectionPropGetters<Item> &
|
|
684
675
|
UseMultipleSelectionActions<Item>
|
|
685
676
|
|
package/dist/downshift.cjs.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../dist/index";
|
package/dist/downshift.esm.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../dist/index";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../dist/index";
|
package/dist/downshift.umd.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../dist/index";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../dist/index";
|