@modul/mbui 0.0.41-beta-pv-53999-378a49ed → 0.0.41-beta-for-dev-9102e760

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,5 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import { Props, GroupBase } from 'react-select';
3
3
  declare type SelectAccountCardProps<Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = Props<Option, IsMulti, Group>;
4
- declare const SelectAccountCard: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: any) => React.JSX.Element;
4
+ declare const SelectAccountCard: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: SelectAccountCardProps<Option, IsMulti, Group>) => React.JSX.Element;
5
5
  export { SelectAccountCard };
@@ -1,4 +1,4 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
2
  interface ISelectOption {
3
3
  label: string;
4
4
  value: string;
@@ -13,7 +13,7 @@ interface ISelectValue {
13
13
  }
14
14
  interface ISelectDrawerProps {
15
15
  options?: ISelectOption[];
16
- onChange?: (value: ISelectOption | ISelectOption[] | null) => void;
16
+ onChange?: (value: string | string[] | null) => void;
17
17
  placeholder?: string;
18
18
  multiple?: boolean;
19
19
  isClearable?: boolean;
@@ -21,11 +21,10 @@ interface ISelectDrawerProps {
21
21
  autoFocus?: boolean;
22
22
  disabled?: boolean;
23
23
  components?: {
24
- OptionComponent?: React.FC<ISelectOption>;
24
+ OptionComponent?: (props: ISelectOption) => ReactNode;
25
25
  ValueComponent?: React.ElementType<ISelectValue>;
26
26
  };
27
- value?: ISelectOption | ISelectOption[];
28
- defaultValue?: ISelectOption | ISelectOption[];
27
+ value?: string | string[];
29
28
  menuListCSS?: string;
30
29
  triggerWrapperCSS?: string;
31
30
  dropWrapperCSS?: string;