@axos-web-dev/shared-components 0.0.102 → 0.0.103

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 (52) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -2
  2. package/dist/Accordion/Accordion.css.d.ts +9 -9
  3. package/dist/Button/Button.js +2 -3
  4. package/dist/Calculators/Calculator.js +1 -2
  5. package/dist/Carousel/index.js +1 -2
  6. package/dist/Chevron/index.js +2 -3
  7. package/dist/Comparison/Comparison.js +2 -3
  8. package/dist/Comparison/ComparisonSet.js +2 -3
  9. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -2
  10. package/dist/Forms/ApplicationStart.js +2 -3
  11. package/dist/Forms/CommercialLending.d.ts +8 -12
  12. package/dist/Forms/CommercialLending.js +63 -177
  13. package/dist/Forms/ContactCompany.js +2 -3
  14. package/dist/Forms/ContactUs.js +2 -3
  15. package/dist/Forms/ContactUsAAS.js +2 -3
  16. package/dist/Forms/ContactUsBusiness.js +3 -4
  17. package/dist/Forms/ContactUsNMLSId.js +3 -4
  18. package/dist/Forms/DealerServices.js +2 -3
  19. package/dist/Forms/EmailOnly.js +3 -4
  20. package/dist/Forms/SalesforceFieldsForm.d.ts +1 -0
  21. package/dist/Forms/ScheduleCall.js +3 -7
  22. package/dist/Forms/ScheduleCallPremier.js +2 -3
  23. package/dist/Forms/SuccesForm.js +1 -2
  24. package/dist/Forms/WcplSurvey.js +2 -3
  25. package/dist/Hyperlink/index.js +1 -2
  26. package/dist/IconBillboard/IconBillboard.js +1 -1
  27. package/dist/ImageBillboard/ImageBillboard.js +1 -1
  28. package/dist/ImageLink/ImageLink.js +2 -3
  29. package/dist/ImageLink/ImageLinkSet.js +1 -2
  30. package/dist/ImageLink/index.js +1 -2
  31. package/dist/Input/Checkbox.d.ts +1 -1
  32. package/dist/Input/CurrencyInput.js +2 -3
  33. package/dist/Input/InputPhone.js +2 -3
  34. package/dist/Input/InputProps.d.ts +0 -6
  35. package/dist/Input/index.d.ts +0 -3
  36. package/dist/Input/index.js +0 -6
  37. package/dist/Modal/Modal.js +2 -3
  38. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -2
  39. package/dist/SetContainer/SetContainer.js +2 -3
  40. package/dist/Table/Table.d.ts +13 -13
  41. package/dist/main.js +0 -6
  42. package/package.json +1 -1
  43. package/dist/Input/DatePicker.css.d.ts +0 -1
  44. package/dist/Input/DatePicker.css.js +0 -6
  45. package/dist/Input/Datepicker.d.ts +0 -3
  46. package/dist/Input/Datepicker.js +0 -47
  47. package/dist/Input/InputDate.css.d.ts +0 -6
  48. package/dist/Input/InputDate.css.js +0 -15
  49. package/dist/Input/InputDate.d.ts +0 -3
  50. package/dist/Input/InputDate.js +0 -47
  51. package/dist/assets/Input/DatePicker.css +0 -95
  52. package/dist/assets/Input/InputDate.css +0 -39
@@ -47,11 +47,10 @@ import "../FooterDisclosure/FooterDisclosure.css.js";
47
47
  import "@hookform/resolvers/zod";
48
48
  import "../Input/Checkbox.js";
49
49
  import "../Input/CurrencyInput.js";
50
- import "../Input/Input.css.js";
51
- /* empty css */
52
50
  import "../Input/Dropdown.js";
53
51
  /* empty css */
54
52
  import "../Input/Input.js";
53
+ import "../Input/Input.css.js";
55
54
  import "../Input/InputPhone.js";
56
55
  import "../Input/InputTextArea.js";
57
56
  import "react-hook-form";
