@mw-kit/mw-ui 1.2.0 → 1.2.3

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.
@@ -21,9 +21,8 @@ interface CommonProps extends Omit<InputProps, 'type' | 'mask' | 'icon' | 'setVa
21
21
  onScrollEnd?: () => Promise<void>;
22
22
  position?: Position;
23
23
  disableAutoPosition?: boolean;
24
- loader?: Loader;
25
- options: Option[];
26
- setOptions: React.Dispatch<React.SetStateAction<Option[]>>;
24
+ loader: Loader;
25
+ search?: boolean;
27
26
  }
28
27
  export interface OneSelectProps extends CommonProps {
29
28
  type: 'select';
@@ -41,10 +40,9 @@ export declare type SelectProps = OneSelectProps | MultSelectProps;
41
40
  export interface ContextInterface {
42
41
  props: SelectProps;
43
42
  setOpen: React.Dispatch<React.SetStateAction<boolean>>;
44
- checked: string[];
45
- setChecked: React.Dispatch<React.SetStateAction<string[]>>;
46
- searched: string;
47
- setSearched: React.Dispatch<React.SetStateAction<string>>;
48
- setPage: React.Dispatch<React.SetStateAction<number>>;
43
+ checked: [string[], React.Dispatch<React.SetStateAction<string[]>>];
44
+ search: [string, React.Dispatch<React.SetStateAction<string>>];
45
+ loading: boolean;
46
+ options: Option[];
49
47
  }
50
48
  export {};
@@ -4,4 +4,5 @@ export interface LoaderProps {
4
4
  bgColor?: string | keyof typeof colors;
5
5
  size?: string;
6
6
  borderSize?: string;
7
+ filled?: boolean;
7
8
  }
@@ -45,6 +45,7 @@ export interface MenuProps<T = undefined> extends CommonProps {
45
45
  open: boolean;
46
46
  close: () => void;
47
47
  options: Option<T>[];
48
+ loading?: boolean;
48
49
  }
49
50
  export declare type ContainerProps = CommonProps;
50
51
  export declare type MenuInterface = <T = undefined>(props: MenuProps<T>) => JSX.Element;
@@ -8,6 +8,7 @@ export interface ScrollContainerProps extends Common {
8
8
  onScrollEnd?: () => void | Promise<void>;
9
9
  before?: ElementOrString;
10
10
  after?: ElementOrString;
11
+ loading?: boolean;
11
12
  }
12
13
  export declare type OverflowContainerProps = Common;
13
14
  export {};