elcrm 0.7.8 → 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;
package/dist/index.es.js CHANGED
@@ -2055,7 +2055,10 @@ function ei({
2055
2055
  if (n.onClick)
2056
2056
  return m(!1), n.onClick({ setOpen: l });
2057
2057
  if (n.onSend)
2058
- return n.onSend({ setOpen: l, disabled: m });
2058
+ return n.onSend({
2059
+ setOpen: l,
2060
+ disabled: m
2061
+ });
2059
2062
  }
2060
2063
  }, u = () => {
2061
2064
  _.current.setAttribute("shake", !0), setTimeout(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elcrm",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "React framework for creating modules for elCRM",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",