@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
@@ -622,7 +622,7 @@ const BuyDownCalculator = ({
622
622
  id: "mooringOutsideContinentalUS",
623
623
  ...register("mooringOutsideContinentalUS"),
624
624
  value: 0.5,
625
- radioText: "Mooring Outside Continental U.S. (Includes Puerto Rico,\r\n Hawaii, and Alaska) (Does not apply to Full Time Charter)\r\n +0.500",
625
+ radioText: "Mooring Outside Continental U.S. (Includes Puerto Rico,\n Hawaii, and Alaska) (Does not apply to Full Time Charter)\n +0.500",
626
626
  groupName: "dependentInputs",
627
627
  disabled: disableMooringOutside
628
628
  }
@@ -9,4 +9,4 @@ export type ApplicationStartInputs = {
9
9
  Send_SMS__c: boolean;
10
10
  DoNotCall: boolean;
11
11
  };
12
- export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ApplicationStart: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -46,6 +46,7 @@ const ApplicationStart = ({
46
46
  description,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  id
50
51
  }) => {
51
52
  const schema = z.object({
@@ -119,96 +120,107 @@ const ApplicationStart = ({
119
120
  }
120
121
  )
121
122
  ] }),
122
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
123
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
124
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
125
- Input,
126
- {
127
- id: "first_name",
128
- ...register("first_name", { required: true }),
129
- label: "First Name",
130
- sizes: "medium",
131
- placeholder: "First Name",
132
- required: true,
133
- error: !!errors.first_name,
134
- helperText: errors.first_name?.message,
135
- variant
136
- }
137
- ) }),
138
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
139
- Input,
140
- {
141
- id: "last_name",
142
- ...register("last_name", { required: true }),
143
- label: "Last Name",
144
- sizes: "medium",
145
- placeholder: "Last Name",
146
- required: true,
147
- error: !!errors.last_name,
148
- helperText: errors.last_name?.message,
149
- variant
150
- }
151
- ) }),
152
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
153
- Input,
154
- {
155
- id: "email",
156
- ...register("email", {
157
- required: true,
158
- validate: {
159
- isValid: associatedEmail
123
+ /* @__PURE__ */ jsxs(
124
+ "form",
125
+ {
126
+ className: form,
127
+ onSubmit: async (e) => {
128
+ onValidate && onValidate(e);
129
+ await handleSubmit(submitForm)(e);
130
+ e.preventDefault();
131
+ },
132
+ children: [
133
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
134
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
135
+ Input,
136
+ {
137
+ id: "first_name",
138
+ ...register("first_name", { required: true }),
139
+ label: "First Name",
140
+ sizes: "medium",
141
+ placeholder: "First Name",
142
+ required: true,
143
+ error: !!errors.first_name,
144
+ helperText: errors.first_name?.message,
145
+ variant
160
146
  }
161
- }),
162
- label: "Email",
163
- sizes: "medium",
164
- placeholder: "Email",
165
- required: true,
166
- error: !!errors.email,
167
- helperText: errors.email?.message,
168
- variant
169
- }
170
- ) }),
171
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
172
- InputPhone,
173
- {
174
- id: "phone",
175
- ...register("phone", { required: true, maxLength: 12 }),
176
- label: "Phone",
177
- sizes: "medium",
178
- placeholder: "Phone",
179
- required: true,
180
- error: !!errors.phone,
181
- helperText: errors.phone?.message,
182
- variant
183
- }
184
- ) }),
185
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
186
- Checkbox,
187
- {
188
- id: "checkbox__c",
189
- ...register("checkbox__c"),
190
- sizes: "medium",
191
- error: !!errors.checkbox__c,
192
- helperText: errors.checkbox__c?.message,
193
- variant,
194
- children: "By providing your phone number and selecting the checkbox, you have agreed to these Terms and Conditions, and you have agreed to receive automated text messages, calls, and emails for any purpose including but not limited to marketing of products and services by Axos Bank. You understand and agree that such messages may be sent via Automatic Telephone Dialing System and/or artificial or pre-recorded voice, and that such consent is not a condition of receipt of any good or service. Mobile carrier messages and data rates may apply. You may opt out at any time."
195
- }
196
- ) }),
197
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
198
- ] }),
199
- children,
200
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
201
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
202
- Button,
203
- {
204
- color: getVariant(callToAction?.variant),
205
- as: "button",
206
- type: "submit",
207
- disabled: !isValid || isSubmitting,
208
- children: callToAction?.displayText
209
- }
210
- ) })
211
- ] })
147
+ ) }),
148
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
149
+ Input,
150
+ {
151
+ id: "last_name",
152
+ ...register("last_name", { required: true }),
153
+ label: "Last Name",
154
+ sizes: "medium",
155
+ placeholder: "Last Name",
156
+ required: true,
157
+ error: !!errors.last_name,
158
+ helperText: errors.last_name?.message,
159
+ variant
160
+ }
161
+ ) }),
162
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
163
+ Input,
164
+ {
165
+ id: "email",
166
+ ...register("email", {
167
+ required: true,
168
+ validate: {
169
+ isValid: associatedEmail
170
+ }
171
+ }),
172
+ label: "Email",
173
+ sizes: "medium",
174
+ placeholder: "Email",
175
+ required: true,
176
+ error: !!errors.email,
177
+ helperText: errors.email?.message,
178
+ variant
179
+ }
180
+ ) }),
181
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
182
+ InputPhone,
183
+ {
184
+ id: "phone",
185
+ ...register("phone", { required: true, maxLength: 12 }),
186
+ label: "Phone",
187
+ sizes: "medium",
188
+ placeholder: "Phone",
189
+ required: true,
190
+ error: !!errors.phone,
191
+ helperText: errors.phone?.message,
192
+ variant
193
+ }
194
+ ) }),
195
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
196
+ Checkbox,
197
+ {
198
+ id: "checkbox__c",
199
+ ...register("checkbox__c"),
200
+ sizes: "medium",
201
+ error: !!errors.checkbox__c,
202
+ helperText: errors.checkbox__c?.message,
203
+ variant,
204
+ children: "By providing your phone number and selecting the checkbox, you have agreed to these Terms and Conditions, and you have agreed to receive automated text messages, calls, and emails for any purpose including but not limited to marketing of products and services by Axos Bank. You understand and agree that such messages may be sent via Automatic Telephone Dialing System and/or artificial or pre-recorded voice, and that such consent is not a condition of receipt of any good or service. Mobile carrier messages and data rates may apply. You may opt out at any time."
205
+ }
206
+ ) }),
207
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
208
+ ] }),
209
+ children,
210
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
211
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
212
+ Button,
213
+ {
214
+ color: getVariant(callToAction?.variant),
215
+ as: "button",
216
+ type: "submit",
217
+ disabled: !isValid || isSubmitting,
218
+ children: callToAction?.displayText
219
+ }
220
+ ) })
221
+ ]
222
+ }
223
+ )
212
224
  ] }) }) }, id);
