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

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 (106) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -0
  2. package/dist/Auth/ErrorAlert.js +1 -0
  3. package/dist/Button/Button.js +1 -0
  4. package/dist/Calculators/BuyDownCalculator/index.js +1 -1
  5. package/dist/Calculators/Calculator.d.ts +3 -1
  6. package/dist/Calculators/Calculator.js +5 -2
  7. package/dist/Calculators/MonthlyPaymentCalculator/index.d.ts +3 -1
  8. package/dist/Calculators/MonthlyPaymentCalculator/index.js +23 -15
  9. package/dist/Carousel/index.js +1 -0
  10. package/dist/Chevron/index.js +1 -0
  11. package/dist/Comparison/Comparison.js +1 -0
  12. package/dist/ExecutiveBio/ExecutiveBio.js +1 -0
  13. package/dist/FaqAccordion/index.js +1 -0
  14. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
  15. package/dist/Forms/ApplicationStart.d.ts +1 -1
  16. package/dist/Forms/ApplicationStart.js +111 -89
  17. package/dist/Forms/ApplyNow.d.ts +2 -2
  18. package/dist/Forms/ApplyNow.js +164 -139
  19. package/dist/Forms/ClearingForm.d.ts +1 -1
  20. package/dist/Forms/ClearingForm.js +184 -162
  21. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  22. package/dist/Forms/CommercialDeposits.js +201 -179
  23. package/dist/Forms/CommercialLending.d.ts +1 -1
  24. package/dist/Forms/CommercialLending.js +278 -256
  25. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  26. package/dist/Forms/CommercialPremiumFinance.js +128 -106
  27. package/dist/Forms/ContactCompany.d.ts +1 -1
  28. package/dist/Forms/ContactCompany.js +113 -91
  29. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  30. package/dist/Forms/ContactCompanyTitle.js +127 -105
  31. package/dist/Forms/ContactUs.d.ts +1 -1
  32. package/dist/Forms/ContactUs.js +99 -77
  33. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  34. package/dist/Forms/ContactUsAAS.js +180 -158
  35. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  36. package/dist/Forms/ContactUsBusiness.js +134 -112
  37. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  38. package/dist/Forms/ContactUsBusinessNameEmail.js +103 -81
  39. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  40. package/dist/Forms/ContactUsLVF.js +127 -101
  41. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  42. package/dist/Forms/ContactUsNMLSId.js +117 -95
  43. package/dist/Forms/CpraRequest.d.ts +1 -1
  44. package/dist/Forms/CpraRequest.js +641 -619
  45. package/dist/Forms/CraPublicFile.d.ts +1 -1
  46. package/dist/Forms/CraPublicFile.js +109 -87
  47. package/dist/Forms/DealerServices.d.ts +1 -1
  48. package/dist/Forms/DealerServices.js +225 -204
  49. package/dist/Forms/EmailOnly.d.ts +1 -1
  50. package/dist/Forms/EmailOnly.js +56 -36
  51. package/dist/Forms/EmailUs.d.ts +1 -1
  52. package/dist/Forms/EmailUs.js +75 -53
  53. package/dist/Forms/FormProps.d.ts +3 -0
  54. package/dist/Forms/Forms.css.d.ts +18 -0
  55. package/dist/Forms/Forms.css.js +44 -38
  56. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  57. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  58. package/dist/Forms/HoneyPot/index.d.ts +24 -0
  59. package/dist/Forms/HoneyPot/index.js +71 -0
  60. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  61. package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -342
  62. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -0
  63. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  64. package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
  65. package/dist/Forms/ScheduleCall.d.ts +1 -1
  66. package/dist/Forms/ScheduleCall.js +156 -134
  67. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  68. package/dist/Forms/ScheduleCallPremier.js +178 -156
  69. package/dist/Forms/SuccesForm.js +1 -0
  70. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  71. package/dist/Forms/VendorQuestionnaire.js +817 -795
  72. package/dist/Forms/WcplSurvey.d.ts +1 -1
  73. package/dist/Forms/WcplSurvey.js +112 -90
  74. package/dist/Forms/applynow-utils.d.ts +1 -0
  75. package/dist/Forms/applynow-utils.js +48 -0
  76. package/dist/Forms/index.d.ts +2 -0
  77. package/dist/Forms/index.js +10 -2
  78. package/dist/Hyperlink/index.js +1 -0
  79. package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
  80. package/dist/ImageLink/ImageLink.js +1 -0
  81. package/dist/ImageLink/ImageLinkSet.js +1 -0
  82. package/dist/ImageLink/index.js +1 -0
  83. package/dist/Input/Input.js +3 -1
  84. package/dist/Insight/Featured/CategorySelector.js +1 -0
  85. package/dist/Insight/Featured/Featured.js +1 -0
  86. package/dist/Insight/Featured/Header.js +1 -0
  87. package/dist/Modal/Modal.js +1 -0
  88. package/dist/NavigationMenu/AxosALTS/NavData.js +1 -0
  89. package/dist/NavigationMenu/AxosALTS/index.js +1 -0
  90. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +13 -4
  91. package/dist/NavigationMenu/AxosBank/NavData.js +1 -0
  92. package/dist/NavigationMenu/AxosBank/SubNavBar.js +14 -5
  93. package/dist/NavigationMenu/AxosBank/index.js +1 -0
  94. package/dist/NavigationMenu/LaVictoire/NavData.js +1 -0
  95. package/dist/NavigationMenu/LaVictoire/index.js +1 -0
  96. package/dist/NavigationMenu/NavDataJson.js +1 -0
  97. package/dist/NavigationMenu/Navbar.js +1 -0
  98. package/dist/NavigationMenu/SignInNavButton.js +1 -0
  99. package/dist/SetContainer/SetContainer.js +1 -0
  100. package/dist/SocialMediaBar/iconsRepository.js +1 -0
  101. package/dist/VideoTile/VideoTile.js +1 -0
  102. package/dist/VideoWrapper/index.js +1 -0
  103. package/dist/assets/Forms/Forms.css +136 -105
  104. package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
  105. package/dist/main.js +10 -2
  106. package/package.json +1 -1
