@axos-web-dev/shared-components 0.0.117 → 0.0.119

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 (120) hide show
  1. package/dist/ATMLocator/ATMLocator.js +3 -2
  2. package/dist/ArticlesSet/ArticlesSet.js +1 -1
  3. package/dist/Button/Button.js +3 -2
  4. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +16 -1
  5. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +8 -8
  6. package/dist/Calculators/AnnualFeeCalculator/index.js +7 -4
  7. package/dist/Calculators/Calculator.js +1 -0
  8. package/dist/Calculators/MarginTradingCalculator/index.js +29 -7
  9. package/dist/Calculators/MaxLoanCalculator/index.js +3 -1
  10. package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -1
  11. package/dist/Calculators/calculator.css.d.ts +1 -0
  12. package/dist/Calculators/calculator.css.js +4 -2
  13. package/dist/Calculators/calculators.js +6 -0
  14. package/dist/Calculators/index.js +2 -1
  15. package/dist/Carousel/Carousel.css.d.ts +1 -0
  16. package/dist/Carousel/Carousel.css.js +13 -11
  17. package/dist/Carousel/index.d.ts +1 -0
  18. package/dist/Carousel/index.js +38 -29
  19. package/dist/Chevron/index.js +2 -1
  20. package/dist/Comparison/Comparison.js +2 -1
  21. package/dist/ContentBanner/ContentBanner.interface.d.ts +2 -1
  22. package/dist/ContentBanner/index.js +3 -2
  23. package/dist/DownloadTile/DownloadTile.css.d.ts +1 -0
  24. package/dist/DownloadTile/DownloadTile.css.js +9 -7
  25. package/dist/DownloadTile/DownloadTile.interface.d.ts +1 -0
  26. package/dist/DownloadTile/index.js +34 -25
  27. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -0
  28. package/dist/ExecutiveBio/ExecutiveBio.css.js +23 -21
  29. package/dist/ExecutiveBio/ExecutiveBio.js +3 -2
  30. package/dist/ExecutiveBio/index.js +2 -1
  31. package/dist/FaqAccordion/FaqAccordion.css.d.ts +1 -0
  32. package/dist/FaqAccordion/FaqAccordion.css.js +7 -5
  33. package/dist/FaqAccordion/index.d.ts +2 -0
  34. package/dist/FaqAccordion/index.js +16 -8
  35. package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
  36. package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
  37. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -1
  38. package/dist/Forms/ApplicationStart.js +105 -113
  39. package/dist/Forms/BlendPurchase.d.ts +11 -0
  40. package/dist/Forms/BlendPurchase.js +215 -0
  41. package/dist/Forms/BlendRefinance.d.ts +11 -0
  42. package/dist/Forms/BlendRefinance.js +215 -0
  43. package/dist/Forms/ClearingForm.js +177 -185
  44. package/dist/Forms/CommercialLending.js +276 -281
  45. package/dist/Forms/ContactCompany.js +107 -115
  46. package/dist/Forms/ContactUs.js +89 -97
  47. package/dist/Forms/ContactUsAAS.js +170 -178
  48. package/dist/Forms/ContactUsBusiness.js +131 -138
  49. package/dist/Forms/ContactUsNMLSId.js +114 -121
  50. package/dist/Forms/CpraRequest.js +592 -600
  51. package/dist/Forms/DealerServices.js +219 -227
  52. package/dist/Forms/EmailOnly.js +51 -58
  53. package/dist/Forms/EmailUs.js +65 -73
  54. package/dist/Forms/ScheduleCall.js +149 -160
  55. package/dist/Forms/ScheduleCallPremier.js +171 -179
  56. package/dist/Forms/SuccesForm.js +2 -1
  57. package/dist/Forms/WcplSurvey.js +102 -110
  58. package/dist/HeroBanner/HeroBanner.js +2 -2
  59. package/dist/Hyperlink/index.js +2 -1
  60. package/dist/IconBillboard/IconBillboard.d.ts +1 -0
  61. package/dist/IconBillboard/IconBillboard.js +6 -4
  62. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +1 -0
  63. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  64. package/dist/ImageBillboard/ImageBillboardSet.js +3 -1
  65. package/dist/ImageLink/ImageLink.css.d.ts +1 -0
  66. package/dist/ImageLink/ImageLink.css.js +5 -1
  67. package/dist/ImageLink/ImageLink.js +3 -2
  68. package/dist/ImageLink/ImageLinkSet.js +5 -3
  69. package/dist/ImageLink/index.js +1 -1
  70. package/dist/Insight/Featured/CategorySelector.js +2 -1
  71. package/dist/Insight/Featured/Featured.js +2 -1
  72. package/dist/MainHTML/index.d.ts +2 -1
  73. package/dist/MainHTML/index.js +10 -2
  74. package/dist/Modal/Modal.js +3 -2
  75. package/dist/NavigationMenu/AxosBank/NavData.js +2 -1
  76. package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -1
  77. package/dist/NavigationMenu/AxosBank/index.js +3 -2
  78. package/dist/PageNavItem/PageNavItem.js +8 -1
  79. package/dist/PageNavSet/PageNavSet.js +16 -19
  80. package/dist/SetContainer/SetContainer.d.ts +2 -1
  81. package/dist/SetContainer/SetContainer.js +6 -3
  82. package/dist/StepItemSet/StepItemSet.js +1 -1
  83. package/dist/Table/Table.css.d.ts +1 -0
  84. package/dist/Table/Table.css.js +18 -16
  85. package/dist/Table/Table.js +23 -15
  86. package/dist/Table/index.js +2 -1
  87. package/dist/TextBlock/TextBlock.css.d.ts +1 -0
  88. package/dist/TextBlock/TextBlock.css.js +6 -4
  89. package/dist/TextBlock/TextBlock.d.ts +1 -0
  90. package/dist/TextBlock/TextBlock.js +13 -5
  91. package/dist/TextBlock/index.js +3 -2
  92. package/dist/VideoTile/VideoTile.css.d.ts +1 -0
  93. package/dist/VideoTile/VideoTile.css.js +15 -13
  94. package/dist/VideoTile/VideoTile.interface.d.ts +1 -0
  95. package/dist/VideoTile/VideoTile.js +65 -56
  96. package/dist/VideoTile/index.js +2 -1
  97. package/dist/VideoWrapper/VideoWrapper.css.d.ts +1 -0
  98. package/dist/VideoWrapper/VideoWrapper.css.js +6 -4
  99. package/dist/VideoWrapper/index.d.ts +1 -0
  100. package/dist/VideoWrapper/index.js +6 -4
  101. package/dist/assets/ArticlesSet/ArticlesSet.css +1 -1
  102. package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +23 -12
  103. package/dist/assets/Calculators/calculator.css +24 -11
  104. package/dist/assets/Carousel/Carousel.css +52 -39
  105. package/dist/assets/Comparison/Comparison.css +2 -3
  106. package/dist/assets/DownloadTile/DownloadTile.css +32 -19
  107. package/dist/assets/ExecutiveBio/ExecutiveBio.css +92 -79
  108. package/dist/assets/FaqAccordion/FaqAccordion.css +24 -11
  109. package/dist/assets/IconBillboard/IconBillboard.css +11 -0
  110. package/dist/assets/ImageBillboard/ImageBillboard.css +9 -0
  111. package/dist/assets/ImageLink/ImageLink.css +13 -0
  112. package/dist/assets/PageNavSet/PageNavigationSet.css +6 -9
  113. package/dist/assets/Table/Table.css +90 -79
  114. package/dist/assets/TextBlock/TextBlock.css +16 -3
  115. package/dist/assets/VideoTile/VideoTile.css +27 -14
  116. package/dist/assets/VideoWrapper/VideoWrapper.css +18 -5
  117. package/dist/main.js +10 -5
  118. package/dist/utils/allowedAxosDomains.js +1 -1
  119. package/package.json +1 -1
  120. package/dist/ImageLink/ImageLink.css.ts.vanilla.css.js +0 -1
