@axos-web-dev/shared-components 1.0.42 → 1.0.44
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/README.md +111 -111
- package/dist/Avatar/Avatar.module.js +7 -7
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/Calculators/BuyDownCalculator/index.js +1 -1
- package/dist/FdicCallout/FdicCallout.module.js +2 -2
- package/dist/Interstitial/Interstitial.module.js +10 -10
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +2 -2
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
- package/dist/Table/Table.d.ts +1 -1
- package/dist/WalnutIframe/wrapper.module.js +2 -2
- package/dist/assets/Avatar/Avatar.css.css +59 -59
- package/dist/assets/Blockquote/Blockquote.css.css +68 -68
- package/dist/assets/FdicCallout/FdicCallout.css.css +48 -48
- package/dist/assets/Interstitial/Interstitial.css.css +142 -142
- package/dist/assets/NavigationMenu/AxosALTS/NavBar.css.css +264 -264
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +597 -597
- package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +618 -618
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +126 -138
- package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +458 -458
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +426 -426
- package/dist/assets/NavigationMenu/LaVictoire/NavBar.css.css +429 -429
- package/dist/assets/WalnutIframe/wrapper.css.css +51 -51
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +48 -48
- package/dist/utils/allowedAxosDomains.js +1 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- package/package.json +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +0 -2
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +0 -345
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +0 -4
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +0 -250
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +0 -627
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +0 -178
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
@keyframes
|
|
2
|
-
from {
|
|
3
|
-
transform: translateX(-100%);
|
|
4
|
-
}
|
|
5
|
-
to {
|
|
6
|
-
transform: translateX(100%);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
aspect-ratio: 1.845;
|
|
12
|
-
background: #1e3860;
|
|
13
|
-
border-radius: 8px;
|
|
14
|
-
isolation: isolate;
|
|
15
|
-
margin-block: 48px;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
position: relative;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
section > .
|
|
21
|
-
margin-top: 0 !important;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.
|
|
25
|
-
content: "";
|
|
26
|
-
position: absolute;
|
|
27
|
-
top: 0;
|
|
28
|
-
left: 0;
|
|
29
|
-
width: 190%;
|
|
30
|
-
height: 100%;
|
|
31
|
-
background: linear-gradient(
|
|
32
|
-
65deg,
|
|
33
|
-
rgba(255, 255, 255, 0) 20%,
|
|
34
|
-
rgba(255, 255, 255, 0.5) 50%,
|
|
35
|
-
rgba(255, 255, 255, 0) 80%
|
|
36
|
-
);
|
|
37
|
-
animation:
|
|
38
|
-
z-index: -1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@media (max-width: 1023px) {
|
|
42
|
-
.
|
|
43
|
-
margin-block: 28px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@media (max-width: 798px) {
|
|
48
|
-
.
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
@keyframes _shimmer_gpp1u_1 {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(-100%);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: translateX(100%);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
._wrapper_gpp1u_19 {
|
|
11
|
+
aspect-ratio: 1.845;
|
|
12
|
+
background: #1e3860;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
isolation: isolate;
|
|
15
|
+
margin-block: 48px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
section > ._wrapper_gpp1u_19:first-child {
|
|
21
|
+
margin-top: 0 !important;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
._wrapper_gpp1u_19::before {
|
|
25
|
+
content: "";
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
width: 190%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
background: linear-gradient(
|
|
32
|
+
65deg,
|
|
33
|
+
rgba(255, 255, 255, 0) 20%,
|
|
34
|
+
rgba(255, 255, 255, 0.5) 50%,
|
|
35
|
+
rgba(255, 255, 255, 0) 80%
|
|
36
|
+
);
|
|
37
|
+
animation: _shimmer_gpp1u_1 1.3s infinite linear;
|
|
38
|
+
z-index: -1;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (max-width: 1023px) {
|
|
42
|
+
._wrapper_gpp1u_19 {
|
|
43
|
+
margin-block: 28px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: 798px) {
|
|
48
|
+
._wrapper_gpp1u_19 {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
@keyframes
|
|
2
|
-
from {
|
|
3
|
-
transform: translateX(-100%);
|
|
4
|
-
}
|
|
5
|
-
to {
|
|
6
|
-
transform: translateX(100%);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.
|
|
11
|
-
position: absolute;
|
|
12
|
-
height: 100%;
|
|
13
|
-
width: 100%;
|
|
14
|
-
inset: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.
|
|
18
|
-
position: relative;
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 100%;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
background: #1e3860;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
._1es6o1h0 .
|
|
26
|
-
background-color: #1e262f;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.fl2fv50 .
|
|
30
|
-
background-color: #28587d;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.
|
|
34
|
-
content: "";
|
|
35
|
-
position: absolute;
|
|
36
|
-
top: 0;
|
|
37
|
-
left: 0;
|
|
38
|
-
width: 190%;
|
|
39
|
-
height: 100%;
|
|
40
|
-
background: linear-gradient(
|
|
41
|
-
65deg,
|
|
42
|
-
rgba(255, 255, 255, 0) 20%,
|
|
43
|
-
rgba(255, 255, 255, 0.5) 50%,
|
|
44
|
-
rgba(255, 255, 255, 0) 80%
|
|
45
|
-
);
|
|
46
|
-
animation:
|
|
47
|
-
z-index: 1;
|
|
48
|
-
}
|
|
1
|
+
@keyframes _shimmer_1vfu4_1 {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(-100%);
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: translateX(100%);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
._loader_1vfu4_19 {
|
|
11
|
+
position: absolute;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
inset: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
._loading_1vfu4_33 {
|
|
18
|
+
position: relative;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
background: #1e3860;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
._1es6o1h0 ._loading_1vfu4_33 {
|
|
26
|
+
background-color: #1e262f;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.fl2fv50 ._loading_1vfu4_33 {
|
|
30
|
+
background-color: #28587d;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
._loading_1vfu4_33::before {
|
|
34
|
+
content: "";
|
|
35
|
+
position: absolute;
|
|
36
|
+
top: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
width: 190%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
background: linear-gradient(
|
|
41
|
+
65deg,
|
|
42
|
+
rgba(255, 255, 255, 0) 20%,
|
|
43
|
+
rgba(255, 255, 255, 0.5) 50%,
|
|
44
|
+
rgba(255, 255, 255, 0) 80%
|
|
45
|
+
);
|
|
46
|
+
animation: _shimmer_1vfu4_1 1.3s infinite linear;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
}
|
|
@@ -25,7 +25,7 @@ const moreDomains = {
|
|
|
25
25
|
"{AXSEC}": process.env.AXOS_SECURE_URL || "https://secure.axosbank.com",
|
|
26
26
|
"{SECURE}": process.env.AXOS_SECURE_URL || "https://secure.axosbank.com",
|
|
27
27
|
"{DOWNLOADAXOS}": process.env.AXOS_DOWNLOAD_URL || "https://downloads.axos.com",
|
|
28
|
-
"{SBEAX}": process.env.
|
|
28
|
+
"{SBEAX}": process.env.SBB_ENROLL || "https://small-business-enrollment.axosbank.com",
|
|
29
29
|
"{CPDS}": process.env.CP_DECISIONLENDER || "https://cp.decisionlender.solutions",
|
|
30
30
|
"{JHALOAN}": process.env.JHA_LOANSPQ || "https://jha.loanspq.com",
|
|
31
31
|
"{AXSECURITIES}": process.env.AXOS_SECURITIES_URL ?? "https://www.axossecurities.com",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "
|
|
2
|
-
const loading = "
|
|
3
|
-
const shimmer = "
|
|
1
|
+
import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "_loader_1vfu4_19";
|
|
2
|
+
const loading = "_loading_1vfu4_33";
|
|
3
|
+
const shimmer = "_shimmer_1vfu4_1";
|
|
4
4
|
const css = {
|
|
5
5
|
loader,
|
|
6
6
|
loading,
|
package/package.json
CHANGED
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { AnimatePresence, motion } from "framer-motion";
|
|
5
|
-
import { usePathname } from "next/navigation.js";
|
|
6
|
-
import Link from "next/link.js";
|
|
7
|
-
import { menuData, getQuickLinks } from "./MobileNavData.js";
|
|
8
|
-
import styles from "./MobileMenu.module.js";
|
|
9
|
-
const slideVariants = {
|
|
10
|
-
enter: (direction) => ({
|
|
11
|
-
x: direction === "forward" ? "100%" : "-100%",
|
|
12
|
-
opacity: 0,
|
|
13
|
-
position: "absolute"
|
|
14
|
-
}),
|
|
15
|
-
center: {
|
|
16
|
-
x: 0,
|
|
17
|
-
opacity: 1,
|
|
18
|
-
position: "relative",
|
|
19
|
-
transition: { duration: 0.3, ease: "easeInOut" }
|
|
20
|
-
},
|
|
21
|
-
exit: (direction) => ({
|
|
22
|
-
x: direction === "forward" ? "-100%" : "100%",
|
|
23
|
-
opacity: 0,
|
|
24
|
-
position: "absolute"
|
|
25
|
-
})
|
|
26
|
-
};
|
|
27
|
-
const MobileDrawerMenu = () => {
|
|
28
|
-
const pathname = usePathname();
|
|
29
|
-
const [queryString, setQueryString] = useState("");
|
|
30
|
-
const [open, setOpen] = useState(false);
|
|
31
|
-
const [stack, setStack] = useState([
|
|
32
|
-
{ title: "Main Menu", items: menuData }
|
|
33
|
-
]);
|
|
34
|
-
const [hasOpenedOnce, setHasOpenedOnce] = useState(false);
|
|
35
|
-
const [direction, setDirection] = useState("forward");
|
|
36
|
-
const [quickLinks, setQuickLinks] = useState([]);
|
|
37
|
-
const drawerRef = useRef(null);
|
|
38
|
-
const currentLevel = stack[stack.length - 1];
|
|
39
|
-
const prevLevel = stack[stack.length - 2];
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
if (!pathname) return;
|
|
42
|
-
const pathnameParts = "/" + pathname.split("/")[1];
|
|
43
|
-
const links = getQuickLinks(pathnameParts);
|
|
44
|
-
setQuickLinks(links);
|
|
45
|
-
}, [pathname]);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (typeof window !== "undefined") {
|
|
48
|
-
const search = window.location.search;
|
|
49
|
-
if (search.startsWith("?")) {
|
|
50
|
-
setQueryString(search.slice(1));
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, []);
|
|
54
|
-
const handleClick = (key) => {
|
|
55
|
-
const item = currentLevel.items[key];
|
|
56
|
-
if (typeof item === "object") {
|
|
57
|
-
setDirection("forward");
|
|
58
|
-
setStack((prev) => [...prev, { title: key, items: item }]);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const handleBack = () => {
|
|
62
|
-
if (stack.length > 1) {
|
|
63
|
-
setDirection("backward");
|
|
64
|
-
setStack((prev) => prev.slice(0, -1));
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const handleToggle = () => {
|
|
68
|
-
setOpen((prev) => {
|
|
69
|
-
const isOpening = !prev;
|
|
70
|
-
if (isOpening && !hasOpenedOnce) {
|
|
71
|
-
setHasOpenedOnce(true);
|
|
72
|
-
setStack([{ title: "Menu", items: menuData }]);
|
|
73
|
-
}
|
|
74
|
-
return isOpening;
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
const handleOutsideClick = (e) => {
|
|
78
|
-
if (drawerRef.current && !drawerRef.current.contains(e.target)) {
|
|
79
|
-
setOpen(false);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
useEffect(() => {
|
|
83
|
-
if (open) {
|
|
84
|
-
document.addEventListener("mousedown", handleOutsideClick);
|
|
85
|
-
} else {
|
|
86
|
-
document.removeEventListener("mousedown", handleOutsideClick);
|
|
87
|
-
}
|
|
88
|
-
return () => document.removeEventListener("mousedown", handleOutsideClick);
|
|
89
|
-
}, [open]);
|
|
90
|
-
useEffect(() => {
|
|
91
|
-
const onEsc = (e) => {
|
|
92
|
-
if (e.key === "Escape") setOpen(false);
|
|
93
|
-
};
|
|
94
|
-
if (open) {
|
|
95
|
-
document.addEventListener("keydown", onEsc);
|
|
96
|
-
}
|
|
97
|
-
return () => document.removeEventListener("keydown", onEsc);
|
|
98
|
-
}, [open]);
|
|
99
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
100
|
-
/* @__PURE__ */ jsx(
|
|
101
|
-
"button",
|
|
102
|
-
{
|
|
103
|
-
onClick: handleToggle,
|
|
104
|
-
className: `${styles.hamburger} flex_col`,
|
|
105
|
-
"aria-label": "open navigation menu",
|
|
106
|
-
children: /* @__PURE__ */ jsx(
|
|
107
|
-
"svg",
|
|
108
|
-
{
|
|
109
|
-
width: 24,
|
|
110
|
-
height: 24,
|
|
111
|
-
viewBox: "0 0 24 24",
|
|
112
|
-
fill: "none",
|
|
113
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
114
|
-
"aria-hidden": "true",
|
|
115
|
-
children: /* @__PURE__ */ jsx(
|
|
116
|
-
"path",
|
|
117
|
-
{
|
|
118
|
-
fillRule: "evenodd",
|
|
119
|
-
clipRule: "evenodd",
|
|
120
|
-
d: "M22.5 15.75V17.25H1.5V15.75H22.5ZM22.5 11.25V12.75H1.5V11.25H22.5ZM22.5 6.75V8.25H1.5V6.75H22.5Z",
|
|
121
|
-
fill: "#4A5560"
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
}
|
|
125
|
-
)
|
|
126
|
-
}
|
|
127
|
-
),
|
|
128
|
-
/* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsx(
|
|
129
|
-
motion.div,
|
|
130
|
-
{
|
|
131
|
-
className: styles.overlay,
|
|
132
|
-
initial: { opacity: 0 },
|
|
133
|
-
animate: { opacity: 1 },
|
|
134
|
-
exit: { opacity: 0 },
|
|
135
|
-
children: /* @__PURE__ */ jsxs(
|
|
136
|
-
motion.div,
|
|
137
|
-
{
|
|
138
|
-
className: `${styles.drawer} flex_col`,
|
|
139
|
-
ref: drawerRef,
|
|
140
|
-
initial: { x: "100%" },
|
|
141
|
-
animate: { x: 0 },
|
|
142
|
-
exit: { x: "100%" },
|
|
143
|
-
transition: { type: "tween", duration: 0.3 },
|
|
144
|
-
role: "dialog",
|
|
145
|
-
"aria-modal": "true",
|
|
146
|
-
"aria-labelledby": "menu-level",
|
|
147
|
-
"aria-describedby": "menu-description",
|
|
148
|
-
children: [
|
|
149
|
-
/* @__PURE__ */ jsx("p", { id: "menu-description", className: styles.sr_only, children: "Use tab to navigate this menu. Press Escape to close." }),
|
|
150
|
-
/* @__PURE__ */ jsxs("div", { className: styles.header, children: [
|
|
151
|
-
stack.length > 1 ? /* @__PURE__ */ jsxs(
|
|
152
|
-
"button",
|
|
153
|
-
{
|
|
154
|
-
onClick: handleBack,
|
|
155
|
-
className: styles.back,
|
|
156
|
-
"aria-label": "return to previous menu",
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ jsx(
|
|
159
|
-
"svg",
|
|
160
|
-
{
|
|
161
|
-
width: 15,
|
|
162
|
-
height: 12,
|
|
163
|
-
viewBox: "0 0 20 12",
|
|
164
|
-
fill: "none",
|
|
165
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
166
|
-
style: { marginRight: 8, transform: "rotate(90deg)" },
|
|
167
|
-
children: /* @__PURE__ */ jsx(
|
|
168
|
-
"path",
|
|
169
|
-
{
|
|
170
|
-
d: "M0.46875 1.76574L9.99908 11.2961L19.5294 1.76574L18.4687 0.705078L9.99908 9.17491L1.52941 0.705078L0.46875 1.76574Z",
|
|
171
|
-
fill: "#2F5B88"
|
|
172
|
-
}
|
|
173
|
-
)
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
/* @__PURE__ */ jsx("span", { className: styles.prevlevel, children: prevLevel.title })
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
) : /* @__PURE__ */ jsx(
|
|
180
|
-
"a",
|
|
181
|
-
{
|
|
182
|
-
href: window.location.href.split("/")[3] === "invest" ? "/invest" : "/",
|
|
183
|
-
"aria-label": "return to home page",
|
|
184
|
-
children: /* @__PURE__ */ jsx(
|
|
185
|
-
"img",
|
|
186
|
-
{
|
|
187
|
-
src: "https://www.axos.com/images/1sBwCIn5mqOg5DK2uXDJPc/axb_mobile_logo.png",
|
|
188
|
-
alt: "",
|
|
189
|
-
width: 86,
|
|
190
|
-
height: 19
|
|
191
|
-
}
|
|
192
|
-
)
|
|
193
|
-
}
|
|
194
|
-
),
|
|
195
|
-
/* @__PURE__ */ jsx(
|
|
196
|
-
"button",
|
|
197
|
-
{
|
|
198
|
-
className: `${styles.close} flex_col`,
|
|
199
|
-
"aria-label": "close navigation menu",
|
|
200
|
-
onClick: handleToggle,
|
|
201
|
-
children: /* @__PURE__ */ jsx(
|
|
202
|
-
"svg",
|
|
203
|
-
{
|
|
204
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
205
|
-
width: "24",
|
|
206
|
-
height: "24",
|
|
207
|
-
viewBox: "0 0 24 24",
|
|
208
|
-
fill: "none",
|
|
209
|
-
"aria-hidden": "true",
|
|
210
|
-
children: /* @__PURE__ */ jsx(
|
|
211
|
-
"path",
|
|
212
|
-
{
|
|
213
|
-
d: "M20.2812 2.65625L21.3419 3.71691L13.0602 11.9982L21.3419 20.2812L20.2812 21.3419L11.9982 13.0602L3.71691 21.3419L2.65625 20.2812L10.9377 11.9982L2.65625 3.71691L3.71691 2.65625L11.9982 10.9377L20.2812 2.65625Z",
|
|
214
|
-
fill: "#4A5560"
|
|
215
|
-
}
|
|
216
|
-
)
|
|
217
|
-
}
|
|
218
|
-
)
|
|
219
|
-
}
|
|
220
|
-
)
|
|
221
|
-
] }),
|
|
222
|
-
/* @__PURE__ */ jsx("div", { className: styles.levelContainer, children: /* @__PURE__ */ jsxs("div", { className: "bg_white", children: [
|
|
223
|
-
/* @__PURE__ */ jsxs(
|
|
224
|
-
"span",
|
|
225
|
-
{
|
|
226
|
-
className: `${styles.level} flex middle`,
|
|
227
|
-
"aria-label": "current menu level",
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ jsx("h2", { className: styles.levelTitle, id: "menu-level", children: currentLevel.title }),
|
|
230
|
-
/* @__PURE__ */ jsx(
|
|
231
|
-
"svg",
|
|
232
|
-
{
|
|
233
|
-
width: 15,
|
|
234
|
-
height: 12,
|
|
235
|
-
viewBox: "0 0 20 12",
|
|
236
|
-
fill: "none",
|
|
237
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
238
|
-
style: { marginLeft: 12 },
|
|
239
|
-
children: /* @__PURE__ */ jsx(
|
|
240
|
-
"path",
|
|
241
|
-
{
|
|
242
|
-
d: "M0.46875 1.76574L9.99908 11.2961L19.5294 1.76574L18.4687 0.705078L9.99908 9.17491L1.52941 0.705078L0.46875 1.76574Z",
|
|
243
|
-
fill: "white"
|
|
244
|
-
}
|
|
245
|
-
)
|
|
246
|
-
}
|
|
247
|
-
)
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
),
|
|
251
|
-
/* @__PURE__ */ jsx("nav", { "aria-label": "main navigation menu", children: /* @__PURE__ */ jsx(
|
|
252
|
-
AnimatePresence,
|
|
253
|
-
{
|
|
254
|
-
custom: direction,
|
|
255
|
-
mode: "sync",
|
|
256
|
-
initial: false,
|
|
257
|
-
children: /* @__PURE__ */ jsx(
|
|
258
|
-
motion.ul,
|
|
259
|
-
{
|
|
260
|
-
className: styles.menu,
|
|
261
|
-
custom: direction,
|
|
262
|
-
variants: slideVariants,
|
|
263
|
-
initial: "enter",
|
|
264
|
-
animate: "center",
|
|
265
|
-
exit: "exit",
|
|
266
|
-
transition: { duration: 0.3, ease: "linear" },
|
|
267
|
-
children: Object.entries(currentLevel.items).map(
|
|
268
|
-
([key, value]) => {
|
|
269
|
-
const hasChildren = typeof value === "object";
|
|
270
|
-
return /* @__PURE__ */ jsx("li", { children: hasChildren ? /* @__PURE__ */ jsxs(
|
|
271
|
-
"button",
|
|
272
|
-
{
|
|
273
|
-
className: styles.menuItem,
|
|
274
|
-
onClick: () => handleClick(key),
|
|
275
|
-
"aria-label": `open submenu for ${key}`,
|
|
276
|
-
children: [
|
|
277
|
-
/* @__PURE__ */ jsx("span", { children: key }),
|
|
278
|
-
/* @__PURE__ */ jsx("span", { className: styles.chevron, children: /* @__PURE__ */ jsx(
|
|
279
|
-
"svg",
|
|
280
|
-
{
|
|
281
|
-
className: styles.chevronIcon,
|
|
282
|
-
width: 12,
|
|
283
|
-
height: 20,
|
|
284
|
-
viewBox: "0 0 12 20",
|
|
285
|
-
fill: "none",
|
|
286
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
287
|
-
children: /* @__PURE__ */ jsx(
|
|
288
|
-
"path",
|
|
289
|
-
{
|
|
290
|
-
d: "M1.76378 0.46875L11.2941 9.99908L1.76378 19.5294L0.703125 18.4687L9.17295 9.99908L0.703125 1.52941L1.76378 0.46875Z",
|
|
291
|
-
fill: "#4A5560"
|
|
292
|
-
}
|
|
293
|
-
)
|
|
294
|
-
}
|
|
295
|
-
) })
|
|
296
|
-
]
|
|
297
|
-
}
|
|
298
|
-
) : /* @__PURE__ */ jsx(
|
|
299
|
-
Link,
|
|
300
|
-
{
|
|
301
|
-
href: value + (queryString && !value.includes("?") ? `?${queryString}` : ""),
|
|
302
|
-
className: styles.menuItem,
|
|
303
|
-
children: /* @__PURE__ */ jsx("span", { children: key })
|
|
304
|
-
}
|
|
305
|
-
) }, key);
|
|
306
|
-
}
|
|
307
|
-
)
|
|
308
|
-
},
|
|
309
|
-
currentLevel.title
|
|
310
|
-
)
|
|
311
|
-
}
|
|
312
|
-
) }),
|
|
313
|
-
/* @__PURE__ */ jsx("div", { className: `${styles.quickLinks} flex middle between`, children: quickLinks.map((link) => /* @__PURE__ */ jsxs(
|
|
314
|
-
"a",
|
|
315
|
-
{
|
|
316
|
-
href: link.url + (queryString && !link.url.includes("?") ? `?${queryString}` : ""),
|
|
317
|
-
className: `${styles.quickLink} flex_col middle`,
|
|
318
|
-
"aria-label": `Visit ${link.title} page`,
|
|
319
|
-
children: [
|
|
320
|
-
/* @__PURE__ */ jsx(
|
|
321
|
-
"img",
|
|
322
|
-
{
|
|
323
|
-
src: link.icon,
|
|
324
|
-
alt: "",
|
|
325
|
-
height: 20,
|
|
326
|
-
width: 20,
|
|
327
|
-
loading: "lazy"
|
|
328
|
-
}
|
|
329
|
-
),
|
|
330
|
-
/* @__PURE__ */ jsx("span", { children: link.title })
|
|
331
|
-
]
|
|
332
|
-
},
|
|
333
|
-
link.title
|
|
334
|
-
)) })
|
|
335
|
-
] }) })
|
|
336
|
-
]
|
|
337
|
-
}
|
|
338
|
-
)
|
|
339
|
-
}
|
|
340
|
-
) })
|
|
341
|
-
] });
|
|
342
|
-
};
|
|
343
|
-
export {
|
|
344
|
-
MobileDrawerMenu as default
|
|
345
|
-
};
|