@axos-web-dev/shared-components 0.0.118 → 0.0.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ATMLocator/ATMLocator.js +4 -2
- package/dist/Accordion/Accordion.css.d.ts +9 -9
- package/dist/Article/Article.js +8 -4
- package/dist/Button/Button.js +6 -4
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.d.ts +16 -1
- package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +8 -8
- package/dist/Calculators/AnnualFeeCalculator/index.js +7 -4
- package/dist/Calculators/Calculator.js +2 -0
- package/dist/Calculators/MarginTradingCalculator/index.js +25 -5
- package/dist/Calculators/MaxLoanCalculator/index.js +3 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +3 -1
- package/dist/Calculators/calculator.css.d.ts +1 -0
- package/dist/Calculators/calculator.css.js +4 -2
- package/dist/Calculators/index.js +2 -1
- package/dist/Carousel/Carousel.css.d.ts +1 -0
- package/dist/Carousel/Carousel.css.js +13 -11
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +44 -35
- package/dist/Chevron/index.js +5 -3
- package/dist/Comparison/Comparison.css.js +2 -2
- package/dist/Comparison/Comparison.js +3 -1
- package/dist/ContentBanner/ContentBanner.interface.d.ts +2 -1
- package/dist/ContentBanner/index.js +3 -2
- package/dist/DownloadTile/DownloadTile.css.d.ts +1 -0
- package/dist/DownloadTile/DownloadTile.css.js +9 -7
- package/dist/DownloadTile/DownloadTile.interface.d.ts +1 -0
- package/dist/DownloadTile/index.js +34 -25
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -0
- package/dist/ExecutiveBio/ExecutiveBio.css.js +23 -21
- package/dist/ExecutiveBio/ExecutiveBio.js +3 -2
- package/dist/ExecutiveBio/index.js +2 -1
- package/dist/FaqAccordion/FaqAccordion.css.d.ts +1 -0
- package/dist/FaqAccordion/FaqAccordion.css.js +7 -5
- package/dist/FaqAccordion/index.d.ts +1 -0
- package/dist/FaqAccordion/index.js +17 -8
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +6 -4
- package/dist/Forms/ContactUsBusiness.js +7 -5
- package/dist/Forms/ContactUsNMLSId.js +7 -5
- package/dist/Forms/DealerServices.d.ts +1 -1
- package/dist/Forms/DealerServices.js +12 -8
- package/dist/Forms/EmailOnly.js +7 -5
- package/dist/Forms/Forms.css.js +2 -2
- package/dist/Forms/SalesforceFieldsForm.d.ts +0 -1
- package/dist/Forms/ScheduleCall.js +1 -0
- package/dist/Forms/ScheduleCallPremier.js +1 -0
- package/dist/Forms/SuccesForm.js +3 -1
- package/dist/HeroBanner/HeroBanner.css.js +1 -1
- package/dist/Hyperlink/index.js +6 -4
- package/dist/ImageBillboard/ImageBillboard.css.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.interface.d.ts +1 -0
- package/dist/ImageBillboard/ImageBillboardSet.d.ts +1 -1
- package/dist/ImageBillboard/ImageBillboardSet.js +3 -2
- package/dist/ImageLink/ImageLink.css.d.ts +1 -0
- package/dist/ImageLink/ImageLink.css.js +5 -1
- package/dist/ImageLink/ImageLink.js +4 -2
- package/dist/ImageLink/ImageLinkSet.d.ts +1 -0
- package/dist/ImageLink/ImageLinkSet.js +8 -4
- package/dist/ImageLink/index.js +5 -4
- package/dist/Input/Checkbox.d.ts +1 -1
- package/dist/Input/Input.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.css.js +1 -1
- package/dist/Insight/Featured/CategorySelector.js +3 -1
- package/dist/Insight/Featured/Featured.js +7 -5
- package/dist/MainHTML/index.d.ts +2 -1
- package/dist/MainHTML/index.js +10 -2
- package/dist/Modal/Modal.js +7 -5
- package/dist/NavigationMenu/AxosBank/NavData.js +6 -4
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +6 -4
- package/dist/NavigationMenu/AxosBank/index.js +4 -2
- package/dist/PageNavItem/PageNavItem.js +8 -1
- package/dist/PageNavSet/PageNavSet.js +16 -19
- package/dist/SetContainer/SetContainer.d.ts +2 -1
- package/dist/SetContainer/SetContainer.js +7 -3
- package/dist/Table/Table.css.d.ts +1 -0
- package/dist/Table/Table.css.js +18 -16
- package/dist/Table/Table.d.ts +13 -13
- package/dist/Table/Table.js +23 -15
- package/dist/Table/index.js +2 -1
- package/dist/TextBlock/TextBlock.css.d.ts +1 -0
- package/dist/TextBlock/TextBlock.css.js +6 -4
- package/dist/TextBlock/TextBlock.d.ts +1 -0
- package/dist/TextBlock/TextBlock.js +13 -5
- package/dist/TextBlock/index.js +3 -2
- package/dist/VideoTile/VideoInit.js +2 -1
- package/dist/VideoTile/VideoTile.css.d.ts +1 -0
- package/dist/VideoTile/VideoTile.css.js +15 -13
- package/dist/VideoTile/VideoTile.interface.d.ts +1 -0
- package/dist/VideoTile/VideoTile.js +65 -56
- package/dist/VideoTile/index.js +2 -1
- package/dist/VideoWrapper/VideoWrapper.css.d.ts +1 -0
- package/dist/VideoWrapper/VideoWrapper.css.js +6 -4
- package/dist/VideoWrapper/index.d.ts +1 -0
- package/dist/VideoWrapper/index.js +35 -24
- package/dist/assets/ArticlesSet/ArticlesSet.css +1 -1
- package/dist/assets/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css +23 -12
- package/dist/assets/Calculators/calculator.css +24 -11
- package/dist/assets/Carousel/Carousel.css +52 -39
- package/dist/assets/Comparison/Comparison.css +2 -2
- package/dist/assets/DownloadTile/DownloadTile.css +32 -19
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +92 -79
- package/dist/assets/FaqAccordion/FaqAccordion.css +24 -11
- package/dist/assets/IconBillboard/IconBillboard.css +11 -0
- package/dist/assets/ImageBillboard/ImageBillboard.css +9 -0
- package/dist/assets/ImageLink/ImageLink.css +13 -0
- package/dist/assets/PageNavItem/PageNavItem.css +1 -0
- package/dist/assets/PageNavSet/PageNavigationSet.css +7 -10
- package/dist/assets/SetContainer/SetContainer.css +0 -1
- package/dist/assets/Table/Table.css +90 -75
- package/dist/assets/TextBlock/TextBlock.css +16 -3
- package/dist/assets/VideoTile/VideoTile.css +32 -14
- package/dist/assets/VideoWrapper/VideoWrapper.css +18 -5
- package/dist/index.css.js +1 -1
- package/dist/main.js +10 -5
- package/dist/utils/allowedAxosDomains.js +3 -2
- package/package.json +121 -121
- package/dist/ImageLink/ImageLink.css.ts.vanilla.css.js +0 -1
|
@@ -23,10 +23,11 @@ import "../ArticlesSet/ArticlesSet.css.js";
|
|
|
23
23
|
/* empty css */
|
|
24
24
|
/* empty css */
|
|
25
25
|
import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
26
|
+
import clsx from "clsx";
|
|
27
|
+
import { calculator_headline, calculator_description } from "../Calculators/calculator.css.js";
|
|
26
28
|
/* empty css */
|
|
27
29
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
28
30
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
29
|
-
import clsx from "clsx";
|
|
30
31
|
/* empty css */
|
|
31
32
|
import "../Carousel/index.js";
|
|
32
33
|
import "../Hyperlink/Hyperlink.css.js";
|
|
@@ -62,6 +63,7 @@ import "../Input/Checkbox.css.js";
|
|
|
62
63
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
63
64
|
import "../Input/RadioButton.js";
|
|
64
65
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
66
|
+
/* empty css */
|
|
65
67
|
/* empty css */
|
|
66
68
|
/* empty css */
|
|
67
69
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
@@ -90,12 +92,12 @@ import "../Table/Table.css.js";
|
|
|
90
92
|
/* empty css */
|
|
91
93
|
/* empty css */
|
|
92
94
|
/* empty css */
|
|
95
|
+
import "next/script.js";
|
|
93
96
|
/* empty css */
|
|
94
97
|
/* empty css */
|
|
95
98
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
96
99
|
import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
97
100
|
import "iframe-resizer";
|
|
98
|
-
import { calculator_headline, calculator_description } from "../Calculators/calculator.css.js";
|
|
99
101
|
const ATMLocator = (props) => {
|
|
100
102
|
const { id, bodyCopy, icon = false, disclosure, headline } = props;
|
|
101
103
|
const variant = getVariant(props.variant);
|
|
@@ -4,39 +4,39 @@ export declare const accordion: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
4
4
|
width: {
|
|
5
5
|
"1/2": {
|
|
6
6
|
display: "flex";
|
|
7
|
-
flexBasis:
|
|
7
|
+
flexBasis: "50%";
|
|
8
8
|
};
|
|
9
9
|
"1/3": {
|
|
10
10
|
display: "flex";
|
|
11
|
-
flexBasis:
|
|
11
|
+
flexBasis: "33.333333333333336%";
|
|
12
12
|
};
|
|
13
13
|
"2/3": {
|
|
14
14
|
display: "flex";
|
|
15
|
-
flexBasis:
|
|
15
|
+
flexBasis: "66.66666666666667%";
|
|
16
16
|
};
|
|
17
17
|
"1/4": {
|
|
18
18
|
display: "flex";
|
|
19
|
-
flexBasis:
|
|
19
|
+
flexBasis: "25%";
|
|
20
20
|
};
|
|
21
21
|
"3/4": {
|
|
22
22
|
display: "flex";
|
|
23
|
-
flexBasis:
|
|
23
|
+
flexBasis: "75%";
|
|
24
24
|
};
|
|
25
25
|
"1/5": {
|
|
26
26
|
display: "flex";
|
|
27
|
-
flexBasis:
|
|
27
|
+
flexBasis: "20%";
|
|
28
28
|
};
|
|
29
29
|
"2/5": {
|
|
30
30
|
display: "flex";
|
|
31
|
-
flexBasis:
|
|
31
|
+
flexBasis: "40%";
|
|
32
32
|
};
|
|
33
33
|
"3/5": {
|
|
34
34
|
display: "flex";
|
|
35
|
-
flexBasis:
|
|
35
|
+
flexBasis: "60%";
|
|
36
36
|
};
|
|
37
37
|
"4/5": {
|
|
38
38
|
display: "flex";
|
|
39
|
-
flexBasis:
|
|
39
|
+
flexBasis: "80%";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
}>;
|
package/dist/Article/Article.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
|
-
import { ant_article, ant_img, ant_content, ant_eyebrow, ant_card_title, ant_card_body
|
|
3
|
+
import { ant_article, ant_img, ant_content, ant_eyebrow, ant_card_title, ant_card_body } from "./Article.css.js";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import "../Button/Button.css.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-use";
|
|
4
8
|
const Article = ({
|
|
5
9
|
id,
|
|
6
10
|
image,
|
|
@@ -33,11 +37,11 @@ const Article = ({
|
|
|
33
37
|
/* @__PURE__ */ jsx("div", { className: `${ant_card_body({ variant })} push_up`, children: /* @__PURE__ */ jsx(Fragment, { children: description }) })
|
|
34
38
|
] }),
|
|
35
39
|
/* @__PURE__ */ jsx("div", { className: "push_up_24 text_center", children: /* @__PURE__ */ jsx(
|
|
36
|
-
|
|
40
|
+
Button,
|
|
37
41
|
{
|
|
38
|
-
className: `${ant_card_cta({ variant })}`,
|
|
39
42
|
"aria-label": "read and learn more about this featured item",
|
|
40
|
-
|
|
43
|
+
targetUrl,
|
|
44
|
+
color: variant,
|
|
41
45
|
children: itemType == "Insight" ? "Read More" : "Learn More"
|
|
42
46
|
}
|
|
43
47
|
) })
|
package/dist/Button/Button.js
CHANGED
|
@@ -14,15 +14,16 @@ import { getVariant } from "../utils/getVariant.js";
|
|
|
14
14
|
import { useState, createElement } from "react";
|
|
15
15
|
import "../AlertBanner/AlertBanner.css.js";
|
|
16
16
|
import "../Article/Article.css.js";
|
|
17
|
+
import { button } from "./Button.css.js";
|
|
18
|
+
import "react-use";
|
|
17
19
|
import "../ArticlesSet/ArticlesSet.css.js";
|
|
18
20
|
import "../IconBillboard/IconBillboard.css.js";
|
|
19
21
|
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
20
22
|
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
23
|
+
import clsx from "clsx";
|
|
24
|
+
import "../Calculators/calculator.css.js";
|
|
21
25
|
import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
22
|
-
import { button } from "./Button.css.js";
|
|
23
|
-
import "react-use";
|
|
24
26
|
import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
25
|
-
import clsx from "clsx";
|
|
26
27
|
import "../Table/Table.css.js";
|
|
27
28
|
import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
28
29
|
import "@hookform/resolvers/zod";
|
|
@@ -44,7 +45,6 @@ import "../Input/Checkbox.css.js";
|
|
|
44
45
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
45
46
|
import "../Input/RadioButton.js";
|
|
46
47
|
import "iframe-resizer";
|
|
47
|
-
import "../Calculators/calculator.css.js";
|
|
48
48
|
/* empty css */
|
|
49
49
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
50
50
|
/* empty css */
|
|
@@ -68,6 +68,7 @@ import "../FaqAccordion/index.js";
|
|
|
68
68
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
69
69
|
/* empty css */
|
|
70
70
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
71
|
+
/* empty css */
|
|
71
72
|
/* empty css */
|
|
72
73
|
/* empty css */
|
|
73
74
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
@@ -92,6 +93,7 @@ import "../StepItemSet/StepItemSet.css.js";
|
|
|
92
93
|
/* empty css */
|
|
93
94
|
/* empty css */
|
|
94
95
|
/* empty css */
|
|
96
|
+
import "next/script.js";
|
|
95
97
|
/* empty css */
|
|
96
98
|
/* empty css */
|
|
97
99
|
/* empty css */
|
|
@@ -24,7 +24,22 @@ export declare const text_block: string;
|
|
|
24
24
|
export declare const slider_block_wrapper: string;
|
|
25
25
|
export declare const calc_container: string;
|
|
26
26
|
export declare const fb50: string;
|
|
27
|
-
export declare const stat:
|
|
27
|
+
export declare const stat: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
28
|
+
variant: {
|
|
29
|
+
primary: {
|
|
30
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
31
|
+
};
|
|
32
|
+
secondary: {
|
|
33
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
34
|
+
};
|
|
35
|
+
tertiary: {
|
|
36
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
37
|
+
};
|
|
38
|
+
quaternary: {
|
|
39
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
28
43
|
export declare const w100: string;
|
|
29
44
|
export declare const balance_wrapper: string;
|
|
30
45
|
export declare const stat_row: string;
|
|
@@ -9,14 +9,14 @@ var text_block = "_7zr6kt6";
|
|
|
9
9
|
var slider_block_wrapper = "_7zr6kt7";
|
|
10
10
|
var calc_container = "_7zr6kt8";
|
|
11
11
|
var fb50 = "_7zr6kt9";
|
|
12
|
-
var stat = "_7zr6kta";
|
|
13
|
-
var w100 = "
|
|
14
|
-
var balance_wrapper = "
|
|
15
|
-
var stat_row = "
|
|
16
|
-
var slider_wrapper = "
|
|
17
|
-
var slider = "
|
|
18
|
-
var pt0_1023 = "
|
|
19
|
-
var pb0_1023 = "
|
|
12
|
+
var stat = createRuntimeFn({ defaultClassName: "_7zr6kta", variantClassNames: { variant: { primary: "_7zr6ktb", secondary: "_7zr6ktc", tertiary: "_7zr6ktd", quaternary: "_7zr6kte" } }, defaultVariants: {}, compoundVariants: [] });
|
|
13
|
+
var w100 = "_7zr6ktf";
|
|
14
|
+
var balance_wrapper = "_7zr6ktg";
|
|
15
|
+
var stat_row = "_7zr6kth";
|
|
16
|
+
var slider_wrapper = "_7zr6kti";
|
|
17
|
+
var slider = "_7zr6ktj";
|
|
18
|
+
var pt0_1023 = "_7zr6ktk";
|
|
19
|
+
var pb0_1023 = "_7zr6ktl";
|
|
20
20
|
export {
|
|
21
21
|
balance_wrapper,
|
|
22
22
|
calc_block,
|
|
@@ -5,12 +5,15 @@ import { Chevron } from "../../Chevron/index.js";
|
|
|
5
5
|
import { title } from "../../IconBillboard/IconBillboard.css.js";
|
|
6
6
|
import "../../utils/allowedAxosDomains.js";
|
|
7
7
|
import { getVariant } from "../../utils/getVariant.js";
|
|
8
|
+
import clsx from "clsx";
|
|
8
9
|
import { useRef, useState, useEffect } from "react";
|
|
10
|
+
import { calculator } from "../calculator.css.js";
|
|
9
11
|
import { container, calc_container, calc_block, pb0_1023, slider_block_wrapper, w100, stat_row, balance_wrapper, fb50, stat, slider_wrapper, slider, pt0_1023, text_block } from "./AnnualFeeCalculator.css.js";
|
|
10
12
|
const AnnualFeeCalculator = ({
|
|
11
13
|
marketingTiles,
|
|
12
|
-
variant
|
|
14
|
+
variant: fullVariant = "primary"
|
|
13
15
|
}) => {
|
|
16
|
+
const variant = getVariant(fullVariant);
|
|
14
17
|
const sliderRef = useRef(null);
|
|
15
18
|
const balanceRef = useRef(null);
|
|
16
19
|
const feeRef = useRef(null);
|
|
@@ -53,7 +56,7 @@ const AnnualFeeCalculator = ({
|
|
|
53
56
|
const handleSliderChange = (event) => {
|
|
54
57
|
setSliderValue(parseFloat(event.target.value));
|
|
55
58
|
};
|
|
56
|
-
return /* @__PURE__ */ jsx("section", { children: /* @__PURE__ */ jsx(
|
|
59
|
+
return /* @__PURE__ */ jsx("section", { className: clsx(calculator), children: /* @__PURE__ */ jsx(
|
|
57
60
|
"div",
|
|
58
61
|
{
|
|
59
62
|
className: `rounded containment ${container({ variant: getVariant(variant) })}`,
|
|
@@ -68,14 +71,14 @@ const AnnualFeeCalculator = ({
|
|
|
68
71
|
),
|
|
69
72
|
/* @__PURE__ */ jsxs("div", { className: `flex push_up_32 ${w100} ${stat_row}`, children: [
|
|
70
73
|
/* @__PURE__ */ jsxs("div", { className: `${balance_wrapper} text_center ${fb50}`, children: [
|
|
71
|
-
/* @__PURE__ */ jsxs("p", { className: stat, children: [
|
|
74
|
+
/* @__PURE__ */ jsxs("p", { className: stat({ variant }), children: [
|
|
72
75
|
"$",
|
|
73
76
|
/* @__PURE__ */ jsx("span", { ref: balanceRef, id: "balance", children: "100,000" })
|
|
74
77
|
] }),
|
|
75
78
|
/* @__PURE__ */ jsx("p", { className: "stat-subhead mb-0", children: "Account Balance" })
|
|
76
79
|
] }),
|
|
77
80
|
/* @__PURE__ */ jsxs("div", { className: `fee-wrapper text_center ${fb50}`, children: [
|
|
78
|
-
/* @__PURE__ */ jsxs("p", { className: stat, children: [
|
|
81
|
+
/* @__PURE__ */ jsxs("p", { className: stat({ variant }), children: [
|
|
79
82
|
"$",
|
|
80
83
|
/* @__PURE__ */ jsx("span", { ref: feeRef, id: "fee", children: "20.00" })
|
|
81
84
|
] }),
|
|
@@ -49,6 +49,7 @@ import "../FaqAccordion/index.js";
|
|
|
49
49
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
50
50
|
/* empty css */
|
|
51
51
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
52
|
+
/* empty css */
|
|
52
53
|
import "../Input/Checkbox.js";
|
|
53
54
|
import "../Input/CurrencyInput.js";
|
|
54
55
|
import "../Input/Dropdown.js";
|
|
@@ -88,6 +89,7 @@ import "../Table/Table.css.js";
|
|
|
88
89
|
/* empty css */
|
|
89
90
|
/* empty css */
|
|
90
91
|
/* empty css */
|
|
92
|
+
import "next/script.js";
|
|
91
93
|
/* empty css */
|
|
92
94
|
/* empty css */
|
|
93
95
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
@@ -9,6 +9,8 @@ import { Chevron } from "../../Chevron/index.js";
|
|
|
9
9
|
import { content, headerIconBillboard, buttons } from "../../IconBillboard/IconBillboard.css.js";
|
|
10
10
|
import "../../utils/allowedAxosDomains.js";
|
|
11
11
|
import { getVariant } from "../../utils/getVariant.js";
|
|
12
|
+
import clsx from "clsx";
|
|
13
|
+
import { calculator_headline } from "../calculator.css.js";
|
|
12
14
|
import { px40, fc1023, w100, bb_gray, fb50, r400_fs, fs36, green, h50, r603_fs24, mx1, table, r502_fs12, tc, bb0, btl, w25, btml, btr, bbl, bbml, bbr, savingsSummary, w50, g24, mtc } from "./MarginTradingCalculator.css.js";
|
|
13
15
|
const MarginTradingCalculator = ({
|
|
14
16
|
marketingTiles,
|
|
@@ -204,11 +206,20 @@ const MarginTradingCalculator = ({
|
|
|
204
206
|
return /* @__PURE__ */ jsx(
|
|
205
207
|
"section",
|
|
206
208
|
{
|
|
207
|
-
className: `${px40} ${container({ variant:
|
|
209
|
+
className: `${px40} ${container({ variant: calculator_variant })}`,
|
|
208
210
|
children: /* @__PURE__ */ jsx("div", { className: `containment`, children: /* @__PURE__ */ jsxs("div", { className: `flex ${fc1023}`, children: [
|
|
209
211
|
/* @__PURE__ */ jsxs("div", { className: w100, children: [
|
|
210
212
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
211
|
-
/* @__PURE__ */ jsx(
|
|
213
|
+
/* @__PURE__ */ jsx(
|
|
214
|
+
"h2",
|
|
215
|
+
{
|
|
216
|
+
className: clsx(
|
|
217
|
+
"header_2",
|
|
218
|
+
calculator_headline({ variant: calculator_variant })
|
|
219
|
+
),
|
|
220
|
+
children: "How much can I buy or borrow using margin?"
|
|
221
|
+
}
|
|
222
|
+
),
|
|
212
223
|
/* @__PURE__ */ jsxs("div", { className: `${field_row} flex_col`, children: [
|
|
213
224
|
/* @__PURE__ */ jsx("label", { className: "input_label", htmlFor: "accCashVal", children: "Account Cash Value" }),
|
|
214
225
|
/* @__PURE__ */ jsx(
|
|
@@ -241,7 +252,7 @@ const MarginTradingCalculator = ({
|
|
|
241
252
|
/* @__PURE__ */ jsx("div", { className: `center middle push_up_32`, children: /* @__PURE__ */ jsx(
|
|
242
253
|
"input",
|
|
243
254
|
{
|
|
244
|
-
className: `${button({ color: "primary", size: "medium", rounded: "medium" })} center`,
|
|
255
|
+
className: `${button({ color: calculator_variant === "primary" || calculator_variant === "secondary" ? "primary" : "secondary", size: "medium", rounded: "medium" })} center`,
|
|
245
256
|
type: "button",
|
|
246
257
|
value: "Calculate",
|
|
247
258
|
id: "calculateBtn"
|
|
@@ -271,7 +282,16 @@ const MarginTradingCalculator = ({
|
|
|
271
282
|
)
|
|
272
283
|
] })
|
|
273
284
|
] }),
|
|
274
|
-
/* @__PURE__ */ jsx(
|
|
285
|
+
/* @__PURE__ */ jsx(
|
|
286
|
+
"h2",
|
|
287
|
+
{
|
|
288
|
+
className: clsx(
|
|
289
|
+
"header_2 push_up_32",
|
|
290
|
+
calculator_headline({ variant: calculator_variant })
|
|
291
|
+
),
|
|
292
|
+
children: "How much will it cost me?"
|
|
293
|
+
}
|
|
294
|
+
),
|
|
275
295
|
/* @__PURE__ */ jsxs("div", { className: `${field_row} flex_col`, children: [
|
|
276
296
|
/* @__PURE__ */ jsx("label", { className: "input_label", htmlFor: "duration", children: "Duration (days)" }),
|
|
277
297
|
/* @__PURE__ */ jsx(
|
|
@@ -318,7 +338,7 @@ const MarginTradingCalculator = ({
|
|
|
318
338
|
/* @__PURE__ */ jsxs(
|
|
319
339
|
"div",
|
|
320
340
|
{
|
|
321
|
-
className: `savingsSummary
|
|
341
|
+
className: `savingsSummary ${savingsSummary} ${calculator_headline({ variant: calculator_variant })}`,
|
|
322
342
|
children: [
|
|
323
343
|
"Save",
|
|
324
344
|
" ",
|
|
@@ -5,7 +5,9 @@ import { calc_container, container, h2i, inputs_container, input_container, inpu
|
|
|
5
5
|
import { title } from "../../IconBillboard/IconBillboard.css.js";
|
|
6
6
|
import "../../utils/allowedAxosDomains.js";
|
|
7
7
|
import { getVariant } from "../../utils/getVariant.js";
|
|
8
|
+
import clsx from "clsx";
|
|
8
9
|
import { useState } from "react";
|
|
10
|
+
import { calculator } from "../calculator.css.js";
|
|
9
11
|
const MaxLoanCalculator = ({
|
|
10
12
|
variant,
|
|
11
13
|
header
|
|
@@ -110,7 +112,7 @@ const MaxLoanCalculator = ({
|
|
|
110
112
|
setLoanAmount(0);
|
|
111
113
|
}
|
|
112
114
|
};
|
|
113
|
-
return /* @__PURE__ */ jsx("section", { className:
|
|
115
|
+
return /* @__PURE__ */ jsx("section", { className: clsx(calculator), children: /* @__PURE__ */ jsx("div", { className: "containment", children: /* @__PURE__ */ jsxs(
|
|
114
116
|
"div",
|
|
115
117
|
{
|
|
116
118
|
className: `rounded ${calc_container} ${container({ variant: fullVariant })}`,
|
|
@@ -4,8 +4,10 @@ import { button } from "../../Button/Button.css.js";
|
|
|
4
4
|
import { title } from "../../IconBillboard/IconBillboard.css.js";
|
|
5
5
|
import "../../utils/allowedAxosDomains.js";
|
|
6
6
|
import { getVariant } from "../../utils/getVariant.js";
|
|
7
|
+
import clsx from "clsx";
|
|
7
8
|
import { useState } from "react";
|
|
8
9
|
import { calc_text, description_text, calc_disclosure } from "../BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
10
|
+
import { calculator } from "../calculator.css.js";
|
|
9
11
|
import { calc_container, container, h2i, inputs_container, input_container, input_box, error_message, calculation_header, payment_results } from "./MonthlyPaymentCalculator.css.js";
|
|
10
12
|
const MonthlyPaymentCalculator = ({
|
|
11
13
|
variant,
|
|
@@ -109,7 +111,7 @@ const MonthlyPaymentCalculator = ({
|
|
|
109
111
|
setEstimatedPayment(0);
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
|
-
return /* @__PURE__ */ jsx("section", { className:
|
|
114
|
+
return /* @__PURE__ */ jsx("section", { className: clsx(calculator), children: /* @__PURE__ */ jsx("div", { className: "containment", children: /* @__PURE__ */ jsxs(
|
|
113
115
|
"div",
|
|
114
116
|
{
|
|
115
117
|
className: `rounded ${calc_container} ${container({ variant: fullVariant })}`,
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var calculator = "iois7n0";
|
|
7
|
+
var calculator_description = createRuntimeFn({ defaultClassName: "iois7n1", variantClassNames: { variant: { primary: "iois7n2", secondary: "iois7n3", tertiary: "iois7n4", quaternary: "iois7n5" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
|
+
var calculator_headline = createRuntimeFn({ defaultClassName: "iois7n6", variantClassNames: { variant: { primary: "iois7n7", secondary: "iois7n8", tertiary: "iois7n9", quaternary: "iois7na" } }, defaultVariants: {}, compoundVariants: [] });
|
|
8
9
|
export {
|
|
10
|
+
calculator,
|
|
9
11
|
calculator_description,
|
|
10
12
|
calculator_headline
|
|
11
13
|
};
|
|
@@ -2,7 +2,7 @@ import { AnnualFeeCalculator } from "./AnnualFeeCalculator/index.js";
|
|
|
2
2
|
import { ApyCalculator } from "./ApyCalculator/index.js";
|
|
3
3
|
import { BalanceAPYCalculator } from "./BalanceAPYCalculator/index.js";
|
|
4
4
|
import { Calculator } from "./Calculator.js";
|
|
5
|
-
import { calculator_description, calculator_headline } from "./calculator.css.js";
|
|
5
|
+
import { calculator, calculator_description, calculator_headline } from "./calculator.css.js";
|
|
6
6
|
import { MarginTradingCalculator } from "./MarginTradingCalculator/index.js";
|
|
7
7
|
import { MaxLoanCalculator } from "./MaxLoanCalculator/index.js";
|
|
8
8
|
import { MonthlyPaymentCalculator } from "./MonthlyPaymentCalculator/index.js";
|
|
@@ -14,6 +14,7 @@ export {
|
|
|
14
14
|
MarginTradingCalculator,
|
|
15
15
|
MaxLoanCalculator,
|
|
16
16
|
MonthlyPaymentCalculator,
|
|
17
|
+
calculator,
|
|
17
18
|
calculator_description,
|
|
18
19
|
calculator_headline
|
|
19
20
|
};
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
5
|
+
var quoteSetContainer = "jgs3fs0";
|
|
6
|
+
var dots = "jgs3fs1";
|
|
7
|
+
var headerCarousel = createRuntimeFn({ defaultClassName: "jgs3fs2", variantClassNames: { variant: { primary: "jgs3fs3", secondary: "jgs3fs4", tertiary: "jgs3fs5", quaternary: "jgs3fs6" } }, defaultVariants: { variant: "primary" }, compoundVariants: [] });
|
|
8
|
+
var carousel = createRuntimeFn({ defaultClassName: "jgs3fs7", variantClassNames: { variant: { primary: "jgs3fs8", secondary: "jgs3fs9", tertiary: "jgs3fsa", quaternary: "jgs3fsb" } }, defaultVariants: { variant: "primary" }, compoundVariants: [] });
|
|
9
|
+
var descriptionCarousel = createRuntimeFn({ defaultClassName: "jgs3fsc", variantClassNames: { variant: { primary: "jgs3fsd", secondary: "jgs3fse", tertiary: "jgs3fsf", quaternary: "jgs3fsg" } }, defaultVariants: {}, compoundVariants: [] });
|
|
10
|
+
var authorLocation = "jgs3fsh";
|
|
11
|
+
var author = createRuntimeFn({ defaultClassName: "jgs3fsj jgs3fsi", variantClassNames: { variant: { primary: "jgs3fsk", secondary: "jgs3fsl", tertiary: "jgs3fsm", quaternary: "jgs3fsn" } }, defaultVariants: {}, compoundVariants: [] });
|
|
12
|
+
var slideBase = "jgs3fso";
|
|
13
|
+
var slide = { show: "jgs3fsp jgs3fso", hide: "jgs3fsq jgs3fso" };
|
|
14
|
+
var slides = "jgs3fsr";
|
|
15
|
+
var icon = createRuntimeFn({ defaultClassName: "jgs3fss", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
16
|
+
var dot = createRuntimeFn({ defaultClassName: "jgs3fst", variantClassNames: { variant: { primary: "jgs3fsu", secondary: "jgs3fsv", tertiary: "jgs3fsw", quaternary: "jgs3fsx" }, selected: { true: "jgs3fsy" } }, defaultVariants: { variant: "primary" }, compoundVariants: [[{ variant: "primary", selected: true }, "jgs3fsz"], [{ variant: "secondary", selected: true }, "jgs3fs10"], [{ variant: "tertiary", selected: true }, "jgs3fs11"], [{ variant: "quaternary", selected: true }, "jgs3fs12"]] });
|
|
16
17
|
export {
|
|
17
18
|
author,
|
|
18
19
|
authorLocation,
|
|
@@ -22,6 +23,7 @@ export {
|
|
|
22
23
|
dots,
|
|
23
24
|
headerCarousel,
|
|
24
25
|
icon,
|
|
26
|
+
quoteSetContainer,
|
|
25
27
|
slide,
|
|
26
28
|
slideBase,
|
|
27
29
|
slides
|
package/dist/Carousel/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface CarouselProps extends PropsWithChildren {
|
|
|
15
15
|
items?: SlideProps[];
|
|
16
16
|
title?: ReactNode;
|
|
17
17
|
description?: ReactNode;
|
|
18
|
-
|
|
18
|
+
internalName?: string;
|
|
19
19
|
}
|
|
20
20
|
export declare const CarouselSlide: (props: SlideProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare const Carousel: (props: CarouselProps & carouselVariants) => import("react/jsx-runtime").JSX.Element;
|
package/dist/Carousel/index.js
CHANGED
|
@@ -18,15 +18,16 @@ import "../Accordion/Accordion.js";
|
|
|
18
18
|
import "../Accordion/Accordion.css.js";
|
|
19
19
|
import "../AlertBanner/AlertBanner.css.js";
|
|
20
20
|
import "../Article/Article.css.js";
|
|
21
|
-
import "../ArticlesSet/ArticlesSet.css.js";
|
|
22
|
-
import "../Button/Button.css.js";
|
|
23
|
-
import React, { useEffect, Children, cloneElement } from "react";
|
|
24
|
-
import "react-use";
|
|
25
21
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
26
22
|
import "../Chevron/Chevron.css.js";
|
|
27
23
|
/* empty css */
|
|
28
24
|
import "../Modal/contextApi/store.js";
|
|
29
25
|
import clsx from "clsx";
|
|
26
|
+
import React, { useEffect, Children, cloneElement } from "react";
|
|
27
|
+
import "../Button/Button.css.js";
|
|
28
|
+
import "react-use";
|
|
29
|
+
import "../ArticlesSet/ArticlesSet.css.js";
|
|
30
|
+
import "../Calculators/calculator.css.js";
|
|
30
31
|
import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
|
|
31
32
|
import "../Calculators/ApyCalculator/ApyCalculator.css.js";
|
|
32
33
|
import "../Table/Table.css.js";
|
|
@@ -49,7 +50,6 @@ import "../Input/Checkbox.css.js";
|
|
|
49
50
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
50
51
|
import "../Input/RadioButton.js";
|
|
51
52
|
import "iframe-resizer";
|
|
52
|
-
import "../Calculators/calculator.css.js";
|
|
53
53
|
/* empty css */
|
|
54
54
|
import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
55
55
|
/* empty css */
|
|
@@ -71,6 +71,7 @@ import "../FaqAccordion/index.js";
|
|
|
71
71
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
72
72
|
/* empty css */
|
|
73
73
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
74
|
+
/* empty css */
|
|
74
75
|
/* empty css */
|
|
75
76
|
/* empty css */
|
|
76
77
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
@@ -95,9 +96,10 @@ import "../StepItemSet/StepItemSet.css.js";
|
|
|
95
96
|
/* empty css */
|
|
96
97
|
/* empty css */
|
|
97
98
|
/* empty css */
|
|
99
|
+
import "next/script.js";
|
|
98
100
|
/* empty css */
|
|
99
101
|
/* empty css */
|
|
100
|
-
import { icon, slide, authorLocation, author, headerCarousel, descriptionCarousel, carousel, slides, dots, dot } from "./Carousel.css.js";
|
|
102
|
+
import { icon, slide, authorLocation, author, quoteSetContainer, headerCarousel, descriptionCarousel, carousel, slides, dots, dot } from "./Carousel.css.js";
|
|
101
103
|
import { useCarousel } from "./store.js";
|
|
102
104
|
const iconVarints = /* @__PURE__ */ new Map([
|
|
103
105
|
[
|
|
@@ -143,7 +145,7 @@ const Carousel = (props) => {
|
|
|
143
145
|
auto = false,
|
|
144
146
|
title = void 0,
|
|
145
147
|
description = void 0,
|
|
146
|
-
|
|
148
|
+
internalName
|
|
147
149
|
} = props;
|
|
148
150
|
const change = useCarousel((state) => state.change);
|
|
149
151
|
const itemSelected = useCarousel((state) => state.selected);
|
|
@@ -164,8 +166,8 @@ const Carousel = (props) => {
|
|
|
164
166
|
const changeAfterTime = setInterval(() => plusSlides(itemSelected), time);
|
|
165
167
|
return () => clearInterval(changeAfterTime);
|
|
166
168
|
}, [auto, change, children, itemSelected, time]);
|
|
167
|
-
const selectItem = (
|
|
168
|
-
change(
|
|
169
|
+
const selectItem = (id) => {
|
|
170
|
+
change(id);
|
|
169
171
|
};
|
|
170
172
|
const child = children;
|
|
171
173
|
const showDots = () => {
|
|
@@ -180,32 +182,39 @@ const Carousel = (props) => {
|
|
|
180
182
|
)) });
|
|
181
183
|
}
|
|
182
184
|
};
|
|
183
|
-
return /* @__PURE__ */ jsxs(
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
return /* @__PURE__ */ jsxs(
|
|
186
|
+
"div",
|
|
187
|
+
{
|
|
188
|
+
className: `containment ${quoteSetContainer}`,
|
|
189
|
+
id: internalName?.replace(/ /g, "-"),
|
|
190
|
+
children: [
|
|
191
|
+
title && /* @__PURE__ */ jsxs("div", { className: section_text, children: [
|
|
192
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerCarousel({ variant })), children: title }),
|
|
193
|
+
/* @__PURE__ */ jsx("div", { className: clsx(descriptionCarousel({ variant })), children: description })
|
|
194
|
+
] }),
|
|
195
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(carousel({ variant })), children: [
|
|
196
|
+
/* @__PURE__ */ jsx("div", { children: iconVarints.get(variant) }),
|
|
197
|
+
/* @__PURE__ */ jsx("div", { className: slides, children: children ? Children.map(
|
|
198
|
+
children,
|
|
199
|
+
(item, idx) => React.isValidElement(item) && cloneElement(item, {
|
|
200
|
+
...item.props,
|
|
201
|
+
selected: idx === itemSelected,
|
|
202
|
+
variant
|
|
203
|
+
})
|
|
204
|
+
) : items?.map((item, idx) => /* @__PURE__ */ jsx(
|
|
205
|
+
CarouselSlide,
|
|
206
|
+
{
|
|
207
|
+
selected: idx === itemSelected,
|
|
208
|
+
...item,
|
|
209
|
+
variant
|
|
210
|
+
},
|
|
211
|
+
item.id
|
|
212
|
+
)) }),
|
|
213
|
+
showDots()
|
|
214
|
+
] })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
);
|
|
209
218
|
};
|
|
210
219
|
export {
|
|
211
220
|
Carousel,
|