213
225
  };
214
226
  export {
@@ -11,4 +11,4 @@ export type ClearingInputs = {
11
11
  Memo__c: string;
12
12
  business_type_selection: string;
13
13
  };
14
- export declare const ClearingForm: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ClearingForm: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -62,6 +62,7 @@ const ClearingForm = ({
62
62
  description,
63
63
  callToAction,
64
64
  validateEmail,
65
+ onValidate,
65
66
  id
66
67
  }) => {
67
68
  const schema = z.object({
@@ -187,171 +188,182 @@ const ClearingForm = ({
187
188
  }
188
189
  )
189
190
  ] }),
190
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
191
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
192
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
193
- Input,
194
- {
195
- id: "first_name",
196
- ...register("first_name", {
197
- required: "First Name is required"
198
- }),
199
- label: "First Name",
200
- sizes: "medium",
201
- required: true,
202
- error: !!errors.first_name,
203
- helperText: errors.first_name?.message,
204
- variant
205
- }
206
- ) }),
207
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
208
- Input,
209
- {
210
- id: "last_name",
211
- ...register("last_name", { required: true }),
212
- label: "Last Name",
213
- sizes: "medium",
214
- required: true,
215
- error: !!errors.last_name,
216
- helperText: errors.last_name?.message,
217
- variant
218
- }
219
- ) }),
220
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
221
- Input,
222
- {
223
- id: "email",
224
- ...register("email", {
225
- required: true,
226
- validate: {
227
- isValid: associatedEmail
191
+ /* @__PURE__ */ jsxs(
192
+ "form",
193
+ {
194
+ className: form,
195
+ onSubmit: async (e) => {
196
+ onValidate && onValidate(e);
197
+ await handleSubmit(submitForm)(e);
198
+ e.preventDefault();
199
+ },
200
+ children: [
201
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
202
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
203
+ Input,
204
+ {
205
+ id: "first_name",
206
+ ...register("first_name", {
207
+ required: "First Name is required"
208
+ }),
209
+ label: "First Name",
210
+ sizes: "medium",
211
+ required: true,
212
+ error: !!errors.first_name,
213
+ helperText: errors.first_name?.message,
214
+ variant
228
215
  }
229
- }),
230
- label: "Email",
231
- sizes: "medium",
232
- required: true,
233
- error: !!errors.email,
234
- helperText: errors.email?.message,
235
- variant
236
- }
237
- ) }),
238
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
239
- InputPhone,
240
- {
241
- id: "phone",
242
- ...register("phone", { required: true, maxLength: 12 }),
243
- label: "Phone",
244
- sizes: "medium",
245
- required: true,
246
- error: !!errors.phone,
247
- helperText: errors.phone?.message,
248
- variant
249
- }
250
- ) }),
251
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
252
- Input,
253
- {
254
- id: "company",
255
- ...register("company", { required: true }),
256
- label: "Broker-Dealer Name",
257
- sizes: "medium",
258
- required: true,
259
- error: !!errors.company,
260
- helperText: errors.company?.message,
261
- variant
262
- }
263
- ) }),
264
- /* @__PURE__ */ jsx("div", { className: xc_input, children: /* @__PURE__ */ jsxs(
265
- Dropdown,
266
- {
267
- id: "Current_Assets_Under_Management__c",
268
- ...register("Current_Assets_Under_Management__c", {
269
- required: true
270
- }),
271
- label: "Assets Under Management",
272
- sizes: "medium",
273
- required: true,
274
- error: !!errors.Current_Assets_Under_Management__c,
275
- helperText: errors.Current_Assets_Under_Management__c?.message,
276
- variant,
277
- defaultValue: "Select option",
278
- onChange: handleDropdownChange,
279
- onClick: handleAUMerror,
280
- onBlur: handleAUMerror,
281
- children: [
282
- /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
283
- /* @__PURE__ */ jsx("option", { value: "$0 - $100MM", children: "$0 - $100MM" }),
284
- /* @__PURE__ */ jsx("option", { value: "$101MM - $200MM", children: "$101MM - $200MM" }),
285
- /* @__PURE__ */ jsx("option", { value: "$201MM - $500MM", children: "$201MM - $500MM" }),
286
- /* @__PURE__ */ jsx("option", { value: "$501MM - $750MM", children: "$501MM - $750MM" }),
287
- /* @__PURE__ */ jsx("option", { value: "$751MM - $1B", children: "$751MM - $1B" }),
288
- /* @__PURE__ */ jsx("option", { value: "$1B -$2B", children: "$1B -$2B" }),
289
- /* @__PURE__ */ jsx("option", { value: "$2B+", children: "$2B+" })
290
- ]
291
- }
292
- ) }),
293
- /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
294
- /* @__PURE__ */ jsx(
295
- Input,
296
- {
297
- id: "business_type_selection",
298
- label: "Type of Business",
299
- onFocus: handleShowBusinessType,
300
- onBlur: handleTOBerrors,
301
- sizes: "medium",
302
- placeholder: "Select All That Apply",
303
- error: !!errors.Business_Type__c,
304
- readOnly: true,
305
- className: ro_input
306
- }
307
- ),
308
- showBusinessTypes && /* @__PURE__ */ jsx(
309
- CheckboxGroup,
216
+ ) }),
217
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
218
+ Input,
219
+ {
220
+ id: "last_name",
221
+ ...register("last_name", { required: true }),
222
+ label: "Last Name",
223
+ sizes: "medium",
224
+ required: true,
225
+ error: !!errors.last_name,
226
+ helperText: errors.last_name?.message,
227
+ variant
228
+ }
229
+ ) }),
230
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
231
+ Input,
232
+ {
233
+ id: "email",
234
+ ...register("email", {
235
+ required: true,
236
+ validate: {
237
+ isValid: associatedEmail
238
+ }
239
+ }),
240
+ label: "Email",
241
+ sizes: "medium",
242
+ required: true,
243
+ error: !!errors.email,
244
+ helperText: errors.email?.message,
245
+ variant
246
+ }
247
+ ) }),
248
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
249
+ InputPhone,
250
+ {
251
+ id: "phone",
252
+ ...register("phone", { required: true, maxLength: 12 }),
253
+ label: "Phone",
254
+ sizes: "medium",
255
+ required: true,
256
+ error: !!errors.phone,
257
+ helperText: errors.phone?.message,
258
+ variant
259
+ }
260
+ ) }),
261
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
262
+ Input,
263
+ {
264
+ id: "company",
265
+ ...register("company", { required: true }),
266
+ label: "Broker-Dealer Name",
267
+ sizes: "medium",
268
+ required: true,
269
+ error: !!errors.company,
270
+ helperText: errors.company?.message,
271
+ variant
272
+ }
273
+ ) }),
274
+ /* @__PURE__ */ jsx("div", { className: xc_input, children: /* @__PURE__ */ jsxs(
275
+ Dropdown,
276
+ {
277
+ id: "Current_Assets_Under_Management__c",
278
+ ...register("Current_Assets_Under_Management__c", {
279
+ required: true
280
+ }),
281
+ label: "Assets Under Management",
282
+ sizes: "medium",
283
+ required: true,
284
+ error: !!errors.Current_Assets_Under_Management__c,
285
+ helperText: errors.Current_Assets_Under_Management__c?.message,
286
+ variant,
287
+ defaultValue: "Select option",
288
+ onChange: handleDropdownChange,
289
+ onClick: handleAUMerror,
290
+ onBlur: handleAUMerror,
291
+ children: [
292
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
293
+ /* @__PURE__ */ jsx("option", { value: "$0 - $100MM", children: "$0 - $100MM" }),
294
+ /* @__PURE__ */ jsx("option", { value: "$101MM - $200MM", children: "$101MM - $200MM" }),
295
+ /* @__PURE__ */ jsx("option", { value: "$201MM - $500MM", children: "$201MM - $500MM" }),
296
+ /* @__PURE__ */ jsx("option", { value: "$501MM - $750MM", children: "$501MM - $750MM" }),
297
+ /* @__PURE__ */ jsx("option", { value: "$751MM - $1B", children: "$751MM - $1B" }),
298
+ /* @__PURE__ */ jsx("option", { value: "$1B -$2B", children: "$1B -$2B" }),
299
+ /* @__PURE__ */ jsx("option", { value: "$2B+", children: "$2B+" })
300
+ ]
301
+ }
302
+ ) }),
303
+ /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
304
+ /* @__PURE__ */ jsx(
305
+ Input,
306
+ {
307
+ id: "business_type_selection",
308
+ label: "Type of Business",
309
+ onFocus: handleShowBusinessType,
310
+ onBlur: handleTOBerrors,
311
+ sizes: "medium",
312
+ placeholder: "Select All That Apply",
313
+ error: !!errors.Business_Type__c,
314
+ readOnly: true,
315
+ className: ro_input
316
+ }
317
+ ),
318
+ showBusinessTypes && /* @__PURE__ */ jsx(
319
+ CheckboxGroup,
320
+ {
321
+ options,
322
+ selectedValues,
323
+ onChange: handleBusinessTypeChange,
324
+ error: !!errors.Business_Type__c
325
+ }
326
+ )
327
+ ] }),
328
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
329
+ Input,
330
+ {
331
+ id: "Memo__c",
332
+ ...register("Memo__c", { required: false }),
333
+ label: "Please provide additional details about your clearing needs (optional)",
334
+ sizes: "medium",
335
+ required: false,
336
+ error: !!errors.Memo__c,
337
+ helperText: errors.Memo__c?.message,
338
+ variant
339
+ }
340
+ ) }),
341
+ /* @__PURE__ */ jsx(
342
+ "input",
343
+ {
344
+ type: "hidden",
345
+ ...register("Lead_Source_Detail_SFDC2__c", {
346
+ value: "Axos Clearing"
347
+ })
348
+ }
349
+ )
350
+ ] }),
351
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant }),
352
+ children,
353
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
354
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
355
+ Button,
310
356
  {
311
- options,
312
- selectedValues,
313
- onChange: handleBusinessTypeChange,
314
- error: !!errors.Business_Type__c
357
+ color: getVariant(callToAction?.variant),
358
+ as: "button",
359
+ type: "submit",
360
+ disabled: !isValid || isSubmitting || !requiredAUM || !requiredTOB,
361
+ children: callToAction?.displayText
315
362
  }
