@axos-web-dev/shared-components 0.0.82 → 0.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js +35 -0
  2. package/dist/{AnnualFeeCalculator → Calculators/AnnualFeeCalculator}/index.d.ts +1 -1
  3. package/dist/{AnnualFeeCalculator → Calculators/AnnualFeeCalculator}/index.js +4 -4
  4. package/dist/Calculators/ApyCalculator/ApyCalculator.css.js +50 -0
  5. package/dist/{ApyCalculator → Calculators/ApyCalculator}/index.d.ts +2 -2
  6. package/dist/{ApyCalculator → Calculators/ApyCalculator}/index.js +5 -5
  7. package/dist/Calculators/Calculator.d.ts +1 -1
  8. package/dist/Calculators/Calculator.js +53 -39
  9. package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.d.ts +26 -0
  10. package/dist/Calculators/MarginTradingCalculator/MarginTradingCalculator.css.js +55 -0
  11. package/dist/Calculators/MarginTradingCalculator/index.d.ts +9 -0
  12. package/dist/Calculators/MarginTradingCalculator/index.js +409 -0
  13. package/dist/Calculators/MaxLoanCalculator/index.d.ts +8 -0
  14. package/dist/Calculators/MaxLoanCalculator/index.js +216 -0
  15. package/dist/{MonthlyPaymentCalculator → Calculators/MonthlyPaymentCalculator}/MonthlyPaymentCalculator.css.d.ts +1 -0
  16. package/dist/Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +24 -0
  17. package/dist/{MonthlyPaymentCalculator → Calculators/MonthlyPaymentCalculator}/index.js +5 -5
  18. package/dist/Carousel/index.js +9 -8
  19. package/dist/Chevron/index.js +12 -11
  20. package/dist/Comparison/Comparison.js +4 -3
  21. package/dist/Comparison/ComparisonSet.js +8 -7
  22. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +11 -10
  23. package/dist/Forms/ContactUsAAS.js +9 -8
  24. package/dist/Forms/ContactUsBusiness.js +9 -8
  25. package/dist/Forms/ContactUsNMLSId.js +9 -8
  26. package/dist/Forms/EmailOnly.js +9 -8
  27. package/dist/Forms/SuccesForm.js +5 -4
  28. package/dist/Hyperlink/index.js +12 -11
  29. package/dist/ImageLink/ImageLink.js +5 -4
  30. package/dist/ImageLink/ImageLinkSet.js +4 -3
  31. package/dist/ImageLink/index.js +10 -9
  32. package/dist/Modal/Modal.js +9 -8
  33. package/dist/NavigationMenu/AxosBank/SubNavBar.js +11 -10
  34. package/dist/SetContainer/SetContainer.js +5 -4
  35. package/dist/assets/{AnnualFeeCalculator → Calculators/AnnualFeeCalculator}/AnnualFeeCalculator.css +25 -25
  36. package/dist/assets/{ApyCalculator → Calculators/ApyCalculator}/ApyCalculator.css +37 -36
  37. package/dist/assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css +107 -0
  38. package/dist/assets/{MonthlyPaymentCalculator → Calculators/MonthlyPaymentCalculator}/MonthlyPaymentCalculator.css +18 -14
  39. package/dist/main.d.ts +4 -1
  40. package/dist/main.js +7 -1
  41. package/package.json +111 -111
  42. package/dist/AnnualFeeCalculator/AnnualFeeCalculator.css.js +0 -35
  43. package/dist/ApyCalculator/ApyCalculator.css.js +0 -50
  44. package/dist/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js +0 -22
  45. /package/dist/{AnnualFeeCalculator → Calculators/AnnualFeeCalculator}/AnnualFeeCalculator.css.d.ts +0 -0
  46. /package/dist/{ApyCalculator → Calculators/ApyCalculator}/ApyCalculator.css.d.ts +0 -0
  47. /package/dist/{MonthlyPaymentCalculator → Calculators/MonthlyPaymentCalculator}/index.d.ts +0 -0
