@axos-web-dev/shared-components 0.0.110 → 0.0.112
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 +1 -0
- package/dist/Button/Button.js +6 -2
- package/dist/Calculators/Calculator.js +1 -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 +95 -72
- package/dist/Forms/ClearingForm.js +26 -12
- package/dist/Forms/ContactUsBusiness.js +1 -0
- package/dist/Forms/ContactUsNMLSId.js +1 -0
- package/dist/Forms/CpraRequest.d.ts +27 -0
- package/dist/Forms/CpraRequest.js +733 -0
- package/dist/Forms/EmailOnly.js +1 -0
- package/dist/Forms/Forms.css.d.ts +1 -0
- package/dist/Forms/Forms.css.js +2 -0
- package/dist/Forms/SuccesForm.js +1 -0
- package/dist/Forms/index.d.ts +1 -0
- package/dist/Forms/index.js +4 -1
- package/dist/HeroBanner/HeroBanner.css.d.ts +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/CheckboxGroup.js +1 -2
- 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.d.ts +2 -36
- package/dist/NavigationMenu/AxosBank/NavData.js +133 -33
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +369 -166
- package/dist/NavigationMenu/AxosBank/index.js +268 -28
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +49 -31
- package/dist/NavigationMenu/AxosClearing/NavData.js +1 -1
- package/dist/NavigationMenu/AxosClearing/index.js +119 -12
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/assets/Forms/Forms.css +4 -0
- package/dist/assets/HeroBanner/HeroBanner.css +1 -0
- package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +133 -82
- package/dist/main.js +4 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { Button } from "../../Button/Button.js";
|
|
4
4
|
import "../../Button/Button.css.js";
|
|
5
5
|
import { useState, useRef, useEffect } from "react";
|
|
6
|
-
import "react-use";
|
|
6
|
+
import { useClickAway } from "react-use";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
import { NavItem } from "../NavItem/index.js";
|
|
9
9
|
import { expand } from "./NavBar.css.js";
|
|
@@ -11,18 +11,22 @@ import styles from "./NavBar.module.js";
|
|
|
11
11
|
import { navItems } from "./NavData.js";
|
|
12
12
|
import SubNavBar from "./SubNavBar.js";
|
|
13
13
|
function NavBar() {
|
|
14
|
+
const [isOpenSignIn, setisOpenSignIn] = useState(false);
|
|
14
15
|
const [isOpenMobile, setisOpenMobile] = useState(false);
|
|
15
16
|
const [activeIndex, setActiveIndex] = useState();
|
|
16
17
|
const [lastNavItem, setLastNavItem] = useState();
|
|
17
18
|
const ref = useRef(null);
|
|
19
|
+
const toggle = () => setisOpenSignIn(!isOpenSignIn);
|
|
18
20
|
const mobileToggle = () => setisOpenMobile(!isOpenMobile);
|
|
19
21
|
const handleClick = (index) => setActiveIndex(index);
|
|
20
22
|
const [isOpenProducts1, setisOpenProducts1] = useState(false);
|
|
21
23
|
const [isOpenProducts2, setisOpenProducts2] = useState(false);
|
|
22
24
|
const [isOpenProducts3, setisOpenProducts3] = useState(false);
|
|
25
|
+
const [isOpenProducts4, setisOpenProducts4] = useState(false);
|
|
23
26
|
const toggleProducts1 = () => setisOpenProducts1(!isOpenProducts1);
|
|
24
27
|
const toggleProducts2 = () => setisOpenProducts2(!isOpenProducts2);
|
|
25
28
|
const toggleProducts3 = () => setisOpenProducts3(!isOpenProducts3);
|
|
29
|
+
const toggleProducts4 = () => setisOpenProducts4(!isOpenProducts4);
|
|
26
30
|
const getActiveIndex = () => {
|
|
27
31
|
const pathname = "/" + location.pathname.split("/")[1];
|
|
28
32
|
const index = navItems.findIndex(
|
|
@@ -36,6 +40,11 @@ function NavBar() {
|
|
|
36
40
|
useEffect(() => {
|
|
37
41
|
setLastNavItem(navItems[navItems.length - 1]);
|
|
38
42
|
}, []);
|
|
43
|
+
useClickAway(ref, (e) => {
|
|
44
|
+
if (e?.target?.tagName !== "A") {
|
|
45
|
+
setisOpenSignIn(false);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
39
48
|
return /* @__PURE__ */ jsxs("header", { id: "header", children: [
|
|
40
49
|
/* @__PURE__ */ jsx("div", { className: `${styles.header} bg_white`, children: /* @__PURE__ */ jsx("div", { className: styles.wrapper, children: /* @__PURE__ */ jsxs("div", { className: `${styles.header_main_row} flex_row between middle`, children: [
|
|
41
50
|
/* @__PURE__ */ jsx("div", { className: `${styles.desktop_only} flex_row middle`, children: /* @__PURE__ */ jsxs("div", { className: `${styles.main_nav} flex_row middle`, children: [
|
|
@@ -89,7 +98,7 @@ function NavBar() {
|
|
|
89
98
|
)
|
|
90
99
|
}
|
|
91
100
|
),
|
|
92
|
-
/* @__PURE__ */ jsx("div", { className: `${styles.mobile_only} ${styles.mobile_logo}`, children: /* @__PURE__ */ jsx("a", { href: "/", "aria-label": "return to axos
|
|
101
|
+
/* @__PURE__ */ jsx("div", { className: `${styles.mobile_only} ${styles.mobile_logo}`, children: /* @__PURE__ */ jsx("a", { href: "/", "aria-label": "return to axos clearing homepage", children: /* @__PURE__ */ jsx(
|
|
93
102
|
"img",
|
|
94
103
|
{
|
|
95
104
|
src: "https://images.axos.com/o9ov1v03uwqk/1KWdk4xENAS8hmQRQWhviO/05df12996a96400c057b0066b4cf250f/axos-clearing-logo.svg",
|
|
@@ -123,16 +132,18 @@ function NavBar() {
|
|
|
123
132
|
styles.signin_btn,
|
|
124
133
|
"flex_row",
|
|
125
134
|
"center",
|
|
126
|
-
"middle"
|
|
135
|
+
"middle",
|
|
136
|
+
isOpenSignIn ? styles.open : ""
|
|
127
137
|
),
|
|
128
138
|
as: "button",
|
|
129
139
|
type: "button",
|
|
130
140
|
color: "primary",
|
|
131
141
|
id: "signIn",
|
|
142
|
+
action: toggle,
|
|
132
143
|
size: "small",
|
|
133
|
-
|
|
144
|
+
"aria-controls": "signin-drop-menu",
|
|
134
145
|
children: [
|
|
135
|
-
/* @__PURE__ */ jsx("span", { children: "
|
|
146
|
+
/* @__PURE__ */ jsx("span", { children: "Sign In" }),
|
|
136
147
|
/* @__PURE__ */ jsx(
|
|
137
148
|
"svg",
|
|
138
149
|
{
|
|
@@ -152,6 +163,39 @@ function NavBar() {
|
|
|
152
163
|
)
|
|
153
164
|
]
|
|
154
165
|
}
|
|
166
|
+
),
|
|
167
|
+
/* @__PURE__ */ jsx(
|
|
168
|
+
"div",
|
|
169
|
+
{
|
|
170
|
+
className: `${styles.signin_dropdown} ${styles.shadow} rounded bg_white`,
|
|
171
|
+
children: /* @__PURE__ */ jsx("div", { className: styles.opacity, children: /* @__PURE__ */ jsxs(
|
|
172
|
+
"ul",
|
|
173
|
+
{
|
|
174
|
+
className: "list_unstyled",
|
|
175
|
+
role: "menu",
|
|
176
|
+
"aria-expanded": isOpenSignIn,
|
|
177
|
+
id: "signin-drop-menu",
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
180
|
+
"a",
|
|
181
|
+
{
|
|
182
|
+
href: `https://connect.axosclearing.com/`,
|
|
183
|
+
role: "menuitem",
|
|
184
|
+
children: "Axos Connection"
|
|
185
|
+
}
|
|
186
|
+
) }),
|
|
187
|
+
/* @__PURE__ */ jsx("li", { className: styles.signin_subheader, children: /* @__PURE__ */ jsx(
|
|
188
|
+
"a",
|
|
189
|
+
{
|
|
190
|
+
href: `https://axosclearing.fisglobal.com/investor/axos`,
|
|
191
|
+
role: "menuitem",
|
|
192
|
+
children: "Investor Access"
|
|
193
|
+
}
|
|
194
|
+
) })
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
) })
|
|
198
|
+
}
|
|
155
199
|
)
|
|
156
200
|
]
|
|
157
201
|
}
|
|
@@ -435,14 +479,70 @@ function NavBar() {
|
|
|
435
479
|
]
|
|
436
480
|
}
|
|
437
481
|
),
|
|
438
|
-
/* @__PURE__ */
|
|
439
|
-
"
|
|
482
|
+
/* @__PURE__ */ jsxs(
|
|
483
|
+
"li",
|
|
440
484
|
{
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
children:
|
|
485
|
+
className: `${styles.mobile_nav_item} ${styles.has_dropdown}`,
|
|
486
|
+
id: "dd_4",
|
|
487
|
+
children: [
|
|
488
|
+
/* @__PURE__ */ jsxs(
|
|
489
|
+
"a",
|
|
490
|
+
{
|
|
491
|
+
href: "#",
|
|
492
|
+
onClick: toggleProducts4,
|
|
493
|
+
role: "button",
|
|
494
|
+
className: clsx("flex_row", "between"),
|
|
495
|
+
children: [
|
|
496
|
+
"Sign In",
|
|
497
|
+
/* @__PURE__ */ jsx(
|
|
498
|
+
"span",
|
|
499
|
+
{
|
|
500
|
+
className: clsx(
|
|
501
|
+
styles.icon_wrap,
|
|
502
|
+
isOpenProducts4 && styles.open
|
|
503
|
+
),
|
|
504
|
+
children: /* @__PURE__ */ jsx(
|
|
505
|
+
"svg",
|
|
506
|
+
{
|
|
507
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
508
|
+
width: "24",
|
|
509
|
+
height: "24",
|
|
510
|
+
viewBox: "0 0 24 24",
|
|
511
|
+
fill: "none",
|
|
512
|
+
children: /* @__PURE__ */ jsx(
|
|
513
|
+
"path",
|
|
514
|
+
{
|
|
515
|
+
d: "M2.46875 7.76574L11.9991 17.2961L21.5294 7.76574L20.4687 6.70508L11.9991 15.1749L3.52941 6.70508L2.46875 7.76574Z",
|
|
516
|
+
fill: "#4A5560"
|
|
517
|
+
}
|
|
518
|
+
)
|
|
519
|
+
}
|
|
520
|
+
)
|
|
521
|
+
}
|
|
522
|
+
)
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
),
|
|
526
|
+
/* @__PURE__ */ jsxs(
|
|
527
|
+
"div",
|
|
528
|
+
{
|
|
529
|
+
className: clsx(styles.sub_menu, isOpenProducts4 && expand),
|
|
530
|
+
children: [
|
|
531
|
+
/* @__PURE__ */ jsx("a", { href: "https://connect.axosclearing.com/", role: "menuitem", children: "Axos Connection" }),
|
|
532
|
+
/* @__PURE__ */ jsx(
|
|
533
|
+
"a",
|
|
534
|
+
{
|
|
535
|
+
href: "https://axosclearing.fisglobal.com/investor/axos",
|
|
536
|
+
role: "menuitem",
|
|
537
|
+
children: "Investor Access"
|
|
538
|
+
}
|
|
539
|
+
)
|
|
540
|
+
]
|
|
541
|
+
}
|
|
542
|
+
)
|
|
543
|
+
]
|
|
444
544
|
}
|
|
445
|
-
)
|
|
545
|
+
)
|
|
446
546
|
] }) }),
|
|
447
547
|
/* @__PURE__ */ jsx("div", { className: styles.mobile_footer, children: /* @__PURE__ */ jsxs("div", { className: "flex_row between", children: [
|
|
448
548
|
/* @__PURE__ */ jsxs(
|
|
@@ -451,7 +551,14 @@ function NavBar() {
|
|
|
451
551
|
className: `${styles.mobile_footer_content} flex_col between`,
|
|
452
552
|
children: [
|
|
453
553
|
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: "Get in Touch" }) }),
|
|
454
|
-
/* @__PURE__ */ jsx("div", { className: styles.footer_cta, children: /* @__PURE__ */ jsx(
|
|
554
|
+
/* @__PURE__ */ jsx("div", { className: styles.footer_cta, children: /* @__PURE__ */ jsx(
|
|
555
|
+
Button,
|
|
556
|
+
{
|
|
557
|
+
color: "primary",
|
|
558
|
+
targetUrl: "/axos-advantage/contact-us",
|
|
559
|
+
children: "Contact Us"
|
|
560
|
+
}
|
|
561
|
+
) })
|
|
455
562
|
]
|
|
456
563
|
}
|
|
457
564
|
),
|