@axos-web-dev/shared-components 1.0.8 → 1.0.9-9.dev.1

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 (242) hide show
  1. package/dist/ATMLocator/ATMLocator.js +42 -32
  2. package/dist/Accordion/Accordion.css.d.ts +1 -1
  3. package/dist/Article/Article.css.d.ts +41 -41
  4. package/dist/Article/Article.js +3 -13
  5. package/dist/ArticlesSet/ArticlesSet.css.d.ts +16 -16
  6. package/dist/Auth/ErrorAlert.css.d.ts +4 -0
  7. package/dist/Auth/ErrorAlert.css.js +11 -0
  8. package/dist/Auth/ErrorAlert.d.ts +14 -0
  9. package/dist/Auth/ErrorAlert.js +184 -0
  10. package/dist/Auth/Logout.d.ts +3 -0
  11. package/dist/Auth/Logout.js +29 -0
  12. package/dist/Auth/SignIn.css.d.ts +6 -0
  13. package/dist/Auth/SignIn.css.js +18 -0
  14. package/dist/Auth/SignInPassword.d.ts +15 -0
  15. package/dist/Auth/SignInPassword.js +118 -0
  16. package/dist/Auth/index.d.ts +5 -0
  17. package/dist/Auth/index.js +20 -0
  18. package/dist/Button/Button.css.d.ts +31 -18
  19. package/dist/Button/Button.css.js +1 -1
  20. package/dist/Button/Button.js +14 -4
  21. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
  22. package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +14 -14
  23. package/dist/Calculators/ApyCalculator/index.js +20 -12
  24. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +8 -8
  25. package/dist/Calculators/AxosOneCalculator/index.js +18 -10
  26. package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +22 -22
  27. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +101 -0
  28. package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +56 -0
  29. package/dist/Calculators/BuyDownCalculator/index.d.ts +25 -0
  30. package/dist/Calculators/BuyDownCalculator/index.js +855 -0
  31. package/dist/Calculators/Calculator.js +29 -10
  32. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
  33. package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
  34. package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
  35. package/dist/Calculators/calculator.css.d.ts +12 -12
  36. package/dist/Calculators/index.d.ts +1 -0
  37. package/dist/Calculators/index.js +2 -0
  38. package/dist/CallToActionBar/index.js +3 -1
  39. package/dist/Carousel/Carousel.css.d.ts +20 -20
  40. package/dist/Carousel/index.js +23 -13
  41. package/dist/Chevron/Chevron.css.d.ts +6 -6
  42. package/dist/Chevron/index.js +14 -4
  43. package/dist/Comparison/Comparison.css.d.ts +11 -10
  44. package/dist/Comparison/Comparison.css.js +3 -1
  45. package/dist/Comparison/Comparison.js +23 -13
  46. package/dist/Comparison/index.js +2 -1
  47. package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
  48. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +31 -31
  49. package/dist/ExecutiveBio/ExecutiveBio.js +16 -22
  50. package/dist/FaqAccordion/index.js +16 -6
  51. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +14 -4
  52. package/dist/Forms/ApplicationStart.js +21 -4
  53. package/dist/Forms/ApplyNow.js +14 -4
  54. package/dist/Forms/ClearingForm.js +19 -2
  55. package/dist/Forms/CommercialDeposits.js +19 -2
  56. package/dist/Forms/CommercialLending.js +20 -3
  57. package/dist/Forms/CommercialPremiumFinance.d.ts +10 -0
  58. package/dist/Forms/CommercialPremiumFinance.js +212 -0
  59. package/dist/Forms/ContactCompany.js +20 -3
  60. package/dist/Forms/ContactCompanyTitle.js +20 -3
  61. package/dist/Forms/ContactUs.d.ts +1 -1
  62. package/dist/Forms/ContactUs.js +107 -79
  63. package/dist/Forms/ContactUsAAS.js +20 -5
  64. package/dist/Forms/ContactUsBusiness.d.ts +2 -2
  65. package/dist/Forms/ContactUsBusiness.js +45 -19
  66. package/dist/Forms/ContactUsBusinessNameEmail.d.ts +9 -0
  67. package/dist/Forms/ContactUsBusinessNameEmail.js +282 -0
  68. package/dist/Forms/ContactUsLVF.js +20 -3
  69. package/dist/Forms/ContactUsNMLSId.js +35 -9
  70. package/dist/Forms/CpraRequest.d.ts +1 -1
  71. package/dist/Forms/CpraRequest.js +75 -63
  72. package/dist/Forms/CraPublicFile.d.ts +5 -5
  73. package/dist/Forms/CraPublicFile.js +69 -45
  74. package/dist/Forms/DealerServices.js +20 -4
  75. package/dist/Forms/EmailOnly.js +45 -28
  76. package/dist/Forms/EmailUs.js +12 -2
  77. package/dist/Forms/FormEnums.d.ts +21 -0
  78. package/dist/Forms/FormEnums.js +308 -0
  79. package/dist/Forms/FormProps.d.ts +3 -0
  80. package/dist/Forms/Forms.css.d.ts +42 -42
  81. package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
  82. package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
  83. package/dist/Forms/HoneyPot/index.d.ts +24 -0
  84. package/dist/Forms/HoneyPot/index.js +71 -0
  85. package/dist/Forms/MortgageRate/MortgageRateForm.js +17 -7
  86. package/dist/Forms/MortgageRate/MortgageRateWatch.js +16 -6
  87. package/dist/Forms/QuickPricer/QuickPricerForm.js +19 -20
  88. package/dist/Forms/ScheduleCall.js +20 -3
  89. package/dist/Forms/ScheduleCallPremier.js +20 -3
  90. package/dist/Forms/SuccesForm.js +31 -21
  91. package/dist/Forms/VendorQuestionnaire.js +12 -2
  92. package/dist/Forms/WcplSurvey.js +20 -3
  93. package/dist/Forms/index.d.ts +3 -0
  94. package/dist/Forms/index.js +8 -0
  95. package/dist/HelpArticle/HelpArticle.css.d.ts +4 -0
  96. package/dist/HelpArticle/HelpArticle.css.js +12 -0
  97. package/dist/HelpArticle/index.d.ts +1 -0
  98. package/dist/HelpArticle/index.js +7 -0
  99. package/dist/HeroBanner/HeroBanner.css.d.ts +19 -17
  100. package/dist/HeroBanner/HeroBanner.css.js +9 -5
  101. package/dist/HeroBanner/HeroBanner.d.ts +1 -1
  102. package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
  103. package/dist/HeroBanner/HeroBanner.js +47 -1
  104. package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
  105. package/dist/HeroBanner/SelectionBanner.css.d.ts +8 -8
  106. package/dist/HeroBanner/index.js +3 -1
  107. package/dist/Hyperlink/index.js +17 -7
  108. package/dist/IconBillboard/IconBillboard.css.d.ts +26 -25
  109. package/dist/IconBillboard/IconBillboard.css.js +5 -3
  110. package/dist/IconBillboard/IconBillboard.d.ts +1 -2
  111. package/dist/IconBillboard/IconBillboard.interface.d.ts +1 -0
  112. package/dist/IconBillboard/IconBillboard.js +46 -80
  113. package/dist/IconBillboard/IconBillboardSet.js +1 -1
  114. package/dist/IconBillboard/index.js +3 -3
  115. package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
  116. package/dist/IconBillboard/sections/CallToActionSection.js +101 -0
  117. package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
  118. package/dist/IconBillboard/sections/HeaderSection.js +23 -0
  119. package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
  120. package/dist/IconBillboard/sections/IconSection.js +18 -0
  121. package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
  122. package/dist/IconBillboard/sections/ItemsSection.js +11 -0
  123. package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
  124. package/dist/IconBillboard/sections/LayoutSection.js +6 -0
  125. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +9 -0
  126. package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.js +85 -0
  127. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.d.ts +5 -0
  128. package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +90 -0
  129. package/dist/ImageBillboard/ImageBillboard.css.d.ts +36 -20
  130. package/dist/ImageBillboard/ImageBillboard.css.js +50 -18
  131. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +20 -2
  132. package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
  133. package/dist/ImageBillboard/ImageBillboardSet.js +104 -28
  134. package/dist/ImageBillboard/index.js +17 -1
  135. package/dist/ImageLink/ImageLink.d.ts +2 -2
  136. package/dist/ImageLink/ImageLink.js +17 -13
  137. package/dist/ImageLink/ImageLinkSet.js +20 -10
  138. package/dist/ImageLink/index.js +17 -7
  139. package/dist/Input/Checkbox.js +2 -1
  140. package/dist/Input/Input.css.d.ts +16 -16
  141. package/dist/Input/Input.js +4 -1
  142. package/dist/Input/PercentageInput.d.ts +3 -0
  143. package/dist/Input/PercentageInput.js +32 -0
  144. package/dist/Input/RadioButton.js +12 -3
  145. package/dist/Inputs/Input.css.d.ts +14 -14
  146. package/dist/Insight/Featured/CategorySelector.js +28 -20
  147. package/dist/Insight/Featured/Featured.js +75 -58
  148. package/dist/Insight/Featured/Header.js +22 -12
  149. package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
  150. package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
  151. package/dist/Modal/Modal.js +15 -5
  152. package/dist/NavigationMenu/AxosALTS/NavData.js +14 -4
  153. package/dist/NavigationMenu/AxosALTS/index.js +14 -4
  154. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
  155. package/dist/NavigationMenu/AxosAdvisor/index.js +3 -11
  156. package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +0 -5
  157. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +2 -0
  158. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +345 -0
  159. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +53 -0
  160. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +272 -0
  161. package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +664 -0
  162. package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -81
  163. package/dist/NavigationMenu/AxosBank/NavData.js +14 -4
  164. package/dist/NavigationMenu/AxosBank/SubNavBar.js +432 -108
  165. package/dist/NavigationMenu/AxosBank/index.d.ts +2 -1
  166. package/dist/NavigationMenu/AxosBank/index.js +104 -533
  167. package/dist/NavigationMenu/LaVictoire/NavData.js +14 -4
  168. package/dist/NavigationMenu/LaVictoire/index.js +40 -20
  169. package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
  170. package/dist/NavigationMenu/NavDataJson.js +309 -0
  171. package/dist/NavigationMenu/Navbar.d.ts +5 -0
  172. package/dist/NavigationMenu/Navbar.js +195 -0
  173. package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
  174. package/dist/NavigationMenu/SignInNavButton.js +363 -0
  175. package/dist/PageNavItem/PageNavItem.css.d.ts +2 -2
  176. package/dist/SetContainer/SetContainer.css.d.ts +17 -18
  177. package/dist/SetContainer/SetContainer.css.js +2 -4
  178. package/dist/SetContainer/SetContainer.d.ts +2 -1
  179. package/dist/SetContainer/SetContainer.js +27 -13
  180. package/dist/SetContainer/index.js +1 -2
  181. package/dist/SocialMediaBar/iconsRepository.js +14 -4
  182. package/dist/StepItem/StepItem.css.d.ts +18 -18
  183. package/dist/StepItemSet/StepItemSet.css.d.ts +14 -14
  184. package/dist/StepItemSet/StepItemSet.js +2 -6
  185. package/dist/Tab/Tab.css.d.ts +12 -12
  186. package/dist/Table/Table.css.d.ts +25 -25
  187. package/dist/Table/Table.d.ts +3 -3
  188. package/dist/Topic/Topic.css.d.ts +4 -0
  189. package/dist/Topic/Topic.css.js +12 -0
  190. package/dist/Topic/Topic.d.ts +19 -0
  191. package/dist/Topic/Topic.js +24 -0
  192. package/dist/Topic/index.d.ts +2 -0
  193. package/dist/Topic/index.js +12 -0
  194. package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
  195. package/dist/VideoTile/VideoTile.js +183 -28
  196. package/dist/VideoWrapper/index.js +15 -5
  197. package/dist/WalnutIframe/index.d.ts +6 -0
  198. package/dist/WalnutIframe/index.js +21 -0
  199. package/dist/WalnutIframe/wrapper.module.js +14 -0
  200. package/dist/assets/Auth/ErrorAlert.css +37 -0
  201. package/dist/assets/Auth/SignIn.css +86 -0
  202. package/dist/assets/Button/Button.css +31 -16
  203. package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +5 -0
  204. package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +197 -0
  205. package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +8 -0
  206. package/dist/assets/CallToActionBar/CallToActionBar.css +4 -0
  207. package/dist/assets/Comparison/Comparison.css +9 -2
  208. package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
  209. package/dist/assets/HelpArticle/HelpArticle.css +70 -0
  210. package/dist/assets/HeroBanner/HeroBanner.css +38 -26
  211. package/dist/assets/HeroBanner/LargeBanner.css +3 -0
  212. package/dist/assets/IconBillboard/IconBillboard.css +43 -36
  213. package/dist/assets/ImageBillboard/ImageBillboard.css +336 -36
  214. package/dist/assets/Insight/Insight.css +12 -0
  215. package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -0
  216. package/dist/assets/NavigationMenu/AxosBank/NavBar.css +6 -0
  217. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -661
  218. package/dist/assets/SetContainer/SetContainer.css +44 -22
  219. package/dist/assets/Topic/Topic.css +54 -0
  220. package/dist/assets/WalnutIframe/wrapper.css.css +49 -0
  221. package/dist/assets/globals.css +13 -30
  222. package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -0
  223. package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
  224. package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
  225. package/dist/icons/Logos/AXB.d.ts +8 -0
  226. package/dist/icons/Logos/AXB.js +74 -0
  227. package/dist/main.d.ts +5 -0
  228. package/dist/main.js +69 -8
  229. package/dist/themes/axos.css.d.ts +38 -38
  230. package/dist/utils/allowedAxosDomains.js +19 -3
  231. package/dist/utils/appendQueryParams.js +3 -6
  232. package/dist/utils/{lazyImage/lazyImage.d.ts → optimizeImage/OptimizeImage.d.ts} +3 -2
  233. package/dist/utils/optimizeImage/OptimizeImage.js +46 -0
  234. package/dist/utils/optimizeImage/index.d.ts +1 -0
  235. package/dist/utils/optimizeImage/index.js +4 -0
  236. package/dist/utils/optimizeImage/optimizeImage.module.js +14 -0
  237. package/package.json +11 -8
  238. package/dist/utils/lazyImage/imageObserver.d.ts +0 -9
  239. package/dist/utils/lazyImage/imageObserver.js +0 -29
  240. package/dist/utils/lazyImage/index.d.ts +0 -2
  241. package/dist/utils/lazyImage/index.js +0 -7
  242. package/dist/utils/lazyImage/lazyImage.js +0 -26
