@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.
- package/dist/Calculators/BuyDownCalculator/index.js +1 -1
- package/dist/Calculators/Calculator.d.ts +3 -1
- package/dist/Calculators/Calculator.js +4 -2
- package/dist/Calculators/MonthlyPaymentCalculator/index.d.ts +3 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -8
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +101 -89
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +174 -162
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +191 -179
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +268 -256
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +106 -94
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +103 -91
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +117 -105
- package/dist/Forms/ContactUs.js +2 -1
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +170 -158
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +124 -112
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +93 -81
- package/dist/Forms/ContactUsLVF.d.ts +3 -1
- package/dist/Forms/ContactUsLVF.js +117 -101
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +107 -95
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +630 -618
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +99 -87
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +215 -203
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +46 -34
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +65 -53
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +363 -343
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +608 -596
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +146 -134
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +168 -156
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +807 -795
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +102 -90
- package/package.json +133 -133
|
@@ -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,\
|
|
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
|
}
|
|
@@ -12,4 +12,6 @@ export interface CalculatorProps {
|
|
|
12
12
|
disclosure?: React.ReactNode;
|
|
13
13
|
marketingTiles?: IconBillboardProps[];
|
|
14
14
|
}
|
|
15
|
-
export declare const Calculator: (props: CalculatorProps
|
|
15
|
+
export declare const Calculator: (props: CalculatorProps & {
|
|
16
|
+
showCurrency: boolean;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -135,7 +135,8 @@ const Calculator = (props) => {
|
|
|
135
135
|
disclosure,
|
|
136
136
|
headline,
|
|
137
137
|
name,
|
|
138
|
-
marketingTiles
|
|
138
|
+
marketingTiles,
|
|
139
|
+
showCurrency = true
|
|
139
140
|
} = props;
|
|
140
141
|
const ref = useRef(null);
|
|
141
142
|
const iframe = calculators.get(name || "");
|
|
@@ -174,7 +175,8 @@ const Calculator = (props) => {
|
|
|
174
175
|
header: headline,
|
|
175
176
|
bodyCopy,
|
|
176
177
|
variant,
|
|
177
|
-
disclosure
|
|
178
|
+
disclosure,
|
|
179
|
+
showCurrency
|
|
178
180
|
}
|
|
179
181
|
);
|
|
180
182
|
} else if (name === "Calculate a Loan Payment LVF") {
|
|
@@ -6,4 +6,6 @@ export interface MonthlyPaymentCalculatorProps {
|
|
|
6
6
|
variant?: string;
|
|
7
7
|
disclosure?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
export declare const MonthlyPaymentCalculator: FC<MonthlyPaymentCalculatorProps
|
|
9
|
+
export declare const MonthlyPaymentCalculator: FC<MonthlyPaymentCalculatorProps & {
|
|
10
|
+
showCurrency?: boolean;
|
|
11
|
+
}>;
|
|
@@ -9,12 +9,7 @@ import { useState } from "react";
|
|
|
9
9
|
import { calc_text, description_text, calc_disclosure } from "../BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
10
10
|
import { calculator } from "../calculator.css.js";
|
|
11
11
|
import { calc_container, container, h2i, inputs_container, input_container, input_box, error_message, calculation_header, payment_results } from "./MonthlyPaymentCalculator.css.js";
|
|
12
|
-
const MonthlyPaymentCalculator = ({
|
|
13
|
-
variant,
|
|
14
|
-
header,
|
|
15
|
-
disclosure,
|
|
16
|
-
bodyCopy
|
|
17
|
-
}) => {
|
|
12
|
+
const MonthlyPaymentCalculator = ({ variant, header, disclosure, bodyCopy, showCurrency = true }) => {
|
|
18
13
|
const fullVariant = getVariant(variant);
|
|
19
14
|
const [loanAmountDisplay, setLoanAmountDisplay] = useState("");
|
|
20
15
|
const [loanAmount, setLoanAmount] = useState(void 0);
|
|
@@ -56,7 +51,7 @@ const MonthlyPaymentCalculator = ({
|
|
|
56
51
|
};
|
|
57
52
|
const handleLoanAmountChange = (event) => {
|
|
58
53
|
const value = event.target.value;
|
|
59
|
-
const formattedValue = formatToCurrency(value);
|
|
54
|
+
const formattedValue = showCurrency ? formatToCurrency(value) : value;
|
|
60
55
|
setLoanAmountDisplay(formattedValue);
|
|
61
56
|
const numericValue = parseFloat(value.replace(/[^0-9.]/g, ""));
|
|
62
57
|
setLoanAmount(isNaN(numericValue) ? void 0 : numericValue);
|
|
@@ -147,7 +142,7 @@ const MonthlyPaymentCalculator = ({
|
|
|
147
142
|
maxLength: 10,
|
|
148
143
|
name: "loanAmount",
|
|
149
144
|
type: "text",
|
|
150
|
-
placeholder: "$0",
|
|
145
|
+
placeholder: showCurrency ? "$0" : "0",
|
|
151
146
|
value: loanAmountDisplay,
|
|
152
147
|
onChange: handleLoanAmountChange
|
|
153
148
|
}
|
|
@@ -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(
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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;
|