@axos-web-dev/shared-components 0.0.138 → 0.0.139

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.
@@ -1,5 +1,9 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
3
7
  /* empty css */
4
8
  /* empty css */
5
9
  /* empty css */
@@ -118,14 +118,14 @@ function SubNavBar() {
118
118
  "/customer-support",
119
119
  "/about-us",
120
120
  "/legal",
121
- "/commercial/banking/",
122
- "/commercial/lending/"
121
+ "/commercial",
122
+ "/invest/insights"
123
123
  ].some((el) => pathname?.includes(el) || isHomepage)
124
124
  );
125
125
  }, [pathname]);
126
126
  return showNavbar ? /* @__PURE__ */ jsx("div", { className: `${styles.sub_nav} ${sub_nav} ${styles.desktop_only}`, children: /* @__PURE__ */ jsx("div", { className: styles.wrapper, children: /* @__PURE__ */ jsx("div", { className: styles.header_sub_row, children: /* @__PURE__ */ jsxs("nav", { children: [
127
127
  /* @__PURE__ */ jsxs("ul", { className: "list_unstyled flex_row middle", children: [
128
- (isHomepage || pathname?.includes("/personal")) && /* @__PURE__ */ jsxs(Fragment, { children: [
128
+ (isHomepage || pathname?.includes("/personal") || pathname?.includes("/invest/insights")) && /* @__PURE__ */ jsxs(Fragment, { children: [
129
129
  /* @__PURE__ */ jsx("li", { className: styles.sub_nav_link, children: /* @__PURE__ */ jsxs(
130
130
  "a",
131
131
  {
@@ -251,7 +251,7 @@ function SubNavBar() {
251
251
  }
252
252
  ) })
253
253
  ] }),
254
- (pathname?.includes("/business") || pathname?.includes("/commercial/banking/") || pathname?.includes("/commercial/lending/")) && /* @__PURE__ */ jsxs(Fragment, { children: [
254
+ (pathname?.includes("/business") || pathname?.includes("/commercial")) && /* @__PURE__ */ jsxs(Fragment, { children: [
255
255
  /* @__PURE__ */ jsx("li", { className: styles.sub_nav_link, children: /* @__PURE__ */ jsxs(
256
256
  "a",
257
257
  {
@@ -1,8 +1,8 @@
1
1
  import { PropsWithChildren } from 'react';
2
2
  import { CellProps, RowProps, TableContainerProps, TableProps } from './Table.interface';
3
3
 
4
- export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, tableType, tableDescription, internalName, id, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, style, className, }: TableProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TableContainer: ({ tableTitle, tableBody, tableFooter, tableType, tableDescription, internalName, id, icon, }: TableContainerProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Table: ({ variant, children, highlight, tableType, alternateColorRows, style, className, tableAriaLabel, }: TableProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export declare const TableRow: ({ children, ...props }: RowProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const TableHead: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const TableBody: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,7 @@ export interface TableProps extends PropsWithChildren {
15
15
  alternateColorRows?: boolean;
16
16
  style?: CSSProperties;
17
17
  className?: string;
18
+ tableAriaLabel?: string;
18
19
  }
19
20
  export interface TableContainerProps extends PropsWithChildren {
20
21
  id?: string;
@@ -25,4 +26,5 @@ export interface TableContainerProps extends PropsWithChildren {
25
26
  tableType?: string;
26
27
  tableDescription?: ReactNode | string;
27
28
  internalName?: string;
29
+ icon?: boolean;
28
30
  }
@@ -1,4 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
3
+ import SvgComponent from "../icons/AxosX/Blue.js";
4
+ import "../icons/CheckIcon/CheckIcon.css.js";
5
+ /* empty css */
6
+ /* empty css */
7
+ /* empty css */
8
+ /* empty css */
2
9
  import "../utils/allowedAxosDomains.js";
3
10
  import { getVariant } from "../utils/getVariant.js";
4
11
  import clsx from "clsx";
@@ -11,7 +18,8 @@ const TableContainer = ({
11
18
  tableType = "Standard",
12
19
  tableDescription,
13
20
  internalName,
14
- id
21
+ id,
22
+ icon
15
23
  }) => {
16
24
  return /* @__PURE__ */ jsx(
17
25
  "section",
@@ -26,7 +34,10 @@ const TableContainer = ({
26
34
  "containment"
27
35
  ),
28
36
  children: [
29
- tableTitle && /* @__PURE__ */ jsx("div", { className: table_container_text, children: /* @__PURE__ */ jsx("h2", { className: clsx("header_2", table_headline), children: tableTitle }) }),
37
+ (tableTitle || icon) && /* @__PURE__ */ jsxs("div", { className: table_container_text, children: [
38
+ icon && /* @__PURE__ */ jsx("div", { className: "mb_16 text_center", children: /* @__PURE__ */ jsx(SvgComponent, {}) }),
39
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", table_headline), children: tableTitle })
40
+ ] }),
30
41
  tableDescription && /* @__PURE__ */ jsx("div", { className: table_description_text, children: tableDescription }),
31
42
  tableBody,
32
43
  tableFooter && /* @__PURE__ */ jsx("div", { className: clsx(table_container_text, "push_up_24"), children: tableFooter })
@@ -44,7 +55,8 @@ const Table = ({
44
55
  tableType = "Standard",
45
56
  alternateColorRows = false,
46
57
  style,
47
- className
58
+ className,
59
+ tableAriaLabel
48
60
  }) => {
49
61
  return /* @__PURE__ */ jsx(
50
62
  "div",
@@ -60,6 +72,7 @@ const Table = ({
60
72
  children: /* @__PURE__ */ jsx(
61
73
  "table",
62
74
  {
75
+ "aria-label": tableAriaLabel,
63
76
  className: clsx(
64
77
  table({ variant: getVariant(variant) }),
65
78
  highlight === "First Row" && highlight_first_row,
File without changes
@@ -0,0 +1 @@
1
+ import "./Tooltip.css.ts.vanilla.css.js";
@@ -0,0 +1 @@
1
+ export declare const Tooltip: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsxs } from "react/jsx-runtime";
2
+ const Tooltip = () => {
3
+ return /* @__PURE__ */ jsxs("a", { onMouseOver: () => {
4
+ }, href: "#", className: "show-tooltips", children: [
5
+ " ",
6
+ "Link 2"
7
+ ] });
8
+ };
9
+ export {
10
+ Tooltip
11
+ };
File without changes
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "0.0.138",
4
+ "version": "0.0.139",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",