@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
|
@@ -80,122 +80,114 @@ const ContactCompany = ({
|
|
|
80
80
|
await onSubmit(data);
|
|
81
81
|
};
|
|
82
82
|
const variant = getVariant(fullVariant);
|
|
83
|
-
return /* @__PURE__ */ jsx(
|
|
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
|
-
|
|
83
|
+
return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
84
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
85
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
86
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
87
|
+
description && /* @__PURE__ */ jsx(
|
|
88
|
+
"div",
|
|
89
|
+
{
|
|
90
|
+
className: clsx(
|
|
91
|
+
"text_center",
|
|
92
|
+
form,
|
|
93
|
+
descriptionField({ variant })
|
|
94
|
+
),
|
|
95
|
+
children: description
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
101
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
102
|
+
Input,
|
|
103
|
+
{
|
|
104
|
+
id: "first_name",
|
|
105
|
+
...register("first_name", { required: true }),
|
|
106
|
+
label: "First Name",
|
|
107
|
+
sizes: "medium",
|
|
108
|
+
placeholder: "First Name",
|
|
109
|
+
required: true,
|
|
110
|
+
error: !!errors.first_name,
|
|
111
|
+
helperText: errors.first_name?.message,
|
|
112
|
+
variant
|
|
113
|
+
}
|
|
114
|
+
) }),
|
|
115
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
116
|
+
Input,
|
|
117
|
+
{
|
|
118
|
+
id: "last_name",
|
|
119
|
+
...register("last_name", { required: true }),
|
|
120
|
+
label: "Last Name",
|
|
121
|
+
sizes: "medium",
|
|
122
|
+
placeholder: "Last Name",
|
|
123
|
+
required: true,
|
|
124
|
+
error: !!errors.last_name,
|
|
125
|
+
helperText: errors.last_name?.message,
|
|
126
|
+
variant
|
|
127
|
+
}
|
|
128
|
+
) }),
|
|
129
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
130
|
+
Input,
|
|
131
|
+
{
|
|
132
|
+
id: "email",
|
|
133
|
+
...register("email", {
|
|
134
|
+
required: true,
|
|
135
|
+
validate: {
|
|
136
|
+
isValid: associatedEmail
|
|
118
137
|
}
|
|
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
|
-
label: "Company",
|
|
173
|
-
sizes: "medium",
|
|
174
|
-
placeholder: "Company",
|
|
175
|
-
required: true,
|
|
176
|
-
error: !!errors.company,
|
|
177
|
-
helperText: errors.company?.message,
|
|
178
|
-
variant
|
|
179
|
-
}
|
|
180
|
-
) })
|
|
181
|
-
] }),
|
|
182
|
-
children,
|
|
183
|
-
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
184
|
-
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
185
|
-
Button,
|
|
186
|
-
{
|
|
187
|
-
color: getVariant(callToAction?.variant),
|
|
188
|
-
as: "button",
|
|
189
|
-
type: "submit",
|
|
190
|
-
disabled: !isValid || isSubmitting,
|
|
191
|
-
children: callToAction?.displayText
|
|
192
|
-
}
|
|
193
|
-
) })
|
|
194
|
-
] })
|
|
195
|
-
] }) })
|
|
196
|
-
},
|
|
197
|
-
id
|
|
198
|
-
);
|
|
138
|
+
}),
|
|
139
|
+
label: "Email",
|
|
140
|
+
sizes: "medium",
|
|
141
|
+
placeholder: "Email",
|
|
142
|
+
required: true,
|
|
143
|
+
error: !!errors.email,
|
|
144
|
+
helperText: errors.email?.message,
|
|
145
|
+
variant
|
|
146
|
+
}
|
|
147
|
+
) }),
|
|
148
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
149
|
+
InputPhone,
|
|
150
|
+
{
|
|
151
|
+
id: "phone",
|
|
152
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
153
|
+
label: "Phone",
|
|
154
|
+
sizes: "medium",
|
|
155
|
+
placeholder: "Phone",
|
|
156
|
+
required: true,
|
|
157
|
+
error: !!errors.phone,
|
|
158
|
+
helperText: errors.phone?.message,
|
|
159
|
+
variant
|
|
160
|
+
}
|
|
161
|
+
) }),
|
|
162
|
+
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
163
|
+
Input,
|
|
164
|
+
{
|
|
165
|
+
id: "company",
|
|
166
|
+
...register("company", { required: true }),
|
|
167
|
+
label: "Company",
|
|
168
|
+
sizes: "medium",
|
|
169
|
+
placeholder: "Company",
|
|
170
|
+
required: true,
|
|
171
|
+
error: !!errors.company,
|
|
172
|
+
helperText: errors.company?.message,
|
|
173
|
+
variant
|
|
174
|
+
}
|
|
175
|
+
) })
|
|
176
|
+
] }),
|
|
177
|
+
children,
|
|
178
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
179
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
180
|
+
Button,
|
|
181
|
+
{
|
|
182
|
+
color: getVariant(callToAction?.variant),
|
|
183
|
+
as: "button",
|
|
184
|
+
type: "submit",
|
|
185
|
+
disabled: !isValid || isSubmitting,
|
|
186
|
+
children: callToAction?.displayText
|
|
187
|
+
}
|
|
188
|
+
) })
|
|
189
|
+
] })
|
|
190
|
+
] }) }) }, id);
|
|
199
191
|
};
|
|
200
192
|
export {
|
|
201
193
|
ContactCompany
|
package/dist/Forms/ContactUs.js
CHANGED
|
@@ -79,104 +79,96 @@ const ContactUs = ({
|
|
|
79
79
|
await onSubmit(data);
|
|
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
|
-
|
|
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 })), children: [
|
|
96
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
97
|
+
Input,
|
|
98
|
+
{
|
|
99
|
+
id: "first_name",
|
|
100
|
+
...register("first_name", { required: true }),
|
|
101
|
+
label: "First Name",
|
|
102
|
+
sizes: "medium",
|
|
103
|
+
placeholder: "First Name",
|
|
104
|
+
required: true,
|
|
105
|
+
error: !!errors.first_name,
|
|
106
|
+
helperText: errors.first_name?.message,
|
|
107
|
+
variant
|
|
108
|
+
}
|
|
109
|
+
) }),
|
|
110
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
111
|
+
Input,
|
|
112
|
+
{
|
|
113
|
+
id: "last_name",
|
|
114
|
+
...register("last_name", { required: true }),
|
|
115
|
+
label: "Last Name",
|
|
116
|
+
sizes: "medium",
|
|
117
|
+
placeholder: "Last Name",
|
|
118
|
+
required: true,
|
|
119
|
+
error: !!errors.last_name,
|
|
120
|
+
helperText: errors.last_name?.message,
|
|
121
|
+
variant
|
|
122
|
+
}
|
|
123
|
+
) }),
|
|
124
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
125
|
+
Input,
|
|
126
|
+
{
|
|
127
|
+
id: "email",
|
|
128
|
+
...register("email", {
|
|
129
|
+
required: true,
|
|
130
|
+
validate: {
|
|
131
|
+
isValid: associatedEmail
|
|
113
132
|
}
|
|
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
|
-
label: "Phone",
|
|
154
|
-
sizes: "medium",
|
|
155
|
-
placeholder: "Phone",
|
|
156
|
-
required: true,
|
|
157
|
-
error: !!errors.phone,
|
|
158
|
-
helperText: errors.phone?.message,
|
|
159
|
-
variant
|
|
160
|
-
}
|
|
161
|
-
) })
|
|
162
|
-
] }),
|
|
163
|
-
children,
|
|
164
|
-
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
165
|
-
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
166
|
-
Button,
|
|
167
|
-
{
|
|
168
|
-
color: getVariant(callToAction?.variant),
|
|
169
|
-
as: "button",
|
|
170
|
-
type: "submit",
|
|
171
|
-
disabled: !isValid || isSubmitting,
|
|
172
|
-
children: callToAction?.displayText
|
|
173
|
-
}
|
|
174
|
-
) })
|
|
175
|
-
] })
|
|
176
|
-
] }) })
|
|
177
|
-
},
|
|
178
|
-
id
|
|
179
|
-
);
|
|
133
|
+
}),
|
|
134
|
+
label: "Email",
|
|
135
|
+
sizes: "medium",
|
|
136
|
+
placeholder: "Email",
|
|
137
|
+
required: true,
|
|
138
|
+
error: !!errors.email,
|
|
139
|
+
helperText: errors.email?.message,
|
|
140
|
+
variant
|
|
141
|
+
}
|
|
142
|
+
) }),
|
|
143
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
144
|
+
InputPhone,
|
|
145
|
+
{
|
|
146
|
+
id: "phone",
|
|
147
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
148
|
+
label: "Phone",
|
|
149
|
+
sizes: "medium",
|
|
150
|
+
placeholder: "Phone",
|
|
151
|
+
required: true,
|
|
152
|
+
error: !!errors.phone,
|
|
153
|
+
helperText: errors.phone?.message,
|
|
154
|
+
variant
|
|
155
|
+
}
|
|
156
|
+
) })
|
|
157
|
+
] }),
|
|
158
|
+
children,
|
|
159
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
160
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
161
|
+
Button,
|
|
162
|
+
{
|
|
163
|
+
color: getVariant(callToAction?.variant),
|
|
164
|
+
as: "button",
|
|
165
|
+
type: "submit",
|
|
166
|
+
disabled: !isValid || isSubmitting,
|
|
167
|
+
children: callToAction?.displayText
|
|
168
|
+
}
|
|
169
|
+
) })
|
|
170
|
+
] })
|
|
171
|
+
] }) }) }, id);
|
|
180
172
|
};
|
|
181
173
|
export {
|
|
182
174
|
ContactUs
|