@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
|
@@ -97,184 +97,176 @@ const ContactUsAAS = ({
|
|
|
97
97
|
await onSubmit(data);
|
|
98
98
|
};
|
|
99
99
|
const variant = getVariant(fullVariant);
|
|
100
|
-
return /* @__PURE__ */ jsx(
|
|
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
|
-
|
|
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
|
-
children: callToAction?.displayText
|
|
271
|
-
}
|
|
272
|
-
) }) })
|
|
273
|
-
] })
|
|
274
|
-
] }) })
|
|
275
|
-
},
|
|
276
|
-
id
|
|
277
|
-
);
|
|
100
|
+
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
101
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
102
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
103
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
104
|
+
description && /* @__PURE__ */ jsx(
|
|
105
|
+
"div",
|
|
106
|
+
{
|
|
107
|
+
className: `${form} ${descriptionField({ variant })} text_center`,
|
|
108
|
+
children: description
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
] }),
|
|
112
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
114
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
115
|
+
Input,
|
|
116
|
+
{
|
|
117
|
+
id: "first_name",
|
|
118
|
+
...register("first_name", { required: true }),
|
|
119
|
+
label: "First Name*",
|
|
120
|
+
sizes: "medium",
|
|
121
|
+
placeholder: "",
|
|
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
|
+
placeholder: "",
|
|
136
|
+
required: true,
|
|
137
|
+
error: !!errors.last_name,
|
|
138
|
+
helperText: errors.last_name?.message,
|
|
139
|
+
variant
|
|
140
|
+
}
|
|
141
|
+
) }),
|
|
142
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
143
|
+
Input,
|
|
144
|
+
{
|
|
145
|
+
id: "email",
|
|
146
|
+
...register("email", {
|
|
147
|
+
required: true
|
|
148
|
+
}),
|
|
149
|
+
type: "email",
|
|
150
|
+
label: "Email*",
|
|
151
|
+
sizes: "medium",
|
|
152
|
+
placeholder: "",
|
|
153
|
+
required: true,
|
|
154
|
+
error: !!errors.email,
|
|
155
|
+
helperText: errors.email?.message,
|
|
156
|
+
variant
|
|
157
|
+
}
|
|
158
|
+
) }),
|
|
159
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
160
|
+
InputPhone,
|
|
161
|
+
{
|
|
162
|
+
id: "phone",
|
|
163
|
+
...register("phone", {
|
|
164
|
+
required: true,
|
|
165
|
+
maxLength: 12
|
|
166
|
+
}),
|
|
167
|
+
label: "Phone*",
|
|
168
|
+
sizes: "medium",
|
|
169
|
+
placeholder: "",
|
|
170
|
+
type: "tel",
|
|
171
|
+
required: true,
|
|
172
|
+
error: !!errors.phone,
|
|
173
|
+
helperText: errors.phone?.message,
|
|
174
|
+
variant
|
|
175
|
+
}
|
|
176
|
+
) }),
|
|
177
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
178
|
+
Input,
|
|
179
|
+
{
|
|
180
|
+
id: "company",
|
|
181
|
+
...register("company"),
|
|
182
|
+
label: "Company",
|
|
183
|
+
sizes: "medium",
|
|
184
|
+
placeholder: "",
|
|
185
|
+
error: !!errors.company,
|
|
186
|
+
helperText: errors.company?.message,
|
|
187
|
+
variant
|
|
188
|
+
}
|
|
189
|
+
) }),
|
|
190
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
191
|
+
Dropdown,
|
|
192
|
+
{
|
|
193
|
+
id: "Current_Assets_Under_Management__c",
|
|
194
|
+
...register("Current_Assets_Under_Management__c"),
|
|
195
|
+
label: "Current AUM",
|
|
196
|
+
sizes: "medium",
|
|
197
|
+
error: !!errors.Current_Assets_Under_Management__c,
|
|
198
|
+
helperText: errors.Current_Assets_Under_Management__c?.message,
|
|
199
|
+
variant,
|
|
200
|
+
defaultValue: "",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
|
|
203
|
+
/* @__PURE__ */ jsx("option", { value: "$0 - $25M", children: "$0 — $25M" }),
|
|
204
|
+
/* @__PURE__ */ jsx("option", { value: "$26M - $150M", children: "$26M — $150M" }),
|
|
205
|
+
/* @__PURE__ */ jsx("option", { value: "$151M - $500M", children: "$151M — $500M" }),
|
|
206
|
+
/* @__PURE__ */ jsx("option", { value: "$501M - $1B", children: "$501M — $1B" }),
|
|
207
|
+
/* @__PURE__ */ jsx("option", { value: "$1B+", children: "$1B+" })
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
) }),
|
|
211
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
212
|
+
Dropdown,
|
|
213
|
+
{
|
|
214
|
+
id: "Role__c",
|
|
215
|
+
...register("Role__c", {
|
|
216
|
+
required: true
|
|
217
|
+
}),
|
|
218
|
+
label: "What best describes your role?*",
|
|
219
|
+
sizes: "medium",
|
|
220
|
+
required: true,
|
|
221
|
+
error: !!errors.Role__c,
|
|
222
|
+
helperText: errors.Role__c?.message,
|
|
223
|
+
variant,
|
|
224
|
+
defaultValue: "Select option",
|
|
225
|
+
children: [
|
|
226
|
+
/* @__PURE__ */ jsx("option", { value: "Select option", disabled: true, children: "Select Option" }),
|
|
227
|
+
/* @__PURE__ */ jsx("option", { value: "RIA Principal", children: "RIA Principal" }),
|
|
228
|
+
/* @__PURE__ */ jsx("option", { value: "Advisor (IAR)", children: "Advisor (IAR)" }),
|
|
229
|
+
/* @__PURE__ */ jsx("option", { value: "Broker-Dealer Affiliated Advisor", children: "Broker-Dealer Affiliated Advisor" }),
|
|
230
|
+
/* @__PURE__ */ jsx("option", { value: "I am not a Financial Advisor", children: "I am not a Financial Advisor" }),
|
|
231
|
+
/* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
) }),
|
|
235
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
236
|
+
InputTextArea,
|
|
237
|
+
{
|
|
238
|
+
id: "description",
|
|
239
|
+
...register("description"),
|
|
240
|
+
label: "Comments",
|
|
241
|
+
sizes: "medium",
|
|
242
|
+
placeholder: "",
|
|
243
|
+
error: !!errors.description,
|
|
244
|
+
helperText: errors.description?.message,
|
|
245
|
+
variant,
|
|
246
|
+
rows: 1
|
|
247
|
+
}
|
|
248
|
+
) })
|
|
249
|
+
] }),
|
|
250
|
+
children,
|
|
251
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
252
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
|
|
253
|
+
LoadingIndicator,
|
|
254
|
+
{
|
|
255
|
+
style: { marginInline: "auto" },
|
|
256
|
+
variant
|
|
257
|
+
}
|
|
258
|
+
) : /* @__PURE__ */ jsx(
|
|
259
|
+
Button,
|
|
260
|
+
{
|
|
261
|
+
color: getVariant(callToAction?.variant),
|
|
262
|
+
as: "button",
|
|
263
|
+
type: "submit",
|
|
264
|
+
disabled: !isValid || isSubmitting,
|
|
265
|
+
children: callToAction?.displayText
|
|
266
|
+
}
|
|
267
|
+
) }) })
|
|
268
|
+
] })
|
|
269
|
+
] }) }) }, id);
|
|
278
270
|
};
|
|
279
271
|
export {
|
|
280
272
|
ContactUsAAS
|
|
@@ -154,142 +154,134 @@ const ContactUsBusiness = ({
|
|
|
154
154
|
await onSubmit(data);
|
|
155
155
|
};
|
|
156
156
|
const variant = getVariant(fullVariant);
|
|
157
|
-
return /* @__PURE__ */ jsx(
|
|
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
|
-
children: callToAction?.displayText
|
|
286
|
-
}
|
|
287
|
-
) })
|
|
288
|
-
] })
|
|
289
|
-
] }) })
|
|
290
|
-
},
|
|
291
|
-
id
|
|
292
|
-
);
|
|
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: "Business_Name__c",
|
|
207
|
+
...register("Business_Name__c", {
|
|
208
|
+
required: true
|
|
209
|
+
}),
|
|
210
|
+
type: "text",
|
|
211
|
+
label: "Business Name",
|
|
212
|
+
sizes: "medium",
|
|
213
|
+
placeholder: "Business Name",
|
|
214
|
+
required: true,
|
|
215
|
+
error: !!errors.Business_Name__c,
|
|
216
|
+
helperText: errors.Business_Name__c?.message,
|
|
217
|
+
variant
|
|
218
|
+
}
|
|
219
|
+
) }),
|
|
220
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
221
|
+
Input,
|
|
222
|
+
{
|
|
223
|
+
id: "email",
|
|
224
|
+
...register("email", {
|
|
225
|
+
required: true
|
|
226
|
+
}),
|
|
227
|
+
type: "email",
|
|
228
|
+
label: "Email",
|
|
229
|
+
sizes: "medium",
|
|
230
|
+
placeholder: "Email",
|
|
231
|
+
required: true,
|
|
232
|
+
error: !!errors.email,
|
|
233
|
+
helperText: errors.email?.message,
|
|
234
|
+
variant
|
|
235
|
+
}
|
|
236
|
+
) }),
|
|
237
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
238
|
+
InputPhone,
|
|
239
|
+
{
|
|
240
|
+
id: "phone",
|
|
241
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
242
|
+
label: "Phone",
|
|
243
|
+
sizes: "medium",
|
|
244
|
+
placeholder: "Phone",
|
|
245
|
+
type: "tel",
|
|
246
|
+
required: true,
|
|
247
|
+
error: !!errors.phone,
|
|
248
|
+
helperText: errors.phone?.message,
|
|
249
|
+
variant
|
|
250
|
+
}
|
|
251
|
+
) }),
|
|
252
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
253
|
+
Input,
|
|
254
|
+
{
|
|
255
|
+
id: "NMLS_ID__c",
|
|
256
|
+
...register("NMLS_ID__c", {
|
|
257
|
+
required: true,
|
|
258
|
+
min: 6,
|
|
259
|
+
max: 7
|
|
260
|
+
}),
|
|
261
|
+
label: "Company NMLS ID",
|
|
262
|
+
placeholder: "Company NMLS ID",
|
|
263
|
+
sizes: "medium",
|
|
264
|
+
required: true,
|
|
265
|
+
error: !!errors.NMLS_ID__c,
|
|
266
|
+
helperText: errors.NMLS_ID__c?.message,
|
|
267
|
+
variant
|
|
268
|
+
}
|
|
269
|
+
) })
|
|
270
|
+
] }),
|
|
271
|
+
children,
|
|
272
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
273
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
274
|
+
Button,
|
|
275
|
+
{
|
|
276
|
+
color: getVariant(callToAction?.variant),
|
|
277
|
+
as: "button",
|
|
278
|
+
type: "submit",
|
|
279
|
+
disabled: !isValid || isSubmitting,
|
|
280
|
+
children: callToAction?.displayText
|
|
281
|
+
}
|
|
282
|
+
) })
|
|
283
|
+
] })
|
|
284
|
+
] }) }) }, id);
|
|
293
285
|
};
|
|
294
286
|
export {
|
|
295
287
|
ContactUsBusiness
|