@axos-web-dev/shared-components 1.0.99-dev.1 → 1.0.99-dev.3
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/ATMLocator/ATMLocator.js +1 -0
- package/dist/Auth/ErrorAlert.js +1 -0
- package/dist/Button/Button.js +1 -0
- package/dist/Calculators/Calculator.js +1 -0
- package/dist/Carousel/index.js +1 -0
- package/dist/Chevron/index.js +1 -0
- package/dist/Comparison/Comparison.js +1 -0
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -0
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +111 -89
- package/dist/Forms/ApplyNow.js +1 -0
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +184 -162
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +201 -179
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +278 -256
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +128 -106
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +113 -91
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +127 -105
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +99 -78
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +180 -158
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +134 -112
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +103 -81
- package/dist/Forms/ContactUsLVF.d.ts +1 -1
- package/dist/Forms/ContactUsLVF.js +120 -98
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +117 -95
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +641 -619
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +109 -87
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +225 -204
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +56 -36
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +75 -53
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
- package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
- package/dist/Forms/HoneyPot/index.d.ts +24 -0
- package/dist/Forms/HoneyPot/index.js +71 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -342
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -0
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +156 -134
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +178 -156
- package/dist/Forms/SuccesForm.js +1 -0
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +817 -795
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +112 -90
- package/dist/Forms/index.d.ts +1 -0
- package/dist/Forms/index.js +4 -0
- package/dist/Hyperlink/index.js +1 -0
- package/dist/ImageLink/ImageLink.js +1 -0
- package/dist/ImageLink/ImageLinkSet.js +1 -0
- package/dist/ImageLink/index.js +1 -0
- package/dist/Input/Input.js +3 -1
- package/dist/Insight/Featured/CategorySelector.js +1 -0
- package/dist/Insight/Featured/Featured.js +1 -0
- package/dist/Insight/Featured/Header.js +1 -0
- package/dist/Modal/Modal.js +1 -0
- package/dist/NavigationMenu/AxosALTS/NavData.js +1 -0
- package/dist/NavigationMenu/AxosALTS/index.js +1 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -0
- package/dist/NavigationMenu/AxosBank/NavData.js +1 -0
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -0
- package/dist/NavigationMenu/AxosBank/index.js +1 -0
- package/dist/NavigationMenu/LaVictoire/NavData.js +1 -0
- package/dist/NavigationMenu/LaVictoire/index.js +1 -0
- package/dist/NavigationMenu/NavDataJson.js +1 -0
- package/dist/NavigationMenu/Navbar.js +1 -0
- package/dist/NavigationMenu/SignInNavButton.js +1 -0
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/SocialMediaBar/iconsRepository.js +1 -0
- package/dist/VideoTile/VideoTile.js +1 -0
- package/dist/VideoWrapper/index.js +1 -0
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
- package/dist/main.js +4 -0
- package/package.json +1 -1
|
@@ -36,6 +36,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
36
36
|
import "../Input/RadioButton.js";
|
|
37
37
|
import "react-hook-form";
|
|
38
38
|
import { iconForm } from "../Forms/Forms.css.js";
|
|
39
|
+
import "../Forms/HoneyPot/index.js";
|
|
39
40
|
import "../Forms/SalesforceFieldsForm.js";
|
|
40
41
|
import "../Input/RadioButton.css.js";
|
|
41
42
|
import "../Input/Checkbox.css.js";
|
package/dist/Auth/ErrorAlert.js
CHANGED
|
@@ -27,6 +27,7 @@ import { getVariant } from "../utils/getVariant.js";
|
|
|
27
27
|
import clsx from "clsx";
|
|
28
28
|
import "react-hook-form";
|
|
29
29
|
import { headerForm } from "../Forms/Forms.css.js";
|
|
30
|
+
import "../Forms/HoneyPot/index.js";
|
|
30
31
|
import "../Forms/SalesforceFieldsForm.js";
|
|
31
32
|
import "../IconBillboard/IconBillboard.css.js";
|
|
32
33
|
/* empty css */
|
package/dist/Button/Button.js
CHANGED
|
@@ -42,6 +42,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
42
42
|
import "../Input/RadioButton.js";
|
|
43
43
|
import "react-hook-form";
|
|
44
44
|
import "../Forms/Forms.css.js";
|
|
45
|
+
import "../Forms/HoneyPot/index.js";
|
|
45
46
|
import "../Forms/SalesforceFieldsForm.js";
|
|
46
47
|
/* empty css */
|
|
47
48
|
/* empty css */
|
|
@@ -118,6 +118,7 @@ import "../Table/Table.css.js";
|
|
|
118
118
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
119
119
|
import "../Button/Button.css.js";
|
|
120
120
|
import { iconForm } from "../Forms/Forms.css.js";
|
|
121
|
+
import "../Forms/HoneyPot/index.js";
|
|
121
122
|
import "../Forms/SalesforceFieldsForm.js";
|
|
122
123
|
import "../Input/RadioButton.css.js";
|
|
123
124
|
import "../Input/Checkbox.css.js";
|
package/dist/Carousel/index.js
CHANGED
|
@@ -43,6 +43,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
43
43
|
import "../Input/RadioButton.js";
|
|
44
44
|
import "react-hook-form";
|
|
45
45
|
import "../Forms/Forms.css.js";
|
|
46
|
+
import "../Forms/HoneyPot/index.js";
|
|
46
47
|
import "../Forms/SalesforceFieldsForm.js";
|
|
47
48
|
import "../Input/RadioButton.css.js";
|
|
48
49
|
import "../Input/Checkbox.css.js";
|
package/dist/Chevron/index.js
CHANGED
|
@@ -44,6 +44,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
44
44
|
import "../Input/RadioButton.js";
|
|
45
45
|
import "react-hook-form";
|
|
46
46
|
import "../Forms/Forms.css.js";
|
|
47
|
+
import "../Forms/HoneyPot/index.js";
|
|
47
48
|
import "../Forms/SalesforceFieldsForm.js";
|
|
48
49
|
/* empty css */
|
|
49
50
|
/* empty css */
|
|
@@ -42,6 +42,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
42
42
|
import "../Input/RadioButton.js";
|
|
43
43
|
import "react-hook-form";
|
|
44
44
|
import "../Forms/Forms.css.js";
|
|
45
|
+
import "../Forms/HoneyPot/index.js";
|
|
45
46
|
import "../Forms/SalesforceFieldsForm.js";
|
|
46
47
|
import "../Input/RadioButton.css.js";
|
|
47
48
|
import "../Input/Checkbox.css.js";
|
|
@@ -47,6 +47,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
47
47
|
import "../Input/RadioButton.js";
|
|
48
48
|
import "react-hook-form";
|
|
49
49
|
import "../Forms/Forms.css.js";
|
|
50
|
+
import "../Forms/HoneyPot/index.js";
|
|
50
51
|
import "../Forms/SalesforceFieldsForm.js";
|
|
51
52
|
import "../Input/RadioButton.css.js";
|
|
52
53
|
import "../Input/Checkbox.css.js";
|
|
@@ -42,6 +42,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
42
42
|
import "../Input/RadioButton.js";
|
|
43
43
|
import "react-hook-form";
|
|
44
44
|
import "../Forms/Forms.css.js";
|
|
45
|
+
import "../Forms/HoneyPot/index.js";
|
|
45
46
|
import "../Forms/SalesforceFieldsForm.js";
|
|
46
47
|
/* empty css */
|
|
47
48
|
/* empty css */
|
|
@@ -43,6 +43,7 @@ import "../../Input/DownPaymentInput.js";
|
|
|
43
43
|
import "../../Input/RadioButton.js";
|
|
44
44
|
import "react-hook-form";
|
|
45
45
|
import "../../Forms/Forms.css.js";
|
|
46
|
+
import "../../Forms/HoneyPot/index.js";
|
|
46
47
|
import "../../Forms/SalesforceFieldsForm.js";
|
|
47
48
|
import "../../Input/RadioButton.css.js";
|
|
48
49
|
import "../../Input/Checkbox.css.js";
|
|
@@ -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, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -32,6 +32,7 @@ import clsx from "clsx";
|
|
|
32
32
|
import { useForm, FormProvider } from "react-hook-form";
|
|
33
33
|
import * as z from "zod";
|
|
34
34
|
import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
35
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
35
36
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
36
37
|
const ApplicationStart = ({
|
|
37
38
|
icon = false,
|
|
@@ -45,6 +46,7 @@ const ApplicationStart = ({
|
|
|
45
46
|
description,
|
|
46
47
|
callToAction,
|
|
47
48
|
validateEmail,
|
|
49
|
+
onValidate,
|
|
48
50
|
id
|
|
49
51
|
}) => {
|
|
50
52
|
const schema = z.object({
|
|
@@ -71,8 +73,16 @@ const ApplicationStart = ({
|
|
|
71
73
|
}),
|
|
72
74
|
checkbox__c: z.boolean()
|
|
73
75
|
});
|
|
76
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
77
|
+
if (!isValidHoneyPot(data)) {
|
|
78
|
+
ctx.addIssue({
|
|
79
|
+
code: z.ZodIssueCode.custom,
|
|
80
|
+
message: "fields are not valid."
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
});
|
|
74
84
|
const methods = useForm({
|
|
75
|
-
resolver: zodResolver(
|
|
85
|
+
resolver: zodResolver(gen_schema, {
|
|
76
86
|
async: true
|
|
77
87
|
}),
|
|
78
88
|
mode: "all",
|
|
@@ -110,95 +120,107 @@ const ApplicationStart = ({
|
|
|
110
120
|
}
|
|
111
121
|
)
|
|
112
122
|
] }),
|
|
113
|
-
/* @__PURE__ */ jsxs(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
placeholder: "Last Name",
|
|
137
|
-
required: true,
|
|
138
|
-
error: !!errors.last_name,
|
|
139
|
-
helperText: errors.last_name?.message,
|
|
140
|
-
variant
|
|
141
|
-
}
|
|
142
|
-
) }),
|
|
143
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
144
|
-
Input,
|
|
145
|
-
{
|
|
146
|
-
id: "email",
|
|
147
|
-
...register("email", {
|
|
148
|
-
required: true,
|
|
149
|
-
validate: {
|
|
150
|
-
isValid: associatedEmail
|
|
123
|
+
/* @__PURE__ */ jsxs(
|
|
124
|
+
"form",
|
|
125
|
+
{
|
|
126
|
+
className: form,
|
|
127
|
+
onSubmit: async (e) => {
|
|
128
|
+
onValidate && onValidate(e);
|
|
129
|
+
await handleSubmit(submitForm)(e);
|
|
130
|
+
e.preventDefault();
|
|
131
|
+
},
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
134
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
135
|
+
Input,
|
|
136
|
+
{
|
|
137
|
+
id: "first_name",
|
|
138
|
+
...register("first_name", { required: true }),
|
|
139
|
+
label: "First Name",
|
|
140
|
+
sizes: "medium",
|
|
141
|
+
placeholder: "First Name",
|
|
142
|
+
required: true,
|
|
143
|
+
error: !!errors.first_name,
|
|
144
|
+
helperText: errors.first_name?.message,
|
|
145
|
+
variant
|
|
151
146
|
}
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
147
|
+
) }),
|
|
148
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
149
|
+
Input,
|
|
150
|
+
{
|
|
151
|
+
id: "last_name",
|
|
152
|
+
...register("last_name", { required: true }),
|
|
153
|
+
label: "Last Name",
|
|
154
|
+
sizes: "medium",
|
|
155
|
+
placeholder: "Last Name",
|
|
156
|
+
required: true,
|
|
157
|
+
error: !!errors.last_name,
|
|
158
|
+
helperText: errors.last_name?.message,
|
|
159
|
+
variant
|
|
160
|
+
}
|
|
161
|
+
) }),
|
|
162
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
163
|
+
Input,
|
|
164
|
+
{
|
|
165
|
+
id: "email",
|
|
166
|
+
...register("email", {
|
|
167
|
+
required: true,
|
|
168
|
+
validate: {
|
|
169
|
+
isValid: associatedEmail
|
|
170
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
label: "Email",
|
|
173
|
+
sizes: "medium",
|
|
174
|
+
placeholder: "Email",
|
|
175
|
+
required: true,
|
|
176
|
+
error: !!errors.email,
|
|
177
|
+
helperText: errors.email?.message,
|
|
178
|
+
variant
|
|
179
|
+
}
|
|
180
|
+
) }),
|
|
181
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
182
|
+
InputPhone,
|
|
183
|
+
{
|
|
184
|
+
id: "phone",
|
|
185
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
186
|
+
label: "Phone",
|
|
187
|
+
sizes: "medium",
|
|
188
|
+
placeholder: "Phone",
|
|
189
|
+
required: true,
|
|
190
|
+
error: !!errors.phone,
|
|
191
|
+
helperText: errors.phone?.message,
|
|
192
|
+
variant
|
|
193
|
+
}
|
|
194
|
+
) }),
|
|
195
|
+
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
196
|
+
Checkbox,
|
|
197
|
+
{
|
|
198
|
+
id: "checkbox__c",
|
|
199
|
+
...register("checkbox__c"),
|
|
200
|
+
sizes: "medium",
|
|
201
|
+
error: !!errors.checkbox__c,
|
|
202
|
+
helperText: errors.checkbox__c?.message,
|
|
203
|
+
variant,
|
|
204
|
+
children: "By providing your phone number and selecting the checkbox, you have agreed to these Terms and Conditions, and you have agreed to receive automated text messages, calls, and emails for any purpose including but not limited to marketing of products and services by Axos Bank. You understand and agree that such messages may be sent via Automatic Telephone Dialing System and/or artificial or pre-recorded voice, and that such consent is not a condition of receipt of any good or service. Mobile carrier messages and data rates may apply. You may opt out at any time."
|
|
205
|
+
}
|
|
206
|
+
) }),
|
|
207
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
|
|
208
|
+
] }),
|
|
209
|
+
children,
|
|
210
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
211
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
212
|
+
Button,
|
|
213
|
+
{
|
|
214
|
+
color: getVariant(callToAction?.variant),
|
|
215
|
+
as: "button",
|
|
216
|
+
type: "submit",
|
|
217
|
+
disabled: !isValid || isSubmitting,
|
|
218
|
+
children: callToAction?.displayText
|
|
219
|
+
}
|
|
220
|
+
) })
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
)
|
|
202
224
|
] }) }) }, id);
|
|
203
225
|
};
|
|
204
226
|
export {
|
package/dist/Forms/ApplyNow.js
CHANGED
|
@@ -46,6 +46,7 @@ import "../Input/DownPaymentInput.js";
|
|
|
46
46
|
import "../Input/RadioButton.js";
|
|
47
47
|
import "react-hook-form";
|
|
48
48
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, step_title_apply_now, form_nav_apply_now, iconbillboards_option_apply_now, show_options, hide_options, back_btn_apply_now, disclosureForm, formContainer } from "./Forms.css.js";
|
|
49
|
+
import "./HoneyPot/index.js";
|
|
49
50
|
import "./SalesforceFieldsForm.js";
|
|
50
51
|
import "../Input/RadioButton.css.js";
|
|
51
52
|
import "../Input/Checkbox.css.js";
|
|
@@ -11,4 +11,4 @@ export type ClearingInputs = {
|
|
|
11
11
|
Memo__c: string;
|
|
12
12
|
business_type_selection: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const ClearingForm: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const ClearingForm: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|