@@ -4,39 +4,39 @@ export declare const accordion: import('@vanilla-extract/recipes').RuntimeFn<{
4
4
  width: {
5
5
  "1/2": {
6
6
  display: "flex";
7
- flexBasis: "50%";
7
+ flexBasis: `${number}%`;
8
8
  };
9
9
  "1/3": {
10
10
  display: "flex";
11
- flexBasis: "33.333333333333336%";
11
+ flexBasis: `${number}%`;
12
12
  };
13
13
  "2/3": {
14
14
  display: "flex";
15
- flexBasis: "66.66666666666667%";
15
+ flexBasis: `${number}%`;
16
16
  };
17
17
  "1/4": {
18
18
  display: "flex";
19
- flexBasis: "25%";
19
+ flexBasis: `${number}%`;
20
20
  };
21
21
  "3/4": {
22
22
  display: "flex";
23
- flexBasis: "75%";
23
+ flexBasis: `${number}%`;
24
24
  };
25
25
  "1/5": {
26
26
  display: "flex";
27
- flexBasis: "20%";
27
+ flexBasis: `${number}%`;
28
28
  };
29
29
  "2/5": {
30
30
  display: "flex";
31
- flexBasis: "40%";
31
+ flexBasis: `${number}%`;
32
32
  };
33
33
  "3/5": {
34
34
  display: "flex";
35
- flexBasis: "60%";
35
+ flexBasis: `${number}%`;
36
36
  };
37
37
  "4/5": {
38
38
  display: "flex";
39
- flexBasis: "80%";
39
+ flexBasis: `${number}%`;
40
40
  };
41
41
  };
42
42
  }>;
@@ -27,12 +27,11 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
27
27
  import "@hookform/resolvers/zod";
28
28
  import "../Input/Checkbox.js";
29
29
  import "../Input/CurrencyInput.js";
30
- import "../Input/Input.css.js";
31
- /* empty css */
32
- /* empty css */
33
30
  import "../Input/Dropdown.js";
31
+ /* empty css */
34
32
  /* empty css */
35
33
  import "../Input/Input.js";
34
+ import "../Input/Input.css.js";
36
35
  import "../Input/InputPhone.js";
37
36
  import "../Input/InputTextArea.js";
38
37
  import "react-hook-form";
@@ -52,11 +52,10 @@ import "../FooterDisclosure/FooterDisclosure.css.js";
52
52
  import "../ImageBillboard/ImageBillboard.css.js";
53
53
  import "../Input/Checkbox.js";
54
54
  import "../Input/CurrencyInput.js";
55
- import "../Input/Input.css.js";
56
- /* empty css */
57
55
  import "../Input/Dropdown.js";
58
56
  /* empty css */
59
57
  import "../Input/Input.js";
58
+ import "../Input/Input.css.js";
60
59
  import "../Input/InputPhone.js";
61
60
  import "../Input/InputTextArea.js";
62
61
  import "../LandingPageHeader/LandingPageHeader.css.js";
@@ -34,11 +34,10 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
34
34
  import "@hookform/resolvers/zod";
35
35
  import "../Input/Checkbox.js";
36
36
  import "../Input/CurrencyInput.js";
37
- import "../Input/Input.css.js";
38
- /* empty css */
39
37
  import "../Input/Dropdown.js";
40
38
  /* empty css */
41
39
  import "../Input/Input.js";
40
+ import "../Input/Input.css.js";
42
41
  import "../Input/InputPhone.js";
43
42
  import "../Input/InputTextArea.js";
44
43
  import "react-hook-form";
@@ -30,12 +30,11 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
30
30
  import "@hookform/resolvers/zod";
31
31
  import "../Input/Checkbox.js";
32
32
  import "../Input/CurrencyInput.js";
33
- import "../Input/Input.css.js";
34
- /* empty css */
35
- /* empty css */
36
33
  import "../Input/Dropdown.js";
34
+ /* empty css */
37
35
  /* empty css */
38
36
  import "../Input/Input.js";
37
+ import "../Input/Input.css.js";
39
38
  import "../Input/InputPhone.js";
40
39
  import "../Input/InputTextArea.js";
