@modul/mbui 0.0.37-beta-select-a2bf666d → 0.0.37-beta-select-d0aa9f08

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,3 +1,35 @@
1
- import React from 'react';
2
- declare const SelectDrawer: (props: any) => React.JSX.Element;
1
+ import React, { FC, ReactNode } from 'react';
2
+ interface IOption {
3
+ label: string;
4
+ value: string;
5
+ [key: string]: any;
6
+ }
7
+ interface IValue {
8
+ isClearable?: boolean;
9
+ onClear: (evt: React.MouseEvent<HTMLButtonElement>) => void;
10
+ multiple?: boolean;
11
+ selected: IOption[];
12
+ placeholder: string | undefined;
13
+ }
14
+ interface ISelectDrawerProps {
15
+ options?: [];
16
+ onChange?: (value: string | string[]) => void;
17
+ placeholder?: string;
18
+ multiple?: boolean;
19
+ isClearable?: boolean;
20
+ isSearchable?: boolean;
21
+ autoFocus?: boolean;
22
+ disabled?: boolean;
23
+ components?: {
24
+ OptionComponent?: (props: IOption) => ReactNode;
25
+ ValueComponent?: React.ElementType<IValue>;
26
+ };
27
+ menuListCSS?: string;
28
+ triggerWrapperCSS?: string;
29
+ dropWrapperCSS?: string;
30
+ dropTitle?: string;
31
+ dropTitleCSS?: string;
32
+ optionWrapperCSS?: string;
33
+ }
34
+ declare const SelectDrawer: FC<ISelectDrawerProps>;
3
35
  export { SelectDrawer };