@@ -30,11 +30,12 @@ import "../ArticlesSet/ArticlesSet.css.js";
30
30
  import { Button } from "../Button/Button.js";
31
31
  import "../IconBillboard/IconBillboard.css.js";
32
32
  import "../utils/allowedAxosDomains.js";
33
+ import clsx from "clsx";
34
+ import "../Calculators/calculator.css.js";
33
35
  import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
34
36
  import "../Button/Button.css.js";
35
37
  import "react-use";
36
38
  import "../Calculators/ApyCalculator/ApyCalculator.css.js";
37
- import clsx from "clsx";
38
39
  import "../Table/Table.css.js";
39
40
  import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
40
41
  import { useForm, FormProvider } from "react-hook-form";
@@ -46,7 +47,6 @@ import "../Input/Checkbox.css.js";
46
47
  import "../LoadingIndicator/LoadingIndicator.css.js";
47
48
  import "../Input/RadioButton.js";
48
49
  import "iframe-resizer";
49
- import "../Calculators/calculator.css.js";
50
50
  /* empty css */
51
51
  import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
52
52
  /* empty css */
@@ -70,6 +70,7 @@ import "../FaqAccordion/index.js";
70
70
  import "../FooterDisclosure/FooterDisclosure.css.js";
71
71
  /* empty css */
