@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.
- package/dist/ATMLocator/ATMLocator.js +3 -2
- package/dist/ArticlesSet/ArticlesSet.js +1 -1
- package/dist/Button/Button.js +3 -2
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +16 -1
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +8 -8
- package/dist/Calculators/AnnualFeeCalculator/index.js +7 -4
- package/dist/Calculators/Calculator.js +1 -0
- package/dist/Calculators/MarginTradingCalculator/index.js +29 -7
- package/dist/Calculators/MaxLoanCalculator/index.js +3 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -1
- package/dist/Calculators/calculator.css.d.ts +1 -0
- package/dist/Calculators/calculator.css.js +4 -2
- package/dist/Calculators/calculators.js +6 -0
- package/dist/Calculators/index.js +2 -1
- package/dist/Carousel/Carousel.css.d.ts +1 -0
- package/dist/Carousel/Carousel.css.js +13 -11
- package/dist/Carousel/index.d.ts +1 -0
- package/dist/Carousel/index.js +38 -29
- package/dist/Chevron/index.js +2 -1
- package/dist/Comparison/Comparison.js +2 -1
- package/dist/ContentBanner/ContentBanner.interface.d.ts +2 -1
- package/dist/ContentBanner/index.js +3 -2
- package/dist/DownloadTile/DownloadTile.css.d.ts +1 -0
- package/dist/DownloadTile/DownloadTile.css.js +9 -7
- package/dist/DownloadTile/DownloadTile.interface.d.ts +1 -0
- package/dist/DownloadTile/index.js +34 -25
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -0
- package/dist/ExecutiveBio/ExecutiveBio.css.js +23 -21
- package/dist/ExecutiveBio/ExecutiveBio.js +3 -2
- package/dist/ExecutiveBio/index.js +2 -1
- package/dist/FaqAccordion/FaqAccordion.css.d.ts +1 -0
- package/dist/FaqAccordion/FaqAccordion.css.js +7 -5
- package/dist/FaqAccordion/index.d.ts +2 -0
- package/dist/FaqAccordion/index.js +16 -8
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
- package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +2 -1
- package/dist/Forms/ApplicationStart.js +105 -113
- package/dist/Forms/BlendPurchase.d.ts +11 -0
- package/dist/Forms/BlendPurchase.js +215 -0
- package/dist/Forms/BlendRefinance.d.ts +11 -0
- package/dist/Forms/BlendRefinance.js +215 -0
- package/dist/Forms/ClearingForm.js +177 -185
- package/dist/Forms/CommercialLending.js +276 -281
- package/dist/Forms/ContactCompany.js +107 -115
- package/dist/Forms/ContactUs.js +89 -97
- package/dist/Forms/ContactUsAAS.js +170 -178
- package/dist/Forms/ContactUsBusiness.js +131 -138
- package/dist/Forms/ContactUsNMLSId.js +114 -121
- package/dist/Forms/CpraRequest.js +592 -600
- package/dist/Forms/DealerServices.js +219 -227
- package/dist/Forms/EmailOnly.js +51 -58
- package/dist/Forms/EmailUs.js +65 -73
- package/dist/Forms/ScheduleCall.js +149 -160
- package/dist/Forms/ScheduleCallPremier.js +171 -179
- package/dist/Forms/SuccesForm.js +2 -1
- package/dist/Forms/WcplSurvey.js +102 -110
- package/dist/HeroBanner/HeroBanner.js +2 -2
- package/dist/Hyperlink/index.js +2 -1
- package/dist/IconBillboard/IconBillboard.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.js +6 -4
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +1 -0
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +3 -1
- package/dist/ImageLink/ImageLink.css.d.ts +1 -0
- package/dist/ImageLink/ImageLink.css.js +5 -1
- package/dist/ImageLink/ImageLink.js +3 -2
- package/dist/ImageLink/ImageLinkSet.js +5 -3
- package/dist/ImageLink/index.js +1 -1
- package/dist/Insight/Featured/CategorySelector.js +2 -1
- package/dist/Insight/Featured/Featured.js +2 -1
- package/dist/MainHTML/index.d.ts +2 -1
- package/dist/MainHTML/index.js +10 -2
- package/dist/Modal/Modal.js +3 -2
- package/dist/NavigationMenu/AxosBank/NavData.js +2 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +2 -1
- package/dist/NavigationMenu/AxosBank/index.js +3 -2
- package/dist/PageNavItem/PageNavItem.js +8 -1
- package/dist/PageNavSet/PageNavSet.js +16 -19
- package/dist/SetContainer/SetContainer.d.ts +2 -1
- package/dist/SetContainer/SetContainer.js +6 -3
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Table/Table.css.d.ts +1 -0
- package/dist/Table/Table.css.js +18 -16
- package/dist/Table/Table.js +23 -15
- package/dist/Table/index.js +2 -1
- package/dist/TextBlock/TextBlock.css.d.ts +1 -0
- package/dist/TextBlock/TextBlock.css.js +6 -4
- package/dist/TextBlock/TextBlock.d.ts +1 -0
- package/dist/TextBlock/TextBlock.js +13 -5
- package/dist/TextBlock/index.js +3 -2
- package/dist/VideoTile/VideoTile.css.d.ts +1 -0
- package/dist/VideoTile/VideoTile.css.js +15 -13
- package/dist/VideoTile/VideoTile.interface.d.ts +1 -0
- package/dist/VideoTile/VideoTile.js +65 -56
- package/dist/VideoTile/index.js +2 -1
- package/dist/VideoWrapper/VideoWrapper.css.d.ts +1 -0
- package/dist/VideoWrapper/VideoWrapper.css.js +6 -4
- package/dist/VideoWrapper/index.d.ts +1 -0
- package/dist/VideoWrapper/index.js +6 -4
- package/dist/assets/ArticlesSet/ArticlesSet.css +1 -1
- package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +23 -12
- package/dist/assets/Calculators/calculator.css +24 -11
- package/dist/assets/Carousel/Carousel.css +52 -39
- package/dist/assets/Comparison/Comparison.css +2 -3
- package/dist/assets/DownloadTile/DownloadTile.css +32 -19
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +92 -79
- package/dist/assets/FaqAccordion/FaqAccordion.css +24 -11
- package/dist/assets/IconBillboard/IconBillboard.css +11 -0
- package/dist/assets/ImageBillboard/ImageBillboard.css +9 -0
- package/dist/assets/ImageLink/ImageLink.css +13 -0
- package/dist/assets/PageNavSet/PageNavigationSet.css +6 -9
- package/dist/assets/Table/Table.css +90 -79
- package/dist/assets/TextBlock/TextBlock.css +16 -3
- package/dist/assets/VideoTile/VideoTile.css +27 -14
- package/dist/assets/VideoWrapper/VideoWrapper.css +18 -5
- package/dist/main.js +10 -5
- package/dist/utils/allowedAxosDomains.js +1 -1
- package/package.json +1 -1
- package/dist/ImageLink/ImageLink.css.ts.vanilla.css.js +0 -1
|
@@ -89,234 +89,226 @@ const DealerServices = ({
|
|
|
89
89
|
await onSubmit(data);
|
|
90
90
|
};
|
|
91
91
|
const variant = getVariant(fullVariant);
|
|
92
|
-
return /* @__PURE__ */ jsx(
|
|
93
|
-
"
|
|
94
|
-
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
92
|
+
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
93
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
94
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
95
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
96
|
+
description && /* @__PURE__ */ jsx(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: clsx(
|
|
100
|
+
"text_center",
|
|
101
|
+
form,
|
|
102
|
+
descriptionField({ variant })
|
|
103
|
+
),
|
|
104
|
+
children: description
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
] }),
|
|
108
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
109
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
110
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
111
|
+
Input,
|
|
112
|
+
{
|
|
113
|
+
id: "first_name",
|
|
114
|
+
...register("first_name", { required: true }),
|
|
115
|
+
label: "First Name",
|
|
116
|
+
sizes: "medium",
|
|
117
|
+
placeholder: "First Name",
|
|
118
|
+
required: true,
|
|
119
|
+
error: !!errors.first_name,
|
|
120
|
+
helperText: errors.first_name?.message,
|
|
121
|
+
variant
|
|
122
|
+
}
|
|
123
|
+
) }),
|
|
124
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
125
|
+
Input,
|
|
126
|
+
{
|
|
127
|
+
id: "last_name",
|
|
128
|
+
...register("last_name", { required: true }),
|
|
129
|
+
label: "Last Name",
|
|
130
|
+
sizes: "medium",
|
|
131
|
+
placeholder: "Last Name",
|
|
132
|
+
required: true,
|
|
133
|
+
error: !!errors.last_name,
|
|
134
|
+
helperText: errors.last_name?.message,
|
|
135
|
+
variant
|
|
136
|
+
}
|
|
137
|
+
) }),
|
|
138
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
139
|
+
Input,
|
|
140
|
+
{
|
|
141
|
+
id: "email",
|
|
142
|
+
...register("email", {
|
|
143
|
+
required: true,
|
|
144
|
+
validate: {
|
|
145
|
+
isValid: associatedEmail
|
|
127
146
|
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
label: "Additional Details",
|
|
294
|
-
sizes: "medium",
|
|
295
|
-
placeholder: "Additional Details",
|
|
296
|
-
error: !!errors.description,
|
|
297
|
-
helperText: errors.description?.message,
|
|
298
|
-
variant,
|
|
299
|
-
rows: 1
|
|
300
|
-
}
|
|
301
|
-
) })
|
|
302
|
-
] }),
|
|
303
|
-
children,
|
|
304
|
-
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
305
|
-
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
306
|
-
Button,
|
|
307
|
-
{
|
|
308
|
-
color: getVariant(callToAction?.variant),
|
|
309
|
-
as: "button",
|
|
310
|
-
type: "submit",
|
|
311
|
-
disabled: !isValid || isSubmitting,
|
|
312
|
-
children: callToAction?.displayText
|
|
313
|
-
}
|
|
314
|
-
) })
|
|
315
|
-
] })
|
|
316
|
-
] }) })
|
|
317
|
-
},
|
|
318
|
-
id
|
|
319
|
-
);
|
|
147
|
+
}),
|
|
148
|
+
label: "Email",
|
|
149
|
+
sizes: "medium",
|
|
150
|
+
placeholder: "Email",
|
|
151
|
+
required: true,
|
|
152
|
+
error: !!errors.email,
|
|
153
|
+
helperText: errors.email?.message,
|
|
154
|
+
variant
|
|
155
|
+
}
|
|
156
|
+
) }),
|
|
157
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
158
|
+
InputPhone,
|
|
159
|
+
{
|
|
160
|
+
id: "phone",
|
|
161
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
162
|
+
label: "Phone",
|
|
163
|
+
sizes: "medium",
|
|
164
|
+
placeholder: "Phone",
|
|
165
|
+
required: true,
|
|
166
|
+
error: !!errors.phone,
|
|
167
|
+
helperText: errors.phone?.message,
|
|
168
|
+
variant
|
|
169
|
+
}
|
|
170
|
+
) }),
|
|
171
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
172
|
+
Input,
|
|
173
|
+
{
|
|
174
|
+
id: "title",
|
|
175
|
+
...register("title", { required: true }),
|
|
176
|
+
label: "Title",
|
|
177
|
+
sizes: "medium",
|
|
178
|
+
placeholder: "Title",
|
|
179
|
+
required: true,
|
|
180
|
+
error: !!errors.title,
|
|
181
|
+
helperText: errors.title?.message,
|
|
182
|
+
variant
|
|
183
|
+
}
|
|
184
|
+
) }),
|
|
185
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
186
|
+
Input,
|
|
187
|
+
{
|
|
188
|
+
id: "company",
|
|
189
|
+
...register("company", { required: true }),
|
|
190
|
+
label: "Company Name",
|
|
191
|
+
sizes: "medium",
|
|
192
|
+
placeholder: "Company Name",
|
|
193
|
+
required: true,
|
|
194
|
+
error: !!errors.company,
|
|
195
|
+
helperText: errors.company?.message,
|
|
196
|
+
variant
|
|
197
|
+
}
|
|
198
|
+
) }),
|
|
199
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
200
|
+
Dropdown,
|
|
201
|
+
{
|
|
202
|
+
id: "Dealer_Type__c",
|
|
203
|
+
...register("Dealer_Type__c", {
|
|
204
|
+
required: true,
|
|
205
|
+
maxLength: 12
|
|
206
|
+
}),
|
|
207
|
+
label: "Franchise or Independent",
|
|
208
|
+
sizes: "medium",
|
|
209
|
+
required: true,
|
|
210
|
+
error: !!errors.Dealer_Type__c,
|
|
211
|
+
helperText: errors.Dealer_Type__c?.message,
|
|
212
|
+
variant,
|
|
213
|
+
defaultValue: "Franchise",
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ jsx("option", { value: "Franchise", children: "Franchise" }),
|
|
216
|
+
/* @__PURE__ */ jsx("option", { value: "Independent", children: "Independent" })
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
) }),
|
|
220
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
221
|
+
Dropdown,
|
|
222
|
+
{
|
|
223
|
+
id: "Lead_Source_Detail_SFDC2__c",
|
|
224
|
+
...register("Lead_Source_Detail_SFDC2__c", {
|
|
225
|
+
required: true,
|
|
226
|
+
maxLength: 12
|
|
227
|
+
}),
|
|
228
|
+
label: "Dealer Services or Collector Car Program",
|
|
229
|
+
sizes: "medium",
|
|
230
|
+
required: true,
|
|
231
|
+
error: !!errors.Lead_Source_Detail_SFDC2__c,
|
|
232
|
+
helperText: errors.Lead_Source_Detail_SFDC2__c?.message,
|
|
233
|
+
variant,
|
|
234
|
+
defaultValue: "Dealer Services",
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ jsx("option", { value: "Dealer Services", children: "Dealer Services" }),
|
|
237
|
+
/* @__PURE__ */ jsx("option", { value: "Collector Car Program", children: "Collector Car Program" })
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
) }),
|
|
241
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
242
|
+
Input,
|
|
243
|
+
{
|
|
244
|
+
id: "city",
|
|
245
|
+
...register("city", { required: true }),
|
|
246
|
+
label: "City",
|
|
247
|
+
sizes: "medium",
|
|
248
|
+
placeholder: "City",
|
|
249
|
+
required: true,
|
|
250
|
+
error: !!errors.city,
|
|
251
|
+
helperText: errors.city?.message,
|
|
252
|
+
variant
|
|
253
|
+
}
|
|
254
|
+
) }),
|
|
255
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
256
|
+
Input,
|
|
257
|
+
{
|
|
258
|
+
id: "state",
|
|
259
|
+
...register("state", { required: true }),
|
|
260
|
+
label: "State",
|
|
261
|
+
sizes: "medium",
|
|
262
|
+
placeholder: "State",
|
|
263
|
+
required: true,
|
|
264
|
+
error: !!errors.state,
|
|
265
|
+
helperText: errors.state?.message,
|
|
266
|
+
variant
|
|
267
|
+
}
|
|
268
|
+
) }),
|
|
269
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
270
|
+
Input,
|
|
271
|
+
{
|
|
272
|
+
id: "zip",
|
|
273
|
+
...register("zip", { required: true }),
|
|
274
|
+
label: "Zip Code",
|
|
275
|
+
sizes: "medium",
|
|
276
|
+
placeholder: "Zip Code",
|
|
277
|
+
required: true,
|
|
278
|
+
error: !!errors.zip,
|
|
279
|
+
helperText: errors.zip?.message,
|
|
280
|
+
variant
|
|
281
|
+
}
|
|
282
|
+
) }),
|
|
283
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
284
|
+
InputTextArea,
|
|
285
|
+
{
|
|
286
|
+
id: "description",
|
|
287
|
+
...register("description"),
|
|
288
|
+
label: "Additional Details",
|
|
289
|
+
sizes: "medium",
|
|
290
|
+
placeholder: "Additional Details",
|
|
291
|
+
error: !!errors.description,
|
|
292
|
+
helperText: errors.description?.message,
|
|
293
|
+
variant,
|
|
294
|
+
rows: 1
|
|
295
|
+
}
|
|
296
|
+
) })
|
|
297
|
+
] }),
|
|
298
|
+
children,
|
|
299
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
300
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
301
|
+
Button,
|
|
302
|
+
{
|
|
303
|
+
color: getVariant(callToAction?.variant),
|
|
304
|
+
as: "button",
|
|
305
|
+
type: "submit",
|
|
306
|
+
disabled: !isValid || isSubmitting,
|
|
307
|
+
children: callToAction?.displayText
|
|
308
|
+
}
|
|
309
|
+
) })
|
|
310
|
+
] })
|
|
311
|
+
] }) }) }, id);
|
|
320
312
|
};
|
|
321
313
|
export {
|
|
322
314
|
DealerServices
|
package/dist/Forms/EmailOnly.js
CHANGED
|
@@ -31,11 +31,12 @@ import { Button } from "../Button/Button.js";
|
|
|
31
31
|
import "../IconBillboard/IconBillboard.css.js";
|
|
32
32
|
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
33
33
|
import "../utils/allowedAxosDomains.js";
|
|
34
|
+
import clsx from "clsx";
|
|
35
|
+
import "../Calculators/calculator.css.js";
|
|
34
36
|
import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
35
37
|
import "../Button/Button.css.js";
|
|
36
38
|
import "react-use";
|
|
37
39
|
import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
38
|
-
import clsx from "clsx";
|
|
39
40
|
import "../Table/Table.css.js";
|
|
40
41
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
41
42
|
import { useForm, FormProvider } from "react-hook-form";
|
|
@@ -47,7 +48,6 @@ import "../Input/Checkbox.css.js";
|
|
|
47
48
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
48
49
|
import "../Input/RadioButton.js";
|
|
49
50
|
import "iframe-resizer";
|
|
50
|
-
import "../Calculators/calculator.css.js";
|
|
51
51
|
/* empty css */
|
|
52
52
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
53
53
|
/* empty css */
|
|
@@ -71,6 +71,7 @@ import "../FaqAccordion/index.js";
|
|
|
71
71
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
72
72
|
/* empty css */
|
|
73
73
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
74
|
+
/* empty css */
|
|
74
75
|
/* empty css */
|
|
75
76
|
/* empty css */
|
|
76
77
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
@@ -140,63 +141,55 @@ const EmailOnly = ({
|
|
|
140
141
|
};
|
|
141
142
|
const variant = getVariant(fullVariant);
|
|
142
143
|
const formType = "email";
|
|
143
|
-
return /* @__PURE__ */ jsx(
|
|
144
|
-
"
|
|
145
|
-
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
id: "email",
|
|
169
|
-
...register("email", {
|
|
170
|
-
required: true,
|
|
171
|
-
validate: {
|
|
172
|
-
isValid: associatedEmail
|
|
173
|
-
}
|
|
174
|
-
}),
|
|
175
|
-
sizes: "medium",
|
|
176
|
-
placeholder: "Enter Email",
|
|
177
|
-
required: true,
|
|
178
|
-
error: !!errors.email,
|
|
179
|
-
helperText: errors.email?.message,
|
|
180
|
-
variant
|
|
144
|
+
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
145
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
146
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
147
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
148
|
+
description && /* @__PURE__ */ jsx(
|
|
149
|
+
"div",
|
|
150
|
+
{
|
|
151
|
+
className: clsx(
|
|
152
|
+
"text_center",
|
|
153
|
+
form,
|
|
154
|
+
descriptionField({ variant })
|
|
155
|
+
),
|
|
156
|
+
children: description
|
|
157
|
+
}
|
|
158
|
+
)
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
161
|
+
/* @__PURE__ */ jsx("div", { className: clsx(formWrapper({ variant, formType })), children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
162
|
+
Input,
|
|
163
|
+
{
|
|
164
|
+
id: "email",
|
|
165
|
+
...register("email", {
|
|
166
|
+
required: true,
|
|
167
|
+
validate: {
|
|
168
|
+
isValid: associatedEmail
|
|
181
169
|
}
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
170
|
+
}),
|
|
171
|
+
sizes: "medium",
|
|
172
|
+
placeholder: "Enter Email",
|
|
173
|
+
required: true,
|
|
174
|
+
error: !!errors.email,
|
|
175
|
+
helperText: errors.email?.message,
|
|
176
|
+
variant
|
|
177
|
+
}
|
|
178
|
+
) }) }),
|
|
179
|
+
children,
|
|
180
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
181
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
182
|
+
Button,
|
|
183
|
+
{
|
|
184
|
+
color: getVariant(callToAction?.variant),
|
|
185
|
+
as: "button",
|
|
186
|
+
type: "submit",
|
|
187
|
+
disabled: !isValid || isSubmitting,
|
|
188
|
+
children: callToAction?.displayText
|
|
189
|
+
}
|
|
190
|
+
) })
|
|
191
|
+
] })
|
|
192
|
+
] }) }) }, id);
|
|
200
193
|
};
|
|
201
194
|
export {
|
|
202
195
|
EmailOnly
|