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

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 (117) hide show
  1. package/dist/Auth/ErrorAlert.js +2 -2
  2. package/dist/Button/Button.js +2 -2
  3. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  4. package/dist/Calculators/Calculator.js +14 -2
  5. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  6. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  7. package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
  8. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  9. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
  10. package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
  11. package/dist/Calculators/index.d.ts +2 -1
  12. package/dist/Calculators/index.js +3 -1
  13. package/dist/Carousel/index.js +2 -2
  14. package/dist/Chevron/index.js +2 -2
  15. package/dist/Comparison/Comparison.js +2 -2
  16. package/dist/ExecutiveBio/ExecutiveBio.js +2 -2
  17. package/dist/FaqAccordion/index.js +2 -2
  18. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -2
  19. package/dist/Forms/ApplicationStart.d.ts +1 -1
  20. package/dist/Forms/ApplicationStart.js +101 -89
  21. package/dist/Forms/ApplyNow.d.ts +2 -2
  22. package/dist/Forms/ApplyNow.js +170 -145
  23. package/dist/Forms/ClearingForm.d.ts +1 -1
  24. package/dist/Forms/ClearingForm.js +174 -162
  25. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  26. package/dist/Forms/CommercialDeposits.js +191 -179
  27. package/dist/Forms/CommercialLending.d.ts +1 -1
  28. package/dist/Forms/CommercialLending.js +268 -256
  29. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  30. package/dist/Forms/CommercialPremiumFinance.js +106 -94
  31. package/dist/Forms/ContactCompany.d.ts +1 -1
  32. package/dist/Forms/ContactCompany.js +103 -91
  33. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  34. package/dist/Forms/ContactCompanyTitle.js +117 -105
  35. package/dist/Forms/ContactUs.d.ts +1 -1
  36. package/dist/Forms/ContactUs.js +90 -79
  37. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  38. package/dist/Forms/ContactUsAAS.js +170 -158
  39. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  40. package/dist/Forms/ContactUsBusiness.js +126 -114
  41. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  42. package/dist/Forms/ContactUsBusinessNameEmail.js +95 -83
  43. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  44. package/dist/Forms/ContactUsLVF.js +117 -101
  45. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  46. package/dist/Forms/ContactUsNMLSId.js +109 -97
  47. package/dist/Forms/CpraRequest.d.ts +1 -1
  48. package/dist/Forms/CpraRequest.js +630 -618
  49. package/dist/Forms/CraPublicFile.d.ts +1 -1
  50. package/dist/Forms/CraPublicFile.js +101 -89
  51. package/dist/Forms/DealerServices.d.ts +1 -1
  52. package/dist/Forms/DealerServices.js +215 -203
  53. package/dist/Forms/EmailOnly.d.ts +1 -1
  54. package/dist/Forms/EmailOnly.js +48 -36
  55. package/dist/Forms/EmailUs.d.ts +1 -1
  56. package/dist/Forms/EmailUs.js +65 -53
  57. package/dist/Forms/FormProps.d.ts +3 -0
  58. package/dist/Forms/Forms.css.d.ts +18 -0
  59. package/dist/Forms/Forms.css.js +44 -38
  60. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -1
  61. package/dist/Forms/HoneyPot/HoneyPot.css.js +2 -2
  62. package/dist/Forms/HoneyPot/index.d.ts +10 -11
  63. package/dist/Forms/HoneyPot/index.js +21 -24
  64. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  65. package/dist/Forms/MortgageRate/MortgageRateForm.js +369 -348
  66. package/dist/Forms/MortgageRate/MortgageRateWatch.js +2 -2
  67. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  68. package/dist/Forms/MortgageWarehouseLending.js +337 -0
  69. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  70. package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
  71. package/dist/Forms/SalesforceFieldsForm.d.ts +5 -0
  72. package/dist/Forms/SalesforceFieldsForm.js +11 -1
  73. package/dist/Forms/ScheduleCall.d.ts +1 -1
  74. package/dist/Forms/ScheduleCall.js +146 -134
  75. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  76. package/dist/Forms/ScheduleCallPremier.js +168 -156
  77. package/dist/Forms/SuccesForm.js +5 -5
  78. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  79. package/dist/Forms/VendorQuestionnaire.js +807 -795
  80. package/dist/Forms/WcplSurvey.d.ts +1 -1
  81. package/dist/Forms/WcplSurvey.js +102 -90
  82. package/dist/Forms/applynow-utils.d.ts +1 -0
  83. package/dist/Forms/applynow-utils.js +48 -0
  84. package/dist/Forms/index.d.ts +2 -0
  85. package/dist/Forms/index.js +8 -2
  86. package/dist/HeroBanner/HeroBanner.js +38 -1
  87. package/dist/Hyperlink/index.js +2 -2
  88. package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
  89. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
  90. package/dist/ImageLink/ImageLink.js +2 -2
  91. package/dist/ImageLink/ImageLinkSet.js +2 -2
  92. package/dist/ImageLink/index.js +2 -2
  93. package/dist/Insight/Featured/CategorySelector.js +2 -2
  94. package/dist/Insight/Featured/Featured.js +2 -2
  95. package/dist/Insight/Featured/Header.js +2 -2
  96. package/dist/Modal/Modal.js +2 -2
  97. package/dist/NavigationMenu/AxosALTS/NavData.js +2 -2
  98. package/dist/NavigationMenu/AxosALTS/index.js +2 -2
  99. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +14 -6
  100. package/dist/NavigationMenu/AxosBank/NavData.js +2 -2
  101. package/dist/NavigationMenu/AxosBank/SubNavBar.js +15 -7
  102. package/dist/NavigationMenu/AxosBank/index.js +2 -2
  103. package/dist/NavigationMenu/LaVictoire/NavData.js +2 -2
  104. package/dist/NavigationMenu/LaVictoire/index.js +2 -2
  105. package/dist/NavigationMenu/NavDataJson.js +2 -2
  106. package/dist/NavigationMenu/Navbar.js +2 -2
  107. package/dist/NavigationMenu/SignInNavButton.js +2 -2
  108. package/dist/SetContainer/SetContainer.js +2 -2
  109. package/dist/SocialMediaBar/iconsRepository.js +2 -2
  110. package/dist/VideoTile/VideoTile.js +2 -2
  111. package/dist/VideoWrapper/index.js +2 -2
  112. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
  113. package/dist/assets/Forms/Forms.css +135 -105
  114. package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
  115. package/dist/main.js +11 -3
  116. package/dist/utils/allowedAxosDomains.js +2 -1
  117. package/package.json +1 -1
