@axos-web-dev/shared-components 1.0.99-honeypot.1 → 1.0.99-sectionSpacerRemoved

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 (59) hide show
  1. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  2. package/dist/Forms/ApplicationStart.d.ts +1 -1
  3. package/dist/Forms/ApplicationStart.js +101 -89
  4. package/dist/Forms/ClearingForm.d.ts +1 -1
  5. package/dist/Forms/ClearingForm.js +174 -162
  6. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  7. package/dist/Forms/CommercialDeposits.js +191 -179
  8. package/dist/Forms/CommercialLending.d.ts +1 -1
  9. package/dist/Forms/CommercialLending.js +268 -256
  10. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  11. package/dist/Forms/CommercialPremiumFinance.js +106 -94
  12. package/dist/Forms/ContactCompany.d.ts +1 -1
  13. package/dist/Forms/ContactCompany.js +103 -91
  14. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  15. package/dist/Forms/ContactCompanyTitle.js +117 -105
  16. package/dist/Forms/ContactUs.d.ts +1 -1
  17. package/dist/Forms/ContactUs.js +90 -79
  18. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  19. package/dist/Forms/ContactUsAAS.js +170 -158
  20. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  21. package/dist/Forms/ContactUsBusiness.js +124 -112
  22. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  23. package/dist/Forms/ContactUsBusinessNameEmail.js +93 -81
  24. package/dist/Forms/ContactUsLVF.d.ts +1 -1
  25. package/dist/Forms/ContactUsLVF.js +110 -98
  26. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  27. package/dist/Forms/ContactUsNMLSId.js +107 -95
  28. package/dist/Forms/CpraRequest.d.ts +1 -1
  29. package/dist/Forms/CpraRequest.js +630 -618
  30. package/dist/Forms/CraPublicFile.d.ts +1 -1
  31. package/dist/Forms/CraPublicFile.js +99 -87
  32. package/dist/Forms/DealerServices.d.ts +1 -1
  33. package/dist/Forms/DealerServices.js +215 -203
  34. package/dist/Forms/EmailOnly.d.ts +1 -1
  35. package/dist/Forms/EmailOnly.js +46 -34
  36. package/dist/Forms/EmailUs.d.ts +1 -1
  37. package/dist/Forms/EmailUs.js +65 -53
  38. package/dist/Forms/FormProps.d.ts +3 -0
  39. package/dist/Forms/HoneyPot/index.js +2 -3
  40. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  41. package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -343
  42. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  43. package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
  44. package/dist/Forms/ScheduleCall.d.ts +1 -1
  45. package/dist/Forms/ScheduleCall.js +146 -134
  46. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  47. package/dist/Forms/ScheduleCallPremier.js +168 -156
  48. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  49. package/dist/Forms/VendorQuestionnaire.js +807 -795
  50. package/dist/Forms/WcplSurvey.d.ts +1 -1
  51. package/dist/Forms/WcplSurvey.js +102 -90
  52. package/dist/WalnutIframe/wrapper.module.js +3 -3
  53. package/dist/assets/AwardsBanner/AwardsBanner.css +0 -3
  54. package/dist/assets/IconBillboard/IconBillboard.css +3 -0
  55. package/dist/assets/TopicalNavSet/TopicalNavSet.css +3 -0
  56. package/dist/assets/WalnutIframe/wrapper.css.css +49 -49
  57. package/dist/assets/globals.css +11 -0
  58. package/dist/utils/allowedAxosDomains.js +2 -1
  59. package/package.json +1 -1
@@ -139,6 +139,7 @@ const ContactUsBusinessNameAndEmail = ({
139
139
  description,
140
140
  callToAction,
141
141
  validateEmail,
142
+ onValidate,
142
143
  id
143
144
  }) => {
144
145
  const schema = z.object({
@@ -194,87 +195,98 @@ const ContactUsBusinessNameAndEmail = ({
194
195
  }
195
196
  )
196
197
  ] }),
