elcrm 0.7.7 → 0.7.9

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,6 +1,10 @@
1
1
  import { default as React } from 'react';
2
2
  import { default as Button } from '../Button/Button';
3
3
 
4
+ type ButtonCallBack = {
5
+ setOpen: Function;
6
+ disabled: Function;
7
+ };
4
8
  /**
5
9
  * Введите текст уведомления
6
10
  * @param {string} title - Заголовок
@@ -15,7 +19,7 @@ type Main = {
15
19
  };
16
20
  type Button = {
17
21
  onClick?: Function;
18
- onSend?: Function;
22
+ onSend?: (callBack: ButtonCallBack) => void;
19
23
  label: string;
20
24
  };
21
25
  export declare function Init({ config }: any): import("react/jsx-runtime").JSX.Element;
@@ -45,4 +49,5 @@ export declare function Icon({ type, name, params }: Params): import("react/jsx-
45
49
  * @param {any} params - params.
46
50
  */
47
51
  export declare function Open(type: string, name: string, params: any): void;
52
+ export declare function Close(name?: any): void;
48
53
  export {};
@@ -2,7 +2,7 @@ import { default as List } from './List';
2
2
  import { default as Scroll } from './Scroll';
3
3
  import { default as Form } from './Form';
4
4
  import { default as Center } from './Center';
5
- import { Main, Add, Icon, Open, Shake } from './Modal';
5
+ import { Main, Add, Icon, Open, Shake, Close } from './Modal';
6
6
 
7
7
  declare const _default: {
8
8
  List: typeof List;
@@ -14,5 +14,6 @@ declare const _default: {
14
14
  Shake: typeof Shake;
15
15
  Form: typeof Form;
16
16
  Center: typeof Center;
17
+ Close: typeof Close;
17
18
  };
18
19
  export default _default;