@axos-web-dev/shared-components 1.0.100-dev.76-feature-lp-logos → 1.0.100-dev.78

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.
@@ -2,68 +2,56 @@
2
2
  background: var(--_1073cm81);
3
3
  }
4
4
  ._1o1hxre2 {
5
- background: var(--_1073cm88);
5
+ background: var(--_1073cm81);
6
6
  }
7
7
  ._1o1hxre3 {
8
- background: var(--_1073cm8f);
8
+ background: var(--_1073cm81);
9
9
  }
10
10
  ._1o1hxre4 {
11
- background: var(--_1073cm8m);
12
- }
13
- ._1o1hxre5 {
14
- padding: 7px 24px;
11
+ padding: 0 24px;
15
12
  min-height: 59px;
16
13
  }
17
- ._1o1hxre6 {
14
+ ._1o1hxre5 {
18
15
  padding: 32px 24px;
19
16
  min-height: 59px;
20
17
  }
21
- ._1o1hxre7 {
18
+ ._1o1hxre6 {
22
19
  transition: opacity 0.35s ease;
23
20
  }
24
- ._1o1hxre7:hover {
21
+ ._1o1hxre6:hover {
25
22
  opacity: 0.6;
26
23
  }
27
- ._1o1hxre7:active {
24
+ ._1o1hxre6:active {
28
25
  opacity: 1;
29
26
  }
30
- ._1o1hxre8 {
27
+ ._1o1hxre7 {
31
28
  transition: opacity 0.35s ease;
32
29
  width: 568px;
33
30
  height: 78px;
34
31
  }
35
- ._1o1hxre8:hover {
32
+ ._1o1hxre7:hover {
36
33
  opacity: 0.6;
37
34
  }
38
- ._1o1hxre8:active {
35
+ ._1o1hxre7:active {
39
36
  opacity: 1;
40
37
  }
41
- ._1o1hxrea {
38
+ ._1o1hxre8 {
42
39
  fill: var(--_1073cm85);
43
40
  }
44
- ._1o1hxreb {
45
- fill: var(--_1073cm8c);
46
- }
47
- ._1o1hxrec {
48
- fill: var(--_1073cm8j);
49
- }
50
- ._1o1hxred {
51
- fill: var(--_1073cm8q);
52
- }
53
41
  @media screen and (max-width: 1023px) {
54
- ._1o1hxre6 {
42
+ ._1o1hxre5 {
55
43
  padding: 28px 24px;
56
44
  }
57
- ._1o1hxre8 {
45
+ ._1o1hxre7 {
58
46
  width: 454px;
59
47
  height: 62px;
60
48
  }
61
49
  }
62
50
  @media screen and (max-width: 768px) {
63
- ._1o1hxre6 {
51
+ ._1o1hxre5 {
64
52
  padding: 24px 24px;
65
53
  }
66
- ._1o1hxre8 {
54
+ ._1o1hxre7 {
67
55
  width: 340px;
68
56
  height: 46px;
69
57
  }
package/dist/main.js CHANGED
@@ -52,7 +52,7 @@ import { ComparisonSet } from "./Comparison/ComparisonSet.js";
52
52
  import { ContentBanner } from "./ContentBanner/index.js";
53
53
  import { DownloadTile } from "./DownloadTile/index.js";
54
54
  import { ExecutiveBio } from "./ExecutiveBio/ExecutiveBio.js";
55
- import { bio_section_text, bulletsHeadline, bulletsWrapper, ceoContainer, ceoContent, ceoHeader, ceoImgWrapper, ceoMedia, ceoPersonalInfo, ceoSection, ceoWrapper, ceo_body, ceo_contacts, ceo_name, ceo_quote, ceo_title, components, contact_col, contact_entry, contacts, copy, description, details, executive_bio, flexColumn, header_theme, headline_setting, headshot, highlights, hover, imgAlignment, img_area, item_bio, job_title, media, order_3, overlay, padding, person, section_theme, shift, social, stroke_color, svg_color, svg_icon, tooltip, url_row } from "./ExecutiveBio/ExecutiveBio.css.js";
55
+ import { bio_section_text, bulletsHeadline, bulletsWrapper, ceoContainer, ceoContent, ceoHeader, ceoImgWrapper, ceoMedia, ceoPersonalInfo, ceoSection, ceoWrapper, ceo_body, ceo_contacts, ceo_name, ceo_quote, ceo_title, compact, components, contact_col, contact_entry, contacts, copy, description, details, executive_bio, flexColumn, header_theme, headline_setting, headshot, highlights, hover, imgAlignment, img_area, item_bio, job_title, media, order_3, overlay, padding, person, section_theme, shift, social, stroke_color, svg_color, svg_icon, tooltip, url_row } from "./ExecutiveBio/ExecutiveBio.css.js";
56
56
  import { ExecutiveBioSet } from "./ExecutiveBio/ExecutiveBioSet.js";
57
57
  import { AccordionCtas, AccordionItem, AccordionItemContent, AccordionItemSummary, FaqAccordion } from "./FaqAccordion/index.js";
58
58
  import { FdicBanner } from "./FdicCallout/index.js";
@@ -517,6 +517,7 @@ export {
517
517
  chatbotUFB,
518
518
  checkbox_group,
519
519
  columnValues,
520
+ compact,
520
521
  comparison,
521
522
  comparison_buttons,
522
523
  comparison_container,
@@ -1,8 +1,12 @@
1
1
  const appendQueryParams = () => {
2
- const searchParams = new URLSearchParams(window.location.search);
3
- const filterParams = (href) => {
2
+ const currentOrigin = window.location.origin;
3
+ const currentPathname = window.location.pathname;
4
+ const filterParams = (href, currentSearch) => {
4
5
  try {
5
- const url = new URL(href, window.location.origin);
6
+ const search = currentSearch ?? window.location.search;
7
+ const searchParams = new URLSearchParams(search);
8
+ const base = window.location.origin + window.location.pathname + window.location.search;
9
+ const url = new URL(href, base);
6
10
  const existingParams = new URLSearchParams(url.search);
7
11
  const newParams = new URLSearchParams();
8
12
  const addedKeys = /* @__PURE__ */ new Set();
@@ -25,17 +29,44 @@ const appendQueryParams = () => {
25
29
  }
26
30
  const mergedParams = new URLSearchParams(existingParams);
27
31
  newParams.forEach((value, key) => mergedParams.append(key, value));
28
- return `${url.origin}${url.pathname}?${mergedParams.toString()}`;
32
+ return `${url.origin}${url.pathname}?${mergedParams.toString()}${url.hash}`;
29
33
  } catch (e) {
30
34
  console.error(e);
31
35
  return href;
32
36
  }
33
37
  };
38
+ const handleSamePageClick = (e) => {
39
+ const anchor = e.target?.closest?.("a[href]");
40
+ if (!anchor || anchor.classList.contains("ext-link"))
41
+ return;
42
+ const href = anchor.getAttribute("href")?.trim();
43
+ if (!href || href.startsWith("tel:") || href.startsWith("mailto:") || href === "#" || href === "" || href.startsWith("#"))
44
+ return;
45
+ const base = window.location.origin + window.location.pathname + window.location.search;
46
+ const url = new URL(href, base);
47
+ if (url.origin !== currentOrigin || url.pathname !== currentPathname)
48
+ return;
49
+ e.preventDefault();
50
+ e.stopImmediatePropagation();
51
+ const merged = filterParams(href, window.location.search);
52
+ const mergedUrl = new URL(merged, window.location.origin);
53
+ const fullUrl = `${mergedUrl.pathname}${mergedUrl.search}${mergedUrl.hash}`;
54
+ window.history.replaceState({ ...window.history.state }, "", fullUrl);
55
+ window.dispatchEvent(
56
+ new PopStateEvent("popstate", { state: window.history.state })
57
+ );
58
+ if (mergedUrl.hash) {
59
+ const el = document.querySelector(mergedUrl.hash);
60
+ el?.scrollIntoView({ behavior: "smooth" });
61
+ }
62
+ };
63
+ document.addEventListener("click", handleSamePageClick, true);
34
64
  if (window.location.search.length) {
65
+ const searchParams = new URLSearchParams(window.location.search);
35
66
  document.querySelectorAll("a[href]:not(.ext-link)").forEach((anchor) => {
36
67
  const href = anchor.getAttribute("href")?.trim();
37
68
  if (href && !href.startsWith("tel:") && !href.startsWith("mailto:") && href !== "#" && href !== "" && !href.startsWith("#")) {
38
- anchor.href = filterParams(href);
69
+ anchor.href = filterParams(href, searchParams.toString());
39
70
  }
40
71
  });
41
72
  }
@@ -8,12 +8,10 @@ const shortUrl = (url) => {
8
8
  return uri.hostname;
9
9
  };
10
10
  const isEmailLink = (url) => {
11
- const uri = new URL(url, location.href);
12
- return uri.protocol == "mailto:";
11
+ return typeof url === "string" && url.trim().toLowerCase().startsWith("mailto:");
13
12
  };
14
13
  const isPhoneLink = (url) => {
15
- const uri = new URL(url, location.href);
16
- return uri.protocol === "tel:";
14
+ return typeof url === "string" && url.trim().toLowerCase().startsWith("tel:");
17
15
  };
18
16
  const validateLink = (url) => {
19
17
  let openModal = false;
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": "1.0.100-dev.76-feature-lp-logos",
4
+ "version": "1.0.100-dev.78",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",