@axos-web-dev/shared-components 1.0.99-dev-2 → 1.0.99-dev-5

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 (255) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -1
  2. package/dist/Accordion/Accordion.css.d.ts +1 -1
  3. package/dist/Accordion/Accordion.css.js +1 -1
  4. package/dist/Accordion/Accordion.js +2 -2
  5. package/dist/AlertBanner/AlertBanner.css.js +1 -1
  6. package/dist/AlertBanner/index.js +1 -1
  7. package/dist/Article/Article.css.d.ts +41 -41
  8. package/dist/Article/Article.css.js +1 -1
  9. package/dist/ArticlesSet/ArticlesSet.css.d.ts +16 -16
  10. package/dist/ArticlesSet/ArticlesSet.css.js +1 -1
  11. package/dist/Auth/ErrorAlert.css.js +1 -1
  12. package/dist/Auth/ErrorAlert.js +2 -2
  13. package/dist/Auth/Logout.js +1 -1
  14. package/dist/Auth/SignIn.css.js +1 -1
  15. package/dist/Auth/SignInPassword.js +1 -1
  16. package/dist/Avatar/Avatar.module.js +1 -1
  17. package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
  18. package/dist/AwardsItem/AwardsItem.css.js +1 -1
  19. package/dist/Blockquote/Blockquote.module.js +1 -1
  20. package/dist/BulletItem/BulletItem.css.js +1 -1
  21. package/dist/BulletItem/BulletItem.js +1 -1
  22. package/dist/Button/Button.css.d.ts +18 -18
  23. package/dist/Button/Button.css.js +1 -1
  24. package/dist/Button/Button.js +1 -1
  25. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
  26. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +1 -1
  27. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +14 -14
  28. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +1 -1
  29. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +8 -8
  30. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +1 -1
  31. package/dist/Calculators/AxosOneCalculator/index.js +2 -2
  32. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +22 -22
  33. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +1 -1
  34. package/dist/Calculators/BalanceAPYCalculator/index.js +2 -2
  35. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +18 -18
  36. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +1 -1
  37. package/dist/Calculators/BuyDownCalculator/index.js +3 -3
  38. package/dist/Calculators/Calculator.js +1 -1
  39. package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
  40. package/dist/Calculators/MarginTradingCalculator/index.js +2 -2
  41. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
  42. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +1 -1
  43. package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
  44. package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +1 -1
  45. package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
  46. package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +1 -1
  47. package/dist/Calculators/SummitApyCalculator/index.js +2 -2
  48. package/dist/Calculators/calculator.css.d.ts +12 -12
  49. package/dist/Calculators/calculator.css.js +1 -1
  50. package/dist/CallToActionBar/CallToActionBar.css.js +1 -1
  51. package/dist/CallToActionBar/index.js +1 -1
  52. package/dist/Carousel/Carousel.css.d.ts +20 -20
  53. package/dist/Carousel/Carousel.css.js +1 -1
  54. package/dist/Carousel/index.js +2 -2
  55. package/dist/Chevron/Chevron.css.d.ts +6 -6
  56. package/dist/Chevron/Chevron.css.js +1 -1
  57. package/dist/Chevron/index.js +2 -2
  58. package/dist/CollectInformationAlert/CollectInformationAlert.css.js +1 -1
  59. package/dist/CollectInformationAlert/index.js +1 -1
  60. package/dist/Comparison/Comparison.css.d.ts +10 -10
  61. package/dist/Comparison/Comparison.css.js +1 -1
  62. package/dist/Comparison/Comparison.js +2 -2
  63. package/dist/Comparison/ComparisonSet.js +1 -1
  64. package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
  65. package/dist/ContentBanner/ContentBanner.css.js +1 -1
  66. package/dist/DownloadTile/DownloadTile.css.js +1 -1
  67. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +31 -31
  68. package/dist/ExecutiveBio/ExecutiveBio.css.js +1 -1
  69. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  70. package/dist/FaqAccordion/FaqAccordion.css.js +1 -1
  71. package/dist/FaqAccordion/index.js +2 -2
  72. package/dist/FdicCallout/FdicCallout.module.js +1 -1
  73. package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
  74. package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +1 -1
  75. package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +2 -2
  76. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +1 -1
  77. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  78. package/dist/Forms/ApplicationStart.d.ts +1 -1
  79. package/dist/Forms/ApplicationStart.js +103 -91
  80. package/dist/Forms/ApplyNow.js +2 -2
  81. package/dist/Forms/ClearingForm.d.ts +1 -1
  82. package/dist/Forms/ClearingForm.js +176 -164
  83. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  84. package/dist/Forms/CommercialDeposits.js +193 -181
  85. package/dist/Forms/CommercialLending.d.ts +1 -1
  86. package/dist/Forms/CommercialLending.js +270 -258
  87. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  88. package/dist/Forms/CommercialPremiumFinance.js +108 -96
  89. package/dist/Forms/ContactCompany.d.ts +1 -1
  90. package/dist/Forms/ContactCompany.js +105 -93
  91. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  92. package/dist/Forms/ContactCompanyTitle.js +119 -107
  93. package/dist/Forms/ContactUs.js +4 -3
  94. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  95. package/dist/Forms/ContactUsAAS.js +172 -160
  96. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  97. package/dist/Forms/ContactUsBusiness.js +126 -114
  98. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  99. package/dist/Forms/ContactUsBusinessNameEmail.js +95 -83
  100. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  101. package/dist/Forms/ContactUsLVF.js +112 -100
  102. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  103. package/dist/Forms/ContactUsNMLSId.js +109 -97
  104. package/dist/Forms/CpraRequest.d.ts +1 -1
  105. package/dist/Forms/CpraRequest.js +632 -620
  106. package/dist/Forms/CraPublicFile.d.ts +1 -1
  107. package/dist/Forms/CraPublicFile.js +101 -89
  108. package/dist/Forms/DealerServices.d.ts +1 -1
  109. package/dist/Forms/DealerServices.js +217 -205
  110. package/dist/Forms/EmailOnly.d.ts +1 -1
  111. package/dist/Forms/EmailOnly.js +48 -36
  112. package/dist/Forms/EmailUs.d.ts +1 -1
  113. package/dist/Forms/EmailUs.js +67 -55
  114. package/dist/Forms/Forms.css.d.ts +42 -42
  115. package/dist/Forms/Forms.css.js +1 -1
  116. package/dist/Forms/HoneyPot/HoneyPot.css.js +1 -1
  117. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  118. package/dist/Forms/MortgageRate/MortgageRateForm.js +365 -345
  119. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +1 -1
  120. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  121. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  122. package/dist/Forms/QuickPricer/QuickPricerForm.js +611 -599
  123. package/dist/Forms/QuickPricer/QuickPricerResults.css.js +1 -1
  124. package/dist/Forms/QuickPricer/UserInformation.css.js +1 -1
  125. package/dist/Forms/ScheduleCall.d.ts +1 -1
  126. package/dist/Forms/ScheduleCall.js +148 -136
  127. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  128. package/dist/Forms/ScheduleCallPremier.js +170 -158
  129. package/dist/Forms/SuccesForm.js +2 -2
  130. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  131. package/dist/Forms/VendorQuestionnaire.js +808 -796
  132. package/dist/Forms/WcplSurvey.d.ts +1 -1
  133. package/dist/Forms/WcplSurvey.js +104 -92
  134. package/dist/HelpArticle/HelpArticle.css.js +1 -1
  135. package/dist/HeroBanner/HeroBanner.css.d.ts +16 -16
  136. package/dist/HeroBanner/HeroBanner.css.js +1 -1
  137. package/dist/HeroBanner/HeroBanner.js +2 -2
  138. package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
  139. package/dist/HeroBanner/LargeBanner.css.js +1 -1
  140. package/dist/HeroBanner/SelectionBanner.css.d.ts +8 -8
  141. package/dist/HeroBanner/SelectionBanner.css.js +1 -1
  142. package/dist/Hyperlink/Hyperlink.css.js +1 -1
  143. package/dist/Hyperlink/index.js +1 -1
  144. package/dist/IconBillboard/IconBillboard.css.d.ts +24 -24
  145. package/dist/IconBillboard/IconBillboard.css.js +1 -1
  146. package/dist/IconBillboard/IconBillboard.js +1 -1
  147. package/dist/ImageBillboard/ImageBillboard.css.d.ts +20 -20
  148. package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
  149. package/dist/ImageBillboard/ImageBillboard.js +1 -1
  150. package/dist/ImageBillboard/ImageBillboardSet.js +2 -2
  151. package/dist/ImageLink/ImageLink.css.js +1 -1
  152. package/dist/ImageLink/ImageLink.js +1 -1
  153. package/dist/ImageLink/ImageLinkSet.js +1 -1
  154. package/dist/ImageLink/index.js +1 -1
  155. package/dist/Input/Checkbox.css.js +1 -1
  156. package/dist/Input/Dropdown.css.js +1 -1
  157. package/dist/Input/Input.css.d.ts +16 -16
  158. package/dist/Input/Input.css.js +1 -1
  159. package/dist/Input/RadioButton.css.js +1 -1
  160. package/dist/Inputs/Input.css.d.ts +14 -14
  161. package/dist/Inputs/Input.css.js +1 -1
  162. package/dist/Insight/Featured/CategorySelector.css.js +1 -1
  163. package/dist/Insight/Featured/CategorySelector.js +3 -3
  164. package/dist/Insight/Featured/Featured.css.js +1 -1
  165. package/dist/Insight/Featured/Featured.js +2 -2
  166. package/dist/Insight/Featured/Header.css.js +1 -1
  167. package/dist/Insight/Featured/Header.js +2 -2
  168. package/dist/Insight/Insight.css.js +1 -1
  169. package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
  170. package/dist/Interstitial/Interstitial-variants.css.js +1 -1
  171. package/dist/Interstitial/Interstitial.module.js +1 -1
  172. package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
  173. package/dist/LandingPageHeader/LandingPageHeader.css.js +1 -1
  174. package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
  175. package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
  176. package/dist/Modal/Modal.css.js +1 -1
  177. package/dist/Modal/Modal.js +1 -1
  178. package/dist/Modal/contextApi/store.js +1 -1
  179. package/dist/NavigationMenu/AxosALTS/NavBar.css.js +1 -1
  180. package/dist/NavigationMenu/AxosALTS/NavBar.module.js +1 -1
  181. package/dist/NavigationMenu/AxosALTS/NavData.js +1 -1
  182. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  183. package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +1 -1
  184. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +1 -1
  185. package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +1 -1
  186. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +1 -1
  187. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +1 -1
  188. package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +1 -1
  189. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +1 -1
  190. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +1 -1
  191. package/dist/NavigationMenu/AxosBank/NavBar.css.js +1 -1
  192. package/dist/NavigationMenu/AxosBank/NavBar.module.js +1 -1
  193. package/dist/NavigationMenu/AxosBank/NavData.js +1 -1
  194. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
  195. package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +1 -1
  196. package/dist/NavigationMenu/AxosBank/index.js +1 -1
  197. package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
  198. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +1 -1
  199. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +1 -1
  200. package/dist/NavigationMenu/LaVictoire/NavBar.css.js +1 -1
  201. package/dist/NavigationMenu/LaVictoire/NavBar.module.js +1 -1
  202. package/dist/NavigationMenu/LaVictoire/NavData.js +1 -1
  203. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  204. package/dist/NavigationMenu/NavDataJson.js +1 -1
  205. package/dist/NavigationMenu/Navbar.js +1 -1
  206. package/dist/NavigationMenu/SignInNavButton.js +1 -1
  207. package/dist/PageNavItem/PageNavItem.css.d.ts +2 -2
  208. package/dist/PageNavItem/PageNavItem.css.js +1 -1
  209. package/dist/PageNavSet/PageNavSet.js +1 -1
  210. package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
  211. package/dist/Pagination/Pagination.css.js +1 -1
  212. package/dist/Pagination/Pagination.js +2 -2
  213. package/dist/SecondaryFooter/SecondaryFooter.css.js +1 -1
  214. package/dist/SecondaryFooter/index.js +1 -1
  215. package/dist/SetContainer/SetContainer.css.d.ts +16 -16
  216. package/dist/SetContainer/SetContainer.css.js +1 -1
  217. package/dist/SetContainer/SetContainer.js +2 -2
  218. package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
  219. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  220. package/dist/StepItem/StepItem.css.d.ts +18 -18
  221. package/dist/StepItem/StepItem.css.js +1 -1
  222. package/dist/StepItemSet/StepItemSet.css.d.ts +14 -14
  223. package/dist/StepItemSet/StepItemSet.css.js +1 -1
  224. package/dist/Tab/Tab.css.d.ts +12 -12
  225. package/dist/Tab/Tab.css.js +1 -1
  226. package/dist/Table/Table.css.d.ts +25 -25
  227. package/dist/Table/Table.css.js +1 -1
  228. package/dist/Table/Table.js +2 -2
  229. package/dist/TextBlock/TextBlock.css.js +1 -1
  230. package/dist/TextBlock/TextBlock.js +1 -1
  231. package/dist/Topic/Topic.css.js +1 -1
  232. package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
  233. package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
  234. package/dist/Typography/Typography.css.js +1 -1
  235. package/dist/VideoTile/VideoTile.css.js +1 -1
  236. package/dist/VideoTile/VideoTile.js +1 -1
  237. package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
  238. package/dist/VideoWrapper/index.js +1 -1
  239. package/dist/WalnutIframe/wrapper.module.js +1 -1
  240. package/dist/globals.css.js +1 -1
  241. package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
  242. package/dist/icons/ArrowIcon/ArrowIcon.css.js +1 -1
  243. package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
  244. package/dist/icons/CheckIcon/CheckIcon.css.js +1 -1
  245. package/dist/icons/DownloadIcon/DownloadIcon.css.js +1 -1
  246. package/dist/icons/FollowIcon/FollowIcon.css.js +1 -1
  247. package/dist/icons/Star/Star.css.js +1 -1
  248. package/dist/index.css.js +1 -1
  249. package/dist/themes/axos.css.d.ts +38 -38
  250. package/dist/themes/axos.css.js +1 -1
  251. package/dist/themes/premier.css.js +1 -1
  252. package/dist/themes/victorie.css.js +1 -1
  253. package/dist/utils/allowedAxosDomains.js +2 -1
  254. package/dist/utils/optimizeImage/optimizeImage.module.js +1 -1
  255. package/package.json +133 -133
