@modul/mbui 1.1.0-beta-pv-53206-143f3c65 → 1.1.0-beta-pv-54667-a3bdeb6a
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/BankCardImage/index.js +2 -2
- package/dist/Select/SelectDrawer/Option.d.ts +24 -0
- package/dist/Select/SelectDrawer/SelectDrawer.d.ts +35 -5
- package/dist/Select/SelectDrawer/Value.d.ts +15 -0
- package/dist/Select/SelectDrawer/index.js +20 -33
- package/dist/Select/components/SelectBankAccountBalanceOption.d.ts +4 -0
- package/dist/Select/components/SelectPrimaryAccountValue.d.ts +4 -0
- package/dist/Select/index.d.ts +3 -2
- package/dist/Select/index.js +26 -26
- package/dist/assets/images/bankcards/mirt-bg.svg +1 -0
- package/dist/assets/images/bankcards/mirt.svg +1 -0
- package/dist/assets/images/src/assets/images/bankcards/mirt-bg.svg +1 -0
- package/dist/assets/images/src/assets/images/bankcards/mirt.svg +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +36 -36
- package/package.json +1 -1
- package/dist/Select/components/Option.d.ts +0 -4
- package/dist/Select/components/SelectAccountValue.d.ts +0 -4
- package/dist/Select/components/Value.d.ts +0 -3
- package/dist/Select/types/index.d.ts +0 -1
- package/dist/Select/types/index.js +0 -1
- package/dist/Select/types/types.d.ts +0 -63
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
export interface ISelectOption {
|
3
|
+
className?: string | undefined;
|
4
|
+
leftIcon?: React.ReactElement;
|
5
|
+
leftIconCSS?: string | undefined;
|
6
|
+
label: string;
|
7
|
+
labelCSS?: string | undefined;
|
8
|
+
rightLabel?: React.ReactNode;
|
9
|
+
secondLabel?: React.ReactNode;
|
10
|
+
secondLabelCSS?: string | undefined;
|
11
|
+
value: string;
|
12
|
+
[key: string]: any;
|
13
|
+
}
|
14
|
+
interface IOptionWrapperProps {
|
15
|
+
component: React.FC<ISelectOption>;
|
16
|
+
optionWrapperCSS?: string;
|
17
|
+
option: ISelectOption;
|
18
|
+
isChecked?: boolean;
|
19
|
+
onSelect: (option: ISelectOption) => void;
|
20
|
+
multiple?: boolean;
|
21
|
+
}
|
22
|
+
export declare const Option: React.FC<ISelectOption>;
|
23
|
+
export declare const OptionWrapper: React.FC<IOptionWrapperProps>;
|
24
|
+
export {};
|
@@ -1,6 +1,36 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { Option } from '
|
3
|
-
import {
|
4
|
-
|
1
|
+
import React, { FC } from 'react';
|
2
|
+
import { ISelectOption, Option } 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
|
+
isOptionsLoading?: boolean;
|
12
|
+
searchPlaceholder?: string;
|
13
|
+
onSearch?: (value: string) => void;
|
14
|
+
autoFocus?: boolean;
|
15
|
+
disabled?: boolean;
|
16
|
+
components?: {
|
17
|
+
OptionComponent?: FC<ISelectOption & {
|
18
|
+
isChecked: boolean;
|
19
|
+
}>;
|
20
|
+
ValueComponent?: FC<ISelectValue>;
|
21
|
+
};
|
22
|
+
value?: ISelectOption | ISelectOption[] | null;
|
23
|
+
defaultValue?: ISelectOption | ISelectOption[];
|
24
|
+
menuListCSS?: string;
|
25
|
+
triggerWrapperCSS?: string;
|
26
|
+
dropWrapperCSS?: string;
|
27
|
+
dropTitle?: string;
|
28
|
+
dropTitleCSS?: string;
|
29
|
+
optionWrapperCSS?: string;
|
30
|
+
modal?: boolean;
|
31
|
+
selectAll?: boolean;
|
32
|
+
selectAllText?: string;
|
33
|
+
emptyOptionsPlaceholder?: string;
|
34
|
+
}
|
5
35
|
declare const SelectDrawer: React.ForwardRefExoticComponent<ISelectDrawerProps & React.RefAttributes<HTMLButtonElement>>;
|
6
|
-
export { SelectDrawer,
|
36
|
+
export { SelectDrawer, type ISelectValue, type ISelectOption, type ISelectDrawerProps, Option };
|
@@ -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 {};
|