@@ -32,6 +32,7 @@ import clsx from "clsx";
32
32
  import { useForm, FormProvider } from "react-hook-form";
33
33
  import * as z from "zod";
34
34
  import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
35
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
35
36
  const ContactUsLVF = ({
36
37
  icon = false,
37
38
  children,
@@ -44,7 +45,9 @@ const ContactUsLVF = ({
44
45
  description,
45
46
  callToAction,
46
47
  validateEmail,
47
- id
48
+ onValidate,
49
+ id,
50
+ dealerCheckbox = true
48
51
  }) => {
49
52
  const schema = z.object({
50
53
  firstname: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g, {
@@ -75,11 +78,22 @@ const ContactUsLVF = ({
75
78
  message: z.string().min(1, { message: "Please complete this required field." }),
76
79
  checkbox: z.boolean()
77
80
  });
81
+ const gen_schema = schema.merge(honeyPotSchema).superRefine((data, ctx) => {
82
+ if (!isValidHoneyPot(data)) {
83
+ ctx.addIssue({
84
+ code: z.ZodIssueCode.custom,
85
+ message: "fields are not valid."
86
+ });
87
+ }
88
+ });
78
89
  const methods = useForm({
79
- resolver: zodResolver(schema, {
90
+ resolver: zodResolver(gen_schema, {
80
91
  async: true
81
92
  }),
82
- mode: "all"
93
+ mode: "all",
94
+ defaultValues: {
95
+ checkbox: false
96
+ }
83
97
  });
84
98
  const {
85
99
  handleSubmit,
@@ -112,7 +126,8 @@ const ContactUsLVF = ({
112
126
  await onSubmit({
113
127
  fields: formattedFieldsData,
114
128
  context: contextData,
115
- legalConsentOptions: legalConsentData
129
+ legalConsentOptions: legalConsentData,
130
+ form: "contactUSLVF"
116
131
  });
117
132
  };
118
133
  const variant = getVariant(fullVariant);
@@ -128,104 +143,115 @@ const ContactUsLVF = ({
128
143
  }
129
144
  )
130
145
  ] }),
131
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
132
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
133
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
134
- Input,
135
- {
136
- id: "firstname",
137
- ...register("firstname", { required: true }),
138
- sizes: "medium",
139
- placeholder: "First Name",
140
- required: true,
141
- error: !!errors.firstname,
142
- helperText: errors.firstname?.message,
143
- variant
144
- }
145
- ) }),
146
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
147
- Input,
148
- {
149
- id: "lastname",
150
- ...register("lastname", { required: true }),
151
- sizes: "medium",
152
- placeholder: "Last Name",
153
- required: true,
154
- error: !!errors.lastname,
155
- helperText: errors.lastname?.message,
156
- variant
157
- }
158
- ) }),
159
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
160
- Input,
161
- {
162
- id: "email",
163
- ...register("email", {
164
- required: true,
165
- validate: {
166
- isValid: associatedEmail
146
+ /* @__PURE__ */ jsxs(
147
+ "form",
148
+ {
149
+ className: form,
150
+ onSubmit: async (e) => {
151
+ onValidate && onValidate(e);
152
+ await handleSubmit(submitForm)(e);
153
+ e.preventDefault();
154
+ },
155
+ children: [
156
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
157
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
158
+ Input,
159
+ {
160
+ id: "firstname",
161
+ ...register("firstname", { required: true }),
162
+ sizes: "medium",
163
+ placeholder: "First Name",
164
+ required: true,
165
+ error: !!errors.firstname,
166
+ helperText: errors.firstname?.message,
167
+ variant
167
168
  }
168
- }),
169
- sizes: "medium",
170
- placeholder: "Email",
171
- required: true,
172
- error: !!errors.email,
173
- helperText: errors.email?.message,
174
- variant
175
- }
176
- ) }),
177
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
178
- InputPhone,
179
- {
180
- id: "phone",
181
- ...register("phone", { required: true, maxLength: 12 }),
182
- sizes: "medium",
183
- placeholder: "Phone Number",
184
- required: true,
185
- error: !!errors.phone,
186
- helperText: errors.phone?.message,
187
- variant
188
- }
189
- ) }),
190
- /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm), children: /* @__PURE__ */ jsx(
191
- InputTextArea,
192
- {
193
- id: "message",
194
- ...register("message"),
195
- sizes: "medium",
196
- placeholder: "Message",
197
- error: !!errors.message,
198
- helperText: errors.message?.message,
199
- variant
200
- }
201
- ) }),
202
- " ",
203
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
204
- Checkbox,
205
- {
206
- id: "checkbox",
207
- ...register("checkbox"),
208
- sizes: "medium",
209
- error: !!errors.checkbox,
210
- helperText: errors.checkbox?.message,
211
- variant,
212
- children: "I'm a Dealer interested in Inventory Financing."
213
- }
214
- ) })
215
- ] }),
216
- children,
217
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
218
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
219
- Button,
220
- {
221
- color: getVariant(callToAction?.variant),
222
- as: "button",
223
- type: "submit",
224
- disabled: !isValid || isSubmitting,
225
- children: callToAction?.displayText
226
- }
227
- ) })
228
- ] })
169
+ ) }),
170
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
171
+ Input,
172
+ {
173
+ id: "lastname",
174
+ ...register("lastname", { required: true }),
175
+ sizes: "medium",
176
+ placeholder: "Last Name",
177
+ required: true,
178
+ error: !!errors.lastname,
179
+ helperText: errors.lastname?.message,
180
+ variant
181
+ }
182
+ ) }),
183
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
184
+ Input,
185
+ {
186
+ id: "email",
187
+ ...register("email", {
188
+ required: true,
189
+ validate: {
190
+ isValid: associatedEmail
191
+ }
192
+ }),
193
+ sizes: "medium",
194
+ placeholder: "Email",
195
+ required: true,
196
+ error: !!errors.email,
197
+ helperText: errors.email?.message,
198
+ variant
199
+ }
200
+ ) }),
201
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
202
+ InputPhone,
203
+ {
204
+ id: "phone",
205
+ ...register("phone", { required: true, maxLength: 12 }),
206
+ sizes: "medium",
207
+ placeholder: "Phone Number",
208
+ required: true,
209
+ error: !!errors.phone,
210
+ helperText: errors.phone?.message,
211
+ variant
212
+ }
213
+ ) }),
214
+ /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm), children: /* @__PURE__ */ jsx(
215
+ InputTextArea,
216
+ {
217
+ id: "message",
218
+ ...register("message"),
219
+ sizes: "medium",
220
+ placeholder: "Message",
221
+ error: !!errors.message,
222
+ helperText: errors.message?.message,
223
+ variant
224
+ }
225
+ ) }),
226
+ dealerCheckbox && /* @__PURE__ */ jsx("div", { className: clsx(fullRowForm), children: /* @__PURE__ */ jsx(
227
+ Checkbox,
228
+ {
229
+ id: "checkbox",
230
+ ...register("checkbox"),
231
+ sizes: "medium",
232
+ error: !!errors.checkbox,
233
+ helperText: errors.checkbox?.message,
234
+ variant,
235
+ children: "I'm a Dealer interested in Inventory Financing."
236
+ }
237
+ ) }),
238
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
239
+ ] }),
240
+ children,
241
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
242
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
243
+ Button,
244
+ {
245
+ color: getVariant(callToAction?.variant),
246
+ as: "button",
247
+ type: "submit",
248
+ disabled: !isValid || isSubmitting,
249
+ children: callToAction?.displayText
250
+ }
251
+ ) })
252
+ ]
253
+ }
254
+ )
229
255
  ] }) }) }, id);