@@ -0,0 +1,35 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
6
+ var container = createRuntimeFn({ defaultClassName: "_7zr6kt0", variantClassNames: { variant: { primary: "_7zr6kt1", secondary: "_7zr6kt2", tertiary: "_7zr6kt3", quaternary: "_7zr6kt4" } }, defaultVariants: {}, compoundVariants: [] });
7
+ var calc_block = "_7zr6kt5";
8
+ var text_block = "_7zr6kt6";
9
+ var slider_block_wrapper = "_7zr6kt7";
10
+ var calc_container = "_7zr6kt8";
11
+ var fb50 = "_7zr6kt9";
12
+ var stat = "_7zr6kta";
13
+ var w100 = "_7zr6ktb";
14
+ var balance_wrapper = "_7zr6ktc";
15
+ var stat_row = "_7zr6ktd";
16
+ var slider_wrapper = "_7zr6kte";
17
+ var slider = "_7zr6ktf";
18
+ var pt0_1023 = "_7zr6ktg";
19
+ var pb0_1023 = "_7zr6kth";
20
+ export {
21
+ balance_wrapper,
22
+ calc_block,
23
+ calc_container,
24
+ container,
25
+ fb50,
26
+ pb0_1023,
27
+ pt0_1023,
28
+ slider,
29
+ slider_block_wrapper,
30
+ slider_wrapper,
31
+ stat,
32
+ stat_row,
33
+ text_block,
34
+ w100
35
+ };
@@ -1,5 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { IconBillboardProps } from '../IconBillboard/IconBillboard.interface';
2
+ import { IconBillboardProps } from '../../IconBillboard/IconBillboard.interface';
3
3
 
4
4
  export interface AnnualFeeCalculatorProps {
5
5
  header?: ReactNode | string;
@@ -2,10 +2,10 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useRef, useState, useEffect } from "react";
4
4
  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";
