@axos-web-dev/shared-components 1.0.77-patch.44 → 1.0.77-patch.45
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.
|
@@ -9,4 +9,4 @@ export type ApplicationStartInputs = {
|
|
|
9
9
|
Send_SMS__c: boolean;
|
|
10
10
|
DoNotCall: boolean;
|
|
11
11
|
};
|
|
12
|
-
export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction,
|
|
12
|
+
export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,14 +45,13 @@ const ApplicationStart = ({
|
|
|
45
45
|
headline,
|
|
46
46
|
description,
|
|
47
47
|
callToAction,
|
|
48
|
-
validateEmail,
|
|
49
48
|
onValidate,
|
|
50
49
|
id
|
|
51
50
|
}) => {
|
|
52
51
|
const schema = z.object({
|
|
53
52
|
first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
|
|
54
53
|
last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
|
|
55
|
-
email: z.string().email({ message: "Email is required." })
|
|
54
|
+
email: z.string().email({ message: "Email is required." }),
|
|
56
55
|
phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
57
56
|
const removeDashes = val.replace(/-/gi, "");
|
|
58
57
|
if (removeDashes.length !== 10) {
|
package/package.json
CHANGED