@axos-web-dev/shared-components 1.0.99-honeypot.1 → 1.0.99-sectionSpacerRemoved

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.
Files changed (59) hide show
  1. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  2. package/dist/Forms/ApplicationStart.d.ts +1 -1
  3. package/dist/Forms/ApplicationStart.js +101 -89
  4. package/dist/Forms/ClearingForm.d.ts +1 -1
  5. package/dist/Forms/ClearingForm.js +174 -162
  6. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  7. package/dist/Forms/CommercialDeposits.js +191 -179
  8. package/dist/Forms/CommercialLending.d.ts +1 -1
  9. package/dist/Forms/CommercialLending.js +268 -256
  10. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  11. package/dist/Forms/CommercialPremiumFinance.js +106 -94
  12. package/dist/Forms/ContactCompany.d.ts +1 -1
  13. package/dist/Forms/ContactCompany.js +103 -91
  14. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  15. package/dist/Forms/ContactCompanyTitle.js +117 -105
  16. package/dist/Forms/ContactUs.d.ts +1 -1
  17. package/dist/Forms/ContactUs.js +90 -79
  18. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  19. package/dist/Forms/ContactUsAAS.js +170 -158
  20. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  21. package/dist/Forms/ContactUsBusiness.js +124 -112
  22. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  23. package/dist/Forms/ContactUsBusinessNameEmail.js +93 -81
  24. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  25. package/dist/Forms/ContactUsLVF.js +110 -98
  26. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  27. package/dist/Forms/ContactUsNMLSId.js +107 -95
  28. package/dist/Forms/CpraRequest.d.ts +1 -1
  29. package/dist/Forms/CpraRequest.js +630 -618
  30. package/dist/Forms/CraPublicFile.d.ts +1 -1
  31. package/dist/Forms/CraPublicFile.js +99 -87
  32. package/dist/Forms/DealerServices.d.ts +1 -1
  33. package/dist/Forms/DealerServices.js +215 -203
  34. package/dist/Forms/EmailOnly.d.ts +1 -1
  35. package/dist/Forms/EmailOnly.js +46 -34
  36. package/dist/Forms/EmailUs.d.ts +1 -1
  37. package/dist/Forms/EmailUs.js +65 -53
  38. package/dist/Forms/FormProps.d.ts +3 -0
  39. package/dist/Forms/HoneyPot/index.js +2 -3
  40. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  41. package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -343
  42. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  43. package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
  44. package/dist/Forms/ScheduleCall.d.ts +1 -1
  45. package/dist/Forms/ScheduleCall.js +146 -134
  46. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  47. package/dist/Forms/ScheduleCallPremier.js +168 -156
  48. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  49. package/dist/Forms/VendorQuestionnaire.js +807 -795
  50. package/dist/Forms/WcplSurvey.d.ts +1 -1
  51. package/dist/Forms/WcplSurvey.js +102 -90
  52. package/dist/WalnutIframe/wrapper.module.js +3 -3
  53. package/dist/assets/AwardsBanner/AwardsBanner.css +0 -3
  54. package/dist/assets/IconBillboard/IconBillboard.css +3 -0
  55. package/dist/assets/TopicalNavSet/TopicalNavSet.css +3 -0
  56. package/dist/assets/WalnutIframe/wrapper.css.css +49 -49
  57. package/dist/assets/globals.css +11 -0
  58. package/dist/utils/allowedAxosDomains.js +2 -1
  59. package/package.json +1 -1
@@ -7,4 +7,4 @@ export type CraPublicFileInputs = {
7
7
  Customer_Phone__c: string;
8
8
  description: string;
9
9
  };
10
- export declare const CraPublicFile: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CraPublicFile: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -139,6 +139,7 @@ const CraPublicFile = ({
139
139
  description,
140
140
  callToAction,
141
141
  validateEmail,
142
+ onValidate,
142
143
  id
143
144
  }) => {
144
145
  const schema = z.object({
@@ -214,93 +215,104 @@ const CraPublicFile = ({
214
215
  }
215
216
  )
216
217
  ] }),
