@axos-web-dev/shared-components 1.0.13 → 1.0.14

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 (54) hide show
  1. package/dist/ATMLocator/ATMLocator.js +1 -1
  2. package/dist/Article/Article.js +1 -8
  3. package/dist/Button/Button.js +1 -1
  4. package/dist/Calculators/Calculator.js +1 -1
  5. package/dist/CallToActionBar/index.js +3 -1
  6. package/dist/Carousel/index.js +1 -1
  7. package/dist/Chevron/index.js +1 -1
  8. package/dist/Comparison/Comparison.js +1 -1
  9. package/dist/ExecutiveBio/ExecutiveBio.js +2 -9
  10. package/dist/FaqAccordion/index.js +1 -1
  11. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
  12. package/dist/Forms/ApplyNow.js +1 -1
  13. package/dist/Forms/ContactUsBusiness.js +1 -1
  14. package/dist/Forms/ContactUsNMLSId.js +1 -1
  15. package/dist/Forms/CraPublicFile.js +1 -1
  16. package/dist/Forms/EmailOnly.js +1 -1
  17. package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
  18. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -1
  19. package/dist/Forms/SuccesForm.js +1 -1
  20. package/dist/HeroBanner/HeroBanner.css.d.ts +1 -0
  21. package/dist/HeroBanner/HeroBanner.css.js +6 -4
  22. package/dist/HeroBanner/HeroBanner.js +57 -26
  23. package/dist/HeroBanner/index.js +2 -1
  24. package/dist/Hyperlink/index.js +1 -1
  25. package/dist/ImageBillboard/ImageBillboardSet.js +1 -8
  26. package/dist/ImageLink/ImageLink.js +1 -1
  27. package/dist/ImageLink/ImageLinkSet.js +1 -1
  28. package/dist/ImageLink/index.js +1 -1
  29. package/dist/Insight/Featured/CategorySelector.js +1 -1
  30. package/dist/Insight/Featured/Featured.js +1 -1
  31. package/dist/Insight/Featured/Header.js +1 -1
  32. package/dist/Modal/Modal.js +1 -1
  33. package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
  34. package/dist/NavigationMenu/AxosALTS/NavData.js +1 -1
  35. package/dist/NavigationMenu/AxosALTS/index.js +1 -1
  36. package/dist/NavigationMenu/AxosBank/NavBar.module.js +53 -53
  37. package/dist/NavigationMenu/AxosBank/NavData.js +1 -1
  38. package/dist/NavigationMenu/AxosBank/SubNavBar.js +3 -2
  39. package/dist/NavigationMenu/AxosBank/index.js +2 -5
  40. package/dist/NavigationMenu/LaVictoire/NavData.js +1 -1
  41. package/dist/NavigationMenu/LaVictoire/index.js +1 -1
  42. package/dist/SetContainer/SetContainer.js +1 -1
  43. package/dist/SocialMediaBar/iconsRepository.js +1 -1
  44. package/dist/StepItemSet/StepItemSet.js +1 -1
  45. package/dist/VideoWrapper/index.js +1 -1
  46. package/dist/assets/HeroBanner/HeroBanner.css +22 -22
  47. package/dist/assets/NavigationMenu/AxosALTS/NavBar.css.css +264 -264
  48. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +675 -675
  49. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +48 -48
  50. package/dist/main.js +2 -1
  51. package/dist/utils/optimizeImage/OptimizeImage.d.ts +0 -3
  52. package/dist/utils/optimizeImage/OptimizeImage.js +14 -21
  53. package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
  54. package/package.json +130 -130
