@axos-web-dev/shared-components 0.0.195 → 0.0.197
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/Button/Button.d.ts +1 -1
- package/dist/Button/Button.js +6 -4
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +16 -1
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +14 -14
- package/dist/Calculators/MonthlyPaymentLVFCalculator/index.js +40 -74
- package/dist/CallToActionBar/index.js +1 -1
- package/dist/Chevron/Chevron.css.d.ts +1 -0
- package/dist/Chevron/Chevron.css.js +3 -1
- package/dist/Chevron/Chevron.interface.d.ts +8 -0
- package/dist/Chevron/index.js +20 -8
- package/dist/FaqAccordion/index.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
- package/dist/Forms/ApplyNow.d.ts +4 -0
- package/dist/Forms/ApplyNow.js +599 -0
- package/dist/Forms/ContactUsBusiness.js +3 -3
- package/dist/Forms/ContactUsNMLSId.js +3 -3
- package/dist/Forms/EmailOnly.js +3 -3
- package/dist/Forms/Forms.css.d.ts +5 -0
- package/dist/Forms/Forms.css.js +10 -0
- package/dist/Forms/index.d.ts +1 -0
- package/dist/Forms/index.js +9 -1
- package/dist/Hyperlink/index.js +1 -1
- package/dist/IconBillboard/IconBillboard.d.ts +2 -1
- package/dist/IconBillboard/IconBillboard.js +22 -4
- package/dist/IconBillboard/index.js +2 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +1 -1
- package/dist/ImageLink/index.js +1 -1
- package/dist/Modal/Modal.js +3 -3
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosBank/NavData.js +1 -6
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +4 -4
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
- package/dist/NavigationMenu/LaVictoire/NavData.js +1 -1
- package/dist/NavigationMenu/LaVictoire/index.js +3 -3
- package/dist/SocialMediaBar/iconsRepository.js +1 -1
- package/dist/VideoWrapper/index.js +1 -1
- package/dist/assets/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css +63 -34
- package/dist/assets/Chevron/Chevron.css +6 -0
- package/dist/assets/Comparison/Comparison.css +1 -1
- package/dist/assets/Forms/Forms.css +26 -0
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +658 -658
- package/dist/assets/NavigationMenu/LaVictoire/NavBar.css.css +429 -429
- package/dist/assets/globals.css +1 -0
- package/dist/icons/ArrowIcon/index.d.ts +2 -2
- package/dist/icons/ArrowIcon/index.js +6 -1
- package/dist/main.js +11 -2
- package/dist/utils/allowedAxosDomains.js +2 -1
- package/package.json +2 -2
package/dist/Button/Button.d.ts
CHANGED
|
@@ -18,4 +18,4 @@ export type ButtonAsLink = ButtonBase & Omit<AnchorHTMLAttributes<HTMLAnchorElem
|
|
|
18
18
|
as?: "a";
|
|
19
19
|
};
|
|
20
20
|
export type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
21
|
-
export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, marketingIntersitial, }: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const Button: ({ as, children, color, size, disabled, rounded, targetUrl, id, newTab, action, className, square, marketingIntersitial, ...rest }: ButtonProps & ButtonVariants) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Button/Button.js
CHANGED
|
@@ -11,6 +11,7 @@ import "../icons/CheckIcon/CheckIcon.css.js";
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
import { getVariant } from "../utils/getVariant.js";
|
|
14
|
+
import clsx from "clsx";
|
|
14
15
|
import { useState, createElement } from "react";
|
|
15
16
|
import "../AlertBanner/AlertBanner.css.js";
|
|
16
17
|
import "../Article/Article.css.js";
|
|
@@ -20,7 +21,6 @@ import "../ArticlesSet/ArticlesSet.css.js";
|
|
|
20
21
|
import "../IconBillboard/IconBillboard.css.js";
|
|
21
22
|
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
22
23
|
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
23
|
-
import clsx from "clsx";
|
|
24
24
|
import "../Calculators/calculator.css.js";
|
|
25
25
|
import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
26
26
|
import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
@@ -42,6 +42,8 @@ import "../Input/RadioButton.js";
|
|
|
42
42
|
import "react-hook-form";
|
|
43
43
|
import "../Forms/Forms.css.js";
|
|
44
44
|
import "../Forms/SalesforceFieldsForm.js";
|
|
45
|
+
/* empty css */
|
|
46
|
+
/* empty css */
|
|
45
47
|
import "../Input/RadioButton.css.js";
|
|
46
48
|
import "../Input/Checkbox.css.js";
|
|
47
49
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
@@ -56,8 +58,6 @@ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js"
|
|
|
56
58
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
57
59
|
/* empty css */
|
|
58
60
|
/* empty css */
|
|
59
|
-
/* empty css */
|
|
60
|
-
/* empty css */
|
|
61
61
|
/* empty css */
|
|
62
62
|
import "../Carousel/index.js";
|
|
63
63
|
/* empty css */
|
|
@@ -123,7 +123,8 @@ const Button = ({
|
|
|
123
123
|
action,
|
|
124
124
|
className,
|
|
125
125
|
square,
|
|
126
|
-
marketingIntersitial
|
|
126
|
+
marketingIntersitial,
|
|
127
|
+
...rest
|
|
127
128
|
}) => {
|
|
128
129
|
const variant = getVariant(color);
|
|
129
130
|
const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
|
|
@@ -149,6 +150,7 @@ const Button = ({
|
|
|
149
150
|
createElement(
|
|
150
151
|
as,
|
|
151
152
|
{
|
|
153
|
+
...rest,
|
|
152
154
|
className: clsx(
|
|
153
155
|
button({ color: variant, size, disabled, rounded, square }),
|
|
154
156
|
className
|
|
@@ -15,7 +15,22 @@ export declare const bg_vars: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
15
15
|
};
|
|
16
16
|
}>;
|
|
17
17
|
export declare const calc_content_area: string;
|
|
18
|
-
export declare const calc_h2:
|
|
18
|
+
export declare const calc_h2: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
19
|
+
variant: {
|
|
20
|
+
primary: {
|
|
21
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
22
|
+
};
|
|
23
|
+
secondary: {
|
|
24
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
25
|
+
};
|
|
26
|
+
tertiary: {
|
|
27
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
28
|
+
};
|
|
29
|
+
quaternary: {
|
|
30
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}>;
|
|
19
34
|
export declare const calc_bodycopy: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
20
35
|
variant: {
|
|
21
36
|
primary: {
|
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
6
|
var bg_vars = createRuntimeFn({ defaultClassName: "_1xynjwx0", variantClassNames: { variant: { primary: "_1xynjwx1", secondary: "_1xynjwx2", tertiary: "_1xynjwx3", quaternary: "_1xynjwx4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
7
|
var calc_content_area = "_1xynjwx5";
|
|
8
|
-
var calc_h2 = "_1xynjwx6";
|
|
9
|
-
var calc_bodycopy = createRuntimeFn({ defaultClassName: "
|
|
10
|
-
var lvf_calc_header = "
|
|
11
|
-
var lvf_calc_wrapper = "
|
|
12
|
-
var calc_wrapper_inner = "
|
|
13
|
-
var calc_input_wrap = "
|
|
14
|
-
var calc_input_styles = "
|
|
15
|
-
var error_dialog = "
|
|
16
|
-
var rounded_cell = "
|
|
17
|
-
var results_wrap = "
|
|
18
|
-
var result_value = "
|
|
19
|
-
var result_header = "
|
|
20
|
-
var waves = "
|
|
21
|
-
var parallax = "
|
|
8
|
+
var calc_h2 = createRuntimeFn({ defaultClassName: "_1xynjwx6", variantClassNames: { variant: { primary: "_1xynjwx7", secondary: "_1xynjwx8", tertiary: "_1xynjwx9", quaternary: "_1xynjwxa" } }, defaultVariants: {}, compoundVariants: [] });
|
|
9
|
+
var calc_bodycopy = createRuntimeFn({ defaultClassName: "_1xynjwxb", variantClassNames: { variant: { primary: "_1xynjwxc", secondary: "_1xynjwxd", tertiary: "_1xynjwxe", quaternary: "_1xynjwxf" } }, defaultVariants: {}, compoundVariants: [] });
|
|
10
|
+
var lvf_calc_header = "_1xynjwxg";
|
|
11
|
+
var lvf_calc_wrapper = "_1xynjwxh";
|
|
12
|
+
var calc_wrapper_inner = "_1xynjwxi";
|
|
13
|
+
var calc_input_wrap = "_1xynjwxj";
|
|
14
|
+
var calc_input_styles = "_1xynjwxk";
|
|
15
|
+
var error_dialog = "_1xynjwxl";
|
|
16
|
+
var rounded_cell = "_1xynjwxm";
|
|
17
|
+
var results_wrap = "_1xynjwxn";
|
|
18
|
+
var result_value = "_1xynjwxo";
|
|
19
|
+
var result_header = "_1xynjwxp";
|
|
20
|
+
var waves = "_1xynjwxq";
|
|
21
|
+
var parallax = "_1xynjwxr";
|
|
22
22
|
export {
|
|
23
23
|
bg_vars,
|
|
24
24
|
calc_bodycopy,
|
|
@@ -7,117 +7,83 @@ import { useState } from "react";
|
|
|
7
7
|
import { calc_disclosure } from "../BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
8
8
|
import { bg_vars, calc_content_area, calc_h2, calc_bodycopy, lvf_calc_wrapper, lvf_calc_header, calc_wrapper_inner, calc_input_wrap, rounded_cell, calc_input_styles, error_dialog, results_wrap, result_header, result_value, waves, parallax } from "./MonthlyPaymentCalculator.css.js";
|
|
9
9
|
const MonthlyPaymentLVFCalculator = ({ variant, header, bodyCopy, disclosure }) => {
|
|
10
|
-
const
|
|
11
|
-
const [
|
|
10
|
+
const theme = getVariant(variant);
|
|
11
|
+
const [loanAmountMasked, setLoanAmountMasked] = useState("50,000");
|
|
12
12
|
const [loanAmount, setLoanAmount] = useState(5e4);
|
|
13
13
|
const [loanYears, setLoanYears] = useState(20);
|
|
14
|
-
const [interestRateDisplay, setInterestRateDisplay] = useState("8.25%");
|
|
15
14
|
const [interestRate, setInterestRate] = useState("8.25");
|
|
16
|
-
const [
|
|
17
|
-
const [
|
|
18
|
-
const [
|
|
19
|
-
null
|
|
20
|
-
);
|
|
15
|
+
const [paymentAmount, setPaymentAmount] = useState(426.03);
|
|
16
|
+
const [loanErrorMsg, setLoanErrorMsg] = useState(null);
|
|
17
|
+
const [rateErrorMsg, setRateErrorMsg] = useState(null);
|
|
21
18
|
const [isHovered, setIsHovered] = useState(false);
|
|
22
19
|
const handleMouseEnter = () => setIsHovered(true);
|
|
23
20
|
const handleMouseLeave = () => setIsHovered(false);
|
|
24
|
-
const
|
|
21
|
+
const addDelimiters = (value) => {
|
|
25
22
|
const numericValue = parseFloat(value.replace(/[^0-9.]/g, ""));
|
|
26
23
|
if (isNaN(numericValue)) {
|
|
27
24
|
return "";
|
|
28
25
|
}
|
|
29
26
|
return numericValue.toLocaleString("en-US", {
|
|
30
|
-
style: "currency",
|
|
31
|
-
currency: "USD",
|
|
32
27
|
minimumFractionDigits: 0,
|
|
33
28
|
maximumFractionDigits: 0
|
|
34
29
|
});
|
|
35
30
|
};
|
|
36
|
-
const
|
|
31
|
+
const inputsValid = () => {
|
|
37
32
|
let isValid = true;
|
|
38
33
|
if (!loanAmount) {
|
|
39
|
-
|
|
34
|
+
setLoanErrorMsg("* loan amount required");
|
|
40
35
|
isValid = false;
|
|
41
36
|
} else {
|
|
42
|
-
|
|
37
|
+
setLoanErrorMsg(null);
|
|
43
38
|
}
|
|
44
39
|
if (!interestRate) {
|
|
45
|
-
|
|
40
|
+
setRateErrorMsg("* interest rate required");
|
|
46
41
|
isValid = false;
|
|
47
42
|
} else {
|
|
48
|
-
|
|
43
|
+
setRateErrorMsg(null);
|
|
49
44
|
}
|
|
50
45
|
return isValid;
|
|
51
46
|
};
|
|
52
|
-
const
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
const numericValue = parseFloat(
|
|
47
|
+
const handleAmountChange = (e) => {
|
|
48
|
+
const amount = e.target.value;
|
|
49
|
+
const formatAmount = addDelimiters(amount);
|
|
50
|
+
setLoanAmountMasked(formatAmount);
|
|
51
|
+
const numericValue = parseFloat(amount.replace(/[^0-9.]/g, ""));
|
|
57
52
|
setLoanAmount(numericValue);
|
|
58
53
|
};
|
|
59
|
-
const handleloanYearsChange = (
|
|
60
|
-
setLoanYears(Number(
|
|
61
|
-
};
|
|
62
|
-
const formatToPercentage = (value) => {
|
|
63
|
-
const numericValue = value.replace(/[^0-9.]/g, "");
|
|
64
|
-
if (numericValue === "") {
|
|
65
|
-
return "";
|
|
66
|
-
} else if (numericValue.endsWith("%")) {
|
|
67
|
-
return numericValue;
|
|
68
|
-
} else {
|
|
69
|
-
return numericValue.substring(0, numericValue.length - 2) + numericValue.substring(numericValue.length - 2) + "%";
|
|
70
|
-
}
|
|
54
|
+
const handleloanYearsChange = (e) => {
|
|
55
|
+
setLoanYears(Number(e.target.value));
|
|
71
56
|
};
|
|
72
|
-
const
|
|
73
|
-
let value =
|
|
74
|
-
if (value.length < interestRateDisplay.length) {
|
|
75
|
-
if (interestRateDisplay.length > 1 && interestRateDisplay.endsWith("%")) {
|
|
76
|
-
value = interestRateDisplay.substring(0, interestRateDisplay.length - 2) + "%";
|
|
77
|
-
} else if (interestRateDisplay.length === 1) {
|
|
78
|
-
value = "";
|
|
79
|
-
} else {
|
|
80
|
-
value = interestRateDisplay.substring(
|
|
81
|
-
0,
|
|
82
|
-
interestRateDisplay.length - 1
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
} else {
|
|
86
|
-
value = formatToPercentage(value);
|
|
87
|
-
}
|
|
88
|
-
setInterestRateDisplay(value);
|
|
57
|
+
const handleRateChange = (e) => {
|
|
58
|
+
let value = e.target.value;
|
|
89
59
|
setInterestRate(value.replace(/[^0-9.]/g, ""));
|
|
90
60
|
};
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const
|
|
61
|
+
const calculatePayment = () => {
|
|
62
|
+
const rateAsNum = parseFloat(interestRate);
|
|
63
|
+
const monthlyRate = rateAsNum / 100 / 12;
|
|
94
64
|
const months = loanYears * 12;
|
|
95
|
-
if (!isNaN(loanAmount || 0) && !isNaN(
|
|
96
|
-
const monthlyPayment = (loanAmount || 0) *
|
|
97
|
-
|
|
65
|
+
if (!isNaN(loanAmount || 0) && !isNaN(rateAsNum)) {
|
|
66
|
+
const monthlyPayment = (loanAmount || 0) * monthlyRate / (1 - Math.pow(1 + monthlyRate, -months));
|
|
67
|
+
setPaymentAmount(monthlyPayment);
|
|
98
68
|
} else {
|
|
99
|
-
|
|
69
|
+
setPaymentAmount(0);
|
|
100
70
|
}
|
|
101
71
|
};
|
|
102
72
|
const handleCalculate = () => {
|
|
103
|
-
|
|
104
|
-
calculateMonthlyPayment();
|
|
105
|
-
} else {
|
|
106
|
-
setEstimatedPayment(0);
|
|
107
|
-
}
|
|
73
|
+
inputsValid() ? calculatePayment() : setPaymentAmount(0);
|
|
108
74
|
};
|
|
109
|
-
return /* @__PURE__ */ jsxs("section", { className: bg_vars({ variant:
|
|
75
|
+
return /* @__PURE__ */ jsxs("section", { className: bg_vars({ variant: theme }), children: [
|
|
110
76
|
/* @__PURE__ */ jsxs("div", { className: "containment", children: [
|
|
111
77
|
/* @__PURE__ */ jsxs("div", { className: "flex between middle gap_24", children: [
|
|
112
78
|
(header || bodyCopy) && /* @__PURE__ */ jsxs("span", { className: calc_content_area, children: [
|
|
113
|
-
header && /* @__PURE__ */ jsx("h2", { className: `header_1 ${calc_h2}`, children: header }),
|
|
114
|
-
bodyCopy && /* @__PURE__ */ jsx("div", { className: calc_bodycopy({ variant:
|
|
79
|
+
header && /* @__PURE__ */ jsx("h2", { className: `header_1 ${calc_h2({ variant: theme })}`, children: header }),
|
|
80
|
+
bodyCopy && /* @__PURE__ */ jsx("div", { className: calc_bodycopy({ variant: theme }), children: bodyCopy })
|
|
115
81
|
] }),
|
|
116
82
|
/* @__PURE__ */ jsxs("div", { className: lvf_calc_wrapper, children: [
|
|
117
83
|
/* @__PURE__ */ jsx("div", { className: lvf_calc_header, children: "Calculate Your Payments" }),
|
|
118
84
|
/* @__PURE__ */ jsxs("div", { className: calc_wrapper_inner, children: [
|
|
119
85
|
/* @__PURE__ */ jsx("div", { className: calc_input_wrap, children: /* @__PURE__ */ jsxs("div", { className: rounded_cell, children: [
|
|
120
|
-
/* @__PURE__ */ jsx("label", { htmlFor: "loanAmount",
|
|
86
|
+
/* @__PURE__ */ jsx("label", { htmlFor: "loanAmount", children: "$" }),
|
|
121
87
|
/* @__PURE__ */ jsx(
|
|
122
88
|
"input",
|
|
123
89
|
{
|
|
@@ -127,11 +93,11 @@ const MonthlyPaymentLVFCalculator = ({ variant, header, bodyCopy, disclosure })
|
|
|
127
93
|
name: "loanAmount",
|
|
128
94
|
type: "text",
|
|
129
95
|
placeholder: "Loan Amount",
|
|
130
|
-
value:
|
|
131
|
-
onChange:
|
|
96
|
+
value: loanAmountMasked,
|
|
97
|
+
onChange: handleAmountChange
|
|
132
98
|
}
|
|
133
99
|
),
|
|
134
|
-
|
|
100
|
+
loanErrorMsg && /* @__PURE__ */ jsx("span", { className: error_dialog, children: loanErrorMsg })
|
|
135
101
|
] }) }),
|
|
136
102
|
/* @__PURE__ */ jsx("div", { className: `${calc_input_wrap} push_up_24`, children: /* @__PURE__ */ jsxs("div", { className: rounded_cell, children: [
|
|
137
103
|
/* @__PURE__ */ jsx("label", { htmlFor: "loanYears", children: "Years" }),
|
|
@@ -158,11 +124,11 @@ const MonthlyPaymentLVFCalculator = ({ variant, header, bodyCopy, disclosure })
|
|
|
158
124
|
name: "interestRate",
|
|
159
125
|
type: "text",
|
|
160
126
|
placeholder: "Interest Rate",
|
|
161
|
-
value:
|
|
162
|
-
onChange:
|
|
127
|
+
value: interestRate,
|
|
128
|
+
onChange: handleRateChange
|
|
163
129
|
}
|
|
164
130
|
),
|
|
165
|
-
|
|
131
|
+
rateErrorMsg && /* @__PURE__ */ jsx("span", { className: error_dialog, children: rateErrorMsg })
|
|
166
132
|
] }) }),
|
|
167
133
|
/* @__PURE__ */ jsx("div", { className: `flex center middle push_up_24`, children: /* @__PURE__ */ jsx(
|
|
168
134
|
"input",
|
|
@@ -190,7 +156,7 @@ const MonthlyPaymentLVFCalculator = ({ variant, header, bodyCopy, disclosure })
|
|
|
190
156
|
/* @__PURE__ */ jsx("span", { className: result_header, children: "Your monthly loan payment will be:" }),
|
|
191
157
|
/* @__PURE__ */ jsxs("span", { id: "estimatedPayment", className: result_value, children: [
|
|
192
158
|
"$",
|
|
193
|
-
|
|
159
|
+
paymentAmount.toFixed(2)
|
|
194
160
|
] })
|
|
195
161
|
]
|
|
196
162
|
}
|
|
@@ -198,7 +164,7 @@ const MonthlyPaymentLVFCalculator = ({ variant, header, bodyCopy, disclosure })
|
|
|
198
164
|
] })
|
|
199
165
|
] })
|
|
200
166
|
] }),
|
|
201
|
-
disclosure && /* @__PURE__ */ jsx("div", { className: calc_disclosure({ variant:
|
|
167
|
+
disclosure && /* @__PURE__ */ jsx("div", { className: calc_disclosure({ variant: theme }), children: disclosure })
|
|
202
168
|
] }),
|
|
203
169
|
/* @__PURE__ */ jsxs(
|
|
204
170
|
"svg",
|
|
@@ -71,7 +71,7 @@ const CallToActionBar = ({
|
|
|
71
71
|
),
|
|
72
72
|
style: { justifyContent: "center" },
|
|
73
73
|
children: [
|
|
74
|
-
banner_size !== "small" && !imageMobileView && image && /* @__PURE__ */ jsx(
|
|
74
|
+
banner_size !== "small" && !imageMobileView && image.src && /* @__PURE__ */ jsx(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
className: `${cta_image_section} ${image_overlap ? cta_image_section_overlap : ""}`,
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
6
|
var chevron = createRuntimeFn({ defaultClassName: "_1gp5vfo0", variantClassNames: { variant: { primary: "_1gp5vfo1", secondary: "_1gp5vfo2", tertiary: "_1gp5vfo3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
7
|
var chevron_wrapper = "_1gp5vfo4";
|
|
8
|
+
var reverse = "_1gp5vfo5";
|
|
8
9
|
export {
|
|
9
10
|
chevron,
|
|
10
|
-
chevron_wrapper
|
|
11
|
+
chevron_wrapper,
|
|
12
|
+
reverse
|
|
11
13
|
};
|
|
@@ -3,6 +3,10 @@ import { CallToActionTypes } from '../utils/variant.types';
|
|
|
3
3
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export interface ChevronProps extends PropsWithChildren {
|
|
6
|
+
/**
|
|
7
|
+
* render as button or a element
|
|
8
|
+
*/
|
|
9
|
+
as?: "button" | "a" | undefined;
|
|
6
10
|
/**
|
|
7
11
|
* react node to add as a children
|
|
8
12
|
*/
|
|
@@ -41,4 +45,8 @@ export interface ChevronProps extends PropsWithChildren {
|
|
|
41
45
|
icon?: string;
|
|
42
46
|
marketingIntersitial?: interstitialProps;
|
|
43
47
|
newTab?: boolean;
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
action?: () => void;
|
|
50
|
+
classNameWrapper?: string;
|
|
51
|
+
leftArrow?: boolean;
|
|
44
52
|
}
|
package/dist/Chevron/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { chevron_wrapper, chevron } from "./Chevron.css.js";
|
|
|
17
17
|
import { useGlobalContext } from "../Modal/contextApi/store.js";
|
|
18
18
|
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
19
19
|
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
20
|
-
import "clsx";
|
|
20
|
+
import clsx from "clsx";
|
|
21
21
|
import { useState } from "react";
|
|
22
22
|
import "../Button/Button.css.js";
|
|
23
23
|
import "react-use";
|
|
@@ -44,6 +44,8 @@ import "../Input/RadioButton.js";
|
|
|
44
44
|
import "react-hook-form";
|
|
45
45
|
import "../Forms/Forms.css.js";
|
|
46
46
|
import "../Forms/SalesforceFieldsForm.js";
|
|
47
|
+
/* empty css */
|
|
48
|
+
/* empty css */
|
|
47
49
|
import "../Input/RadioButton.css.js";
|
|
48
50
|
import "../Input/Checkbox.css.js";
|
|
49
51
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
@@ -58,8 +60,6 @@ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js"
|
|
|
58
60
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
59
61
|
/* empty css */
|
|
60
62
|
/* empty css */
|
|
61
|
-
/* empty css */
|
|
62
|
-
/* empty css */
|
|
63
63
|
/* empty css */
|
|
64
64
|
import "../Carousel/index.js";
|
|
65
65
|
/* empty css */
|
|
@@ -118,7 +118,10 @@ const Chevron = ({
|
|
|
118
118
|
className,
|
|
119
119
|
goBack = false,
|
|
120
120
|
marketingIntersitial,
|
|
121
|
-
newTab = false
|
|
121
|
+
newTab = false,
|
|
122
|
+
classNameWrapper,
|
|
123
|
+
leftArrow = false,
|
|
124
|
+
action
|
|
122
125
|
}) => {
|
|
123
126
|
variant = getVariant(variant);
|
|
124
127
|
const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
|
|
@@ -162,19 +165,28 @@ const Chevron = ({
|
|
|
162
165
|
}
|
|
163
166
|
} : backFunction;
|
|
164
167
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
165
|
-
/* @__PURE__ */ jsxs("span", { className: `sc__btn ${chevron_wrapper}`, children: [
|
|
168
|
+
/* @__PURE__ */ jsxs("span", { className: clsx(`sc__btn ${chevron_wrapper}`, classNameWrapper), children: [
|
|
169
|
+
leftArrow && /* @__PURE__ */ jsx(
|
|
170
|
+
SvgArrowIcon,
|
|
171
|
+
{
|
|
172
|
+
className: "arrow",
|
|
173
|
+
variant,
|
|
174
|
+
style: { rotate: "180deg" }
|
|
175
|
+
}
|
|
176
|
+
),
|
|
166
177
|
/* @__PURE__ */ jsx(
|
|
167
178
|
"a",
|
|
168
179
|
{
|
|
169
180
|
id,
|
|
170
|
-
|
|
181
|
+
tabIndex: 0,
|
|
182
|
+
href: !action ? findMoreAxosDomains(targetUrl) : "#!",
|
|
171
183
|
className: `${chevron({ variant })} ${className ? className : ""}`,
|
|
172
|
-
onClick: marketingIntersitial ? openMarketingInterstitial : onClick,
|
|
184
|
+
onClick: action ? action : marketingIntersitial ? openMarketingInterstitial : onClick,
|
|
173
185
|
target: newTab ? "_blank" : "_self",
|
|
174
186
|
children
|
|
175
187
|
}
|
|
176
188
|
),
|
|
177
|
-
/* @__PURE__ */ jsx(SvgArrowIcon, { className: "arrow", variant })
|
|
189
|
+
!leftArrow && /* @__PURE__ */ jsx(SvgArrowIcon, { className: "arrow", variant })
|
|
178
190
|
] }),
|
|
179
191
|
marketingIntersitial && isOpenMktInterstitial && /* @__PURE__ */ jsx(
|
|
180
192
|
Interstitial,
|
|
@@ -42,6 +42,8 @@ import "../Input/RadioButton.js";
|
|
|
42
42
|
import "react-hook-form";
|
|
43
43
|
import "../Forms/Forms.css.js";
|
|
44
44
|
import "../Forms/SalesforceFieldsForm.js";
|
|
45
|
+
/* empty css */
|
|
46
|
+
/* empty css */
|
|
45
47
|
import "../Input/RadioButton.css.js";
|
|
46
48
|
import "../Input/Checkbox.css.js";
|
|
47
49
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
@@ -57,8 +59,6 @@ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js"
|
|
|
57
59
|
import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
|
|
58
60
|
/* empty css */
|
|
59
61
|
/* empty css */
|
|
60
|
-
/* empty css */
|
|
61
|
-
/* empty css */
|
|
62
62
|
/* empty css */
|
|
63
63
|
import "../Carousel/index.js";
|
|
64
64
|
/* empty css */
|
|
@@ -7,13 +7,13 @@ import "../../icons/CheckIcon/CheckIcon.css.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
+
import "clsx";
|
|
10
11
|
import "react";
|
|
11
12
|
import "../../Chevron/Chevron.css.js";
|
|
12
13
|
import "../../AlertBanner/AlertBanner.css.js";
|
|
13
14
|
import "../../Article/Article.css.js";
|
|
14
15
|
import "../../IconBillboard/IconBillboard.css.js";
|
|
15
16
|
import { findMoreAxosDomains } from "../../utils/allowedAxosDomains.js";
|
|
16
|
-
import "clsx";
|
|
17
17
|
/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
import "../../Interstitial/Interstitial-variants.css.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FormProps } from './FormProps';
|
|
2
|
+
|
|
3
|
+
export declare const ApplyNow: ({ icon, children, disclosure, variant: fullVariant, headline, description, id, }: Omit<FormProps, "callToAction" | "validateEmail" | "onSubmit">) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const getLink: (selection: Array<string>) => string;
|