197
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
198
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
199
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
200
- Input,
201
- {
202
- id: "first_name",
203
- ...register("first_name", { required: true }),
204
- label: "First Name",
205
- sizes: "medium",
206
- required: true,
207
- error: !!errors.first_name,
208
- helperText: errors.first_name?.message,
209
- variant
210
- }
211
- ) }),
212
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
213
- Input,
214
- {
215
- id: "last_name",
216
- ...register("last_name", { required: true }),
217
- label: "Last Name",
218
- sizes: "medium",
219
- required: true,
220
- error: !!errors.last_name,
221
- helperText: errors.last_name?.message,
222
- variant
223
- }
224
- ) }),
225
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
226
- Input,
227
- {
228
- id: "Business_Name__c",
229
- ...register("Business_Name__c", {
230
- required: true
231
- }),
232
- type: "text",
233
- label: "Business Name",
234
- sizes: "medium",
235
- required: true,
236
- error: !!errors.Business_Name__c,
237
- helperText: errors.Business_Name__c?.message,
238
- variant
239
- }
240
- ) }),
241
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
242
- Input,
243
- {
244
- id: "email",
245
- ...register("email", {
246
- required: true
247
- }),
248
- type: "email",
249
- label: "Business Email",
250
- sizes: "medium",
251
- required: true,
252
- error: !!errors.email,
253
- helperText: errors.email?.message,
254
- variant
255
- }
256
- ) }),
257
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
258
- ] }),
259
- children,
260
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
261
- /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
262
- LoadingIndicator,
263
- {
264
- style: { marginInline: "auto" },
265
- variant
266
- }
267
- ) : /* @__PURE__ */ jsx(
268
- Button,
269
- {
270
- color: getVariant(callToAction?.variant),
271
- as: "button",
272
- type: "submit",
273
- disabled: !isValid || isSubmitting,
274
- children: callToAction?.displayText
275
- }
276
- ) })
277
- ] })
198
+ /* @__PURE__ */ jsxs(
199
+ "form",
200
+ {
201
+ className: form,
202
+ onSubmit: async (e) => {
203
+ onValidate && onValidate(e);
204
+ await handleSubmit(submitForm)(e);
205
+ e.preventDefault();
206
+ },
207
+ children: [
208
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
209
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
210
+ Input,
211
+ {
212
+ id: "first_name",
213
+ ...register("first_name", { required: true }),
214
+ label: "First Name",
215
+ sizes: "medium",
216
+ required: true,
217
+ error: !!errors.first_name,
218
+ helperText: errors.first_name?.message,
219
+ variant
220
+ }
221
+ ) }),
222
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
223
+ Input,
224
+ {
225
+ id: "last_name",
226
+ ...register("last_name", { required: true }),
227
+ label: "Last Name",
228
+ sizes: "medium",
229
+ required: true,
230
+ error: !!errors.last_name,
231
+ helperText: errors.last_name?.message,
232
+ variant
233
+ }
234
+ ) }),
235
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
236
+ Input,
237
+ {
238
+ id: "Business_Name__c",
239
+ ...register("Business_Name__c", {
240
+ required: true
241
+ }),
242
+ type: "text",
243
+ label: "Business Name",
244
+ sizes: "medium",
245
+ required: true,
246
+ error: !!errors.Business_Name__c,
247
+ helperText: errors.Business_Name__c?.message,
248
+ variant
249
+ }
250
+ ) }),
251
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
252
+ Input,
253
+ {
254
+ id: "email",
255
+ ...register("email", {
256
+ required: true
257
+ }),
258
+ type: "email",
259
+ label: "Business Email",
260
+ sizes: "medium",
261
+ required: true,
262
+ error: !!errors.email,
263
+ helperText: errors.email?.message,
264
+ variant
265
+ }
266
+ ) }),
267
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
268
+ ] }),
269
+ children,
270
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
271
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
272
+ LoadingIndicator,
273
+ {
274
+ style: { marginInline: "auto" },
275
+ variant
276
+ }
277
+ ) : /* @__PURE__ */ jsx(
278
+ Button,
279
+ {
280
+ color: getVariant(callToAction?.variant),
281
+ as: "button",
282
+ type: "submit",
283
+ disabled: !isValid || isSubmitting,
284
+ children: callToAction?.displayText
285
+ }
286
+ ) })
287
+ ]
288
+ }
289
+ )
278
290
  ] }) }) }, id);