72
72
  import "../ImageBillboard/ImageBillboard.css.js";
73
+ /* empty css */
73
74
  /* empty css */
74
75
  /* empty css */
75
76
  import "../Interstitial/Interstitial-variants.css.js";
@@ -154,142 +155,134 @@ const ContactUsBusiness = ({
154
155
  await onSubmit(data);
155
156
  };
156
157
  const variant = getVariant(fullVariant);
157
- return /* @__PURE__ */ jsx(
158
- "section",
159
- {
160
- id: `id_${id}`,
161
- className: clsx(formContainer({ variant })),
162
- children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
163
- icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
164
- /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
165
- /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
166
- description && /* @__PURE__ */ jsx(
167
- "div",
168
- {
169
- className: clsx(
170
- "text_center",
171
- form,
172
- descriptionField({ variant })
173
- ),
174
- children: description
175
- }
176
- )
177
- ] }),
178
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
179
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
180
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
181
- Input,
182
- {
183
- id: "first_name",
184
- ...register("first_name", { required: true }),
185
- label: "First Name",
186
- sizes: "medium",
187
- placeholder: "First Name",
188
- required: true,
189
- error: !!errors.first_name,
190
- helperText: errors.first_name?.message,
191
- variant
192
- }
193
- ) }),
194
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
195
- Input,
196
- {
197
- id: "last_name",
198
- ...register("last_name", { required: true }),
199
- label: "Last Name",
200
- sizes: "medium",
201
- placeholder: "Last Name",
202
- required: true,
203
- error: !!errors.last_name,
204
- helperText: errors.last_name?.message,
205
- variant
206
- }
207
- ) }),
208
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
209
- Input,
210
- {
211
- id: "Business_Name__c",
212
- ...register("Business_Name__c", {
213
- required: true
214
- }),
215
- type: "text",
216
- label: "Business Name",
217
- sizes: "medium",
218
- placeholder: "Business Name",
219
- required: true,
220
- error: !!errors.Business_Name__c,
221
- helperText: errors.Business_Name__c?.message,
222
- variant
223
- }
224
- ) }),
225
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
226
- Input,
227
- {
228
- id: "email",
229
- ...register("email", {
230
- required: true
231
- }),
232
- type: "email",
233
- label: "Email",
234
- sizes: "medium",
235
- placeholder: "Email",
236
- required: true,
237
- error: !!errors.email,
238
- helperText: errors.email?.message,
239
- variant
240
- }
241
- ) }),
242
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
243
- InputPhone,
244
- {
245
- id: "phone",
246
- ...register("phone", { required: true, maxLength: 12 }),
247
- label: "Phone",
248
- sizes: "medium",
249
- placeholder: "Phone",
250
- type: "tel",
251
- required: true,
252
- error: !!errors.phone,
253
- helperText: errors.phone?.message,
254
- variant
255
- }
256
- ) }),
257
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
258
- Input,
259
- {
260
- id: "NMLS_ID__c",
261
- ...register("NMLS_ID__c", {
262
- required: true,
263
- min: 6,
264
- max: 7
265
- }),
266
- label: "Company NMLS ID",
267
- placeholder: "Company NMLS ID",
268
- sizes: "medium",
269
- required: true,
270
- error: !!errors.NMLS_ID__c,
271
- helperText: errors.NMLS_ID__c?.message,
272
- variant
273
- }
274
- ) })
275
- ] }),
276
- children,
277
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
278
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
279
- Button,
280
- {
281
- color: getVariant(callToAction?.variant),
282
- as: "button",
283
- type: "submit",
284
- disabled: !isValid || isSubmitting,
285
- children: callToAction?.displayText
286
- }
287
- ) })
288
- ] })
289
- ] }) })
290
- },
291
- id
292
- );
158
+ return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
159
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
160
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
161
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
162
+ description && /* @__PURE__ */ jsx(
163
+ "div",
164
+ {
165
+ className: clsx(
166
+ "text_center",
167
+ form,
168
+ descriptionField({ variant })
169
+ ),
170
+ children: description
171
+ }
172
+ )
173
+ ] }),
174
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
175
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
176
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
177
+ Input,
178
+ {
179
+ id: "first_name",
180
+ ...register("first_name", { required: true }),
181
+ label: "First Name",
182
+ sizes: "medium",
183
+ placeholder: "First Name",
184
+ required: true,
185
+ error: !!errors.first_name,
186
+ helperText: errors.first_name?.message,
187
+ variant
188
+ }
189
+ ) }),
190
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
191
+ Input,
192
+ {
193
+ id: "last_name",
194
+ ...register("last_name", { required: true }),
195
+ label: "Last Name",
196
+ sizes: "medium",
197
+ placeholder: "Last Name",
198
+ required: true,
199
+ error: !!errors.last_name,
200
+ helperText: errors.last_name?.message,
201
+ variant
202
+ }
203
+ ) }),
204
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
205
+ Input,
206
+ {
207
+ id: "Business_Name__c",
208
+ ...register("Business_Name__c", {
209
+ required: true
210
+ }),
211
+ type: "text",
212
+ label: "Business Name",
213
+ sizes: "medium",
214
+ placeholder: "Business Name",
215
+ required: true,
216
+ error: !!errors.Business_Name__c,
217
+ helperText: errors.Business_Name__c?.message,
218
+ variant
219
+ }
220
+ ) }),
221
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
222
+ Input,
223
+ {
224
+ id: "email",
225
+ ...register("email", {
226
+ required: true
227
+ }),
228
+ type: "email",
229
+ label: "Email",
230
+ sizes: "medium",
231
+ placeholder: "Email",
232
+ required: true,
233
+ error: !!errors.email,
234
+ helperText: errors.email?.message,
235
+ variant
236
+ }
237
+ ) }),
238
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
239
+ InputPhone,
240
+ {
241
+ id: "phone",
242
+ ...register("phone", { required: true, maxLength: 12 }),
243
+ label: "Phone",
244
+ sizes: "medium",
245
+ placeholder: "Phone",
246
+ type: "tel",
247
+ required: true,
248
+ error: !!errors.phone,
249
+ helperText: errors.phone?.message,
250
+ variant
251
+ }
252
+ ) }),
253
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
254
+ Input,
255
+ {
256
+ id: "NMLS_ID__c",
257
+ ...register("NMLS_ID__c", {
258
+ required: true,
259
+ min: 6,
260
+ max: 7
261
+ }),
262
+ label: "Company NMLS ID",
263
+ placeholder: "Company NMLS ID",
264
+ sizes: "medium",
265
+ required: true,
266
+ error: !!errors.NMLS_ID__c,
267
+ helperText: errors.NMLS_ID__c?.message,
268
+ variant
269
+ }
270
+ ) })
271
+ ] }),
272
+ children,
273
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
274
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
275
+ Button,
276
+ {
277
+ color: getVariant(callToAction?.variant),
278
+ as: "button",
279
+ type: "submit",
280
+ disabled: !isValid || isSubmitting,
281
+ children: callToAction?.displayText
282
+ }
283
+ ) })
284
+ ] })
285
+ ] }) }) }, id);
293
286
  };
