@axos-web-dev/shared-components 1.0.9 → 1.0.11

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.
Files changed (61) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -1
  2. package/dist/Article/Article.js +10 -7
  3. package/dist/Button/Button.js +1 -1
  4. package/dist/Calculators/Calculator.js +1 -1
  5. package/dist/Carousel/index.js +1 -1
  6. package/dist/Chevron/index.js +1 -1
  7. package/dist/Comparison/Comparison.js +1 -1
  8. package/dist/ExecutiveBio/ExecutiveBio.js +10 -25
  9. package/dist/FaqAccordion/index.js +1 -1
  10. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  11. package/dist/Forms/ApplyNow.js +1 -1
  12. package/dist/Forms/ContactUsBusiness.js +1 -1
  13. package/dist/Forms/ContactUsNMLSId.js +1 -1
  14. package/dist/Forms/CraPublicFile.js +1 -1
  15. package/dist/Forms/EmailOnly.js +1 -1
  16. package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
  17. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  18. package/dist/Forms/SuccesForm.js +1 -1
  19. package/dist/HeroBanner/HeroBanner.css.d.ts +0 -1
  20. package/dist/HeroBanner/HeroBanner.css.js +0 -2
  21. package/dist/HeroBanner/HeroBanner.js +26 -57
  22. package/dist/HeroBanner/index.js +1 -2
  23. package/dist/Hyperlink/index.js +1 -1
  24. package/dist/ImageBillboard/ImageBillboardSet.js +9 -6
  25. package/dist/ImageLink/ImageLink.js +1 -1
  26. package/dist/ImageLink/ImageLinkSet.js +1 -1
  27. package/dist/ImageLink/index.js +1 -1
  28. package/dist/Insight/Featured/CategorySelector.js +14 -16
  29. package/dist/Insight/Featured/Featured.js +1 -1
  30. package/dist/Insight/Featured/Header.js +1 -1
  31. package/dist/Modal/Modal.js +1 -1
  32. package/dist/NavigationMenu/AxosALTS/NavData.js +1 -1
  33. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  34. package/dist/NavigationMenu/AxosBank/NavBar.module.js +53 -53
  35. package/dist/NavigationMenu/AxosBank/NavData.js +1 -1
  36. package/dist/NavigationMenu/AxosBank/SubNavBar.js +19 -14
  37. package/dist/NavigationMenu/AxosBank/index.js +1 -1
  38. package/dist/NavigationMenu/LaVictoire/NavData.js +1 -1
  39. package/dist/NavigationMenu/LaVictoire/index.js +25 -15
  40. package/dist/SetContainer/SetContainer.js +1 -1
  41. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  42. package/dist/StepItemSet/StepItemSet.js +2 -6
  43. package/dist/VideoWrapper/index.js +1 -1
  44. package/dist/assets/HeroBanner/HeroBanner.css +4 -4
  45. package/dist/assets/HeroBanner/LargeBanner.css +3 -0
  46. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +145 -131
  47. package/dist/assets/globals.css +4 -20
  48. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +48 -0
  49. package/dist/main.js +1 -2
  50. package/dist/utils/optimizeImage/OptimizeImage.d.ts +14 -0
  51. package/dist/utils/optimizeImage/OptimizeImage.js +53 -0
  52. package/dist/utils/optimizeImage/index.d.ts +1 -0
  53. package/dist/utils/optimizeImage/index.js +4 -0
  54. package/dist/utils/optimizeImage/optimizeImage.module.js +14 -0
  55. package/package.json +1 -1
  56. package/dist/utils/lazyImage/imageObserver.d.ts +0 -9
  57. package/dist/utils/lazyImage/imageObserver.js +0 -29
  58. package/dist/utils/lazyImage/index.d.ts +0 -2
  59. package/dist/utils/lazyImage/index.js +0 -7
  60. package/dist/utils/lazyImage/lazyImage.d.ts +0 -10
  61. package/dist/utils/lazyImage/lazyImage.js +0 -26