217
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
218
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
219
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
220
- Input,
221
- {
222
- id: "First_Name__c",
223
- ...register("First_Name__c"),
224
- label: "First Name",
225
- sizes: "medium",
226
- placeholder: "First Name",
227
- error: !!errors.First_Name__c,
228
- helperText: errors.First_Name__c?.message,
229
- variant
230
- }
231
- ) }),
232
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
233
- Input,
234
- {
235
- id: "Last_Name__c",
236
- ...register("Last_Name__c"),
237
- label: "Last Name",
238
- sizes: "medium",
239
- placeholder: "Last Name",
240
- error: !!errors.Last_Name__c,
241
- helperText: errors.Last_Name__c?.message,
242
- variant
243
- }
244
- ) }),
245
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
246
- Input,
247
- {
248
- id: "Customer_Email__c",
249
- ...register("Customer_Email__c"),
250
- type: "email",
251
- label: "Email",
252
- sizes: "medium",
253
- placeholder: "Email",
254
- error: !!errors.Customer_Email__c,
255
- helperText: errors.Customer_Email__c?.message,
256
- variant
257
- }
258
- ) }),
259
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
260
- InputPhone,
261
- {
262
- id: "Customer_Phone__c",
263
- ...register("Customer_Phone__c", {
264
- maxLength: 12
265
- }),
266
- label: "Phone",
267
- sizes: "medium",
268
- placeholder: "Phone",
269
- type: "tel",
270
- error: !!errors.Customer_Phone__c,
271
- helperText: errors.Customer_Phone__c?.message,
272
- variant
273
- }
274
- ) }),
275
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
276
- InputTextArea,
277
- {
278
- id: "description",
279
- ...register("description", { required: true }),
280
- label: "Comments/Questions",
281
- sizes: "medium",
282
- placeholder: "",
283
- error: !!errors.description,
284
- helperText: errors.description?.message,
285
- variant,
286
- rows: 1
287
- }
288
- ) }),
289
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
290
- ] }),
291
- children,
292
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
293
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
294
- Button,
295
- {
296
- color: getVariant(callToAction?.variant),
297
- as: "button",
298
- type: "submit",
299
- disabled: isSubmitting,
300
- children: callToAction?.displayText
301
- }
302
- ) })
303
- ] })
218
+ /* @__PURE__ */ jsxs(
219
+ "form",
220
+ {
221
+ className: form,
222
+ onSubmit: async (e) => {
223
+ onValidate && onValidate(e);
224
+ await handleSubmit(submitForm)(e);
225
+ e.preventDefault();
226
+ },
227
+ children: [
228
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
229
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
230
+ Input,
231
+ {
232
+ id: "First_Name__c",
233
+ ...register("First_Name__c"),
234
+ label: "First Name",
235
+ sizes: "medium",
236
+ placeholder: "First Name",
237
+ error: !!errors.First_Name__c,
238
+ helperText: errors.First_Name__c?.message,
239
+ variant
240
+ }
241
+ ) }),
242
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
243
+ Input,
244
+ {
245
+ id: "Last_Name__c",
246
+ ...register("Last_Name__c"),
247
+ label: "Last Name",
248
+ sizes: "medium",
249
+ placeholder: "Last Name",
250
+ error: !!errors.Last_Name__c,
251
+ helperText: errors.Last_Name__c?.message,
252
+ variant
253
+ }
254
+ ) }),
255
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
256
+ Input,
257
+ {
258
+ id: "Customer_Email__c",
259
+ ...register("Customer_Email__c"),
260
+ type: "email",
261
+ label: "Email",
262
+ sizes: "medium",
263
+ placeholder: "Email",
264
+ error: !!errors.Customer_Email__c,
265
+ helperText: errors.Customer_Email__c?.message,
266
+ variant
267
+ }
268
+ ) }),
269
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
270
+ InputPhone,
271
+ {
272
+ id: "Customer_Phone__c",
273
+ ...register("Customer_Phone__c", {
274
+ maxLength: 12
275
+ }),
276
+ label: "Phone",
277
+ sizes: "medium",
278
+ placeholder: "Phone",
279
+ type: "tel",
280
+ error: !!errors.Customer_Phone__c,
281
+ helperText: errors.Customer_Phone__c?.message,
282
+ variant
283
+ }
284
+ ) }),
285
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
286
+ InputTextArea,
287
+ {
288
+ id: "description",
289
+ ...register("description", { required: true }),
290
+ label: "Comments/Questions",
291
+ sizes: "medium",
292
+ placeholder: "",
293
+ error: !!errors.description,
294
+ helperText: errors.description?.message,
295
+ variant,
296
+ rows: 1
297
+ }
298
+ ) }),
299
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
300
+ ] }),
301
+ children,
302
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
303
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
304
+ Button,
305
+ {
306
+ color: getVariant(callToAction?.variant),
307
+ as: "button",
308
+ type: "submit",
309
+ disabled: isSubmitting,
310
+ children: callToAction?.displayText
311
+ }
312
+ ) })
313
+ ]
314
+ }
315
+ )
304
316
  ] }) }) }, id);
305
317
  };
306
318
  export {
@@ -14,4 +14,4 @@ export type DealerServicesInputs = {
14
14
  zip: string;
15
15
  description: string;
16
16
  };
17
- export declare const DealerServices: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const DealerServices: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;