@modul/mbui 0.0.44 → 0.0.45-beta-pv-54098-294462ad
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/dist/Loading/index.js +1 -1
- package/dist/Page/Page.d.ts +4 -2
- package/dist/Page/index.js +1 -1
- 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/SelectDrawer.d.ts +33 -0
- 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 +2 -2
- package/dist/Select/SelectDrawer.d.ts +0 -41
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 {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { ISelectOption } from './Option';
|
|
3
|
+
import { ISelectValue } from './Value';
|
|
4
|
+
interface ISelectDrawerProps {
|
|
5
|
+
options: ISelectOption[];
|
|
6
|
+
onChange: (value?: ISelectOption | ISelectOption[] | null) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
isClearable?: boolean;
|
|
10
|
+
isSearchable?: boolean;
|
|
11
|
+
searchPlaceholder?: string;
|
|
12
|
+
autoFocus?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
components?: {
|
|
15
|
+
OptionComponent?: FC<ISelectOption & {
|
|
16
|
+
isChecked: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
ValueComponent?: FC<ISelectValue>;
|
|
19
|
+
};
|
|
20
|
+
value?: ISelectOption | ISelectOption[] | null;
|
|
21
|
+
defaultValue?: ISelectOption | ISelectOption[];
|
|
22
|
+
menuListCSS?: string;
|
|
23
|
+
triggerWrapperCSS?: string;
|
|
24
|
+
dropWrapperCSS?: string;
|
|
25
|
+
dropTitle?: string;
|
|
26
|
+
dropTitleCSS?: string;
|
|
27
|
+
optionWrapperCSS?: string;
|
|
28
|
+
modal?: boolean;
|
|
29
|
+
selectAll?: boolean;
|
|
30
|
+
selectAllText?: string;
|
|
31
|
+
}
|
|
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 React from 'react';
|
|
2
|
+
import { ISelectOption } from './SelectDrawer';
|
|
3
|
+
export interface ISelectValue {
|
|
4
|
+
isClearable?: boolean;
|
|
5
|
+
onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
selected: ISelectOption[];
|
|
8
|
+
placeholder?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
interface IValueWrapper {
|
|
11
|
+
valueProps: ISelectValue;
|
|
12
|
+
valueComponent?: React.FC<ISelectValue>;
|
|
13
|
+
}
|
|
14
|
+
export declare const ValueWrapper: React.FC<IValueWrapper>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SelectDrawer';
|