@axos-web-dev/shared-components 0.0.135 → 0.0.137
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.
- package/dist/ATMLocator/ATMLocator.js +3 -2
- package/dist/Button/Button.js +1 -0
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +45 -0
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +37 -0
- package/dist/Calculators/AxosOneCalculator/index.d.ts +10 -0
- package/dist/Calculators/AxosOneCalculator/index.js +183 -0
- package/dist/Calculators/Calculator.js +12 -0
- package/dist/Calculators/index.d.ts +1 -0
- package/dist/Calculators/index.js +2 -0
- package/dist/Carousel/index.js +1 -0
- package/dist/Chevron/index.js +1 -0
- package/dist/Comparison/Comparison.js +1 -0
- package/dist/FaqAccordion/index.js +1 -0
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
- package/dist/Forms/ContactUsBusiness.js +1 -0
- package/dist/Forms/ContactUsNMLSId.js +1 -0
- package/dist/Forms/EmailOnly.js +1 -0
- package/dist/Forms/SalesforceFieldsForm.d.ts +8 -0
- package/dist/Forms/SalesforceFieldsForm.js +21 -1
- package/dist/Forms/SuccesForm.js +1 -0
- package/dist/Hyperlink/index.js +1 -0
- package/dist/ImageLink/ImageLink.js +1 -0
- package/dist/ImageLink/ImageLinkSet.js +1 -0
- package/dist/ImageLink/index.js +1 -0
- package/dist/Input/InputProps.d.ts +0 -6
- package/dist/Insight/Featured/CategorySelector.js +1 -0
- package/dist/Insight/Featured/Featured.js +1 -0
- package/dist/Modal/Modal.js +1 -0
- package/dist/NavigationMenu/AxosBank/NavData.js +1 -0
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -0
- package/dist/NavigationMenu/AxosBank/index.js +1 -0
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/Table/Table.d.ts +2 -1
- package/dist/VideoTile/VideoTile.js +1 -1
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +210 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +2 -0
- package/dist/utils/allowedAxosDomains.js +2 -1
- package/package.json +1 -1
- package/dist/Forms/BlendPurchase.d.ts +0 -11
- package/dist/Forms/BlendPurchase.js +0 -215
- package/dist/Forms/BlendRefinance.d.ts +0 -11
- package/dist/Forms/BlendRefinance.js +0 -215
- package/dist/Input/DatePicker.css.d.ts +0 -1
- package/dist/Input/DatePicker.css.js +0 -6
- package/dist/Input/Datepicker.d.ts +0 -3
- package/dist/Input/Datepicker.js +0 -47
- package/dist/Input/InputDate.css.d.ts +0 -6
- package/dist/Input/InputDate.css.js +0 -15
- package/dist/Input/InputDate.d.ts +0 -3
- package/dist/Input/InputDate.js +0 -47
- package/dist/assets/Input/DatePicker.css +0 -95
- package/dist/assets/Input/InputDate.css +0 -39
package/dist/Table/Table.d.ts
CHANGED
|
@@ -15,11 +15,13 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
|
|
|
15
15
|
suppressContentEditableWarning?: boolean | undefined;
|
|
16
16
|
suppressHydrationWarning?: boolean | undefined;
|
|
17
17
|
accessKey?: string | undefined;
|
|
18
|
+
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {});
|
|
18
19
|
autoFocus?: boolean | undefined;
|
|
19
20
|
contentEditable?: (boolean | "false" | "true") | "inherit" | "plaintext-only" | undefined;
|
|
20
21
|
contextMenu?: string | undefined;
|
|
21
22
|
dir?: string | undefined;
|
|
22
23
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
24
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
23
25
|
hidden?: boolean | undefined;
|
|
24
26
|
id?: string | undefined;
|
|
25
27
|
lang?: string | undefined;
|
|
@@ -43,7 +45,6 @@ export declare const TableCell: ({ children, as, variant, highlighted, ...props
|
|
|
43
45
|
rev?: string | undefined;
|
|
44
46
|
typeof?: string | undefined;
|
|
45
47
|
vocab?: string | undefined;
|
|
46
|
-
autoCapitalize?: string | undefined;
|
|
47
48
|
autoCorrect?: string | undefined;
|
|
48
49
|
autoSave?: string | undefined;
|
|
49
50
|
color?: string | undefined;
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
._11b2y8z0 {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
._11b2y8z0 ._1nivbwe13 ._1nivbwee ._1nivbwe8 {
|
|
5
|
+
margin-bottom: 0;
|
|
6
|
+
}
|
|
7
|
+
._11b2y8z0 ._1nivbwe13 ._1nivbwee {
|
|
8
|
+
background: #fff;
|
|
9
|
+
color: #1e3860;
|
|
10
|
+
}
|
|
11
|
+
._11b2y8z0 ._1nivbwet ._1nivbwe12 tr:nth-child(even) td {
|
|
12
|
+
background: #fff;
|
|
13
|
+
}
|
|
14
|
+
._11b2y8z0 > .containment {
|
|
15
|
+
padding: 84px 82px 100px;
|
|
16
|
+
background: #def4ff;
|
|
17
|
+
border-radius: 1rem;
|
|
18
|
+
}
|
|
19
|
+
._11b2y8z0 tbody tr + tr ._1nivbwel {
|
|
20
|
+
border-bottom: 1px solid #d9d9d9;
|
|
21
|
+
}
|
|
22
|
+
._11b2y8z0 ._1nivbwes {
|
|
23
|
+
border-radius: 0px;
|
|
24
|
+
}
|
|
25
|
+
._11b2y8z0 tbody tr:first-child td {
|
|
26
|
+
background: #def4ff;
|
|
27
|
+
font-size: 24px;
|
|
28
|
+
line-height: 1.3;
|
|
29
|
+
color: #1e3860;
|
|
30
|
+
font-family: var(--header-font-family);
|
|
31
|
+
}
|
|
32
|
+
._11b2y8z1 {
|
|
33
|
+
padding: 40px 56px;
|
|
34
|
+
background: #FFF;
|
|
35
|
+
color: #5e6a74;
|
|
36
|
+
}
|
|
37
|
+
._11b2y8z2 {
|
|
38
|
+
display: flex;
|
|
39
|
+
background-color: #FFFFFF;
|
|
40
|
+
border-radius: 1rem;
|
|
41
|
+
border: 1px solid #d9d9d9;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
padding: 15px;
|
|
44
|
+
}
|
|
45
|
+
._11b2y8z3 {
|
|
46
|
+
align-items: center;
|
|
47
|
+
color: #1e3860;
|
|
48
|
+
display: flex;
|
|
49
|
+
font-size: 24px;
|
|
50
|
+
flex: 1 1 0%;
|
|
51
|
+
font-family: var(--header-font-family);
|
|
52
|
+
}
|
|
53
|
+
._11b2y8z4 {
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
margin-bottom: 0;
|
|
56
|
+
}
|
|
57
|
+
._11b2y8z5 {
|
|
58
|
+
align-self: stretch;
|
|
59
|
+
border: 0;
|
|
60
|
+
flex: 1 1 0%;
|
|
61
|
+
font-family: var(--header-font-family);
|
|
62
|
+
outline: 0;
|
|
63
|
+
padding-left: 3px;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
color: #1e3860;
|
|
66
|
+
margin: 0;
|
|
67
|
+
}
|
|
68
|
+
._11b2y8z7 {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
._11b2y8z8 {
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
font-size: 18px;
|
|
74
|
+
line-height: 1.4;
|
|
75
|
+
padding: 14px 64px;
|
|
76
|
+
background-color: var(--_1073cm86);
|
|
77
|
+
color: #FFFFFF;
|
|
78
|
+
width: auto;
|
|
79
|
+
}
|
|
80
|
+
._11b2y8z9 {
|
|
81
|
+
padding-bottom: 32px;
|
|
82
|
+
}
|
|
83
|
+
._11b2y8za {
|
|
84
|
+
margin-bottom: 32px;
|
|
85
|
+
}
|
|
86
|
+
._11b2y8zb {
|
|
87
|
+
color: #1e3860;
|
|
88
|
+
}
|
|
89
|
+
._11b2y8zc {
|
|
90
|
+
margin-inline: auto;
|
|
91
|
+
}
|
|
92
|
+
._11b2y8zd {
|
|
93
|
+
margin-top: 1rem;
|
|
94
|
+
}
|
|
95
|
+
._11b2y8ze {
|
|
96
|
+
color: var(--_1073cm82);
|
|
97
|
+
}
|
|
98
|
+
._11b2y8zf {
|
|
99
|
+
color: var(--_1073cm89);
|
|
100
|
+
}
|
|
101
|
+
._11b2y8zg {
|
|
102
|
+
color: var(--_1073cm8g);
|
|
103
|
+
}
|
|
104
|
+
._11b2y8zh {
|
|
105
|
+
color: var(--_1073cm8n);
|
|
106
|
+
}
|
|
107
|
+
._11b2y8zi {
|
|
108
|
+
margin-top: 16px;
|
|
109
|
+
}
|
|
110
|
+
._11b2y8zj {
|
|
111
|
+
color: var(--_1073cm82);
|
|
112
|
+
}
|
|
113
|
+
._11b2y8zk {
|
|
114
|
+
color: var(--_1073cm89);
|
|
115
|
+
}
|
|
116
|
+
._11b2y8zl {
|
|
117
|
+
color: var(--_1073cm8g);
|
|
118
|
+
}
|
|
119
|
+
._11b2y8zm {
|
|
120
|
+
color: var(--_1073cm8n);
|
|
121
|
+
}
|
|
122
|
+
@media screen and (max-width: 1023px) {
|
|
123
|
+
._11b2y8z0 > .containment {
|
|
124
|
+
max-width: 100%;
|
|
125
|
+
width: 100%;
|
|
126
|
+
border-radius: 0;
|
|
127
|
+
padding: 84px 28px 100px;
|
|
128
|
+
}
|
|
129
|
+
._11b2y8z1 {
|
|
130
|
+
padding: 32px 24px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@media screen and (max-width:1023px) {
|
|
134
|
+
._11b2y8z3 {
|
|
135
|
+
font-size: 23px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
@media screen and (max-width: 900px) {
|
|
139
|
+
._11b2y8z8 {
|
|
140
|
+
padding: 4px 32px;
|
|
141
|
+
font-size: 14px;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
@media screen and (max-width: 768px) {
|
|
145
|
+
._11b2y8z0 ._1nivbwet ._1nivbwe12 tr:nth-child(even) td {
|
|
146
|
+
background: #f4f4f4;
|
|
147
|
+
}
|
|
148
|
+
._11b2y8z0 > .containment {
|
|
149
|
+
padding: 0px;
|
|
150
|
+
}
|
|
151
|
+
._11b2y8z0 tbody tr + tr ._1nivbwel {
|
|
152
|
+
border-bottom: none;
|
|
153
|
+
}
|
|
154
|
+
._11b2y8z0 tbody tr:first-child td {
|
|
155
|
+
font-size: 16px;
|
|
156
|
+
line-height: 1.5;
|
|
157
|
+
font-family: var(--main-font-family);
|
|
158
|
+
background: #ace1fc;
|
|
159
|
+
}
|
|
160
|
+
._11b2y8z0 ._1nivbwes._1nivbwet {
|
|
161
|
+
padding: 0px;
|
|
162
|
+
margin-top: 0px !important;
|
|
163
|
+
}
|
|
164
|
+
._11b2y8z1 {
|
|
165
|
+
border-radius: 0;
|
|
166
|
+
padding: 0;
|
|
167
|
+
}
|
|
168
|
+
._11b2y8z2 {
|
|
169
|
+
border: 0;
|
|
170
|
+
padding: 0 16px 28px;
|
|
171
|
+
flex-wrap: wrap;
|
|
172
|
+
background: #def4ff;
|
|
173
|
+
border-radius: 0;
|
|
174
|
+
}
|
|
175
|
+
._11b2y8z3 {
|
|
176
|
+
font-size: 18px;
|
|
177
|
+
flex: 1 1 100%;
|
|
178
|
+
border: 1px solid #d9d9d9;
|
|
179
|
+
border-radius: 8px;
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
font-family: var(--main-font-family);
|
|
182
|
+
padding-left: 8px;
|
|
183
|
+
background: #fff;
|
|
184
|
+
}
|
|
185
|
+
._11b2y8z5 {
|
|
186
|
+
font-family: var(--main-font-family);
|
|
187
|
+
padding: 8px 8px 8px 0;
|
|
188
|
+
}
|
|
189
|
+
._11b2y8z6 {
|
|
190
|
+
display: none;
|
|
191
|
+
}
|
|
192
|
+
._11b2y8z7 {
|
|
193
|
+
display: block;
|
|
194
|
+
}
|
|
195
|
+
._11b2y8z8 {
|
|
196
|
+
margin-top: 16px;
|
|
197
|
+
}
|
|
198
|
+
._11b2y8za {
|
|
199
|
+
margin-top: 16px;
|
|
200
|
+
padding: 32px 16px 0;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
@media screen and (max-width: 450px) {
|
|
204
|
+
._11b2y8z4 {
|
|
205
|
+
width: 151px;
|
|
206
|
+
}
|
|
207
|
+
._11b2y8z5 {
|
|
208
|
+
width: 50%;
|
|
209
|
+
}
|
|
210
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from './Button';
|
|
|
12
12
|
export * from './Calculators';
|
|
13
13
|
export * from './Calculators/AnnualFeeCalculator';
|
|
14
14
|
export * from './Calculators/ApyCalculator';
|
|
15
|
+
export * from './Calculators/BalanceAPYCalculator';
|
|
16
|
+
export * from './Calculators/AxosOneCalculator';
|
|
15
17
|
export * from './Calculators/MarginTradingCalculator';
|
|
16
18
|
export * from './Calculators/MonthlyPaymentCalculator';
|
|
17
19
|
export * from './CallToActionBar';
|
package/dist/main.js
CHANGED
|
@@ -19,6 +19,7 @@ import { button } from "./Button/Button.css.js";
|
|
|
19
19
|
import { GoBackButton } from "./Button/GoBackButton.js";
|
|
20
20
|
import { AnnualFeeCalculator } from "./Calculators/AnnualFeeCalculator/index.js";
|
|
21
21
|
import { ApyCalculator } from "./Calculators/ApyCalculator/index.js";
|
|
22
|
+
import { AxosOneCalculator } from "./Calculators/AxosOneCalculator/index.js";
|
|
22
23
|
import { BalanceAPYCalculator } from "./Calculators/BalanceAPYCalculator/index.js";
|
|
23
24
|
import { Calculator } from "./Calculators/Calculator.js";
|
|
24
25
|
import { calculator, calculator_description, calculator_headline } from "./Calculators/calculator.css.js";
|
|
@@ -183,6 +184,7 @@ export {
|
|
|
183
184
|
AwardsBanner,
|
|
184
185
|
AwardsItem,
|
|
185
186
|
AxosFooterSiteMap,
|
|
187
|
+
AxosOneCalculator,
|
|
186
188
|
default3 as AxosX,
|
|
187
189
|
default4 as AxosXBlue,
|
|
188
190
|
BalanceAPYCalculator,
|
|
@@ -19,7 +19,8 @@ const moreDomains = {
|
|
|
19
19
|
"{UNVENROLLMENT}": process.env.UNVENROLLMENT_URL || "https://enroll.axosbank.com",
|
|
20
20
|
"{AUTOAXB}": "https://auto.axosbank.com/partner/axos-purchase/AU",
|
|
21
21
|
"{COMMERCIALPORTAL}": process.env.COMMERCIALPORTAL_URL || "https://portals.axosbank.com/",
|
|
22
|
-
"{DEVAXC}": process.env.DEVELOPER_CLEARING || "https://developer.axosclearing.com"
|
|
22
|
+
"{DEVAXC}": process.env.DEVELOPER_CLEARING || "https://developer.axosclearing.com",
|
|
23
|
+
"{AFF}": process.env.FUNDFINDER_URL || "https://axosfundfinder.com/"
|
|
23
24
|
};
|
|
24
25
|
const isAllowedUrl = (url) => {
|
|
25
26
|
const uri = new URL(url, location.href);
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FormProps } from './FormProps';
|
|
2
|
-
|
|
3
|
-
export type BlendPurchaseInputs = {
|
|
4
|
-
property_Type: string;
|
|
5
|
-
Occupancy: string;
|
|
6
|
-
SalesPrice: string;
|
|
7
|
-
DownPayment: string;
|
|
8
|
-
CreditScore: string;
|
|
9
|
-
ZipCode: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const BlendPurchase: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
|
-
import { Button } from "../Button/Button.js";
|
|
5
|
-
import "../Button/Button.css.js";
|
|
6
|
-
import "react";
|
|
7
|
-
import "react-use";
|
|
8
|
-
import "../Input/Checkbox.js";
|
|
9
|
-
import "../Input/CurrencyInput.js";
|
|
10
|
-
import "../Input/Dropdown.js";
|
|
11
|
-
/* empty css */
|
|
12
|
-
/* empty css */
|
|
13
|
-
import { Input } from "../Input/Input.js";
|
|
14
|
-
import "../Input/Input.css.js";
|
|
15
|
-
import "../Input/InputAmount.js";
|
|
16
|
-
import { InputPhone } from "../Input/InputPhone.js";
|
|
17
|
-
import "../Input/InputTextArea.js";
|
|
18
|
-
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
|
-
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
|
-
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
21
|
-
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
22
|
-
/* empty css */
|
|
23
|
-
/* empty css */
|
|
24
|
-
/* empty css */
|
|
25
|
-
/* empty css */
|
|
26
|
-
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
27
|
-
import "../utils/allowedAxosDomains.js";
|
|
28
|
-
import { getVariant } from "../utils/getVariant.js";
|
|
29
|
-
import clsx from "clsx";
|
|
30
|
-
import { useForm, FormProvider } from "react-hook-form";
|
|
31
|
-
import * as z from "zod";
|
|
32
|
-
import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
|
|
33
|
-
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
34
|
-
const BlendPurchase = ({
|
|
35
|
-
icon = false,
|
|
36
|
-
children,
|
|
37
|
-
onSubmit = (values) => {
|
|
38
|
-
console.log(values);
|
|
39
|
-
},
|
|
40
|
-
disclosure,
|
|
41
|
-
variant: fullVariant = "primary",
|
|
42
|
-
headline,
|
|
43
|
-
description,
|
|
44
|
-
callToAction,
|
|
45
|
-
validateEmail,
|
|
46
|
-
id
|
|
47
|
-
}) => {
|
|
48
|
-
const schema = z.object({
|
|
49
|
-
property_Type: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
|
|
50
|
-
Occupancy: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
|
|
51
|
-
SalesPrice: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
|
|
52
|
-
DownPayment: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
53
|
-
const removeDashes = val.replace(/-/gi, "");
|
|
54
|
-
if (removeDashes.length !== 10) {
|
|
55
|
-
ctx.addIssue({
|
|
56
|
-
code: z.ZodIssueCode.custom,
|
|
57
|
-
message: "Phone must have at least 10 and no more than 10 characters."
|
|
58
|
-
});
|
|
59
|
-
return z.NEVER;
|
|
60
|
-
}
|
|
61
|
-
return removeDashes;
|
|
62
|
-
}),
|
|
63
|
-
CreditScore: z.string(),
|
|
64
|
-
ZipCode: z.string()
|
|
65
|
-
});
|
|
66
|
-
const methods = useForm({
|
|
67
|
-
resolver: zodResolver(schema.merge(SalesforceSchema), {
|
|
68
|
-
async: true
|
|
69
|
-
}),
|
|
70
|
-
mode: "all",
|
|
71
|
-
defaultValues: {}
|
|
72
|
-
});
|
|
73
|
-
const {
|
|
74
|
-
handleSubmit,
|
|
75
|
-
register,
|
|
76
|
-
formState: { errors, isValid, isSubmitting }
|
|
77
|
-
} = methods;
|
|
78
|
-
const submitForm = async (data) => {
|
|
79
|
-
await onSubmit(data);
|
|
80
|
-
};
|
|
81
|
-
const variant = getVariant(fullVariant);
|
|
82
|
-
return /* @__PURE__ */ jsx(
|
|
83
|
-
"section",
|
|
84
|
-
{
|
|
85
|
-
id: `id_${id}`,
|
|
86
|
-
className: clsx(formContainer({ variant })),
|
|
87
|
-
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
88
|
-
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
89
|
-
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
90
|
-
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
91
|
-
description && /* @__PURE__ */ jsx(
|
|
92
|
-
"div",
|
|
93
|
-
{
|
|
94
|
-
className: clsx(
|
|
95
|
-
"text_center",
|
|
96
|
-
form,
|
|
97
|
-
descriptionField({ variant })
|
|
98
|
-
),
|
|
99
|
-
children: description
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
104
|
-
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
105
|
-
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
106
|
-
Input,
|
|
107
|
-
{
|
|
108
|
-
id: "property_Type",
|
|
109
|
-
...register("property_Type", { required: true }),
|
|
110
|
-
label: "Property Type",
|
|
111
|
-
sizes: "medium",
|
|
112
|
-
required: true,
|
|
113
|
-
error: !!errors.property_Type,
|
|
114
|
-
helperText: errors.property_Type?.message,
|
|
115
|
-
variant
|
|
116
|
-
}
|
|
117
|
-
) }),
|
|
118
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
119
|
-
Input,
|
|
120
|
-
{
|
|
121
|
-
id: "Occupancy",
|
|
122
|
-
...register("Occupancy", { required: true }),
|
|
123
|
-
label: "Property Usage",
|
|
124
|
-
sizes: "medium",
|
|
125
|
-
required: true,
|
|
126
|
-
error: !!errors.Occupancy,
|
|
127
|
-
helperText: errors.Occupancy?.message,
|
|
128
|
-
variant
|
|
129
|
-
}
|
|
130
|
-
) }),
|
|
131
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
132
|
-
Input,
|
|
133
|
-
{
|
|
134
|
-
id: "SalesPrice",
|
|
135
|
-
...register("SalesPrice", {
|
|
136
|
-
required: true,
|
|
137
|
-
validate: {
|
|
138
|
-
isValid: associatedEmail
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
141
|
-
label: "Purchase Price",
|
|
142
|
-
sizes: "medium",
|
|
143
|
-
required: true,
|
|
144
|
-
error: !!errors.SalesPrice,
|
|
145
|
-
helperText: errors.SalesPrice?.message,
|
|
146
|
-
variant
|
|
147
|
-
}
|
|
148
|
-
) }),
|
|
149
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
150
|
-
InputPhone,
|
|
151
|
-
{
|
|
152
|
-
id: "DownPayment",
|
|
153
|
-
...register("DownPayment", {
|
|
154
|
-
required: true,
|
|
155
|
-
maxLength: 12
|
|
156
|
-
}),
|
|
157
|
-
label: "Down Payment",
|
|
158
|
-
sizes: "medium",
|
|
159
|
-
required: true,
|
|
160
|
-
error: !!errors.DownPayment,
|
|
161
|
-
helperText: errors.DownPayment?.message,
|
|
162
|
-
variant
|
|
163
|
-
}
|
|
164
|
-
) }),
|
|
165
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
166
|
-
InputPhone,
|
|
167
|
-
{
|
|
168
|
-
id: "CreditScore",
|
|
169
|
-
...register("CreditScore", {
|
|
170
|
-
required: true,
|
|
171
|
-
maxLength: 12
|
|
172
|
-
}),
|
|
173
|
-
label: "Credit Score",
|
|
174
|
-
sizes: "medium",
|
|
175
|
-
required: true,
|
|
176
|
-
error: !!errors.CreditScore,
|
|
177
|
-
helperText: errors.CreditScore?.message,
|
|
178
|
-
variant
|
|
179
|
-
}
|
|
180
|
-
) }),
|
|
181
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
182
|
-
InputPhone,
|
|
183
|
-
{
|
|
184
|
-
id: "ZipCode",
|
|
185
|
-
...register("ZipCode", { required: true, maxLength: 12 }),
|
|
186
|
-
label: "Zip Code",
|
|
187
|
-
sizes: "medium",
|
|
188
|
-
required: true,
|
|
189
|
-
error: !!errors.ZipCode,
|
|
190
|
-
helperText: errors.ZipCode?.message,
|
|
191
|
-
variant
|
|
192
|
-
}
|
|
193
|
-
) })
|
|
194
|
-
] }),
|
|
195
|
-
children,
|
|
196
|
-
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
197
|
-
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
198
|
-
Button,
|
|
199
|
-
{
|
|
200
|
-
color: getVariant(callToAction?.variant),
|
|
201
|
-
as: "button",
|
|
202
|
-
type: "submit",
|
|
203
|
-
disabled: !isValid || isSubmitting,
|
|
204
|
-
children: callToAction?.displayText
|
|
205
|
-
}
|
|
206
|
-
) })
|
|
207
|
-
] })
|
|
208
|
-
] }) })
|
|
209
|
-
},
|
|
210
|
-
id
|
|
211
|
-
);
|
|
212
|
-
};
|
|
213
|
-
export {
|
|
214
|
-
BlendPurchase
|
|
215
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FormProps } from './FormProps';
|
|
2
|
-
|
|
3
|
-
export type BlendPurchaseInputs = {
|
|
4
|
-
property_Type: string;
|
|
5
|
-
Occupancy: string;
|
|
6
|
-
SalesPrice: string;
|
|
7
|
-
DownPayment: string;
|
|
8
|
-
CreditScore: string;
|
|
9
|
-
ZipCode: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const BlendPurchase: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
|