41
40
  import "react-hook-form";
@@ -28,12 +28,11 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
28
28
  import "@hookform/resolvers/zod";
29
29
  import "../Input/Checkbox.js";
30
30
  import "../Input/CurrencyInput.js";
31
- import "../Input/Input.css.js";
32
- /* empty css */
33
- /* empty css */
34
31
  import "../Input/Dropdown.js";
32
+ /* empty css */
35
33
  /* empty css */
36
34
  import "../Input/Input.js";
35
+ import "../Input/Input.css.js";
37
36
  import "../Input/InputPhone.js";
38
37
  import "../Input/InputTextArea.js";
39
38
  import "react-hook-form";
@@ -27,12 +27,11 @@ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
27
27
  import "@hookform/resolvers/zod";
28
28
  import "../Input/Checkbox.js";
29
29
  import "../Input/CurrencyInput.js";
30
- import "../Input/Input.css.js";
31
- /* empty css */
32
- /* empty css */
33
30
  import "../Input/Dropdown.js";
31
+ /* empty css */
34
32
  /* empty css */
35
33
  import "../Input/Input.js";
34
+ import "../Input/Input.css.js";
36
35
  import "../Input/InputPhone.js";
37
36
  import "../Input/InputTextArea.js";
38
37
  import "react-hook-form";
@@ -29,11 +29,10 @@ import "../../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
29
29
  import "@hookform/resolvers/zod";
30
30
  import "../../Input/Checkbox.js";
31
31
  import "../../Input/CurrencyInput.js";
32
- import "../../Input/Input.css.js";
33
- /* empty css */
34
32
  import "../../Input/Dropdown.js";
35
33
  /* empty css */
36
34
  import "../../Input/Input.js";
35
+ import "../../Input/Input.css.js";
37
36
  import "../../Input/InputPhone.js";
38
37
  import "../../Input/InputTextArea.js";
39
38
  import "react-hook-form";
@@ -7,12 +7,11 @@ import "react";
7
7
  import "react-use";
8
8
  import { Checkbox } from "../Input/Checkbox.js";
9
9
  import "../Input/CurrencyInput.js";
10
- import "../Input/Input.css.js";
11
- /* empty css */
12
- /* empty css */
13
10
  import "../Input/Dropdown.js";
11
+ /* empty css */
14
12
  /* empty css */
15
13
  import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
16
15
  import { InputPhone } from "../Input/InputPhone.js";
17
16
  import "../Input/InputTextArea.js";
18
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
@@ -3,17 +3,13 @@ import { FormProps } from './FormProps';
3
3
  export type CommercialLendingInputs = {
4
4
  first_name: string;
5
5
  last_name: string;
6
- email: string;
7
- General_Business_Phone_SFDC2__c: string;
8
- Company_NMLS_ID__c: string;
9
- Business_Name__c: string;
10
- Property_Zip__c: string;
11
- Annual_Gross_Revenue__c: string;
12
- Time_in_Business__c: string;
13
- Lead_Type__c: string;
14
- Type_of_Equipment_Finance__c: string;
15
- Loan__c: string;
16
- Requested_loan_amount_and_leverage__c: string;
17
- Asset_Class__c: string;
6
+ business_email: string;
7
+ business_phone: string;
8
+ company_nmls_id: string;
9
+ business_name: string;
10
+ zip: string;
11
+ annual_gross_revenue: string;
12
+ time_in_business: string;
13
+ type: string;
18
14
  };
19
15
  export declare const CommercialLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, description, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,16 +3,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { zodResolver } from "@hookform/resolvers/zod";
4
4
  import { Button } from "../Button/Button.js";
5
5
  import "../Button/Button.css.js";
6
- import { useState, useEffect } from "react";
7
- import { useLocation } from "react-use";
6
+ import "react";
7
+ import "react-use";
8
8
  import "../Input/Checkbox.js";
9
9
  import "../Input/CurrencyInput.js";
10
- import "../Input/Input.css.js";
11
- /* empty css */
12
- /* empty css */
13
10
  import { Dropdown } from "../Input/Dropdown.js";
