@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
@@ -46,6 +46,7 @@ const ContactCompanyTitle = ({
46
46
  description,
47
47
  callToAction,
48
48
  validateEmail,
49
+ onValidate,
49
50
  id
50
51
  }) => {
51
52
  const schema = z.object({
@@ -115,112 +116,123 @@ const ContactCompanyTitle = ({
115
116
  }
116
117
  )
117
118
  ] }),
118
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
119
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
120
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
121
- Input,
122
- {
123
- id: "first_name",
124
- ...register("first_name", { required: true }),
125
- label: "First Name",
126
- sizes: "medium",
127
- placeholder: "First Name",
128
- required: true,
129
- error: !!errors.first_name,
130
- helperText: errors.first_name?.message,
131
- variant
132
- }
133
- ) }),
134
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
135
- Input,
136
- {
137
- id: "last_name",
138
- ...register("last_name", { required: true }),
139
- label: "Last Name",
140
- sizes: "medium",
141
- placeholder: "Last Name",
142
- required: true,
143
- error: !!errors.last_name,
144
- helperText: errors.last_name?.message,
145
- variant
146
- }
147
- ) }),
148
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
149
- Input,
150
- {
151
- id: "email",
152
- ...register("email", {
153
- required: true,
154
- validate: {
155
- isValid: associatedEmail
119
+ /* @__PURE__ */ jsxs(
120
+ "form",
121
+ {
122
+ className: form,
123
+ onSubmit: async (e) => {
124
+ onValidate && onValidate(e);
125
+ await handleSubmit(submitForm)(e);
126
+ e.preventDefault();
127
+ },
128
+ children: [
129
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
130
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
131
+ Input,
132
+ {
133
+ id: "first_name",
134
+ ...register("first_name", { required: true }),
135
+ label: "First Name",
136
+ sizes: "medium",
137
+ placeholder: "First Name",
138
+ required: true,
139
+ error: !!errors.first_name,
140
+ helperText: errors.first_name?.message,
141
+ variant
156
142
  }
157
- }),
158
- label: "Email",
159
- sizes: "medium",
160
- placeholder: "Email",
161
- required: true,
162
- error: !!errors.email,
163
- helperText: errors.email?.message,
164
- variant
165
- }
166
- ) }),
167
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
168
- InputPhone,
169
- {
170
- id: "phone",
171
- ...register("phone", { required: true, maxLength: 12 }),
172
- label: "Phone",
173
- sizes: "medium",
174
- placeholder: "Phone",
175
- required: true,
176
- error: !!errors.phone,
177
- helperText: errors.phone?.message,
178
- variant
179
- }
180
- ) }),
181
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
182
- Input,
183
- {
184
- id: "company",
185
- ...register("company", { required: true }),
186
- label: "Company",
187
- sizes: "medium",
188
- placeholder: "Company",
189
- required: true,
190
- error: !!errors.company,
191
- helperText: errors.company?.message,
192
- variant
193
- }
194
- ) }),
195
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
196
- Input,
197
- {
198
- id: "title",
199
- ...register("title", { required: true }),
200
- label: "Title",
201
- sizes: "medium",
202
- placeholder: "Title",
203
- required: true,
204
- error: !!errors.title,
205
- helperText: errors.title?.message,
206
- variant
207
- }
208
- ) }),
209
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
210
- ] }),
211
- children,
212
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
213
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
214
- Button,
215
- {
216
- color: getVariant(callToAction?.variant),
217
- as: "button",
218
- type: "submit",
219
- disabled: !isValid || isSubmitting,
220
- children: callToAction?.displayText
221
- }
222
- ) })
223
- ] })
143
+ ) }),
144
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
145
+ Input,
146
+ {
147
+ id: "last_name",
148
+ ...register("last_name", { required: true }),
149
+ label: "Last Name",
150
+ sizes: "medium",
151
+ placeholder: "Last Name",
152
+ required: true,
153
+ error: !!errors.last_name,
154
+ helperText: errors.last_name?.message,
155
+ variant
156
+ }
157
+ ) }),
158
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
159
+ Input,
160
+ {
161
+ id: "email",
162
+ ...register("email", {
163
+ required: true,
164
+ validate: {
165
+ isValid: associatedEmail
166
+ }
167
+ }),
168
+ label: "Email",
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
+ label: "Phone",
183
+ sizes: "medium",
184
+ placeholder: "Phone",
185
+ required: true,
186
+ error: !!errors.phone,
187
+ helperText: errors.phone?.message,
188
+ variant
189
+ }
190
+ ) }),
191
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
192
+ Input,
193
+ {
194
+ id: "company",
195
+ ...register("company", { required: true }),
196
+ label: "Company",
197
+ sizes: "medium",
198
+ placeholder: "Company",
199
+ required: true,
200
+ error: !!errors.company,
201
+ helperText: errors.company?.message,
202
+ variant
203
+ }
204
+ ) }),
205
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
206
+ Input,
207
+ {
208
+ id: "title",
209
+ ...register("title", { required: true }),
210
+ label: "Title",
211
+ sizes: "medium",
212
+ placeholder: "Title",
213
+ required: true,
214
+ error: !!errors.title,
215
+ helperText: errors.title?.message,
216
+ variant
217
+ }
218
+ ) }),
219
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
220
+ ] }),
221
+ children,
222
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
223
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
224
+ Button,
225
+ {
226
+ color: getVariant(callToAction?.variant),
227
+ as: "button",
228
+ type: "submit",
229
+ disabled: !isValid || isSubmitting,
230
+ children: callToAction?.displayText
231
+ }
232
+ ) })
233
+ ]
234
+ }
235
+ )
224
236
  ] }) }) }, id);
