@axos-web-dev/shared-components 1.0.99 → 1.0.100-dev.2

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 (160) hide show
  1. package/dist/ATMLocator/ATMLocator.js +8 -1
  2. package/dist/ArticlesSet/ArticlesSet.js +2 -2
  3. package/dist/Auth/ErrorAlert.js +10 -3
  4. package/dist/Blockquote/Blockquote.module.js +3 -3
  5. package/dist/Button/Button.js +10 -3
  6. package/dist/Calculators/Calculator.js +22 -3
  7. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
  8. package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
  9. package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
  10. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +1 -0
  11. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +2 -0
  12. package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
  13. package/dist/Calculators/index.d.ts +2 -1
  14. package/dist/Calculators/index.js +3 -1
  15. package/dist/Carousel/index.js +10 -3
  16. package/dist/Chatbot/Bubble.css.d.ts +1 -0
  17. package/dist/Chatbot/Bubble.css.js +5 -0
  18. package/dist/Chatbot/Bubble.d.ts +3 -0
  19. package/dist/Chatbot/Bubble.js +48 -0
  20. package/dist/Chatbot/Chat.d.ts +1 -0
  21. package/dist/Chatbot/Chat.js +165 -0
  22. package/dist/Chatbot/ChatWindow.css.d.ts +11 -0
  23. package/dist/Chatbot/ChatWindow.css.js +25 -0
  24. package/dist/Chatbot/ChatWindow.d.ts +23 -0
  25. package/dist/Chatbot/ChatWindow.js +202 -0
  26. package/dist/Chatbot/Chatbot.css.d.ts +1 -0
  27. package/dist/Chatbot/Chatbot.css.js +5 -0
  28. package/dist/Chatbot/Chatbot.css.ts.vanilla.css.js +1 -0
  29. package/dist/Chatbot/Chatbot.d.ts +1 -0
  30. package/dist/Chatbot/Chatbot.js +39 -0
  31. package/dist/Chatbot/authenticate.d.ts +3 -0
  32. package/dist/Chatbot/authenticate.js +16 -0
  33. package/dist/Chatbot/index.d.ts +9 -0
  34. package/dist/Chatbot/index.js +31 -0
  35. package/dist/Chatbot/store/chat.d.ts +9 -0
  36. package/dist/Chatbot/store/chat.js +11 -0
  37. package/dist/Chatbot/store/messages.d.ts +14 -0
  38. package/dist/Chatbot/store/messages.js +12 -0
  39. package/dist/Chatbot/useHeadlessChat.d.ts +22 -0
  40. package/dist/Chatbot/useHeadlessChat.js +157 -0
  41. package/dist/Chevron/index.js +10 -3
  42. package/dist/Comparison/Comparison.js +10 -3
  43. package/dist/ExecutiveBio/ExecutiveBio.js +10 -3
  44. package/dist/FaqAccordion/index.js +10 -3
  45. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +10 -3
  46. package/dist/Forms/ApplicationStart.d.ts +1 -1
  47. package/dist/Forms/ApplicationStart.js +111 -89
  48. package/dist/Forms/ApplyNow.d.ts +2 -2
  49. package/dist/Forms/ApplyNow.js +178 -146
  50. package/dist/Forms/ClearingForm.d.ts +1 -1
  51. package/dist/Forms/ClearingForm.js +184 -162
  52. package/dist/Forms/CommercialDeposits.d.ts +1 -1
  53. package/dist/Forms/CommercialDeposits.js +201 -179
  54. package/dist/Forms/CommercialLending.d.ts +1 -1
  55. package/dist/Forms/CommercialLending.js +278 -256
  56. package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
  57. package/dist/Forms/CommercialPremiumFinance.js +128 -106
  58. package/dist/Forms/ContactCompany.d.ts +1 -1
  59. package/dist/Forms/ContactCompany.js +113 -91
  60. package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
  61. package/dist/Forms/ContactCompanyTitle.js +127 -105
  62. package/dist/Forms/ContactUs.d.ts +1 -1
  63. package/dist/Forms/ContactUs.js +99 -77
  64. package/dist/Forms/ContactUsAAS.d.ts +1 -1
  65. package/dist/Forms/ContactUsAAS.js +180 -158
  66. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  67. package/dist/Forms/ContactUsBusiness.js +143 -115
  68. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
  69. package/dist/Forms/ContactUsBusinessNameEmail.js +112 -84
  70. package/dist/Forms/ContactUsLVF.d.ts +3 -1
  71. package/dist/Forms/ContactUsLVF.js +127 -101
  72. package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
  73. package/dist/Forms/ContactUsNMLSId.js +126 -98
  74. package/dist/Forms/CpraRequest.d.ts +1 -1
  75. package/dist/Forms/CpraRequest.js +641 -619
  76. package/dist/Forms/CraPublicFile.d.ts +1 -1
  77. package/dist/Forms/CraPublicFile.js +118 -90
  78. package/dist/Forms/DealerServices.d.ts +1 -1
  79. package/dist/Forms/DealerServices.js +225 -204
  80. package/dist/Forms/EmailOnly.d.ts +1 -1
  81. package/dist/Forms/EmailOnly.js +65 -39
  82. package/dist/Forms/EmailUs.d.ts +1 -1
  83. package/dist/Forms/EmailUs.js +75 -53
  84. package/dist/Forms/FormProps.d.ts +3 -0
  85. package/dist/Forms/Forms.css.d.ts +18 -0
  86. package/dist/Forms/Forms.css.js +44 -38
  87. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  88. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  89. package/dist/Forms/HoneyPot/index.d.ts +23 -0
  90. package/dist/Forms/HoneyPot/index.js +69 -0
  91. package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
  92. package/dist/Forms/MortgageRate/MortgageRateForm.js +376 -348
  93. package/dist/Forms/MortgageRate/MortgageRateWatch.js +10 -3
  94. package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
  95. package/dist/Forms/MortgageWarehouseLending.js +343 -0
  96. package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
  97. package/dist/Forms/QuickPricer/QuickPricerForm.js +624 -609
  98. package/dist/Forms/ScheduleCall.d.ts +1 -1
  99. package/dist/Forms/ScheduleCall.js +156 -134
  100. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  101. package/dist/Forms/ScheduleCallPremier.js +178 -156
  102. package/dist/Forms/SuccesForm.js +13 -6
  103. package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
  104. package/dist/Forms/VendorQuestionnaire.js +817 -795
  105. package/dist/Forms/WcplSurvey.d.ts +1 -1
  106. package/dist/Forms/WcplSurvey.js +112 -90
  107. package/dist/Forms/applynow-utils.d.ts +1 -0
  108. package/dist/Forms/applynow-utils.js +48 -0
  109. package/dist/Forms/index.d.ts +3 -0
  110. package/dist/Forms/index.js +12 -2
  111. package/dist/HeroBanner/HeroBanner.js +42 -1
  112. package/dist/Hyperlink/index.js +10 -3
  113. package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
  114. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
  115. package/dist/ImageLink/ImageLink.js +10 -3
  116. package/dist/ImageLink/ImageLinkSet.js +10 -3
  117. package/dist/ImageLink/index.js +10 -3
  118. package/dist/Input/Input.js +3 -1
  119. package/dist/Insight/Featured/CategorySelector.js +10 -3
  120. package/dist/Insight/Featured/Featured.js +10 -3
  121. package/dist/Insight/Featured/Header.js +10 -3
  122. package/dist/Modal/Modal.js +10 -3
  123. package/dist/NavigationMenu/AxosALTS/NavData.js +10 -3
  124. package/dist/NavigationMenu/AxosALTS/index.js +10 -3
  125. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +16 -16
  126. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
  127. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +25 -7
  128. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
  129. package/dist/NavigationMenu/AxosBank/NavData.js +10 -3
  130. package/dist/NavigationMenu/AxosBank/SubNavBar.js +32 -8
  131. package/dist/NavigationMenu/AxosBank/index.js +10 -3
  132. package/dist/NavigationMenu/LaVictoire/NavData.js +10 -3
  133. package/dist/NavigationMenu/LaVictoire/index.js +10 -3
  134. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  135. package/dist/NavigationMenu/NavDataJson.js +315 -0
  136. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  137. package/dist/NavigationMenu/Navbar.js +201 -0
  138. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  139. package/dist/NavigationMenu/SignInNavButton.js +369 -0
  140. package/dist/SetContainer/SetContainer.js +10 -3
  141. package/dist/SocialMediaBar/iconsRepository.js +10 -3
  142. package/dist/Table/Table.d.ts +1 -1
  143. package/dist/VideoTile/VideoTile.js +10 -3
  144. package/dist/VideoWrapper/index.js +10 -3
  145. package/dist/assets/Blockquote/Blockquote.css.css +68 -68
  146. package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
  147. package/dist/assets/Chatbot/Bubble.css +40 -0
  148. package/dist/assets/Chatbot/ChatWindow.css +107 -0
  149. package/dist/assets/Forms/Forms.css +135 -105
  150. package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
  151. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -191
  152. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -473
  153. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
  154. package/dist/icons/Logos/AXB.d.ts +8 -0
  155. package/dist/icons/Logos/AXB.js +74 -0
  156. package/dist/main.d.ts +1 -0
  157. package/dist/main.js +43 -3
  158. package/dist/utils/allowedAxosDomains.js +2 -1
  159. package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
  160. package/package.json +136 -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, headerForm, form, descriptionField, headerContainer, x_input, fullRowForm, pl_label, 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 CommercialDeposits = ({
37
38
  icon = false,
@@ -45,6 +46,7 @@ const CommercialDeposits = ({
45
46
  description,
46
47
  callToAction,
47
48
  validateEmail,
49
+ onValidate,
48
50
  id
49
51
  }) => {
50
52
  const schema = z.object({
@@ -86,8 +88,16 @@ const CommercialDeposits = ({
86
88
  Others_Detail__c: z.string().optional(),
87
89
  Product_and_servicing_needs__c: z.string()
88
90
  });
91
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
92
+ if (!isValidHoneyPot(data)) {
93
+ ctx.addIssue({
94
+ code: z.ZodIssueCode.custom,
95
+ message: "fields are not valid."
96
+ });
97
+ }
98
+ });
89
99
  const methods = useForm({
90
- resolver: zodResolver(schema.merge(SalesforceSchema), {
100
+ resolver: zodResolver(gen_schema, {
91
101
  async: true
92
102
  }),
93
103
  mode: "all"
@@ -128,187 +138,199 @@ const CommercialDeposits = ({
128
138
  }
129
139
  )
130
140
  ] }),
131
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
132
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
133
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
134
- Input,
135
- {
136
- id: "first_name",
137
- ...register("first_name", {
138
- required: "First Name is required"
139
- }),
140
- label: "First Name",
141
- sizes: "medium",
142
- required: true,
143
- error: !!errors.first_name,
144
- helperText: errors.first_name?.message,
145
- variant
146
- }
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
- required: true,
156
- error: !!errors.last_name,
157
- helperText: errors.last_name?.message,
158
- variant
159
- }
160
- ) }),
161
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
162
- Input,
163
- {
164
- id: "company",
165
- ...register("company", { required: true }),
166
- label: "Business Name",
167
- sizes: "medium",
168
- required: true,
169
- error: !!errors.company,
170
- helperText: errors.company?.message,
171
- variant
172
- }
173
- ) }),
174
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
175
- Input,
176
- {
177
- id: "email",
178
- ...register("email", {
179
- required: true,
180
- validate: {
181
- 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", { children: /* @__PURE__ */ jsx(
153
+ Input,
154
+ {
155
+ id: "first_name",
156
+ ...register("first_name", {
157
+ required: "First Name is required"
158
+ }),
159
+ label: "First Name",
160
+ sizes: "medium",
161
+ required: true,
162
+ error: !!errors.first_name,
163
+ helperText: errors.first_name?.message,
164
+ variant
182
165
  }
183
- }),
184
- label: "Email",
185
- sizes: "medium",
186
- required: true,
187
- error: !!errors.email,
188
- helperText: errors.email?.message,
189
- variant
190
- }
191
- ) }),
192
- /* @__PURE__ */ jsx("div", { className: x_input, children: /* @__PURE__ */ jsx(
193
- InputPhone,
194
- {
195
- id: "phone",
196
- ...register("phone", { required: true, maxLength: 12 }),
197
- label: "Business Phone",
198
- sizes: "medium",
199
- required: true,
200
- error: !!errors.phone,
201
- helperText: errors.phone?.message,
202
- variant
203
- }
204
- ) }),
205
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
206
- Dropdown,
207
- {
208
- id: "Estimated_Gross_Annual_Revenue__c",
209
- ...register("Estimated_Gross_Annual_Revenue__c", {
210
- required: true
211
- }),
212
- label: "Estimated Gross Annual Revenue",
213
- sizes: "medium",
214
- required: true,
215
- error: !!errors.Estimated_Gross_Annual_Revenue__c,
216
- helperText: errors.Estimated_Gross_Annual_Revenue__c?.message,
217
- variant,
218
- defaultValue: "",
219
- children: [
220
- /* @__PURE__ */ jsx("option", { disabled: true, value: "", children: "Select Option" }),
221
- /* @__PURE__ */ jsx("option", { value: "Under $3MM", children: "Under $3MM" }),
222
- /* @__PURE__ */ jsx("option", { value: "$3MM - $10MM", children: "$3MM - $10MM" }),
223
- /* @__PURE__ */ jsx("option", { value: "$10MM - $100MM", children: "$10MM - $100MM" }),
224
- /* @__PURE__ */ jsx("option", { value: "Above $100MM", children: "Above $100MM" })
225
- ]
226
- }
227
- ) }),
228
- /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
229
- /* @__PURE__ */ jsx("div", { className: pl_label, children: "Which products or services apply to your request? Click all that apply." }),
230
- /* @__PURE__ */ jsx(
231
- Checkbox,
232
- {
233
- id: "Banking__c",
234
- ...register("Banking__c"),
235
- sizes: "medium",
236
- variant,
237
- children: "Banking"
238
- }
239
- ),
240
- /* @__PURE__ */ jsx(
241
- Checkbox,
242
- {
243
- id: "Treasury_Management__c",
244
- ...register("Treasury_Management__c"),
245
- sizes: "medium",
246
- variant,
247
- children: "Treasury Management"
248
- }
249
- ),
250
- /* @__PURE__ */ jsx(
251
- Checkbox,
252
- {
253
- id: "Lending__c",
254
- ...register("Lending__c"),
255
- sizes: "medium",
256
- variant,
257
- children: "Lending"
258
- }
259
- ),
260
- /* @__PURE__ */ jsx(
261
- Checkbox,
262
- {
263
- id: "Others__c",
264
- ...register("Others__c"),
265
- sizes: "medium",
266
- variant,
267
- children: "Other"
268
- }
269
- ),
270
- othersChecked && /* @__PURE__ */ jsx(
271
- Input,
166
+ ) }),
167
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
168
+ Input,
169
+ {
170
+ id: "last_name",
171
+ ...register("last_name", { required: true }),
172
+ label: "Last Name",
173
+ sizes: "medium",
174
+ required: true,
175
+ error: !!errors.last_name,
176
+ helperText: errors.last_name?.message,
177
+ variant
178
+ }
179
+ ) }),
180
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
181
+ Input,
182
+ {
183
+ id: "company",
184
+ ...register("company", { required: true }),
185
+ label: "Business Name",
186
+ sizes: "medium",
187
+ required: true,
188
+ error: !!errors.company,
189
+ helperText: errors.company?.message,
190
+ variant
191
+ }
192
+ ) }),
193
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
194
+ Input,
195
+ {
196
+ id: "email",
197
+ ...register("email", {
198
+ required: true,
199
+ validate: {
200
+ isValid: associatedEmail
201
+ }
202
+ }),
203
+ label: "Email",
204
+ sizes: "medium",
205
+ required: true,
206
+ error: !!errors.email,
207
+ helperText: errors.email?.message,
208
+ variant
209
+ }
210
+ ) }),
211
+ /* @__PURE__ */ jsx("div", { className: x_input, children: /* @__PURE__ */ jsx(
212
+ InputPhone,
213
+ {
214
+ id: "phone",
215
+ ...register("phone", { required: true, maxLength: 12 }),
216
+ label: "Business Phone",
217
+ sizes: "medium",
218
+ required: true,
219
+ error: !!errors.phone,
220
+ helperText: errors.phone?.message,
221
+ variant
222
+ }
223
+ ) }),
224
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
225
+ Dropdown,
226
+ {
227
+ id: "Estimated_Gross_Annual_Revenue__c",
228
+ ...register("Estimated_Gross_Annual_Revenue__c", {
229
+ required: true
230
+ }),
231
+ label: "Estimated Gross Annual Revenue",
232
+ sizes: "medium",
233
+ required: true,
234
+ error: !!errors.Estimated_Gross_Annual_Revenue__c,
235
+ helperText: errors.Estimated_Gross_Annual_Revenue__c?.message,
236
+ variant,
237
+ defaultValue: "",
238
+ children: [
239
+ /* @__PURE__ */ jsx("option", { disabled: true, value: "", children: "Select Option" }),
240
+ /* @__PURE__ */ jsx("option", { value: "Under $3MM", children: "Under $3MM" }),
241
+ /* @__PURE__ */ jsx("option", { value: "$3MM - $10MM", children: "$3MM - $10MM" }),
242
+ /* @__PURE__ */ jsx("option", { value: "$10MM - $100MM", children: "$10MM - $100MM" }),
243
+ /* @__PURE__ */ jsx("option", { value: "Above $100MM", children: "Above $100MM" })
244
+ ]
245
+ }
246
+ ) }),
247
+ /* @__PURE__ */ jsxs("div", { className: `${fullRowForm}`, children: [
248
+ /* @__PURE__ */ jsx("div", { className: pl_label, children: "Which products or services apply to your request? Click all that apply." }),
249
+ /* @__PURE__ */ jsx(
250
+ Checkbox,
251
+ {
252
+ id: "Banking__c",
253
+ ...register("Banking__c"),
254
+ sizes: "medium",
255
+ variant,
256
+ children: "Banking"
257
+ }
258
+ ),
259
+ /* @__PURE__ */ jsx(
260
+ Checkbox,
261
+ {
262
+ id: "Treasury_Management__c",
263
+ ...register("Treasury_Management__c"),
264
+ sizes: "medium",
265
+ variant,
266
+ children: "Treasury Management"
267
+ }
268
+ ),
269
+ /* @__PURE__ */ jsx(
270
+ Checkbox,
271
+ {
272
+ id: "Lending__c",
273
+ ...register("Lending__c"),
274
+ sizes: "medium",
275
+ variant,
276
+ children: "Lending"
277
+ }
278
+ ),
279
+ /* @__PURE__ */ jsx(
280
+ Checkbox,
281
+ {
282
+ id: "Others__c",
283
+ ...register("Others__c"),
284
+ sizes: "medium",
285
+ variant,
286
+ children: "Other"
287
+ }
288
+ ),
289
+ othersChecked && /* @__PURE__ */ jsx(
290
+ Input,
291
+ {
292
+ id: "Others_Detail__c",
293
+ ...register("Others_Detail__c", { required: false }),
294
+ sizes: "medium",
295
+ required: false,
296
+ error: !!errors.Others_Detail__c,
297
+ helperText: errors.Others_Detail__c?.message,
298
+ variant
299
+ }
300
+ )
301
+ ] }),
302
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
303
+ Input,
304
+ {
305
+ id: "Product_and_servicing_needs__c",
306
+ ...register("Product_and_servicing_needs__c", {
307
+ required: false
308
+ }),
309
+ label: "Kindly describe your product and/or servicing needs.",
310
+ sizes: "medium",
311
+ required: false,
312
+ error: !!errors.Product_and_servicing_needs__c,
313
+ helperText: errors.Product_and_servicing_needs__c?.message,
314
+ variant
315
+ }
316
+ ) }),
317
+ /* @__PURE__ */ jsx(HoneyPot, { register, variant })
318
+ ] }),
319
+ children,
320
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
321
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
322
+ Button,
272
323
  {
273
- id: "Others_Detail__c",
274
- ...register("Others_Detail__c", { required: false }),
275
- sizes: "medium",
276
- required: false,
277
- error: !!errors.Others_Detail__c,
278
- helperText: errors.Others_Detail__c?.message,
279
- variant
324
+ color: getVariant(callToAction?.variant),
325
+ as: "button",
326
+ type: "submit",
327
+ disabled: !isValid || isSubmitting,
328
+ children: callToAction?.displayText
280
329
  }
281
- )
282
- ] }),
283
- /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
284
- Input,
285
- {
286
- id: "Product_and_servicing_needs__c",
287
- ...register("Product_and_servicing_needs__c", {
288
- required: false
289
- }),
290
- label: "Kindly describe your product and/or servicing needs.",
291
- sizes: "medium",
292
- required: false,
293
- error: !!errors.Product_and_servicing_needs__c,
294
- helperText: errors.Product_and_servicing_needs__c?.message,
295
- variant
296
- }
297
- ) })
298
- ] }),
299
- children,
300
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
301
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
302
- Button,
303
- {
304
- color: getVariant(callToAction?.variant),
305
- as: "button",
306
- type: "submit",
307
- disabled: !isValid || isSubmitting,
308
- children: callToAction?.displayText
309
- }
310
- ) })
311
- ] })
330
+ ) })
331
+ ]
332
+ }
333
+ )
312
334
  ] }) })
313
335
  },
314
336
  id
@@ -16,4 +16,4 @@ export type CommercialLendingInputs = {
16
16
  Loan__c: string;
17
17
  Requested_loan_amount_and_leverage__c: string;
18
18
  };
19
- export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, onValidate, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;