@axos-web-dev/shared-components 1.0.100-dev.73-nav → 1.0.100-dev.73-compact-executive-bio
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.
- package/dist/ATMLocator/ATMLocator.js +4 -4
- package/dist/Accordion/Accordion.css.js +1 -1
- package/dist/Accordion/Accordion.js +2 -4
- package/dist/AlertBanner/AlertBanner.css.js +1 -1
- package/dist/AlertBanner/index.js +1 -3
- package/dist/Article/Article.css.js +1 -1
- package/dist/ArticlesSet/ArticlesSet.css.js +1 -1
- package/dist/Auth/ErrorAlert.css.js +1 -1
- package/dist/Auth/ErrorAlert.js +5 -5
- package/dist/Auth/Logout.js +1 -1
- package/dist/Auth/SignIn.css.js +1 -1
- package/dist/Auth/SignInPassword.js +1 -1
- package/dist/Avatar/Avatar.module.js +1 -1
- package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
- package/dist/AwardsItem/AwardsItem.css.js +1 -1
- package/dist/Blockquote/Blockquote.module.js +1 -1
- package/dist/BulletItem/BulletItem.css.js +1 -1
- package/dist/BulletItem/BulletItem.js +1 -3
- package/dist/Button/Button.css.js +1 -1
- package/dist/Button/Button.js +4 -4
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +1 -1
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +1 -1
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/AxosOneCalculator/index.js +2 -4
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/BalanceAPYCalculator/index.js +2 -4
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +1 -1
- package/dist/Calculators/BuyDownCalculator/index.js +2 -2
- package/dist/Calculators/Calculator.js +4 -4
- package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +2 -2
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +1 -1
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +1 -1
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/SummitApyCalculator/index.js +2 -4
- package/dist/Calculators/calculator.css.js +1 -1
- package/dist/CallToActionBar/CallToActionBar.css.js +1 -1
- package/dist/CallToActionBar/index.js +1 -1
- package/dist/Carousel/Carousel.css.js +1 -1
- package/dist/Carousel/index.js +5 -5
- package/dist/Chatbot/AnimatedGradientBorder.css.js +1 -1
- package/dist/Chatbot/Bubble.css.js +1 -1
- package/dist/Chatbot/Bubble.js +1 -1
- package/dist/Chatbot/ChatWindow.css.js +1 -1
- package/dist/Chatbot/ChatWindow.js +11 -10
- package/dist/Chatbot/Chatbot.css.js +1 -1
- package/dist/Chatbot/Chatbot.d.ts +1 -1
- package/dist/Chatbot/Chatbot.js +30 -14
- package/dist/Chatbot/ChatbotMessage.js +1 -1
- package/dist/Chatbot/ThankYouMessage.js +2 -2
- package/dist/Chatbot/store/chat.d.ts +3 -0
- package/dist/Chatbot/store/chat.js +6 -2
- package/dist/Chevron/Chevron.css.js +1 -1
- package/dist/Chevron/index.js +5 -5
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +1 -1
- package/dist/CollectInformationAlert/index.js +1 -3
- package/dist/Comparison/Comparison.css.js +2 -3
- package/dist/Comparison/Comparison.js +5 -5
- package/dist/Comparison/ComparisonSet.js +1 -1
- package/dist/ContentBanner/ContentBanner.css.js +1 -1
- package/dist/DownloadTile/DownloadTile.css.js +1 -1
- package/dist/DownloadTile/index.js +0 -6
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -0
- package/dist/ExecutiveBio/ExecutiveBio.css.js +49 -47
- package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +134 -127
- package/dist/ExecutiveBio/index.js +2 -1
- package/dist/FaqAccordion/FaqAccordion.css.js +1 -1
- package/dist/FaqAccordion/index.js +5 -5
- package/dist/FdicCallout/FdicCallout.module.js +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +1 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +2 -4
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +4 -4
- package/dist/Forms/ApplicationStart.js +2 -4
- package/dist/Forms/ApplyNow.js +5 -5
- package/dist/Forms/ClearingForm.js +2 -4
- package/dist/Forms/CommercialDeposits.js +2 -4
- package/dist/Forms/CommercialDepositsNoLendingOption.js +2 -4
- package/dist/Forms/CommercialLending.js +2 -4
- package/dist/Forms/CommercialPremiumFinance.js +2 -4
- package/dist/Forms/ConstructionLendingDynamic.js +2 -4
- package/dist/Forms/ContactCompany.js +2 -4
- package/dist/Forms/ContactCompanyTitle.js +2 -4
- package/dist/Forms/ContactUs.js +2 -4
- package/dist/Forms/ContactUsAAS.js +2 -4
- package/dist/Forms/ContactUsBusiness.js +5 -5
- package/dist/Forms/ContactUsBusinessNameEmail.js +5 -5
- package/dist/Forms/ContactUsLVF.js +2 -4
- package/dist/Forms/ContactUsNMLSId.js +5 -5
- package/dist/Forms/CpraRequest.js +2 -4
- package/dist/Forms/CraPublicFile.js +5 -5
- package/dist/Forms/DealerServices.js +2 -4
- package/dist/Forms/EmailOnly.js +5 -5
- package/dist/Forms/EmailUs.js +2 -4
- package/dist/Forms/Forms.css.js +1 -1
- package/dist/Forms/HoneyPot/HoneyPot.css.js +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +5 -5
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +4 -4
- package/dist/Forms/MortgageWarehouseLending.js +5 -5
- package/dist/Forms/QuickPricer/QuickPricerForm.js +3 -5
- package/dist/Forms/QuickPricer/QuickPricerResults.css.js +1 -1
- package/dist/Forms/QuickPricer/UserInformation.css.js +1 -1
- package/dist/Forms/ScheduleCall.js +2 -4
- package/dist/Forms/ScheduleCallPremier.js +2 -4
- package/dist/Forms/SuccesForm.js +4 -4
- package/dist/Forms/VendorQuestionnaire.js +1 -1
- package/dist/Forms/WcplSurvey.js +2 -4
- package/dist/HelpArticle/HelpArticle.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +3 -5
- package/dist/HeroBanner/LargeBanner.css.js +1 -1
- package/dist/HeroBanner/SelectionBanner.css.js +1 -1
- package/dist/Hyperlink/Hyperlink.css.js +1 -1
- package/dist/Hyperlink/index.js +4 -4
- package/dist/IconBillboard/IconBillboard.css.js +1 -1
- package/dist/IconBillboard/IconBillboard.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.css.js +2 -1
- package/dist/ImageBillboard/ImageBillboard.js +1 -3
- package/dist/ImageBillboard/ImageBillboardSet.js +3 -4
- package/dist/ImageLink/ImageLink.css.js +1 -1
- package/dist/ImageLink/ImageLink.js +4 -4
- package/dist/ImageLink/ImageLinkSet.js +4 -4
- package/dist/ImageLink/index.js +4 -4
- package/dist/Input/Checkbox.css.js +1 -1
- package/dist/Input/Dropdown.css.js +1 -1
- package/dist/Input/Input.css.js +1 -1
- package/dist/Input/RadioButton.css.js +1 -1
- package/dist/Inputs/Input.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.js +6 -6
- package/dist/Insight/Featured/Featured.css.js +1 -1
- package/dist/Insight/Featured/Featured.js +5 -5
- package/dist/Insight/Featured/Header.css.js +1 -1
- package/dist/Insight/Featured/Header.js +5 -5
- package/dist/Insight/Insight.css.js +1 -1
- package/dist/Interstitial/Interstitial-variants.css.js +1 -1
- package/dist/Interstitial/Interstitial.module.js +1 -1
- package/dist/LandingPageHeader/LandingPageHeader.css.js +1 -1
- package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
- package/dist/Modal/Modal.css.js +1 -1
- package/dist/Modal/Modal.js +4 -4
- package/dist/Modal/contextApi/store.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavData.js +4 -4
- package/dist/NavigationMenu/AxosALTS/index.js +4 -4
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +1 -12
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +153 -168
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +264 -37
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +525 -57
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -42
- package/dist/NavigationMenu/AxosBank/NavData.js +4 -4
- package/dist/NavigationMenu/AxosBank/SubNavBar.d.ts +1 -6
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +3106 -110
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/index.d.ts +4 -6
- package/dist/NavigationMenu/AxosBank/index.js +386 -85
- package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.css.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavData.js +4 -4
- package/dist/NavigationMenu/LaVictoire/index.js +4 -4
- package/dist/NavigationMenu/NavDataJson.js +4 -4
- package/dist/NavigationMenu/NavItem/index.js +1 -11
- package/dist/NavigationMenu/Navbar.d.ts +1 -4
- package/dist/NavigationMenu/Navbar.js +5 -6
- package/dist/NavigationMenu/SignInNavButton.js +4 -4
- package/dist/PageNavItem/PageNavItem.css.js +1 -1
- package/dist/PageNavSet/PageNavSet.js +1 -1
- package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
- package/dist/Pagination/Pagination.css.js +1 -1
- package/dist/Pagination/Pagination.js +2 -4
- package/dist/SecondaryFooter/SecondaryFooter.css.js +1 -1
- package/dist/SecondaryFooter/index.js +1 -1
- package/dist/SetContainer/SetContainer.css.js +3 -1
- package/dist/SetContainer/SetContainer.js +5 -5
- package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
- package/dist/SocialMediaBar/iconsRepository.js +4 -4
- package/dist/StepItem/StepItem.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Tab/Tab.css.js +1 -1
- package/dist/Table/Table.css.js +1 -1
- package/dist/Table/Table.d.ts +1 -1
- package/dist/Table/Table.js +2 -4
- package/dist/TextBlock/TextBlock.css.js +1 -1
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/Topic/Topic.css.js +1 -1
- package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
- package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
- package/dist/Typography/Typography.css.js +1 -1
- package/dist/VideoTile/VideoTile.css.js +1 -1
- package/dist/VideoTile/VideoTile.js +4 -4
- package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
- package/dist/VideoWrapper/index.js +4 -4
- package/dist/WalnutIframe/wrapper.module.js +1 -1
- package/dist/assets/Chatbot/ChatWindow.css +9 -4
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +200 -153
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +609 -609
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +445 -483
- package/dist/assets/SetContainer/SetContainer.css +25 -0
- package/dist/globals.css.js +1 -1
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +1 -1
- package/dist/icons/CheckIcon/CheckIcon.css.js +1 -1
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +1 -1
- package/dist/icons/FollowIcon/FollowIcon.css.js +1 -1
- package/dist/icons/Logos/AXOS.js +7 -49
- package/dist/icons/Star/Star.css.js +1 -1
- package/dist/index.css.js +1 -1
- package/dist/main.js +2 -1
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/premier.css.js +1 -1
- package/dist/themes/ufb.css.js +1 -1
- package/dist/themes/victorie.css.js +1 -1
- package/dist/utils/allowedAxosDomains.js +1 -5
- package/dist/utils/optimizeImage/optimizeImage.module.js +1 -1
- package/package.json +136 -136
- package/dist/Chat/Chat.d.ts +0 -4
- package/dist/Chat/Chat.js +0 -13
- package/dist/Chat/index.d.ts +0 -1
- package/dist/Chat/index.js +0 -5
- package/dist/NavigationMenu/AxosBank/DropwdownButton.d.ts +0 -7
- package/dist/NavigationMenu/AxosBank/DropwdownButton.js +0 -105
- package/dist/NavigationMenu/AxosBank/Menu.d.ts +0 -37
- package/dist/NavigationMenu/AxosBank/Menu.js +0 -130
- package/dist/NavigationMenu/AxosBank/MobileMenu/mobileReducer.d.ts +0 -36
- package/dist/NavigationMenu/AxosBank/MobileMenu/mobileReducer.js +0 -105
- package/dist/NavigationMenu/AxosBank/SubNavItem.d.ts +0 -1
- package/dist/NavigationMenu/AxosBank/SubNavItem.js +0 -187
- package/dist/NavigationMenu/utils.d.ts +0 -466
- package/dist/NavigationMenu/utils.js +0 -112
|
@@ -1,466 +0,0 @@
|
|
|
1
|
-
export interface Logo {
|
|
2
|
-
id: string;
|
|
3
|
-
url: string;
|
|
4
|
-
alt: string;
|
|
5
|
-
}
|
|
6
|
-
export interface NavItem {
|
|
7
|
-
id: string;
|
|
8
|
-
url: string;
|
|
9
|
-
label: string;
|
|
10
|
-
descriptiveTextAriaLabel?: string;
|
|
11
|
-
icon?: string | undefined;
|
|
12
|
-
ariaLabel?: string | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface NavItems extends NavItem {
|
|
15
|
-
items?: NavItems[];
|
|
16
|
-
subItems?: NavItems[];
|
|
17
|
-
menuItems?: Menu;
|
|
18
|
-
hasMenu?: boolean;
|
|
19
|
-
rightSide?: boolean | undefined;
|
|
20
|
-
dropdown?: boolean | undefined;
|
|
21
|
-
displayInNavigation?: boolean | undefined;
|
|
22
|
-
}
|
|
23
|
-
export interface SubNavItems extends NavItem {
|
|
24
|
-
subItems: (NavItems | NavItem | undefined)[];
|
|
25
|
-
menuItems?: Menu;
|
|
26
|
-
hasMenu?: boolean;
|
|
27
|
-
dropdown: boolean | undefined;
|
|
28
|
-
rightSide?: boolean | undefined;
|
|
29
|
-
displayInNavigation?: boolean | undefined;
|
|
30
|
-
}
|
|
31
|
-
export interface Navigation {
|
|
32
|
-
subNavBar?: SubNavItems[];
|
|
33
|
-
logo?: Logo;
|
|
34
|
-
quickLinks: NavItem[];
|
|
35
|
-
}
|
|
36
|
-
export interface Menu {
|
|
37
|
-
target: Record<string, unknown>;
|
|
38
|
-
heading: string;
|
|
39
|
-
bannerHeading: string;
|
|
40
|
-
bannerDescription: string;
|
|
41
|
-
helpAndSupportLink?: string;
|
|
42
|
-
bannerImage: {
|
|
43
|
-
fields: {
|
|
44
|
-
title: string;
|
|
45
|
-
file: {
|
|
46
|
-
url: string;
|
|
47
|
-
details: {
|
|
48
|
-
size: number;
|
|
49
|
-
image: {
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
fileName: string;
|
|
55
|
-
contentType: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
bannerCta: {
|
|
60
|
-
id: string;
|
|
61
|
-
label: string;
|
|
62
|
-
url: string;
|
|
63
|
-
ariaLabel: string;
|
|
64
|
-
};
|
|
65
|
-
subItems?: NavItems[];
|
|
66
|
-
}
|
|
67
|
-
export interface PrimaryMenu {
|
|
68
|
-
sys: {
|
|
69
|
-
id: string;
|
|
70
|
-
contentType: {
|
|
71
|
-
sys: {
|
|
72
|
-
id: "primaryNavigation";
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
fields: {
|
|
77
|
-
display: string;
|
|
78
|
-
displayInNavigation: boolean;
|
|
79
|
-
rightSide: boolean;
|
|
80
|
-
dropdown: boolean;
|
|
81
|
-
target: {
|
|
82
|
-
sys: {
|
|
83
|
-
id: string;
|
|
84
|
-
contentType: {
|
|
85
|
-
sys: {
|
|
86
|
-
id: string;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
fields: {
|
|
91
|
-
displayText: string;
|
|
92
|
-
targetUrl: string;
|
|
93
|
-
descriptiveTextAriaLabel: string;
|
|
94
|
-
icon: {
|
|
95
|
-
fields: {
|
|
96
|
-
image: {
|
|
97
|
-
fields: {
|
|
98
|
-
file: {
|
|
99
|
-
url: string;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
children: Array<PrimaryChildrens>;
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export interface QuickLink {
|
|
111
|
-
sys: {
|
|
112
|
-
id: string;
|
|
113
|
-
contentType: {
|
|
114
|
-
sys: {
|
|
115
|
-
id: string;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
fields: {
|
|
120
|
-
displayText: string;
|
|
121
|
-
targetUrl: string;
|
|
122
|
-
descriptiveTextAriaLabel: string;
|
|
123
|
-
icon: {
|
|
124
|
-
fields: {
|
|
125
|
-
image: {
|
|
126
|
-
fields: {
|
|
127
|
-
file: {
|
|
128
|
-
url: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
export interface HyperLinkType {
|
|
137
|
-
sys: {
|
|
138
|
-
id: string;
|
|
139
|
-
contentType: {
|
|
140
|
-
sys: {
|
|
141
|
-
id: "hyperlink";
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
fields: {
|
|
146
|
-
displayText: string;
|
|
147
|
-
targetUrl: string;
|
|
148
|
-
descriptiveTextAriaLabel: string;
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
export interface CallToActionType {
|
|
152
|
-
sys: {
|
|
153
|
-
id: string;
|
|
154
|
-
contentType: {
|
|
155
|
-
sys: {
|
|
156
|
-
id: "hyperlink";
|
|
157
|
-
};
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
fields: {
|
|
161
|
-
displayText: string;
|
|
162
|
-
targetUrl: string;
|
|
163
|
-
descriptiveTextAriaLabel: string;
|
|
164
|
-
icon: {
|
|
165
|
-
fields: {
|
|
166
|
-
image: {
|
|
167
|
-
fields: {
|
|
168
|
-
file: {
|
|
169
|
-
url: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
export interface TertiaryMenu {
|
|
178
|
-
sys: {
|
|
179
|
-
id: string;
|
|
180
|
-
contentType: {
|
|
181
|
-
sys: {
|
|
182
|
-
id: "tertiaryNavigation";
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
};
|
|
186
|
-
fields: {
|
|
187
|
-
displayText?: string;
|
|
188
|
-
target: CallToActionType;
|
|
189
|
-
descriptiveTextAriaLabel?: string;
|
|
190
|
-
children: Array<HyperLinkType>;
|
|
191
|
-
targetUrl?: string;
|
|
192
|
-
icon: {
|
|
193
|
-
fields: {
|
|
194
|
-
image: {
|
|
195
|
-
fields: {
|
|
196
|
-
file: {
|
|
197
|
-
url: string;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
export interface SecondaryMenu {
|
|
206
|
-
sys: {
|
|
207
|
-
id: string;
|
|
208
|
-
contentType: {
|
|
209
|
-
sys: {
|
|
210
|
-
id: "secondaryNavigation";
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
fields: {
|
|
215
|
-
display: string;
|
|
216
|
-
target: HyperLinkType;
|
|
217
|
-
children: Array<TertiaryMenu>;
|
|
218
|
-
heading: string;
|
|
219
|
-
bannerHeading: string;
|
|
220
|
-
bannerDescription: string;
|
|
221
|
-
helpAndSupportLink?: string;
|
|
222
|
-
bannerImage: {
|
|
223
|
-
fields: {
|
|
224
|
-
title: string;
|
|
225
|
-
file: {
|
|
226
|
-
url: string;
|
|
227
|
-
details: {
|
|
228
|
-
size: number;
|
|
229
|
-
image: {
|
|
230
|
-
width: number;
|
|
231
|
-
height: number;
|
|
232
|
-
};
|
|
233
|
-
};
|
|
234
|
-
fileName: string;
|
|
235
|
-
contentType: string;
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
bannerCtaLinks?: Array<{
|
|
240
|
-
sys: {
|
|
241
|
-
id: string;
|
|
242
|
-
type: string;
|
|
243
|
-
};
|
|
244
|
-
fields: {
|
|
245
|
-
displayText: string;
|
|
246
|
-
targetUrl: string;
|
|
247
|
-
descriptiveTextAriaLabel: string;
|
|
248
|
-
};
|
|
249
|
-
}>;
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
type PrimaryChildrens = SecondaryMenu | HyperLinkType;
|
|
253
|
-
export interface MenuObject {
|
|
254
|
-
sys: {
|
|
255
|
-
id: string;
|
|
256
|
-
contentType: {
|
|
257
|
-
sys: {
|
|
258
|
-
id: string;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
fields: {
|
|
263
|
-
label: string;
|
|
264
|
-
description: string;
|
|
265
|
-
display: string;
|
|
266
|
-
target: Array<{
|
|
267
|
-
sys: {
|
|
268
|
-
id: string;
|
|
269
|
-
contentType: {
|
|
270
|
-
sys: {
|
|
271
|
-
id: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
fields: {
|
|
276
|
-
displayText: string;
|
|
277
|
-
targetUrl: string;
|
|
278
|
-
descriptiveTextAriaLabel: string;
|
|
279
|
-
};
|
|
280
|
-
}>;
|
|
281
|
-
logo: {
|
|
282
|
-
sys: {
|
|
283
|
-
id: string;
|
|
284
|
-
type: string;
|
|
285
|
-
};
|
|
286
|
-
fields: {
|
|
287
|
-
title: string;
|
|
288
|
-
image: {
|
|
289
|
-
fields: {
|
|
290
|
-
file: {
|
|
291
|
-
url: string;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
quickLinks: Array<{
|
|
298
|
-
sys: {
|
|
299
|
-
id: string;
|
|
300
|
-
contentType: {
|
|
301
|
-
sys: {
|
|
302
|
-
id: string;
|
|
303
|
-
};
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
fields: {
|
|
307
|
-
displayText: string;
|
|
308
|
-
targetUrl: string;
|
|
309
|
-
descriptiveTextAriaLabel: string;
|
|
310
|
-
icon: {
|
|
311
|
-
fields: {
|
|
312
|
-
image: {
|
|
313
|
-
fields: {
|
|
314
|
-
file: {
|
|
315
|
-
url: string;
|
|
316
|
-
};
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
}>;
|
|
323
|
-
children: PrimaryMenu[];
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
export declare const getFirstLevelMenuItems: (menuData: MenuObject) => ({
|
|
327
|
-
id: string;
|
|
328
|
-
label: string;
|
|
329
|
-
url: string;
|
|
330
|
-
descriptiveTextAriaLabel: string;
|
|
331
|
-
rightSide: boolean;
|
|
332
|
-
dropdown: boolean;
|
|
333
|
-
} | {
|
|
334
|
-
id?: undefined;
|
|
335
|
-
label?: undefined;
|
|
336
|
-
url?: undefined;
|
|
337
|
-
descriptiveTextAriaLabel?: undefined;
|
|
338
|
-
rightSide?: undefined;
|
|
339
|
-
dropdown?: undefined;
|
|
340
|
-
})[];
|
|
341
|
-
export declare const getLogo: (menuData: MenuObject) => {
|
|
342
|
-
id: string;
|
|
343
|
-
url: string;
|
|
344
|
-
alt: string;
|
|
345
|
-
};
|
|
346
|
-
export declare const getQuickLinks: (menuData: MenuObject) => NavItem[];
|
|
347
|
-
export declare const extractChildrenTargets: (children: PrimaryChildrens[]) => (NavItem | {
|
|
348
|
-
id: string;
|
|
349
|
-
label: string;
|
|
350
|
-
url: string;
|
|
351
|
-
hasMenu: boolean;
|
|
352
|
-
descriptiveTextAriaLabel: string;
|
|
353
|
-
menuItems: {
|
|
354
|
-
target: {
|
|
355
|
-
displayText: string;
|
|
356
|
-
targetUrl: string;
|
|
357
|
-
descriptiveTextAriaLabel: string;
|
|
358
|
-
id: string;
|
|
359
|
-
};
|
|
360
|
-
heading: string;
|
|
361
|
-
bannerHeading: string;
|
|
362
|
-
bannerDescription: string;
|
|
363
|
-
helpAndSupportLink: string | undefined;
|
|
364
|
-
bannerImage: {
|
|
365
|
-
fields: {
|
|
366
|
-
title: string;
|
|
367
|
-
file: {
|
|
368
|
-
url: string;
|
|
369
|
-
details: {
|
|
370
|
-
size: number;
|
|
371
|
-
image: {
|
|
372
|
-
width: number;
|
|
373
|
-
height: number;
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
fileName: string;
|
|
377
|
-
contentType: string;
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
};
|
|
381
|
-
bannerCta: {
|
|
382
|
-
id: string;
|
|
383
|
-
label: string;
|
|
384
|
-
url: string;
|
|
385
|
-
ariaLabel: string;
|
|
386
|
-
}[] | undefined;
|
|
387
|
-
subItems: {
|
|
388
|
-
items: {
|
|
389
|
-
id: string;
|
|
390
|
-
label: string;
|
|
391
|
-
descriptiveTextAriaLabel: string;
|
|
392
|
-
url: string;
|
|
393
|
-
}[];
|
|
394
|
-
id: string;
|
|
395
|
-
label: string;
|
|
396
|
-
icon: string;
|
|
397
|
-
descrictiveTextAriaLabel: string;
|
|
398
|
-
url: string;
|
|
399
|
-
}[];
|
|
400
|
-
};
|
|
401
|
-
} | undefined)[];
|
|
402
|
-
export declare const getNavMenuItems: (menuData: MenuObject) => {
|
|
403
|
-
id: string;
|
|
404
|
-
label: string;
|
|
405
|
-
url: string;
|
|
406
|
-
descriptiveTextAriaLabel: string;
|
|
407
|
-
dropdown: boolean;
|
|
408
|
-
rightSide: boolean;
|
|
409
|
-
displayInNavigation: boolean;
|
|
410
|
-
subItems: (NavItem | {
|
|
411
|
-
id: string;
|
|
412
|
-
label: string;
|
|
413
|
-
url: string;
|
|
414
|
-
hasMenu: boolean;
|
|
415
|
-
descriptiveTextAriaLabel: string;
|
|
416
|
-
menuItems: {
|
|
417
|
-
target: {
|
|
418
|
-
displayText: string;
|
|
419
|
-
targetUrl: string;
|
|
420
|
-
descriptiveTextAriaLabel: string;
|
|
421
|
-
id: string;
|
|
422
|
-
};
|
|
423
|
-
heading: string;
|
|
424
|
-
bannerHeading: string;
|
|
425
|
-
bannerDescription: string;
|
|
426
|
-
helpAndSupportLink: string | undefined;
|
|
427
|
-
bannerImage: {
|
|
428
|
-
fields: {
|
|
429
|
-
title: string;
|
|
430
|
-
file: {
|
|
431
|
-
url: string;
|
|
432
|
-
details: {
|
|
433
|
-
size: number;
|
|
434
|
-
image: {
|
|
435
|
-
width: number;
|
|
436
|
-
height: number;
|
|
437
|
-
};
|
|
438
|
-
};
|
|
439
|
-
fileName: string;
|
|
440
|
-
contentType: string;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
443
|
-
};
|
|
444
|
-
bannerCta: {
|
|
445
|
-
id: string;
|
|
446
|
-
label: string;
|
|
447
|
-
url: string;
|
|
448
|
-
ariaLabel: string;
|
|
449
|
-
}[] | undefined;
|
|
450
|
-
subItems: {
|
|
451
|
-
items: {
|
|
452
|
-
id: string;
|
|
453
|
-
label: string;
|
|
454
|
-
descriptiveTextAriaLabel: string;
|
|
455
|
-
url: string;
|
|
456
|
-
}[];
|
|
457
|
-
id: string;
|
|
458
|
-
label: string;
|
|
459
|
-
icon: string;
|
|
460
|
-
descrictiveTextAriaLabel: string;
|
|
461
|
-
url: string;
|
|
462
|
-
}[];
|
|
463
|
-
};
|
|
464
|
-
} | undefined)[];
|
|
465
|
-
}[];
|
|
466
|
-
export {};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
const getFirstLevelMenuItems = (menuData) => {
|
|
2
|
-
if (!menuData.fields?.children) return [];
|
|
3
|
-
return menuData.fields?.children?.map(
|
|
4
|
-
({ fields, sys }) => fields?.target !== void 0 ? {
|
|
5
|
-
id: sys.id || sys.id,
|
|
6
|
-
label: fields.target.fields.displayText,
|
|
7
|
-
url: fields.target.fields.targetUrl,
|
|
8
|
-
descriptiveTextAriaLabel: fields?.target.fields.descriptiveTextAriaLabel,
|
|
9
|
-
rightSide: !!fields.rightSide,
|
|
10
|
-
dropdown: fields?.dropdown
|
|
11
|
-
} : {}
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
const getLogo = (menuData) => {
|
|
15
|
-
const { fields } = menuData;
|
|
16
|
-
return {
|
|
17
|
-
id: fields?.logo?.sys?.id,
|
|
18
|
-
url: fields?.logo?.fields?.image?.fields?.file?.url,
|
|
19
|
-
alt: fields?.logo?.fields?.title
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
const transformPrimaryNavigation = (item) => {
|
|
23
|
-
const { sys, fields } = item;
|
|
24
|
-
return {
|
|
25
|
-
id: sys.id,
|
|
26
|
-
label: fields.display,
|
|
27
|
-
url: fields?.target?.fields?.targetUrl,
|
|
28
|
-
hasMenu: fields.children && fields.children.length > 0,
|
|
29
|
-
descriptiveTextAriaLabel: fields.target?.fields.descriptiveTextAriaLabel,
|
|
30
|
-
menuItems: {
|
|
31
|
-
target: { id: fields.target?.sys?.id, ...fields?.target?.fields },
|
|
32
|
-
heading: fields.heading,
|
|
33
|
-
bannerHeading: fields.bannerHeading,
|
|
34
|
-
bannerDescription: fields.bannerDescription,
|
|
35
|
-
helpAndSupportLink: fields.helpAndSupportLink,
|
|
36
|
-
bannerImage: fields.bannerImage,
|
|
37
|
-
bannerCta: fields?.bannerCtaLinks?.map(({ sys: sys2, fields: fields2 }) => ({
|
|
38
|
-
id: sys2.id,
|
|
39
|
-
label: fields2.displayText,
|
|
40
|
-
url: fields2.targetUrl,
|
|
41
|
-
ariaLabel: fields2.descriptiveTextAriaLabel
|
|
42
|
-
})),
|
|
43
|
-
subItems: fields?.children?.length > 0 ? fields.children?.map(({ fields: menuFields, sys: menuSys }) => {
|
|
44
|
-
console.log({ menuFields });
|
|
45
|
-
const target = {
|
|
46
|
-
id: menuSys.id,
|
|
47
|
-
label: menuFields?.target?.fields?.displayText ?? menuFields?.displayText,
|
|
48
|
-
icon: menuFields?.icon?.fields?.image?.fields?.file?.url,
|
|
49
|
-
descrictiveTextAriaLabel: menuFields?.target?.fields?.descriptiveTextAriaLabel ?? menuFields.descriptiveTextAriaLabel,
|
|
50
|
-
url: menuFields?.target?.fields?.targetUrl ?? menuFields.targetUrl
|
|
51
|
-
};
|
|
52
|
-
const items = menuFields?.children?.map((item2) => {
|
|
53
|
-
return {
|
|
54
|
-
id: item2.sys.id,
|
|
55
|
-
label: item2.fields.displayText,
|
|
56
|
-
descriptiveTextAriaLabel: item2.fields.descriptiveTextAriaLabel,
|
|
57
|
-
url: item2.fields.targetUrl
|
|
58
|
-
};
|
|
59
|
-
});
|
|
60
|
-
return {
|
|
61
|
-
...target,
|
|
62
|
-
items
|
|
63
|
-
};
|
|
64
|
-
}) : []
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
const getQuickLinks = (menuData) => {
|
|
69
|
-
return menuData?.fields?.quickLinks?.map(({ fields, sys }) => ({
|
|
70
|
-
id: sys.id,
|
|
71
|
-
label: fields?.displayText,
|
|
72
|
-
url: fields?.targetUrl,
|
|
73
|
-
ariaLabel: fields?.descriptiveTextAriaLabel ?? "",
|
|
74
|
-
icon: fields?.icon?.fields?.image?.fields?.file?.url
|
|
75
|
-
}));
|
|
76
|
-
};
|
|
77
|
-
const extractChildrenTargets = (children) => {
|
|
78
|
-
if (!children) return [];
|
|
79
|
-
return children?.map((child) => {
|
|
80
|
-
if (child.sys.contentType.sys.id === "secondaryNavigation") {
|
|
81
|
-
return transformPrimaryNavigation(child);
|
|
82
|
-
}
|
|
83
|
-
if (child.sys.contentType.sys.id === "hyperlink") {
|
|
84
|
-
const { fields, sys } = child;
|
|
85
|
-
return {
|
|
86
|
-
id: sys.id,
|
|
87
|
-
label: fields?.displayText,
|
|
88
|
-
url: fields?.targetUrl,
|
|
89
|
-
descriptiveTextAriaLabel: fields?.descriptiveTextAriaLabel
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const getNavMenuItems = (menuData) => {
|
|
95
|
-
return menuData?.fields?.children?.map(({ fields, sys }) => ({
|
|
96
|
-
id: sys.id,
|
|
97
|
-
label: fields.target?.fields.displayText,
|
|
98
|
-
url: fields.target?.fields.targetUrl,
|
|
99
|
-
descriptiveTextAriaLabel: fields.target?.fields.descriptiveTextAriaLabel ?? "",
|
|
100
|
-
dropdown: fields?.dropdown,
|
|
101
|
-
rightSide: fields?.rightSide ?? false,
|
|
102
|
-
displayInNavigation: fields?.displayInNavigation,
|
|
103
|
-
subItems: extractChildrenTargets(fields.children)
|
|
104
|
-
}));
|
|
105
|
-
};
|
|
106
|
-
export {
|
|
107
|
-
extractChildrenTargets,
|
|
108
|
-
getFirstLevelMenuItems,
|
|
109
|
-
getLogo,
|
|
110
|
-
getNavMenuItems,
|
|
111
|
-
getQuickLinks
|
|
112
|
-
};
|