elcrm 0.9.40 → 0.9.41

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.
@@ -17,6 +17,7 @@ interface Input {
17
17
  id?: string;
18
18
  className?: string;
19
19
  isCopy?: boolean;
20
+ maxLength?: number;
20
21
  }
21
- export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, onBlur, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
22
+ export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onBlur, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
22
23
  export {};
@@ -1 +1,46 @@
1
- export default function (props: any): import("react/jsx-runtime").JSX.Element;
1
+ type Input = {
2
+ value?: string;
3
+ onValue?: Function;
4
+ onBlur?: Function;
5
+ onSave?: Function;
6
+ name?: string;
7
+ placeholder?: string;
8
+ title?: string;
9
+ label?: string;
10
+ error?: string;
11
+ hide?: boolean;
12
+ edit?: boolean;
13
+ active?: Boolean;
14
+ after?: any;
15
+ show?: Boolean;
16
+ view?: string;
17
+ id?: string;
18
+ className?: string;
19
+ isCopy?: boolean;
20
+ maxLength?: number;
21
+ };
22
+ /**
23
+ * Input.Notes
24
+ * @param {object} props - параметры
25
+ * @param {string} [props.id] - id
26
+ * @param {string} [props.value] - значение
27
+ * @param {function} [props.onValue] - callback на изменение
28
+ * @param {string} [props.name] - имя
29
+ * @param {string} [props.placeholder] - placeholder
30
+ * @param {string} [props.title] - заголовок
31
+ * @param {string} [props.error] - ошибка
32
+ * @param {boolean} [props.hide] - скрыть
33
+ * @param {boolean} [props.edit] - редактировать
34
+ * @param {boolean} [props.active] - активность
35
+ * @param {string} [props.after] - контент после
36
+ * @param {boolean} [props.show] - отображать
37
+ * @param {number} [props.maxLength] - максимальная длина
38
+ * @param {string} [props.view] - тип view
39
+ * @param {function} [props.onBlur] - callback на blur
40
+ * @param {function} [props.onSave] - callback на save
41
+ * @param {string} [props.className] - css class
42
+ * @param {boolean} [props.isCopy] - разрешить копирование
43
+ * @return {ReactElement} - поле ввода
44
+ */
45
+ export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onBlur, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
46
+ export {};
@@ -8,5 +8,18 @@ type TPageSections = {
8
8
  page: string;
9
9
  loading?: any;
10
10
  };
11
+ /**
12
+ * PageSection
13
+ *
14
+ * @param {string} title - title page
15
+ * @param {string} affter - affter
16
+ * @param {any} children - Content Page
17
+ * @param {any} button - Button Page
18
+ * @param {string} page - Page default
19
+ * @param {any} tabs - List Tabs Pages
20
+ * @param {string} modules - Link Modules Page
21
+ * @param {any} loading - Spinner
22
+ * @returns {JSX.Element}
23
+ */
11
24
  declare const PageSection: ({ title, affter, children, button, page, tabs, modules, loading, }: TPageSections) => import("react/jsx-runtime").JSX.Element;
12
25
  export default PageSection;