316
- )
317
- ] }),
318
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
319
- Input,
320
- {
321
- id: "Memo__c",
322
- ...register("Memo__c", { required: false }),
323
- label: "Please provide additional details about your clearing needs (optional)",
324
- sizes: "medium",
325
- required: false,
326
- error: !!errors.Memo__c,
327
- helperText: errors.Memo__c?.message,
328
- variant
329
- }
330
- ) }),
331
- /* @__PURE__ */ jsx(
332
- "input",
333
- {
334
- type: "hidden",
335
- ...register("Lead_Source_Detail_SFDC2__c", {
336
- value: "Axos Clearing"
337
- })
338
- }
339
- )
340
- ] }),
341
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant }),
342
- children,
343
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
344
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
345
- Button,
346
- {
347
- color: getVariant(callToAction?.variant),
348
- as: "button",
349
- type: "submit",
350
- disabled: !isValid || isSubmitting || !requiredAUM || !requiredTOB,
351
- children: callToAction?.displayText
352
- }
353
- ) })
354
- ] })
363
+ ) })
364
+ ]
365
+ }
366
+ )
355
367
  ] }) }) }, id);
356
368
  };
357
369
  export {
@@ -14,4 +14,4 @@ export type CommercialDepositsInputs = {
14
14
  Others_Detail__c: string;
15
15
  Product_and_servicing_needs__c: string;
16
16
  };
17
- export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;