@elcrm/form 0.0.53 → 0.0.55
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 +2059 -2645
- package/dist/index.umd.js +29 -58
- package/dist/src/lib/fields/Input.d.ts +1 -1
- package/dist/src/lib/fields/Select.d.ts +27 -0
- package/dist/src/lib/index.d.ts +4 -4
- package/dist/test/dev.d.ts +0 -0
- package/package.json +1 -9
- /package/dist/src/lib/{Modal.d.ts → fields/Modal.d.ts} +0 -0
- /package/dist/src/lib/{Options.d.ts → fields/Options.d.ts} +0 -0
- /package/dist/src/lib/{Password.d.ts → fields/Password.d.ts} +0 -0
- /package/dist/src/lib/{Select.d.ts → fields/Select copy.d.ts} +0 -0
|
@@ -24,4 +24,4 @@ import { TInput } from './type';
|
|
|
24
24
|
* @param {boolean} [isReload] - Нужно ли обновлять данные при изменении.
|
|
25
25
|
* @param {boolean} [spellCheck] - Включить проверку орфографии.
|
|
26
26
|
*/
|
|
27
|
-
export default function ({ value, onValue, name, inputmode, placeholder, title, label, show, hide, edit, active, maxLength, onSave, className, spellCheck, isCopy, isReload, error, }: TInput): import("react/jsx-runtime").JSX.Element | "";
|
|
27
|
+
export default function ({ value, onValue, name, inputmode, placeholder, title, label, show, hide, edit, active, maxLength, onSave, className, spellCheck, isCopy, isReload, after, before, error, }: TInput): import("react/jsx-runtime").JSX.Element | "";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type TSelect = {
|
|
2
|
+
value?: number;
|
|
3
|
+
onValue?: Function;
|
|
4
|
+
name?: string;
|
|
5
|
+
isReload?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
hide?: boolean;
|
|
10
|
+
edit?: Boolean;
|
|
11
|
+
active?: Boolean;
|
|
12
|
+
after?: string;
|
|
13
|
+
show?: Boolean;
|
|
14
|
+
view?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
isIcon?: Boolean;
|
|
17
|
+
options?: Record<number, {
|
|
18
|
+
n: string;
|
|
19
|
+
s: number;
|
|
20
|
+
}> | Array<{
|
|
21
|
+
id: number;
|
|
22
|
+
n: string;
|
|
23
|
+
s: number;
|
|
24
|
+
}>;
|
|
25
|
+
order?: any;
|
|
26
|
+
};
|
|
27
|
+
export default function ({ title, error, edit, active, hide, value, onValue, options, placeholder, className, isIcon, name, after, view, order, isReload, }: TSelect): import("react/jsx-runtime").JSX.Element | "";
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -7,10 +7,10 @@ export { default as TextareaField } from './fields/Textarea';
|
|
|
7
7
|
export { default as PhoneField } from './fields/Phone';
|
|
8
8
|
export { default as StringField } from './fields/Input';
|
|
9
9
|
export { default as NumberField } from './fields/Numeric';
|
|
10
|
-
export { default as OptionsField } from './Options';
|
|
11
|
-
export { default as SelectField } from './Select';
|
|
12
|
-
export { default as ModalField } from './Modal';
|
|
13
|
-
export { default as PasswordField } from './Password';
|
|
10
|
+
export { default as OptionsField } from './fields/Options';
|
|
11
|
+
export { default as SelectField } from './fields/Select';
|
|
12
|
+
export { default as ModalField } from './fields/Modal';
|
|
13
|
+
export { default as PasswordField } from './fields/Password';
|
|
14
14
|
export { default as Check } from './Check';
|
|
15
15
|
export { useData, setValue, runReload, useError } from './use';
|
|
16
16
|
export type { TInput, TValue } from './fields/type';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elcrm/form",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"description": "plugin for elCRM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "MaSkal <dev@elcrm.online>",
|
|
@@ -26,13 +26,5 @@
|
|
|
26
26
|
"import": "./dist/index.css",
|
|
27
27
|
"require": "./dist/index.css"
|
|
28
28
|
}
|
|
29
|
-
},
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"@types/react": ">=18.0.0",
|
|
32
|
-
"react": ">=18.0.0"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@elcrm/modal": "^0.0.21",
|
|
36
|
-
"@elcrm/notice": "latest"
|
|
37
29
|
}
|
|
38
30
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|