@modul/mbui 0.0.46-beta-for-dev-4a09e9ad → 0.0.46-beta-pv-54098-8916fbc6

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.
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface ISeacrhFieldProps {
3
+ onChange: (value: string) => void;
4
+ placeholder?: string;
5
+ }
6
+ declare const SearchField: React.FC<ISeacrhFieldProps>;
7
+ export default SearchField;
@@ -1,18 +1,8 @@
1
1
  import React, { FC } from 'react';
2
- interface ISelectOption {
3
- label: string;
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?: ISelectOption[];
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?: React.FC<ISelectOption>;
26
- ValueComponent?: React.ElementType<ISelectValue>;
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: FC<ISelectDrawerProps>;
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 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';