@modul/mbui 0.0.48 → 0.0.49-beta-pv-54098-7b8a096d
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 +2 -0
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/SelectDrawer/Option.d.ts +21 -0
- package/dist/Select/SelectDrawer/SearchField.d.ts +7 -0
- package/dist/Select/{SelectDrawer.d.ts → SelectDrawer/SelectDrawer.d.ts} +10 -18
- package/dist/Select/SelectDrawer/Value.d.ts +15 -0
- package/dist/Select/SelectDrawer/index.d.ts +1 -0
- package/dist/Select/SelectDrawer/index.js +5 -0
- package/dist/Select/components/SelectBankAccountBalanceOption.d.ts +1 -1
- package/dist/Select/components/SelectPrimaryAccountValue.d.ts +1 -1
- package/dist/Select/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/Select/Select.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GroupBase, Props } from
|
|
2
|
+
import { GroupBase, Props } from 'react-select';
|
|
3
3
|
declare type SelectBaseProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group>;
|
|
4
4
|
declare function Select<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectBaseProps<Option, IsMulti, Group>): React.JSX.Element;
|
|
5
5
|
export { Select };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ISelectOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
interface IOptionWrapperProps {
|
|
8
|
+
component: React.FC<ISelectOption & {
|
|
9
|
+
isChecked: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
optionWrapperCSS?: string;
|
|
12
|
+
option: ISelectOption;
|
|
13
|
+
selected: ISelectOption[];
|
|
14
|
+
onSelect: (option: ISelectOption) => void;
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const Option: React.FC<ISelectOption & {
|
|
18
|
+
isChecked: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const OptionWrapper: React.FC<IOptionWrapperProps>;
|
|
21
|
+
export {};
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: string;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
interface ISelectValue {
|
|
8
|
-
isClearable?: boolean;
|
|
9
|
-
onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
|
|
10
|
-
multiple?: boolean;
|
|
11
|
-
selected: ISelectOption[];
|
|
12
|
-
placeholder?: string | undefined;
|
|
13
|
-
}
|
|
2
|
+
import { ISelectOption } from './Option';
|
|
3
|
+
import { ISelectValue } from './Value';
|
|
14
4
|
interface ISelectDrawerProps {
|
|
15
|
-
options
|
|
5
|
+
options: ISelectOption[];
|
|
16
6
|
onChange?: (value: ISelectOption | ISelectOption[] | null) => void;
|
|
17
7
|
placeholder?: string;
|
|
18
8
|
multiple?: boolean;
|
|
@@ -22,10 +12,12 @@ interface ISelectDrawerProps {
|
|
|
22
12
|
autoFocus?: boolean;
|
|
23
13
|
disabled?: boolean;
|
|
24
14
|
components?: {
|
|
25
|
-
OptionComponent?:
|
|
26
|
-
|
|
15
|
+
OptionComponent?: FC<ISelectOption & {
|
|
16
|
+
isChecked: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
ValueComponent?: FC<ISelectValue>;
|
|
27
19
|
};
|
|
28
|
-
value?: ISelectOption | ISelectOption[];
|
|
20
|
+
value?: ISelectOption | ISelectOption[] | null;
|
|
29
21
|
defaultValue?: ISelectOption | ISelectOption[];
|
|
30
22
|
menuListCSS?: string;
|
|
31
23
|
triggerWrapperCSS?: string;
|
|
@@ -37,5 +29,5 @@ interface ISelectDrawerProps {
|
|
|
37
29
|
selectAll?: boolean;
|
|
38
30
|
selectAllText?: string;
|
|
39
31
|
}
|
|
40
|
-
declare const SelectDrawer:
|
|
41
|
-
export { SelectDrawer, type ISelectValue, type ISelectOption };
|
|
32
|
+
declare const SelectDrawer: React.ForwardRefExoticComponent<ISelectDrawerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
export { SelectDrawer, type ISelectValue, type ISelectOption, type ISelectDrawerProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FC, MouseEvent } from 'react';
|
|
2
|
+
import { ISelectOption } from './SelectDrawer';
|
|
3
|
+
export interface ISelectValue {
|
|
4
|
+
isClearable?: boolean;
|
|
5
|
+
onClear: (evt: MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
selected: ISelectOption[];
|
|
8
|
+
placeholder?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
interface IValueWrapper {
|
|
11
|
+
valueProps: ISelectValue;
|
|
12
|
+
valueComponent?: FC<ISelectValue>;
|
|
13
|
+
}
|
|
14
|
+
export declare const ValueWrapper: FC<IValueWrapper>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectDrawer';
|