230
256
  };
231
257
  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;
@@ -44,6 +44,7 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
44
44
  import { useForm, FormProvider } from "react-hook-form";
45
45
  import { z } from "zod";
46
46
  import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
47
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
47
48
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
48
49
  /* empty css */
49
50
  /* empty css */
@@ -138,6 +139,7 @@ const ContactUsNMLSId = ({
138
139
  description,
139
140
  callToAction,
140
141
  validateEmail,
142
+ onValidate,
141
143
  id
142
144
  }) => {
143
145
  const schema = z.object({
@@ -164,9 +166,17 @@ const ContactUsNMLSId = ({
164
166
  }),
165
167
  NMLS_ID__c: z.string().min(6).max(7)
166
168
  });
169
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
170
+ if (!isValidHoneyPot(data)) {
171
+ ctx.addIssue({
172
+ code: z.ZodIssueCode.custom,
173
+ message: "fields are not valid."
174
+ });
175
+ }
176
+ });
167
177
  const methods = useForm({
168
178
  resolver: zodResolver(
169
- schema.merge(SalesforceSchema),
179
+ gen_schema,
170
180
  {
171
181
  async: true
172
182
  },
@@ -203,100 +213,112 @@ const ContactUsNMLSId = ({
203
213
  }
204
214
  )
205
215
  ] }),
