@axos-web-dev/shared-components 0.0.19 → 0.0.21
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/ApyCalculator/index.js +27 -10
- package/dist/BulletItem/BulletItem.d.ts +1 -0
- package/dist/BulletItem/BulletItem.js +32 -5
- package/dist/Carousel/index.js +9 -7
- package/dist/Chevron/Chevron.css.d.ts +18 -0
- package/dist/ContentBanner/ContentBanner.interface.d.ts +1 -0
- package/dist/ContentBanner/index.js +6 -4
- package/dist/FooterDisclosure/FooterDisclosure.css.d.ts +0 -1
- package/dist/FooterDisclosure/FooterDisclosure.css.js +2 -4
- package/dist/FooterDisclosure/FooterDisclosure.js +8 -10
- package/dist/FooterDisclosure/index.js +1 -2
- package/dist/HeroBanner/index.js +1 -0
- package/dist/IconBillboard/IconBillboard.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +1 -0
- package/dist/ImageBillboard/ImageBillboard.css.js +2 -0
- package/dist/ImageBillboard/ImageBillboardSet.js +16 -11
- package/dist/ImageBillboard/index.js +2 -1
- package/dist/Modal/Modal.css.d.ts +1 -0
- package/dist/Modal/Modal.css.js +3 -1
- package/dist/Modal/Modal.js +45 -42
- package/dist/NavigationMenu/AxosAdvisor/index.js +202 -182
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +40 -40
- package/dist/NavigationMenu/AxosFiduciary/index.js +2 -2
- package/dist/SecondaryFooter/index.js +2 -1
- package/dist/SetContainer/SetContainer.js +3 -3
- package/dist/Table/Table.css.d.ts +1 -0
- package/dist/Table/Table.css.js +2 -0
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Table.interface.d.ts +1 -0
- package/dist/Table/Table.js +4 -2
- package/dist/Table/index.js +2 -1
- package/dist/TextBlock/TextBlock.d.ts +1 -0
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/assets/ApyCalculator/ApyCalculator.css +11 -6
- package/dist/assets/Chevron/Chevron.css +12 -0
- package/dist/assets/FooterDisclosure/FooterDisclosure.css +4 -8
- package/dist/assets/HeroBanner/HeroBanner.css +2 -5
- package/dist/assets/ImageBillboard/ImageBillboard.css +25 -3
- package/dist/assets/Modal/Modal.css +5 -0
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +81 -82
- package/dist/assets/SetContainer/SetContainer.css +4 -1
- package/dist/assets/Table/Table.css +10 -0
- package/dist/assets/VideoWrapper/VideoWrapper.css +2 -0
- package/dist/main.js +5 -4
- package/dist/utils/validateExternalLinks.js +2 -3
- package/package.json +1 -1
|
@@ -19,6 +19,14 @@ const ApyCalculator = () => {
|
|
|
19
19
|
const [error, setError] = useState("");
|
|
20
20
|
const [interestRate, setInterestRate] = useState(0);
|
|
21
21
|
const isValidNumber = (input) => {
|
|
22
|
+
if (typeof input !== "number") {
|
|
23
|
+
return false;
|
|
24
|
+
} else if (input < 0) {
|
|
25
|
+
return false;
|
|
26
|
+
} else
|
|
27
|
+
return true;
|
|
28
|
+
};
|
|
29
|
+
const isValidAPY = (input) => {
|
|
22
30
|
if (typeof input !== "number") {
|
|
23
31
|
return false;
|
|
24
32
|
} else if (input <= 0) {
|
|
@@ -35,9 +43,12 @@ const ApyCalculator = () => {
|
|
|
35
43
|
}, [convertInterest, interestRate, setInterestRate]);
|
|
36
44
|
const handleCalculate = () => {
|
|
37
45
|
convertInterest();
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
if (!isValidNumber(initialDeposit) || !isValidNumber(months) || !isValidNumber(monthlyDeposits) || !isValidAPY(APY)) {
|
|
47
|
+
if (!isValidAPY(APY)) {
|
|
48
|
+
setError("*APY has to be a positive number.");
|
|
49
|
+
} else {
|
|
50
|
+
setError("Invalid input. Please enter positive numeric values.");
|
|
51
|
+
}
|
|
41
52
|
} else {
|
|
42
53
|
let total;
|
|
43
54
|
if (compounding === 360) {
|
|
@@ -77,7 +88,13 @@ const ApyCalculator = () => {
|
|
|
77
88
|
},
|
|
78
89
|
children: /* @__PURE__ */ jsxs("div", { className: `${apy_calculator} containment flex between`, children: [
|
|
79
90
|
/* @__PURE__ */ jsxs("div", { className: `${calculator_section}`, children: [
|
|
80
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ jsxs("div", { className: `${section_header}`, children: [
|
|
92
|
+
/* @__PURE__ */ jsx("h1", { className: "header_1", children: "APY Interest Calculator" }),
|
|
93
|
+
/* @__PURE__ */ jsxs("p", { className: "push_up", children: [
|
|
94
|
+
"Calculate how much interest you can earn on your money with our APY Interest Calculator.",
|
|
95
|
+
/* @__PURE__ */ jsx("sup", { children: "1" })
|
|
96
|
+
] })
|
|
97
|
+
] }),
|
|
81
98
|
/* @__PURE__ */ jsxs("form", { id: "calculator_form", className: `${apy_calculator_form}`, children: [
|
|
82
99
|
/* @__PURE__ */ jsx("div", { id: "errmsgbox", className: " flex middle", children: /* @__PURE__ */ jsx("span", { className: `${errorTag}`, children: error }) }),
|
|
83
100
|
/* @__PURE__ */ jsxs("div", { className: `${fieldset}`, children: [
|
|
@@ -196,7 +213,7 @@ const ApyCalculator = () => {
|
|
|
196
213
|
),
|
|
197
214
|
/* @__PURE__ */ jsx("div", { className: `${form_disclosure} push_up_24`, children: /* @__PURE__ */ jsxs("p", { children: [
|
|
198
215
|
/* @__PURE__ */ jsx("strong", { children: "NOTE:" }),
|
|
199
|
-
" Our APY Interest Calculator is an educational tool to help you determine potential earnings. Your calculator results are estimates and do not guarantee cost savings or tax benefits.
|
|
216
|
+
" Our APY Interest Calculator is an educational tool to help you determine potential earnings. Your calculator results are estimates and do not guarantee cost savings or tax benefits. Axos Bank does not guarantee your results as determined by using this calculator."
|
|
200
217
|
] }) })
|
|
201
218
|
] })
|
|
202
219
|
] })
|
|
@@ -210,7 +227,7 @@ const ApyCalculator = () => {
|
|
|
210
227
|
style: { backgroundColor: "#efeef0", maxWidth: "520px" },
|
|
211
228
|
children: [
|
|
212
229
|
/* @__PURE__ */ jsx("h2", { className: "header_2", children: "Select Savings" }),
|
|
213
|
-
/* @__PURE__ */ jsx("div", { className: "push_up mb_0", children: "Zero fees. Up to 0.20% APY
|
|
230
|
+
/* @__PURE__ */ jsx("div", { className: "push_up mb_0", children: "Zero fees. Up to 0.20% APY**. Complimentary ATM card. Select Savings helps your clients bank smarter with an account that rewards their savvy money habits." }),
|
|
214
231
|
/* @__PURE__ */ jsxs("div", { className: `${cta_section} push_up_24 flex flex_row`, children: [
|
|
215
232
|
/* @__PURE__ */ jsx(
|
|
216
233
|
Button,
|
|
@@ -237,16 +254,16 @@ const ApyCalculator = () => {
|
|
|
237
254
|
/* @__PURE__ */ jsx("h2", { className: "header_2", children: "Recommended Accounts" }),
|
|
238
255
|
/* @__PURE__ */ jsxs("table", { className: `${marketing_table}`, children: [
|
|
239
256
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
240
|
-
/* @__PURE__ */ jsx("th", { scope: "col slate", children: "Account" }),
|
|
241
|
-
/* @__PURE__ */ jsx("th", { scope: "col slate", children: "APY
|
|
257
|
+
/* @__PURE__ */ jsx("th", { style: { width: "50%" }, scope: "col slate", children: "Account" }),
|
|
258
|
+
/* @__PURE__ */ jsx("th", { style: { width: "50%" }, scope: "col slate", children: "APY**" })
|
|
242
259
|
] }) }),
|
|
243
260
|
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
244
261
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
245
|
-
/* @__PURE__ */ jsx("td", { "aria-label": "
|
|
262
|
+
/* @__PURE__ */ jsx("td", { "aria-label": "Select Checking", children: /* @__PURE__ */ jsx("a", { className: "link", href: "/products/select-savings", children: "Select Savings" }) }),
|
|
246
263
|
/* @__PURE__ */ jsx("td", { "aria-label": "Up to 5.25%", children: "Up to 0.20%" })
|
|
247
264
|
] }),
|
|
248
265
|
/* @__PURE__ */ jsxs("tr", { children: [
|
|
249
|
-
/* @__PURE__ */ jsx("td", { "aria-label": "
|
|
266
|
+
/* @__PURE__ */ jsx("td", { "aria-label": "Select Checking", children: /* @__PURE__ */ jsx("a", { className: "link", href: "/products/select-checking", children: "Select Checking" }) }),
|
|
250
267
|
/* @__PURE__ */ jsx("td", { "aria-label": "Up to 5.25%", children: "Up to 0.10%" })
|
|
251
268
|
] })
|
|
252
269
|
] })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { listItem } from "../IconBillboard/IconBillboard.css.js";
|
|
3
3
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
4
4
|
import SvgCheckCircle from "../icons/CheckCircle.js";
|
|
@@ -7,13 +7,40 @@ import "../icons/CheckIcon/CheckIcon.css.js";
|
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
+
import { vars } from "../themes/axos.css.js";
|
|
10
11
|
import { bulletIcon } from "./BulletItem.css.js";
|
|
11
12
|
const BulletItem = (props) => {
|
|
12
13
|
const iconCheckVariant = /* @__PURE__ */ new Map([
|
|
13
|
-
[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
[
|
|
15
|
+
"primary",
|
|
16
|
+
/* @__PURE__ */ jsx(SvgCheckCircle, { fill: vars.icons.check.primary, height: 18, width: 18 })
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"secondary",
|
|
20
|
+
/* @__PURE__ */ jsx(SvgCheckCircle, { fill: vars.icons.check.primary, height: 18, width: 18 })
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"tertiary",
|
|
24
|
+
/* @__PURE__ */ jsx(
|
|
25
|
+
SvgCheckCircleLight,
|
|
26
|
+
{
|
|
27
|
+
fill: vars.icons.check.secondary,
|
|
28
|
+
height: 18,
|
|
29
|
+
width: 18
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"quaternary",
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
SvgCheckCircleLight,
|
|
37
|
+
{
|
|
38
|
+
fill: vars.icons.check.secondary,
|
|
39
|
+
height: 18,
|
|
40
|
+
width: 18
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
],
|
|
17
44
|
[void 0, /* @__PURE__ */ jsx(SvgCheckCircleLight, { height: 18, width: 18 })]
|
|
18
45
|
]);
|
|
19
46
|
const Icon = iconCheckVariant.get(props.variant);
|
package/dist/Carousel/index.js
CHANGED
|
@@ -68,26 +68,28 @@ const Carousel = (props) => {
|
|
|
68
68
|
const selectItem = (id) => {
|
|
69
69
|
change(id);
|
|
70
70
|
};
|
|
71
|
+
const child = children;
|
|
71
72
|
const showDots = () => {
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
var _a, _b;
|
|
74
|
+
if (children && ((_b = (_a = child == null ? void 0 : child.props) == null ? void 0 : _a.content) == null ? void 0 : _b.length) > 1) {
|
|
75
|
+
return /* @__PURE__ */ jsx("div", { className: dots, children: Children.map(children, (_, indx) => /* @__PURE__ */ jsx(
|
|
74
76
|
"div",
|
|
75
77
|
{
|
|
76
78
|
onClick: () => selectItem(indx),
|
|
77
79
|
className: dot({ variant, selected: indx === itemSelected })
|
|
78
80
|
},
|
|
79
81
|
indx
|
|
80
|
-
));
|
|
82
|
+
)) });
|
|
81
83
|
}
|
|
82
|
-
if (items) {
|
|
83
|
-
return items.map((_, indx) => /* @__PURE__ */ jsx(
|
|
84
|
+
if (items && items.length > 1) {
|
|
85
|
+
return /* @__PURE__ */ jsx("div", { className: dots, children: items.map((_, indx) => /* @__PURE__ */ jsx(
|
|
84
86
|
"div",
|
|
85
87
|
{
|
|
86
88
|
onClick: () => selectItem(indx),
|
|
87
89
|
className: dot({ variant, selected: indx === itemSelected })
|
|
88
90
|
},
|
|
89
91
|
indx
|
|
90
|
-
));
|
|
92
|
+
)) });
|
|
91
93
|
}
|
|
92
94
|
};
|
|
93
95
|
return /* @__PURE__ */ jsxs("div", { className: clsx(carousel({ variant })), children: [
|
|
@@ -108,7 +110,7 @@ const Carousel = (props) => {
|
|
|
108
110
|
},
|
|
109
111
|
item.id
|
|
110
112
|
)) }),
|
|
111
|
-
|
|
113
|
+
showDots()
|
|
112
114
|
] });
|
|
113
115
|
};
|
|
114
116
|
export {
|
|
@@ -2,12 +2,30 @@ export declare const chevron: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
2
2
|
variant: {
|
|
3
3
|
primary: {
|
|
4
4
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
selectors: {
|
|
6
|
+
"&:hover": {
|
|
7
|
+
textDecoration: "underline";
|
|
8
|
+
textDecorationColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
5
11
|
};
|
|
6
12
|
secondary: {
|
|
7
13
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
14
|
+
selectors: {
|
|
15
|
+
"&:hover": {
|
|
16
|
+
textDecoration: "underline";
|
|
17
|
+
textDecorationColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
8
20
|
};
|
|
9
21
|
tertiary: {
|
|
10
22
|
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
23
|
+
selectors: {
|
|
24
|
+
"&:hover": {
|
|
25
|
+
textDecoration: "underline";
|
|
26
|
+
textDecorationColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
11
29
|
};
|
|
12
30
|
};
|
|
13
31
|
}>;
|
|
@@ -11,12 +11,14 @@ const ContentBanner = ({
|
|
|
11
11
|
variant,
|
|
12
12
|
headline,
|
|
13
13
|
bodyCopy,
|
|
14
|
-
callToActionRow
|
|
14
|
+
callToActionRow,
|
|
15
|
+
id
|
|
15
16
|
}) => {
|
|
16
17
|
const banner_variant = getVariant(variant);
|
|
17
18
|
return /* @__PURE__ */ jsx(
|
|
18
19
|
"section",
|
|
19
20
|
{
|
|
21
|
+
id: `id_${id}`,
|
|
20
22
|
className: `${content_banner({ variant: banner_variant })} ${section_pad}`,
|
|
21
23
|
children: /* @__PURE__ */ jsxs("div", { className: `containment`, children: [
|
|
22
24
|
/* @__PURE__ */ jsxs("div", { className: `text_center`, children: [
|
|
@@ -30,7 +32,7 @@ const ContentBanner = ({
|
|
|
30
32
|
bodyCopy ? /* @__PURE__ */ jsx("div", { className: `${body_copy}`, children: bodyCopy }) : null
|
|
31
33
|
] }),
|
|
32
34
|
Array.isArray(callToActionRow) && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${call_to_action_row}`, children: callToActionRow == null ? void 0 : callToActionRow.map(
|
|
33
|
-
({ id, variant: variant2, displayText, targetUrl, type }) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
35
|
+
({ id: id2, variant: variant2, displayText, targetUrl, type }) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
34
36
|
Button,
|
|
35
37
|
{
|
|
36
38
|
targetUrl,
|
|
@@ -39,7 +41,7 @@ const ContentBanner = ({
|
|
|
39
41
|
rounded: "medium",
|
|
40
42
|
children: displayText
|
|
41
43
|
},
|
|
42
|
-
|
|
44
|
+
id2
|
|
43
45
|
) : /* @__PURE__ */ jsx(
|
|
44
46
|
Chevron,
|
|
45
47
|
{
|
|
@@ -48,7 +50,7 @@ const ContentBanner = ({
|
|
|
48
50
|
className: `${link}`,
|
|
49
51
|
children: displayText
|
|
50
52
|
},
|
|
51
|
-
|
|
53
|
+
id2
|
|
52
54
|
)
|
|
53
55
|
) })
|
|
54
56
|
] })
|
|
@@ -4,6 +4,5 @@ export declare const footerDisclosure: import('@vanilla-extract/recipes').Runtim
|
|
|
4
4
|
};
|
|
5
5
|
}>;
|
|
6
6
|
export declare const footerParagraph: string;
|
|
7
|
-
export declare const footerContent: string;
|
|
8
7
|
export declare const iconsContent: string;
|
|
9
8
|
export declare const footerLink: string;
|
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
3
|
var footerDisclosure = createRuntimeFn({ defaultClassName: "_1a6b3vu0", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
4
4
|
var footerParagraph = "_1a6b3vu1";
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var footerLink = "_1a6b3vu4";
|
|
5
|
+
var iconsContent = "_1a6b3vu2";
|
|
6
|
+
var footerLink = "_1a6b3vu3";
|
|
8
7
|
export {
|
|
9
|
-
footerContent,
|
|
10
8
|
footerDisclosure,
|
|
11
9
|
footerLink,
|
|
12
10
|
footerParagraph,
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import {
|
|
3
|
+
import { footerParagraph, iconsContent, footerDisclosure } from "./FooterDisclosure.css.js";
|
|
4
4
|
const FooterContent = (props) => {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
className: clsx(footerContent, props.className, "containment"),
|
|
9
|
-
style: props.style,
|
|
10
|
-
children: props.children
|
|
11
|
-
}
|
|
12
|
-
);
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: clsx(props.className, "containment"), style: props.style, children: props.children });
|
|
13
6
|
};
|
|
14
7
|
const FooterParagraph = (props) => {
|
|
15
8
|
return /* @__PURE__ */ jsx("div", { className: clsx(footerParagraph, props.className), style: props.style, children: props.children });
|
|
@@ -18,7 +11,12 @@ const FooterIcons = (props) => {
|
|
|
18
11
|
return /* @__PURE__ */ jsx(
|
|
19
12
|
"div",
|
|
20
13
|
{
|
|
21
|
-
className: clsx(
|
|
14
|
+
className: clsx(
|
|
15
|
+
iconsContent,
|
|
16
|
+
props.className,
|
|
17
|
+
"containment",
|
|
18
|
+
"push_up_24"
|
|
19
|
+
),
|
|
22
20
|
style: props.style,
|
|
23
21
|
children: props.children
|
|
24
22
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { footerDisclosure, footerLink, footerParagraph, iconsContent } from "./FooterDisclosure.css.js";
|
|
2
2
|
import { FooterContent, FooterDisclosure, FooterIcons, FooterParagraph } from "./FooterDisclosure.js";
|
|
3
3
|
export {
|
|
4
4
|
FooterContent,
|
|
5
5
|
FooterDisclosure,
|
|
6
6
|
FooterIcons,
|
|
7
7
|
FooterParagraph,
|
|
8
|
-
footerContent,
|
|
9
8
|
footerDisclosure,
|
|
10
9
|
footerLink,
|
|
11
10
|
footerParagraph,
|
package/dist/HeroBanner/index.js
CHANGED
|
@@ -20,6 +20,7 @@ const HeroBanner = ({
|
|
|
20
20
|
return /* @__PURE__ */ jsx(
|
|
21
21
|
"section",
|
|
22
22
|
{
|
|
23
|
+
id: `id_${id}`,
|
|
23
24
|
className: `${bannerType !== "Hero" ? logout : ""} ${hero_banner({ variant: getVariant(variant) })}`,
|
|
24
25
|
children: /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment`, children: /* @__PURE__ */ jsxs(
|
|
25
26
|
"div",
|
|
@@ -36,7 +36,7 @@ const IconBillboard = (props) => {
|
|
|
36
36
|
/* @__PURE__ */ jsx("div", { className: title({ variant }), children: headline }),
|
|
37
37
|
/* @__PURE__ */ jsx("div", { children: body })
|
|
38
38
|
] }),
|
|
39
|
-
items && (items == null ? void 0 : items.length) > 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("ul", { className: list, children: items == null ? void 0 : items.map((item) => /* @__PURE__ */ jsx(BulletItem, { id: item.id, children: item.content }, item.id)) }) })
|
|
39
|
+
items && (items == null ? void 0 : items.length) > 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("ul", { className: clsx(list, "list_unstyled"), children: items == null ? void 0 : items.map((item) => /* @__PURE__ */ jsx(BulletItem, { id: item.id, variant, children: item.content }, item.id)) }) })
|
|
40
40
|
] })
|
|
41
41
|
] }),
|
|
42
42
|
callToActionRow && /* @__PURE__ */ jsx("div", { className: buttons, children: callToActionRow.map(
|
|
@@ -26,6 +26,7 @@ var rate_pad = "_1m7m2aw";
|
|
|
26
26
|
var up_to = "_1m7m2ax";
|
|
27
27
|
var rate_billboard = "_1m7m2ay";
|
|
28
28
|
var apy_billboard = "_1m7m2az";
|
|
29
|
+
var body_copy = "_1m7m2a10";
|
|
29
30
|
export {
|
|
30
31
|
apy_billboard,
|
|
31
32
|
billboard,
|
|
@@ -36,6 +37,7 @@ export {
|
|
|
36
37
|
billboard_image,
|
|
37
38
|
billboard_img,
|
|
38
39
|
body,
|
|
40
|
+
body_copy,
|
|
39
41
|
header,
|
|
40
42
|
imagePlacement,
|
|
41
43
|
image_background,
|
|
@@ -11,7 +11,7 @@ import SvgCheckIcon from "../icons/CheckIcon/index.js";
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { getVariant } from "../utils/getVariant.js";
|
|
13
13
|
import clsx from "clsx";
|
|
14
|
-
import { billboard, imagePlacement, billboard_img, image_background, rate_container, rate_pad, up_to, rate_billboard, apy_billboard, body, billboard_body, billboard_header_section, supertag, header, billboard_ctas } from "./ImageBillboard.css.js";
|
|
14
|
+
import { billboard, imagePlacement, billboard_img, image_background, rate_container, rate_pad, up_to, rate_billboard, apy_billboard, body, billboard_body, billboard_header_section, supertag, header, body_copy, billboard_ctas } from "./ImageBillboard.css.js";
|
|
15
15
|
const ImageBillboard = ({
|
|
16
16
|
id,
|
|
17
17
|
variant,
|
|
@@ -86,16 +86,21 @@ const ImageBillboard = ({
|
|
|
86
86
|
}
|
|
87
87
|
)
|
|
88
88
|
] }),
|
|
89
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
90
|
-
/* @__PURE__ */ jsx("ul", { className: "list_unstyled mb_0 push_up", children: bullets.map(
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
89
|
+
/* @__PURE__ */ jsx("div", { className: `push_up ${body_copy}`, children: bodyCopy }),
|
|
90
|
+
bullets.length > 0 && /* @__PURE__ */ jsx("ul", { className: "list_unstyled mb_0 push_up", children: bullets.map(
|
|
91
|
+
({ id: id2, icon, copy, subBullet }) => !subBullet ? /* @__PURE__ */ jsxs("li", { className: "list_item flex", children: [
|
|
92
|
+
/* @__PURE__ */ jsx("div", { className: "img_item", children: billboard_variant ? /* @__PURE__ */ jsx(
|
|
93
|
+
SvgCheckIcon,
|
|
94
|
+
{
|
|
95
|
+
variant: billboard_variant === "primary" || billboard_variant === "secondary" ? "primary" : "secondary"
|
|
96
|
+
}
|
|
97
|
+
) : /* @__PURE__ */ jsx("img", { src: icon == null ? void 0 : icon.src, alt: icon == null ? void 0 : icon.altText }) }),
|
|
98
|
+
/* @__PURE__ */ jsx("span", { children: copy })
|
|
99
|
+
] }, id2) : /* @__PURE__ */ jsx("ul", { className: "mb_0 push_up", children: /* @__PURE__ */ jsxs("li", { className: "list_item flex", children: [
|
|
100
|
+
/* @__PURE__ */ jsx("div", { className: "img_item", children: /* @__PURE__ */ jsx("img", { src: icon == null ? void 0 : icon.src, alt: icon == null ? void 0 : icon.altText }) }),
|
|
101
|
+
/* @__PURE__ */ jsx("span", { children: copy })
|
|
102
|
+
] }) }, id2)
|
|
103
|
+
) })
|
|
99
104
|
] }),
|
|
100
105
|
callToActionRow.length > 0 && /* @__PURE__ */ jsx(
|
|
101
106
|
"div",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageBillboardSet } from "./ImageBillboard.js";
|
|
2
|
-
import { apy_billboard, billboard, billboard_body, billboard_container, billboard_ctas, billboard_header_section, billboard_image, billboard_img, body, header, imagePlacement, image_background, mh_330, rate_billboard, rate_container, rate_pad, section_text_ImageBillboard, single_container, supertag, three_inline, two_inline, up_to } from "./ImageBillboard.css.js";
|
|
2
|
+
import { apy_billboard, billboard, billboard_body, billboard_container, billboard_ctas, billboard_header_section, billboard_image, billboard_img, body, body_copy, header, imagePlacement, image_background, mh_330, rate_billboard, rate_container, rate_pad, section_text_ImageBillboard, single_container, supertag, three_inline, two_inline, up_to } from "./ImageBillboard.css.js";
|
|
3
3
|
import { ImageBillboard } from "./ImageBillboardSet.js";
|
|
4
4
|
export {
|
|
5
5
|
ImageBillboard,
|
|
@@ -13,6 +13,7 @@ export {
|
|
|
13
13
|
billboard_image,
|
|
14
14
|
billboard_img,
|
|
15
15
|
body,
|
|
16
|
+
body_copy,
|
|
16
17
|
header,
|
|
17
18
|
imagePlacement,
|
|
18
19
|
image_background,
|
package/dist/Modal/Modal.css.js
CHANGED
|
@@ -12,6 +12,7 @@ var modal_subtitle = "_427id37";
|
|
|
12
12
|
var modal_body = "_427id38";
|
|
13
13
|
var modal_footer = "_427id39";
|
|
14
14
|
var site_link = "_427id3a";
|
|
15
|
+
var speedbump_background = "_427id3b";
|
|
15
16
|
export {
|
|
16
17
|
hr,
|
|
17
18
|
modal,
|
|
@@ -23,5 +24,6 @@ export {
|
|
|
23
24
|
modal_subtitle,
|
|
24
25
|
modal_title,
|
|
25
26
|
site_link,
|
|
26
|
-
solid
|
|
27
|
+
solid,
|
|
28
|
+
speedbump_background
|
|
27
29
|
};
|
package/dist/Modal/Modal.js
CHANGED
|
@@ -43,7 +43,7 @@ import "../Table/Table.css.js";
|
|
|
43
43
|
import "next/script.js";
|
|
44
44
|
/* empty css */
|
|
45
45
|
/* empty css */
|
|
46
|
-
import { modal, modal_dialog, modal_content, modal_header, modal_title, modal_subtitle, solid, modal_body, site_link, modal_footer } from "./Modal.css.js";
|
|
46
|
+
import { modal, speedbump_background, modal_dialog, modal_content, modal_header, modal_title, modal_subtitle, solid, modal_body, site_link, modal_footer } from "./Modal.css.js";
|
|
47
47
|
const Modal = ({
|
|
48
48
|
headline,
|
|
49
49
|
bodyCopy,
|
|
@@ -51,47 +51,50 @@ const Modal = ({
|
|
|
51
51
|
onAccept,
|
|
52
52
|
onCancel
|
|
53
53
|
}) => {
|
|
54
|
-
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
54
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("div", { id: "speedbump", tabIndex: -1, role: "dialog", className: modal, children: [
|
|
55
|
+
/* @__PURE__ */ jsx("div", { className: speedbump_background, onClick: onCancel }),
|
|
56
|
+
/* @__PURE__ */ jsx("div", { className: `${modal_dialog} rounded`, children: /* @__PURE__ */ jsxs("div", { className: `${modal_content} rounded`, children: [
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { className: `${modal_header} text_center`, children: [
|
|
58
|
+
/* @__PURE__ */ jsx("h2", { className: `${modal_title} header_3`, children: headline }),
|
|
59
|
+
/* @__PURE__ */ jsx("p", { className: `${modal_subtitle} p_16 mb_0 push_up`, children: bodyCopy })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx("hr", { className: solid }),
|
|
62
|
+
/* @__PURE__ */ jsxs(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
className: `${modal_body} text-center flex flex_col center middle mx_auto`,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ jsx("p", { className: "p_16", children: "You will now be redirected to:" }),
|
|
68
|
+
/* @__PURE__ */ jsx("p", { id: "insert-url", className: site_link, children: body })
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ jsx("hr", { className: solid }),
|
|
73
|
+
/* @__PURE__ */ jsxs(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
className: `${modal_footer} flex center middle push_up_24`,
|
|
77
|
+
style: { marginInline: "auto", width: "max-content" },
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Button, { color: "primary", action: onAccept, children: "Continue" }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
"a",
|
|
82
|
+
{
|
|
83
|
+
style: { textDecoration: "none", padding: "8px 48px" },
|
|
84
|
+
role: "button",
|
|
85
|
+
className: `sc__btn ${chevron({ variant: "primary" })}`,
|
|
86
|
+
"aria-label": "Close",
|
|
87
|
+
title: "Go Back",
|
|
88
|
+
id: "close",
|
|
89
|
+
onClick: onCancel,
|
|
90
|
+
children: "Close"
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] }) })
|
|
97
|
+
] }) });
|
|
95
98
|
};
|
|
96
99
|
export {
|
|
97
100
|
Modal
|