225
237
  };
226
238
  export {
@@ -92,7 +92,7 @@ const ContactUs = ({
92
92
  const {
93
93
  handleSubmit,
94
94
  register,
95
- formState: { errors }
95
+ formState: { errors, isValid, isSubmitting }
96
96
  } = methods;
97
97
  const submitForm = async (data) => {
98
98
  await onSubmit(data);
@@ -192,6 +192,7 @@ const ContactUs = ({
192
192
  color: getVariant(callToAction?.variant),
193
193
  as: "button",
194
194
  type: "submit",
195
+ disabled: !isValid || isSubmitting,
195
196
  children: callToAction?.displayText
196
197
  }
197
198
  ) })
@@ -10,4 +10,4 @@ export type ContactUsAASInputs = {
10
10
  Role__c: string;
11
11
  description: string;
12
12
  };
13
- export declare const ContactUsAAS: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ContactUsAAS: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -47,6 +47,7 @@ const ContactUsAAS = ({
47
47
  description,
48
48
  callToAction,
49
49
  validateEmail,
50
+ onValidate,
50
51
  id
51
52
  }) => {
52
53
  const schema = z.object({
@@ -125,164 +126,175 @@ const ContactUsAAS = ({
125
126
  }
126
127
  )
127
128
  ] }),
128
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
129
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
130
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
131
- Input,
132
- {
133
- id: "first_name",
134
- ...register("first_name", { required: true }),
135
- label: "First Name*",
136
- sizes: "medium",
137
- placeholder: "",
138
- required: true,
139
- error: !!errors.first_name,
140
- helperText: errors.first_name?.message,
141
- variant
142
- }
143
- ) }),
144
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
145
- Input,
146
- {
147
- id: "last_name",
148
- ...register("last_name", { required: true }),
149
- label: "Last Name*",
150
- sizes: "medium",
151
- placeholder: "",
152
- required: true,
153
- error: !!errors.last_name,
154
- helperText: errors.last_name?.message,
155
- variant
156
- }
157
- ) }),
158
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
159
- Input,
160
- {
161
- id: "email",
162
- ...register("email", {
163
- required: true
164
- }),
165
- type: "email",
166
- label: "Email*",
167
- sizes: "medium",
168
- placeholder: "",
169
- required: true,
170
- error: !!errors.email,
171
- helperText: errors.email?.message,
172
- variant
173
- }
174
- ) }),
175
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
176
- InputPhone,
177
- {
178
- id: "phone",
179
- ...register("phone", {
180
- required: true,
181
- maxLength: 12
182
- }),
183
- label: "Phone*",
184
- sizes: "medium",
185
- placeholder: "",
186
- type: "tel",
187
- required: true,
188
- error: !!errors.phone,
189
- helperText: errors.phone?.message,
190
- variant
191
- }
192
- ) }),
193
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
194
- Input,
195
- {
196
- id: "company",
197
- ...register("company"),
198
- label: "Company",
199
- sizes: "medium",
200
- placeholder: "",
201
- error: !!errors.company,
202
- helperText: errors.company?.message,
203
- variant
204
- }
205
- ) }),
206
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
207
- Dropdown,
208
- {
209
- id: "Current_Assets_Under_Management__c",
210
- ...register("Current_Assets_Under_Management__c"),
211
- label: "Current AUM",
212
- sizes: "medium",
213
- error: !!errors.Current_Assets_Under_Management__c,
214
- helperText: errors.Current_Assets_Under_Management__c?.message,
215
- variant,
216
- defaultValue: "",
217
- children: [
218
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
219
- /* @__PURE__ */ jsx("option", { value: "$0 - $25M", children: "$0 — $25M" }),
220
- /* @__PURE__ */ jsx("option", { value: "$26M - $150M", children: "$26M — $150M" }),
221
- /* @__PURE__ */ jsx("option", { value: "$151M - $500M", children: "$151M — $500M" }),
222
- /* @__PURE__ */ jsx("option", { value: "$501M - $1B", children: "$501M — $1B" }),
223
- /* @__PURE__ */ jsx("option", { value: "$1B+", children: "$1B+" })
224
- ]
225
- }
226
- ) }),
227
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
228
- Dropdown,
229
- {
230
- id: "Role__c",
231
- ...register("Role__c", {
232
- required: true
233
- }),
234
- label: "What best describes your role?*",
235
- sizes: "medium",
236
- required: true,
237
- error: !!errors.Role__c,
238
- helperText: errors.Role__c?.message,
239
- variant,
240
- defaultValue: "Select option",
241
- children: [
242
- /* @__PURE__ */ jsx("option", { value: "Select option", disabled: true, children: "Select Option" }),
243
- /* @__PURE__ */ jsx("option", { value: "RIA Principal", children: "RIA Principal" }),
244
- /* @__PURE__ */ jsx("option", { value: "Advisor (IAR)", children: "Advisor (IAR)" }),
245
- /* @__PURE__ */ jsx("option", { value: "Broker-Dealer Affiliated Advisor", children: "Broker-Dealer Affiliated Advisor" }),
246
- /* @__PURE__ */ jsx("option", { value: "I am not a Financial Advisor", children: "I am not a Financial Advisor" }),
247
- /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
248
- ]
249
- }
250
- ) }),
251
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
252
- InputTextArea,
253
- {
254
- id: "description",
255
- ...register("description"),
256
- label: "Comments",
257
- sizes: "medium",
258
- placeholder: "",
259
- error: !!errors.description,
260
- helperText: errors.description?.message,
261
- variant,
262
- rows: 1
263
- }
264
- ) }),
265
- /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
266
- ] }),
267
- children,
268
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
269
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
270
- LoadingIndicator,
271
- {
272
- style: { marginInline: "auto" },
273
- variant
274
- }
275
- ) : /* @__PURE__ */ jsx(
276
- Button,
277
- {
278
- color: getVariant(callToAction?.variant),
279
- as: "button",
280
- type: "submit",
281
- disabled: !isValid || isSubmitting,
282
- children: callToAction?.displayText
283
- }
284
- ) }) })
285
- ] })
129
+ /* @__PURE__ */ jsxs(
130
+ "form",
131
+ {
132
+ className: form,
133
+ onSubmit: async (e) => {
134
+ onValidate && onValidate(e);
135
+ await handleSubmit(submitForm)(e);
136
+ e.preventDefault();
137
+ },
138
+ children: [
139
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
140
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
141
+ Input,
142
+ {
143
+ id: "first_name",
144
+ ...register("first_name", { required: true }),
145
+ label: "First Name*",
146
+ sizes: "medium",
147
+ placeholder: "",
148
+ required: true,
149
+ error: !!errors.first_name,
150
+ helperText: errors.first_name?.message,
151
+ variant
152
+ }
153
+ ) }),
154
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
155
+ Input,
156
+ {
157
+ id: "last_name",
158
+ ...register("last_name", { required: true }),
159
+ label: "Last Name*",
160
+ sizes: "medium",
161
+ placeholder: "",
162
+ required: true,
163
+ error: !!errors.last_name,
164
+ helperText: errors.last_name?.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
+ }),
175
+ type: "email",
176
+ label: "Email*",
177
+ sizes: "medium",
178
+ placeholder: "",
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", {
190
+ required: true,
191
+ maxLength: 12
192
+ }),
193
+ label: "Phone*",
194
+ sizes: "medium",
195
+ placeholder: "",
196
+ type: "tel",
197
+ required: true,
198
+ error: !!errors.phone,
199
+ helperText: errors.phone?.message,
200
+ variant
201
+ }
202
+ ) }),
203
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
204
+ Input,
205
+ {
206
+ id: "company",
207
+ ...register("company"),
208
+ label: "Company",
209
+ sizes: "medium",
210
+ placeholder: "",
211
+ error: !!errors.company,
212
+ helperText: errors.company?.message,
213
+ variant
214
+ }
215
+ ) }),
216
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
217
+ Dropdown,
218
+ {
219
+ id: "Current_Assets_Under_Management__c",
220
+ ...register("Current_Assets_Under_Management__c"),
221
+ label: "Current AUM",
222
+ sizes: "medium",
223
+ error: !!errors.Current_Assets_Under_Management__c,
224
+ helperText: errors.Current_Assets_Under_Management__c?.message,
225
+ variant,
226
+ defaultValue: "",
227
+ children: [
228
+ /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
229
+ /* @__PURE__ */ jsx("option", { value: "$0 - $25M", children: "$0 — $25M" }),
230
+ /* @__PURE__ */ jsx("option", { value: "$26M - $150M", children: "$26M — $150M" }),
231
+ /* @__PURE__ */ jsx("option", { value: "$151M - $500M", children: "$151M — $500M" }),
232
+ /* @__PURE__ */ jsx("option", { value: "$501M - $1B", children: "$501M — $1B" }),
233
+ /* @__PURE__ */ jsx("option", { value: "$1B+", children: "$1B+" })
234
+ ]
235
+ }
236
+ ) }),
237
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
238
+ Dropdown,
239
+ {
240
+ id: "Role__c",
241
+ ...register("Role__c", {
242
+ required: true
243
+ }),
244
+ label: "What best describes your role?*",
245
+ sizes: "medium",
246
+ required: true,
247
+ error: !!errors.Role__c,
248
+ helperText: errors.Role__c?.message,
249
+ variant,
250
+ defaultValue: "Select option",
251
+ children: [
252
+ /* @__PURE__ */ jsx("option", { value: "Select option", disabled: true, children: "Select Option" }),
253
+ /* @__PURE__ */ jsx("option", { value: "RIA Principal", children: "RIA Principal" }),
254
+ /* @__PURE__ */ jsx("option", { value: "Advisor (IAR)", children: "Advisor (IAR)" }),
255
+ /* @__PURE__ */ jsx("option", { value: "Broker-Dealer Affiliated Advisor", children: "Broker-Dealer Affiliated Advisor" }),
256
+ /* @__PURE__ */ jsx("option", { value: "I am not a Financial Advisor", children: "I am not a Financial Advisor" }),
257
+ /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
258
+ ]
259
+ }
260
+ ) }),
261
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
262
+ InputTextArea,
263
+ {
264
+ id: "description",
265
+ ...register("description"),
266
+ label: "Comments",
267
+ sizes: "medium",
268
+ placeholder: "",
269
+ error: !!errors.description,
270
+ helperText: errors.description?.message,
271
+ variant,
272
+ rows: 1
273
+ }
274
+ ) }),
275
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
276
+ ] }),
277
+ children,
278
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
279
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
280
+ LoadingIndicator,
281
+ {
282
+ style: { marginInline: "auto" },
283
+ variant
284
+ }
285
+ ) : /* @__PURE__ */ jsx(
286
+ Button,
287
+ {
288
+ color: getVariant(callToAction?.variant),
289
+ as: "button",
290
+ type: "submit",
291
+ disabled: !isValid || isSubmitting,
292
+ children: callToAction?.displayText
293
+ }
294
+ ) }) })
295
+ ]
296
+ }
297
+ )
286
298
  ] }) }) }, id);
287
299
  };
288
300
  export {
@@ -8,4 +8,4 @@ export type ContactUsBusinessNmlsIdInputs = {
8
8
  phone: string;
9
9
  Company_NMLS_ID__c: string;
10
10
  };
11
- export declare const ContactUsBusiness: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ContactUsBusiness: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;