@gustavo-valsechi/client 1.4.180 → 1.4.182
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/src/interfaces/components/form/custom/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/datetime/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/file/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/index.d.ts +2 -1
- package/dist/src/interfaces/components/form/select/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/text/index.d.ts +1 -1
- package/dist/src/interfaces/components/form/textarea/index.d.ts +1 -1
- package/dist/styled.js +3 -0
- package/dist/styled.mjs +2 -0
- package/package.json +4 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import { IButton, IInputSelect } from "../form";
|
|
2
3
|
export * from "./file";
|
|
3
4
|
export * from "./label";
|
|
@@ -11,7 +12,7 @@ export * from "./error";
|
|
|
11
12
|
export type IInputType = "text" | "password" | "select" | "textarea" | "date-time" | "file" | "custom";
|
|
12
13
|
export interface IForm {
|
|
13
14
|
defaultValues?: any;
|
|
14
|
-
validation?:
|
|
15
|
+
validation?: (validations: z.ZodTypeAny) => z.ZodTypeAny;
|
|
15
16
|
formRef?: any;
|
|
16
17
|
onSubmit: (values: any, actions?: any) => void;
|
|
17
18
|
clearWhen?: boolean;
|
|
@@ -16,7 +16,7 @@ export interface IInputSelect {
|
|
|
16
16
|
onFocus?: (value: any) => void;
|
|
17
17
|
optional?: boolean;
|
|
18
18
|
register?: UseFormRegister<any>;
|
|
19
|
-
validation?:
|
|
19
|
+
validation?: z.ZodTypeAny;
|
|
20
20
|
mask?: (value: string) => void;
|
|
21
21
|
setValue?: (...args: any[]) => void;
|
|
22
22
|
watch?: (...args: any[]) => string;
|
package/dist/styled.js
ADDED
package/dist/styled.mjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gustavo-valsechi/client",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.182",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"react": "18.3.1",
|
|
22
22
|
"react-dom": "18.3.1",
|
|
23
|
-
"styled-components": "6.1.12"
|
|
23
|
+
"styled-components": "6.1.12",
|
|
24
|
+
"react-hot-toast": "2.4.1"
|
|
24
25
|
},
|
|
25
26
|
"dependencies": {
|
|
26
27
|
"@emotion/is-prop-valid": "1.3.0",
|
|
@@ -35,7 +36,6 @@
|
|
|
35
36
|
"react-apexcharts": "1.4.1",
|
|
36
37
|
"react-credit-cards-2": "1.0.3",
|
|
37
38
|
"react-hook-form": "7.65.0",
|
|
38
|
-
"react-hot-toast": "2.4.1",
|
|
39
39
|
"react-lottie": "1.2.4",
|
|
40
40
|
"tsup": "8.5.0",
|
|
41
41
|
"zod": "4.1.12",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"raw-loader": "4.0.2",
|
|
56
56
|
"react": "18.3.1",
|
|
57
57
|
"react-dom": "18.3.1",
|
|
58
|
+
"react-hot-toast": "2.4.1",
|
|
58
59
|
"rimraf": "6.1.0",
|
|
59
60
|
"styled-components": "6.1.12",
|
|
60
61
|
"tsc-alias": "1.8.16",
|