@@ -1,48 +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
- }
1
+ @keyframes _shimmer_ib32l_1 {
2
+ from {
3
+ transform: translateX(-100%);
4
+ }
5
+ to {
6
+ transform: translateX(100%);
7
+ }
8
+ }
9
+
10
+ ._loader_ib32l_10 {
11
+ position: absolute;
12
+ height: 100%;
13
+ width: 100%;
14
+ inset: 0;
15
+ }
16
+
17
+ ._loading_ib32l_17 {
18
+ position: relative;
19
+ width: 100%;
20
+ height: 100%;
21
+ overflow: hidden;
22
+ background: #1e3860;
23
+ }
24
+
25
+ ._1es6o1h0 ._loading_ib32l_17 {
26
+ background-color: #1e262f;
27
+ }
28
+
29
+ .fl2fv50 ._loading_ib32l_17 {
30
+ background-color: #28587d;
31
+ }
32
+
33
+ ._loading_ib32l_17::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_ib32l_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, 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, img_contents, 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,6 +515,7 @@ export {
515
515
  imagePlacement,
516
516
  image_background,
517
517
  img_area,
518
+ img_contents,
518
519
  inline_container,
519
520
  input,
520
521
  insight_header,
@@ -6,9 +6,6 @@ export interface OptimizeImageProps {
6
6
  height?: number;
7
7
  width?: number;
8
8
  className?: string;
9
- priority?: boolean;
10
- fill?: boolean;
11
- unoptimized?: boolean;
12
9
  rootMargin?: string;
13
10
  }
14
11
  export declare const OptimizeImage: FC<OptimizeImageProps>;
@@ -1,22 +1,19 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from "react/jsx-runtime";
3
- import { useState, useEffect } from "react";
3
+ import { useRef, useState, useEffect } from "react";
4
4
  import css from "./optimizeImage.module.js";
5
- import Image from "next/image.js";
6
5
  const OptimizeImage = ({
7
6
  src,
8
7
  alt = "",
9
8
  height,
10
9
  width,
11
10
  className,
12
- priority = false,
13
- fill = false,
14
- unoptimized = true,
15
- rootMargin = "550px"
11
+ rootMargin = "500px"
16
12
  }) => {
17
- const [isVisible, setIsVisible] = useState(priority);
13
+ const imgRef = useRef(null);
14
+ const [isVisible, setIsVisible] = useState(false);
18
15
  useEffect(() => {
19
- if (priority) return;
16
+ if (!imgRef.current) return;
20
17
  const observer = new IntersectionObserver(
21
18
  ([entry]) => {
22
19
  if (entry.isIntersecting) {
@@ -26,27 +23,23 @@ const OptimizeImage = ({
26
23
  },
27
24
  { rootMargin }
28
25
  );
29
- const imgElement = document.getElementById(src);
30
- if (imgElement) observer.observe(imgElement);
26
+ observer.observe(imgRef.current);
31
27
  return () => observer.disconnect();
32
- }, [src, priority, rootMargin]);
28
+ }, [rootMargin]);
33
29
  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" }),
30
+ /* @__PURE__ */ jsx("source", { srcSet: `${src}?fm=avif`, type: "image/avif" }),
31
+ /* @__PURE__ */ jsx("source", { srcSet: `${src}?fm=webp`, type: "image/webp" }),
36
32
  /* @__PURE__ */ jsx(
37
- Image,
33
+ "img",
38
34
  {
39
- src: `https:${src}`,
35
+ src,
40
36
  alt,
41
37
  className,
42
- width: fill ? void 0 : width,
43
- height: fill ? void 0 : height,
44
- fill,
45
- priority,
46
- unoptimized
38
+ width,
39
+ height
47
40
  }
48
41
  )
49
- ] }) : /* @__PURE__ */ jsx("div", { className: css.loader, children: /* @__PURE__ */ jsx("div", { id: src, className: css.loading, style: { width, height } }) });
42
+ ] }) : /* @__PURE__ */ jsx("div", { className: css.loader, children: /* @__PURE__ */ jsx("div", { ref: imgRef, className: css.loading, style: { width, height } }) });
50
43
  };