@@ -20,7 +20,7 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
20
20
  import SvgAxosX from "../icons/AxosX/index.js";
21
21
  import SvgComponent from "../icons/AxosX/Blue.js";
22
22
  import "../icons/CheckIcon/CheckIcon.css.js";
23
- import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
23
+ /* empty css */
24
24
  /* empty css */
25
25
  /* empty css */
26
26
  /* empty css */
@@ -31,7 +31,7 @@ import { getVariant } from "../utils/getVariant.js";
31
31
  import clsx from "clsx";
32
32
  import { useForm, FormProvider } from "react-hook-form";
33
33
  import * as z from "zod";
34
- import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
34
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
35
35
  import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
36
36
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
37
37
  const DealerServices = ({
@@ -46,6 +46,7 @@ const DealerServices = ({
46
46
  description,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  id
50
51
  }) => {
51
52
  const schema = z.object({
@@ -126,210 +127,221 @@ const DealerServices = ({
126
127
  }
127
128
  )
128
129
  ] }),
129
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
130
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
131
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
132
- Input,
133
- {
134
- id: "first_name",
135
- ...register("first_name", { required: true }),
136
- label: "First Name",
137
- sizes: "medium",
138
- placeholder: "First Name",
139
- required: true,
140
- error: !!errors.first_name,
141
- helperText: errors.first_name?.message,
142
- variant
143
- }
144
- ) }),
145
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
146
- Input,
147
- {
148
- id: "last_name",
149
- ...register("last_name", { required: true }),
150
- label: "Last Name",
151
- sizes: "medium",
152
- placeholder: "Last Name",
153
- required: true,
154
- error: !!errors.last_name,
155
- helperText: errors.last_name?.message,
156
- variant
157
- }
158
- ) }),
159
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
160
- Input,
161
- {
162
- id: "email",
163
- ...register("email", {
164
- required: true,
165
- validate: {
166
- isValid: async (val) => await associatedEmail(val) && await validateEmail(val)
130
+ /* @__PURE__ */ jsxs(
131
+ "form",
132
+ {
133
+ className: form,
134
+ onSubmit: async (e) => {
135
+ onValidate && onValidate(e);
136
+ await handleSubmit(submitForm)(e);
137
+ e.preventDefault();
138
+ },
139
+ children: [
140
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
141
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
142
+ Input,
143
+ {
144
+ id: "first_name",
145
+ ...register("first_name", { required: true }),
146
+ label: "First Name",
147
+ sizes: "medium",
148
+ placeholder: "First Name",
149
+ required: true,
150
+ error: !!errors.first_name,
151
+ helperText: errors.first_name?.message,
152
+ variant
167
153
  }
168
- }),
169
- label: "Email",
170
- sizes: "medium",
171
- placeholder: "Email",
172
- required: true,
173
- error: !!errors.email,
174
- helperText: errors.email?.message,
175
- variant
176
- }
177
- ) }),
178
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
179
- InputPhone,
180
- {
181
- id: "phone",
182
- ...register("phone", { required: true, maxLength: 12 }),
183
- label: "Phone",
184
- sizes: "medium",
185
- placeholder: "Phone",
186
- required: true,
187
- error: !!errors.phone,
188
- helperText: errors.phone?.message,
189
- variant
190
- }
191
- ) }),
192
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
193
- Input,
194
- {
195
- id: "title",
196
- ...register("title", { required: true }),
197
- label: "Title",
198
- sizes: "medium",
199
- placeholder: "Title",
200
- required: true,
201
- error: !!errors.title,
202
- helperText: errors.title?.message,
203
- variant
204
- }
205
- ) }),
206
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
207
- Input,
208
- {
209
- id: "company",
210
- ...register("company", { required: true }),
211
- label: "Company Name",
212
- sizes: "medium",
213
- placeholder: "Company Name",
214
- required: true,
215
- error: !!errors.company,
216
- helperText: errors.company?.message,
217
- variant
218
- }
219
- ) }),
220
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
221
- Dropdown,
222
- {
223
- id: "Dealer_Type__c",
224
- ...register("Dealer_Type__c", {
225
- required: true,
226
- maxLength: 12
227
- }),
228
- label: "Franchise or Independent",
229
- sizes: "medium",
230
- required: true,
231
- error: !!errors.Dealer_Type__c,
232
- helperText: errors.Dealer_Type__c?.message,
233
- variant,
234
- defaultValue: "Franchise",
235
- children: [
236
- /* @__PURE__ */ jsx("option", { value: "Franchise", children: "Franchise" }),
237
- /* @__PURE__ */ jsx("option", { value: "Independent", children: "Independent" })
238
- ]
239
- }
240
- ) }),
241
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
242
- Dropdown,
243
- {
244
- id: "Lead_Source_Detail_SFDC2__c2",
245
- ...register("Lead_Source_Detail_SFDC2__c2", {
246
- required: true,
247
- maxLength: 12
248
- }),
249
- label: "Dealer Services or Collector Car Program",
250
- sizes: "medium",
251
- required: true,
252
- error: !!errors.Lead_Source_Detail_SFDC2__c2,
253
- helperText: errors.Lead_Source_Detail_SFDC2__c2?.message,
254
- variant,
255
- defaultValue: "Dealer Services",
256
- children: [
257
- /* @__PURE__ */ jsx("option", { value: "Dealer Services", children: "Dealer Services" }),
258
- /* @__PURE__ */ jsx("option", { value: "Collector Car Program", children: "Collector Car Program" })
259
- ]
260
- }
261
- ) }),
262
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
263
- Input,
264
- {
265
- id: "city",
266
- ...register("city", { required: true }),
267
- label: "City",
268
- sizes: "medium",
269
- placeholder: "City",
270
- required: true,
271
- error: !!errors.city,
272
- helperText: errors.city?.message,
273
- variant
274
- }
275
- ) }),
276
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
277
- Input,
278
- {
279
- id: "state",
280
- ...register("state", { required: true }),
281
- label: "State",
282
- sizes: "medium",
283
- placeholder: "State",
284
- required: true,
285
- error: !!errors.state,
286
- helperText: errors.state?.message,
287
- variant
288
- }
289
- ) }),
290
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
291
- Input,
292
- {
293
- id: "zip",
294
- ...register("zip", { required: true }),
295
- label: "Zip Code",
296
- sizes: "medium",
297
- placeholder: "Zip Code",
298
- required: true,
299
- error: !!errors.zip,
300
- helperText: errors.zip?.message,
301
- variant
302
- }
303
- ) }),
304
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
305
- InputTextArea,
306
- {
307
- id: "description",
308
- ...register("description"),
309
- label: "Additional Details",
310
- sizes: "medium",
311
- placeholder: "Additional Details",
312
- error: !!errors.description,
313
- helperText: errors.description?.message,
314
- variant,
315
- rows: 1
316
- }
317
- ) }),
318
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
319
- ] }),
320
- children,
321
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
322
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
323
- Button,
324
- {
325
- color: getVariant(callToAction?.variant),
326
- as: "button",
327
- type: "submit",
328
- disabled: !isValid || isSubmitting,
329
- children: callToAction?.displayText
330
- }
331
- ) })
332
- ] })
154
+ ) }),
155
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
156
+ Input,
157
+ {
158
+ id: "last_name",
159
+ ...register("last_name", { required: true }),
160
+ label: "Last Name",
161
+ sizes: "medium",
162
+ placeholder: "Last Name",
163
+ required: true,
164
+ error: !!errors.last_name,
165
+ helperText: errors.last_name?.message,
166
+ variant
167
+ }
168
+ ) }),
169
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
170
+ Input,
171
+ {
172
+ id: "email",
173
+ ...register("email", {
174
+ required: true,
175
+ validate: {
176
+ isValid: async (val) => await associatedEmail(val) && await validateEmail(val)
177
+ }
178
+ }),
179
+ label: "Email",
180
+ sizes: "medium",
181
+ placeholder: "Email",
182
+ required: true,
183
+ error: !!errors.email,
184
+ helperText: errors.email?.message,
185
+ variant
186
+ }
187
+ ) }),
188
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
189
+ InputPhone,
190
+ {
191
+ id: "phone",
192
+ ...register("phone", { required: true, maxLength: 12 }),
193
+ label: "Phone",
194
+ sizes: "medium",
195
+ placeholder: "Phone",
196
+ required: true,
197
+ error: !!errors.phone,
198
+ helperText: errors.phone?.message,
199
+ variant
200
+ }
201
+ ) }),
202
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
203
+ Input,
204
+ {
205
+ id: "title",
206
+ ...register("title", { required: true }),
207
+ label: "Title",
208
+ sizes: "medium",
209
+ placeholder: "Title",
210
+ required: true,
211
+ error: !!errors.title,
212
+ helperText: errors.title?.message,
213
+ variant
214
+ }
215
+ ) }),
216
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
217
+ Input,
218
+ {
219
+ id: "company",
220
+ ...register("company", { required: true }),
221
+ label: "Company Name",
222
+ sizes: "medium",
223
+ placeholder: "Company Name",
224
+ required: true,
225
+ error: !!errors.company,
226
+ helperText: errors.company?.message,
227
+ variant
228
+ }
229
+ ) }),
230
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
231
+ Dropdown,
232
+ {
233
+ id: "Dealer_Type__c",
234
+ ...register("Dealer_Type__c", {
235
+ required: true,
236
+ maxLength: 12
237
+ }),
238
+ label: "Franchise or Independent",
239
+ sizes: "medium",
240
+ required: true,
241
+ error: !!errors.Dealer_Type__c,
242
+ helperText: errors.Dealer_Type__c?.message,
243
+ variant,
244
+ defaultValue: "Franchise",
245
+ children: [
246
+ /* @__PURE__ */ jsx("option", { value: "Franchise", children: "Franchise" }),
247
+ /* @__PURE__ */ jsx("option", { value: "Independent", children: "Independent" })
248
+ ]
249
+ }
250
+ ) }),
251
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
252
+ Dropdown,
253
+ {
254
+ id: "Lead_Source_Detail_SFDC2__c2",
255
+ ...register("Lead_Source_Detail_SFDC2__c2", {
256
+ required: true,
257
+ maxLength: 12
258
+ }),
259
+ label: "Dealer Services or Collector Car Program",
260
+ sizes: "medium",
261
+ required: true,
262
+ error: !!errors.Lead_Source_Detail_SFDC2__c2,
263
+ helperText: errors.Lead_Source_Detail_SFDC2__c2?.message,
264
+ variant,
265
+ defaultValue: "Dealer Services",
266
+ children: [
267
+ /* @__PURE__ */ jsx("option", { value: "Dealer Services", children: "Dealer Services" }),
268
+ /* @__PURE__ */ jsx("option", { value: "Collector Car Program", children: "Collector Car Program" })
269
+ ]
270
+ }
271
+ ) }),
272
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
273
+ Input,
274
+ {
275
+ id: "city",
276
+ ...register("city", { required: true }),
277
+ label: "City",
278
+ sizes: "medium",
279
+ placeholder: "City",
280
+ required: true,
281
+ error: !!errors.city,
282
+ helperText: errors.city?.message,
283
+ variant
284
+ }
285
+ ) }),
286
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
287
+ Input,
288
+ {
289
+ id: "state",
290
+ ...register("state", { required: true }),
291
+ label: "State",
292
+ sizes: "medium",
293
+ placeholder: "State",
294
+ required: true,
295
+ error: !!errors.state,
296
+ helperText: errors.state?.message,
297
+ variant
298
+ }
299
+ ) }),
300
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
301
+ Input,
302
+ {
303
+ id: "zip",
304
+ ...register("zip", { required: true }),
305
+ label: "Zip Code",
306
+ sizes: "medium",
307
+ placeholder: "Zip Code",
308
+ required: true,
309
+ error: !!errors.zip,
310
+ helperText: errors.zip?.message,
311
+ variant
312
+ }
313
+ ) }),
314
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
315
+ InputTextArea,
316
+ {
317
+ id: "description",
318
+ ...register("description"),
319
+ label: "Additional Details",
320
+ sizes: "medium",
321
+ placeholder: "Additional Details",
322
+ error: !!errors.description,
323
+ helperText: errors.description?.message,
324
+ variant,
325
+ rows: 1
326
+ }
327
+ ) }),
328
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
329
+ ] }),
330
+ children,
331
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
332
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
333
+ Button,
334
+ {
335
+ color: getVariant(callToAction?.variant),
336
+ as: "button",
337
+ type: "submit",
338
+ disabled: !isValid || isSubmitting,
339
+ children: callToAction?.displayText
340
+ }
341
+ ) })
342
+ ]
343
+ }
344
+ )
333
345
  ] }) }) }, id);
