@axos-web-dev/shared-components 1.0.100-dev.76 → 1.0.100-dev.77
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/README.md +111 -111
- package/dist/Accordion/Accordion.js +3 -3
- package/dist/AlertBanner/index.js +1 -1
- package/dist/Article/Article.js +1 -1
- package/dist/Avatar/Avatar.module.js +7 -7
- package/dist/Blockquote/Blockquote.module.js +3 -3
- package/dist/Calculators/AnnualFeeCalculator/index.js +1 -1
- package/dist/Calculators/ApyCalculator/index.js +1 -1
- package/dist/Calculators/BuyDownCalculator/index.js +1 -1
- package/dist/Calculators/MarginTradingCalculator/index.js +1 -1
- package/dist/Calculators/MarineLoanMonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/MaxLoanCalculator/index.js +1 -1
- package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -1
- package/dist/Calculators/MonthlyPaymentLVFCalculator/index.js +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/ContentBanner/index.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBioSet.js +1 -1
- package/dist/FaqAccordion/index.js +1 -1
- package/dist/FdicCallout/FdicCallout.module.js +2 -2
- package/dist/FooterDisclosure/FooterDisclosure.js +1 -1
- package/dist/Forms/ConstructionLendingDynamic.js +27 -1
- package/dist/Forms/FormEnums.js +1 -3
- package/dist/Forms/MortgageRate/MortgageRateForm.js +1 -1
- package/dist/HeroBanner/HeroBanner.js +2 -2
- package/dist/Hyperlink/index.js +3 -2
- package/dist/IconBillboard/IconBillboardSet.js +1 -1
- package/dist/ImageBillboard/ImageBillboard.js +1 -1
- package/dist/Input/Checkbox.js +2 -2
- package/dist/Input/DownPaymentInput.js +1 -1
- package/dist/Input/Dropdown.js +1 -1
- package/dist/Input/Input.js +1 -1
- package/dist/Input/InputTextArea.js +1 -1
- package/dist/Insight/Featured/Featured.js +2 -2
- package/dist/Interstitial/Interstitial.module.js +10 -10
- package/dist/LandingPageHeader/LandingPageHeader.js +1 -1
- package/dist/Modal/contextApi/store.js +1 -1
- package/dist/NavigationMenu/AxosALTS/NavBar.module.js +23 -23
- package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +52 -52
- package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +53 -53
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileMenu.module.js +27 -27
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.d.ts +1 -0
- package/dist/NavigationMenu/AxosBank/MobileMenu/MobileNavData.js +3 -0
- package/dist/NavigationMenu/AxosBank/NavBar.module.js +39 -39
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +9 -0
- package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
- package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
- package/dist/NavigationMenu/LaVictoire/NavBar.module.js +37 -37
- package/dist/PageNavItem/PageNavItem.js +1 -1
- package/dist/SetContainer/SetContainer.js +1 -1
- package/dist/StepItem/StepItem.js +1 -1
- package/dist/StepItemSet/StepItemSet.js +1 -1
- package/dist/Table/Table.js +1 -1
- package/dist/Topic/Topic.js +1 -1
- package/dist/WalnutIframe/wrapper.module.js +3 -3
- package/dist/assets/Avatar/Avatar.css.css +59 -59
- package/dist/assets/Blockquote/Blockquote.css.css +72 -72
- package/dist/assets/FdicCallout/FdicCallout.css.css +48 -48
- package/dist/assets/Interstitial/Interstitial.css.css +142 -142
- package/dist/assets/NavigationMenu/AxosALTS/NavBar.css.css +264 -264
- package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +609 -609
- package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +630 -630
- package/dist/assets/NavigationMenu/AxosBank/MobileMenu/MobileMenu.css.css +353 -353
- package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +445 -445
- package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +484 -484
- package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +427 -427
- package/dist/assets/NavigationMenu/LaVictoire/NavBar.css.css +429 -429
- package/dist/assets/WalnutIframe/wrapper.css.css +48 -48
- package/dist/assets/utils/optimizeImage/optimizeImage.css.css +47 -47
- package/dist/utils/appendQueryParams.js +36 -5
- package/dist/utils/optimizeImage/optimizeImage.module.js +3 -3
- package/dist/utils/validateExternalLinks.js +2 -4
- package/package.json +136 -136
package/README.md
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
|
|
3
|
-
Using npm:
|
|
4
|
-
|
|
5
|
-
```shell
|
|
6
|
-
$ npm install @axos-web-dev/shared-components
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
To import components
|
|
10
|
-
In Node.js:
|
|
11
|
-
|
|
12
|
-
```js
|
|
13
|
-
// Import Components
|
|
14
|
-
import {
|
|
15
|
-
AlertBanner,
|
|
16
|
-
CallToActionBar,
|
|
17
|
-
DownloadTile,
|
|
18
|
-
ImageBillboard,
|
|
19
|
-
SecondaryFooter,
|
|
20
|
-
} from "@axos-web-dev/shared-components";
|
|
21
|
-
|
|
22
|
-
// Import Types/Interfaces
|
|
23
|
-
|
|
24
|
-
import { AlertBannerInterface } from "@axos-web-dev/shared-components/dist/AlertBanner/AlertBanner.interface";
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
In css files:
|
|
28
|
-
|
|
29
|
-
```css
|
|
30
|
-
/*** Import styles ***/
|
|
31
|
-
|
|
32
|
-
@import "@axos-web-dev/shared-components/dist/assets/AlertBanner/AlertBanner.css";
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
# Shared components
|
|
36
|
-
|
|
37
|
-
This project is develop using `React + TypeScript + Vite + Storybook + Vanilla-extract` to building custom components for internal use.
|
|
38
|
-
|
|
39
|
-
## How to add new component
|
|
40
|
-
|
|
41
|
-
For add a new component use the `src/lib` folder and create a folder for the component. After that you should register an export in `src/lib/main.ts` file.
|
|
42
|
-
|
|
43
|
-
Also you need create a storie for the new component. Go to `src/stories` and create a new file or folder.
|
|
44
|
-
|
|
45
|
-
```shell
|
|
46
|
-
git clone bofaz@vs-ssh.visualstudio.com:v3/bofaz/Axos%20Marketing%20Cloud/Shared%20Components shared-components
|
|
47
|
-
|
|
48
|
-
cd shared-components
|
|
49
|
-
|
|
50
|
-
npm install
|
|
51
|
-
|
|
52
|
-
# for using storybook
|
|
53
|
-
npm run storybook
|
|
54
|
-
|
|
55
|
-
# for build
|
|
56
|
-
npm run build
|
|
57
|
-
|
|
58
|
-
# for testing in other projects
|
|
59
|
-
npm run build
|
|
60
|
-
|
|
61
|
-
npm link
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
For publishing we need to udpate the version we are using [semantic versioning](https://semver.org/)
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
Given a version number MAJOR.MINOR.PATCH, increment the:
|
|
69
|
-
|
|
70
|
-
MAJOR version when you make incompatible API changes
|
|
71
|
-
MINOR version when you add functionality in a backward compatible manner
|
|
72
|
-
PATCH version when you make backward compatible bug fixes
|
|
73
|
-
|
|
74
|
-
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
we can update the version with the following commands:
|
|
78
|
-
|
|
79
|
-
```shell
|
|
80
|
-
# bumps the patch number like 0.0.0 -> 0.0.1
|
|
81
|
-
npm version patch
|
|
82
|
-
|
|
83
|
-
# bumps the patch number like 0.0.0 -> 0.1.0
|
|
84
|
-
npm version minor
|
|
85
|
-
|
|
86
|
-
# bumps the patch number like 0.0.0 -> 1.0.0
|
|
87
|
-
npm version major
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
## How to publish new library version to npm
|
|
94
|
-
|
|
95
|
-
First update the version as previously described
|
|
96
|
-
|
|
97
|
-
```shell
|
|
98
|
-
npm version [...]
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
Then you will need to login into npm to do that write:
|
|
102
|
-
|
|
103
|
-
```shell
|
|
104
|
-
npm login --scope=@my-org
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
Last you to publish the new version:
|
|
108
|
-
|
|
109
|
-
```shell
|
|
110
|
-
npm publish
|
|
111
|
-
```
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
Using npm:
|
|
4
|
+
|
|
5
|
+
```shell
|
|
6
|
+
$ npm install @axos-web-dev/shared-components
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
To import components
|
|
10
|
+
In Node.js:
|
|
11
|
+
|
|
12
|
+
```js
|
|
13
|
+
// Import Components
|
|
14
|
+
import {
|
|
15
|
+
AlertBanner,
|
|
16
|
+
CallToActionBar,
|
|
17
|
+
DownloadTile,
|
|
18
|
+
ImageBillboard,
|
|
19
|
+
SecondaryFooter,
|
|
20
|
+
} from "@axos-web-dev/shared-components";
|
|
21
|
+
|
|
22
|
+
// Import Types/Interfaces
|
|
23
|
+
|
|
24
|
+
import { AlertBannerInterface } from "@axos-web-dev/shared-components/dist/AlertBanner/AlertBanner.interface";
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
In css files:
|
|
28
|
+
|
|
29
|
+
```css
|
|
30
|
+
/*** Import styles ***/
|
|
31
|
+
|
|
32
|
+
@import "@axos-web-dev/shared-components/dist/assets/AlertBanner/AlertBanner.css";
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
# Shared components
|
|
36
|
+
|
|
37
|
+
This project is develop using `React + TypeScript + Vite + Storybook + Vanilla-extract` to building custom components for internal use.
|
|
38
|
+
|
|
39
|
+
## How to add new component
|
|
40
|
+
|
|
41
|
+
For add a new component use the `src/lib` folder and create a folder for the component. After that you should register an export in `src/lib/main.ts` file.
|
|
42
|
+
|
|
43
|
+
Also you need create a storie for the new component. Go to `src/stories` and create a new file or folder.
|
|
44
|
+
|
|
45
|
+
```shell
|
|
46
|
+
git clone bofaz@vs-ssh.visualstudio.com:v3/bofaz/Axos%20Marketing%20Cloud/Shared%20Components shared-components
|
|
47
|
+
|
|
48
|
+
cd shared-components
|
|
49
|
+
|
|
50
|
+
npm install
|
|
51
|
+
|
|
52
|
+
# for using storybook
|
|
53
|
+
npm run storybook
|
|
54
|
+
|
|
55
|
+
# for build
|
|
56
|
+
npm run build
|
|
57
|
+
|
|
58
|
+
# for testing in other projects
|
|
59
|
+
npm run build
|
|
60
|
+
|
|
61
|
+
npm link
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For publishing we need to udpate the version we are using [semantic versioning](https://semver.org/)
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Given a version number MAJOR.MINOR.PATCH, increment the:
|
|
69
|
+
|
|
70
|
+
MAJOR version when you make incompatible API changes
|
|
71
|
+
MINOR version when you add functionality in a backward compatible manner
|
|
72
|
+
PATCH version when you make backward compatible bug fixes
|
|
73
|
+
|
|
74
|
+
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
we can update the version with the following commands:
|
|
78
|
+
|
|
79
|
+
```shell
|
|
80
|
+
# bumps the patch number like 0.0.0 -> 0.0.1
|
|
81
|
+
npm version patch
|
|
82
|
+
|
|
83
|
+
# bumps the patch number like 0.0.0 -> 0.1.0
|
|
84
|
+
npm version minor
|
|
85
|
+
|
|
86
|
+
# bumps the patch number like 0.0.0 -> 1.0.0
|
|
87
|
+
npm version major
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## How to publish new library version to npm
|
|
94
|
+
|
|
95
|
+
First update the version as previously described
|
|
96
|
+
|
|
97
|
+
```shell
|
|
98
|
+
npm version [...]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Then you will need to login into npm to do that write:
|
|
102
|
+
|
|
103
|
+
```shell
|
|
104
|
+
npm login --scope=@my-org
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Last you to publish the new version:
|
|
108
|
+
|
|
109
|
+
```shell
|
|
110
|
+
npm publish
|
|
111
|
+
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import React, { createContext,
|
|
4
|
+
import React, { createContext, useState, useContext } from "react";
|
|
5
5
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
6
6
|
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
7
7
|
import SvgChevronDown from "../icons/ChevronDown.js";
|
|
@@ -12,7 +12,7 @@ import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/Downl
|
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
14
|
/* empty css */
|
|
15
|
-
import {
|
|
15
|
+
import { bodyAccordion, hide, paragraph, accordion, headerContent, icon, headerAccordion } from "./Accordion.css.js";
|
|
16
16
|
const AccordionCtx = createContext({
|
|
17
17
|
isOpen: false,
|
|
18
18
|
onclick: () => {
|
|
@@ -10,7 +10,7 @@ import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/Downl
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
import SvgLockIcon from "../icons/LockIcon/index.js";
|
|
12
12
|
import { SvgWarningIcon } from "../icons/WarningIcon/index.js";
|
|
13
|
-
import {
|
|
13
|
+
import { alertBanner_img_section, alertBanner_body, alertBanner_cta, alertBanner } from "./AlertBanner.css.js";
|
|
14
14
|
const AlertBanner = ({
|
|
15
15
|
alertType,
|
|
16
16
|
message,
|
package/dist/Article/Article.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
3
|
import { OptimizeImage } from "../utils/optimizeImage/OptimizeImage.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ant_img, ant_content, ant_eyebrow, ant_card_title, ant_card_body, ant_card_cta, ant_article } from "./Article.css.js";
|
|
5
5
|
import { Button } from "../Button/Button.js";
|
|
6
6
|
import "../Button/Button.css.js";
|
|
7
7
|
import "react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import '../assets/Avatar/Avatar.css.css';const avatar_sec = "
|
|
2
|
-
const container = "
|
|
3
|
-
const image = "
|
|
4
|
-
const text = "
|
|
5
|
-
const name = "
|
|
6
|
-
const title = "
|
|
7
|
-
const description = "
|
|
1
|
+
import '../assets/Avatar/Avatar.css.css';const avatar_sec = "_avatar_sec_q4a8z_1";
|
|
2
|
+
const container = "_container_q4a8z_9";
|
|
3
|
+
const image = "_image_q4a8z_27";
|
|
4
|
+
const text = "_text_q4a8z_45";
|
|
5
|
+
const name = "_name_q4a8z_57";
|
|
6
|
+
const title = "_title_q4a8z_73";
|
|
7
|
+
const description = "_description_q4a8z_87";
|
|
8
8
|
const css = {
|
|
9
9
|
avatar_sec,
|
|
10
10
|
container,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import '../assets/Blockquote/Blockquote.css.css';const quote_spacer = "
|
|
2
|
-
const author = "
|
|
3
|
-
const quote = "
|
|
1
|
+
import '../assets/Blockquote/Blockquote.css.css';const quote_spacer = "_quote_spacer_lqs2u_1";
|
|
2
|
+
const author = "_author_lqs2u_13";
|
|
3
|
+
const quote = "_quote_lqs2u_1";
|
|
4
4
|
const css = {
|
|
5
5
|
quote_spacer,
|
|
6
6
|
author,
|
|
@@ -8,7 +8,7 @@ import { getVariant } from "../../utils/getVariant.js";
|
|
|
8
8
|
import { useRef, useState, useEffect } from "react";
|
|
9
9
|
import clsx from "clsx";
|
|
10
10
|
import { calculator } from "../calculator.css.js";
|
|
11
|
-
import {
|
|
11
|
+
import { calc_container, calc_block, pb0_1023, slider_block_wrapper, w100, stat_row, balance_wrapper, fb50, stat, slider_wrapper, slider, pt0_1023, text_block, container } from "./AnnualFeeCalculator.css.js";
|
|
12
12
|
const AnnualFeeCalculator = ({
|
|
13
13
|
marketingTiles,
|
|
14
14
|
variant: fullVariant = "primary"
|
|
@@ -7,7 +7,7 @@ import "react-use";
|
|
|
7
7
|
import { Chevron } from "../../Chevron/index.js";
|
|
8
8
|
import { section_container, content, headerIconBillboard, buttons } from "../../IconBillboard/IconBillboard.css.js";
|
|
9
9
|
import { getVariant } from "../../utils/getVariant.js";
|
|
10
|
-
import {
|
|
10
|
+
import { 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, container } from "./ApyCalculator.css.js";
|
|
11
11
|
const ApyCalculator = ({
|
|
12
12
|
header,
|
|
13
13
|
body,
|
|
@@ -23,7 +23,7 @@ import { z } from "zod";
|
|
|
23
23
|
import { getVariant } from "../../utils/getVariant.js";
|
|
24
24
|
import clsx from "clsx";
|
|
25
25
|
import { useForm, FormProvider } from "react-hook-form";
|
|
26
|
-
import {
|
|
26
|
+
import { calculator_section, section_header, theme_header, mt_8, buydown_calculator_form, row_form, calculate_row, form_wrapper, form_disclosure, calc_container } from "./BuyDownCalculator.css.js";
|
|
27
27
|
const BuyDownCalculator = ({
|
|
28
28
|
header,
|
|
29
29
|
body,
|
|
@@ -4,7 +4,7 @@ import { Button } from "../../Button/Button.js";
|
|
|
4
4
|
import { button } from "../../Button/Button.css.js";
|
|
5
5
|
import { useEffect } from "react";
|
|
6
6
|
import "react-use";
|
|
7
|
-
import {
|
|
7
|
+
import { field_row, errorTag, marketingTile, bodyContent, header_theme, container } from "../ApyCalculator/ApyCalculator.css.js";
|
|
8
8
|
import { Chevron } from "../../Chevron/index.js";
|
|
9
9
|
import { content, headerIconBillboard, buttons } from "../../IconBillboard/IconBillboard.css.js";
|
|
10
10
|
import { findMoreAxosDomains } from "../../utils/allowedAxosDomains.js";
|
|
@@ -8,7 +8,7 @@ import { useState } from "react";
|
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { calc_text, description_text, calc_disclosure } from "../BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
10
10
|
import { calculator } from "../calculator.css.js";
|
|
11
|
-
import { calc_container,
|
|
11
|
+
import { calc_container, h2i, inputs_container, input_container, input_box, error_message, hide_select_arrow, calculation_header, payment_results, container } from "../MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
|
|
12
12
|
const MarineLoanMonthlyPaymentCalculator = ({ variant, header, disclosure, bodyCopy = true }) => {
|
|
13
13
|
const fullVariant = getVariant(variant);
|
|
14
14
|
const [loanAmountDisplay, setLoanAmountDisplay] = useState("$75,000");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { button } from "../../Button/Button.css.js";
|
|
4
|
-
import { calc_container,
|
|
4
|
+
import { calc_container, h2i, inputs_container, input_container, input_box, error_message, calculation_header, payment_results, container } from "../MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.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,7 +8,7 @@ import { useState } from "react";
|
|
|
8
8
|
import clsx from "clsx";
|
|
9
9
|
import { calc_text, description_text, calc_disclosure } from "../BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
10
10
|
import { calculator } from "../calculator.css.js";
|
|
11
|
-
import { calc_container,
|
|
11
|
+
import { calc_container, h2i, inputs_container, input_container, input_box, error_message, calculation_header, payment_results, container } from "./MonthlyPaymentCalculator.css.js";
|
|
12
12
|
const MonthlyPaymentCalculator = ({
|
|
13
13
|
variant,
|
|
14
14
|
header,
|
|
@@ -5,7 +5,7 @@ import "../../utils/allowedAxosDomains.js";
|
|
|
5
5
|
import { getVariant } from "../../utils/getVariant.js";
|
|
6
6
|
import { useState } from "react";
|
|
7
7
|
import { calc_disclosure } from "../BalanceAPYCalculator/BalanceAPYCalculator.css.js";
|
|
8
|
-
import {
|
|
8
|
+
import { calc_content_area, calc_h2, calc_bodycopy, lvf_calc_wrapper, lvf_calc_header, calc_wrapper_inner, calc_input_wrap, rounded_cell, calc_input_styles, error_dialog, results_wrap, result_header, result_value, waves, parallax, bg_vars } from "./MonthlyPaymentCalculator.css.js";
|
|
9
9
|
const MonthlyPaymentLVFCalculator = ({ variant, header, bodyCopy, disclosure }) => {
|
|
10
10
|
const theme = getVariant(variant);
|
|
11
11
|
const [loanAmountMasked, setLoanAmountMasked] = useState("50,000");
|
package/dist/Carousel/index.js
CHANGED
|
@@ -133,7 +133,7 @@ import "../StepItemSet/StepItemSet.css.js";
|
|
|
133
133
|
/* empty css */
|
|
134
134
|
/* empty css */
|
|
135
135
|
/* empty css */
|
|
136
|
-
import { icon,
|
|
136
|
+
import { icon, quoteSetContainer, headerCarousel, descriptionCarousel, slides, carousel, slide, authorLocation, author, dots, dot } from "./Carousel.css.js";
|
|
137
137
|
import { useCarousel } from "./store.js";
|
|
138
138
|
const iconVarints = /* @__PURE__ */ new Map([
|
|
139
139
|
[
|
|
@@ -7,7 +7,7 @@ import { getVariant } from "../utils/getVariant.js";
|
|
|
7
7
|
import { Button } from "../Button/Button.js";
|
|
8
8
|
import "../Button/Button.css.js";
|
|
9
9
|
import "react-use";
|
|
10
|
-
import {
|
|
10
|
+
import { section_pad, section_min_pad, push_down_24, cb_eyebrow, body_copy, call_to_action_row, link, content_banner } from "./ContentBanner.css.js";
|
|
11
11
|
const ContentBanner = ({
|
|
12
12
|
variant,
|
|
13
13
|
icon,
|
|
@@ -4,7 +4,7 @@ import { useRef, useState, useEffect, createElement } from "react";
|
|
|
4
4
|
import { getVariant } from "../utils/getVariant.js";
|
|
5
5
|
import { OptimizeImage } from "../utils/optimizeImage/OptimizeImage.js";
|
|
6
6
|
import { Overlay } from "./Overlay.js";
|
|
7
|
-
import { executive_bio, padding,
|
|
7
|
+
import { executive_bio, padding, shift, media, headshot, img_area, description, person, headline_setting, job_title, copy, contacts, contact_col, svg_icon, contact_entry, url_row, item_bio, ceoContainer, ceoWrapper, ceoMedia, ceoImgWrapper, imgAlignment, highlights, bulletsHeadline, bulletsWrapper, ceoContent, ceoHeader, ceoPersonalInfo, ceo_name, ceo_title, ceo_contacts, social, hover, svg_color, tooltip, ceo_quote, ceo_body, order_3, overlay, ceoSection } from "./ExecutiveBio.css.js";
|
|
8
8
|
import "../Accordion/Accordion.js";
|
|
9
9
|
import "../Accordion/Accordion.css.js";
|
|
10
10
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
3
|
import { ExecutiveBio } from "./ExecutiveBio.js";
|
|
4
|
-
import {
|
|
4
|
+
import { bio_section_text, header_theme, components, details, section_theme } from "./ExecutiveBio.css.js";
|
|
5
5
|
const ExecutiveBioSet = ({
|
|
6
6
|
id,
|
|
7
7
|
title,
|
|
@@ -135,7 +135,7 @@ import "../StepItemSet/StepItemSet.css.js";
|
|
|
135
135
|
/* empty css */
|
|
136
136
|
import { getLevelNumber } from "../utils/faqAccordionOptions.js";
|
|
137
137
|
import { create } from "zustand";
|
|
138
|
-
import { summary, summaryHeader,
|
|
138
|
+
import { content, summary, summaryHeader, header, faqAccordion, faqAccordion_section } from "./FaqAccordion.css.js";
|
|
139
139
|
const useAccordion = create()((set) => ({
|
|
140
140
|
itemsOpened: [],
|
|
141
141
|
addItem: (id) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../assets/FdicCallout/FdicCallout.css.css';const fdic_callout = "
|
|
2
|
-
const inner_container = "
|
|
1
|
+
import '../assets/FdicCallout/FdicCallout.css.css';const fdic_callout = "_fdic_callout_eqzgp_1";
|
|
2
|
+
const inner_container = "_inner_container_eqzgp_11";
|
|
3
3
|
const css = {
|
|
4
4
|
fdic_callout,
|
|
5
5
|
inner_container
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import {
|
|
3
|
+
import { footerDisclosure, iconsContent, footerParagraph } from "./FooterDisclosure.css.js";
|
|
4
4
|
const FooterContent = (props) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(
|
|
6
6
|
"div",
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
4
4
|
import { Button } from "../Button/Button.js";
|
|
5
5
|
import "../Button/Button.css.js";
|
|
6
|
-
import "react";
|
|
6
|
+
import { useEffect } from "react";
|
|
7
7
|
import "react-use";
|
|
8
8
|
import "../Input/Checkbox.js";
|
|
9
9
|
import "../Input/CurrencyInput.js";
|
|
@@ -39,6 +39,15 @@ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
|
|
|
39
39
|
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
40
40
|
const HOMEOWNER_VALUE = "I am a homeowner.";
|
|
41
41
|
const BROKER_VALUE = "I am a broker.";
|
|
42
|
+
const USER_TYPE_PARAM = "user_type";
|
|
43
|
+
function getInitialUserTypeFromQuery() {
|
|
44
|
+
if (typeof window === "undefined") return "";
|
|
45
|
+
const params = new URLSearchParams(window.location.search);
|
|
46
|
+
const value = params.get(USER_TYPE_PARAM)?.toLowerCase();
|
|
47
|
+
if (value === "homeowner") return HOMEOWNER_VALUE;
|
|
48
|
+
if (value === "broker") return BROKER_VALUE;
|
|
49
|
+
return "";
|
|
50
|
+
}
|
|
42
51
|
const ConstructionLendingDynamic = ({
|
|
43
52
|
icon = false,
|
|
44
53
|
children,
|
|
@@ -129,8 +138,25 @@ const ConstructionLendingDynamic = ({
|
|
|
129
138
|
handleSubmit,
|
|
130
139
|
register,
|
|
131
140
|
watch,
|
|
141
|
+
setValue,
|
|
132
142
|
formState: { errors, isValid, isSubmitting }
|
|
133
143
|
} = methods;
|
|
144
|
+
useEffect(() => {
|
|
145
|
+
const initialUserType = getInitialUserTypeFromQuery();
|
|
146
|
+
if (initialUserType) {
|
|
147
|
+
setValue("User_Type__c", initialUserType, { shouldValidate: true });
|
|
148
|
+
}
|
|
149
|
+
}, [setValue]);
|
|
150
|
+
useEffect(() => {
|
|
151
|
+
const syncUserTypeFromUrl = () => {
|
|
152
|
+
const userType2 = getInitialUserTypeFromQuery();
|
|
153
|
+
if (userType2) {
|
|
154
|
+
setValue("User_Type__c", userType2, { shouldValidate: true });
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
window.addEventListener("popstate", syncUserTypeFromUrl);
|
|
158
|
+
return () => window.removeEventListener("popstate", syncUserTypeFromUrl);
|
|
159
|
+
}, [setValue]);
|
|
134
160
|
const userType = watch("User_Type__c");
|
|
135
161
|
const isBroker = userType === BROKER_VALUE;
|
|
136
162
|
const isExpanded = userType === HOMEOWNER_VALUE || userType === BROKER_VALUE;
|
package/dist/Forms/FormEnums.js
CHANGED
|
@@ -48,9 +48,7 @@ const PurposeOfLoan = ["Bridge", "Construction"];
|
|
|
48
48
|
const Purposes = [
|
|
49
49
|
{ value: "Purchase", text: "Purchase" },
|
|
50
50
|
{ value: "RefiCashout", text: "Refi Cashout" },
|
|
51
|
-
{ value: "RefiRateTermLimitedCO", text: "Refi Rate-Term/Limited C.O." }
|
|
52
|
-
{ value: "ConstructiontoPerm", text: "Construction to Perm" },
|
|
53
|
-
{ value: "InvestorConstruction", text: "Investor Construction" }
|
|
51
|
+
{ value: "RefiRateTermLimitedCO", text: "Refi Rate-Term/Limited C.O." }
|
|
54
52
|
];
|
|
55
53
|
const RepresentativesFico = [
|
|
56
54
|
{ value: "780", text: "780+" },
|
|
@@ -47,7 +47,7 @@ import "../../Input/RadioButton.js";
|
|
|
47
47
|
import "../../Input/PercentageInput.js";
|
|
48
48
|
import { useForm, FormProvider } from "react-hook-form";
|
|
49
49
|
import "../../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
|
|
50
|
-
import { iconForm, headerForm, form, descriptionField, headerContainer, fullRowSelect,
|
|
50
|
+
import { iconForm, headerForm, form, descriptionField, headerContainer, fullRowSelect, centerSelect, formWrapper, mt2rem, fullRowForm, disclosureForm, actions, formBtns, na_cursor, formContainer } from "../Forms.css.js";
|
|
51
51
|
import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "../HoneyPot/index.js";
|
|
52
52
|
import { SalesforceSchema } from "../SalesforceFieldsForm.js";
|
|
53
53
|
import "../../Input/RadioButton.css.js";
|
|
@@ -16,8 +16,8 @@ import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/Downl
|
|
|
16
16
|
import { getVariant } from "../utils/getVariant.js";
|
|
17
17
|
import Image from "next/image.js";
|
|
18
18
|
import clsx from "clsx";
|
|
19
|
-
import { logout,
|
|
20
|
-
import {
|
|
19
|
+
import { logout, hero_wrapper, hero_content, reversed, hero_text, heroSupertag, headline_text, hero_bullet_item, hero_sub_bullets, hero_btns, hero_img, img_contents, hero_banner, reversed_lg_image } from "./HeroBanner.css.js";
|
|
20
|
+
import { lg_hero_content, lg_hero_eyebrow, lg_headline_text, lg_hero_text, lg_hero_img, lg_hero_sizing, lg_hero_banner } from "./LargeBanner.css.js";
|
|
21
21
|
import { selection_section_icon_img, selection_section_icon, selection_section, selection_section_bg, selection_section_content, selection_headline_text } from "./SelectionBanner.css.js";
|
|
22
22
|
const HeroBanner = ({
|
|
23
23
|
id,
|
package/dist/Hyperlink/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import "../AlertBanner/AlertBanner.css.js";
|
|
|
17
17
|
import "../Article/Article.css.js";
|
|
18
18
|
import "../IconBillboard/IconBillboard.css.js";
|
|
19
19
|
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
20
|
-
import { validateLink } from "../utils/validateExternalLinks.js";
|
|
20
|
+
import { isPhoneLink, isEmailLink, validateLink } from "../utils/validateExternalLinks.js";
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
@@ -144,6 +144,7 @@ const Hyperlink = ({
|
|
|
144
144
|
}) => {
|
|
145
145
|
const hyperlink_variant = variant.toLowerCase();
|
|
146
146
|
const { setTargetLinkUrl, setOpenModal } = useGlobalContext();
|
|
147
|
+
const isTelOrMailto = targetUrl && (isPhoneLink(targetUrl) || isEmailLink(targetUrl));
|
|
147
148
|
const onClick = (e) => {
|
|
148
149
|
if (targetUrl) {
|
|
149
150
|
const external_link = validateLink(targetUrl);
|
|
@@ -167,7 +168,7 @@ const Hyperlink = ({
|
|
|
167
168
|
),
|
|
168
169
|
onClick,
|
|
169
170
|
"aria-label": ariaLabel,
|
|
170
|
-
target: newTab ? "_blank" : "_self",
|
|
171
|
+
target: newTab && !isTelOrMailto ? "_blank" : "_self",
|
|
171
172
|
...noFollow && { rel: "nofollow" },
|
|
172
173
|
children
|
|
173
174
|
}
|
|
@@ -7,7 +7,7 @@ import { Button } from "../Button/Button.js";
|
|
|
7
7
|
import "../Button/Button.css.js";
|
|
8
8
|
import "react";
|
|
9
9
|
import "react-use";
|
|
10
|
-
import { section_text, header_section, section_body, section_container,
|
|
10
|
+
import { section_text, header_section, section_body, section_container, billboard_icon, content, headerIconBillboard, title, list, layout, buttons, containerIconBillboard } from "./IconBillboard.css.js";
|
|
11
11
|
const IconBillboardSet = ({
|
|
12
12
|
variant,
|
|
13
13
|
side = false,
|
|
@@ -15,7 +15,7 @@ import "../Button/Button.css.js";
|
|
|
15
15
|
import "react";
|
|
16
16
|
import "react-use";
|
|
17
17
|
import { inline_container } from "../SetContainer/SetContainer.css.js";
|
|
18
|
-
import { section_text_ImageBillboard, header,
|
|
18
|
+
import { section_text_ImageBillboard, header, billboard_container, body, billboard_body, billboard_header_section, supertag, billboard_ctas, billboard } from "./ImageBillboard.css.js";
|
|
19
19
|
const ImageBillboardSet = ({
|
|
20
20
|
id,
|
|
21
21
|
variant,
|
package/dist/Input/Checkbox.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { checkbox, checkboxContainer } from "./Checkbox.css.js";
|
|
5
|
+
import { input, labelClassName, container, helperText, wrapper } from "./Input.css.js";
|
|
6
6
|
const Checkbox = forwardRef((props, ref) => {
|
|
7
7
|
const {
|
|
8
8
|
disabled,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { forwardRef, useState, useEffect } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { labelClassName, input, container, helperText, wrapper } from "./Input.css.js";
|
|
6
6
|
import { dp_input } from "./Dropdown.css.js";
|
|
7
7
|
const DownPaymentInput = forwardRef(
|
|
8
8
|
({
|
package/dist/Input/Dropdown.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
import { selectInput } from "./Dropdown.css.js";
|
|
5
|
-
import {
|
|
5
|
+
import { labelClassName, iconContainer, iconInput, input, container, helperText, wrapper } from "./Input.css.js";
|
|
6
6
|
const Dropdown = forwardRef(
|
|
7
7
|
(props, ref) => {
|
|
8
8
|
const {
|
package/dist/Input/Input.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { labelClassName, iconContainer, iconInput, input, container, helperText, wrapper } from "./Input.css.js";
|
|
5
5
|
const Input = forwardRef((props, ref) => {
|
|
6
6
|
const {
|
|
7
7
|
disabled,
|