51
44
  export {
52
45
  OptimizeImage
@@ -1,6 +1,6 @@
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";
1
+ import '../../assets/utils/optimizeImage/optimizeImage.css.css';const loader = "_loader_ib32l_10";
2
+ const loading = "_loading_ib32l_17";
3
+ const shimmer = "_shimmer_ib32l_1";
4
4
  const css = {
5
5
  loader,
6
6
  loading,
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "1.0.13",
5
- "type": "module",
6
- "module": "dist/main.js",
7
- "types": "dist/main.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "dist/assets/**/*.css"
13
- ],
14
- "scripts": {
15
- "dev": "vite",
16
- "build": "tsc --p ./tsconfig.build.json && vite build",
17
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
- "preview": "vite preview",
19
- "prepublishOnly": "npm run build",
20
- "check-types": "tsc --pretty --noEmit",
21
- "check-format": "prettier --check .",
22
- "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
- "format": "prettier --write .",
24
- "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
- "prepare": "husky",
26
- "storybook": "storybook dev -p 6006",
27
- "build-storybook": "storybook build",
28
- "npm:link": "npm run build && npm link"
29
- },
30
- "dependencies": {
31
- "@headlessui/react": "^2.2.0",
32
- "@hookform/resolvers": "^3.9.1",
33
- "@react-input/mask": "^1.2.15",
34
- "@react-input/number-format": "^1.1.3",
35
- "@storybook/icons": "^1.3.0",
36
- "@storybook/preview-api": "^8.4.7",
37
- "@types/iframe-resizer": "3.5.13",
38
- "@vanilla-extract/css": "^1.16.1",
39
- "@vanilla-extract/recipes": "^0.5.1",
40
- "antd": "^5.22.5",
41
- "clsx": "^2.1.1",
42
- "iframe-resizer": "^3.6.6",
43
- "lodash": "^4.17.21",
44
- "moment": "^2.30.1",
45
- "react-date-picker": "^11.0.0",
46
- "react-date-range": "^2.0.1",
47
- "react-hook-form": "^7.54.2",
48
- "react-markdown": "^9.0.1",
49
- "react-popper": "^2.3.0",
50
- "react-slick": "^0.30.2",
51
- "react-use": "^17.6.0",
52
- "react-wrap-balancer": "^1.1.1",
53
- "rsuite": "^5.75.0",
54
- "slick-carousel": "^1.8.1",
55
- "typed-css-modules": "^0.9.1",
56
- "vite-plugin-svgr": "^4.3.0",
57
- "zod": "^3.24.1",
58
- "zustand": "^4.5.5"
59
- },
60
- "peerDependencies": {
61
- "@vanilla-extract/css-utils": "^0.1.3",
62
- "@vanilla-extract/recipes": "^0.5.1",
63
- "@vanilla-extract/vite-plugin": "^4.0.3",
64
- "next": "^14.1.4",
65
- "react": "^18.2.0",
66
- "react-date-range": "^2.0.1",
67
- "react-dom": "^18.2.0",
68
- "react-popper": "^2.3.0",
69
- "react-slick": "^0.30.2",
70
- "slick-carousel": "^1.8.1"
71
- },
72
- "devDependencies": {
73
- "@chromatic-com/storybook": "^1.9.0",
74
- "@rollup/plugin-alias": "^5.1.1",
75
- "@storybook/addon-essentials": "^8.4.7",
76
- "@storybook/addon-interactions": "^8.4.7",
77
- "@storybook/addon-links": "^8.4.7",
78
- "@storybook/addon-mdx-gfm": "^8.4.7",
79
- "@storybook/addon-onboarding": "^8.4.7",
80
- "@storybook/addon-themes": "^8.4.7",
81
- "@storybook/blocks": "^8.4.7",
82
- "@storybook/react": "^8.4.7",
83
- "@storybook/react-vite": "^8.4.7",
84
- "@storybook/test": "^8.4.7",
85
- "@svgr/core": "^8.1.0",
86
- "@svgr/plugin-prettier": "^8.1.0",
87
- "@svgr/plugin-svgo": "^8.1.0",
88
- "@types/lodash": "^4.17.13",
89
- "@types/node": "^20.17.10",
90
- "@types/react": "^18.3.18",
91
- "@types/react-date-range": "^1.4.9",
92
- "@types/react-datepicker": "^6.2.0",
93
- "@types/react-dom": "^18.3.5",
94
- "@types/react-slick": "^0.23.13",
95
- "@typescript-eslint/eslint-plugin": "^7.18.0",
96
- "@typescript-eslint/parser": "^7.18.0",
97
- "@vanilla-extract/css-utils": "^0.1.4",
98
- "@vanilla-extract/recipes": "^0.5.5",
99
- "@vanilla-extract/vite-plugin": "^4.0.18",
100
- "@vitejs/plugin-react-swc": "^3.7.2",
101
- "esbuild-vanilla-image-loader": "^0.1.3",
102
- "eslint": "^8.57.1",
103
- "eslint-plugin-react-hooks": "^4.6.2",
104
- "eslint-plugin-react-refresh": "^0.4.16",
105
- "eslint-plugin-storybook": "^0.8.0",
106
- "glob": "^10.4.5",
107
- "husky": "^9.1.7",
108
- "next": "^14.1.4",
109
- "prettier": "3.2.5",
110
- "react": "^18.3.1",
111
- "react-dom": "^18.3.1",
112
- "rollup-plugin-preserve-directives": "^0.4.0",
113
- "rollup-plugin-svg-import": "^3.0.0",
114
- "rollup-plugin-svgo": "^2.0.0",
115
- "storybook": "^8.4.7",
116
- "typescript": "^5.7.2",
117
- "typescript-plugin-css-modules": "^5.1.0",
118
- "vite": "^5.4.11",
119
- "vite-plugin-dts": "^3.9.1",
120
- "vite-plugin-lib-inject-css": "^2.1.1",
121
- "vite-plugin-setting-css-module": "^1.1.4",
122
- "vite-tsconfig-paths": "^4.3.2"
123
- },
124
- "main": "index.js",
125
- "directories": {
126
- "lib": "lib"
127
- },
128
- "author": "axos-web-dev",
129
- "license": "ISC"
130
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "1.0.14",
5
+ "type": "module",
6
+ "module": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "dist/assets/**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "tsc --p ./tsconfig.build.json && vite build",
17
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
+ "preview": "vite preview",
19
+ "prepublishOnly": "npm run build",
20
+ "check-types": "tsc --pretty --noEmit",
21
+ "check-format": "prettier --check .",
22
+ "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
+ "format": "prettier --write .",
24
+ "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
+ "prepare": "husky",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build",
28
+ "npm:link": "npm run build && npm link"
29
+ },
30
+ "dependencies": {
31
+ "@headlessui/react": "^2.2.0",
32
+ "@hookform/resolvers": "^3.9.1",
33
+ "@react-input/mask": "^1.2.15",
34
+ "@react-input/number-format": "^1.1.3",
35
+ "@storybook/icons": "^1.3.0",
36
+ "@storybook/preview-api": "^8.4.7",
37
+ "@types/iframe-resizer": "3.5.13",
38
+ "@vanilla-extract/css": "^1.16.1",
39
+ "@vanilla-extract/recipes": "^0.5.1",
40
+ "antd": "^5.22.5",
41
+ "clsx": "^2.1.1",
42
+ "iframe-resizer": "^3.6.6",
43
+ "lodash": "^4.17.21",
44
+ "moment": "^2.30.1",
45
+ "react-date-picker": "^11.0.0",
46
+ "react-date-range": "^2.0.1",
47
+ "react-hook-form": "^7.54.2",
48
+ "react-markdown": "^9.0.1",
49
+ "react-popper": "^2.3.0",
50
+ "react-slick": "^0.30.2",
51
+ "react-use": "^17.6.0",
52
+ "react-wrap-balancer": "^1.1.1",
53
+ "rsuite": "^5.75.0",
54
+ "slick-carousel": "^1.8.1",
55
+ "typed-css-modules": "^0.9.1",
56
+ "vite-plugin-svgr": "^4.3.0",
57
+ "zod": "^3.24.1",
58
+ "zustand": "^4.5.5"
59
+ },
60
+ "peerDependencies": {
61
+ "@vanilla-extract/css-utils": "^0.1.3",
62
+ "@vanilla-extract/recipes": "^0.5.1",
63
+ "@vanilla-extract/vite-plugin": "^4.0.3",
64
+ "next": "^14.1.4",
65
+ "react": "^18.2.0",
66
+ "react-date-range": "^2.0.1",
67
+ "react-dom": "^18.2.0",
68
+ "react-popper": "^2.3.0",
69
+ "react-slick": "^0.30.2",
70
+ "slick-carousel": "^1.8.1"
71
+ },
72
+ "devDependencies": {
73
+ "@chromatic-com/storybook": "^1.9.0",
74
+ "@rollup/plugin-alias": "^5.1.1",
75
+ "@storybook/addon-essentials": "^8.4.7",
76
+ "@storybook/addon-interactions": "^8.4.7",
77
+ "@storybook/addon-links": "^8.4.7",
78
+ "@storybook/addon-mdx-gfm": "^8.4.7",
79
+ "@storybook/addon-onboarding": "^8.4.7",
80
+ "@storybook/addon-themes": "^8.4.7",
81
+ "@storybook/blocks": "^8.4.7",
82
+ "@storybook/react": "^8.4.7",
83
+ "@storybook/react-vite": "^8.4.7",
84
+ "@storybook/test": "^8.4.7",
85
+ "@svgr/core": "^8.1.0",
86
+ "@svgr/plugin-prettier": "^8.1.0",
87
+ "@svgr/plugin-svgo": "^8.1.0",
88
+ "@types/lodash": "^4.17.13",
89
+ "@types/node": "^20.17.10",
90
+ "@types/react": "^18.3.18",
91
+ "@types/react-date-range": "^1.4.9",
92
+ "@types/react-datepicker": "^6.2.0",
93
+ "@types/react-dom": "^18.3.5",
94
+ "@types/react-slick": "^0.23.13",
95
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
96
+ "@typescript-eslint/parser": "^7.18.0",
97
+ "@vanilla-extract/css-utils": "^0.1.4",
98
+ "@vanilla-extract/recipes": "^0.5.5",
99
+ "@vanilla-extract/vite-plugin": "^4.0.18",
100
+ "@vitejs/plugin-react-swc": "^3.7.2",
101
+ "esbuild-vanilla-image-loader": "^0.1.3",
102
+ "eslint": "^8.57.1",
103
+ "eslint-plugin-react-hooks": "^4.6.2",
104
+ "eslint-plugin-react-refresh": "^0.4.16",
105
+ "eslint-plugin-storybook": "^0.8.0",
106
+ "glob": "^10.4.5",
107
+ "husky": "^9.1.7",
108
+ "next": "^14.1.4",
109
+ "prettier": "3.2.5",
110
+ "react": "^18.3.1",
111
+ "react-dom": "^18.3.1",
112
+ "rollup-plugin-preserve-directives": "^0.4.0",
113
+ "rollup-plugin-svg-import": "^3.0.0",
114
+ "rollup-plugin-svgo": "^2.0.0",
115
+ "storybook": "^8.4.7",
116
+ "typescript": "^5.7.2",
117
+ "typescript-plugin-css-modules": "^5.1.0",
118
+ "vite": "^5.4.11",
119
+ "vite-plugin-dts": "^3.9.1",
120
+ "vite-plugin-lib-inject-css": "^2.1.1",
121
+ "vite-plugin-setting-css-module": "^1.1.4",
122
+ "vite-tsconfig-paths": "^4.3.2"
123
+ },
124
+ "main": "index.js",
125
+ "directories": {
126
+ "lib": "lib"
127
+ },
128
+ "author": "axos-web-dev",
129
+ "license": "ISC"
130
+ }