@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.
Files changed (53) hide show
  1. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  2. package/dist/Calculators/Calculator.d.ts +3 -1
  3. package/dist/Calculators/Calculator.js +4 -2
  4. package/dist/Calculators/MonthlyPaymentCalculator/index.d.ts +3 -1
  5. package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -8
  6. package/dist/Forms/ApplicationStart.d.ts +1 -1
  7. package/dist/Forms/ApplicationStart.js +101 -89
  8. package/dist/Forms/ClearingForm.d.ts +1 -1
  9. package/dist/Forms/ClearingForm.js +174 -162
  10. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  11. package/dist/Forms/CommercialDeposits.js +191 -179
  12. package/dist/Forms/CommercialLending.d.ts +1 -1
  13. package/dist/Forms/CommercialLending.js +268 -256
  14. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  15. package/dist/Forms/CommercialPremiumFinance.js +106 -94
  16. package/dist/Forms/ContactCompany.d.ts +1 -1
  17. package/dist/Forms/ContactCompany.js +103 -91
  18. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  19. package/dist/Forms/ContactCompanyTitle.js +117 -105
  20. package/dist/Forms/ContactUs.js +2 -1
  21. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  22. package/dist/Forms/ContactUsAAS.js +170 -158
  23. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  24. package/dist/Forms/ContactUsBusiness.js +124 -112
  25. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  26. package/dist/Forms/ContactUsBusinessNameEmail.js +93 -81
  27. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  28. package/dist/Forms/ContactUsLVF.js +117 -101
  29. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  30. package/dist/Forms/ContactUsNMLSId.js +107 -95
  31. package/dist/Forms/CpraRequest.d.ts +1 -1
  32. package/dist/Forms/CpraRequest.js +630 -618
  33. package/dist/Forms/CraPublicFile.d.ts +1 -1
  34. package/dist/Forms/CraPublicFile.js +99 -87
  35. package/dist/Forms/DealerServices.d.ts +1 -1
  36. package/dist/Forms/DealerServices.js +215 -203
  37. package/dist/Forms/EmailOnly.d.ts +1 -1
  38. package/dist/Forms/EmailOnly.js +46 -34
  39. package/dist/Forms/EmailUs.d.ts +1 -1
  40. package/dist/Forms/EmailUs.js +65 -53
  41. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  42. package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -343
  43. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  44. package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
  45. package/dist/Forms/ScheduleCall.d.ts +1 -1
  46. package/dist/Forms/ScheduleCall.js +146 -134
  47. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  48. package/dist/Forms/ScheduleCallPremier.js +168 -156
  49. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  50. package/dist/Forms/VendorQuestionnaire.js +807 -795
  51. package/dist/Forms/WcplSurvey.d.ts +1 -1
  52. package/dist/Forms/WcplSurvey.js +102 -90
  53. 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("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
125
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
126
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
127
- Input,
128
- {
129
- id: "first_name",
130
- ...register("first_name", { required: true }),
131
- label: "First Name",
132
- sizes: "medium",
133
- placeholder: "First Name",
134
- required: true,
135
- error: !!errors.first_name,
136
- helperText: errors.first_name?.message,
137
- variant
138
- }
139
- ) }),
140
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
141
- Input,
142
- {
143
- id: "last_name",
144
- ...register("last_name", { required: true }),
145
- label: "Last Name",
146
- sizes: "medium",
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
- label: "Email",
165
- sizes: "medium",
166
- placeholder: "Email",
167
- required: true,
168
- error: !!errors.email,
169
- helperText: errors.email?.message,
170
- variant
171
- }
172
- ) }),
173
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
174
- InputPhone,
175
- {
176
- id: "phone",
177
- ...register("phone", { required: true, maxLength: 12 }),
178
- label: "Phone",
179
- sizes: "medium",
180
- placeholder: "Phone",
181
- required: true,
182
- error: !!errors.phone,
183
- helperText: errors.phone?.message,
184
- variant
185
- }
186
- ) }),
187
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
188
- Input,
189
- {
190
- id: "Best_Contact_Date__c",
191
- ...register("Best_Contact_Date__c", {
192
- required: true
193
- }),
194
- type: "date",
195
- label: "Best Date to Call",
196
- sizes: "medium",
197
- placeholder: "Best Date to Call",
198
- required: true,
199
- min: (/* @__PURE__ */ new Date()).toJSON().slice(0, 10),
200
- error: !!errors.Best_Contact_Date__c,
201
- helperText: errors.Best_Contact_Date__c?.message,
202
- variant
203
- }
204
- ) }),
205
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
206
- Dropdown,
207
- {
208
- id: "Best_Time_To_Call__c",
209
- ...register("Best_Time_To_Call__c", {
210
- required: true,
211
- maxLength: 12
212
- }),
213
- label: "Best Time to Call",
214
- sizes: "medium",
215
- required: true,
216
- error: !!errors.Best_Time_To_Call__c,
217
- helperText: errors.Best_Time_To_Call__c?.message,
218
- variant,
219
- defaultValue: "Best Time to Call",
220
- children: [
221
- /* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
222
- /* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
223
- /* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
224
- /* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
225
- /* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
226
- /* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
227
- /* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
228
- /* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
229
- /* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
230
- /* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
231
- /* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
232
- /* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
233
- /* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
234
- /* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
235
- /* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
236
- /* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
237
- /* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
238
- /* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
239
- /* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
240
- /* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
241
- ]
242
- }
243
- ) }),
244
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
245
- ] }),
246
- children,
247
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
248
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
249
- Button,
250
- {
251
- color: getVariant(callToAction?.variant),
252
- as: "button",
253
- type: "submit",
254
- disabled: !isValid,
255
- children: callToAction?.displayText
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;