11
+ /* empty css */
14
12
  /* empty css */
15
13
  import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
16
15
  import { InputPhone } from "../Input/InputPhone.js";
17
16
  import "../Input/InputTextArea.js";
18
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
@@ -45,26 +44,8 @@ const CommercialLending = ({
45
44
  description,
46
45
  id
47
46
  }) => {
48
- const { pathname } = useLocation();
49
- const [equipmentPage, setEquipmentPage] = useState(false);
50
- const [warehousePage, setWarehousePage] = useState(false);
51
- const [CRESLPage, setCRESLPage] = useState(false);
52
- useEffect(() => {
53
- if (pathname === "/Business/Commercial-Lending/Equipment-Finance") {
54
- setEquipmentPage(true);
55
- }
56
- if (pathname === "/Business/Commercial-Lending/Warehouse-Lending") {
57
- setWarehousePage(true);
58
- }
59
- if (pathname === "/Business/Commercial-Lending/Commercial-Real-Estate-Specialty-Lending") {
60
- setCRESLPage(true);
61
- }
62
- }, [pathname]);
63
47
  const schema = z.object({
64
- first_name: z.string({
65
- required_error: "First name is required",
66
- invalid_type_error: "Invalid first name"
67
- }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
48
+ first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
68
49
  last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
69
50
  business_email: z.string().email({ message: "Business Email is required." }).refine(async (val) => await validateEmail(val)),
70
51
  business_phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Business Phone is required." }).max(12, { message: "Business Phone is required." }).transform((val, ctx) => {
@@ -84,16 +65,12 @@ const CommercialLending = ({
84
65
  type: z.string()
85
66
  });
86
67
  const methods = useForm({
87
- resolver: zodResolver(
88
- schema.merge(SalesforceSchema).refine(() => {
89
- }),
90
- {
91
- async: true
92
- }
93
- ),
68
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
69
+ async: true
70
+ }),
94
71
  mode: "all",
95
72
  defaultValues: {
96
- email: ""
73
+ business_email: ""
97
74
  }
98
75
  });
99
76
  const {
@@ -135,7 +112,7 @@ const CommercialLending = ({
135
112
  ...register("first_name", { required: true }),
136
113
  label: "First Name",
137
114
  sizes: "medium",
138
- placeholder: "",
115
+ placeholder: "First Name",
139
116
  required: true,
140
117
  error: !!errors.first_name,
141
118
  helperText: errors.first_name?.message,
@@ -149,7 +126,7 @@ const CommercialLending = ({
149
126
  ...register("last_name", { required: true }),
150
127
  label: "Last Name",
151
128
  sizes: "medium",
152
- placeholder: "",
129
+ placeholder: "Last Name",
153
130
  required: true,
154
131
  error: !!errors.last_name,
155
132
  helperText: errors.last_name?.message,
@@ -159,8 +136,8 @@ const CommercialLending = ({
159
136
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
160
137
  Input,
161
138
  {
162
- id: "email",
163
- ...register("email", {
139
+ id: "business_email",
140
+ ...register("business_email", {
164
141
  required: true,
165
142
  validate: {
166
143
  isValid: associatedEmail
@@ -168,230 +145,139 @@ const CommercialLending = ({
168
145
  }),
169
146
  label: "Business Email",
170
147
  sizes: "medium",
171
- placeholder: "",
148
+ placeholder: "Business Email",
172
149
  required: true,
173
- error: !!errors.email,
174
- helperText: errors.email?.message,
150
+ error: !!errors.business_email,
151
+ helperText: errors.business_email?.message,
175
152
  variant
176
153
  }
177
154
  ) }),
178
155
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
179
156
  InputPhone,
180
157
  {
181
- id: "General_Business_Phone_SFDC2__c",
182
- ...register("General_Business_Phone_SFDC2__c", {
158
+ id: "business_phone",
159
+ ...register("business_phone", {
183
160
  required: true,
184
161
  maxLength: 12
185
162
  }),
186
163
  label: "Business Phone",
187
164
  sizes: "medium",
188
- placeholder: "",
165
+ placeholder: "Business Phone",
189
166
  required: true,
190
- error: !!errors.General_Business_Phone_SFDC2__c,
191
- helperText: errors.General_Business_Phone_SFDC2__c?.message,
167
+ error: !!errors.business_phone,
168
+ helperText: errors.business_phone?.message,
192
169
  variant
193
170
  }
194
171
  ) }),
195
172
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
196
173
  Input,
197
174
  {
198
- id: "Company_NMLS_ID__c",
199
- ...register("Company_NMLS_ID__c", {
175
+ id: "company_nmls_id",
176
+ ...register("company_nmls_id", {
200
177
  required: true,
201
178
  maxLength: 12
202
179
  }),
203
180
  label: "Company NMLS ID",
204
181
  sizes: "medium",
205
- placeholder: "",
182
+ placeholder: "Company NMLS ID",
206
183
  required: true,
207
- error: !!errors.Company_NMLS_ID__c,
208
- helperText: errors.Company_NMLS_ID__c?.message,
184
+ error: !!errors.company_nmls_id,
185
+ helperText: errors.company_nmls_id?.message,
209
186
  variant
210
187
  }
211
188
  ) }),
212
189
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
213
190
  Input,
214
191
  {
215
- id: "Business_Name__c",
216
- ...register("Business_Name__c", {
192
+ id: "business_name",
193
+ ...register("business_name", {
217
194
  required: true,
218
195
  maxLength: 12
219
196
  }),
220
197
  label: "Business Name",
221
198
  sizes: "medium",
222
- placeholder: "",
199
+ placeholder: "Buesiness Name",
223
200
  required: true,
224
- error: !!errors.Business_Name__c,
225
- helperText: errors.Business_Name__c?.message,
201
+ error: !!errors.business_name,
202
+ helperText: errors.business_name?.message,
226
203
  variant
227
204
  }
228
205
  ) }),
229
206
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
230
207
  Input,
231
208
  {
232
- id: "Property_Zip__c",
233
- ...register("Property_Zip__c", {
209
+ id: "zip",
210
+ ...register("zip", {
234
211
  required: true
235
212
  }),
236
213
  label: "Property Location or ZIP Code",
237
214
  sizes: "medium",
238
- placeholder: "",
215
+ placeholder: "Property Location or ZIP Code",
239
216
  required: true,
240
- error: !!errors.Property_Zip__c,
241
- helperText: errors.Property_Zip__c?.message,
217
+ error: !!errors.business_name,
218
+ helperText: errors.business_name?.message,
242
219
  variant
243
220
  }
244
221
  ) }),
245
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
222
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
246
223
  Dropdown,
247
224
  {
248
- id: "Annual_Gross_Revenue__c",
249
- ...register("Annual_Gross_Revenue__c", {
225
+ id: "annual_gross_revenue",
226
+ ...register("annual_gross_revenue", {
250
227
  required: true
251
228
  }),
252
229
  label: "Annual Gross Revenue",
253
230
  sizes: "medium",
254
231
  required: true,
255
- error: !!errors.Annual_Gross_Revenue__c,
256
- helperText: errors.Annual_Gross_Revenue__c?.message,
232
+ error: !!errors.annual_gross_revenue,
233
+ helperText: errors.annual_gross_revenue?.message,
257
234
  variant,
258
- children: [
259
- /* @__PURE__ */ jsx("option", { value: "<$5MM", children: "<$5MM" }),
260
- /* @__PURE__ */ jsx("option", { value: "$5-10MM", children: "$5-10MM" }),
261
- /* @__PURE__ */ jsx("option", { value: "$10MM-$20MM", children: "$10MM-$20MM" }),
262
- /* @__PURE__ */ jsx("option", { value: "$20MM+", children: "$20MM+" })
235
+ options: [
236
+ { value: 1, text: "<$5MM" },
237
+ { value: 2, text: "$5-10MM" },
238
+ { value: 3, text: "$10MM-$20MM" },
239
+ { value: 4, text: "$20MM+" }
263
240
  ]
264
241
  }
265
242
  ) }),
266
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
243
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
267
244
  Dropdown,
268
245
  {
269
- id: "Time_in_Business__c",
270
- ...register("Time_in_Business__c", {
246
+ id: "time_in_business",
247
+ ...register("time_in_business", {
271
248
  required: true
272
249
  }),
273
250
  label: "Time in Business",
274
251
  sizes: "medium",
275
252
  required: true,
276
- error: !!errors.Time_in_Business__c,
277
- helperText: errors.Time_in_Business__c?.message,
253
+ error: !!errors.time_in_business,
254
+ helperText: errors.time_in_business?.message,
278
255
  variant,
279
- children: [
280
- /* @__PURE__ */ jsx("option", { value: "< 2 Years in Business", children: "< 2 Years in Business" }),
281
- /* @__PURE__ */ jsx("option", { value: "2-5 Years in Business", children: "2-5 Years in Business" }),
282
- /* @__PURE__ */ jsx("option", { value: "5+ Years in Business", children: "5+ Years in Business" })
256
+ options: [
257
+ { value: 1, text: "< 2 Years in Business" },
258
+ { value: 2, text: "2-5 Years in Business" },
259
+ { value: 3, text: "5+ Years in Business" }
283
260
  ]
284
261
  }
285
262
  ) }),
286
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
263
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
287
264
  Dropdown,
288
265
  {
289
- id: "Lead_Type__c",
290
- ...register("Lead_Type__c", {
266
+ id: "type",
267
+ ...register("type", {
291
268
  required: true
292
269
  }),
293
270
  label: "Type",
294
271
  sizes: "medium",
295
272
  required: true,
296
- error: !!errors.Lead_Type__c,
297
- helperText: errors.Lead_Type__c?.message,
298
- variant,
299
- children: [
300
- /* @__PURE__ */ jsx("option", { value: "Broker", children: "Broker" }),
301
- /* @__PURE__ */ jsx("option", { value: "Borrower", children: "Borrower" })
302
- ]
303
- }
304
- ) }),
305
- equipmentPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
306
- Dropdown,
307
- {
308
- id: "Type_of_Equipment_Finance__c",
309
- ...register("Type_of_Equipment_Finance__c", {
310
- required: true
311
- }),
312
- label: "Type of Equipment",
313
- sizes: "medium",
314
- required: true,
315
- error: !!errors.Type_of_Equipment_Finance__c,
316
- helperText: errors.Type_of_Equipment_Finance__c?.message,
273
+ error: !!errors.type,
274
+ helperText: errors.type?.message,
317
275
  variant,
318
- defaultValue: "",
319
- children: [
320
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
321
- /* @__PURE__ */ jsx("option", { value: "Agriculture", children: "Agriculture" }),
322
- /* @__PURE__ */ jsx("option", { value: "Transportation and Material Handling", children: "Transportation and Material Handling" }),
323
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" }),
324
- /* @__PURE__ */ jsx("option", { value: "Healthcare", children: "Healthcare" }),
325
- /* @__PURE__ */ jsx("option", { value: "Manufacturing", children: "Manufacturing" }),
326
- /* @__PURE__ */ jsx("option", { value: "Energy", children: "Energy" }),
327
- /* @__PURE__ */ jsx("option", { value: "Technology and Service", children: "Technology and Service" }),
328
- /* @__PURE__ */ jsx("option", { value: "Insurance", children: "Insurance" }),
329
- /* @__PURE__ */ jsx("option", { value: "Pharmaceutical and Laboratory", children: "Pharmaceutical and Laboratory" })
276
+ options: [
277
+ { value: 1, text: "Broker" },
278
+ { value: 2, text: "Borrower" }
330
279
  ]
331
280
  }
332
- ) }),
333
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
334
- Dropdown,
335
- {
336
- id: "Asset_Class__c",
337
- ...register("Asset_Class__c", {
338
- required: true
339
- }),
340
- label: "Asset Class",
341
- sizes: "medium",
342
- required: true,
343
- error: !!errors.Asset_Class__c,
344
- helperText: errors.Asset_Class__c?.message,
345
- variant,
346
- defaultValue: "",
347
- children: [
348
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
349
- /* @__PURE__ */ jsx("option", { value: "Multifamily", children: "Multifamily" }),
350
- CRESLPage && /* @__PURE__ */ jsx("option", { value: "Mixed-Use", children: "Mixed-Use" }),
351
- /* @__PURE__ */ jsx("option", { value: "Office", children: "Office" }),
352
- /* @__PURE__ */ jsx("option", { value: "Retail", children: "Retail" }),
353
- /* @__PURE__ */ jsx("option", { value: "Hospitality", children: "Hospitality" }),
354
- /* @__PURE__ */ jsx("option", { value: "Industrial/Warehouse", children: "Industrial/Warehouse" }),
355
- /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
356
- ]
357
- }
358
- ) }),
359
- CRESLPage && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
360
- Dropdown,
361
- {
362
- id: "Loan__c",
363
- ...register("Loan__c", {
364
- required: true
365
- }),
366
- label: "Purpose of Loan",
367
- sizes: "medium",
368
- required: true,
369
- error: !!errors.Loan__c,
370
- helperText: errors.Loan__c?.message,
371
- variant,
372
- defaultValue: "",
373
- children: [
374
- /* @__PURE__ */ jsx("option", { value: "", children: "Select Option" }),
375
- /* @__PURE__ */ jsx("option", { value: "Bridge", children: "Bridge" }),
376
- /* @__PURE__ */ jsx("option", { value: "Construction", children: "Construction" })
377
- ]
378
- }
379
- ) }),
380
- (CRESLPage || warehousePage) && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
381
- Input,
382
- {
383
- id: "Requested_loan_amount_and_leverage__c",
384
- ...register("Requested_loan_amount_and_leverage__c", {
385
- required: true
386
- }),
387
- label: "Requested loan amount and leverage",
388
- sizes: "medium",
389
- placeholder: "",
390
- required: true,
391
- error: !!errors.Requested_loan_amount_and_leverage__c,
392
- helperText: errors.Requested_loan_amount_and_leverage__c?.message,
393
- variant
394
- }
395
281
  ) })
