@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.
- package/dist/ATMLocator/ATMLocator.js +42 -32
- package/dist/Accordion/Accordion.css.d.ts +1 -1
- package/dist/Article/Article.css.d.ts +41 -41
- package/dist/Article/Article.js +3 -13
- package/dist/ArticlesSet/ArticlesSet.css.d.ts +16 -16
- package/dist/Auth/ErrorAlert.css.d.ts +4 -0
- package/dist/Auth/ErrorAlert.css.js +11 -0
- package/dist/Auth/ErrorAlert.d.ts +14 -0
- package/dist/Auth/ErrorAlert.js +184 -0
- package/dist/Auth/Logout.d.ts +3 -0
- package/dist/Auth/Logout.js +29 -0
- package/dist/Auth/SignIn.css.d.ts +6 -0
- package/dist/Auth/SignIn.css.js +18 -0
- package/dist/Auth/SignInPassword.d.ts +15 -0
- package/dist/Auth/SignInPassword.js +118 -0
- package/dist/Auth/index.d.ts +5 -0
- package/dist/Auth/index.js +20 -0
- package/dist/Button/Button.css.d.ts +31 -18
- package/dist/Button/Button.css.js +1 -1
- package/dist/Button/Button.js +14 -4
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +14 -14
- package/dist/Calculators/ApyCalculator/index.js +20 -12
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/AxosOneCalculator/index.js +18 -10
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +22 -22
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +101 -0
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +56 -0
- package/dist/Calculators/BuyDownCalculator/index.d.ts +25 -0
- package/dist/Calculators/BuyDownCalculator/index.js +855 -0
- package/dist/Calculators/Calculator.js +29 -10
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/calculator.css.d.ts +12 -12
- package/dist/Calculators/index.d.ts +1 -0
- package/dist/Calculators/index.js +2 -0
- package/dist/CallToActionBar/index.js +3 -1
- package/dist/Carousel/Carousel.css.d.ts +20 -20
- package/dist/Carousel/index.js +23 -13
- package/dist/Chevron/Chevron.css.d.ts +6 -6
- package/dist/Chevron/index.js +14 -4
- package/dist/Comparison/Comparison.css.d.ts +11 -10
- package/dist/Comparison/Comparison.css.js +3 -1
- package/dist/Comparison/Comparison.js +23 -13
- package/dist/Comparison/index.js +2 -1
- package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +31 -31
- package/dist/ExecutiveBio/ExecutiveBio.js +16 -22
- package/dist/FaqAccordion/index.js +16 -6
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +14 -4
- package/dist/Forms/ApplicationStart.js +21 -4
- package/dist/Forms/ApplyNow.js +14 -4
- package/dist/Forms/ClearingForm.js +19 -2
- package/dist/Forms/CommercialDeposits.js +19 -2
- package/dist/Forms/CommercialLending.js +20 -3
- package/dist/Forms/CommercialPremiumFinance.d.ts +10 -0
- package/dist/Forms/CommercialPremiumFinance.js +212 -0
- package/dist/Forms/ContactCompany.js +20 -3
- package/dist/Forms/ContactCompanyTitle.js +20 -3
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +107 -79
- package/dist/Forms/ContactUsAAS.js +20 -5
- package/dist/Forms/ContactUsBusiness.d.ts +2 -2
- package/dist/Forms/ContactUsBusiness.js +45 -19
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +9 -0
- package/dist/Forms/ContactUsBusinessNameEmail.js +282 -0
- package/dist/Forms/ContactUsLVF.js +20 -3
- package/dist/Forms/ContactUsNMLSId.js +35 -9
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +75 -63
- package/dist/Forms/CraPublicFile.d.ts +5 -5
- package/dist/Forms/CraPublicFile.js +69 -45
- package/dist/Forms/DealerServices.js +20 -4
- package/dist/Forms/EmailOnly.js +45 -28
- package/dist/Forms/EmailUs.js +12 -2
- package/dist/Forms/FormEnums.d.ts +21 -0
- package/dist/Forms/FormEnums.js +308 -0
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/Forms.css.d.ts +42 -42
- package/dist/Forms/HoneyPot/HoneyPot.css.d.ts +1 -0
- package/dist/Forms/HoneyPot/HoneyPot.css.js +5 -0
- package/dist/Forms/HoneyPot/index.d.ts +24 -0
- package/dist/Forms/HoneyPot/index.js +71 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.js +17 -7
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +16 -6
- package/dist/Forms/QuickPricer/QuickPricerForm.js +19 -20
- package/dist/Forms/ScheduleCall.js +20 -3
- package/dist/Forms/ScheduleCallPremier.js +20 -3
- package/dist/Forms/SuccesForm.js +31 -21
- package/dist/Forms/VendorQuestionnaire.js +12 -2
- package/dist/Forms/WcplSurvey.js +20 -3
- package/dist/Forms/index.d.ts +3 -0
- package/dist/Forms/index.js +8 -0
- package/dist/HelpArticle/HelpArticle.css.d.ts +4 -0
- package/dist/HelpArticle/HelpArticle.css.js +12 -0
- package/dist/HelpArticle/index.d.ts +1 -0
- package/dist/HelpArticle/index.js +7 -0
- package/dist/HeroBanner/HeroBanner.css.d.ts +19 -17
- package/dist/HeroBanner/HeroBanner.css.js +9 -5
- package/dist/HeroBanner/HeroBanner.d.ts +1 -1
- package/dist/HeroBanner/HeroBanner.interface.d.ts +3 -0
- package/dist/HeroBanner/HeroBanner.js +47 -1
- package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
- package/dist/HeroBanner/SelectionBanner.css.d.ts +8 -8
- package/dist/HeroBanner/index.js +3 -1
- package/dist/Hyperlink/index.js +17 -7
- package/dist/IconBillboard/IconBillboard.css.d.ts +26 -25
- package/dist/IconBillboard/IconBillboard.css.js +5 -3
- package/dist/IconBillboard/IconBillboard.d.ts +1 -2
- package/dist/IconBillboard/IconBillboard.interface.d.ts +1 -0
- package/dist/IconBillboard/IconBillboard.js +46 -80
- package/dist/IconBillboard/IconBillboardSet.js +1 -1
- package/dist/IconBillboard/index.js +3 -3
- package/dist/IconBillboard/sections/CallToActionSection.d.ts +12 -0
- package/dist/IconBillboard/sections/CallToActionSection.js +101 -0
- package/dist/IconBillboard/sections/HeaderSection.d.ts +11 -0
- package/dist/IconBillboard/sections/HeaderSection.js +23 -0
- package/dist/IconBillboard/sections/IconSection.d.ts +7 -0
- package/dist/IconBillboard/sections/IconSection.js +18 -0
- package/dist/IconBillboard/sections/ItemsSection.d.ts +11 -0
- package/dist/IconBillboard/sections/ItemsSection.js +11 -0
- package/dist/IconBillboard/sections/LayoutSection.d.ts +8 -0
- package/dist/IconBillboard/sections/LayoutSection.js +6 -0
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.d.ts +9 -0
- package/dist/ImageBillboard/ExitIntentModal/ModalWrapper.js +85 -0
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.d.ts +5 -0
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +90 -0
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +36 -20
- package/dist/ImageBillboard/ImageBillboard.css.js +50 -18
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +20 -2
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +104 -28
- package/dist/ImageBillboard/index.js +17 -1
- package/dist/ImageLink/ImageLink.d.ts +2 -2
- package/dist/ImageLink/ImageLink.js +17 -13
- package/dist/ImageLink/ImageLinkSet.js +20 -10
- package/dist/ImageLink/index.js +17 -7
- package/dist/Input/Checkbox.js +2 -1
- package/dist/Input/Input.css.d.ts +16 -16
- package/dist/Input/Input.js +4 -1
- package/dist/Input/PercentageInput.d.ts +3 -0
- package/dist/Input/PercentageInput.js +32 -0
- package/dist/Input/RadioButton.js +12 -3
- package/dist/Inputs/Input.css.d.ts +14 -14
- package/dist/Insight/Featured/CategorySelector.js +28 -20
- package/dist/Insight/Featured/Featured.js +75 -58
- package/dist/Insight/Featured/Header.js +22 -12
- package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
- package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
- package/dist/Modal/Modal.js +15 -5
- package/dist/NavigationMenu/AxosALTS/NavData.js +14 -4
- package/dist/NavigationMenu/AxosALTS/index.js +14 -4
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +3 -10
- package/dist/NavigationMenu/AxosAdvisor/index.js +3 -11
- package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +0 -5
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.d.ts +2 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.js +345 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +53 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +272 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +664 -0
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -81
- package/dist/NavigationMenu/AxosBank/NavData.js +14 -4
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +432 -108
- package/dist/NavigationMenu/AxosBank/index.d.ts +2 -1
- package/dist/NavigationMenu/AxosBank/index.js +104 -533
- package/dist/NavigationMenu/LaVictoire/NavData.js +14 -4
- package/dist/NavigationMenu/LaVictoire/index.js +40 -20
- package/dist/NavigationMenu/NavDataJson.d.ts +2 -0
- package/dist/NavigationMenu/NavDataJson.js +309 -0
- package/dist/NavigationMenu/Navbar.d.ts +5 -0
- package/dist/NavigationMenu/Navbar.js +195 -0
- package/dist/NavigationMenu/SignInNavButton.d.ts +1 -0
- package/dist/NavigationMenu/SignInNavButton.js +363 -0
- package/dist/PageNavItem/PageNavItem.css.d.ts +2 -2
- package/dist/SetContainer/SetContainer.css.d.ts +17 -18
- package/dist/SetContainer/SetContainer.css.js +2 -4
- package/dist/SetContainer/SetContainer.d.ts +2 -1
- package/dist/SetContainer/SetContainer.js +27 -13
- package/dist/SetContainer/index.js +1 -2
- package/dist/SocialMediaBar/iconsRepository.js +14 -4
- package/dist/StepItem/StepItem.css.d.ts +18 -18
- package/dist/StepItemSet/StepItemSet.css.d.ts +14 -14
- package/dist/StepItemSet/StepItemSet.js +2 -6
- package/dist/Tab/Tab.css.d.ts +12 -12
- package/dist/Table/Table.css.d.ts +25 -25
- package/dist/Table/Table.d.ts +3 -3
- package/dist/Topic/Topic.css.d.ts +4 -0
- package/dist/Topic/Topic.css.js +12 -0
- package/dist/Topic/Topic.d.ts +19 -0
- package/dist/Topic/Topic.js +24 -0
- package/dist/Topic/index.d.ts +2 -0
- package/dist/Topic/index.js +12 -0
- package/dist/VideoTile/VideoTile.interface.d.ts +4 -3
- package/dist/VideoTile/VideoTile.js +183 -28
- package/dist/VideoWrapper/index.js +15 -5
- package/dist/WalnutIframe/index.d.ts +6 -0
- package/dist/WalnutIframe/index.js +21 -0
- package/dist/WalnutIframe/wrapper.module.js +14 -0
- package/dist/assets/Auth/ErrorAlert.css +37 -0
- package/dist/assets/Auth/SignIn.css +86 -0
- package/dist/assets/Button/Button.css +31 -16
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +5 -0
- package/dist/assets/Calculators/BuyDownCalculator/BuyDownCalculator.css +197 -0
- package/dist/assets/Calculators/SummitApyCalculator/BalanceAPYCalculator.css +8 -0
- package/dist/assets/CallToActionBar/CallToActionBar.css +4 -0
- package/dist/assets/Comparison/Comparison.css +9 -2
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +4 -0
- package/dist/assets/HelpArticle/HelpArticle.css +70 -0
- package/dist/assets/HeroBanner/HeroBanner.css +38 -26
- package/dist/assets/HeroBanner/LargeBanner.css +3 -0
- package/dist/assets/IconBillboard/IconBillboard.css +43 -36
- package/dist/assets/ImageBillboard/ImageBillboard.css +336 -36
- package/dist/assets/Insight/Insight.css +12 -0
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +191 -0
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css +6 -0
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +473 -661
- package/dist/assets/SetContainer/SetContainer.css +44 -22
- package/dist/assets/Topic/Topic.css +54 -0
- package/dist/assets/WalnutIframe/wrapper.css.css +49 -0
- package/dist/assets/globals.css +13 -30
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -0
- package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
- package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
- package/dist/icons/Logos/AXB.d.ts +8 -0
- package/dist/icons/Logos/AXB.js +74 -0
- package/dist/main.d.ts +5 -0
- package/dist/main.js +69 -8
- package/dist/themes/axos.css.d.ts +38 -38
- package/dist/utils/allowedAxosDomains.js +19 -3
- package/dist/utils/appendQueryParams.js +3 -6
- package/dist/utils/{lazyImage/lazyImage.d.ts → optimizeImage/OptimizeImage.d.ts} +3 -2
- package/dist/utils/optimizeImage/OptimizeImage.js +46 -0
- package/dist/utils/optimizeImage/index.d.ts +1 -0
- package/dist/utils/optimizeImage/index.js +4 -0
- package/dist/utils/optimizeImage/optimizeImage.module.js +14 -0
- package/package.json +11 -8
- package/dist/utils/lazyImage/imageObserver.d.ts +0 -9
- package/dist/utils/lazyImage/imageObserver.js +0 -29
- package/dist/utils/lazyImage/index.d.ts +0 -2
- package/dist/utils/lazyImage/index.js +0 -7
- package/dist/utils/lazyImage/lazyImage.js +0 -26
|
@@ -3,21 +3,21 @@ import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
|
3
3
|
export declare const containerIconBillboard: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
4
4
|
variant: {
|
|
5
5
|
primary: {
|
|
6
|
-
background: `var(--${string})
|
|
6
|
+
background: `var(--${string})`;
|
|
7
7
|
border: "1px solid #D4D4D4";
|
|
8
|
-
color: `var(--${string})
|
|
8
|
+
color: `var(--${string})`;
|
|
9
9
|
};
|
|
10
10
|
secondary: {
|
|
11
|
-
background: `var(--${string})
|
|
12
|
-
color: `var(--${string})
|
|
11
|
+
background: `var(--${string})`;
|
|
12
|
+
color: `var(--${string})`;
|
|
13
13
|
};
|
|
14
14
|
tertiary: {
|
|
15
|
-
background: `var(--${string})
|
|
16
|
-
color: `var(--${string})
|
|
15
|
+
background: `var(--${string})`;
|
|
16
|
+
color: `var(--${string})`;
|
|
17
17
|
};
|
|
18
18
|
quaternary: {
|
|
19
|
-
background: `var(--${string})
|
|
20
|
-
color: `var(--${string})
|
|
19
|
+
background: `var(--${string})`;
|
|
20
|
+
color: `var(--${string})`;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
}>;
|
|
@@ -29,6 +29,7 @@ export declare const layout: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
29
29
|
};
|
|
30
30
|
}>;
|
|
31
31
|
export declare const billboard_icon: string;
|
|
32
|
+
export declare const content: string;
|
|
32
33
|
export declare const headerIconBillboard: string;
|
|
33
34
|
export declare const title: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
34
35
|
variant: {
|
|
@@ -36,12 +37,12 @@ export declare const title: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
36
37
|
selectors: {
|
|
37
38
|
[x: string]: {
|
|
38
39
|
WebkitBackgroundClip: "text";
|
|
39
|
-
backgroundImage: `var(--${string})
|
|
40
|
+
backgroundImage: `var(--${string})`;
|
|
40
41
|
WebkitTextFillColor: "transparent";
|
|
41
42
|
textShadow: "0px 0px #00000000";
|
|
42
43
|
color?: undefined;
|
|
43
44
|
} | {
|
|
44
|
-
color: `var(--${string})
|
|
45
|
+
color: `var(--${string})`;
|
|
45
46
|
WebkitBackgroundClip?: undefined;
|
|
46
47
|
backgroundImage?: undefined;
|
|
47
48
|
WebkitTextFillColor?: undefined;
|
|
@@ -53,12 +54,12 @@ export declare const title: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
53
54
|
selectors: {
|
|
54
55
|
[x: string]: {
|
|
55
56
|
WebkitBackgroundClip: "text";
|
|
56
|
-
backgroundImage: `var(--${string})
|
|
57
|
+
backgroundImage: `var(--${string})`;
|
|
57
58
|
WebkitTextFillColor: "transparent";
|
|
58
59
|
textShadow: "0px 0px #00000000";
|
|
59
60
|
color?: undefined;
|
|
60
61
|
} | {
|
|
61
|
-
color: `var(--${string})
|
|
62
|
+
color: `var(--${string})`;
|
|
62
63
|
WebkitBackgroundClip?: undefined;
|
|
63
64
|
backgroundImage?: undefined;
|
|
64
65
|
WebkitTextFillColor?: undefined;
|
|
@@ -67,14 +68,13 @@ export declare const title: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
67
68
|
};
|
|
68
69
|
};
|
|
69
70
|
tertiary: {
|
|
70
|
-
color: `var(--${string})
|
|
71
|
+
color: `var(--${string})`;
|
|
71
72
|
};
|
|
72
73
|
quaternary: {
|
|
73
|
-
color: `var(--${string})
|
|
74
|
+
color: `var(--${string})`;
|
|
74
75
|
};
|
|
75
76
|
};
|
|
76
77
|
}>;
|
|
77
|
-
export declare const content: string;
|
|
78
78
|
export declare const list: string;
|
|
79
79
|
export declare const listItem: string;
|
|
80
80
|
export declare const buttons: string;
|
|
@@ -82,22 +82,22 @@ export declare const section_text: string;
|
|
|
82
82
|
export declare const header_section: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
83
83
|
variant: {
|
|
84
84
|
primary: {
|
|
85
|
-
background: `var(--${string})
|
|
85
|
+
background: `var(--${string})`;
|
|
86
86
|
backgroundClip: "text";
|
|
87
87
|
WebkitTextFillColor: "transparent";
|
|
88
88
|
textShadow: "0px 0px #00000000";
|
|
89
89
|
};
|
|
90
90
|
secondary: {
|
|
91
|
-
background: `var(--${string})
|
|
91
|
+
background: `var(--${string})`;
|
|
92
92
|
backgroundClip: "text";
|
|
93
93
|
WebkitTextFillColor: "transparent";
|
|
94
94
|
textShadow: "0px 0px #00000000";
|
|
95
95
|
};
|
|
96
96
|
tertiary: {
|
|
97
|
-
color: `var(--${string})
|
|
97
|
+
color: `var(--${string})`;
|
|
98
98
|
};
|
|
99
99
|
quaternary: {
|
|
100
|
-
color: `var(--${string})
|
|
100
|
+
color: `var(--${string})`;
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
}>;
|
|
@@ -105,21 +105,22 @@ export declare const section_container: string;
|
|
|
105
105
|
export declare const section_body: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
106
106
|
variant: {
|
|
107
107
|
primary: {
|
|
108
|
-
background: `var(--${string})
|
|
108
|
+
background: `var(--${string})`;
|
|
109
109
|
border: "1px solid #D4D4D4";
|
|
110
110
|
};
|
|
111
111
|
secondary: {
|
|
112
|
-
background: `var(--${string})
|
|
112
|
+
background: `var(--${string})`;
|
|
113
113
|
};
|
|
114
114
|
tertiary: {
|
|
115
|
-
background: `var(--${string})
|
|
116
|
-
color: `var(--${string})
|
|
115
|
+
background: `var(--${string})`;
|
|
116
|
+
color: `var(--${string})`;
|
|
117
117
|
};
|
|
118
118
|
quaternary: {
|
|
119
|
-
background: `var(--${string})
|
|
120
|
-
color: `var(--${string})
|
|
119
|
+
background: `var(--${string})`;
|
|
120
|
+
color: `var(--${string})`;
|
|
121
121
|
};
|
|
122
122
|
};
|
|
123
123
|
}>;
|
|
124
|
+
export declare const link_wrapper: string;
|
|
124
125
|
export type ContainerVariants = RecipeVariants<typeof containerIconBillboard>;
|
|
125
126
|
export type LayoutVariants = RecipeVariants<typeof layout>;
|
|
@@ -7,9 +7,9 @@ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
|
7
7
|
var containerIconBillboard = createRuntimeFn({ defaultClassName: "_1r4ovbu0", variantClassNames: { variant: { primary: "_1r4ovbu1", secondary: "_1r4ovbu2", tertiary: "_1r4ovbu3", quaternary: "_1r4ovbu4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
8
|
var layout = createRuntimeFn({ defaultClassName: "_1r4ovbu5", variantClassNames: { side: { true: "_1r4ovbu6" } }, defaultVariants: {}, compoundVariants: [] });
|
|
9
9
|
var billboard_icon = "_1r4ovbu7";
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
10
|
+
var content = "_1r4ovbu8";
|
|
11
|
+
var headerIconBillboard = "_1r4ovbu9";
|
|
12
|
+
var title = createRuntimeFn({ defaultClassName: "_1r4ovbua", variantClassNames: { variant: { primary: "_1r4ovbub", secondary: "_1r4ovbuc", tertiary: "_1r4ovbud", quaternary: "_1r4ovbue" } }, defaultVariants: {}, compoundVariants: [] });
|
|
13
13
|
var list = "_1r4ovbuf";
|
|
14
14
|
var listItem = "_1r4ovbug";
|
|
15
15
|
var buttons = "_1r4ovbuh";
|
|
@@ -17,6 +17,7 @@ var section_text = "_1r4ovbui";
|
|
|
17
17
|
var header_section = createRuntimeFn({ defaultClassName: "_1r4ovbuj", variantClassNames: { variant: { primary: "_1r4ovbuk", secondary: "_1r4ovbul", tertiary: "_1r4ovbum", quaternary: "_1r4ovbun" } }, defaultVariants: {}, compoundVariants: [] });
|
|
18
18
|
var section_container = "_1r4ovbuo";
|
|
19
19
|
var section_body = createRuntimeFn({ defaultClassName: "_1r4ovbup", variantClassNames: { variant: { primary: "_1r4ovbuq", secondary: "_1r4ovbur", tertiary: "_1r4ovbus", quaternary: "_1r4ovbut" } }, defaultVariants: {}, compoundVariants: [] });
|
|
20
|
+
var link_wrapper = "_1r4ovbuu";
|
|
20
21
|
export {
|
|
21
22
|
billboard_icon,
|
|
22
23
|
buttons,
|
|
@@ -25,6 +26,7 @@ export {
|
|
|
25
26
|
headerIconBillboard,
|
|
26
27
|
header_section,
|
|
27
28
|
layout,
|
|
29
|
+
link_wrapper,
|
|
28
30
|
list,
|
|
29
31
|
listItem,
|
|
30
32
|
section_body,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
-
import {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
3
|
import { ImageInterface } from '.';
|
|
4
4
|
import { ContainerVariants, LayoutVariants } from './IconBillboard.css';
|
|
5
5
|
|
|
@@ -15,5 +15,4 @@ export interface FocusProps {
|
|
|
15
15
|
set?: boolean;
|
|
16
16
|
id?: string;
|
|
17
17
|
}
|
|
18
|
-
export declare const Icon: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
export declare const IconBillboard: (props: FocusProps & ContainerVariants & LayoutVariants) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { Chevron } from "../Chevron/index.js";
|
|
4
|
-
import { getVariant } from "../utils/getVariant.js";
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
5
3
|
import clsx from "clsx";
|
|
6
|
-
import {
|
|
7
|
-
import "../
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import {
|
|
11
|
-
|
|
4
|
+
import { useRef, useState, useEffect } from "react";
|
|
5
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
6
|
+
import { content, containerIconBillboard, link_wrapper } from "./IconBillboard.css.js";
|
|
7
|
+
import { LayoutSection } from "./sections/LayoutSection.js";
|
|
8
|
+
import { IconSection } from "./sections/IconSection.js";
|
|
9
|
+
import { HeaderSection } from "./sections/HeaderSection.js";
|
|
10
|
+
import { ItemsSection } from "./sections/ItemsSection.js";
|
|
11
|
+
import { useFullClick, CallToActionSection } from "./sections/CallToActionSection.js";
|
|
12
12
|
const IconBillboard = (props) => {
|
|
13
13
|
const {
|
|
14
14
|
callToActionRow,
|
|
@@ -22,89 +22,55 @@ const IconBillboard = (props) => {
|
|
|
22
22
|
id
|
|
23
23
|
} = props;
|
|
24
24
|
const variant = getVariant(fullVariant);
|
|
25
|
+
const headingRef = useRef(null);
|
|
26
|
+
const [headingLevel, setHeadingLevel] = useState("h2");
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (headingRef.current) {
|
|
29
|
+
const section = headingRef.current.closest(".section_spacer");
|
|
30
|
+
if (section) {
|
|
31
|
+
const existingH2 = section.querySelector("h2._1r4ovbuj");
|
|
32
|
+
if (existingH2) {
|
|
33
|
+
setHeadingLevel("h3");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, []);
|
|
38
|
+
const { isClickable, handleClick, chevronText } = useFullClick(callToActionRow);
|
|
25
39
|
return /* @__PURE__ */ jsxs(
|
|
26
40
|
"div",
|
|
27
41
|
{
|
|
42
|
+
id,
|
|
43
|
+
onClick: handleClick,
|
|
44
|
+
role: isClickable ? "link" : void 0,
|
|
45
|
+
title: isClickable ? chevronText : void 0,
|
|
28
46
|
className: clsx(
|
|
29
47
|
containerIconBillboard({ variant }),
|
|
30
|
-
"
|
|
31
|
-
|
|
48
|
+
`${set ? "" : "containment"}`,
|
|
49
|
+
"billboard rounded flex_col gap_24 is_icon",
|
|
50
|
+
isClickable && link_wrapper
|
|
32
51
|
),
|
|
33
|
-
id,
|
|
34
52
|
children: [
|
|
35
|
-
/* @__PURE__ */ jsxs(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */ jsx("div", { children: body })
|
|
50
|
-
] }),
|
|
51
|
-
items && items?.length > 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("ul", { className: clsx(list, "list_unstyled"), children: items?.map((item) => /* @__PURE__ */ jsx(BulletItem, { id: item.id, variant, children: item.content }, item.id)) }) })
|
|
53
|
+
/* @__PURE__ */ jsxs(LayoutSection, { side, children: [
|
|
54
|
+
/* @__PURE__ */ jsx(IconSection, { icon }),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", { className: content, children: [
|
|
56
|
+
/* @__PURE__ */ jsx(
|
|
57
|
+
HeaderSection,
|
|
58
|
+
{
|
|
59
|
+
headline,
|
|
60
|
+
headingLevel,
|
|
61
|
+
headingRef,
|
|
62
|
+
body,
|
|
63
|
+
variant
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ jsx(ItemsSection, { items, variant })
|
|
52
67
|
] })
|
|
53
68
|
] }),
|
|
54
|
-
|
|
55
|
-
({
|
|
56
|
-
id: id2,
|
|
57
|
-
variant: variant2,
|
|
58
|
-
displayText,
|
|
59
|
-
targetUrl,
|
|
60
|
-
type,
|
|
61
|
-
marketingIntersitial,
|
|
62
|
-
newTab,
|
|
63
|
-
...rest
|
|
64
|
-
}) => type === "Button" ? rest.as == "button" ? /* @__PURE__ */ jsx(
|
|
65
|
-
Button,
|
|
66
|
-
{
|
|
67
|
-
targetUrl,
|
|
68
|
-
color: getVariant(variant2),
|
|
69
|
-
size: "medium",
|
|
70
|
-
rounded: "medium",
|
|
71
|
-
marketingIntersitial,
|
|
72
|
-
newTab,
|
|
73
|
-
as: "button",
|
|
74
|
-
type: "button",
|
|
75
|
-
action: rest?.onClick,
|
|
76
|
-
children: displayText
|
|
77
|
-
},
|
|
78
|
-
id2
|
|
79
|
-
) : /* @__PURE__ */ jsx(
|
|
80
|
-
Button,
|
|
81
|
-
{
|
|
82
|
-
targetUrl,
|
|
83
|
-
color: getVariant(variant2),
|
|
84
|
-
size: "medium",
|
|
85
|
-
rounded: "medium",
|
|
86
|
-
marketingIntersitial,
|
|
87
|
-
newTab,
|
|
88
|
-
children: displayText
|
|
89
|
-
},
|
|
90
|
-
id2
|
|
91
|
-
) : /* @__PURE__ */ jsx(
|
|
92
|
-
Chevron,
|
|
93
|
-
{
|
|
94
|
-
targetUrl,
|
|
95
|
-
variant: getVariant(variant2),
|
|
96
|
-
marketingIntersitial,
|
|
97
|
-
newTab,
|
|
98
|
-
children: displayText
|
|
99
|
-
},
|
|
100
|
-
id2
|
|
101
|
-
)
|
|
102
|
-
) })
|
|
69
|
+
/* @__PURE__ */ jsx(CallToActionSection, { callToActionRow })
|
|
103
70
|
]
|
|
104
71
|
}
|
|
105
72
|
);
|
|
106
73
|
};
|
|
107
74
|
export {
|
|
108
|
-
Icon,
|
|
109
75
|
IconBillboard
|
|
110
76
|
};
|
|
@@ -22,7 +22,7 @@ const IconBillboardSet = ({
|
|
|
22
22
|
headline && /* @__PURE__ */ jsx(
|
|
23
23
|
"h2",
|
|
24
24
|
{
|
|
25
|
-
className: `
|
|
25
|
+
className: `header_1 ${header_section({ variant: billboard_variant })}`,
|
|
26
26
|
children: headline
|
|
27
27
|
}
|
|
28
28
|
),
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { billboard_icon, buttons, containerIconBillboard, content, headerIconBillboard, header_section, layout, list, listItem, section_body, section_container, section_text, title } from "./IconBillboard.css.js";
|
|
1
|
+
import { IconBillboard } from "./IconBillboard.js";
|
|
2
|
+
import { billboard_icon, buttons, containerIconBillboard, content, headerIconBillboard, header_section, layout, link_wrapper, list, listItem, section_body, section_container, section_text, title } from "./IconBillboard.css.js";
|
|
3
3
|
import { IconBillboardSet } from "./IconBillboardSet.js";
|
|
4
4
|
export {
|
|
5
|
-
Icon,
|
|
6
5
|
IconBillboard,
|
|
7
6
|
IconBillboardSet,
|
|
8
7
|
billboard_icon,
|
|
@@ -12,6 +11,7 @@ export {
|
|
|
12
11
|
headerIconBillboard,
|
|
13
12
|
header_section,
|
|
14
13
|
layout,
|
|
14
|
+
link_wrapper,
|
|
15
15
|
list,
|
|
16
16
|
listItem,
|
|
17
17
|
section_body,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChevronProps } from '../../Chevron/Chevron.interface';
|
|
2
|
+
|
|
3
|
+
interface CallToActionSectionProps {
|
|
4
|
+
callToActionRow?: ChevronProps[];
|
|
5
|
+
}
|
|
6
|
+
export declare const useFullClick: (callToActionRow?: ChevronProps[]) => {
|
|
7
|
+
isClickable: boolean;
|
|
8
|
+
handleClick: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
9
|
+
chevronText: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const CallToActionSection: ({ callToActionRow, }: CallToActionSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Button } from "../../Button/Button.js";
|
|
4
|
+
import "../../Button/Button.css.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import "react-use";
|
|
7
|
+
import { buttons } from "../IconBillboard.css.js";
|
|
8
|
+
import { Chevron } from "../../Chevron/index.js";
|
|
9
|
+
import { getVariant } from "../../utils/getVariant.js";
|
|
10
|
+
const useFullClick = (callToActionRow) => {
|
|
11
|
+
return useMemo(() => {
|
|
12
|
+
let chevronCount = 0;
|
|
13
|
+
let buttonCount = 0;
|
|
14
|
+
let chevronUrl;
|
|
15
|
+
let chevronText;
|
|
16
|
+
if (callToActionRow && callToActionRow.length > 0) {
|
|
17
|
+
callToActionRow.forEach((cta) => {
|
|
18
|
+
if (cta.type === "Button") {
|
|
19
|
+
buttonCount++;
|
|
20
|
+
} else {
|
|
21
|
+
chevronCount++;
|
|
22
|
+
chevronUrl = cta.targetUrl;
|
|
23
|
+
chevronText = cta.displayText;
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
const isClickable = chevronCount === 1 && buttonCount === 0 && typeof chevronUrl === "string" && chevronUrl.length > 0;
|
|
28
|
+
const handleClick = (e) => {
|
|
29
|
+
if (!isClickable) return;
|
|
30
|
+
const linkEl = e.currentTarget.querySelector("a");
|
|
31
|
+
if (linkEl && linkEl instanceof HTMLAnchorElement) {
|
|
32
|
+
window.location.href = linkEl.href;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
isClickable,
|
|
37
|
+
handleClick,
|
|
38
|
+
chevronText
|
|
39
|
+
};
|
|
40
|
+
}, [callToActionRow]);
|
|
41
|
+
};
|
|
42
|
+
const CallToActionSection = ({
|
|
43
|
+
callToActionRow
|
|
44
|
+
}) => {
|
|
45
|
+
if (!Array.isArray(callToActionRow) || callToActionRow.length === 0) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return /* @__PURE__ */ jsx("div", { className: buttons, children: callToActionRow.map(
|
|
49
|
+
({
|
|
50
|
+
id,
|
|
51
|
+
variant,
|
|
52
|
+
displayText,
|
|
53
|
+
targetUrl,
|
|
54
|
+
type,
|
|
55
|
+
marketingIntersitial,
|
|
56
|
+
newTab,
|
|
57
|
+
...rest
|
|
58
|
+
}) => type === "Button" ? rest.as == "button" ? /* @__PURE__ */ jsx(
|
|
59
|
+
Button,
|
|
60
|
+
{
|
|
61
|
+
targetUrl,
|
|
62
|
+
color: getVariant(variant),
|
|
63
|
+
size: "medium",
|
|
64
|
+
rounded: "medium",
|
|
65
|
+
marketingIntersitial,
|
|
66
|
+
newTab,
|
|
67
|
+
as: "button",
|
|
68
|
+
type: "button",
|
|
69
|
+
action: rest?.onClick,
|
|
70
|
+
children: displayText
|
|
71
|
+
},
|
|
72
|
+
id
|
|
73
|
+
) : /* @__PURE__ */ jsx(
|
|
74
|
+
Button,
|
|
75
|
+
{
|
|
76
|
+
targetUrl,
|
|
77
|
+
color: getVariant(variant),
|
|
78
|
+
size: "medium",
|
|
79
|
+
rounded: "medium",
|
|
80
|
+
marketingIntersitial,
|
|
81
|
+
newTab,
|
|
82
|
+
children: displayText
|
|
83
|
+
},
|
|
84
|
+
id
|
|
85
|
+
) : /* @__PURE__ */ jsx(
|
|
86
|
+
Chevron,
|
|
87
|
+
{
|
|
88
|
+
targetUrl,
|
|
89
|
+
variant: getVariant(variant),
|
|
90
|
+
marketingIntersitial,
|
|
91
|
+
newTab,
|
|
92
|
+
children: displayText
|
|
93
|
+
},
|
|
94
|
+
id
|
|
95
|
+
)
|
|
96
|
+
) });
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
CallToActionSection,
|
|
100
|
+
useFullClick
|
|
101
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode, Ref } from 'react';
|
|
2
|
+
import { QuaternaryTypes } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export interface HeaderSectionProps {
|
|
5
|
+
body?: ReactNode | undefined;
|
|
6
|
+
headingLevel: "h2" | "h3";
|
|
7
|
+
headingRef: Ref<HTMLHeadingElement>;
|
|
8
|
+
headline?: ReactNode | undefined;
|
|
9
|
+
variant: QuaternaryTypes;
|
|
10
|
+
}
|
|
11
|
+
export declare const HeaderSection: ({ body, headingLevel, headingRef, headline, variant, }: HeaderSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { headerIconBillboard, title } from "../IconBillboard.css.js";
|
|
4
|
+
const HeaderSection = ({
|
|
5
|
+
body,
|
|
6
|
+
headingLevel,
|
|
7
|
+
headingRef,
|
|
8
|
+
headline,
|
|
9
|
+
variant
|
|
10
|
+
}) => /* @__PURE__ */ jsxs("div", { className: headerIconBillboard, children: [
|
|
11
|
+
headline && React.createElement(
|
|
12
|
+
headingLevel,
|
|
13
|
+
{
|
|
14
|
+
ref: headingRef,
|
|
15
|
+
className: `${title({ variant })}`
|
|
16
|
+
},
|
|
17
|
+
headline
|
|
18
|
+
),
|
|
19
|
+
body && /* @__PURE__ */ jsx("div", { children: body })
|
|
20
|
+
] });
|
|
21
|
+
export {
|
|
22
|
+
HeaderSection
|
|
23
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { billboard_icon } from "../IconBillboard.css.js";
|
|
3
|
+
const IconSection = ({ icon }) => {
|
|
4
|
+
if (!icon) return null;
|
|
5
|
+
return /* @__PURE__ */ jsx("div", { className: billboard_icon, role: "presentation", children: /* @__PURE__ */ jsx(
|
|
6
|
+
"img",
|
|
7
|
+
{
|
|
8
|
+
src: icon?.src,
|
|
9
|
+
alt: icon?.alt ?? "",
|
|
10
|
+
className: "img_fluid",
|
|
11
|
+
height: icon?.height,
|
|
12
|
+
width: icon?.width
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
IconSection
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { QuaternaryTypes } from '../../utils';
|
|
3
|
+
|
|
4
|
+
export interface ItemsSectionProps {
|
|
5
|
+
items?: {
|
|
6
|
+
id: string;
|
|
7
|
+
content: ReactNode;
|
|
8
|
+
}[];
|
|
9
|
+
variant: QuaternaryTypes;
|
|
10
|
+
}
|
|
11
|
+
export declare const ItemsSection: ({ items, variant }: ItemsSectionProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { list } from "../IconBillboard.css.js";
|
|
4
|
+
import { BulletItem } from "../../BulletItem/BulletItem.js";
|
|
5
|
+
const ItemsSection = ({ items, variant }) => {
|
|
6
|
+
if (!items || items.length === 0) return null;
|
|
7
|
+
return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("ul", { className: clsx(list, "list_unstyled"), children: items.map((item) => /* @__PURE__ */ jsx(BulletItem, { id: item.id, variant, children: item.content }, item.id)) }) });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
ItemsSection
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ModalWrapperProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
modalRef: React.RefObject<HTMLDivElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const ModalWrapper: ({ children, onClose, modalRef, }: ModalWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|