@midas-ds/components 6.0.0 → 6.1.0
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/CHANGELOG.md +19 -2
- package/index.cjs +7 -7
- package/index.css +1 -1
- package/index.js +3397 -3377
- package/package.json +1 -1
- package/select/useMultiSelectState.d.ts +2 -1
- package/select/utils.d.ts +4 -0
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ import { MultiSelectListState } from './useMultiSelectListState';
|
|
|
4
4
|
import { OverlayTriggerProps } from '@react-types/overlays';
|
|
5
5
|
import { AsyncLoadable, CollectionBase, FocusableProps, InputBase, LabelableProps, MultipleSelection, TextInputBase, Validation, Selection } from '@react-types/shared';
|
|
6
6
|
import { FormValidationState } from '@react-stately/form';
|
|
7
|
+
import { SingleSelectListState } from 'react-stately';
|
|
7
8
|
/** Added this for a better output, will see how this plays out */
|
|
8
9
|
interface ArraySelection extends Omit<MultipleSelection, 'onSelectionChange'> {
|
|
9
10
|
onSelectionChange?: (value: Selection | Key | Key[]) => void;
|
|
@@ -15,7 +16,7 @@ export interface MultiSelectProps<T> extends CollectionBase<T>, AsyncLoadable, O
|
|
|
15
16
|
*/
|
|
16
17
|
shouldFlip?: boolean;
|
|
17
18
|
}
|
|
18
|
-
export interface MultiSelectState<T> extends MultiSelectListState<T>, MenuTriggerState, FormValidationState {
|
|
19
|
+
export interface MultiSelectState<T> extends MultiSelectListState<T>, MenuTriggerState, SingleSelectListState<T>, FormValidationState {
|
|
19
20
|
/** Whether the select is currently focused. */
|
|
20
21
|
isFocused: boolean;
|
|
21
22
|
/** Sets whether the select is focused. */
|