@@ -46,6 +46,7 @@ const ApplicationStart = ({
46
46
  description,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  id
50
51
  }) => {
51
52
  const schema = z.object({
@@ -119,96 +120,107 @@ const ApplicationStart = ({
119
120
  }
120
121
  )
121
122
  ] }),
122
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
123
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
124
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
125
- Input,
126
- {
127
- id: "first_name",
128
- ...register("first_name", { required: true }),
129
- label: "First Name",
130
- sizes: "medium",
131
- placeholder: "First Name",
132
- required: true,
133
- error: !!errors.first_name,
134
- helperText: errors.first_name?.message,
135
- variant
136
- }
137
- ) }),
138
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
139
- Input,
140
- {
141
- id: "last_name",
142
- ...register("last_name", { required: true }),
143
- label: "Last Name",
144
- sizes: "medium",
145
- placeholder: "Last Name",
146
- required: true,
147
- error: !!errors.last_name,
148
- helperText: errors.last_name?.message,
149
- variant
150
- }
151
- ) }),
152
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
153
- Input,
154
- {
155
- id: "email",
156
- ...register("email", {
157
- required: true,
158
- validate: {
159
- 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
160
146
  }
161
- }),
162
- label: "Email",
163
- sizes: "medium",
164
- placeholder: "Email",
165
- required: true,
166
- error: !!errors.email,
167
- helperText: errors.email?.message,
168
- variant
169
- }
170
- ) }),
171
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
172
- InputPhone,
173
- {
174
- id: "phone",
175
- ...register("phone", { required: true, maxLength: 12 }),
176
- label: "Phone",
177
- sizes: "medium",
178
- placeholder: "Phone",
179
- required: true,
180
- error: !!errors.phone,
181
- helperText: errors.phone?.message,
182
- variant
183
- }
184
- ) }),
185
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
186
- Checkbox,
187
- {
188
- id: "checkbox__c",
189
- ...register("checkbox__c"),
190
- sizes: "medium",
191
- error: !!errors.checkbox__c,
192
- helperText: errors.checkbox__c?.message,
193
- variant,
194
- 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."
195
- }
196
- ) }),
197
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
198
- ] }),
199
- children,
200
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
201
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
202
- Button,
203
- {
204
- color: getVariant(callToAction?.variant),
205
- as: "button",
206
- type: "submit",
207
- disabled: !isValid || isSubmitting,
208
- children: callToAction?.displayText
209
- }
210
- ) })
211
- ] })
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, 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
+ )
212
224
  ] }) }) }, id);
213
225
  };
214
226
  export {
@@ -1,6 +1,6 @@
1
1
  import { FormProps } from './FormProps';
2
2
 
3
- export declare const ApplyNow: ({ icon, children, disclosure, variant: fullVariant, headline, description, id, gbf, }: Omit<FormProps & {
3
+ export declare const ApplyNow: ({ icon, children, disclosure, variant: fullVariant, headline, description, id, gbf, project, }: Omit<FormProps & {
4
4
  gbf?: boolean;
5
+ project?: string;
5
6
  }, "callToAction" | "validateEmail" | "onSubmit">) => import("react/jsx-runtime").JSX.Element;
6
- export declare const getLink: (selection: Array<string>) => string;