294
287
  export {
295
288
  ContactUsBusiness
@@ -30,11 +30,12 @@ import "../ArticlesSet/ArticlesSet.css.js";
30
30
  import { Button } from "../Button/Button.js";
31
31
  import "../IconBillboard/IconBillboard.css.js";
32
32
  import "../utils/allowedAxosDomains.js";
33
+ import clsx from "clsx";
34
+ import "../Calculators/calculator.css.js";
33
35
  import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
34
36
  import "../Button/Button.css.js";
35
37
  import "react-use";
36
38
  import "../Calculators/ApyCalculator/ApyCalculator.css.js";
37
- import clsx from "clsx";
38
39
  import "../Table/Table.css.js";
39
40
  import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
40
41
  import { useForm, FormProvider } from "react-hook-form";
@@ -46,7 +47,6 @@ import "../Input/Checkbox.css.js";
46
47
  import "../LoadingIndicator/LoadingIndicator.css.js";
47
48
  import "../Input/RadioButton.js";
48
49
  import "iframe-resizer";
49
- import "../Calculators/calculator.css.js";
50
50
  /* empty css */
51
51
  import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
52
52
  /* empty css */
@@ -70,6 +70,7 @@ import "../FaqAccordion/index.js";
70
70
  import "../FooterDisclosure/FooterDisclosure.css.js";
71
71
  /* empty css */
72
72
  import "../ImageBillboard/ImageBillboard.css.js";
73
+ /* empty css */
73
74
  /* empty css */
74
75
  /* empty css */
75
76
  import "../Interstitial/Interstitial-variants.css.js";
@@ -153,125 +154,117 @@ const ContactUsNMLSId = ({
153
154
  await onSubmit(data);
154
155
  };
155
156
  const variant = getVariant(fullVariant);
156
- return /* @__PURE__ */ jsx(
157
- "section",
158
- {
159
- id: `id_${id}`,
160
- className: clsx(formContainer({ variant })),
161
- children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
162
- icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
163
- /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
164
- /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
165
- description && /* @__PURE__ */ jsx(
166
- "div",
167
- {
168
- className: clsx(
169
- "text_center",
170
- form,
171
- descriptionField({ variant })
172
- ),
173
- children: description
174
- }
175
- )
176
- ] }),
177
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
178
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
179
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
180
- Input,
181
- {
182
- id: "first_name",
183
- ...register("first_name", { required: true }),
184
- label: "First Name",
185
- sizes: "medium",
186
- placeholder: "First Name",
187
- required: true,
188
- error: !!errors.first_name,
189
- helperText: errors.first_name?.message,
190
- variant
191
- }
192
- ) }),
193
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
194
- Input,
195
- {
196
- id: "last_name",
197
- ...register("last_name", { required: true }),
198
- label: "Last Name",
199
- sizes: "medium",
200
- placeholder: "Last Name",
201
- required: true,
202
- error: !!errors.last_name,
203
- helperText: errors.last_name?.message,
204
- variant
205
- }
206
- ) }),
207
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
208
- Input,
209
- {
210
- id: "email",
211
- ...register("email", {
212
- required: true
213
- }),
214
- type: "email",
215
- label: "Email",
216
- sizes: "medium",
217
- placeholder: "Email",
218
- required: true,
219
- error: !!errors.email,
220
- helperText: errors.email?.message,
221
- variant
222
- }
223
- ) }),
224
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
225
- InputPhone,
226
- {
227
- id: "phone",
228
- ...register("phone", { required: true, maxLength: 12 }),
229
- label: "Phone",
230
- sizes: "medium",
231
- placeholder: "Phone",
232
- type: "tel",
233
- required: true,
234
- error: !!errors.phone,
235
- helperText: errors.phone?.message,
236
- variant
237
- }
238
- ) }),
239
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
240
- Input,
241
- {
242
- id: "NMLS_ID__c",
243
- ...register("NMLS_ID__c", {
244
- required: true,
245
- min: 6,
246
- max: 7
247
- }),
248
- label: "Company NMLS ID",
249
- placeholder: "Company NMLS ID",
250
- sizes: "medium",
251
- required: true,
252
- error: !!errors.NMLS_ID__c,
253
- helperText: errors.NMLS_ID__c?.message,
254
- variant
255
- }
256
- ) })
257
- ] }),
258
- children,
259
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
260
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
261
- Button,
262
- {
263
- color: getVariant(callToAction?.variant),
264
- as: "button",
265
- type: "submit",
266
- disabled: !isValid || isSubmitting,
267
- children: callToAction?.displayText
268
- }
269
- ) })
270
- ] })
271
- ] }) })
272
- },
273
- id
274
- );
157
+ return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
158
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
159
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
160
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
161
+ description && /* @__PURE__ */ jsx(
162
+ "div",
163
+ {
164
+ className: clsx(
165
+ "text_center",
166
+ form,
167
+ descriptionField({ variant })
168
+ ),
169
+ children: description
170
+ }
171
+ )
172
+ ] }),
173
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
174
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
175
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
176
+ Input,
177
+ {
178
+ id: "first_name",
179
+ ...register("first_name", { required: true }),
180
+ label: "First Name",
181
+ sizes: "medium",
182
+ placeholder: "First Name",
183
+ required: true,
184
+ error: !!errors.first_name,
185
+ helperText: errors.first_name?.message,
186
+ variant
187
+ }
188
+ ) }),
189
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
190
+ Input,
191
+ {
192
+ id: "last_name",
193
+ ...register("last_name", { required: true }),
194
+ label: "Last Name",
195
+ sizes: "medium",
196
+ placeholder: "Last Name",
197
+ required: true,
198
+ error: !!errors.last_name,
199
+ helperText: errors.last_name?.message,
200
+ variant
201
+ }
202
+ ) }),
203
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
204
+ Input,
205
+ {
206
+ id: "email",
207
+ ...register("email", {
208
+ required: true
209
+ }),
210
+ type: "email",
211
+ label: "Email",
212
+ sizes: "medium",
213
+ placeholder: "Email",
214
+ required: true,
215
+ error: !!errors.email,
216
+ helperText: errors.email?.message,
217
+ variant
218
+ }
219
+ ) }),
220
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
221
+ InputPhone,
222
+ {
223
+ id: "phone",
224
+ ...register("phone", { required: true, maxLength: 12 }),
225
+ label: "Phone",
226
+ sizes: "medium",
227
+ placeholder: "Phone",
228
+ type: "tel",
229
+ required: true,
230
+ error: !!errors.phone,
231
+ helperText: errors.phone?.message,
232
+ variant
233
+ }
234
+ ) }),
235
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
236
+ Input,
237
+ {
238
+ id: "NMLS_ID__c",
239
+ ...register("NMLS_ID__c", {
240
+ required: true,
241
+ min: 6,
242
+ max: 7
243
+ }),
244
+ label: "Company NMLS ID",
245
+ placeholder: "Company NMLS ID",
246
+ sizes: "medium",
247
+ required: true,
248
+ error: !!errors.NMLS_ID__c,
249
+ helperText: errors.NMLS_ID__c?.message,
250
+ variant
251
+ }
252
+ ) })
253
+ ] }),
254
+ children,
255
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
256
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
257
+ Button,
258
+ {
259
+ color: getVariant(callToAction?.variant),
260
+ as: "button",
261
+ type: "submit",
262
+ disabled: !isValid || isSubmitting,
263
+ children: callToAction?.displayText
264
+ }
265
+ ) })
266
+ ] })
267
+ ] }) }) }, id);
275
268
  };
276
269
  export {
277
270
  ContactUsNMLSId