@@ -0,0 +1,345 @@
1
+ "use client";
2
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
3
+ import { useState, useRef, useEffect } from "react";
4
+ import { AnimatePresence, motion } from "framer-motion";
5
+ import { usePathname } from "next/navigation.js";
6
+ import Link from "next/link.js";
7
+ import { menuData, getQuickLinks } from "./MobileNavData.js";
8
+ import styles from "./MobileMenu.module.js";
9
+ const slideVariants = {
10
+ enter: (direction) => ({
11
+ x: direction === "forward" ? "100%" : "-100%",
12
+ opacity: 0,
13
+ position: "absolute"
14
+ }),
15
+ center: {
16
+ x: 0,
17
+ opacity: 1,
18
+ position: "relative",
19
+ transition: { duration: 0.3, ease: "easeInOut" }
20
+ },
21
+ exit: (direction) => ({
22
+ x: direction === "forward" ? "-100%" : "100%",
23
+ opacity: 0,
24
+ position: "absolute"
25
+ })
26
+ };
27
+ const MobileDrawerMenu = () => {
28
+ const pathname = usePathname();
29
+ const [queryString, setQueryString] = useState("");
30
+ const [open, setOpen] = useState(false);
31
+ const [stack, setStack] = useState([
32
+ { title: "Main Menu", items: menuData }
33
+ ]);
34
+ const [hasOpenedOnce, setHasOpenedOnce] = useState(false);
35
+ const [direction, setDirection] = useState("forward");
36
+ const [quickLinks, setQuickLinks] = useState([]);
37
+ const drawerRef = useRef(null);
38
+ const currentLevel = stack[stack.length - 1];
39
+ const prevLevel = stack[stack.length - 2];
40
+ useEffect(() => {
41
+ if (!pathname) return;
42
+ const pathnameParts = "/" + pathname.split("/")[1];
43
+ const links = getQuickLinks(pathnameParts);
44
+ setQuickLinks(links);
45
+ }, [pathname]);
46
+ useEffect(() => {
47
+ if (typeof window !== "undefined") {
48
+ const search = window.location.search;
49
+ if (search.startsWith("?")) {
50
+ setQueryString(search.slice(1));
51
+ }
52
+ }
53
+ }, []);
54
+ const handleClick = (key) => {
55
+ const item = currentLevel.items[key];
56
+ if (typeof item === "object") {
57
+ setDirection("forward");
58
+ setStack((prev) => [...prev, { title: key, items: item }]);
59
+ }
60
+ };
61
+ const handleBack = () => {
62
+ if (stack.length > 1) {
63
+ setDirection("backward");
64
+ setStack((prev) => prev.slice(0, -1));
65
+ }
66
+ };
67
+ const handleToggle = () => {
68
+ setOpen((prev) => {
69
+ const isOpening = !prev;
70
+ if (isOpening && !hasOpenedOnce) {
71
+ setHasOpenedOnce(true);
72
+ setStack([{ title: "Menu", items: menuData }]);
73
+ }
74
+ return isOpening;
75
+ });
76
+ };
77
+ const handleOutsideClick = (e) => {
78
+ if (drawerRef.current && !drawerRef.current.contains(e.target)) {
79
+ setOpen(false);
80
+ }
81
+ };
82
+ useEffect(() => {
83
+ if (open) {
84
+ document.addEventListener("mousedown", handleOutsideClick);
85
+ } else {
86
+ document.removeEventListener("mousedown", handleOutsideClick);
87
+ }
88
+ return () => document.removeEventListener("mousedown", handleOutsideClick);
89
+ }, [open]);
90
+ useEffect(() => {
91
+ const onEsc = (e) => {
92
+ if (e.key === "Escape") setOpen(false);
93
+ };
94
+ if (open) {
95
+ document.addEventListener("keydown", onEsc);
96
+ }
97
+ return () => document.removeEventListener("keydown", onEsc);
98
+ }, [open]);
99
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
100
+ /* @__PURE__ */ jsx(
101
+ "button",
102
+ {
103
+ onClick: handleToggle,
104
+ className: `${styles.hamburger} flex_col`,
105
+ "aria-label": "open navigation menu",
106
+ children: /* @__PURE__ */ jsx(
107
+ "svg",
108
+ {
109
+ width: 24,
110
+ height: 24,
111
+ viewBox: "0 0 24 24",
112
+ fill: "none",
113
+ xmlns: "http://www.w3.org/2000/svg",
114
+ "aria-hidden": "true",
115
+ children: /* @__PURE__ */ jsx(
116
+ "path",
117
+ {
118
+ fillRule: "evenodd",
119
+ clipRule: "evenodd",
120
+ d: "M22.5 15.75V17.25H1.5V15.75H22.5ZM22.5 11.25V12.75H1.5V11.25H22.5ZM22.5 6.75V8.25H1.5V6.75H22.5Z",
121
+ fill: "#4A5560"
122
+ }
123
+ )
124
+ }
125
+ )
126
+ }
127
+ ),
128
+ /* @__PURE__ */ jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsx(
129
+ motion.div,
130
+ {
131
+ className: styles.overlay,
132
+ initial: { opacity: 0 },
133
+ animate: { opacity: 1 },
134
+ exit: { opacity: 0 },
135
+ children: /* @__PURE__ */ jsxs(
136
+ motion.div,
137
+ {
138
+ className: `${styles.drawer} flex_col`,
139
+ ref: drawerRef,
140
+ initial: { x: "100%" },
141
+ animate: { x: 0 },
142
+ exit: { x: "100%" },
143
+ transition: { type: "tween", duration: 0.3 },
144
+ role: "dialog",
145
+ "aria-modal": "true",
146
+ "aria-labelledby": "menu-level",
147
+ "aria-describedby": "menu-description",
148
+ children: [
149
+ /* @__PURE__ */ jsx("p", { id: "menu-description", className: styles.sr_only, children: "Use tab to navigate this menu. Press Escape to close." }),
150
+ /* @__PURE__ */ jsxs("div", { className: styles.header, children: [
151
+ stack.length > 1 ? /* @__PURE__ */ jsxs(
152
+ "button",
153
+ {
154
+ onClick: handleBack,
155
+ className: styles.back,
156
+ "aria-label": "return to previous menu",
157
+ children: [
158
+ /* @__PURE__ */ jsx(
159
+ "svg",
160
+ {
161
+ width: 15,
162
+ height: 12,
163
+ viewBox: "0 0 20 12",
164
+ fill: "none",
165
+ xmlns: "http://www.w3.org/2000/svg",
166
+ style: { marginRight: 8, transform: "rotate(90deg)" },
167
+ children: /* @__PURE__ */ jsx(
168
+ "path",
169
+ {
170
+ d: "M0.46875 1.76574L9.99908 11.2961L19.5294 1.76574L18.4687 0.705078L9.99908 9.17491L1.52941 0.705078L0.46875 1.76574Z",
171
+ fill: "#2F5B88"
172
+ }
173
+ )
174
+ }
175
+ ),
176
+ /* @__PURE__ */ jsx("span", { className: styles.prevlevel, children: prevLevel.title })
177
+ ]
178
+ }
179
+ ) : /* @__PURE__ */ jsx(
180
+ "a",
181
+ {
182
+ href: window.location.href.split("/")[3] === "invest" ? "/invest" : "/",
183
+ "aria-label": "return to home page",
184
+ children: /* @__PURE__ */ jsx(
185
+ "img",
186
+ {
187
+ src: "https://www.axos.com/images/1sBwCIn5mqOg5DK2uXDJPc/axb_mobile_logo.png",
188
+ alt: "",
189
+ width: 86,
190
+ height: 19
191
+ }
192
+ )
193
+ }
194
+ ),
195
+ /* @__PURE__ */ jsx(
196
+ "button",
197
+ {
198
+ className: `${styles.close} flex_col`,
199
+ "aria-label": "close navigation menu",
200
+ onClick: handleToggle,
201
+ children: /* @__PURE__ */ jsx(
202
+ "svg",
203
+ {
204
+ xmlns: "http://www.w3.org/2000/svg",
205
+ width: "24",
206
+ height: "24",
207
+ viewBox: "0 0 24 24",
208
+ fill: "none",
209
+ "aria-hidden": "true",
210
+ children: /* @__PURE__ */ jsx(
211
+ "path",
212
+ {
213
+ d: "M20.2812 2.65625L21.3419 3.71691L13.0602 11.9982L21.3419 20.2812L20.2812 21.3419L11.9982 13.0602L3.71691 21.3419L2.65625 20.2812L10.9377 11.9982L2.65625 3.71691L3.71691 2.65625L11.9982 10.9377L20.2812 2.65625Z",
214
+ fill: "#4A5560"
215
+ }
216
+ )
217
+ }
218
+ )
219
+ }
220
+ )
221
+ ] }),
222
+ /* @__PURE__ */ jsx("div", { className: styles.levelContainer, children: /* @__PURE__ */ jsxs("div", { className: "bg_white", children: [
223
+ /* @__PURE__ */ jsxs(
224
+ "span",
225
+ {
226
+ className: `${styles.level} flex middle`,
227
+ "aria-label": "current menu level",
228
+ children: [
229
+ /* @__PURE__ */ jsx("h2", { className: styles.levelTitle, id: "menu-level", children: currentLevel.title }),
230
+ /* @__PURE__ */ jsx(
231
+ "svg",
232
+ {
233
+ width: 15,
234
+ height: 12,
235
+ viewBox: "0 0 20 12",
236
+ fill: "none",
237
+ xmlns: "http://www.w3.org/2000/svg",
238
+ style: { marginLeft: 12 },
239
+ children: /* @__PURE__ */ jsx(
240
+ "path",
241
+ {
242
+ d: "M0.46875 1.76574L9.99908 11.2961L19.5294 1.76574L18.4687 0.705078L9.99908 9.17491L1.52941 0.705078L0.46875 1.76574Z",
243
+ fill: "white"
244
+ }
245
+ )
246
+ }
247
+ )
248
+ ]
249
+ }
250
+ ),
251
+ /* @__PURE__ */ jsx("nav", { "aria-label": "main navigation menu", children: /* @__PURE__ */ jsx(
252
+ AnimatePresence,
253
+ {
254
+ custom: direction,
255
+ mode: "sync",
256
+ initial: false,
257
+ children: /* @__PURE__ */ jsx(
258
+ motion.ul,
259
+ {
260
+ className: styles.menu,
261
+ custom: direction,
262
+ variants: slideVariants,
263
+ initial: "enter",
264
+ animate: "center",
265
+ exit: "exit",
266
+ transition: { duration: 0.3, ease: "linear" },
267
+ children: Object.entries(currentLevel.items).map(
268
+ ([key, value]) => {
269
+ const hasChildren = typeof value === "object";
270
+ return /* @__PURE__ */ jsx("li", { children: hasChildren ? /* @__PURE__ */ jsxs(
271
+ "button",
272
+ {
273
+ className: styles.menuItem,
274
+ onClick: () => handleClick(key),
275
+ "aria-label": `open submenu for ${key}`,
276
+ children: [
277
+ /* @__PURE__ */ jsx("span", { children: key }),
278
+ /* @__PURE__ */ jsx("span", { className: styles.chevron, children: /* @__PURE__ */ jsx(
279
+ "svg",
280
+ {
281
+ className: styles.chevronIcon,
282
+ width: 12,
283
+ height: 20,
284
+ viewBox: "0 0 12 20",
285
+ fill: "none",
286
+ xmlns: "http://www.w3.org/2000/svg",
287
+ children: /* @__PURE__ */ jsx(
288
+ "path",
289
+ {
290
+ d: "M1.76378 0.46875L11.2941 9.99908L1.76378 19.5294L0.703125 18.4687L9.17295 9.99908L0.703125 1.52941L1.76378 0.46875Z",
291
+ fill: "#4A5560"
292
+ }
293
+ )
294
+ }
295
+ ) })
296
+ ]
297
+ }
298
+ ) : /* @__PURE__ */ jsx(
299
+ Link,
300
+ {
301
+ href: value + (queryString && !value.includes("?") ? `?${queryString}` : ""),
302
+ className: styles.menuItem,
303
+ children: /* @__PURE__ */ jsx("span", { children: key })
304
+ }
305
+ ) }, key);
306
+ }
307
+ )
308
+ },
309
+ currentLevel.title
310
+ )
311
+ }
312
+ ) }),
313
+ /* @__PURE__ */ jsx("div", { className: `${styles.quickLinks} flex middle between`, children: quickLinks.map((link) => /* @__PURE__ */ jsxs(
314
+ "a",
315
+ {
316
+ href: link.url + (queryString && !link.url.includes("?") ? `?${queryString}` : ""),
317
+ className: `${styles.quickLink} flex_col middle`,
318
+ "aria-label": `Visit ${link.title} page`,
319
+ children: [
320
+ /* @__PURE__ */ jsx(
321
+ "img",
322
+ {
323
+ src: link.icon,
324
+ alt: "",
325
+ height: 20,
326
+ width: 20,
327
+ loading: "lazy"
328
+ }
329
+ ),
330
+ /* @__PURE__ */ jsx("span", { children: link.title })
331
+ ]
332
+ },
333
+ link.title
334
+ )) })
335
+ ] }) })
336
+ ]
337
+ }
338
+ )
339
+ }
340
+ ) })
341
+ ] });
342
+ };
343
+ export {
344
+ MobileDrawerMenu as default
345
+ };
@@ -0,0 +1,53 @@
1
+ import '../../../assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css';const overlay = "_overlay_1s2qa_1";
2
+ const drawer = "_drawer_1s2qa_9";
3
+ const hamburger = "_hamburger_1s2qa_29";
4
+ const header = "_header_1s2qa_40";
5
+ const back = "_back_1s2qa_51";
6
+ const close = "_close_1s2qa_62";
7
+ const levelContainer = "_levelContainer_1s2qa_69";
8
+ const level = "_level_1s2qa_69";
9
+ const levelTitle = "_levelTitle_1s2qa_85";
10
+ const menu = "_menu_1s2qa_90";
11
+ const menuItem = "_menuItem_1s2qa_110";
12
+ const chevron = "_chevron_1s2qa_126";
13
+ const chevronIcon = "_chevronIcon_1s2qa_131";
14
+ const quickLinks = "_quickLinks_1s2qa_142";
15
+ const quickLink = "_quickLink_1s2qa_142";
16
+ const sr_only = "_sr_only_1s2qa_166";
17
+ const styles = {
18
+ overlay,
19
+ drawer,
20
+ hamburger,
21
+ header,
22
+ back,
23
+ close,
24
+ levelContainer,
25
+ level,
26
+ levelTitle,
27
+ menu,
28
+ menuItem,
29
+ chevron,
30
+ chevronIcon,
31
+ quickLinks,
32
+ quickLink,
33
+ sr_only
34
+ };
35
+ export {
36
+ back,
37
+ chevron,
38
+ chevronIcon,
39
+ close,
40
+ styles as default,
41
+ drawer,
42
+ hamburger,
43
+ header,
44
+ level,
45
+ levelContainer,
46
+ levelTitle,
47
+ menu,
48
+ menuItem,
49
+ overlay,
50
+ quickLink,
51
+ quickLinks,
52
+ sr_only
53
+ };
@@ -0,0 +1,272 @@
1
+ export declare const menuData: {
2
+ Personal: {
3
+ "Personal Home": string;
4
+ Bank: {
5
+ "Bank Home": string;
6
+ Checking: {
7
+ "Checking Accounts Home": string;
8
+ "Axos ONE\u00AE Checking": string;
9
+ "Rewards Checking": string;
10
+ "Essential Checking": string;
11
+ "First Checking": string;
12
+ "CashBack Checking": string;
13
+ "Golden Checking": string;
14
+ };
15
+ Savings: {
16
+ "Savings Accounts Home": string;
17
+ "Axos ONE\u00AE Savings": string;
18
+ "Summit Savings": string;
19
+ "First Savings": string;
20
+ };
21
+ "Certificates of Deposits": string;
22
+ Premier: {
23
+ "Premier Home": string;
24
+ "Private Client": string;
25
+ "InsureGuard+": string;
26
+ "Trust Accounts": string;
27
+ };
28
+ "ATM Locator": string;
29
+ "Refer-a-Friend": string;
30
+ Insights: string;
31
+ };
32
+ Borrow: {
33
+ "Borrow Home": string;
34
+ Mortgages: {
35
+ "Mortgages Home": string;
36
+ "Buying a Home": string;
37
+ "Mortgage Refinance": string;
38
+ "Get Pre-qualified": string;
39
+ "Get a Rate Quote": string;
40
+ "Apply Now": string;
41
+ "Mortgage Services": string;
42
+ "Make a Payment": string;
43
+ };
44
+ "Personal Loans": {
45
+ "Personal Loans Home": string;
46
+ "Learn More": string;
47
+ "Apply Now": string;
48
+ "Make a Payment": string;
49
+ "Debt Consolidation Loans": string;
50
+ "Home Improvement Loans": string;
51
+ "Major Purchases Loans": string;
52
+ };
53
+ "Auto Loans": {
54
+ "Auto Loans Home": string;
55
+ "Auto Purchase Loans": string;
56
+ "Auto Refinance Loans": string;
57
+ "Auto Payment Calculator": string;
58
+ "Manage My Loan": string;
59
+ };
60
+ "Marine Loans": {
61
+ "Marine Loans Home": string;
62
+ "Find The Right Loan": string;
63
+ "Apply Now": string;
64
+ "Contact Us": string;
65
+ };
66
+ };
67
+ Invest: {
68
+ "Invest Home": string;
69
+ "Managed Portfolios": {
70
+ "Managed Portfolios Home": string;
71
+ "Investing Details": string;
72
+ };
73
+ "Self Directed Trading": {
74
+ "Self Directed Trading Home": string;
75
+ "Axos Elite Investing": string;
76
+ "Stocks & ETFs": string;
77
+ "Margin Tradings": string;
78
+ "Options Trading": string;
79
+ };
80
+ Retirement: string;
81
+ Support: string;
82
+ Insights: string;
83
+ };
84
+ Plan: {
85
+ "Plan Home": string;
86
+ "Axos Mobile App": {
87
+ "Axos Mobile App Home": string;
88
+ "Download the App": string;
89
+ "Mobile App Features": string;
90
+ };
91
+ "Financial Tools": {
92
+ "Financial Tools Home": string;
93
+ Calculators: string;
94
+ "Credit Score Monitoring": string;
95
+ "Personal Finance Manager": string;
96
+ "Additional Tools": string;
97
+ "Fund Your Account": string;
98
+ };
99
+ "Education & Insights": {
100
+ "Education & Insights Home": string;
101
+ "Banking Insights": string;
102
+ "Investing Insights": string;
103
+ "Investing Podcast": string;
104
+ };
105
+ };
106
+ };
107
+ Business: {
108
+ "Business Home": string;
109
+ "Small Business Banking": {
110
+ "Small Business Home": string;
111
+ Checking: {
112
+ "Small Business Checking Home": string;
113
+ "Basic Business Checking": string;
114
+ "Business Interest Checking": string;
115
+ };
116
+ Savings: {
117
+ "Small Business Savings Home": string;
118
+ "Business Money Market": string;
119
+ "Business Premium Savings": string;
120
+ "Business Savings": string;
121
+ "Non-Profit Money Market": string;
122
+ "Business CDs": string;
123
+ };
124
+ Bundles: {
125
+ "Axos Business Bundle": string;
126
+ };
127
+ Services: {
128
+ "Services Home": string;
129
+ "Merchant Services": string;
130
+ "Payroll Services": string;
131
+ "SBA Loans": string;
132
+ "Treasury Management": string;
133
+ "Insured Cash Sweep": string;
134
+ "Digital Banking": string;
135
+ };
136
+ Solutions: {
137
+ "Solutions Home": string;
138
+ "New Business": string;
139
+ "Nonprofit Banking": string;
140
+ };
141
+ "Other Resources": {
142
+ "Business Support": string;
143
+ FAQ: string;
144
+ "ATM Locator": string;
145
+ Calculators: string;
146
+ };
147
+ Insights: string;
148
+ };
149
+ "Commercial Banking": {
150
+ "Commercial Banking Home": string;
151
+ "Solutions By Industry": {
152
+ "Commercial Banking Home": string;
153
+ "Third Party Payment Processors": string;
154
+ "HOA Banking & Lending": string;
155
+ "HOAs & Property Management": string;
156
+ "1031 Exchange Qualified Intermediaries": string;
157
+ "Title & Escrow": string;
158
+ "Global Fiduciary Banking": string;
159
+ "Fiduciary Services": string;
160
+ "Business Management Banking": string;
161
+ "Hedge Funds & Alternative Fund Banking Solutions": string;
162
+ "Middle Market": string;
163
+ "Technology & Life Sciences Banking": string;
164
+ };
165
+ Services: {
166
+ "Commercial Banking Services Home": string;
167
+ "Analyzed Business Checking": string;
168
+ "Merchant Services": string;
169
+ "Treasury Management": string;
170
+ "IntraFi\u00AE Network Deposits\u2120": string;
171
+ };
172
+ "Other Resources": {
173
+ "Business Support": string;
174
+ Calculators: string;
175
+ };
176
+ };
177
+ "Commercial Lending": {
178
+ "Commercial Lending Home": string;
179
+ "Credit and Financial": {
180
+ "Credit and Financial Lending Home": string;
181
+ "Commercial Lines of Credit": string;
182
+ "Commercial Term Loans": string;
183
+ "Equipment Finance": string;
184
+ };
185
+ "Commercial Lending": {
186
+ "Commercial Lending Home": string;
187
+ "Commercial Real Estate Bridge & Construction Lending": string;
188
+ "HOA Lending": string;
189
+ "Lender Finance": string;
190
+ "Residential Warehouse Lending": string;
191
+ "Small Balance Commercial Real Estate": string;
192
+ "Leveraged Finance": string;
193
+ "Marine Dealer Floorplan Finance": string;
194
+ "Premium Finance": string;
195
+ };
196
+ "Other Resources": {
197
+ "Business Support": string;
198
+ "Commercial Portal": string;
199
+ Calculators: string;
200
+ };
201
+ };
202
+ };
203
+ Partners: {
204
+ "Partners Home": string;
205
+ "Marine Dealer Floorplan Finance": string;
206
+ "Wholesale Lending": {
207
+ "Wholesale & Correspondent Lending": {
208
+ "WCPL Home": string;
209
+ "Resources & Support": string;
210
+ "Register a Loan": string;
211
+ "Quick Pricer": string;
212
+ "Meet the Team": string;
213
+ };
214
+ };
215
+ "Financial Advisors": string;
216
+ "Dealer Services": {
217
+ "Dealer Services": {
218
+ "Dealer Services Home": string;
219
+ "Request More Information": string;
220
+ };
221
+ };
222
+ "Strategic Partners": string;
223
+ };
224
+ Support: {
225
+ "Customer Support Home": string;
226
+ "Personal Support": string;
227
+ "Business Support": string;
228
+ "Partner Support": string;
229
+ };
230
+ "About Us": {
231
+ "About Us Home": string;
232
+ "Axos Financial": string;
233
+ History: string;
234
+ "Awards & Recognitions": string;
235
+ "Executive Team": string;
236
+ "Press & News": string;
237
+ };
238
+ Legal: {
239
+ "Legal Home": string;
240
+ "Business Disclosures": string;
241
+ "HELOC Disclosures": string;
242
+ "Home Equity Loan Disclosure": string;
243
+ "Privacy Policy": string;
244
+ "FDIC Notice": string;
245
+ "EHL Notice": string;
246
+ "SAFE Act": string;
247
+ };
248
+ "Log in": {
249
+ Personal: {
250
+ "Personal Banking Home": string;
251
+ "Account Login": string;
252
+ "Make a Payment": string;
253
+ };
254
+ Business: {
255
+ "Business Banking Home": string;
256
+ "Business Banking Login": string;
257
+ "MWA Business Login": string;
258
+ "Commercial Portal": string;
259
+ };
260
+ Partners: {
261
+ "Partners Home": string;
262
+ "Wholesale and Correspondent": string;
263
+ "Advisor Login": string;
264
+ };
265
+ };
266
+ "Return to Application": string;
267
+ };
268
+ export declare const getQuickLinks: (pathname: string) => {
269
+ icon: string;
270
+ title: string;
271
+ url: string;
272
+ }[];