@axos-web-dev/shared-components 0.0.50 → 0.0.51
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.
|
@@ -18,9 +18,13 @@ const AccordionItem = (props) => {
|
|
|
18
18
|
const selectItem = useAccordion((state) => state.toggle);
|
|
19
19
|
const isOpen = useAccordion((state) => state.itemOpened);
|
|
20
20
|
const toggle = (event) => {
|
|
21
|
+
var _a;
|
|
21
22
|
const ev = event.target;
|
|
22
|
-
|
|
23
|
-
if (!
|
|
23
|
+
let evClasses = ev.getAttribute("class");
|
|
24
|
+
if (!evClasses) {
|
|
25
|
+
evClasses = ((_a = ev.closest("div")) == null ? void 0 : _a.getAttribute("class")) || null;
|
|
26
|
+
}
|
|
27
|
+
if (!(evClasses == null ? void 0 : evClasses.includes(summary)) !== ((evClasses == null ? void 0 : evClasses.includes(summaryHeader)) || (evClasses == null ? void 0 : evClasses.includes(icon)))) {
|
|
24
28
|
return;
|
|
25
29
|
}
|
|
26
30
|
event.preventDefault();
|
|
@@ -46,7 +50,7 @@ const AccordionItemSummary = (props) => {
|
|
|
46
50
|
const isOpen = useAccordion((state) => state.itemOpened);
|
|
47
51
|
return /* @__PURE__ */ jsxs("summary", { className: summary, children: [
|
|
48
52
|
/* @__PURE__ */ jsx("div", { className: summaryHeader, children: props.children }),
|
|
49
|
-
/* @__PURE__ */ jsx("div", {
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: icon, children: isOpen === props.id ? /* @__PURE__ */ jsx(SvgChevronUp, {}) : /* @__PURE__ */ jsx(SvgChevronDown, {}) })
|
|
50
54
|
] });
|
|
51
55
|
};
|
|
52
56
|
const AccordionItemContent = (props) => {
|
|
@@ -4,6 +4,7 @@ import { Button } from "../../Button/Button.js";
|
|
|
4
4
|
import "../../Button/Button.css.js";
|
|
5
5
|
import { useRef, useState, useEffect } from "react";
|
|
6
6
|
import { useLocation } from "react-use";
|
|
7
|
+
import clsx from "clsx";
|
|
7
8
|
import styles from "./NavBar.module.js";
|
|
8
9
|
import { sub_nav, absoule, dd_media, dd_media_btn } from "./SubNavbar.css.js";
|
|
9
10
|
function SubNavBar() {
|
|
@@ -22,17 +23,17 @@ function SubNavBar() {
|
|
|
22
23
|
};
|
|
23
24
|
useEffect(() => {
|
|
24
25
|
(pathname == null ? void 0 : pathname.includes("/products")) ? setIsrender(true) : setIsrender(false);
|
|
25
|
-
}, [
|
|
26
|
+
}, [pathname]);
|
|
26
27
|
const date = /* @__PURE__ */ new Date();
|
|
27
28
|
const day = date.getDate();
|
|
28
29
|
const month = date.getMonth() + 1;
|
|
29
30
|
const year = date.getFullYear();
|
|
30
31
|
const currentDate = `${month}/${day}/${year}`;
|
|
31
|
-
return /* @__PURE__ */ jsx(Fragment, { children:
|
|
32
|
+
return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
33
|
/* @__PURE__ */ jsx(
|
|
33
34
|
"div",
|
|
34
35
|
{
|
|
35
|
-
className: `${styles.sub_nav} ${sub_nav} ${styles.desktop_only}`,
|
|
36
|
+
className: `${styles.sub_nav} ${sub_nav} ${styles.desktop_only} ${clsx(!render && "hide")}`,
|
|
36
37
|
children: /* @__PURE__ */ jsx("div", { className: styles.wrapper, children: /* @__PURE__ */ jsx("div", { className: styles.header_sub_row, children: /* @__PURE__ */ jsx("div", { className: "list_unstyled flex_row middle", children: /* @__PURE__ */ jsxs("ul", { className: "list_unstyled flex_row middle", children: [
|
|
37
38
|
/* @__PURE__ */ jsx("li", { className: styles.sub_nav_link, children: /* @__PURE__ */ jsxs(
|
|
38
39
|
"a",
|
package/dist/assets/globals.css
CHANGED
package/dist/main.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export * from './DownloadTile';
|
|
|
12
12
|
export * from './ExecutiveBio';
|
|
13
13
|
export * from './FaqAccordion';
|
|
14
14
|
export * from './FooterDisclosure';
|
|
15
|
-
export * from './FooterSiteMap';
|
|
15
|
+
export * from './FooterSiteMap/AxosBank';
|
|
16
16
|
export * from './Forms';
|
|
17
17
|
export * from './HeroBanner';
|
|
18
18
|
export * from './Hyperlink';
|