@axos-web-dev/shared-components 1.0.77-patch.19 → 1.0.77-patch.20
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 -77
- 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 +118 -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 -203
- 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 +23 -0
- package/dist/Forms/HoneyPot/index.js +69 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +367 -345
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -0
- package/dist/Forms/MortgageWarehouseLending.d.ts +1 -3
- package/dist/Forms/MortgageWarehouseLending.js +13 -3
- 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/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/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 +8 -0
- package/dist/main.js +4 -0
- package/package.json +1 -1
|
@@ -46,6 +46,7 @@ import "../../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
|
|
|
46
46
|
import "../../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
47
47
|
import "../../Input/PercentageInput.js";
|
|
48
48
|
import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
49
|
+
import "../HoneyPot/index.js";
|
|
49
50
|
import "../SalesforceFieldsForm.js";
|
|
50
51
|
import "react-use";
|
|
51
52
|
import "../../Chevron/Chevron.css.js";
|
|
@@ -8,6 +8,4 @@ export type MortgageWarehouseLendingInputs = {
|
|
|
8
8
|
Company_NMLS_ID__c: string;
|
|
9
9
|
Business_Name__c: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const MortgageWarehouseLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps
|
|
12
|
-
disableHoneyPot?: boolean;
|
|
13
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const MortgageWarehouseLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -46,6 +46,7 @@ import { useForm, FormProvider } from "react-hook-form";
|
|
|
46
46
|
import { z } from "zod";
|
|
47
47
|
import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
48
48
|
import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
|
|
49
|
+
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
49
50
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
50
51
|
/* empty css */
|
|
51
52
|
/* empty css */
|
|
@@ -138,6 +139,7 @@ const MortgageWarehouseLending = ({
|
|
|
138
139
|
description,
|
|
139
140
|
callToAction,
|
|
140
141
|
validateEmail,
|
|
142
|
+
onValidate,
|
|
141
143
|
id
|
|
142
144
|
}) => {
|
|
143
145
|
const schema = z.object({
|
|
@@ -165,7 +167,14 @@ const MortgageWarehouseLending = ({
|
|
|
165
167
|
Company_NMLS_ID__c: z.string().min(6).max(7),
|
|
166
168
|
Business_Name__c: z.string().min(1)
|
|
167
169
|
});
|
|
168
|
-
const gen_schema = schema.merge(SalesforceSchema)
|
|
170
|
+
const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
|
|
171
|
+
if (!isValidHoneyPot(data)) {
|
|
172
|
+
ctx.addIssue({
|
|
173
|
+
code: z.ZodIssueCode.custom,
|
|
174
|
+
message: "fields are not valid."
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
});
|
|
169
178
|
const methods = useForm({
|
|
170
179
|
resolver: zodResolver(
|
|
171
180
|
gen_schema,
|
|
@@ -175,7 +184,6 @@ const MortgageWarehouseLending = ({
|
|
|
175
184
|
{ mode: "async" }
|
|
176
185
|
),
|
|
177
186
|
mode: "onChange",
|
|
178
|
-
shouldUnregister: true,
|
|
179
187
|
defaultValues: {
|
|
180
188
|
email: ""
|
|
181
189
|
}
|
|
@@ -210,6 +218,7 @@ const MortgageWarehouseLending = ({
|
|
|
210
218
|
{
|
|
211
219
|
className: form,
|
|
212
220
|
onSubmit: async (e) => {
|
|
221
|
+
onValidate && onValidate(e);
|
|
213
222
|
await handleSubmit(submitForm)(e);
|
|
214
223
|
e.preventDefault();
|
|
215
224
|
},
|
|
@@ -303,7 +312,8 @@ const MortgageWarehouseLending = ({
|
|
|
303
312
|
helperText: errors.Business_Name__c?.message,
|
|
304
313
|
variant
|
|
305
314
|
}
|
|
306
|
-
) })
|
|
315
|
+
) }),
|
|
316
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, variant })
|
|
307
317
|
] }),
|
|
308
318
|
children,
|
|
309
319
|
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
@@ -43,4 +43,4 @@ export type QuickPricerInputs = {
|
|
|
43
43
|
Email_Address__c: string;
|
|
44
44
|
Cell_Phone__c: string;
|
|
45
45
|
};
|
|
46
|
-
export declare const QuickPricer: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, id, description, validateEmail, validateNMLS, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const QuickPricer: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, id, description, validateEmail, validateNMLS, onValidate, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|