279
291
  };
280
292
  export {
@@ -8,4 +8,4 @@ export type ContactUsLaVictoireInputs = {
8
8
  message: string;
9
9
  checkbox: boolean;
10
10
  };
11
- export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -45,6 +45,7 @@ const ContactUsLVF = ({
45
45
  description,
46
46
  callToAction,
47
47
  validateEmail,
48
+ onValidate,
48
49
  id
49
50
  }) => {
50
51
  const schema = z.object({
@@ -137,105 +138,116 @@ const ContactUsLVF = ({
137
138
  }
138
139
  )
139
140
  ] }),
140
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
141
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
142
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
143
- Input,
144
- {
145
- id: "firstname",
146
- ...register("firstname", { required: true }),
147
- sizes: "medium",
148
- placeholder: "First Name",
149
- required: true,
150
- error: !!errors.firstname,
151
- helperText: errors.firstname?.message,
152
- variant
153
- }
154
- ) }),
155
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
156
- Input,
157
- {
158
- id: "lastname",
159
- ...register("lastname", { required: true }),
160
- sizes: "medium",
161
- placeholder: "Last Name",
162
- required: true,
163
- error: !!errors.lastname,
164
- helperText: errors.lastname?.message,
165
- variant
166
- }
167
- ) }),
168
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
169
- Input,
170
- {
171
- id: "email",
172
- ...register("email", {
173
- required: true,
174
- validate: {
175
- isValid: associatedEmail
141
+ /* @__PURE__ */ jsxs(
142
+ "form",
143
+ {
144
+ className: form,
145
+ onSubmit: async (e) => {
146
+ onValidate && onValidate(e);
147
+ await handleSubmit(submitForm)(e);
148
+ e.preventDefault();
149
+ },
150
+ children: [
151
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
152
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
153
+ Input,
154
+ {
155
+ id: "firstname",
156
+ ...register("firstname", { required: true }),
157
+ sizes: "medium",
158
+ placeholder: "First Name",
159
+ required: true,
160
+ error: !!errors.firstname,
161
+ helperText: errors.firstname?.message,
162
+ variant
176
163
  }
177
- }),
178
- sizes: "medium",
179
- placeholder: "Email",
180
- required: true,
181
- error: !!errors.email,
182
- helperText: errors.email?.message,
183
- variant
184
- }
185
- ) }),
186
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
187
- InputPhone,
188
- {
189
- id: "phone",
190
- ...register("phone", { required: true, maxLength: 12 }),
191
- sizes: "medium",
192
- placeholder: "Phone Number",
193
- required: true,
194
- error: !!errors.phone,
195
- helperText: errors.phone?.message,
196
- variant
197
- }
198
- ) }),
199
- /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm), children: /* @__PURE__ */ jsx(
200
- InputTextArea,
201
- {
202
- id: "message",
203
- ...register("message"),
204
- sizes: "medium",
205
- placeholder: "Message",
206
- error: !!errors.message,
207
- helperText: errors.message?.message,
208
- variant
209
- }
210
- ) }),
211
- " ",
212
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
213
- Checkbox,
214
- {
215
- id: "checkbox",
216
- ...register("checkbox"),
217
- sizes: "medium",
218
- error: !!errors.checkbox,
219
- helperText: errors.checkbox?.message,
220
- variant,
221
- children: "I'm a Dealer interested in Inventory Financing."
222
- }
223
- ) }),
224
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
225
- ] }),
226
- children,
227
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
228
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
229
- Button,
230
- {
231
- color: getVariant(callToAction?.variant),
232
- as: "button",
233
- type: "submit",
234
- disabled: !isValid || isSubmitting,
235
- children: callToAction?.displayText
236
- }
237
- ) })
238
- ] })
164
+ ) }),
165
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
166
+ Input,
167
+ {
168
+ id: "lastname",
169
+ ...register("lastname", { required: true }),
170
+ sizes: "medium",
171
+ placeholder: "Last Name",
172
+ required: true,
173
+ error: !!errors.lastname,
174
+ helperText: errors.lastname?.message,
175
+ variant
176
+ }
177
+ ) }),
178
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
179
+ Input,
180
+ {
181
+ id: "email",
182
+ ...register("email", {
183
+ required: true,
184
+ validate: {
185
+ isValid: associatedEmail
186
+ }
187
+ }),
188
+ sizes: "medium",
189
+ placeholder: "Email",
190
+ required: true,
191
+ error: !!errors.email,
192
+ helperText: errors.email?.message,
193
+ variant
194
+ }
195
+ ) }),
196
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
197
+ InputPhone,
198
+ {
199
+ id: "phone",
200
+ ...register("phone", { required: true, maxLength: 12 }),
201
+ sizes: "medium",
202
+ placeholder: "Phone Number",
203
+ required: true,
204
+ error: !!errors.phone,
205
+ helperText: errors.phone?.message,
206
+ variant
207
+ }
208
+ ) }),
209
+ /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm), children: /* @__PURE__ */ jsx(
210
+ InputTextArea,
211
+ {
212
+ id: "message",
213
+ ...register("message"),
214
+ sizes: "medium",
215
+ placeholder: "Message",
216
+ error: !!errors.message,
217
+ helperText: errors.message?.message,
218
+ variant
219
+ }
220
+ ) }),
221
+ " ",
222
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
223
+ Checkbox,
224
+ {
225
+ id: "checkbox",
226
+ ...register("checkbox"),
227
+ sizes: "medium",
228
+ error: !!errors.checkbox,
229
+ helperText: errors.checkbox?.message,
230
+ variant,
231
+ children: "I'm a Dealer interested in Inventory Financing."
232
+ }
233
+ ) }),
234
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
235
+ ] }),
236
+ children,
237
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
238
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
239
+ Button,
240
+ {
241
+ color: getVariant(callToAction?.variant),
242
+ as: "button",
243
+ type: "submit",
244
+ disabled: !isValid || isSubmitting,
245
+ children: callToAction?.displayText
246
+ }
247
+ ) })
248
+ ]
249
+ }
250
+ )
239
251
  ] }) }) }, id);