396
282
  ] }),
397
283
  children,
@@ -7,12 +7,11 @@ import "react";
7
7
  import "react-use";
8
8
  import "../Input/Checkbox.js";
9
9
  import "../Input/CurrencyInput.js";
10
- import "../Input/Input.css.js";
11
- /* empty css */
12
- /* empty css */
13
10
  import "../Input/Dropdown.js";
11
+ /* empty css */
14
12
  /* empty css */
15
13
  import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
16
15
  import { InputPhone } from "../Input/InputPhone.js";
17
16
  import "../Input/InputTextArea.js";
18
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
@@ -7,12 +7,11 @@ import "react";
7
7
  import "react-use";
8
8
  import "../Input/Checkbox.js";
9
9
  import "../Input/CurrencyInput.js";
10
- import "../Input/Input.css.js";
11
- /* empty css */
12
- /* empty css */
13
10
  import "../Input/Dropdown.js";
11
+ /* empty css */
14
12
  /* empty css */
15
13
  import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
16
15
  import { InputPhone } from "../Input/InputPhone.js";
17
16
  import "../Input/InputTextArea.js";
18
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
@@ -7,12 +7,11 @@ import "react";
7
7
  import "react-use";
8
8
  import "../Input/Checkbox.js";
9
9
  import "../Input/CurrencyInput.js";
10
- import "../Input/Input.css.js";
11
- /* empty css */
12
- /* empty css */
13
10
  import { Dropdown } from "../Input/Dropdown.js";
11
+ /* empty css */
14
12
  /* empty css */
15
13
  import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
16
15
  import { InputPhone } from "../Input/InputPhone.js";
17
16
  import { InputTextArea } from "../Input/InputTextArea.js";
18
17
  import { LoadingIndicator } from "../LoadingIndicator/index.js";