@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
@@ -9,7 +9,7 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
9
9
  import SvgAxosX from "../icons/AxosX/index.js";
10
10
  import SvgComponent from "../icons/AxosX/Blue.js";
11
11
  import "../icons/CheckIcon/CheckIcon.css.js";
12
- 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 */
12
+ /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
@@ -32,7 +32,7 @@ import { getVariant } from "../utils/getVariant.js";
32
32
  import clsx from "clsx";
33
33
  import { useForm, FormProvider } from "react-hook-form";
34
34
  import { z } from "zod";
35
- import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
35
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
36
36
  import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
37
37
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
38
38
  const CommercialPremiumFinance = ({
@@ -46,6 +46,7 @@ const CommercialPremiumFinance = ({
46
46
  headline,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  description,
50
51
  id
51
52
  }) => {
@@ -110,101 +111,112 @@ const CommercialPremiumFinance = ({
110
111
  }
111
112
  )
112
113
  ] }),
113
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
114
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
115
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
116
- Input,
117
- {
118
- id: "first_name",
119
- ...register("first_name", { required: true }),
120
- label: "First Name",
121
- sizes: "medium",
122
- required: true,
123
- error: !!errors.first_name,
124
- helperText: errors.first_name?.message,
125
- variant
126
- }
127
- ) }),
128
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
129
- Input,
130
- {
131
- id: "last_name",
132
- ...register("last_name", { required: true }),
133
- label: "Last Name",
134
- sizes: "medium",
135
- required: true,
136
- error: !!errors.last_name,
137
- helperText: errors.last_name?.message,
138
- variant
139
- }
140
- ) }),
141
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
142
- Input,
143
- {
144
- id: "email",
145
- ...register("email", {
146
- required: true,
147
- validate: {
148
- isValid: associatedEmail
114
+ /* @__PURE__ */ jsxs(
115
+ "form",
116
+ {
117
+ className: form,
118
+ onSubmit: async (e) => {
119
+ onValidate && onValidate(e);
120
+ await handleSubmit(submitForm)(e);
121
+ e.preventDefault();
122
+ },
123
+ children: [
124
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
125
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
126
+ Input,
127
+ {
128
+ id: "first_name",
129
+ ...register("first_name", { required: true }),
130
+ label: "First Name",
131
+ sizes: "medium",
132
+ required: true,
133
+ error: !!errors.first_name,
134
+ helperText: errors.first_name?.message,
135
+ variant
149
136
  }
150
- }),
151
- label: "Email",
152
- sizes: "medium",
153
- required: true,
154
- error: !!errors.email,
155
- helperText: errors.email?.message,
156
- variant
157
- }
158
- ) }),
159
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
160
- Input,
161
- {
162
- id: "Insurance_Company__c",
163
- ...register("Insurance_Company__c", {}),
164
- label: "Insurance Company",
165
- sizes: "medium",
166
- error: !!errors.Insurance_Company__c,
167
- helperText: errors.Insurance_Company__c?.message,
168
- variant
169
- }
170
- ) }),
171
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
172
- Dropdown,
173
- {
174
- id: "Type_of_Policy__c",
175
- ...register("Type_of_Policy__c", {}),
176
- label: "Type of Policy",
177
- sizes: "medium",
178
- variant,
179
- defaultValue: "",
180
- children: [
181
- /* @__PURE__ */ jsx("option", { value: "" }),
182
- /* @__PURE__ */ jsx("option", { value: "Whole life", children: "Whole life" }),
183
- /* @__PURE__ */ jsx("option", { value: "Index Universal Life", children: "Index Universal Life" })
184
- ]
185
- }
186
- ) }),
187
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
188
- ] }),
189
- children,
190
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
191
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
192
- LoadingIndicator,
193
- {
194
- style: { marginInline: "auto" },
195
- variant
196
- }
197
- ) : /* @__PURE__ */ jsx(
198
- Button,
199
- {
200
- color: getVariant(callToAction?.variant),
201
- as: "button",
202
- type: "submit",
203
- disabled: !isValid || isSubmitting,
204
- children: callToAction?.displayText
205
- }
206
- ) })
207
- ] })
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
+ required: true,
146
+ error: !!errors.last_name,
147
+ helperText: errors.last_name?.message,
148
+ variant
149
+ }
150
+ ) }),
151
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
152
+ Input,
153
+ {
154
+ id: "email",
155
+ ...register("email", {
156
+ required: true,
157
+ validate: {
158
+ isValid: associatedEmail
159
+ }
160
+ }),
161
+ label: "Email",
162
+ sizes: "medium",
163
+ required: true,
164
+ error: !!errors.email,
165
+ helperText: errors.email?.message,
166
+ variant
167
+ }
168
+ ) }),
169
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
170
+ Input,
171
+ {
172
+ id: "Insurance_Company__c",
173
+ ...register("Insurance_Company__c", {}),
174
+ label: "Insurance Company",
175
+ sizes: "medium",
176
+ error: !!errors.Insurance_Company__c,
177
+ helperText: errors.Insurance_Company__c?.message,
178
+ variant
179
+ }
180
+ ) }),
181
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
182
+ Dropdown,
183
+ {
184
+ id: "Type_of_Policy__c",
185
+ ...register("Type_of_Policy__c", {}),
186
+ label: "Type of Policy",
187
+ sizes: "medium",
188
+ variant,
189
+ defaultValue: "",
190
+ children: [
191
+ /* @__PURE__ */ jsx("option", { value: "" }),
192
+ /* @__PURE__ */ jsx("option", { value: "Whole life", children: "Whole life" }),
193
+ /* @__PURE__ */ jsx("option", { value: "Index Universal Life", children: "Index Universal Life" })
194
+ ]
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: isSubmitting ? /* @__PURE__ */ jsx(
202
+ LoadingIndicator,
203
+ {
204
+ style: { marginInline: "auto" },
205
+ variant
206
+ }
207
+ ) : /* @__PURE__ */ jsx(
208
+ Button,
209
+ {
210
+ color: getVariant(callToAction?.variant),
211
+ as: "button",
212
+ type: "submit",
213
+ disabled: !isValid || isSubmitting,
214
+ children: callToAction?.displayText
215
+ }
216
+ ) })
217
+ ]
218
+ }
219
+ )
208
220
  ] }) }) }, id);
