@axos-web-dev/shared-components 0.0.99 → 0.0.101

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.
@@ -40,4 +40,5 @@ export interface ChevronProps extends PropsWithChildren {
40
40
  */
41
41
  icon?: string;
42
42
  marketingIntersitial?: interstitialProps;
43
+ newTab?: boolean;
43
44
  }
@@ -100,7 +100,8 @@ const Chevron = ({
100
100
  id,
101
101
  className,
102
102
  goBack = false,
103
- marketingIntersitial
103
+ marketingIntersitial,
104
+ newTab = false
104
105
  }) => {
105
106
  variant = getVariant(variant);
106
107
  const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
@@ -152,6 +153,7 @@ const Chevron = ({
152
153
  href: findMoreAxosDomains(targetUrl),
153
154
  className: `${chevron({ variant })} ${className ? className : ""}`,
154
155
  onClick: marketingIntersitial ? openMarketingInterstitial : onClick,
156
+ target: newTab ? "_blank" : "_self",
155
157
  children
156
158
  }
157
159
  ),
@@ -23,4 +23,5 @@ export interface HyperlinkProps extends PropsWithChildren {
23
23
  ariaLabel?: string;
24
24
  variant?: string;
25
25
  role?: string;
26
+ newTab?: boolean;
26
27
  }
@@ -99,7 +99,8 @@ const Hyperlink = ({
99
99
  className,
100
100
  ariaLabel,
101
101
  variant = "default",
102
- role
102
+ role,
103
+ newTab
103
104
  }) => {
104
105
  const hyperlink_variant = variant.toLowerCase();
105
106
  const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
@@ -126,6 +127,7 @@ const Hyperlink = ({
126
127
  ),
127
128
  onClick,
128
129
  "aria-label": ariaLabel,
130
+ target: newTab ? "_blank" : "_self",
129
131
  children
130
132
  }
131
133
  );
@@ -46,7 +46,8 @@ const IconBillboard = (props) => {
46
46
  displayText,
47
47
  targetUrl,
48
48
  type,
49
- marketingIntersitial
49
+ marketingIntersitial,
50
+ newTab
50
51
  }) => type === "Button" ? /* @__PURE__ */ jsx(
51
52
  Button,
52
53
  {
@@ -55,6 +56,7 @@ const IconBillboard = (props) => {
55
56
  size: "medium",
56
57
  rounded: "medium",
57
58
  marketingIntersitial,
59
+ newTab: true,
58
60
  children: displayText
59
61
  },
60
62
  id
@@ -64,6 +66,7 @@ const IconBillboard = (props) => {
64
66
  targetUrl,
65
67
  variant: getVariant(variant2),
66
68
  marketingIntersitial,
69
+ newTab,
67
70
  children: displayText
68
71
  },
69
72
  id
@@ -53,7 +53,8 @@ const IconBillboardSet = ({
53
53
  variant: variant2,
54
54
  displayText,
55
55
  targetUrl,
56
- type
56
+ type,
57
+ newTab
57
58
  }) => type === "Button" ? /* @__PURE__ */ jsx(
58
59
  Button,
59
60
  {
@@ -61,6 +62,7 @@ const IconBillboardSet = ({
61
62
  color: getVariant(variant2),
62
63
  size: "medium",
63
64
  rounded: "medium",
65
+ newTab,
64
66
  children: displayText
65
67
  },
66
68
  id2
@@ -69,6 +71,7 @@ const IconBillboardSet = ({
69
71
  {
70
72
  targetUrl,
71
73
  variant: getVariant(variant2),
74
+ newTab,
72
75
  children: displayText
73
76
  },
74
77
  id2
@@ -86,20 +86,23 @@ const ImageBillboardSet = ({
86
86
  "div",
87
87
  {
88
88
  className: `${billboard_ctas} push_up_24 flex ${inline ? "flex_col" : "flex_row"} gap_24 middle center`,
89
- children: callToActionRow.map(
90
- ({
89
+ children: callToActionRow.map((cta) => {
90
+ const {
91
91
  id: id3,
92
92
  variant: variant2,
93
93
  displayText,
94
94
  targetUrl,
95
- type
96
- }) => type === "Button" ? /* @__PURE__ */ jsx(
95
+ type,
96
+ newTab
97
+ } = cta;
98
+ return type === "Button" ? /* @__PURE__ */ jsx(
97
99
  Button,
98
100
  {
99
101
  targetUrl,
100
102
  color: getVariant(variant2),
101
103
  size: "medium",
102
104
  rounded: "medium",
105
+ newTab: true,
103
106
  children: displayText
104
107
  },
105
108
  id3
@@ -108,11 +111,12 @@ const ImageBillboardSet = ({
108
111
  {
109
112
  targetUrl,
110
113
  variant: getVariant(variant2),
114
+ newTab,
111
115
  children: displayText
112
116
  },
113
117
  id3
114
- )
115
- )
118
+ );
119
+ })
116
120
  }
117
121
  )
118
122
  ] })
@@ -121,13 +121,21 @@ const ImageBillboard = ({
121
121
  `center`
122
122
  ),
123
123
  children: callToActionRow.map(
124
- ({ id: id2, variant: variant2, displayText, targetUrl, type }) => type === "Button" ? /* @__PURE__ */ jsx(
124
+ ({
125
+ id: id2,
126
+ variant: variant2,
127
+ displayText,
128
+ targetUrl,
129
+ type,
130
+ newTab
131
+ }) => type === "Button" ? /* @__PURE__ */ jsx(
125
132
  Button,
126
133
  {
127
134
  targetUrl,
128
135
  color: getVariant(variant2),
129
136
  size: "medium",
130
137
  rounded: "medium",
138
+ newTab,
131
139
  children: displayText
132
140
  },
133
141
  id2
@@ -136,6 +144,7 @@ const ImageBillboard = ({
136
144
  {
137
145
  targetUrl,
138
146
  variant: getVariant(variant2),
147
+ newTab,
139
148
  children: displayText
140
149
  },
141
150
  id2
@@ -3,11 +3,7 @@ export declare const navItems: {
3
3
  url: string;
4
4
  }[];
5
5
  export declare const subNavItems: {
6
- scaleYourBusiness: {
7
- name: string;
8
- url: string;
9
- id: string;
10
- }[];
6
+ scaleYourBusiness: never[];
11
7
  serveYourClients: {
12
8
  name: string;
13
9
  url: string;
@@ -5,13 +5,7 @@ const navItems = [
5
5
  { name: "Axos Advantage", url: "/axos-advantage" }
6
6
  ];
7
7
  const subNavItems = {
8
- scaleYourBusiness: [
9
- {
10
- name: "Unlock Independence",
11
- url: "/scale-your-business/unlock-independence",
12
- id: "syb_1"
13
- }
14
- ],
8
+ scaleYourBusiness: [],
15
9
  serveYourClients: [
16
10
  {
17
11
  name: "Cash Management Solutions",
@@ -15,7 +15,6 @@ function SubNavBar() {
15
15
  useEffect(() => {
16
16
  setShowNavbar(
17
17
  () => [
18
- "/scale-your-business",
19
18
  "/serve-your-clients",
20
19
  "/optimize-operations",
21
20
  "/axos-advantage",
@@ -23,8 +22,8 @@ function SubNavBar() {
23
22
  ].some((el) => pathname?.includes(el))
24
23
  );
25
24
  }, [pathname]);
26
- 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__ */ jsx("div", { children: /* @__PURE__ */ jsxs("ul", { className: "list_unstyled flex_row middle", children: [
27
- pathname?.includes("/scale-your-business") && scaleYourBusiness?.map(
25
+ return showNavbar ? /* @__PURE__ */ jsx("div", { className: `${styles.sub_nav} ${sub_nav}`, children: /* @__PURE__ */ jsx("div", { className: styles.wrapper, children: /* @__PURE__ */ jsx("div", { className: styles.header_sub_row, children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs("ul", { className: "list_unstyled flex_row middle", children: [
26
+ pathname?.includes("/scale-your-business") && scaleYourBusiness.length > 0 && scaleYourBusiness?.map(
28
27
  (item) => /* @__PURE__ */ jsx("li", { className: styles.sub_nav_link, children: /* @__PURE__ */ jsx("a", { href: item.url, role: "menuitem", children: item.name }) }, `snb-${item.id}`)
29
28
  ),
30
29
  (pathname?.includes("/serve-your-clients") || pathname?.includes("/cash-management-solutions")) && serveYourClients.map(
@@ -272,29 +272,19 @@ function NavBar() {
272
272
  ]
273
273
  }
274
274
  ),
275
- /* @__PURE__ */ jsxs(
275
+ /* @__PURE__ */ jsx(
276
276
  "div",
277
277
  {
278
278
  className: clsx(styles.sub_menu, isOpenProducts1 && expand),
279
- children: [
280
- /* @__PURE__ */ jsx(
281
- "a",
282
- {
283
- href: "/scale-your-business",
284
- className: styles.main,
285
- role: "heading",
286
- children: "Scale Your Business Home"
287
- }
288
- ),
289
- /* @__PURE__ */ jsx(
290
- "a",
291
- {
292
- href: "/scale-your-business/unlock-independence",
293
- role: "menuitem",
294
- children: "Unlock Independence"
295
- }
296
- )
297
- ]
279
+ children: /* @__PURE__ */ jsx(
280
+ "a",
281
+ {
282
+ href: "/scale-your-business",
283
+ className: styles.main,
284
+ role: "heading",
285
+ children: "Scale Your Business Home"
286
+ }
287
+ )
298
288
  }
299
289
  )
300
290
  ]
@@ -296,7 +296,7 @@ td:has(.flex.middle span.img_fluid) .img_fluid {
296
296
  ._1nivbwew {
297
297
  border-radius: 0;
298
298
  overflow: auto;
299
- width: 100%;
299
+ width: auto;
300
300
  }
301
301
  ._1nivbwe12 tr:has(> :last-child:nth-child(-n + 3)) td {
302
302
  font-size: 14px;
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.99",
4
+ "version": "0.0.101",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",