@lets-events/react 12.1.8 → 12.1.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.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lets-events/react@12.1.
|
|
3
|
+
> @lets-events/react@12.1.9 build
|
|
4
4
|
> tsup src/index.tsx --format esm,cjs --dts --external react
|
|
5
5
|
|
|
6
6
|
[1G[0K[34mCLI[39m Building entry: src/index.tsx
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
[34mCLI[39m Target: es6
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[34mCJS[39m Build start
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m375.90 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in 258ms
|
|
15
13
|
[32mESM[39m [1mdist/QuillComponent-EIWPUIIH.mjs [22m[32m13.81 KB[39m
|
|
16
14
|
[32mESM[39m [1mdist/chunk-TU7LKUXZ.mjs [22m[32m61.98 KB[39m
|
|
17
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m277.
|
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
|
15
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m277.81 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 323ms
|
|
17
|
+
[32mCJS[39m [1mdist/index.js [22m[32m376.11 KB[39m
|
|
18
|
+
[32mCJS[39m ⚡️ Build success in 324ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
20
|
+
DTS ⚡️ Build success in 5233ms
|
|
21
21
|
DTS dist/index.d.mts 388.87 KB
|
|
22
22
|
DTS dist/index.d.ts 388.87 KB
|
|
23
23
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -11111,7 +11111,13 @@ var IdentityDocumentNumberFormField = ({
|
|
|
11111
11111
|
name,
|
|
11112
11112
|
label,
|
|
11113
11113
|
required,
|
|
11114
|
-
placeholder: placeholder || "__.___.___-_"
|
|
11114
|
+
placeholder: placeholder || "__.___.___-_",
|
|
11115
|
+
validate: (value) => {
|
|
11116
|
+
const isEmpty = value.length === 0;
|
|
11117
|
+
if (!required && isEmpty) return true;
|
|
11118
|
+
if (value.length >= 3) return true;
|
|
11119
|
+
return validationErrorMessage;
|
|
11120
|
+
}
|
|
11115
11121
|
}
|
|
11116
11122
|
);
|
|
11117
11123
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -8530,7 +8530,13 @@ var IdentityDocumentNumberFormField = ({
|
|
|
8530
8530
|
name,
|
|
8531
8531
|
label,
|
|
8532
8532
|
required,
|
|
8533
|
-
placeholder: placeholder || "__.___.___-_"
|
|
8533
|
+
placeholder: placeholder || "__.___.___-_",
|
|
8534
|
+
validate: (value) => {
|
|
8535
|
+
const isEmpty = value.length === 0;
|
|
8536
|
+
if (!required && isEmpty) return true;
|
|
8537
|
+
if (value.length >= 3) return true;
|
|
8538
|
+
return validationErrorMessage;
|
|
8539
|
+
}
|
|
8534
8540
|
}
|
|
8535
8541
|
);
|
|
8536
8542
|
};
|
package/package.json
CHANGED
|
@@ -21,6 +21,12 @@ export const IdentityDocumentNumberFormField = ({
|
|
|
21
21
|
label={label}
|
|
22
22
|
required={required}
|
|
23
23
|
placeholder={placeholder || "__.___.___-_"}
|
|
24
|
+
validate={(value: string) => {
|
|
25
|
+
const isEmpty = value.length === 0;
|
|
26
|
+
if (!required && isEmpty) return true;
|
|
27
|
+
if (value.length >= 3) return true;
|
|
28
|
+
return false || validationErrorMessage;
|
|
29
|
+
}}
|
|
24
30
|
/>
|
|
25
31
|
);
|
|
26
32
|
};
|