downshift 5.1.0-beta.0 → 5.2.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.
- package/README.md +25 -16
- package/dist/downshift.cjs.js +283 -189
- package/dist/downshift.esm.js +284 -190
- package/dist/downshift.native.cjs.js +283 -189
- package/dist/downshift.umd.js +283 -189
- package/dist/downshift.umd.js.map +1 -1
- package/dist/downshift.umd.min.js +2 -2
- package/dist/downshift.umd.min.js.map +1 -1
- package/package.json +30 -30
- package/preact/dist/downshift.cjs.js +283 -189
- package/preact/dist/downshift.esm.js +284 -190
- package/preact/dist/downshift.umd.js +283 -189
- package/preact/dist/downshift.umd.js.map +1 -1
- package/preact/dist/downshift.umd.min.js +2 -2
- package/preact/dist/downshift.umd.min.js.map +1 -1
- package/typings/index.d.ts +7 -3
package/typings/index.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export interface A11yStatusMessageOptions<Item> {
|
|
|
89
89
|
inputValue: string
|
|
90
90
|
isOpen: boolean
|
|
91
91
|
itemToString: (item: Item) => string
|
|
92
|
-
previousResultCount
|
|
92
|
+
previousResultCount: number
|
|
93
93
|
resultCount: number
|
|
94
94
|
highlightedItem: Item
|
|
95
95
|
selectedItem: Item
|
|
@@ -398,6 +398,7 @@ export enum UseComboboxStateChangeTypes {
|
|
|
398
398
|
FunctionSelectItem = '__function_select_item__',
|
|
399
399
|
FunctionSetInputValue = '__function_set_input_value__',
|
|
400
400
|
FunctionReset = '__function_reset__',
|
|
401
|
+
ControlledPropUpdatedSelectedItem = '__controlled_prop_updated_selected_item__'
|
|
401
402
|
}
|
|
402
403
|
|
|
403
404
|
export interface UseComboboxProps<Item> {
|
|
@@ -511,6 +512,7 @@ export interface UseComboboxInterface {
|
|
|
511
512
|
FunctionSelectItem: UseComboboxStateChangeTypes.FunctionSelectItem
|
|
512
513
|
FunctionSetInputValue: UseComboboxStateChangeTypes.FunctionSetInputValue
|
|
513
514
|
FunctionReset: UseComboboxStateChangeTypes.FunctionReset
|
|
515
|
+
ControlledPropUpdatedSelectedItem: UseComboboxStateChangeTypes.ControlledPropUpdatedSelectedItem
|
|
514
516
|
}
|
|
515
517
|
}
|
|
516
518
|
|
|
@@ -586,8 +588,10 @@ export interface A11yRemovalMessage<Item> {
|
|
|
586
588
|
}
|
|
587
589
|
|
|
588
590
|
export interface UseMultipleSelectionGetSelectedItemPropsOptions<Item>
|
|
589
|
-
extends
|
|
590
|
-
|
|
591
|
+
extends React.HTMLProps<HTMLElement>, GetPropsWithRefKey {
|
|
592
|
+
index?: number
|
|
593
|
+
selectedItem: Item
|
|
594
|
+
}
|
|
591
595
|
|
|
592
596
|
export interface UseMultipleSelectionComboboxGetDropdownProps
|
|
593
597
|
extends GetInputPropsOptions,
|