@axos-web-dev/shared-components 0.0.117 → 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/Accordion/Accordion.css.d.ts +9 -9
- package/dist/ArticlesSet/ArticlesSet.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +4 -2
- package/dist/Calculators/calculators.js +6 -0
- package/dist/Carousel/index.d.ts +1 -0
- package/dist/Carousel/index.js +5 -4
- package/dist/Comparison/Comparison.css.js +2 -2
- package/dist/ContentBanner/index.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
- package/dist/FaqAccordion/index.d.ts +1 -0
- package/dist/FaqAccordion/index.js +2 -2
- package/dist/FooterDisclosure/FooterDisclosure.d.ts +5 -2
- package/dist/FooterDisclosure/FooterDisclosure.js +18 -2
- package/dist/Forms/ApplicationStart.js +105 -113
- 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 +128 -136
- package/dist/Forms/ContactUsNMLSId.js +111 -119
- package/dist/Forms/CpraRequest.js +592 -600
- package/dist/Forms/DealerServices.js +219 -227
- package/dist/Forms/EmailOnly.js +48 -56
- package/dist/Forms/EmailUs.js +65 -73
- package/dist/Forms/Forms.css.js +2 -2
- package/dist/Forms/SalesforceFieldsForm.d.ts +1 -0
- package/dist/Forms/ScheduleCall.js +149 -160
- package/dist/Forms/ScheduleCallPremier.js +171 -179
- package/dist/Forms/WcplSurvey.js +102 -110
- package/dist/HeroBanner/HeroBanner.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +2 -2
- package/dist/IconBillboard/IconBillboard.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.js +6 -4
- package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -0
- package/dist/Input/Checkbox.d.ts +1 -1
- package/dist/Input/Input.css.js +1 -1
- package/dist/Input/InputProps.d.ts +0 -6
- package/dist/Insight/Featured/CategorySelector.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Table/Table.d.ts +13 -13
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/VideoTile/VideoTile.js +1 -1
- package/dist/VideoWrapper/index.js +22 -30
- package/dist/assets/Comparison/Comparison.css +0 -1
- package/dist/assets/Table/Table.css +8 -8
- package/dist/index.css.js +1 -1
- package/package.json +121 -121
- package/dist/Input/DatePicker.css.d.ts +0 -1
- package/dist/Input/DatePicker.css.js +0 -6
- package/dist/Input/Datepicker.d.ts +0 -3
- package/dist/Input/Datepicker.js +0 -47
- package/dist/Input/InputDate.css.d.ts +0 -6
- package/dist/Input/InputDate.css.js +0 -15
- package/dist/Input/InputDate.d.ts +0 -3
- package/dist/Input/InputDate.js +0 -47
- package/dist/assets/Input/DatePicker.css +0 -95
- package/dist/assets/Input/InputDate.css +0 -39
|
@@ -89,186 +89,178 @@ const ScheduleCallPremier = ({
|
|
|
89
89
|
await onSubmit(parseData);
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
id: "email",
|
|
147
|
-
...register("email", {
|
|
148
|
-
required: true,
|
|
149
|
-
validate: {
|
|
150
|
-
isValid: associatedEmail
|
|
151
|
-
}
|
|
152
|
-
}),
|
|
153
|
-
label: "Email",
|
|
154
|
-
sizes: "medium",
|
|
155
|
-
placeholder: "Email",
|
|
156
|
-
required: true,
|
|
157
|
-
error: !!errors.email,
|
|
158
|
-
helperText: errors.email?.message,
|
|
159
|
-
variant
|
|
160
|
-
}
|
|
161
|
-
) }),
|
|
162
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
163
|
-
InputPhone,
|
|
164
|
-
{
|
|
165
|
-
id: "phone",
|
|
166
|
-
...register("phone", { required: true, maxLength: 12 }),
|
|
167
|
-
label: "Phone",
|
|
168
|
-
sizes: "medium",
|
|
169
|
-
placeholder: "Phone",
|
|
170
|
-
required: true,
|
|
171
|
-
error: !!errors.phone,
|
|
172
|
-
helperText: errors.phone?.message,
|
|
173
|
-
variant
|
|
174
|
-
}
|
|
175
|
-
) }),
|
|
176
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
177
|
-
Input,
|
|
178
|
-
{
|
|
179
|
-
id: "Best_Contact_Date__c",
|
|
180
|
-
...register("Best_Contact_Date__c", {
|
|
181
|
-
required: true
|
|
182
|
-
}),
|
|
183
|
-
type: "date",
|
|
184
|
-
label: "Best Date to Call",
|
|
185
|
-
sizes: "medium",
|
|
186
|
-
placeholder: "Best Date to Call",
|
|
187
|
-
required: true,
|
|
188
|
-
error: !!errors.Best_Contact_Date__c,
|
|
189
|
-
helperText: errors.Best_Contact_Date__c?.message,
|
|
190
|
-
variant
|
|
191
|
-
}
|
|
192
|
-
) }),
|
|
193
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
194
|
-
Dropdown,
|
|
195
|
-
{
|
|
196
|
-
id: "Best_Time_To_Call__c",
|
|
197
|
-
...register("Best_Time_To_Call__c", {
|
|
198
|
-
required: true,
|
|
199
|
-
maxLength: 12
|
|
200
|
-
}),
|
|
201
|
-
label: "Best Time to Call",
|
|
202
|
-
sizes: "medium",
|
|
203
|
-
required: true,
|
|
204
|
-
error: !!errors.Best_Time_To_Call__c,
|
|
205
|
-
helperText: errors.Best_Time_To_Call__c?.message,
|
|
206
|
-
variant,
|
|
207
|
-
defaultValue: "Best Time to Call",
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
|
|
210
|
-
/* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
|
|
211
|
-
/* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
|
|
212
|
-
/* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
|
|
213
|
-
/* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
|
|
214
|
-
/* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
|
|
215
|
-
/* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
|
|
216
|
-
/* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
|
|
217
|
-
/* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
|
|
218
|
-
/* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
|
|
219
|
-
/* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
|
|
220
|
-
/* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
|
|
221
|
-
/* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
|
|
222
|
-
/* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
|
|
223
|
-
/* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
|
|
224
|
-
/* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
|
|
225
|
-
/* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
|
|
226
|
-
/* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
|
|
227
|
-
/* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
|
|
228
|
-
/* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
|
|
229
|
-
]
|
|
230
|
-
}
|
|
231
|
-
) }),
|
|
232
|
-
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
233
|
-
CurrencyInput,
|
|
234
|
-
{
|
|
235
|
-
id: "Potential_Funding__c",
|
|
236
|
-
...register("Potential_Funding__c", {
|
|
237
|
-
required: true
|
|
238
|
-
}),
|
|
239
|
-
label: "Potential Funding",
|
|
240
|
-
placeholder: "Potential Funding",
|
|
241
|
-
sizes: "medium",
|
|
242
|
-
required: true,
|
|
243
|
-
error: !!errors.Potential_Funding__c,
|
|
244
|
-
helperText: errors.Potential_Funding__c?.message,
|
|
245
|
-
variant
|
|
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
|
|
246
146
|
}
|
|
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
|
-
|
|
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: "Best_Contact_Date__c",
|
|
175
|
+
...register("Best_Contact_Date__c", {
|
|
176
|
+
required: true
|
|
177
|
+
}),
|
|
178
|
+
type: "date",
|
|
179
|
+
label: "Best Date to Call",
|
|
180
|
+
sizes: "medium",
|
|
181
|
+
placeholder: "Best Date to Call",
|
|
182
|
+
required: true,
|
|
183
|
+
error: !!errors.Best_Contact_Date__c,
|
|
184
|
+
helperText: errors.Best_Contact_Date__c?.message,
|
|
185
|
+
variant
|
|
186
|
+
}
|
|
187
|
+
) }),
|
|
188
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
189
|
+
Dropdown,
|
|
190
|
+
{
|
|
191
|
+
id: "Best_Time_To_Call__c",
|
|
192
|
+
...register("Best_Time_To_Call__c", {
|
|
193
|
+
required: true,
|
|
194
|
+
maxLength: 12
|
|
195
|
+
}),
|
|
196
|
+
label: "Best Time to Call",
|
|
197
|
+
sizes: "medium",
|
|
198
|
+
required: true,
|
|
199
|
+
error: !!errors.Best_Time_To_Call__c,
|
|
200
|
+
helperText: errors.Best_Time_To_Call__c?.message,
|
|
201
|
+
variant,
|
|
202
|
+
defaultValue: "Best Time to Call",
|
|
203
|
+
children: [
|
|
204
|
+
/* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
|
|
205
|
+
/* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
|
|
206
|
+
/* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
|
|
207
|
+
/* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
|
|
208
|
+
/* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
|
|
209
|
+
/* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
|
|
210
|
+
/* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
|
|
211
|
+
/* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
|
|
212
|
+
/* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
|
|
213
|
+
/* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
|
|
214
|
+
/* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
|
|
215
|
+
/* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
|
|
216
|
+
/* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
|
|
217
|
+
/* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
|
|
218
|
+
/* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
|
|
219
|
+
/* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
|
|
220
|
+
/* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
|
|
221
|
+
/* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
|
|
222
|
+
/* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
|
|
223
|
+
/* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
) }),
|
|
227
|
+
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
228
|
+
CurrencyInput,
|
|
229
|
+
{
|
|
230
|
+
id: "Potential_Funding__c",
|
|
231
|
+
...register("Potential_Funding__c", {
|
|
232
|
+
required: true
|
|
233
|
+
}),
|
|
234
|
+
label: "Potential Funding",
|
|
235
|
+
placeholder: "Potential Funding",
|
|
236
|
+
sizes: "medium",
|
|
237
|
+
required: true,
|
|
238
|
+
error: !!errors.Potential_Funding__c,
|
|
239
|
+
helperText: errors.Potential_Funding__c?.message,
|
|
240
|
+
variant
|
|
241
|
+
}
|
|
242
|
+
) })
|
|
243
|
+
] }),
|
|
244
|
+
children,
|
|
245
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
246
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
|
|
247
|
+
LoadingIndicator,
|
|
248
|
+
{
|
|
249
|
+
style: { marginInline: "auto" },
|
|
250
|
+
variant
|
|
251
|
+
}
|
|
252
|
+
) : /* @__PURE__ */ jsx(
|
|
253
|
+
Button,
|
|
254
|
+
{
|
|
255
|
+
color: getVariant(callToAction?.variant),
|
|
256
|
+
as: "button",
|
|
257
|
+
type: "submit",
|
|
258
|
+
disabled: !isValid || isSubmitting,
|
|
259
|
+
children: callToAction?.displayText
|
|
260
|
+
}
|
|
261
|
+
) })
|
|
262
|
+
] })
|
|
263
|
+
] }) }) }, id);
|
|
272
264
|
};
|
|
273
265
|
export {
|
|
274
266
|
ScheduleCallPremier
|
package/dist/Forms/WcplSurvey.js
CHANGED
|
@@ -79,116 +79,108 @@ const WCPLSurvey = ({
|
|
|
79
79
|
console.log(errors, isValid);
|
|
80
80
|
};
|
|
81
81
|
const variant = getVariant(fullVariant);
|
|
82
|
-
return /* @__PURE__ */ jsx(
|
|
83
|
-
"
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
-
|
|
127
|
-
|
|
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
|
-
children: callToAction?.displayText
|
|
185
|
-
}
|
|
186
|
-
) })
|
|
187
|
-
] })
|
|
188
|
-
] }) })
|
|
189
|
-
},
|
|
190
|
-
id
|
|
191
|
-
);
|
|
82
|
+
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
83
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
84
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
85
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
86
|
+
description && /* @__PURE__ */ jsx(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: `${form} ${descriptionField({ variant })} text_center`,
|
|
90
|
+
children: description
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
95
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant, formType: "email" })), children: [
|
|
96
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
97
|
+
RadioButtonSet,
|
|
98
|
+
{
|
|
99
|
+
id: "Has_Deal",
|
|
100
|
+
label: "Do You have a potential deal you would like to discuss with an Account Executive?",
|
|
101
|
+
sizes: "medium",
|
|
102
|
+
placeholder: "Details",
|
|
103
|
+
required: true,
|
|
104
|
+
error: !!errors.Has_Deal,
|
|
105
|
+
helperText: errors.Has_Deal?.message,
|
|
106
|
+
variant,
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
RadioButton,
|
|
110
|
+
{
|
|
111
|
+
...register("Has_Deal", {
|
|
112
|
+
required: true
|
|
113
|
+
}),
|
|
114
|
+
value: "Yes",
|
|
115
|
+
radioText: "Yes",
|
|
116
|
+
groupName: "Has_Deal"
|
|
117
|
+
}
|
|
118
|
+
),
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
120
|
+
RadioButton,
|
|
121
|
+
{
|
|
122
|
+
...register("Has_Deal", {
|
|
123
|
+
required: true
|
|
124
|
+
}),
|
|
125
|
+
value: "No",
|
|
126
|
+
radioText: "No",
|
|
127
|
+
groupName: "Has_Deal"
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
) }),
|
|
133
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
134
|
+
InputTextArea,
|
|
135
|
+
{
|
|
136
|
+
id: "Description_of_Deal_Details",
|
|
137
|
+
...register("Description_of_Deal_Details", {
|
|
138
|
+
required: true
|
|
139
|
+
}),
|
|
140
|
+
label: "Write Your Message",
|
|
141
|
+
sizes: "medium",
|
|
142
|
+
placeholder: "Details",
|
|
143
|
+
required: true,
|
|
144
|
+
error: !!errors.Description_of_Deal_Details,
|
|
145
|
+
helperText: errors.Description_of_Deal_Details?.message,
|
|
146
|
+
variant
|
|
147
|
+
}
|
|
148
|
+
) }),
|
|
149
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
150
|
+
InputPhone,
|
|
151
|
+
{
|
|
152
|
+
id: "Telephone",
|
|
153
|
+
...register("Telephone", { required: true, maxLength: 12 }),
|
|
154
|
+
label: "Telephone",
|
|
155
|
+
sizes: "medium",
|
|
156
|
+
placeholder: "Phone",
|
|
157
|
+
required: true,
|
|
158
|
+
error: !!errors.Telephone,
|
|
159
|
+
helperText: errors.Telephone?.message,
|
|
160
|
+
variant
|
|
161
|
+
}
|
|
162
|
+
) })
|
|
163
|
+
] }),
|
|
164
|
+
children,
|
|
165
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
166
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
|
|
167
|
+
LoadingIndicator,
|
|
168
|
+
{
|
|
169
|
+
style: { marginInline: "auto" },
|
|
170
|
+
variant
|
|
171
|
+
}
|
|
172
|
+
) : /* @__PURE__ */ jsx(
|
|
173
|
+
Button,
|
|
174
|
+
{
|
|
175
|
+
color: getVariant(callToAction?.variant),
|
|
176
|
+
as: "button",
|
|
177
|
+
type: "submit",
|
|
178
|
+
disabled: !isValid || isSubmitting,
|
|
179
|
+
children: callToAction?.displayText
|
|
180
|
+
}
|
|
181
|
+
) })
|
|
182
|
+
] })
|
|
183
|
+
] }) }) }, id);
|
|
192
184
|
};
|
|
193
185
|
export {
|
|
194
186
|
WCPLSurvey
|
|
@@ -25,7 +25,7 @@ const HeroBanner = ({
|
|
|
25
25
|
return /* @__PURE__ */ jsx(Fragment, { children: bannerType === "Hero" || bannerType === "Logout" ? /* @__PURE__ */ jsx(
|
|
26
26
|
"section",
|
|
27
27
|
{
|
|
28
|
-
id
|
|
28
|
+
id,
|
|
29
29
|
className: `${bannerType !== "Hero" ? logout : ""} ${hero_banner({ variant: getVariant(variant) })}`,
|
|
30
30
|
children: /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment`, children: /* @__PURE__ */ jsxs(
|
|
31
31
|
"div",
|
|
@@ -199,7 +199,7 @@ const HeroBanner = ({
|
|
|
199
199
|
"section",
|
|
200
200
|
{
|
|
201
201
|
className: lg_hero_banner({ variant: getVariant(variant) }),
|
|
202
|
-
id
|
|
202
|
+
id,
|
|
203
203
|
children: /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment`, children: /* @__PURE__ */ jsxs(
|
|
204
204
|
"div",
|
|
205
205
|
{
|