@axos-web-dev/shared-components 1.0.77-patch.19 → 1.0.77-patch.21

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