@axos-web-dev/shared-components 1.0.99-dev.2 → 1.0.99-dev.21
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 +2 -1
- package/dist/Accordion/Accordion.css.d.ts +1 -1
- package/dist/Accordion/Accordion.css.js +1 -1
- package/dist/Accordion/Accordion.js +2 -2
- package/dist/AlertBanner/AlertBanner.css.js +1 -1
- package/dist/AlertBanner/index.js +1 -1
- package/dist/Article/Article.css.d.ts +41 -41
- package/dist/Article/Article.css.js +1 -1
- package/dist/ArticlesSet/ArticlesSet.css.d.ts +16 -16
- package/dist/ArticlesSet/ArticlesSet.css.js +1 -1
- package/dist/Auth/ErrorAlert.css.js +1 -1
- package/dist/Auth/ErrorAlert.js +5 -4
- package/dist/Auth/Logout.js +1 -1
- package/dist/Auth/SignIn.css.js +1 -1
- package/dist/Auth/SignInPassword.js +1 -1
- package/dist/Avatar/Avatar.module.js +1 -1
- package/dist/AwardsBanner/AwardsBanner.css.js +1 -1
- package/dist/AwardsItem/AwardsItem.css.js +1 -1
- package/dist/Blockquote/Blockquote.module.js +1 -1
- package/dist/BulletItem/BulletItem.css.js +1 -1
- package/dist/BulletItem/BulletItem.js +1 -1
- package/dist/Button/Button.css.d.ts +18 -18
- package/dist/Button/Button.css.js +1 -1
- package/dist/Button/Button.js +4 -3
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +12 -12
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +1 -1
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.d.ts +14 -14
- package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +1 -1
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +9 -8
- package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +4 -2
- package/dist/Calculators/AxosOneCalculator/index.d.ts +3 -0
- package/dist/Calculators/AxosOneCalculator/index.js +49 -21
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.d.ts +22 -22
- package/dist/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/BalanceAPYCalculator/index.js +2 -2
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.d.ts +18 -18
- package/dist/Calculators/BuyDownCalculator/BuyDownCalculator.css.js +1 -1
- package/dist/Calculators/BuyDownCalculator/index.js +2 -2
- package/dist/Calculators/Calculator.d.ts +3 -0
- package/dist/Calculators/Calculator.js +22 -5
- package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +2 -2
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.d.ts +9 -0
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +219 -0
- package/dist/Calculators/MaxLoanCalculator/index.js +22 -5
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.d.ts +13 -12
- package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +3 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +15 -5
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.d.ts +12 -12
- package/dist/Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js +1 -1
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.d.ts +8 -8
- package/dist/Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js +1 -1
- package/dist/Calculators/SummitApyCalculator/index.js +2 -2
- package/dist/Calculators/calculator.css.d.ts +12 -12
- package/dist/Calculators/calculator.css.js +1 -1
- package/dist/Calculators/index.d.ts +2 -1
- package/dist/Calculators/index.js +3 -1
- package/dist/CallToActionBar/CallToActionBar.css.js +1 -1
- package/dist/CallToActionBar/index.js +1 -1
- package/dist/Carousel/Carousel.css.d.ts +20 -20
- package/dist/Carousel/Carousel.css.js +1 -1
- package/dist/Carousel/index.js +5 -4
- package/dist/Chevron/Chevron.css.d.ts +6 -6
- package/dist/Chevron/Chevron.css.js +1 -1
- package/dist/Chevron/index.js +5 -4
- package/dist/CollectInformationAlert/CollectInformationAlert.css.js +1 -1
- package/dist/CollectInformationAlert/index.js +1 -1
- package/dist/Comparison/Comparison.css.d.ts +10 -10
- package/dist/Comparison/Comparison.css.js +1 -1
- package/dist/Comparison/Comparison.js +5 -4
- package/dist/Comparison/ComparisonSet.js +1 -1
- package/dist/ContentBanner/ContentBanner.css.d.ts +12 -12
- package/dist/ContentBanner/ContentBanner.css.js +1 -1
- package/dist/DownloadTile/DownloadTile.css.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +31 -31
- package/dist/ExecutiveBio/ExecutiveBio.css.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +4 -3
- package/dist/FaqAccordion/FaqAccordion.css.js +1 -1
- package/dist/FaqAccordion/index.js +5 -4
- package/dist/FdicCallout/FdicCallout.module.js +1 -1
- package/dist/FooterDisclosure/FooterDisclosure.css.js +1 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.css.js +1 -1
- package/dist/FooterDisclosure/LVF/LaVictorieFooter.js +2 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.css.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +4 -3
- package/dist/Forms/ApplicationStart.d.ts +1 -1
- package/dist/Forms/ApplicationStart.js +113 -91
- package/dist/Forms/ApplyNow.d.ts +2 -2
- package/dist/Forms/ApplyNow.js +172 -146
- package/dist/Forms/ClearingForm.d.ts +1 -1
- package/dist/Forms/ClearingForm.js +186 -164
- package/dist/Forms/CommercialDeposits.d.ts +1 -1
- package/dist/Forms/CommercialDeposits.js +203 -181
- package/dist/Forms/CommercialLending.d.ts +1 -1
- package/dist/Forms/CommercialLending.js +280 -258
- package/dist/Forms/CommercialPremiumFinance.d.ts +1 -1
- package/dist/Forms/CommercialPremiumFinance.js +129 -107
- package/dist/Forms/ContactCompany.d.ts +1 -1
- package/dist/Forms/ContactCompany.js +115 -93
- package/dist/Forms/ContactCompanyTitle.d.ts +1 -1
- package/dist/Forms/ContactCompanyTitle.js +129 -107
- package/dist/Forms/ContactUs.d.ts +1 -1
- package/dist/Forms/ContactUs.js +101 -79
- package/dist/Forms/ContactUsAAS.d.ts +1 -1
- package/dist/Forms/ContactUsAAS.js +182 -160
- package/dist/Forms/ContactUsBusiness.d.ts +1 -1
- package/dist/Forms/ContactUsBusiness.js +138 -116
- package/dist/Forms/ContactUsBusinessNameEmail.d.ts +1 -1
- package/dist/Forms/ContactUsBusinessNameEmail.js +107 -85
- package/dist/Forms/ContactUsLVF.d.ts +3 -1
- package/dist/Forms/ContactUsLVF.js +129 -103
- package/dist/Forms/ContactUsNMLSId.d.ts +1 -1
- package/dist/Forms/ContactUsNMLSId.js +121 -99
- package/dist/Forms/CpraRequest.d.ts +1 -1
- package/dist/Forms/CpraRequest.js +643 -621
- package/dist/Forms/CraPublicFile.d.ts +1 -1
- package/dist/Forms/CraPublicFile.js +113 -91
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +227 -206
- package/dist/Forms/EmailOnly.d.ts +1 -1
- package/dist/Forms/EmailOnly.js +60 -40
- package/dist/Forms/EmailUs.d.ts +1 -1
- package/dist/Forms/EmailUs.js +77 -55
- package/dist/Forms/FormProps.d.ts +3 -0
- package/dist/Forms/Forms.css.d.ts +60 -42
- package/dist/Forms/Forms.css.js +45 -39
- 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 +23 -0
- package/dist/Forms/HoneyPot/index.js +69 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateForm.js +371 -349
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +1 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +4 -3
- package/dist/Forms/MortgageWarehouseLending.d.ts +11 -0
- package/dist/Forms/MortgageWarehouseLending.js +337 -0
- package/dist/Forms/QuickPricer/QuickPricerForm.d.ts +1 -1
- package/dist/Forms/QuickPricer/QuickPricerForm.js +627 -612
- package/dist/Forms/QuickPricer/QuickPricerResults.css.js +1 -1
- package/dist/Forms/QuickPricer/UserInformation.css.js +1 -1
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +158 -136
- package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
- package/dist/Forms/ScheduleCallPremier.js +180 -158
- package/dist/Forms/SuccesForm.js +8 -7
- package/dist/Forms/VendorQuestionnaire.d.ts +1 -1
- package/dist/Forms/VendorQuestionnaire.js +818 -796
- package/dist/Forms/WcplSurvey.d.ts +1 -1
- package/dist/Forms/WcplSurvey.js +114 -92
- package/dist/Forms/applynow-utils.d.ts +1 -0
- package/dist/Forms/applynow-utils.js +48 -0
- package/dist/Forms/index.d.ts +3 -0
- package/dist/Forms/index.js +12 -2
- package/dist/HelpArticle/HelpArticle.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.css.d.ts +16 -16
- package/dist/HeroBanner/HeroBanner.css.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +44 -3
- package/dist/HeroBanner/LargeBanner.css.d.ts +20 -20
- package/dist/HeroBanner/LargeBanner.css.js +1 -1
- package/dist/HeroBanner/SelectionBanner.css.d.ts +8 -8
- package/dist/HeroBanner/SelectionBanner.css.js +1 -1
- package/dist/Hyperlink/Hyperlink.css.js +1 -1
- package/dist/Hyperlink/index.js +4 -3
- package/dist/IconBillboard/IconBillboard.css.d.ts +24 -24
- package/dist/IconBillboard/IconBillboard.css.js +1 -1
- package/dist/IconBillboard/IconBillboard.js +1 -1
- package/dist/IconBillboard/sections/CallToActionSection.js +2 -1
- package/dist/ImageBillboard/ExitIntentModal/useExitIntentModal.js +6 -1
- package/dist/ImageBillboard/ImageBillboard.css.d.ts +20 -20
- package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.js +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +2 -2
- package/dist/ImageLink/ImageLink.css.js +1 -1
- package/dist/ImageLink/ImageLink.js +4 -3
- package/dist/ImageLink/ImageLinkSet.js +4 -3
- package/dist/ImageLink/index.js +4 -3
- package/dist/Input/Checkbox.css.js +1 -1
- package/dist/Input/Dropdown.css.js +1 -1
- package/dist/Input/Input.css.d.ts +16 -16
- package/dist/Input/Input.css.js +1 -1
- package/dist/Input/Input.js +3 -1
- package/dist/Input/RadioButton.css.js +1 -1
- package/dist/Inputs/Input.css.d.ts +14 -14
- package/dist/Inputs/Input.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.js +6 -5
- package/dist/Insight/Featured/Featured.css.js +1 -1
- package/dist/Insight/Featured/Featured.js +5 -4
- package/dist/Insight/Featured/Header.css.js +1 -1
- package/dist/Insight/Featured/Header.js +5 -4
- package/dist/Insight/Insight.css.js +1 -1
- package/dist/Interstitial/Interstitial-variants.css.d.ts +2 -2
- package/dist/Interstitial/Interstitial-variants.css.js +1 -1
- package/dist/Interstitial/Interstitial.module.js +1 -1
- package/dist/LandingPageHeader/LandingPageHeader.css.d.ts +3 -3
- package/dist/LandingPageHeader/LandingPageHeader.css.js +1 -1
- package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
- package/dist/LoadingIndicator/LoadingIndicator.css.js +1 -1
- package/dist/Modal/Modal.css.js +1 -1
- package/dist/Modal/Modal.js +4 -3
- package/dist/Modal/contextApi/store.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavData.js +4 -3
- package/dist/NavigationMenu/AxosALTS/index.js +4 -3
- package/dist/NavigationMenu/AxosAdvisor/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosAdvisorServices/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +1 -1
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +16 -7
- package/dist/NavigationMenu/AxosBank/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavData.js +4 -3
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +17 -8
- package/dist/NavigationMenu/AxosBank/SubNavbar.css.js +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +4 -3
- package/dist/NavigationMenu/AxosClearing/NavBar.css.js +1 -1
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +1 -1
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.css.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +1 -1
- package/dist/NavigationMenu/LaVictoire/NavData.js +4 -3
- package/dist/NavigationMenu/LaVictoire/index.js +4 -3
- 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/PageNavItem/PageNavItem.css.js +1 -1
- package/dist/PageNavSet/PageNavSet.js +1 -1
- package/dist/PageNavSet/PageNavigationSet.css.js +1 -1
- package/dist/Pagination/Pagination.css.js +1 -1
- package/dist/Pagination/Pagination.js +2 -2
- package/dist/SecondaryFooter/SecondaryFooter.css.js +1 -1
- package/dist/SecondaryFooter/index.js +1 -1
- package/dist/SetContainer/SetContainer.css.d.ts +16 -16
- package/dist/SetContainer/SetContainer.css.js +1 -1
- package/dist/SetContainer/SetContainer.js +5 -4
- package/dist/SocialMediaBar/SocialMediaBar.css.js +1 -1
- package/dist/SocialMediaBar/iconsRepository.js +4 -3
- package/dist/StepItem/StepItem.css.d.ts +18 -18
- package/dist/StepItem/StepItem.css.js +1 -1
- package/dist/StepItemSet/StepItemSet.css.d.ts +14 -14
- package/dist/StepItemSet/StepItemSet.css.js +1 -1
- package/dist/Tab/Tab.css.d.ts +12 -12
- package/dist/Tab/Tab.css.js +1 -1
- package/dist/Table/Table.css.d.ts +25 -25
- package/dist/Table/Table.css.js +1 -1
- package/dist/Table/Table.js +2 -2
- package/dist/TextBlock/TextBlock.css.js +1 -1
- package/dist/TextBlock/TextBlock.js +1 -1
- package/dist/Topic/Topic.css.js +1 -1
- package/dist/TopicalNavItem/TopicalNavItem.css.js +1 -1
- package/dist/TopicalNavSet/TopicalNavSet.css.js +1 -1
- package/dist/Typography/Typography.css.js +1 -1
- package/dist/VideoTile/VideoTile.css.js +1 -1
- package/dist/VideoTile/VideoTile.js +4 -3
- package/dist/VideoWrapper/VideoWrapper.css.js +1 -1
- package/dist/VideoWrapper/index.js +4 -3
- package/dist/WalnutIframe/wrapper.module.js +1 -1
- package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +12 -0
- package/dist/assets/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css +3 -0
- package/dist/assets/Forms/Forms.css +135 -105
- package/dist/assets/Forms/HoneyPot/HoneyPot.css +8 -0
- package/dist/globals.css.js +1 -1
- package/dist/icons/ArrowIcon/ArrowIcon.css.d.ts +3 -3
- package/dist/icons/ArrowIcon/ArrowIcon.css.js +1 -1
- package/dist/icons/CheckIcon/CheckIcon.css.d.ts +2 -2
- package/dist/icons/CheckIcon/CheckIcon.css.js +1 -1
- package/dist/icons/DownloadIcon/DownloadIcon.css.js +1 -1
- package/dist/icons/FollowIcon/FollowIcon.css.js +1 -1
- package/dist/icons/Logos/AXB.d.ts +8 -0
- package/dist/icons/Logos/AXB.js +74 -0
- package/dist/icons/Star/Star.css.js +1 -1
- package/dist/index.css.js +1 -1
- package/dist/main.js +15 -3
- package/dist/themes/axos.css.d.ts +38 -38
- package/dist/themes/axos.css.js +1 -1
- package/dist/themes/premier.css.js +1 -1
- package/dist/themes/victorie.css.js +1 -1
- package/dist/utils/allowedAxosDomains.js +1 -1
- package/dist/utils/optimizeImage/optimizeImage.module.js +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
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
|
border: "1px solid #D4D4D4";
|
|
7
7
|
};
|
|
8
8
|
secondary: {
|
|
9
|
-
background: `var(--${string})
|
|
10
|
-
color: `var(--${string})
|
|
9
|
+
background: `var(--${string})`;
|
|
10
|
+
color: `var(--${string})`;
|
|
11
11
|
};
|
|
12
12
|
tertiary: {
|
|
13
|
-
background: `var(--${string})
|
|
14
|
-
color: `var(--${string})
|
|
13
|
+
background: `var(--${string})`;
|
|
14
|
+
color: `var(--${string})`;
|
|
15
15
|
};
|
|
16
16
|
quaternary: {
|
|
17
|
-
background: `var(--${string})
|
|
18
|
-
color: `var(--${string})
|
|
17
|
+
background: `var(--${string})`;
|
|
18
|
+
color: `var(--${string})`;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
}>;
|
|
@@ -27,16 +27,16 @@ export declare const fb50: string;
|
|
|
27
27
|
export declare const stat: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
28
28
|
variant: {
|
|
29
29
|
primary: {
|
|
30
|
-
color: `var(--${string})
|
|
30
|
+
color: `var(--${string})`;
|
|
31
31
|
};
|
|
32
32
|
secondary: {
|
|
33
|
-
color: `var(--${string})
|
|
33
|
+
color: `var(--${string})`;
|
|
34
34
|
};
|
|
35
35
|
tertiary: {
|
|
36
|
-
color: `var(--${string})
|
|
36
|
+
color: `var(--${string})`;
|
|
37
37
|
};
|
|
38
38
|
quaternary: {
|
|
39
|
-
color: `var(--${string})
|
|
39
|
+
color: `var(--${string})`;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -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
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../assets/Calculators/ApyCalculator/ApyCalculator.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -14,32 +14,33 @@ 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
|
}>;
|
|
46
|
+
export declare const call_to_action_row: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -19,6 +19,7 @@ var ax1_header_calc = "_11b2y8zb";
|
|
|
19
19
|
var ax1_calc_text = "_11b2y8zc";
|
|
20
20
|
var ax1_description_text = createRuntimeFn({ defaultClassName: "_11b2y8zd", variantClassNames: { variant: { primary: "_11b2y8ze", secondary: "_11b2y8zf", tertiary: "_11b2y8zg", quaternary: "_11b2y8zh" } }, defaultVariants: {}, compoundVariants: [] });
|
|
21
21
|
var ax1_calc_disclosure = createRuntimeFn({ defaultClassName: "_11b2y8zi", variantClassNames: { variant: { primary: "_11b2y8zj", secondary: "_11b2y8zk", tertiary: "_11b2y8zl", quaternary: "_11b2y8zm" } }, defaultVariants: {}, compoundVariants: [] });
|
|
22
|
+
var call_to_action_row = "_11b2y8zn";
|
|
22
23
|
export {
|
|
23
24
|
ax1_calc_disclosure,
|
|
24
25
|
ax1_calc_icon,
|
|
@@ -34,5 +35,6 @@ export {
|
|
|
34
35
|
ax1_input_container,
|
|
35
36
|
ax1_input_label,
|
|
36
37
|
ax1_m_label,
|
|
37
|
-
ax1_table_container
|
|
38
|
+
ax1_table_container,
|
|
39
|
+
call_to_action_row
|
|
38
40
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React, FC } from 'react';
|
|
2
|
+
import { ChevronProps } from '../../Chevron/Chevron.interface';
|
|
2
3
|
|
|
3
4
|
export interface AxosOneCalculatorProps {
|
|
4
5
|
headline?: React.ReactNode | string;
|
|
@@ -6,5 +7,7 @@ export interface AxosOneCalculatorProps {
|
|
|
6
7
|
bodyCopy?: React.ReactNode | string;
|
|
7
8
|
disclosure: React.ReactNode | string;
|
|
8
9
|
variant: string;
|
|
10
|
+
initialBalance?: number;
|
|
11
|
+
callToActionRow?: ChevronProps[];
|
|
9
12
|
}
|
|
10
13
|
export declare const AxosOneCalculator: FC<AxosOneCalculatorProps>;
|
|
@@ -8,7 +8,7 @@ import "../../icons/ArrowIcon/ArrowIcon.css.js";
|
|
|
8
8
|
import SvgAxosX from "../../icons/AxosX/index.js";
|
|
9
9
|
import SvgComponent from "../../icons/AxosX/Blue.js";
|
|
10
10
|
import "../../icons/CheckIcon/CheckIcon.css.js";
|
|
11
|
-
|
|
11
|
+
import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
@@ -18,25 +18,36 @@ import { headerCell } from "../../Table/Table.css.js";
|
|
|
18
18
|
import "../../utils/allowedAxosDomains.js";
|
|
19
19
|
import { getVariant } from "../../utils/getVariant.js";
|
|
20
20
|
import clsx from "clsx";
|
|
21
|
-
import {
|
|
21
|
+
import { ax1_calc_icon, ax1_header_container, ax1_header_calc, ax1_calc_text, ax1_description_text, ax1_calculator_wrapper, ax1_input_container, ax1_input_label, ax1_calculator_input, ax1_calculator_button, ax1_d_label, ax1_m_label, ax1_table_container, call_to_action_row, ax1_calc_disclosure, ax1_container } from "./BalanceAPYCalculator.css.js";
|
|
22
22
|
const AxosOneCalculator = ({
|
|
23
23
|
headline,
|
|
24
24
|
bodyCopy,
|
|
25
25
|
disclosure,
|
|
26
26
|
icon,
|
|
27
|
-
variant
|
|
27
|
+
variant,
|
|
28
|
+
initialBalance,
|
|
29
|
+
callToActionRow
|
|
28
30
|
}) => {
|
|
29
31
|
const calc_variant = getVariant(variant);
|
|
30
32
|
const AXOS_ONE_APY = +process.env.NEXT_PUBLIC_AXOS_ONE_APY;
|
|
31
|
-
const
|
|
33
|
+
const startingBalance = Number.isFinite(Number(initialBalance)) && Number(initialBalance) >= 0 ? Number(initialBalance) : 1e4;
|
|
34
|
+
const [balance, setBalance] = useState(startingBalance);
|
|
32
35
|
const [axbAPY, _setAxbAPY] = useState(AXOS_ONE_APY);
|
|
33
|
-
const [axbEarning, setAxbEarning] = useState(
|
|
36
|
+
const [axbEarning, setAxbEarning] = useState(
|
|
37
|
+
AXOS_ONE_APY / 100 * startingBalance
|
|
38
|
+
);
|
|
34
39
|
const [chaseAPY, _setChaseAPY] = useState(0.01);
|
|
35
|
-
const [chaseEarning, setChaseEarning] = useState(
|
|
40
|
+
const [chaseEarning, setChaseEarning] = useState(
|
|
41
|
+
0.01 / 100 * startingBalance
|
|
42
|
+
);
|
|
36
43
|
const [bofaAPY, _setBofaAPY] = useState(0.01);
|
|
37
|
-
const [bofaEarning, setBofaEarning] = useState(
|
|
44
|
+
const [bofaEarning, setBofaEarning] = useState(
|
|
45
|
+
0.01 / 100 * startingBalance
|
|
46
|
+
);
|
|
38
47
|
const [fargoAPY, _setFargoAPY] = useState(0.05);
|
|
39
|
-
const [fargoEarning, setFargoEarning] = useState(
|
|
48
|
+
const [fargoEarning, setFargoEarning] = useState(
|
|
49
|
+
0.05 / 100 * startingBalance
|
|
50
|
+
);
|
|
40
51
|
const removeNonNumeric = (value) => {
|
|
41
52
|
if (value === "") {
|
|
42
53
|
value = "0";
|
|
@@ -59,7 +70,19 @@ const AxosOneCalculator = ({
|
|
|
59
70
|
setBalance(0);
|
|
60
71
|
}
|
|
61
72
|
};
|
|
62
|
-
|
|
73
|
+
const formatUSD = (value) => {
|
|
74
|
+
if (Number.isInteger(value)) {
|
|
75
|
+
return value.toLocaleString(void 0, {
|
|
76
|
+
minimumFractionDigits: 0,
|
|
77
|
+
maximumFractionDigits: 0
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return value.toLocaleString(void 0, {
|
|
81
|
+
minimumFractionDigits: 2,
|
|
82
|
+
maximumFractionDigits: 2
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
return /* @__PURE__ */ jsx("section", { className: clsx(ax1_container), id: "axoapycalc", children: /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
|
|
63
86
|
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", ax1_calc_icon), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
64
87
|
(headline || bodyCopy) && /* @__PURE__ */ jsxs("div", { className: `${ax1_header_container} text_center`, children: [
|
|
65
88
|
headline && /* @__PURE__ */ jsx("h2", { className: clsx("header_2", ax1_header_calc), children: headline }),
|
|
@@ -134,9 +157,7 @@ const AxosOneCalculator = ({
|
|
|
134
157
|
] }) }),
|
|
135
158
|
/* @__PURE__ */ jsx(TableCell, { variant: "primary", children: /* @__PURE__ */ jsxs("b", { children: [
|
|
136
159
|
"$",
|
|
137
|
-
axbEarning
|
|
138
|
-
maximumFractionDigits: 2
|
|
139
|
-
})
|
|
160
|
+
formatUSD(axbEarning)
|
|
140
161
|
] }) })
|
|
141
162
|
] }),
|
|
142
163
|
/* @__PURE__ */ jsxs(TableRow, { children: [
|
|
@@ -150,9 +171,7 @@ const AxosOneCalculator = ({
|
|
|
150
171
|
] }),
|
|
151
172
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
152
173
|
"$",
|
|
153
|
-
fargoEarning
|
|
154
|
-
maximumFractionDigits: 2
|
|
155
|
-
})
|
|
174
|
+
formatUSD(fargoEarning)
|
|
156
175
|
] })
|
|
157
176
|
] }),
|
|
158
177
|
/* @__PURE__ */ jsxs(TableRow, { children: [
|
|
@@ -166,9 +185,7 @@ const AxosOneCalculator = ({
|
|
|
166
185
|
] }),
|
|
167
186
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
168
187
|
"$",
|
|
169
|
-
bofaEarning
|
|
170
|
-
maximumFractionDigits: 2
|
|
171
|
-
})
|
|
188
|
+
formatUSD(bofaEarning)
|
|
172
189
|
] })
|
|
173
190
|
] }),
|
|
174
191
|
/* @__PURE__ */ jsxs(TableRow, { children: [
|
|
@@ -182,9 +199,7 @@ const AxosOneCalculator = ({
|
|
|
182
199
|
] }),
|
|
183
200
|
/* @__PURE__ */ jsxs(TableCell, { variant: "primary", children: [
|
|
184
201
|
"$",
|
|
185
|
-
chaseEarning
|
|
186
|
-
maximumFractionDigits: 2
|
|
187
|
-
})
|
|
202
|
+
formatUSD(chaseEarning)
|
|
188
203
|
] })
|
|
189
204
|
] })
|
|
190
205
|
] })
|
|
@@ -192,6 +207,19 @@ const AxosOneCalculator = ({
|
|
|
192
207
|
}
|
|
193
208
|
)
|
|
194
209
|
] }),
|
|
210
|
+
Array.isArray(callToActionRow) && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${call_to_action_row}`, children: callToActionRow?.map(
|
|
211
|
+
({ id, variant: variant2, displayText, targetUrl }) => /* @__PURE__ */ jsx(
|
|
212
|
+
Button,
|
|
213
|
+
{
|
|
214
|
+
targetUrl,
|
|
215
|
+
color: getVariant(variant2),
|
|
216
|
+
size: "medium",
|
|
217
|
+
rounded: "medium",
|
|
218
|
+
children: displayText
|
|
219
|
+
},
|
|
220
|
+
id
|
|
221
|
+
)
|
|
222
|
+
) }),
|
|
195
223
|
disclosure && /* @__PURE__ */ jsx("div", { className: ax1_calc_disclosure({ variant: calc_variant }), children: disclosure })
|
|
196
224
|
] }) });
|
|
197
225
|
};
|
|
@@ -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
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import '../../assets/Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css';import '../../assets/Typography/Typography.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -8,7 +8,7 @@ import "../../icons/ArrowIcon/ArrowIcon.css.js";
|
|
|
8
8
|
import SvgAxosX from "../../icons/AxosX/index.js";
|
|
9
9
|
import SvgComponent from "../../icons/AxosX/Blue.js";
|
|
10
10
|
import "../../icons/CheckIcon/CheckIcon.css.js";
|
|
11
|
-
|
|
11
|
+
import '../../assets/icons/FollowIcon/FollowIcon.css';import '../../assets/icons/DownloadIcon/DownloadIcon.css';import '../../assets/themes/victorie.css';import '../../assets/themes/premier.css';import '../../assets/themes/axos.css';/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
@@ -18,7 +18,7 @@ import { headerCell } from "../../Table/Table.css.js";
|
|
|
18
18
|
import "../../utils/allowedAxosDomains.js";
|
|
19
19
|
import { getVariant } from "../../utils/getVariant.js";
|
|
20
20
|
import clsx from "clsx";
|
|
21
|
-
import {
|
|
21
|
+
import { calc_icon, header_container, header_calc, calc_text, description_text, calculator_wrapper, input_container, input_label, d_label, m_label, calculator_input, calculator_button, max_balance, error_message, table_container, calc_disclosure, container } from "./BalanceAPYCalculator.css.js";
|
|
22
22
|
const BalanceAPYCalculator = ({
|
|
23
23
|
headline,
|
|
24
24
|
bodyCopy,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
export declare const calc_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
|
}>;
|
|
@@ -26,16 +26,16 @@ export declare const errorTag: string;
|
|
|
26
26
|
export declare const form_wrapper: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
27
27
|
variant: {
|
|
28
28
|
primary: {
|
|
29
|
-
color: `var(--${string})
|
|
29
|
+
color: `var(--${string})`;
|
|
30
30
|
};
|
|
31
31
|
secondary: {
|
|
32
|
-
color: `var(--${string})
|
|
32
|
+
color: `var(--${string})`;
|
|
33
33
|
};
|
|
34
34
|
tertiary: {
|
|
35
|
-
color: `var(--${string})
|
|
35
|
+
color: `var(--${string})`;
|
|
36
36
|
};
|
|
37
37
|
quaternary: {
|
|
38
|
-
color: `var(--${string})
|
|
38
|
+
color: `var(--${string})`;
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
}>;
|
|
@@ -58,12 +58,12 @@ export declare const theme_header: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
58
58
|
selectors: {
|
|
59
59
|
[x: string]: {
|
|
60
60
|
WebkitBackgroundClip: "text";
|
|
61
|
-
backgroundImage: `var(--${string})
|
|
61
|
+
backgroundImage: `var(--${string})`;
|
|
62
62
|
WebkitTextFillColor: "transparent";
|
|
63
63
|
textShadow: "0px 0px #00000000";
|
|
64
64
|
color?: undefined;
|
|
65
65
|
} | {
|
|
66
|
-
color: `var(--${string})
|
|
66
|
+
color: `var(--${string})`;
|
|
67
67
|
WebkitBackgroundClip?: undefined;
|
|
68
68
|
backgroundImage?: undefined;
|
|
69
69
|
WebkitTextFillColor?: undefined;
|
|
@@ -75,12 +75,12 @@ export declare const theme_header: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
75
75
|
selectors: {
|
|
76
76
|
[x: string]: {
|
|
77
77
|
WebkitBackgroundClip: "text";
|
|
78
|
-
backgroundImage: `var(--${string})
|
|
78
|
+
backgroundImage: `var(--${string})`;
|
|
79
79
|
WebkitTextFillColor: "transparent";
|
|
80
80
|
textShadow: "0px 0px #00000000";
|
|
81
81
|
color?: undefined;
|
|
82
82
|
} | {
|
|
83
|
-
color: `var(--${string})
|
|
83
|
+
color: `var(--${string})`;
|
|
84
84
|
WebkitBackgroundClip?: undefined;
|
|
85
85
|
backgroundImage?: undefined;
|
|
86
86
|
WebkitTextFillColor?: undefined;
|
|
@@ -89,10 +89,10 @@ export declare const theme_header: import('@vanilla-extract/recipes').RuntimeFn<
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
tertiary: {
|
|
92
|
-
color: `var(--${string})
|
|
92
|
+
color: `var(--${string})`;
|
|
93
93
|
};
|
|
94
94
|
quaternary: {
|
|
95
|
-
color: `var(--${string})
|
|
95
|
+
color: `var(--${string})`;
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
@@ -23,7 +23,7 @@ import { getVariant } from "../../utils/getVariant.js";
|
|
|
23
23
|
import clsx from "clsx";
|
|
24
24
|
import { useForm, FormProvider } from "react-hook-form";
|
|
25
25
|
import { z } from "zod";
|
|
26
|
-
import { calc_container, calculator_section, section_header, theme_header, mt_8, buydown_calculator_form,
|
|
26
|
+
import { calc_container, calculator_section, section_header, theme_header, mt_8, buydown_calculator_form, row_form, limit_one, calculate_row, form_wrapper, form_disclosure } from "./BuyDownCalculator.css.js";
|
|
27
27
|
const BuyDownCalculator = ({
|
|
28
28
|
header,
|
|
29
29
|
body,
|
|
@@ -344,7 +344,7 @@ const BuyDownCalculator = ({
|
|
|
344
344
|
};
|
|
345
345
|
const calculatePMT = (annualRate, totalPeriods, financedAmount2) => {
|
|
346
346
|
const monthlyRate = annualRate / 100 / 12;
|
|
347
|
-
const payment = financedAmount2 * monthlyRate / (1 - Math.pow(1 + monthlyRate, -
|
|
347
|
+
const payment = financedAmount2 * monthlyRate / (1 - Math.pow(1 + monthlyRate, -240));
|
|
348
348
|
return payment;
|
|
349
349
|
};
|
|
350
350
|
const totalInterestByYear = (annualRate, totalPeriods, financedAmount2, years) => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IconBillboardProps } from '../IconBillboard/IconBillboard.interface';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
3
4
|
|
|
4
5
|
export interface CalculatorProps {
|
|
5
6
|
id?: string;
|
|
@@ -11,5 +12,7 @@ export interface CalculatorProps {
|
|
|
11
12
|
bodyCopy?: React.ReactNode;
|
|
12
13
|
disclosure?: React.ReactNode;
|
|
13
14
|
marketingTiles?: IconBillboardProps[];
|
|
15
|
+
callToActionRow?: ChevronProps[];
|
|
16
|
+
initialBalance?: number;
|
|
14
17
|
}
|
|
15
18
|
export declare const Calculator: (props: CalculatorProps) => import("react/jsx-runtime").JSX.Element;
|