206
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
207
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
208
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
209
- Input,
210
- {
211
- id: "first_name",
212
- ...register("first_name", { required: true }),
213
- label: "First Name",
214
- sizes: "medium",
215
- placeholder: "First Name",
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
- placeholder: "Last Name",
230
- required: true,
231
- error: !!errors.last_name,
232
- helperText: errors.last_name?.message,
233
- variant
234
- }
235
- ) }),
236
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
237
- Input,
238
- {
239
- id: "email",
240
- ...register("email", {
241
- required: true
242
- }),
243
- type: "email",
244
- label: "Email",
245
- sizes: "medium",
246
- placeholder: "Email",
247
- required: true,
248
- error: !!errors.email,
249
- helperText: errors.email?.message,
250
- variant
251
- }
252
- ) }),
253
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
254
- InputPhone,
255
- {
256
- id: "phone",
257
- ...register("phone", { required: true, maxLength: 12 }),
258
- label: "Phone",
259
- sizes: "medium",
260
- placeholder: "Phone",
261
- type: "tel",
262
- required: true,
263
- error: !!errors.phone,
264
- helperText: errors.phone?.message,
265
- variant
266
- }
267
- ) }),
268
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
269
- Input,
270
- {
271
- id: "NMLS_ID__c",
272
- ...register("NMLS_ID__c", {
273
- required: true,
274
- min: 6,
275
- max: 7
276
- }),
277
- label: "Company NMLS ID",
278
- placeholder: "Company NMLS ID",
279
- sizes: "medium",
280
- required: true,
281
- error: !!errors.NMLS_ID__c,
282
- helperText: errors.NMLS_ID__c?.message,
283
- variant
284
- }
285
- ) })
286
- ] }),
287
- children,
288
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
289
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
290
- Button,
291
- {
292
- color: getVariant(callToAction?.variant),
293
- as: "button",
294
- type: "submit",
295
- disabled: !isValid || isSubmitting,
296
- children: callToAction?.displayText
297
- }
298
- ) })
299
- ] })
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
+ )
300
322
  ] }) }) }, id);
301
323
  };
302
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;