209
221
  };
210
222
  export {
@@ -7,4 +7,4 @@ export type ContactCompanyInputs = {
7
7
  phone: string;
8
8
  company: string;
9
9
  };
10
- export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -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, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
34
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, fullRowForm, 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 ContactCompany = ({
@@ -46,6 +46,7 @@ const ContactCompany = ({
46
46
  description,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  id
50
51
  }) => {
51
52
  const schema = z.object({
@@ -114,98 +115,109 @@ const ContactCompany = ({
114
115
  }
115
116
  )
116
117
  ] }),
117
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
118
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
119
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
120
- Input,
121
- {
122
- id: "first_name",
123
- ...register("first_name", { required: true }),
124
- label: "First Name",
125
- sizes: "medium",
126
- placeholder: "First Name",
127
- required: true,
128
- error: !!errors.first_name,
129
- helperText: errors.first_name?.message,
130
- variant
131
- }
132
- ) }),
133
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
134
- Input,
135
- {
136
- id: "last_name",
137
- ...register("last_name", { required: true }),
138
- label: "Last Name",
139
- sizes: "medium",
140
- placeholder: "Last Name",
141
- required: true,
142
- error: !!errors.last_name,
143
- helperText: errors.last_name?.message,
144
- variant
145
- }
146
- ) }),
147
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
148
- Input,
149
- {
150
- id: "email",
151
- ...register("email", {
152
- required: true,
153
- validate: {
154
- isValid: associatedEmail
118
+ /* @__PURE__ */ jsxs(
119
+ "form",
120
+ {
121
+ className: form,
122
+ onSubmit: async (e) => {
123
+ onValidate && onValidate(e);
124
+ await handleSubmit(submitForm)(e);
125
+ e.preventDefault();
126
+ },
127
+ children: [
128
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
129
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
130
+ Input,
131
+ {
132
+ id: "first_name",
133
+ ...register("first_name", { required: true }),
134
+ label: "First Name",
135
+ sizes: "medium",
136
+ placeholder: "First Name",
137
+ required: true,
138
+ error: !!errors.first_name,
139
+ helperText: errors.first_name?.message,
140
+ variant
155
141
  }
156
- }),
157
- label: "Email",
158
- sizes: "medium",
159
- placeholder: "Email",
160
- required: true,
161
- error: !!errors.email,
162
- helperText: errors.email?.message,
163
- variant
164
- }
165
- ) }),
166
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
167
- InputPhone,
168
- {
169
- id: "phone",
170
- ...register("phone", { required: true, maxLength: 12 }),
171
- label: "Phone",
172
- sizes: "medium",
173
- placeholder: "Phone",
174
- required: true,
175
- error: !!errors.phone,
176
- helperText: errors.phone?.message,
177
- variant
178
- }
179
- ) }),
180
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
181
- Input,
182
- {
183
- id: "company",
184
- ...register("company", { required: true }),
185
- label: "Company",
186
- sizes: "medium",
187
- placeholder: "Company",
188
- required: true,
189
- error: !!errors.company,
190
- helperText: errors.company?.message,
191
- variant
192
- }
193
- ) }),
194
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
195
- ] }),
196
- children,
197
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
198
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
199
- Button,
200
- {
201
- color: getVariant(callToAction?.variant),
202
- as: "button",
203
- type: "submit",
204
- disabled: !isValid || isSubmitting,
205
- children: callToAction?.displayText
206
- }
207
- ) })
208
- ] })
142
+ ) }),
143
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
144
+ Input,
145
+ {
146
+ id: "last_name",
147
+ ...register("last_name", { required: true }),
148
+ label: "Last Name",
149
+ sizes: "medium",
150
+ placeholder: "Last Name",
151
+ required: true,
152
+ error: !!errors.last_name,
153
+ helperText: errors.last_name?.message,
154
+ variant
155
+ }
156
+ ) }),
157
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
158
+ Input,
159
+ {
160
+ id: "email",
161
+ ...register("email", {
162
+ required: true,
163
+ validate: {
164
+ isValid: associatedEmail
165
+ }
166
+ }),
167
+ label: "Email",
168
+ sizes: "medium",
169
+ placeholder: "Email",
170
+ required: true,
171
+ error: !!errors.email,
172
+ helperText: errors.email?.message,
173
+ variant
174
+ }
175
+ ) }),
176
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
177
+ InputPhone,
178
+ {
179
+ id: "phone",
180
+ ...register("phone", { required: true, maxLength: 12 }),
181
+ label: "Phone",
182
+ sizes: "medium",
183
+ placeholder: "Phone",
184
+ required: true,
185
+ error: !!errors.phone,
186
+ helperText: errors.phone?.message,
187
+ variant
188
+ }
189
+ ) }),
190
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
191
+ Input,
192
+ {
193
+ id: "company",
194
+ ...register("company", { required: true }),
195
+ label: "Company",
196
+ sizes: "medium",
197
+ placeholder: "Company",
198
+ required: true,
199
+ error: !!errors.company,
200
+ helperText: errors.company?.message,
201
+ variant
202
+ }
203
+ ) }),
204
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
205
+ ] }),
206
+ children,
207
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
208
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
209
+ Button,
210
+ {
211
+ color: getVariant(callToAction?.variant),
212
+ as: "button",
213
+ type: "submit",
214
+ disabled: !isValid || isSubmitting,
215
+ children: callToAction?.displayText
216
+ }
217
+ ) })
218
+ ]
219
+ }
220
+ )
209
221
  ] }) }) }, id);
210
222
  };
211
223
  export {
@@ -8,4 +8,4 @@ export type ContactCompanyTitleInputs = {
8
8
  company: string;
9
9
  title: string;
10
10
  };
11
- export declare const ContactCompanyTitle: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ContactCompanyTitle: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;