@@ -1,19 +1,3 @@
1
- @keyframes _5fvzn90 {
2
- 0% {
3
- left: 4px;
4
- }
5
- to {
6
- left: 0px;
7
- }
8
- }
9
- @keyframes _5fvzn91 {
10
- 0% {
11
- left: 0px;
12
- }
13
- to {
14
- left: 4px;
15
- }
16
- }
17
1
  * {
18
2
  box-sizing: border-box;
19
3
  margin: 0;
@@ -209,11 +193,11 @@ h1, h2, h3, h4, h5, h6, es_font {
209
193
  }
210
194
  .sc__btn > .arrow {
211
195
  position: relative;
212
- animation: _5fvzn90 0.1s linear 0s 1 normal forwards;
196
+ will-change: transform;
197
+ transition: transform 0.3s ease;
213
198
  }
214
- .sc__btn:hover > .arrow, .arrow, .sc__btn:focus-within > .arrow {
215
- transition: 0.3s;
216
- animation: _5fvzn91 0.3s ease-out 0s 1 normal forwards;
199
+ .sc__btn:hover > .arrow, .sc__btn:focus-within > .arrow {
200
+ transform: translateX(4px);
217
201
  }
218
202
  .link {
219
203
  word-break: break-word;
@@ -0,0 +1,48 @@
1
+ @keyframes _shimmer_1vfu4_1 {
2
+ from {
3
+ transform: translateX(-100%);
4
+ }
5
+ to {
6
+ transform: translateX(100%);
7
+ }
8
+ }
9
+
10
+ ._loader_1vfu4_19 {
11
+ position: absolute;
12
+ height: 100%;
13
+ width: 100%;
14
+ inset: 0;
15
+ }
16
+
17
+ ._loading_1vfu4_33 {
18
+ position: relative;
19
+ width: 100%;
20
+ height: 100%;
21
+ overflow: hidden;
22
+ background: #1e3860;
23
+ }
24
+
25
+ ._1es6o1h0 ._loading_1vfu4_33 {
26
+ background-color: #1e262f;
27
+ }
28
+
29
+ .fl2fv50 ._loading_1vfu4_33 {
30
+ background-color: #28587d;
31
+ }
32
+
33
+ ._loading_1vfu4_33::before {
34
+ content: "";
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ width: 190%;
39
+ height: 100%;
40
+ background: linear-gradient(
41
+ 65deg,
42
+ rgba(255, 255, 255, 0) 20%,
43
+ rgba(255, 255, 255, 0.5) 50%,
44
+ rgba(255, 255, 255, 0) 80%
45
+ );
46
+ animation: _shimmer_1vfu4_1 1.3s infinite linear;
47
+ z-index: 1;
48
+ }
package/dist/main.js CHANGED
@@ -82,7 +82,7 @@ import { SuccesFormWrapper } from "./Forms/SuccesForm.js";
82
82
  import { VendorQuestionnaire } from "./Forms/VendorQuestionnaire.js";
83
83
  import { WCPLSurvey } from "./Forms/WcplSurvey.js";
84
84
  import { HeroBanner } from "./HeroBanner/HeroBanner.js";
85
- import { headline_text, heroSupertag, hero_banner, hero_btns, hero_content, hero_embedded_image, hero_img, hero_text, hero_wrapper, img_contents, logout, reversed, reversed_lg_image } from "./HeroBanner/HeroBanner.css.js";
85
+ import { headline_text, heroSupertag, hero_banner, hero_btns, hero_content, hero_embedded_image, hero_img, hero_text, hero_wrapper, logout, reversed, reversed_lg_image } from "./HeroBanner/HeroBanner.css.js";
86
86
  import { selection_headline_text, selection_section, selection_section_bg, selection_section_content, selection_section_icon, selection_section_icon_img } from "./HeroBanner/SelectionBanner.css.js";
87
87
  import { Hyperlink } from "./Hyperlink/index.js";
88
88
  import { Icon, IconBillboard } from "./IconBillboard/IconBillboard.js";
@@ -515,7 +515,6 @@ export {
515
515
  imagePlacement,
516
516
  image_background,
517
517
  img_area,
518
- img_contents,
519
518
  inline_container,
520
519
  input,
521
520
  insight_header,
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface OptimizeImageProps {
4
+ src: string;
5
+ alt?: string;
6
+ height?: number;
7
+ width?: number;
8
+ className?: string;
9
+ priority?: boolean;
10
+ fill?: boolean;
11
+ unoptimized?: boolean;
12
+ rootMargin?: string;
13
+ }
14
+ export declare const OptimizeImage: FC<OptimizeImageProps>;
@@ -0,0 +1,53 @@
1
+ "use client";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
+ import { useState, useEffect } from "react";
4
+ import css from "./optimizeImage.module.js";
5
+ import Image from "next/image.js";
6
+ const OptimizeImage = ({
7
+ src,
8
+ alt = "",
9
+ height,
10
+ width,
11
+ className,
12
+ priority = false,
13
+ fill = false,
14
+ unoptimized = true,
15
+ rootMargin = "550px"
16
+ }) => {
17
+ const [isVisible, setIsVisible] = useState(priority);
18
+ useEffect(() => {
19
+ if (priority) return;
20
+ const observer = new IntersectionObserver(
21
+ ([entry]) => {
22
+ if (entry.isIntersecting) {
23
+ setIsVisible(true);
24
+ observer.disconnect();
25
+ }
26
+ },
27
+ { rootMargin }
28
+ );
29
+ const imgElement = document.getElementById(src);
30
+ if (imgElement) observer.observe(imgElement);
31
+ return () => observer.disconnect();
32
+ }, [src, priority, rootMargin]);
33
+ return isVisible ? /* @__PURE__ */ jsxs("picture", { children: [
34
+ /* @__PURE__ */ jsx("source", { srcSet: `https:${src}?fm=avif`, type: "image/avif" }),
35
+ /* @__PURE__ */ jsx("source", { srcSet: `https:${src}?fm=webp`, type: "image/webp" }),
36
+ /* @__PURE__ */ jsx(
37
+ Image,
38
+ {
39
+ src: `https:${src}`,
40
+ alt,
41
+ className,
42
+ width: fill ? void 0 : width,
43
+ height: fill ? void 0 : height,
44
+ fill,
45
+ priority,
46
+ unoptimized
47
+ }
48
+ )
49
+ ] }) : /* @__PURE__ */ jsx("div", { className: css.loader, children: /* @__PURE__ */ jsx("div", { id: src, className: css.loading, style: { width, height } }) });
50
+ };
51
+ export {
52
+ OptimizeImage
53
+ };
@@ -0,0 +1 @@
1
+ export * from './OptimizeImage';
@@ -0,0 +1,4 @@
1
+ import { OptimizeImage } from "./OptimizeImage.js";
2
+ export {
3
+ OptimizeImage
4
+ };
@@ -0,0 +1,14 @@
1
+ import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "_loader_1vfu4_19";
2
+ const loading = "_loading_1vfu4_33";
3
+ const shimmer = "_shimmer_1vfu4_1";
4
+ const css = {
5
+ loader,
6
+ loading,
7
+ shimmer
8
+ };
9
+ export {
10
+ css as default,
11
+ loader,
12
+ loading,
13
+ shimmer
14
+ };
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.9",
4
+ "version": "1.0.11",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -1,9 +0,0 @@
1
- export interface UseLazyImageProps {
2
- src: string;
3
- rootMargin?: string;
4
- threshold?: number | number[];
5
- }
6
- export declare const useLazyImage: ({ src, rootMargin, threshold, }: UseLazyImageProps) => {
7
- imageSrc: string;
8
- imgRef: import('react').MutableRefObject<HTMLImageElement | null>;
9
- };
@@ -1,29 +0,0 @@
1
- "use client";
2
- import { useState, useRef, useEffect } from "react";
3
- const useLazyImage = ({
4
- src,
5
- rootMargin = "200px",
6
- threshold = 0
7
- }) => {
8
- const [imageSrc, setImageSrc] = useState("");
9
- const imgRef = useRef(null);
10
- useEffect(() => {
11
- const imgElement = imgRef.current;
12
- if (!imgElement) return;
13
- const observer = new IntersectionObserver(
14
- ([entry]) => {
15
- if (entry.isIntersecting) {
16
- setImageSrc(src);
17
- observer.disconnect();
18
- }
19
- },
20
- { rootMargin, threshold }
21
- );
22
- observer.observe(imgElement);
23
- return () => observer.disconnect();
24
- }, [src, rootMargin, threshold]);
25
- return { imageSrc, imgRef };
26
- };
27
- export {
28
- useLazyImage
29
- };
@@ -1,2 +0,0 @@
1
- export * from './imageObserver';
2
- export * from './lazyImage';
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { useLazyImage } from "./imageObserver.js";
3
- import { LazyImage } from "./lazyImage.js";
4
- export {
5
- LazyImage,
6
- useLazyImage
7
- };
@@ -1,10 +0,0 @@
1
- import { FC } from 'react';
2
-
3
- export interface LazyImageProps {
4
- src: string;
5
- alt?: string;
6
- height?: string | number;
7
- width?: string | number;
8
- className?: string;
9
- }
10
- export declare const LazyImage: FC<LazyImageProps>;
@@ -1,26 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useLazyImage } from "./imageObserver.js";
4
- const LazyImage = ({
5
- src,
6
- alt = "",
7
- height,
8
- width,
9
- className
10
- }) => {
11
- const { imageSrc, imgRef } = useLazyImage({ src });
12
- return /* @__PURE__ */ jsx(
13
- "img",
14
- {
15
- ref: imgRef,
16
- src: imageSrc,
17
- alt,
18
- className,
19
- height,
20
- width
21
- }
22
- );
23
- };
24
- export {
25
- LazyImage
26
- };