@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
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const container: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
primary: {
|
|
4
|
-
background: `var(--${string})
|
|
5
|
-
color: `var(--${string})
|
|
4
|
+
background: `var(--${string})`;
|
|
5
|
+
color: `var(--${string})`;
|
|
6
6
|
};
|
|
7
7
|
secondary: {
|
|
8
|
-
background: `var(--${string})
|
|
9
|
-
color: `var(--${string})
|
|
8
|
+
background: `var(--${string})`;
|
|
9
|
+
color: `var(--${string})`;
|
|
10
10
|
};
|
|
11
11
|
tertiary: {
|
|
12
|
-
background: `var(--${string})
|
|
13
|
-
color: `var(--${string})
|
|
12
|
+
background: `var(--${string})`;
|
|
13
|
+
color: `var(--${string})`;
|
|
14
14
|
};
|
|
15
15
|
quaternary: {
|
|
16
|
-
background: `var(--${string})
|
|
17
|
-
color: `var(--${string})
|
|
16
|
+
background: `var(--${string})`;
|
|
17
|
+
color: `var(--${string})`;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}>;
|
|
@@ -42,12 +42,12 @@ export declare const header_theme: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
42
42
|
selectors: {
|
|
43
43
|
[x: string]: {
|
|
44
44
|
WebkitBackgroundClip: "text";
|
|
45
|
-
backgroundImage: `var(--${string})
|
|
45
|
+
backgroundImage: `var(--${string})`;
|
|
46
46
|
WebkitTextFillColor: "transparent";
|
|
47
47
|
textShadow: "0px 0px #00000000";
|
|
48
48
|
color?: undefined;
|
|
49
49
|
} | {
|
|
50
|
-
color: `var(--${string})
|
|
50
|
+
color: `var(--${string})`;
|
|
51
51
|
WebkitBackgroundClip?: undefined;
|
|
52
52
|
backgroundImage?: undefined;
|
|
53
53
|
WebkitTextFillColor?: undefined;
|
|
@@ -59,12 +59,12 @@ export declare const header_theme: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
59
59
|
selectors: {
|
|
60
60
|
[x: string]: {
|
|
61
61
|
WebkitBackgroundClip: "text";
|
|
62
|
-
backgroundImage: `var(--${string})
|
|
62
|
+
backgroundImage: `var(--${string})`;
|
|
63
63
|
WebkitTextFillColor: "transparent";
|
|
64
64
|
textShadow: "0px 0px #00000000";
|
|
65
65
|
color?: undefined;
|
|
66
66
|
} | {
|
|
67
|
-
color: `var(--${string})
|
|
67
|
+
color: `var(--${string})`;
|
|
68
68
|
WebkitBackgroundClip?: undefined;
|
|
69
69
|
backgroundImage?: undefined;
|
|
70
70
|
WebkitTextFillColor?: undefined;
|
|
@@ -73,10 +73,10 @@ export declare const header_theme: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
73
73
|
};
|
|
74
74
|
};
|
|
75
75
|
tertiary: {
|
|
76
|
-
color: `var(--${string})
|
|
76
|
+
color: `var(--${string})`;
|
|
77
77
|
};
|
|
78
78
|
quaternary: {
|
|
79
|
-
color: `var(--${string})
|
|
79
|
+
color: `var(--${string})`;
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
}>;
|
|
@@ -16,9 +16,10 @@ const ApyCalculator = ({
|
|
|
16
16
|
variant
|
|
17
17
|
}) => {
|
|
18
18
|
const calculator_variant = getVariant(variant);
|
|
19
|
+
const AXOS_ONE_APY = +process.env.NEXT_PUBLIC_AXOS_ONE_APY;
|
|
19
20
|
const [initialDeposit, setInititalDeposit] = useState(1e3);
|
|
20
|
-
const [APR, setAPR] = useState(
|
|
21
|
-
const [APY, setAPY] = useState(
|
|
21
|
+
const [APR, setAPR] = useState(AXOS_ONE_APY - 0.1);
|
|
22
|
+
const [APY, setAPY] = useState(AXOS_ONE_APY);
|
|
22
23
|
const [months, setMonths] = useState(12);
|
|
23
24
|
const [compounding, setCompounding] = useState(360);
|
|
24
25
|
const [monthlyDeposits, setMonthlyDeposits] = useState(100);
|
|
@@ -263,16 +264,23 @@ const ApyCalculator = ({
|
|
|
263
264
|
{
|
|
264
265
|
className: `${container({ variant: getVariant(variant) })} ${marketingTile} rounded bordered`,
|
|
265
266
|
children: [
|
|
266
|
-
/* @__PURE__ */ jsx("div", { className: `${content} ${bodyContent}`, children: /* @__PURE__ */ jsxs(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
267
|
+
/* @__PURE__ */ jsx("div", { className: `${content} ${bodyContent}`, children: /* @__PURE__ */ jsxs(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
className: headerIconBillboard,
|
|
271
|
+
style: { textAlign: "left" },
|
|
272
|
+
children: [
|
|
273
|
+
/* @__PURE__ */ jsx(
|
|
274
|
+
"div",
|
|
275
|
+
{
|
|
276
|
+
className: `header_3 ${header_theme({ variant: calculator_variant })}`,
|
|
277
|
+
children: headline
|
|
278
|
+
}
|
|
279
|
+
),
|
|
280
|
+
/* @__PURE__ */ jsx("div", { children: bodyCopy })
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
) }),
|
|
276
284
|
callToActionRow && /* @__PURE__ */ jsx("div", { className: `${buttons} middle`, children: callToActionRow.map(
|
|
277
285
|
({
|
|
278
286
|
id: id2,
|
|
@@ -14,32 +14,32 @@ export declare const ax1_calc_text: string;
|
|
|
14
14
|
export declare const ax1_description_text: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
15
15
|
variant: {
|
|
16
16
|
primary: {
|
|
17
|
-
color: `var(--${string})
|
|
17
|
+
color: `var(--${string})`;
|
|
18
18
|
};
|
|
19
19
|
secondary: {
|
|
20
|
-
color: `var(--${string})
|
|
20
|
+
color: `var(--${string})`;
|
|
21
21
|
};
|
|
22
22
|
tertiary: {
|
|
23
|
-
color: `var(--${string})
|
|
23
|
+
color: `var(--${string})`;
|
|
24
24
|
};
|
|
25
25
|
quaternary: {
|
|
26
|
-
color: `var(--${string})
|
|
26
|
+
color: `var(--${string})`;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
}>;
|
|
30
30
|
export declare const ax1_calc_disclosure: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
31
31
|
variant: {
|
|
32
32
|
primary: {
|
|
33
|
-
color: `var(--${string})
|
|
33
|
+
color: `var(--${string})`;
|
|
34
34
|
};
|
|
35
35
|
secondary: {
|
|
36
|
-
color: `var(--${string})
|
|
36
|
+
color: `var(--${string})`;
|
|
37
37
|
};
|
|
38
38
|
tertiary: {
|
|
39
|
-
color: `var(--${string})
|
|
39
|
+
color: `var(--${string})`;
|
|
40
40
|
};
|
|
41
41
|
quaternary: {
|
|
42
|
-
color: `var(--${string})
|
|
42
|
+
color: `var(--${string})`;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
@@ -27,9 +27,10 @@ const AxosOneCalculator = ({
|
|
|
27
27
|
variant
|
|
28
28
|
}) => {
|
|
29
29
|
const calc_variant = getVariant(variant);
|
|
30
|
+
const AXOS_ONE_APY = +process.env.NEXT_PUBLIC_AXOS_ONE_APY;
|
|
30
31
|
const [balance, setBalance] = useState(1e4);
|
|
31
|
-
const [axbAPY, _setAxbAPY] = useState(
|
|
32
|
-
const [axbEarning, setAxbEarning] = useState(
|
|
32
|
+
const [axbAPY, _setAxbAPY] = useState(AXOS_ONE_APY);
|
|
33
|
+
const [axbEarning, setAxbEarning] = useState(AXOS_ONE_APY * 100);
|
|
33
34
|
const [chaseAPY, _setChaseAPY] = useState(0.01);
|
|
34
35
|
const [chaseEarning, setChaseEarning] = useState(1);
|
|
35
36
|
const [bofaAPY, _setBofaAPY] = useState(0.01);
|
|
@@ -45,7 +46,7 @@ const AxosOneCalculator = ({
|
|
|
45
46
|
setBalance(newValue);
|
|
46
47
|
return newValue;
|
|
47
48
|
};
|
|
48
|
-
const
|
|
49
|
+
const calculateBalance = (amount) => {
|
|
49
50
|
setAxbEarning(axbAPY / 100 * amount);
|
|
50
51
|
setChaseEarning(chaseAPY / 100 * amount);
|
|
51
52
|
setBofaEarning(bofaAPY / 100 * amount);
|
|
@@ -91,7 +92,14 @@ const AxosOneCalculator = ({
|
|
|
91
92
|
{
|
|
92
93
|
className: ax1_calculator_button,
|
|
93
94
|
size: "large",
|
|
94
|
-
action: () =>
|
|
95
|
+
action: () => calculateBalance(balance),
|
|
96
|
+
tabIndex: 0,
|
|
97
|
+
role: "button",
|
|
98
|
+
onKeyDown: (event) => {
|
|
99
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
100
|
+
calculateBalance(balance);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
95
103
|
children: "Calculate"
|
|
96
104
|
}
|
|
97
105
|
)
|
|
@@ -133,16 +141,16 @@ const AxosOneCalculator = ({
|
|
|
133
141
|
] }),
|
|
134
142
|
/* @__PURE__ */ jsxs(TableRow, { children: [
|
|
135
143
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
136
|
-
"
|
|
144
|
+
"Wells Fargo",
|
|
137
145
|
/* @__PURE__ */ jsx("sup", { children: "2" })
|
|
138
146
|
] }),
|
|
139
147
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
140
|
-
|
|
148
|
+
fargoAPY.toFixed(2),
|
|
141
149
|
"%"
|
|
142
150
|
] }),
|
|
143
151
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
144
152
|
"$",
|
|
145
|
-
|
|
153
|
+
fargoEarning.toLocaleString(void 0, {
|
|
146
154
|
maximumFractionDigits: 2
|
|
147
155
|
})
|
|
148
156
|
] })
|
|
@@ -165,16 +173,16 @@ const AxosOneCalculator = ({
|
|
|
165
173
|
] }),
|
|
166
174
|
/* @__PURE__ */ jsxs(TableRow, { children: [
|
|
167
175
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
168
|
-
"
|
|
176
|
+
"Chase",
|
|
169
177
|
/* @__PURE__ */ jsx("sup", { children: "4" })
|
|
170
178
|
] }),
|
|
171
179
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
172
|
-
|
|
180
|
+
chaseAPY.toFixed(2),
|
|
173
181
|
"%"
|
|
174
182
|
] }),
|
|
175
183
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
176
184
|
"$",
|
|
177
|
-
|
|
185
|
+
chaseEarning.toLocaleString(void 0, {
|
|
178
186
|
maximumFractionDigits: 2
|
|
179
187
|
})
|
|
180
188
|
] })
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const container: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
2
|
variant: {
|
|
3
3
|
primary: {
|
|
4
|
-
background: `var(--${string})
|
|
5
|
-
color: `var(--${string})
|
|
4
|
+
background: `var(--${string})`;
|
|
5
|
+
color: `var(--${string})`;
|
|
6
6
|
};
|
|
7
7
|
secondary: {
|
|
8
|
-
background: `var(--${string})
|
|
9
|
-
color: `var(--${string})
|
|
8
|
+
background: `var(--${string})`;
|
|
9
|
+
color: `var(--${string})`;
|
|
10
10
|
};
|
|
11
11
|
tertiary: {
|
|
12
|
-
background: `var(--${string})
|
|
13
|
-
color: `var(--${string})
|
|
12
|
+
background: `var(--${string})`;
|
|
13
|
+
color: `var(--${string})`;
|
|
14
14
|
};
|
|
15
15
|
quaternary: {
|
|
16
|
-
background: `var(--${string})
|
|
17
|
-
color: `var(--${string})
|
|
16
|
+
background: `var(--${string})`;
|
|
17
|
+
color: `var(--${string})`;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}>;
|
|
@@ -36,12 +36,12 @@ export declare const header_calc: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
36
36
|
readonly selectors: {
|
|
37
37
|
[x: string]: {
|
|
38
38
|
WebkitBackgroundClip: string;
|
|
39
|
-
backgroundImage: `var(--${string})
|
|
39
|
+
backgroundImage: `var(--${string})`;
|
|
40
40
|
WebkitTextFillColor: string;
|
|
41
41
|
textShadow: string;
|
|
42
42
|
color?: undefined;
|
|
43
43
|
} | {
|
|
44
|
-
color: `var(--${string})
|
|
44
|
+
color: `var(--${string})`;
|
|
45
45
|
WebkitBackgroundClip?: undefined;
|
|
46
46
|
backgroundImage?: undefined;
|
|
47
47
|
WebkitTextFillColor?: undefined;
|
|
@@ -53,12 +53,12 @@ export declare const header_calc: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
53
53
|
selectors: {
|
|
54
54
|
[x: string]: {
|
|
55
55
|
WebkitBackgroundClip: "text";
|
|
56
|
-
backgroundImage: `var(--${string})
|
|
56
|
+
backgroundImage: `var(--${string})`;
|
|
57
57
|
WebkitTextFillColor: "transparent";
|
|
58
58
|
textShadow: "0px 0px #00000000";
|
|
59
59
|
color?: undefined;
|
|
60
60
|
} | {
|
|
61
|
-
color: `var(--${string})
|
|
61
|
+
color: `var(--${string})`;
|
|
62
62
|
WebkitBackgroundClip?: undefined;
|
|
63
63
|
backgroundImage?: undefined;
|
|
64
64
|
WebkitTextFillColor?: undefined;
|
|
@@ -67,10 +67,10 @@ export declare const header_calc: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
69
|
tertiary: {
|
|
70
|
-
color: `var(--${string})
|
|
70
|
+
color: `var(--${string})`;
|
|
71
71
|
};
|
|
72
72
|
quaternary: {
|
|
73
|
-
color: `var(--${string})
|
|
73
|
+
color: `var(--${string})`;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
}>;
|
|
@@ -78,32 +78,32 @@ export declare const calc_text: string;
|
|
|
78
78
|
export declare const description_text: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
79
79
|
variant: {
|
|
80
80
|
primary: {
|
|
81
|
-
color: `var(--${string})
|
|
81
|
+
color: `var(--${string})`;
|
|
82
82
|
};
|
|
83
83
|
secondary: {
|
|
84
|
-
color: `var(--${string})
|
|
84
|
+
color: `var(--${string})`;
|
|
85
85
|
};
|
|
86
86
|
tertiary: {
|
|
87
|
-
color: `var(--${string})
|
|
87
|
+
color: `var(--${string})`;
|
|
88
88
|
};
|
|
89
89
|
quaternary: {
|
|
90
|
-
color: `var(--${string})
|
|
90
|
+
color: `var(--${string})`;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
}>;
|
|
94
94
|
export declare const calc_disclosure: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
95
95
|
variant: {
|
|
96
96
|
primary: {
|
|
97
|
-
color: `var(--${string})
|
|
97
|
+
color: `var(--${string})`;
|
|
98
98
|
};
|
|
99
99
|
secondary: {
|
|
100
|
-
color: `var(--${string})
|
|
100
|
+
color: `var(--${string})`;
|
|
101
101
|
};
|
|
102
102
|
tertiary: {
|
|
103
|
-
color: `var(--${string})
|
|
103
|
+
color: `var(--${string})`;
|
|
104
104
|
};
|
|
105
105
|
quaternary: {
|
|
106
|
-
color: `var(--${string})
|
|
106
|
+
color: `var(--${string})`;
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
}>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare const calc_container: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
+
variant: {
|
|
3
|
+
primary: {
|
|
4
|
+
background: `var(--${string})`;
|
|
5
|
+
color: `var(--${string})`;
|
|
6
|
+
};
|
|
7
|
+
secondary: {
|
|
8
|
+
background: `var(--${string})`;
|
|
9
|
+
color: `var(--${string})`;
|
|
10
|
+
};
|
|
11
|
+
tertiary: {
|
|
12
|
+
background: `var(--${string})`;
|
|
13
|
+
color: `var(--${string})`;
|
|
14
|
+
};
|
|
15
|
+
quaternary: {
|
|
16
|
+
background: `var(--${string})`;
|
|
17
|
+
color: `var(--${string})`;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
export declare const apy_calculator: string;
|
|
22
|
+
export declare const calculator_section: string;
|
|
23
|
+
export declare const section_header: string;
|
|
24
|
+
export declare const buydown_calculator_form: string;
|
|
25
|
+
export declare const errorTag: string;
|
|
26
|
+
export declare const form_wrapper: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
27
|
+
variant: {
|
|
28
|
+
primary: {
|
|
29
|
+
color: `var(--${string})`;
|
|
30
|
+
};
|
|
31
|
+
secondary: {
|
|
32
|
+
color: `var(--${string})`;
|
|
33
|
+
};
|
|
34
|
+
tertiary: {
|
|
35
|
+
color: `var(--${string})`;
|
|
36
|
+
};
|
|
37
|
+
quaternary: {
|
|
38
|
+
color: `var(--${string})`;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}>;
|
|
42
|
+
export declare const fieldset: string;
|
|
43
|
+
export declare const row_form: string;
|
|
44
|
+
export declare const checkbox_row: string;
|
|
45
|
+
export declare const calculate_row: string;
|
|
46
|
+
export declare const relative: string;
|
|
47
|
+
export declare const label_symbol: string;
|
|
48
|
+
export declare const cash: string;
|
|
49
|
+
export declare const percent: string;
|
|
50
|
+
export declare const prefix_pad: string;
|
|
51
|
+
export declare const submit_section: string;
|
|
52
|
+
export declare const span_12: string;
|
|
53
|
+
export declare const form_disclosure: string;
|
|
54
|
+
export declare const bodyContent: string;
|
|
55
|
+
export declare const theme_header: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
56
|
+
variant: {
|
|
57
|
+
primary: {
|
|
58
|
+
selectors: {
|
|
59
|
+
[x: string]: {
|
|
60
|
+
WebkitBackgroundClip: "text";
|
|
61
|
+
backgroundImage: `var(--${string})`;
|
|
62
|
+
WebkitTextFillColor: "transparent";
|
|
63
|
+
textShadow: "0px 0px #00000000";
|
|
64
|
+
color?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
color: `var(--${string})`;
|
|
67
|
+
WebkitBackgroundClip?: undefined;
|
|
68
|
+
backgroundImage?: undefined;
|
|
69
|
+
WebkitTextFillColor?: undefined;
|
|
70
|
+
textShadow?: undefined;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
secondary: {
|
|
75
|
+
selectors: {
|
|
76
|
+
[x: string]: {
|
|
77
|
+
WebkitBackgroundClip: "text";
|
|
78
|
+
backgroundImage: `var(--${string})`;
|
|
79
|
+
WebkitTextFillColor: "transparent";
|
|
80
|
+
textShadow: "0px 0px #00000000";
|
|
81
|
+
color?: undefined;
|
|
82
|
+
} | {
|
|
83
|
+
color: `var(--${string})`;
|
|
84
|
+
WebkitBackgroundClip?: undefined;
|
|
85
|
+
backgroundImage?: undefined;
|
|
86
|
+
WebkitTextFillColor?: undefined;
|
|
87
|
+
textShadow?: undefined;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
tertiary: {
|
|
92
|
+
color: `var(--${string})`;
|
|
93
|
+
};
|
|
94
|
+
quaternary: {
|
|
95
|
+
color: `var(--${string})`;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}>;
|
|
99
|
+
export declare const mt_8: string;
|
|
100
|
+
export declare const pis_0: string;
|
|
101
|
+
export declare const limit_one: string;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import '../../assets/Calculators/BuyDownCalculator/BuyDownCalculator.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
7
|
+
var calc_container = createRuntimeFn({ defaultClassName: "n9fzuw0", variantClassNames: { variant: { primary: "n9fzuw1", secondary: "n9fzuw2", tertiary: "n9fzuw3", quaternary: "n9fzuw4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
|
+
var apy_calculator = "n9fzuw5";
|
|
9
|
+
var calculator_section = "n9fzuw6";
|
|
10
|
+
var section_header = "n9fzuw7";
|
|
11
|
+
var buydown_calculator_form = "n9fzuw8";
|
|
12
|
+
var errorTag = "n9fzuw9";
|
|
13
|
+
var form_wrapper = createRuntimeFn({ defaultClassName: "n9fzuwa", variantClassNames: { variant: { primary: "n9fzuwb", secondary: "n9fzuwc", tertiary: "n9fzuwd", quaternary: "n9fzuwe" } }, defaultVariants: {}, compoundVariants: [] });
|
|
14
|
+
var fieldset = "n9fzuwf";
|
|
15
|
+
var row_form = "n9fzuwg";
|
|
16
|
+
var checkbox_row = "n9fzuwh";
|
|
17
|
+
var calculate_row = "n9fzuwi";
|
|
18
|
+
var relative = "n9fzuwj";
|
|
19
|
+
var label_symbol = "n9fzuwk";
|
|
20
|
+
var cash = "n9fzuwl";
|
|
21
|
+
var percent = "n9fzuwm";
|
|
22
|
+
var prefix_pad = "n9fzuwn";
|
|
23
|
+
var submit_section = "n9fzuwo";
|
|
24
|
+
var span_12 = "n9fzuwp";
|
|
25
|
+
var form_disclosure = "n9fzuwq";
|
|
26
|
+
var bodyContent = "n9fzuwr";
|
|
27
|
+
var theme_header = createRuntimeFn({ defaultClassName: "n9fzuws", variantClassNames: { variant: { primary: "n9fzuwt", secondary: "n9fzuwu", tertiary: "n9fzuwv", quaternary: "n9fzuww" } }, defaultVariants: {}, compoundVariants: [] });
|
|
28
|
+
var mt_8 = "n9fzuwx";
|
|
29
|
+
var pis_0 = "n9fzuwy";
|
|
30
|
+
var limit_one = "n9fzuwz";
|
|
31
|
+
export {
|
|
32
|
+
apy_calculator,
|
|
33
|
+
bodyContent,
|
|
34
|
+
buydown_calculator_form,
|
|
35
|
+
calc_container,
|
|
36
|
+
calculate_row,
|
|
37
|
+
calculator_section,
|
|
38
|
+
cash,
|
|
39
|
+
checkbox_row,
|
|
40
|
+
errorTag,
|
|
41
|
+
fieldset,
|
|
42
|
+
form_disclosure,
|
|
43
|
+
form_wrapper,
|
|
44
|
+
label_symbol,
|
|
45
|
+
limit_one,
|
|
46
|
+
mt_8,
|
|
47
|
+
percent,
|
|
48
|
+
pis_0,
|
|
49
|
+
prefix_pad,
|
|
50
|
+
relative,
|
|
51
|
+
row_form,
|
|
52
|
+
section_header,
|
|
53
|
+
span_12,
|
|
54
|
+
submit_section,
|
|
55
|
+
theme_header
|
|
56
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QuaternaryTypes } from '../../utils';
|
|
2
|
+
import { FC, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface BuyDownCalculatorProps {
|
|
5
|
+
header?: ReactNode | string;
|
|
6
|
+
body?: ReactNode | string;
|
|
7
|
+
variant: QuaternaryTypes;
|
|
8
|
+
disclosure?: ReactNode | string;
|
|
9
|
+
}
|
|
10
|
+
export type BuyDownCalculatorInputs = {
|
|
11
|
+
purchasePrice: number;
|
|
12
|
+
downpayment: number;
|
|
13
|
+
dealerContribution: number;
|
|
14
|
+
program: string;
|
|
15
|
+
fico: string;
|
|
16
|
+
buydownRate: number;
|
|
17
|
+
buydownTerm: number;
|
|
18
|
+
fullTimeCharter: boolean;
|
|
19
|
+
mooringOutsideContinentalUS: boolean;
|
|
20
|
+
operatingAccount: boolean;
|
|
21
|
+
ltvAbove60: boolean;
|
|
22
|
+
floorplanDealerIncentive: boolean;
|
|
23
|
+
dealerCommercialDeposit: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const BuyDownCalculator: FC<BuyDownCalculatorProps>;
|