240
252
  };
241
253
  export {
@@ -7,4 +7,4 @@ export type ContactUsNmlsIdInputs = {
7
7
  phone: string;
8
8
  NMLS_ID__c: string;
9
9
  };
10
- export declare const ContactUsNMLSId: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const ContactUsNMLSId: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -139,6 +139,7 @@ const ContactUsNMLSId = ({
139
139
  description,
140
140
  callToAction,
141
141
  validateEmail,
142
+ onValidate,
142
143
  id
143
144
  }) => {
144
145
  const schema = z.object({
@@ -212,101 +213,112 @@ const ContactUsNMLSId = ({
212
213
  }
213
214
  )
214
215
  ] }),
215
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
216
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
217
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
218
- Input,
219
- {
220
- id: "first_name",
221
- ...register("first_name", { required: true }),
222
- label: "First Name",
223
- sizes: "medium",
224
- placeholder: "First Name",
225
- required: true,
226
- error: !!errors.first_name,
227
- helperText: errors.first_name?.message,
228
- variant
229
- }
230
- ) }),
231
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
232
- Input,
233
- {
234
- id: "last_name",
235
- ...register("last_name", { required: true }),
236
- label: "Last Name",
237
- sizes: "medium",
238
- placeholder: "Last Name",
239
- required: true,
240
- error: !!errors.last_name,
241
- helperText: errors.last_name?.message,
242
- variant
243
- }
244
- ) }),
245
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
246
- Input,
247
- {
248
- id: "email",
249
- ...register("email", {
250
- required: true
251
- }),
252
- type: "email",
253
- label: "Email",
254
- sizes: "medium",
255
- placeholder: "Email",
256
- required: true,
257
- error: !!errors.email,
258
- helperText: errors.email?.message,
259
- variant
260
- }
261
- ) }),
262
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
263
- InputPhone,
264
- {
265
- id: "phone",
266
- ...register("phone", { required: true, maxLength: 12 }),
267
- label: "Phone",
268
- sizes: "medium",
269
- placeholder: "Phone",
270
- type: "tel",
271
- required: true,
272
- error: !!errors.phone,
273
- helperText: errors.phone?.message,
274
- variant
275
- }
276
- ) }),
277
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
278
- Input,
279
- {
280
- id: "NMLS_ID__c",
281
- ...register("NMLS_ID__c", {
282
- required: true,
283
- min: 6,
284
- max: 7
285
- }),
286
- label: "Company NMLS ID",
287
- placeholder: "Company NMLS ID",
288
- sizes: "medium",
289
- required: true,
290
- error: !!errors.NMLS_ID__c,
291
- helperText: errors.NMLS_ID__c?.message,
292
- variant
293
- }
294
- ) }),
295
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
296
- ] }),
297
- children,
298
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
299
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
300
- Button,
301
- {
302
- color: getVariant(callToAction?.variant),
303
- as: "button",
304
- type: "submit",
305
- disabled: !isValid || isSubmitting,
306
- children: callToAction?.displayText
307
- }
308
- ) })
309
- ] })
216
+ /* @__PURE__ */ jsxs(
217
+ "form",
218
+ {
219
+ className: form,
220
+ onSubmit: async (e) => {
221
+ onValidate && onValidate(e);
222
+ await handleSubmit(submitForm)(e);
223
+ e.preventDefault();
224
+ },
225
+ children: [
226
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
227
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
228
+ Input,
229
+ {
230
+ id: "first_name",
231
+ ...register("first_name", { required: true }),
232
+ label: "First Name",
233
+ sizes: "medium",
234
+ placeholder: "First Name",
235
+ required: true,
236
+ error: !!errors.first_name,
237
+ helperText: errors.first_name?.message,
238
+ variant
239
+ }
240
+ ) }),
241
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
242
+ Input,
243
+ {
244
+ id: "last_name",
245
+ ...register("last_name", { required: true }),
246
+ label: "Last Name",
247
+ sizes: "medium",
248
+ placeholder: "Last Name",
249
+ required: true,
250
+ error: !!errors.last_name,
251
+ helperText: errors.last_name?.message,
252
+ variant
253
+ }
254
+ ) }),
255
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
256
+ Input,
257
+ {
258
+ id: "email",
259
+ ...register("email", {
260
+ required: true
261
+ }),
262
+ type: "email",
263
+ label: "Email",
264
+ sizes: "medium",
265
+ placeholder: "Email",
266
+ required: true,
267
+ error: !!errors.email,
268
+ helperText: errors.email?.message,
269
+ variant
270
+ }
271
+ ) }),
272
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
273
+ InputPhone,
274
+ {
275
+ id: "phone",
276
+ ...register("phone", { required: true, maxLength: 12 }),
277
+ label: "Phone",
278
+ sizes: "medium",
279
+ placeholder: "Phone",
280
+ type: "tel",
281
+ required: true,
282
+ error: !!errors.phone,
283
+ helperText: errors.phone?.message,
284
+ variant
285
+ }
286
+ ) }),
287
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
288
+ Input,
289
+ {
290
+ id: "NMLS_ID__c",
291
+ ...register("NMLS_ID__c", {
292
+ required: true,
293
+ min: 6,
294
+ max: 7
295
+ }),
296
+ label: "Company NMLS ID",
297
+ placeholder: "Company NMLS ID",
298
+ sizes: "medium",
299
+ required: true,
300
+ error: !!errors.NMLS_ID__c,
301
+ helperText: errors.NMLS_ID__c?.message,
302
+ variant
303
+ }
304
+ ) }),
305
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
306
+ ] }),
307
+ children,
308
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
309
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
310
+ Button,
311
+ {
312
+ color: getVariant(callToAction?.variant),
313
+ as: "button",
314
+ type: "submit",
315
+ disabled: !isValid || isSubmitting,
316
+ children: callToAction?.displayText
317
+ }
318
+ ) })
319
+ ]
320
+ }
321
+ )
310
322
  ] }) }) }, id);
311
323
  };
312
324
  export {
@@ -24,4 +24,4 @@ export type CpraInputs = {
24
24
  Zip_Code: string;
25
25
  Contact_Method: "Email" | "Postal Mail";
26
26
  };
27
- export declare const CpraRequest: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const CpraRequest: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;