5
- import { Button } from "../Button/Button.js";
6
- import { Chevron } from "../Chevron/index.js";
7
- import { getVariant } from "../utils/getVariant.js";
8
- import { title } from "../IconBillboard/IconBillboard.css.js";
5
+ import { Button } from "../../Button/Button.js";
6
+ import { Chevron } from "../../Chevron/index.js";
7
+ import { getVariant } from "../../utils/getVariant.js";
8
+ import { title } from "../../IconBillboard/IconBillboard.css.js";
9
9
  const AnnualFeeCalculator = ({
10
10
  marketingTiles,
11
11
  variant
@@ -0,0 +1,50 @@
1
+ /* empty css */
2
+ /* empty css */
3
+ /* empty css */
4
+ import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
5
+ var container = createRuntimeFn({ defaultClassName: "_1vox1xj0", variantClassNames: { variant: { primary: "_1vox1xj1", secondary: "_1vox1xj2", tertiary: "_1vox1xj3", quaternary: "_1vox1xj4" } }, defaultVariants: {}, compoundVariants: [] });
6
+ var apy_calculator = "_1vox1xj5";
7
+ var calculator_section = "_1vox1xj6";
8
+ var section_header = "_1vox1xj7";
9
+ var apy_calculator_form = "_1vox1xj8";
10
+ var errorTag = "_1vox1xj9";
11
+ var fieldset = "_1vox1xja";
12
+ var field_row = "_1vox1xjb";
13
+ var relative = "_1vox1xjc";
14
+ var label_symbol = "_1vox1xjd";
15
+ var cash = "_1vox1xje";
16
+ var percent = "_1vox1xjf";
17
+ var prefix_pad = "_1vox1xjg";
18
+ var submit_section = "_1vox1xjh";
19
+ var span_12 = "_1vox1xji";
20
+ var form_disclosure = "_1vox1xjj";
21
+ var marketing = "_1vox1xjk";
22
+ var marketingTile = "_1vox1xjl";
23
+ var bodyContent = "_1vox1xjm";
24
+ var header_theme = createRuntimeFn({ defaultClassName: "_1vox1xjn", variantClassNames: { variant: { primary: "_1vox1xjo", secondary: "_1vox1xjp", tertiary: "_1vox1xjq", quaternary: "_1vox1xjr" } }, defaultVariants: {}, compoundVariants: [] });
25
+ var mt_8 = "_1vox1xjs";
26
+ var pis_0 = "_1vox1xjt";
27
+ export {
28
+ apy_calculator,
29
+ apy_calculator_form,
30
+ bodyContent,
31
+ calculator_section,
32
+ cash,
33
+ container,
34
+ errorTag,
35
+ field_row,
36
+ fieldset,
37
+ form_disclosure,
38
+ header_theme,
39
+ label_symbol,
40
+ marketing,
41
+ marketingTile,
42
+ mt_8,
43
+ percent,
44
+ pis_0,
45
+ prefix_pad,
46
+ relative,
47
+ section_header,
48
+ span_12,
49
+ submit_section
50
+ };
@@ -1,6 +1,6 @@
1
1
  import { FC, ReactNode } from 'react';
2
- import { IconBillboardProps } from '../IconBillboard/IconBillboard.interface';
3
- import { QuaternaryTypes } from '../utils';
2
+ import { IconBillboardProps } from '../../IconBillboard/IconBillboard.interface';
3
+ import { QuaternaryTypes } from '../../utils';
4
4
 
5
5
  export interface ApyCalculatorProps {
6
6
  header?: ReactNode | string;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { button } from "../Button/Button.css.js";
3
+ import { button } from "../../Button/Button.css.js";
4
4
  import { useState, useCallback, useEffect } from "react";
5
5
  import { container, apy_calculator, calculator_section, section_header, header_theme, mt_8, apy_calculator_form, pis_0, errorTag, fieldset, field_row, relative, label_symbol, cash, prefix_pad, percent, submit_section, span_12, form_disclosure, marketing, marketingTile, bodyContent } from "./ApyCalculator.css.js";
6
- import { Button } from "../Button/Button.js";
6
+ import { Button } from "../../Button/Button.js";
7
7
  import "react-use";
8
- import { getVariant } from "../utils/getVariant.js";
9
- import { Chevron } from "../Chevron/index.js";
10
- import { section_container, content, headerIconBillboard, buttons } from "../IconBillboard/IconBillboard.css.js";
8
+ import { getVariant } from "../../utils/getVariant.js";
9
+ import { Chevron } from "../../Chevron/index.js";
10
+ import { section_container, content, headerIconBillboard, buttons } from "../../IconBillboard/IconBillboard.css.js";
11
11
  const ApyCalculator = ({
12
12
  header,
13
13
  body,
@@ -1,5 +1,5 @@
1
- import { IconBillboardProps } from '../IconBillboard/IconBillboard.interface';
2
1
  import { default as React } from 'react';
2
+ import { IconBillboardProps } from '../IconBillboard/IconBillboard.interface';
3
3
 
4
4
  export interface CalculatorProps {
5
5
  id?: string;
@@ -1,8 +1,5 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { ATMLocator } from "../ATMLocator/ATMLocator.js";
4
- import { AnnualFeeCalculator } from "../AnnualFeeCalculator/index.js";
5
- import { ApyCalculator } from "../ApyCalculator/index.js";
6
3
  import "@hookform/resolvers/zod";
7
4
  import "../Modal/contextApi/store.js";
8
5
  import { getVariant } from "../utils/getVariant.js";
@@ -30,6 +27,7 @@ import "../icons/CheckIcon/CheckIcon.css.js";
30
27
  import "react-hook-form";
31
28
  import { iconForm } from "../Forms/Forms.css.js";
32
29
  import "../Forms/SalesforceFieldsForm.js";
30
+ import { ATMLocator } from "../ATMLocator/ATMLocator.js";
33
31
  import "../Accordion/Accordion.js";
34
32
  import "../Accordion/Accordion.css.js";
35
33
  import "../Chevron/Chevron.css.js";
@@ -41,6 +39,10 @@ import "../ArticlesSet/ArticlesSet.css.js";
41
39
  import "../IconBillboard/IconBillboard.css.js";
42
40
  /* empty css */
43
41
  import { calculator_headline, calculator_description } from "./calculator.css.js";
42
+ import { AnnualFeeCalculator } from "./AnnualFeeCalculator/index.js";
43
+ import { ApyCalculator } from "./ApyCalculator/index.js";
44
+ import { MarginTradingCalculator } from "./MarginTradingCalculator/index.js";
45
+ import { MonthlyPaymentCalculator } from "./MonthlyPaymentCalculator/index.js";
44
46
  /* empty css */
45
47
  import "../Carousel/index.js";
46
48
  /* empty css */
@@ -81,9 +83,9 @@ import "next/script.js";
81
83
  /* empty css */
82
84
  /* empty css */
83
85
  import "../Input/RadioButton.js";
84
- import { MonthlyPaymentCalculator } from "../MonthlyPaymentCalculator/index.js";
85
86
  import { iframeResizer } from "iframe-resizer";
86
87
  import { calculators } from "./calculators.js";
88
+ import { MaxLoanCalculator } from "./MaxLoanCalculator/index.js";
87
89
  const Calculator = (props) => {
88
90
  const {
89
91
  id,
@@ -104,8 +106,7 @@ const Calculator = (props) => {
104
106
  const variant = getVariant(props.variant);
105
107
  if (name?.toLowerCase()?.includes("atm locator")) {
106
108
  return /* @__PURE__ */ jsx(ATMLocator, {});
107
- }
108
- if (name === "APY Calculator") {
109
+ } else if (name === "APY") {
109
110
  return /* @__PURE__ */ jsx(
110
111
  ApyCalculator,
111
112
  {
@@ -116,7 +117,7 @@ const Calculator = (props) => {
116
117
  disclosure
117
118
  }
118
119
  );
119
- } else if (name === "Monthly Payment Calculator") {
120
+ } else if (name === "Monthly Payment") {
120
121
  return /* @__PURE__ */ jsx(
121
122
  MonthlyPaymentCalculator,
122
123
  {
@@ -125,7 +126,9 @@ const Calculator = (props) => {
125
126
  variant
126
127
  }
127
128
  );
128
- } else if (name === "Annual Fee Calculator") {
129
+ } else if (name === "Max Loan") {
130
+ return /* @__PURE__ */ jsx(MaxLoanCalculator, { header: headline, body: bodyCopy, variant });
131
+ } else if (name === "Annual Fee") {
129
132
  return /* @__PURE__ */ jsx(
130
133
  AnnualFeeCalculator,
131
134
  {
@@ -135,40 +138,51 @@ const Calculator = (props) => {
135
138
  variant
136
139
  }
137
140
  );
141
+ } else if (name === "Margin Trading") {
142
+ return /* @__PURE__ */ jsx(
143
+ MarginTradingCalculator,
144
+ {
145
+ marketingTiles,
146
+ variant
147
+ }
148
+ );
138
149
  } else
139
- return /* @__PURE__ */ jsx("section", { id, className: "", children: /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
140
- /* @__PURE__ */ jsxs("div", { children: [
141
- icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
142
- /* @__PURE__ */ jsx(
143
- "h2",
150
+ return /* @__PURE__ */ jsxs("section", { id, children: [
151
+ /* @__PURE__ */ jsx("h1", { children: "Iframe Calculator" }),
152
+ /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
153
+ /* @__PURE__ */ jsxs("div", { children: [
154
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
155
+ /* @__PURE__ */ jsx(
156
+ "h2",
157
+ {
158
+ className: clsx(
159
+ "header_2 text_center",
160
+ calculator_headline({ variant })
161
+ ),
162
+ children: headline
163
+ }
164
+ ),
165
+ /* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: bodyCopy })
166
+ ] }),
167
+ /* @__PURE__ */ jsx("div", { className: "calc section-narrow", children: /* @__PURE__ */ jsx(
168
+ "iframe",
144
169
  {
145
- className: clsx(
146
- "header_2 text_center",
147
- calculator_headline({ variant })
148
- ),
149
- children: headline
170
+ ref,
171
+ style: {
172
+ width: "100%",
173
+ maxWidth: "100%",
174
+ minHeight: "clamp(1100px, 200vh)"
175
+ },
176
+ scrolling: "no",
177
+ frameBorder: "0",
178
+ className: "iframe-calculator",
179
+ allow: "from",
180
+ src: iframe?.src
150
181
  }
151
- ),
152
- /* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: bodyCopy })
153
- ] }),
154
- /* @__PURE__ */ jsx("div", { className: "calc section-narrow", children: /* @__PURE__ */ jsx(
155
- "iframe",
156
- {
157
- ref,
158
- style: {
159
- width: "100%",
160
- maxWidth: "100%",
161
- minHeight: "clamp(1100px, 200vh)"
162
- },
163
- scrolling: "no",
164
- frameBorder: "0",
165
- className: "iframe-calculator",
166
- allow: "from",
167
- src: iframe?.src
168
- }
169
- ) }),
170
- /* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: disclosure })
171
- ] }) });
182
+ ) }),
183
+ /* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: disclosure })
184
+ ] })
185
+ ] });
172
186
  };
173
187
  export {
174
188
  Calculator
@@ -0,0 +1,26 @@
1
+ export declare const w100: string;
2
+ export declare const w50: string;
3
+ export declare const g24: string;
4
+ export declare const fb50: string;
5
+ export declare const fs36: string;
6
+ export declare const green: string;
7
+ export declare const bb_gray: string;
8
+ export declare const mx1: string;
9
+ export declare const table: string;
10
+ export declare const tc: string;
11
+ export declare const btl: string;
12
+ export declare const btr: string;
13
+ export declare const bbl: string;
14
+ export declare const bbr: string;
15
+ export declare const bb0: string;
16
+ export declare const btml: string;
17
+ export declare const bbml: string;
18
+ export declare const savingsSummary: string;
19
+ export declare const h50: string;
20
+ export declare const w25: string;
21
+ export declare const fc1023: string;
22
+ export declare const mtc: string;
23
+ export declare const r603_fs24: string;
24
+ export declare const r502_fs12: string;
25
+ export declare const r400_fs: string;
26
+ export declare const px40: string;
@@ -0,0 +1,55 @@
1
+ /* empty css */
2
+ var w100 = "_1mgfcbj0";
3
+ var w50 = "_1mgfcbj1";
4
+ var g24 = "_1mgfcbj2";
5
+ var fb50 = "_1mgfcbj3";
6
+ var fs36 = "_1mgfcbj4";
7
+ var green = "_1mgfcbj5";
8
+ var bb_gray = "_1mgfcbj6";
9
+ var mx1 = "_1mgfcbj7";
10
+ var table = "_1mgfcbj8";
11
+ var tc = "_1mgfcbj9";
12
+ var btl = "_1mgfcbja";
13
+ var btr = "_1mgfcbjb";
14
+ var bbl = "_1mgfcbjc";
15
+ var bbr = "_1mgfcbjd";
16
+ var bb0 = "_1mgfcbje";
17
+ var btml = "_1mgfcbjf";
18
+ var bbml = "_1mgfcbjg";
19
+ var savingsSummary = "_1mgfcbjh";
20
+ var h50 = "_1mgfcbji";
21
+ var w25 = "_1mgfcbjj";
22
+ var fc1023 = "_1mgfcbjk";
23
+ var mtc = "_1mgfcbjl";
24
+ var r603_fs24 = "_1mgfcbjm";
25
+ var r502_fs12 = "_1mgfcbjn";
26
+ var r400_fs = "_1mgfcbjo";
27
+ var px40 = "_1mgfcbjp";
28
+ export {
29
+ bb0,
30
+ bb_gray,
31
+ bbl,
32
+ bbml,
33
+ bbr,
34
+ btl,
35
+ btml,
36
+ btr,
37
+ fb50,
38
+ fc1023,
39
+ fs36,
40
+ g24,
41
+ green,
42
+ h50,
43
+ mtc,
44
+ mx1,
45
+ px40,
46
+ r400_fs,
47
+ r502_fs12,
48
+ r603_fs24,
49
+ savingsSummary,
50
+ table,
51
+ tc,
52
+ w100,
53
+ w25,
54
+ w50
55
+ };
@@ -0,0 +1,9 @@
1
+ import { IconBillboardProps } from '../../IconBillboard/IconBillboard.interface';
2
+ import { QuaternaryTypes } from '../../utils';
3
+ import { FC } from 'react';
4
+
5
+ export interface MarginCalculatorProps {
6
+ marketingTiles?: IconBillboardProps[];
7
+ variant: QuaternaryTypes;
8
+ }
9
+ export declare const MarginTradingCalculator: FC<MarginCalculatorProps>;