@axos-web-dev/shared-components 1.0.99-dev-2 → 1.0.99-dev-6
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/Calculators/BuyDownCalculator/index.js +1 -1
- package/dist/Calculators/Calculator.d.ts +3 -1
- package/dist/Calculators/Calculator.js +4 -2
- package/dist/Calculators/MonthlyPaymentCalculator/index.d.ts +3 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -8
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +101 -89
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +174 -162
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +191 -179
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +268 -256
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +106 -94
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +103 -91
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +117 -105
- package/dist/Forms/ContactUs.js +2 -1
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +170 -158
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +124 -112
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +93 -81
- package/dist/Forms/ContactUsLVF.d.ts +3 -1
- package/dist/Forms/ContactUsLVF.js +117 -101
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +107 -95
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +630 -618
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +99 -87
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +215 -203
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +46 -34
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +65 -53
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -343
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +146 -134
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +168 -156
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +807 -795
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +102 -90
- package/package.json +133 -133
|
@@ -8,4 +8,4 @@ export type ScheduleCallInputs = {
|
|
|
8
8
|
Best_Time_To_Call__c: string;
|
|
9
9
|
Best_Contact_Date__c: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, id, description, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, id, description, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,6 +45,7 @@ const ScheduleCall = ({
|
|
|
45
45
|
headline,
|
|
46
46
|
callToAction,
|
|
47
47
|
validateEmail,
|
|
48
|
+
onValidate,
|
|
48
49
|
id,
|
|
49
50
|
description
|
|
50
51
|
}) => {
|
|
@@ -121,141 +122,152 @@ const ScheduleCall = ({
|
|
|
121
122
|
}
|
|
122
123
|
)
|
|
123
124
|
] }),
|
|
124
|
-
/* @__PURE__ */ jsxs(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
placeholder: "Last Name",
|
|
148
|
-
required: true,
|
|
149
|
-
error: !!errors.last_name,
|
|
150
|
-
helperText: errors.last_name?.message,
|
|
151
|
-
variant
|
|
152
|
-
}
|
|
153
|
-
) }),
|
|
154
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
155
|
-
Input,
|
|
156
|
-
{
|
|
157
|
-
id: "email",
|
|
158
|
-
...register("email", {
|
|
159
|
-
required: true,
|
|
160
|
-
validate: {
|
|
161
|
-
isValid: associatedEmail
|
|
125
|
+
/* @__PURE__ */ jsxs(
|
|
126
|
+
"form",
|
|
127
|
+
{
|
|
128
|
+
className: form,
|
|
129
|
+
onSubmit: async (e) => {
|
|
130
|
+
onValidate && onValidate(e);
|
|
131
|
+
await handleSubmit(submitForm)(e);
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
},
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
136
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
137
|
+
Input,
|
|
138
|
+
{
|
|
139
|
+
id: "first_name",
|
|
140
|
+
...register("first_name", { required: true }),
|
|
141
|
+
label: "First Name",
|
|
142
|
+
sizes: "medium",
|
|
143
|
+
placeholder: "First Name",
|
|
144
|
+
required: true,
|
|
145
|
+
error: !!errors.first_name,
|
|
146
|
+
helperText: errors.first_name?.message,
|
|
147
|
+
variant
|
|
162
148
|
}
|
|
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
|
-
|
|
149
|
+
) }),
|
|
150
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
151
|
+
Input,
|
|
152
|
+
{
|
|
153
|
+
id: "last_name",
|
|
154
|
+
...register("last_name", { required: true }),
|
|
155
|
+
label: "Last Name",
|
|
156
|
+
sizes: "medium",
|
|
157
|
+
placeholder: "Last Name",
|
|
158
|
+
required: true,
|
|
159
|
+
error: !!errors.last_name,
|
|
160
|
+
helperText: errors.last_name?.message,
|
|
161
|
+
variant
|
|
162
|
+
}
|
|
163
|
+
) }),
|
|
164
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
165
|
+
Input,
|
|
166
|
+
{
|
|
167
|
+
id: "email",
|
|
168
|
+
...register("email", {
|
|
169
|
+
required: true,
|
|
170
|
+
validate: {
|
|
171
|
+
isValid: associatedEmail
|
|
172
|
+
}
|
|
173
|
+
}),
|
|
174
|
+
label: "Email",
|
|
175
|
+
sizes: "medium",
|
|
176
|
+
placeholder: "Email",
|
|
177
|
+
required: true,
|
|
178
|
+
error: !!errors.email,
|
|
179
|
+
helperText: errors.email?.message,
|
|
180
|
+
variant
|
|
181
|
+
}
|
|
182
|
+
) }),
|
|
183
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
184
|
+
InputPhone,
|
|
185
|
+
{
|
|
186
|
+
id: "phone",
|
|
187
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
188
|
+
label: "Phone",
|
|
189
|
+
sizes: "medium",
|
|
190
|
+
placeholder: "Phone",
|
|
191
|
+
required: true,
|
|
192
|
+
error: !!errors.phone,
|
|
193
|
+
helperText: errors.phone?.message,
|
|
194
|
+
variant
|
|
195
|
+
}
|
|
196
|
+
) }),
|
|
197
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
198
|
+
Input,
|
|
199
|
+
{
|
|
200
|
+
id: "Best_Contact_Date__c",
|
|
201
|
+
...register("Best_Contact_Date__c", {
|
|
202
|
+
required: true
|
|
203
|
+
}),
|
|
204
|
+
type: "date",
|
|
205
|
+
label: "Best Date to Call",
|
|
206
|
+
sizes: "medium",
|
|
207
|
+
placeholder: "Best Date to Call",
|
|
208
|
+
required: true,
|
|
209
|
+
min: (/* @__PURE__ */ new Date()).toJSON().slice(0, 10),
|
|
210
|
+
error: !!errors.Best_Contact_Date__c,
|
|
211
|
+
helperText: errors.Best_Contact_Date__c?.message,
|
|
212
|
+
variant
|
|
213
|
+
}
|
|
214
|
+
) }),
|
|
215
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
216
|
+
Dropdown,
|
|
217
|
+
{
|
|
218
|
+
id: "Best_Time_To_Call__c",
|
|
219
|
+
...register("Best_Time_To_Call__c", {
|
|
220
|
+
required: true,
|
|
221
|
+
maxLength: 12
|
|
222
|
+
}),
|
|
223
|
+
label: "Best Time to Call",
|
|
224
|
+
sizes: "medium",
|
|
225
|
+
required: true,
|
|
226
|
+
error: !!errors.Best_Time_To_Call__c,
|
|
227
|
+
helperText: errors.Best_Time_To_Call__c?.message,
|
|
228
|
+
variant,
|
|
229
|
+
defaultValue: "Best Time to Call",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
|
|
232
|
+
/* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
|
|
233
|
+
/* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
|
|
234
|
+
/* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
|
|
235
|
+
/* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
|
|
236
|
+
/* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
|
|
237
|
+
/* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
|
|
238
|
+
/* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
|
|
239
|
+
/* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
|
|
240
|
+
/* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
|
|
241
|
+
/* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
|
|
242
|
+
/* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
|
|
243
|
+
/* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
|
|
244
|
+
/* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
|
|
245
|
+
/* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
|
|
246
|
+
/* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
|
|
247
|
+
/* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
|
|
248
|
+
/* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
|
|
249
|
+
/* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
|
|
250
|
+
/* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
) }),
|
|
254
|
+
/* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
|
|
255
|
+
] }),
|
|
256
|
+
children,
|
|
257
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
258
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
259
|
+
Button,
|
|
260
|
+
{
|
|
261
|
+
color: getVariant(callToAction?.variant),
|
|
262
|
+
as: "button",
|
|
263
|
+
type: "submit",
|
|
264
|
+
disabled: !isValid,
|
|
265
|
+
children: callToAction?.displayText
|
|
266
|
+
}
|
|
267
|
+
) })
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
)
|
|
259
271
|
] }) }) }, id);
|
|
260
272
|
};
|
|
261
273
|
export {
|
|
@@ -9,4 +9,4 @@ export type ScheduleCallPremierInputs = {
|
|
|
9
9
|
Best_Time_To_Call__c: string;
|
|
10
10
|
Potential_Funding__c: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const ScheduleCallPremier: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const ScheduleCallPremier: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|