@inntechcorp/it-design 2.0.127 → 2.0.129
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
2
2
|
import { SelectValue } from 'types/SelectProps';
|
|
3
3
|
type MenuProps = {
|
|
4
|
-
value
|
|
4
|
+
value?: SelectValue;
|
|
5
5
|
position: string;
|
|
6
6
|
direction: string;
|
|
7
|
-
|
|
7
|
+
multi: boolean;
|
|
8
8
|
children: ChildrenProps;
|
|
9
9
|
onChange: (value: string | string[] | number | number[], label?: string) => void;
|
|
10
10
|
onClose: () => void;
|
|
11
11
|
isOpen: boolean;
|
|
12
12
|
};
|
|
13
|
-
export default function Menu({
|
|
13
|
+
export default function Menu({ position, direction, multi, isOpen, value, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ChildrenProps } from 'types/ChildrenProps';
|
|
3
|
+
import { SelectValue } from 'types/SelectProps';
|
|
3
4
|
type OptionsRefProps = {
|
|
4
|
-
getValue: () =>
|
|
5
|
+
getValue: () => SelectValue;
|
|
5
6
|
};
|
|
6
7
|
type OptionsProps = {
|
|
7
8
|
icon?: string;
|
|
8
9
|
image?: string;
|
|
9
|
-
value?:
|
|
10
|
-
|
|
10
|
+
value?: SelectValue;
|
|
11
|
+
multi?: boolean;
|
|
11
12
|
checked?: false;
|
|
12
|
-
|
|
13
|
-
onChange?: (value: string, checked: boolean, children: ChildrenProps) => null;
|
|
13
|
+
onChange?: (value: SelectValue, checked: boolean, children: ChildrenProps) => null;
|
|
14
14
|
children?: ChildrenProps;
|
|
15
15
|
};
|
|
16
16
|
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<OptionsProps & import("react").RefAttributes<OptionsRefProps>>>;
|
|
@@ -8,7 +8,7 @@ export type SelectProps = {
|
|
|
8
8
|
label?: string;
|
|
9
9
|
position?: SelectPosition;
|
|
10
10
|
direction?: SelectDirection;
|
|
11
|
-
|
|
11
|
+
multi?: boolean;
|
|
12
12
|
size?: ITDSize;
|
|
13
13
|
variant?: SelectVariant;
|
|
14
14
|
className?: string;
|
|
@@ -27,7 +27,7 @@ export type SelectProps = {
|
|
|
27
27
|
export type SelectToggleProps = {
|
|
28
28
|
id?: string;
|
|
29
29
|
label: string;
|
|
30
|
-
value
|
|
30
|
+
value?: SelectValue;
|
|
31
31
|
errorMessage: string;
|
|
32
32
|
isOpen: boolean;
|
|
33
33
|
showSearch: boolean;
|