@axos-web-dev/shared-components 0.0.116 → 0.0.118
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 +29 -31
- package/dist/Accordion/Accordion.css.js +4 -4
- package/dist/Accordion/Accordion.js +3 -3
- package/dist/AlertBanner/AlertBanner.css.js +1 -1
- package/dist/AlertBanner/index.js +3 -3
- package/dist/Article/Article.css.js +4 -4
- package/dist/ArticlesSet/ArticlesSet.css.js +4 -4
- package/dist/ArticlesSet/ArticlesSet.js +1 -1
- package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
- package/dist/AwardsItem/AwardsItem.css.js +2 -2
- package/dist/BulletItem/BulletItem.css.js +2 -2
- package/dist/BulletItem/BulletItem.js +3 -3
- package/dist/Button/Button.css.js +4 -4
- package/dist/Button/Button.js +29 -31
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +3 -3
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +3 -3
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +4 -4
- package/dist/Calculators/BalanceAPYCalculator/index.js +3 -3
- package/dist/Calculators/Calculator.js +28 -30
- package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +4 -2
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +3 -3
- package/dist/Calculators/calculator.css.js +4 -4
- package/dist/Calculators/calculators.js +6 -0
- package/dist/CallToActionBar/CallToActionBar.css.js +3 -3
- package/dist/CallToActionBar/index.js +1 -1
- package/dist/Carousel/Carousel.css.js +3 -3
- package/dist/Carousel/index.d.ts +1 -0
- package/dist/Carousel/index.js +34 -35
- package/dist/Chevron/Chevron.css.js +4 -4
- package/dist/Chevron/index.js +29 -31
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +4 -4
- package/dist/CollectInformationAlert/index.js +3 -3
- package/dist/Comparison/Comparison.css.js +5 -5
- package/dist/Comparison/Comparison.js +28 -30
- package/dist/ContentBanner/ContentBanner.css.js +4 -4
- package/dist/ContentBanner/index.js +1 -1
- package/dist/DownloadTile/DownloadTile.css.js +3 -3
- package/dist/ExecutiveBio/ExecutiveBio.css.js +4 -4
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
- package/dist/FaqAccordion/FaqAccordion.css.js +4 -4
- package/dist/FaqAccordion/index.d.ts +1 -0
- package/dist/FaqAccordion/index.js +31 -33
- package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
- package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +28 -30
- package/dist/Forms/ApplicationStart.js +110 -118
- package/dist/Forms/ClearingForm.js +182 -190
- package/dist/Forms/CommercialLending.js +281 -286
- package/dist/Forms/ContactCompany.js +112 -120
- package/dist/Forms/ContactUs.js +94 -102
- package/dist/Forms/ContactUsAAS.js +175 -183
- package/dist/Forms/ContactUsBusiness.js +157 -167
- package/dist/Forms/ContactUsNMLSId.js +140 -150
- package/dist/Forms/CpraRequest.js +597 -605
- package/dist/Forms/DealerServices.js +224 -232
- package/dist/Forms/EmailOnly.js +77 -88
- package/dist/Forms/EmailUs.js +68 -76
- package/dist/Forms/Forms.css.js +7 -7
- package/dist/Forms/QuickPricer.js +5 -5
- package/dist/Forms/ScheduleCall.js +154 -162
- package/dist/Forms/ScheduleCallPremier.js +176 -184
- package/dist/Forms/SuccesForm.d.ts +1 -1
- package/dist/Forms/SuccesForm.js +29 -31
- package/dist/Forms/WcplSurvey.js +107 -115
- package/dist/HeroBanner/HeroBanner.css.js +5 -5
- package/dist/HeroBanner/HeroBanner.js +2 -2
- package/dist/HeroBanner/LargeBanner.css.js +4 -4
- package/dist/HeroBanner/SelectionBanner.css.js +4 -4
- package/dist/Hyperlink/Hyperlink.css.js +1 -1
- package/dist/Hyperlink/index.js +29 -31
- package/dist/IconBillboard/IconBillboard.css.js +4 -4
- package/dist/IconBillboard/IconBillboard.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.js +6 -4
- package/dist/ImageBillboard/ImageBillboard.css.js +4 -4
- package/dist/ImageBillboard/ImageBillboard.js +3 -3
- package/dist/ImageBillboard/ImageBillboardSet.js +4 -3
- package/dist/ImageLink/ImageLink.css.js +1 -1
- package/dist/ImageLink/ImageLink.js +29 -31
- package/dist/ImageLink/ImageLinkSet.js +29 -31
- package/dist/ImageLink/index.js +29 -31
- package/dist/Input/Checkbox.css.js +1 -1
- package/dist/Input/CurrencyInput.js +2 -2
- package/dist/Input/Dropdown.css.js +2 -2
- package/dist/Input/Input.css.js +4 -4
- package/dist/Input/InputAmount.js +2 -2
- package/dist/Input/InputPhone.js +2 -2
- package/dist/Input/RadioButton.css.js +1 -1
- package/dist/Inputs/Input.css.js +3 -3
- package/dist/Insight/Featured/CategorySelector.css.js +5 -5
- package/dist/Insight/Featured/CategorySelector.js +27 -29
- package/dist/Insight/Featured/Featured.css.js +2 -2
- package/dist/Insight/Featured/Featured.js +29 -31
- package/dist/Interstitial/Interstitial-variants.css.js +4 -4
- package/dist/LandingPageHeader/LandingPageHeader.css.js +3 -3
- package/dist/LandingPageHeader/LandingPageHeader.js +3 -3
- package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
- package/dist/Modal/Modal.css.js +3 -3
- package/dist/Modal/Modal.js +28 -30
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +3 -3
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +3 -3
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +3 -3
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +3 -3
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +3 -3
- package/dist/NavigationMenu/AxosBank/NavData.js +29 -31
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +28 -30
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +3 -3
- package/dist/NavigationMenu/AxosBank/index.js +27 -29
- package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosClearing/index.js +3 -3
- package/dist/PageNavItem/PageNavItem.css.js +4 -4
- package/dist/PageNavItem/PageNavItem.d.ts +2 -1
- package/dist/PageNavItem/PageNavItem.js +3 -2
- package/dist/PageNavSet/PageNavSet.js +44 -43
- package/dist/PageNavSet/PageNavigationSet.css.d.ts +3 -0
- package/dist/PageNavSet/PageNavigationSet.css.js +9 -0
- package/dist/PageNavSet/index.d.ts +0 -1
- package/dist/PageNavSet/index.js +1 -5
- package/dist/SecondaryFooter/SecondaryFooter.css.js +3 -3
- package/dist/SetContainer/SetContainer.css.js +3 -3
- package/dist/SetContainer/SetContainer.js +29 -31
- package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
- package/dist/StepItem/StepItem.css.js +3 -3
- package/dist/StepItemSet/StepItemSet.css.js +3 -3
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Tab/Tab.css.js +3 -3
- package/dist/Table/Table.css.js +3 -3
- package/dist/TextBlock/TextBlock.css.js +3 -3
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
- package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
- package/dist/Typography/Typography.css.js +1 -1
- package/dist/VideoTile/VideoTile.css.js +4 -4
- package/dist/VideoTile/VideoTile.js +4 -4
- package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
- package/dist/VideoWrapper/index.js +26 -34
- package/dist/assets/PageNavSet/PageNavigationSet.css +76 -0
- package/dist/assets/Table/Table.css +8 -8
- package/dist/globals.css.js +2 -2
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +3 -3
- package/dist/icons/CheckIcon/CheckIcon.css.js +3 -3
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +3 -3
- package/dist/icons/FollowIcon/FollowIcon.css.js +3 -3
- package/dist/icons/Star/Star.css.js +1 -1
- package/dist/index.css.js +3 -3
- package/dist/main.js +0 -4
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/premier.css.js +2 -2
- package/package.json +121 -120
- package/dist/PageNavSet/PageNavSet.module.js +0 -14
- package/dist/assets/PageNavSet/PageNavSet.css.css +0 -88
- package/dist/assets/node_modules/slick-carousel/slick/slick-theme.css.css +0 -204
- package/dist/assets/node_modules/slick-carousel/slick/slick.css.css +0 -119
- /package/dist/{lib/ImageLink → ImageLink}/ImageLink.css.ts.vanilla.css.js +0 -0
|
@@ -8,8 +8,8 @@ import "react-use";
|
|
|
8
8
|
import "../Input/Checkbox.js";
|
|
9
9
|
import "../Input/CurrencyInput.js";
|
|
10
10
|
import { Dropdown } from "../Input/Dropdown.js";
|
|
11
|
-
/* empty css
|
|
12
|
-
/* empty css
|
|
11
|
+
/* empty css */
|
|
12
|
+
/* empty css */
|
|
13
13
|
import { Input } from "../Input/Input.js";
|
|
14
14
|
import "../Input/Input.css.js";
|
|
15
15
|
import "../Input/InputAmount.js";
|
|
@@ -19,10 +19,10 @@ import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
|
19
19
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
20
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
21
21
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
22
|
-
/* empty css
|
|
23
|
-
/* empty css
|
|
24
|
-
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
25
24
|
/* empty css */
|
|
25
|
+
/* empty css */
|
|
26
26
|
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
27
27
|
import "../utils/allowedAxosDomains.js";
|
|
28
28
|
import { getVariant } from "../utils/getVariant.js";
|
|
@@ -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
|