@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
@@ -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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
6
+ background: `var(--${string})`;
7
7
  border: "1px solid #D4D4D4";
8
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
8
+ color: `var(--${string})`;
9
9
  };
10
10
  secondary: {
11
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
12
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
11
+ background: `var(--${string})`;
12
+ color: `var(--${string})`;
13
13
  };
14
14
  tertiary: {
15
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
16
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
15
+ background: `var(--${string})`;
16
+ color: `var(--${string})`;
17
17
  };
18
18
  quaternary: {
19
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
40
+ backgroundImage: `var(--${string})`;
40
41
  WebkitTextFillColor: "transparent";
41
42
  textShadow: "0px 0px #00000000";
42
43
  color?: undefined;
43
44
  } | {
44
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
57
+ backgroundImage: `var(--${string})`;
57
58
  WebkitTextFillColor: "transparent";
58
59
  textShadow: "0px 0px #00000000";
59
60
  color?: undefined;
60
61
  } | {
61
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
71
+ color: `var(--${string})`;
71
72
  };
72
73
  quaternary: {
73
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
97
+ color: `var(--${string})`;
98
98
  };
99
99
  quaternary: {
100
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
108
+ background: `var(--${string})`;
109
109
  border: "1px solid #D4D4D4";
110
110
  };
111
111
  secondary: {
112
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
112
+ background: `var(--${string})`;
113
113
  };
114
114
  tertiary: {
115
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
116
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
115
+ background: `var(--${string})`;
116
+ color: `var(--${string})`;
117
117
  };
118
118
  quaternary: {
119
- background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
120
- color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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 headerIconBillboard = "_1r4ovbu8";
11
- var title = createRuntimeFn({ defaultClassName: "_1r4ovbu9", variantClassNames: { variant: { primary: "_1r4ovbua", secondary: "_1r4ovbub", tertiary: "_1r4ovbuc", quaternary: "_1r4ovbud" } }, defaultVariants: {}, compoundVariants: [] });
12
- var content = "_1r4ovbue";
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 { PropsWithChildren, ReactNode } from 'react';
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;
@@ -12,6 +12,7 @@ export interface IconBillboardSet {
12
12
  additionalDetails: ReactNode | string;
13
13
  side: boolean;
14
14
  set?: boolean;
15
+ numberOfColumns?: string;
15
16
  }
16
17
  export interface IconBillboardProps {
17
18
  id?: string;
@@ -1,14 +1,14 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { BulletItem } from "../BulletItem/BulletItem.js";
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 { Button } from "../Button/Button.js";
7
- import "../Button/Button.css.js";
8
- import "react";
9
- import "react-use";
10
- import { billboard_icon, layout, headerIconBillboard, title, list, content, buttons, containerIconBillboard } from "./IconBillboard.css.js";
11
- const Icon = ({ children }) => /* @__PURE__ */ jsx("div", { className: billboard_icon, role: "presentation", children });
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
- "billboard",
31
- `${set ? "" : "containment"}`
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("div", { className: `middle ${layout({ side })}`, children: [
36
- icon && /* @__PURE__ */ jsx("div", { className: billboard_icon, role: "presentation", children: /* @__PURE__ */ jsx(
37
- "img",
38
- {
39
- src: icon?.src,
40
- className: "img_fluid",
41
- alt: icon?.alt ?? "",
42
- height: icon?.height,
43
- width: icon?.width
44
- }
45
- ) }),
46
- /* @__PURE__ */ jsxs("div", { className: clsx(content), children: [
47
- /* @__PURE__ */ jsxs("div", { className: headerIconBillboard, children: [
48
- /* @__PURE__ */ jsx("div", { className: title({ variant }), children: headline }),
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
- callToActionRow && /* @__PURE__ */ jsx("div", { className: buttons, children: callToActionRow.map(
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: `header_2 ${header_section({ variant: billboard_variant })}`,
25
+ className: `header_1 ${header_section({ variant: billboard_variant })}`,
26
26
  children: headline
27
27
  }
28
28
  ),
@@ -1,8 +1,7 @@
1
- import { Icon, IconBillboard } from "./IconBillboard.js";
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,7 @@
1
+ import { ImageInterface } from '..';
2
+
3
+ interface IconSectionProps {
4
+ icon?: ImageInterface;
5
+ }
6
+ export declare const IconSection: ({ icon }: IconSectionProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -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,8 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ interface LayoutSectionProps {
4
+ side: boolean;
5
+ children: ReactNode;
6
+ }
7
+ export declare const LayoutSection: ({ side, children }: LayoutSectionProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { layout } from "../IconBillboard.css.js";
3
+ const LayoutSection = ({ side, children }) => /* @__PURE__ */ jsx("div", { className: `flex_col middle ${layout({ side })}`, children });
4
+ export {
5
+ LayoutSection
6
+ };
@@ -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 {};