@elcrm/form 0.0.33 → 0.0.35
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.
- package/dist/index.css +1 -1
- package/dist/index.es.js +811 -772
- package/dist/index.umd.js +38 -38
- package/dist/src/lib/Textarea.d.ts +28 -4
- package/dist/src/lib/_Textarea.d.ts +20 -0
- package/dist/src/lib/index.d.ts +3 -2
- package/dist/src/lib/use.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/lib/Note.d.ts +0 -44
- /package/dist/src/lib/{Number.d.ts → Numeric.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type Input = {
|
|
2
2
|
value?: string;
|
|
3
3
|
onValue?: Function;
|
|
4
4
|
onSave?: Function;
|
|
@@ -10,11 +10,35 @@ interface Input {
|
|
|
10
10
|
hide?: boolean;
|
|
11
11
|
edit?: boolean;
|
|
12
12
|
active?: Boolean;
|
|
13
|
-
after?:
|
|
13
|
+
after?: any;
|
|
14
14
|
show?: Boolean;
|
|
15
15
|
view?: string;
|
|
16
|
+
id?: string;
|
|
16
17
|
className?: string;
|
|
18
|
+
isCopy?: boolean;
|
|
17
19
|
maxLength?: number;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Input.Notes
|
|
23
|
+
* @param {object} props - параметры
|
|
24
|
+
* @param {string} [props.id] - id
|
|
25
|
+
* @param {string} [props.value] - значение
|
|
26
|
+
* @param {function} [props.onValue] - callback на изменение
|
|
27
|
+
* @param {string} [props.name] - имя
|
|
28
|
+
* @param {string} [props.placeholder] - placeholder
|
|
29
|
+
* @param {string} [props.title] - заголовок
|
|
30
|
+
* @param {string} [props.error] - ошибка
|
|
31
|
+
* @param {boolean} [props.hide] - скрыть
|
|
32
|
+
* @param {boolean} [props.edit] - редактировать
|
|
33
|
+
* @param {boolean} [props.active] - активность
|
|
34
|
+
* @param {string} [props.after] - контент после
|
|
35
|
+
* @param {boolean} [props.show] - отображать
|
|
36
|
+
* @param {number} [props.maxLength] - максимальная длина
|
|
37
|
+
* @param {string} [props.view] - тип view
|
|
38
|
+
* @param {function} [props.onSave] - callback на save
|
|
39
|
+
* @param {string} [props.className] - css class
|
|
40
|
+
* @param {boolean} [props.isCopy] - разрешить копирование
|
|
41
|
+
* @return {ReactElement} - поле ввода
|
|
42
|
+
*/
|
|
43
|
+
export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
|
|
20
44
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface Input {
|
|
2
|
+
value?: string;
|
|
3
|
+
onValue?: Function;
|
|
4
|
+
onSave?: Function;
|
|
5
|
+
name?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
hide?: boolean;
|
|
11
|
+
edit?: boolean;
|
|
12
|
+
active?: Boolean;
|
|
13
|
+
after?: string;
|
|
14
|
+
show?: Boolean;
|
|
15
|
+
view?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
}
|
|
19
|
+
export default function ({ value, onValue, name, placeholder, title, error, hide, edit, active, after, show, view, maxLength, onSave, className, }: Input): "" | import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -4,11 +4,12 @@ export { default as Options } from './Options';
|
|
|
4
4
|
export { default as Select } from './Select';
|
|
5
5
|
export { default as Modal } from './Modal';
|
|
6
6
|
export { default as Password } from './Password';
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as Numeric } from './Numeric';
|
|
8
8
|
export { default as Mask } from './Mask';
|
|
9
|
-
export { default as
|
|
9
|
+
export { default as Textarea } from './Textarea';
|
|
10
10
|
export { default as Phone } from './Phone';
|
|
11
11
|
export { default as Date } from './Date';
|
|
12
12
|
export { default as Month } from './Month';
|
|
13
13
|
export { default as Money } from './Money';
|
|
14
|
+
export { default as Check } from './Check';
|
|
14
15
|
export { useData, setValue, runReload, useError } from './use';
|
package/dist/src/lib/use.d.ts
CHANGED
package/package.json
CHANGED
package/dist/src/lib/Note.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
type Input = {
|
|
2
|
-
value?: string;
|
|
3
|
-
onValue?: Function;
|
|
4
|
-
onSave?: Function;
|
|
5
|
-
name?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
error?: string;
|
|
10
|
-
hide?: boolean;
|
|
11
|
-
edit?: boolean;
|
|
12
|
-
active?: Boolean;
|
|
13
|
-
after?: any;
|
|
14
|
-
show?: Boolean;
|
|
15
|
-
view?: string;
|
|
16
|
-
id?: string;
|
|
17
|
-
className?: string;
|
|
18
|
-
isCopy?: boolean;
|
|
19
|
-
maxLength?: number;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Input.Notes
|
|
23
|
-
* @param {object} props - параметры
|
|
24
|
-
* @param {string} [props.id] - id
|
|
25
|
-
* @param {string} [props.value] - значение
|
|
26
|
-
* @param {function} [props.onValue] - callback на изменение
|
|
27
|
-
* @param {string} [props.name] - имя
|
|
28
|
-
* @param {string} [props.placeholder] - placeholder
|
|
29
|
-
* @param {string} [props.title] - заголовок
|
|
30
|
-
* @param {string} [props.error] - ошибка
|
|
31
|
-
* @param {boolean} [props.hide] - скрыть
|
|
32
|
-
* @param {boolean} [props.edit] - редактировать
|
|
33
|
-
* @param {boolean} [props.active] - активность
|
|
34
|
-
* @param {string} [props.after] - контент после
|
|
35
|
-
* @param {boolean} [props.show] - отображать
|
|
36
|
-
* @param {number} [props.maxLength] - максимальная длина
|
|
37
|
-
* @param {string} [props.view] - тип view
|
|
38
|
-
* @param {function} [props.onSave] - callback на save
|
|
39
|
-
* @param {string} [props.className] - css class
|
|
40
|
-
* @param {boolean} [props.isCopy] - разрешить копирование
|
|
41
|
-
* @return {ReactElement} - поле ввода
|
|
42
|
-
*/
|
|
43
|
-
export default function ({ id, value, onValue, name, placeholder, title, error, hide, edit, active, after, show, maxLength, view, onSave, className, isCopy, }: Input): "" | import("react/jsx-runtime").JSX.Element;
|
|
44
|
-
export {};
|
|
File without changes
|