334
346
  };
335
347
  export {
@@ -3,4 +3,4 @@ import { FormProps } from './FormProps';
3
3
  export type EmailOnlyInputs = {
4
4
  email: string;
5
5
  };
6
- export declare const EmailOnly: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const EmailOnly: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -16,7 +16,7 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
16
16
  import SvgAxosX from "../icons/AxosX/index.js";
17
17
  import SvgComponent from "../icons/AxosX/Blue.js";
18
18
  import "../icons/CheckIcon/CheckIcon.css.js";
19
- import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar.css';import '../assets/NavigationMenu/AxosALTS/NavBar.css';import '../assets/NavigationMenu/AxosClearing/NavBar.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/AxosBank/NavBar.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar.css';import '../assets/Insight/Insight.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Modal/Modal.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
19
+ /* empty css */
20
20
  /* empty css */
21
21
  /* empty css */
22
22
  /* empty css */
@@ -44,7 +44,7 @@ import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
44
44
  import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
45
45
  import { useForm, FormProvider } from "react-hook-form";
46
46
  import { z } from "zod";
47
- import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
47
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
48
48
  import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
49
49
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
50
50
  /* empty css */
@@ -140,6 +140,7 @@ const EmailOnly = ({
140
140
  description,
141
141
  callToAction,
142
142
  validateEmail,
143
+ onValidate,
143
144
  id
144
145
  }) => {
145
146
  const schema = z.object({
@@ -188,41 +189,52 @@ const EmailOnly = ({
188
189
  }
189
190
  )
190
191
  ] }),
191
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
192
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant, formType })), children: [
193
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
194
- Input,
195
- {
196
- id: "email",
197
- ...register("email", {
198
- required: true,
199
- validate: {
200
- isValid: associatedEmail
192
+ /* @__PURE__ */ jsxs(
193
+ "form",
194
+ {
195
+ className: form,
196
+ onSubmit: async (e) => {
197
+ onValidate && onValidate(e);
198
+ await handleSubmit(submitForm)(e);
199
+ e.preventDefault();
200
+ },
201
+ children: [
202
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant, formType })), children: [
203
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
204
+ Input,
205
+ {
206
+ id: "email",
207
+ ...register("email", {
208
+ required: true,
209
+ validate: {
210
+ isValid: associatedEmail
211
+ }
212
+ }),
213
+ sizes: "medium",
214
+ placeholder: "Enter Email",
215
+ required: true,
216
+ error: !!errors.email,
217
+ helperText: errors.email?.message,
218
+ variant
201
219
  }
202
- }),
203
- sizes: "medium",
204
- placeholder: "Enter Email",
205
- required: true,
206
- error: !!errors.email,
207
- helperText: errors.email?.message,
208
- variant
209
- }
210
- ) }),
211
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
212
- ] }),
213
- children,
214
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
215
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
216
- Button,
217
- {
218
- color: getVariant(callToAction?.variant),
219
- as: "button",
220
- type: "submit",
221
- disabled: !isValid || isSubmitting,
222
- children: callToAction?.displayText
223
- }
224
- ) })
225
- ] })
220
+ ) }),
221
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
222
+ ] }),
223
+ children,
224
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
225
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
226
+ Button,
227
+ {
228
+ color: getVariant(callToAction?.variant),
229
+ as: "button",
230
+ type: "submit",
231
+ disabled: !isValid || isSubmitting,
232
+ children: callToAction?.displayText
233
+ }
234
+ ) })
235
+ ]
236
+ }
237
+ )
226
238
  ] }) }) }, id);
227
239
  };
228
240
  export {
@@ -4,4 +4,4 @@ export type EmailUsInputs = {
4
4
  email: string;
5
5
  message: string;
6
6
  };
7
- export declare const EmailUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const EmailUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;