@mw-kit/mw-ui 1.1.1 → 1.2.2

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 {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { ZoomProps } from './interfaces';
3
+ declare const Zoom: (props: ZoomProps) => JSX.Element;
4
+ export default Zoom;
@@ -0,0 +1,9 @@
1
+ import { ModalProps } from '../Modal/interfaces';
2
+ export interface StyledZoomProps {
3
+ width?: number | string;
4
+ height?: number | string;
5
+ }
6
+ export interface ZoomProps extends StyledZoomProps {
7
+ src: string;
8
+ defaultClickOptions?: Partial<ModalProps>;
9
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { StyledZoomProps } from './interfaces';
3
+ export declare const Image: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledZoomProps, never>;
5
+ export declare const Dimmer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const Button: import("styled-components").StyledComponent<(props: import("../Button/interfaces").ButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
7
+ export declare const ModalContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -15,4 +15,5 @@ export { default as MwToast } from './Toast';
15
15
  export { default as MwDatePicker } from './Calendar';
16
16
  export { default as MwCalendarInterval } from './CalendarInterval';
17
17
  export { default as MwPlaceholder } from './Placeholder';
18
+ export { default as MwZoom } from './Zoom';
18
19
  export { default as MwEllipsisContainer } from './EllipsisContainer';