@axos-web-dev/shared-components 0.0.169 → 0.0.170
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 +1 -1
- package/dist/Button/Button.js +1 -1
- package/dist/Calculators/Calculator.js +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/Chevron/index.js +1 -1
- package/dist/Comparison/Comparison.js +1 -1
- package/dist/FaqAccordion/index.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -1
- package/dist/Forms/ApplicationStart.js +1 -0
- package/dist/Forms/ClearingForm.js +1 -0
- package/dist/Forms/CommercialDeposits.js +1 -0
- package/dist/Forms/CommercialLending.js +1 -0
- package/dist/Forms/ContactCompany.js +1 -0
- package/dist/Forms/ContactUs.js +1 -0
- package/dist/Forms/ContactUsAAS.js +1 -0
- package/dist/Forms/ContactUsBusiness.js +1 -1
- package/dist/Forms/ContactUsNMLSId.js +1 -1
- package/dist/Forms/CpraRequest.js +1 -1
- package/dist/Forms/DealerServices.js +1 -0
- package/dist/Forms/EmailOnly.js +1 -1
- package/dist/Forms/Forms.css.js +1 -0
- package/dist/Forms/MortgageRate/MortgageRateForm.d.ts +5 -2
- package/dist/Forms/MortgageRate/MortgageRateForm.js +30 -20
- package/dist/Forms/MortgageRate/MortgageRateModal.d.ts +1 -1
- package/dist/Forms/MortgageRate/MortgageRateModal.js +3 -4
- package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +5 -2
- package/dist/Forms/MortgageRate/MortgageRateWatch.d.ts +2 -1
- package/dist/Forms/MortgageRate/MortgageRateWatch.js +271 -239
- package/dist/Forms/QuickPricer/QuickPricerForm.js +1 -0
- package/dist/Forms/ScheduleCall.js +1 -0
- package/dist/Forms/ScheduleCallPremier.js +1 -0
- package/dist/Forms/SuccesForm.js +1 -1
- package/dist/Hyperlink/index.js +1 -1
- package/dist/ImageLink/ImageLink.js +1 -1
- package/dist/ImageLink/ImageLinkSet.js +1 -1
- package/dist/ImageLink/index.js +1 -1
- package/dist/Input/CurrencyInput.js +1 -0
- package/dist/Input/DownPaymentInput.js +1 -1
- package/dist/Input/InputAmount.js +1 -0
- package/dist/Input/InputPhone.js +1 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +3 -0
- package/dist/Insight/Featured/CategorySelector.js +1 -1
- package/dist/Insight/Featured/Featured.js +1 -1
- package/dist/Insight/Featured/Header.js +1 -1
- package/dist/Interstitial/Interstitial.module.js +10 -10
- package/dist/Modal/Modal.js +1 -1
- package/dist/NavigationMenu/AxosBank/NavData.js +1 -1
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -1
- package/dist/NavigationMenu/AxosBank/index.js +1 -1
- package/dist/SetContainer/SetContainer.js +1 -1
- package/dist/VideoWrapper/index.js +1 -1
- package/dist/assets/Interstitial/Interstitial.css.css +24 -23
- package/dist/main.js +3 -0
- package/dist/utils/allowedAxosDomains.js +3 -1
- package/package.json +1 -1
|
@@ -58,13 +58,13 @@ import "../Input/InputAmount.js";
|
|
|
58
58
|
import "../Input/InputPhone.js";
|
|
59
59
|
import "../Input/InputTextArea.js";
|
|
60
60
|
import "../Input/DownPaymentInput.js";
|
|
61
|
+
import "../Input/RadioButton.js";
|
|
61
62
|
import "react-hook-form";
|
|
62
63
|
import { iconForm } from "../Forms/Forms.css.js";
|
|
63
64
|
import "../Forms/SalesforceFieldsForm.js";
|
|
64
65
|
import "../Input/RadioButton.css.js";
|
|
65
66
|
import "../Input/Checkbox.css.js";
|
|
66
67
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
67
|
-
import "../Input/RadioButton.js";
|
|
68
68
|
import "../Chevron/Chevron.css.js";
|
|
69
69
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
70
70
|
import "../Inputs/Input.css.js";
|
package/dist/Button/Button.js
CHANGED
|
@@ -38,13 +38,13 @@ import "../Input/InputAmount.js";
|
|
|
38
38
|
import "../Input/InputPhone.js";
|
|
39
39
|
import "../Input/InputTextArea.js";
|
|
40
40
|
import "../Input/DownPaymentInput.js";
|
|
41
|
+
import "../Input/RadioButton.js";
|
|
41
42
|
import "react-hook-form";
|
|
42
43
|
import "../Forms/Forms.css.js";
|
|
43
44
|
import "../Forms/SalesforceFieldsForm.js";
|
|
44
45
|
import "../Input/RadioButton.css.js";
|
|
45
46
|
import "../Input/Checkbox.css.js";
|
|
46
47
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
47
|
-
import "../Input/RadioButton.js";
|
|
48
48
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
49
49
|
import "../Inputs/Input.css.js";
|
|
50
50
|
/* empty css */
|
|
@@ -61,6 +61,7 @@ import "../Input/InputAmount.js";
|
|
|
61
61
|
import "../Input/InputPhone.js";
|
|
62
62
|
import "../Input/InputTextArea.js";
|
|
63
63
|
import "../Input/DownPaymentInput.js";
|
|
64
|
+
import "../Input/RadioButton.js";
|
|
64
65
|
/* empty css */
|
|
65
66
|
/* empty css */
|
|
66
67
|
/* empty css */
|
|
@@ -104,7 +105,6 @@ import { iconForm } from "../Forms/Forms.css.js";
|
|
|
104
105
|
import "../Forms/SalesforceFieldsForm.js";
|
|
105
106
|
import "../Input/RadioButton.css.js";
|
|
106
107
|
import "../Input/Checkbox.css.js";
|
|
107
|
-
import "../Input/RadioButton.js";
|
|
108
108
|
import "../Inputs/Input.css.js";
|
|
109
109
|
/* empty css */
|
|
110
110
|
/* empty css */
|
package/dist/Carousel/index.js
CHANGED
|
@@ -44,13 +44,13 @@ import "../Input/InputAmount.js";
|
|
|
44
44
|
import "../Input/InputPhone.js";
|
|
45
45
|
import "../Input/InputTextArea.js";
|
|
46
46
|
import "../Input/DownPaymentInput.js";
|
|
47
|
+
import "../Input/RadioButton.js";
|
|
47
48
|
import "react-hook-form";
|
|
48
49
|
import "../Forms/Forms.css.js";
|
|
49
50
|
import "../Forms/SalesforceFieldsForm.js";
|
|
50
51
|
import "../Input/RadioButton.css.js";
|
|
51
52
|
import "../Input/Checkbox.css.js";
|
|
52
53
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
53
|
-
import "../Input/RadioButton.js";
|
|
54
54
|
import "../Inputs/Input.css.js";
|
|
55
55
|
/* empty css */
|
|
56
56
|
import "../Hyperlink/Hyperlink.css.js";
|
package/dist/Chevron/index.js
CHANGED
|
@@ -40,13 +40,13 @@ import "../Input/InputAmount.js";
|
|
|
40
40
|
import "../Input/InputPhone.js";
|
|
41
41
|
import "../Input/InputTextArea.js";
|
|
42
42
|
import "../Input/DownPaymentInput.js";
|
|
43
|
+
import "../Input/RadioButton.js";
|
|
43
44
|
import "react-hook-form";
|
|
44
45
|
import "../Forms/Forms.css.js";
|
|
45
46
|
import "../Forms/SalesforceFieldsForm.js";
|
|
46
47
|
import "../Input/RadioButton.css.js";
|
|
47
48
|
import "../Input/Checkbox.css.js";
|
|
48
49
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
49
|
-
import "../Input/RadioButton.js";
|
|
50
50
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
51
51
|
import "../Inputs/Input.css.js";
|
|
52
52
|
/* empty css */
|
|
@@ -38,13 +38,13 @@ import "../Input/InputAmount.js";
|
|
|
38
38
|
import "../Input/InputPhone.js";
|
|
39
39
|
import "../Input/InputTextArea.js";
|
|
40
40
|
import "../Input/DownPaymentInput.js";
|
|
41
|
+
import "../Input/RadioButton.js";
|
|
41
42
|
import "react-hook-form";
|
|
42
43
|
import "../Forms/Forms.css.js";
|
|
43
44
|
import "../Forms/SalesforceFieldsForm.js";
|
|
44
45
|
import "../Input/RadioButton.css.js";
|
|
45
46
|
import "../Input/Checkbox.css.js";
|
|
46
47
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
47
|
-
import "../Input/RadioButton.js";
|
|
48
48
|
import "../Chevron/Chevron.css.js";
|
|
49
49
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
50
50
|
import "../Inputs/Input.css.js";
|
|
@@ -38,13 +38,13 @@ import "../Input/InputAmount.js";
|
|
|
38
38
|
import "../Input/InputPhone.js";
|
|
39
39
|
import "../Input/InputTextArea.js";
|
|
40
40
|
import "../Input/DownPaymentInput.js";
|
|
41
|
+
import "../Input/RadioButton.js";
|
|
41
42
|
import "react-hook-form";
|
|
42
43
|
import "../Forms/Forms.css.js";
|
|
43
44
|
import "../Forms/SalesforceFieldsForm.js";
|
|
44
45
|
import "../Input/RadioButton.css.js";
|
|
45
46
|
import "../Input/Checkbox.css.js";
|
|
46
47
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
47
|
-
import "../Input/RadioButton.js";
|
|
48
48
|
import "../Chevron/Chevron.css.js";
|
|
49
49
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
50
50
|
import "../Inputs/Input.css.js";
|
|
@@ -39,13 +39,13 @@ import "../../Input/InputAmount.js";
|
|
|
39
39
|
import "../../Input/InputPhone.js";
|
|
40
40
|
import "../../Input/InputTextArea.js";
|
|
41
41
|
import "../../Input/DownPaymentInput.js";
|
|
42
|
+
import "../../Input/RadioButton.js";
|
|
42
43
|
import "react-hook-form";
|
|
43
44
|
import "../../Forms/Forms.css.js";
|
|
44
45
|
import "../../Forms/SalesforceFieldsForm.js";
|
|
45
46
|
import "../../Input/RadioButton.css.js";
|
|
46
47
|
import "../../Input/Checkbox.css.js";
|
|
47
48
|
import "../../LoadingIndicator/LoadingIndicator.css.js";
|
|
48
|
-
import "../../Input/RadioButton.js";
|
|
49
49
|
import "../../Inputs/Input.css.js";
|
|
50
50
|
/* empty css */
|
|
51
51
|
import "../../Hyperlink/Hyperlink.css.js";
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
21
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import CheckboxGroup from "../Input/CheckboxGroup.js";
|
|
19
20
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
21
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
21
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import { LoadingIndicator } from "../LoadingIndicator/index.js";
|
|
19
20
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
21
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
21
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
package/dist/Forms/ContactUs.js
CHANGED
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
21
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import { InputTextArea } from "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import { LoadingIndicator } from "../LoadingIndicator/index.js";
|
|
19
20
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
20
21
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
@@ -11,6 +11,7 @@ import "../Input/InputAmount.js";
|
|
|
11
11
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
12
12
|
import "../Input/InputTextArea.js";
|
|
13
13
|
import "../Input/DownPaymentInput.js";
|
|
14
|
+
import "../Input/RadioButton.js";
|
|
14
15
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
15
16
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
16
17
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -46,7 +47,6 @@ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
|
46
47
|
import "../Input/RadioButton.css.js";
|
|
47
48
|
import "../Input/Checkbox.css.js";
|
|
48
49
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
49
|
-
import "../Input/RadioButton.js";
|
|
50
50
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
51
51
|
import "../Inputs/Input.css.js";
|
|
52
52
|
/* empty css */
|
|
@@ -11,6 +11,7 @@ import "../Input/InputAmount.js";
|
|
|
11
11
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
12
12
|
import "../Input/InputTextArea.js";
|
|
13
13
|
import "../Input/DownPaymentInput.js";
|
|
14
|
+
import "../Input/RadioButton.js";
|
|
14
15
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
15
16
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
16
17
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -46,7 +47,6 @@ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
|
46
47
|
import "../Input/RadioButton.css.js";
|
|
47
48
|
import "../Input/Checkbox.css.js";
|
|
48
49
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
49
|
-
import "../Input/RadioButton.js";
|
|
50
50
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
51
51
|
import "../Inputs/Input.css.js";
|
|
52
52
|
/* empty css */
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
|
|
18
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
21
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -28,7 +29,6 @@ import clsx from "clsx";
|
|
|
28
29
|
import { useForm, FormProvider } from "react-hook-form";
|
|
29
30
|
import * as z from "zod";
|
|
30
31
|
import { formContainer, iconForm, headerContainer, form, descriptionField, formWrapper, fullRowForm, disclosureForm, actions } from "./Forms.css.js";
|
|
31
|
-
import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
|
|
32
32
|
import CheckboxGroup from "../Input/CheckboxGroup.js";
|
|
33
33
|
import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
|
|
34
34
|
const CpraRequest = ({
|
|
@@ -15,6 +15,7 @@ import "../Input/InputAmount.js";
|
|
|
15
15
|
import { InputPhone } from "../Input/InputPhone.js";
|
|
16
16
|
import { InputTextArea } from "../Input/InputTextArea.js";
|
|
17
17
|
import "../Input/DownPaymentInput.js";
|
|
18
|
+
import "../Input/RadioButton.js";
|
|
18
19
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
19
20
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
20
21
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
package/dist/Forms/EmailOnly.js
CHANGED
|
@@ -11,6 +11,7 @@ import "../Input/InputAmount.js";
|
|
|
11
11
|
import "../Input/InputPhone.js";
|
|
12
12
|
import "../Input/InputTextArea.js";
|
|
13
13
|
import "../Input/DownPaymentInput.js";
|
|
14
|
+
import "../Input/RadioButton.js";
|
|
14
15
|
import "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
15
16
|
import SvgAxosX from "../icons/AxosX/index.js";
|
|
16
17
|
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
@@ -47,7 +48,6 @@ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
|
47
48
|
import "../Input/RadioButton.css.js";
|
|
48
49
|
import "../Input/Checkbox.css.js";
|
|
49
50
|
import "../LoadingIndicator/LoadingIndicator.css.js";
|
|
50
|
-
import "../Input/RadioButton.js";
|
|
51
51
|
import "../Interstitial/Interstitial-variants.css.js";
|
|
52
52
|
import "../Inputs/Input.css.js";
|
|
53
53
|
/* empty css */
|
package/dist/Forms/Forms.css.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
+
/* empty css */
|
|
7
8
|
/* empty css */
|
|
8
9
|
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
9
10
|
var formContainer = createRuntimeFn({ defaultClassName: "tfms6a0", variantClassNames: { variant: { primary: "tfms6a1", secondary: "tfms6a2", tertiary: "tfms6a3", quaternary: "tfms6a4" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -19,8 +19,11 @@ export type MortgageRateInputs = {
|
|
|
19
19
|
loanPurpose: number;
|
|
20
20
|
[key: string]: string | number;
|
|
21
21
|
};
|
|
22
|
-
export declare const MortgageRate: ({ icon, children, onSubmit, disclosure, variant: fullVariant, validateEmail, id, rateWatchOnSubmit, }: FormProps & {
|
|
22
|
+
export declare const MortgageRate: ({ icon, children, onSubmit, disclosure, variant: fullVariant, validateEmail, id, rateWatchOnSubmit, setRateWatchSubmitted, hideModalValue, showingTables, }: FormProps & {
|
|
23
23
|
rateWatchOnSubmit: (values: RateWatchInputs & {
|
|
24
24
|
email: string;
|
|
25
25
|
}) => Promise<void>;
|
|
26
|
-
|
|
26
|
+
setRateWatchSubmitted?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
hideModalValue: boolean;
|
|
28
|
+
showingTables: boolean;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,15 +39,15 @@ import "../../Input/InputAmount.js";
|
|
|
39
39
|
import { InputPhone } from "../../Input/InputPhone.js";
|
|
40
40
|
import "../../Input/InputTextArea.js";
|
|
41
41
|
import { DownPaymentInput } from "../../Input/DownPaymentInput.js";
|
|
42
|
+
import "../../Input/RadioButton.js";
|
|
42
43
|
import { useForm, FormProvider } from "react-hook-form";
|
|
43
44
|
import * as z from "zod";
|
|
44
|
-
import {
|
|
45
|
+
import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, fullRowSelect, formWrapper, centerSelect, mt2rem, fullRowForm, disclosureForm, actions, formBtns, na_cursor } from "../Forms.css.js";
|
|
45
46
|
import { SalesforceSchema } from "../SalesforceFieldsForm.js";
|
|
46
47
|
import "../../Input/RadioButton.css.js";
|
|
47
48
|
import "../../Input/Checkbox.css.js";
|
|
48
49
|
import { LoadingIndicator } from "../../LoadingIndicator/index.js";
|
|
49
50
|
import "react-use";
|
|
50
|
-
import "../../Input/RadioButton.js";
|
|
51
51
|
import { RateWatchForm } from "./MortgageRateWatch.js";
|
|
52
52
|
import { marketing_tile } from "../../Interstitial/Interstitial-variants.css.js";
|
|
53
53
|
import css from "../../Interstitial/Interstitial.module.js";
|
|
@@ -120,13 +120,16 @@ const MortgageRate = ({
|
|
|
120
120
|
variant: fullVariant = "primary",
|
|
121
121
|
validateEmail,
|
|
122
122
|
id,
|
|
123
|
-
rateWatchOnSubmit
|
|
123
|
+
rateWatchOnSubmit,
|
|
124
|
+
setRateWatchSubmitted,
|
|
125
|
+
hideModalValue,
|
|
126
|
+
showingTables
|
|
124
127
|
}) => {
|
|
125
128
|
const [loanPurpose, setLoanPurpose] = useState(1);
|
|
126
129
|
const [rateType, setRateType] = useState("Purchase");
|
|
127
|
-
const [
|
|
130
|
+
const [_isModalOpen, setModalOpen] = useState(false);
|
|
128
131
|
const [hasOpenedModal, setHasOpenedModal] = useState(false);
|
|
129
|
-
const [hideModal, setHideModal] = useState(
|
|
132
|
+
const [hideModal, setHideModal] = useState(hideModalValue || true);
|
|
130
133
|
const [downPaymentPercentage, setDownPaymentPercentage] = useState(10);
|
|
131
134
|
const [_downPayment, setDownPayment] = useState(0);
|
|
132
135
|
const [isTypingDownPayment, setIsTypingDownPayment] = useState(false);
|
|
@@ -249,6 +252,9 @@ const MortgageRate = ({
|
|
|
249
252
|
...data
|
|
250
253
|
};
|
|
251
254
|
await onSubmit(processData);
|
|
255
|
+
if (setRateWatchSubmitted) {
|
|
256
|
+
setRateWatchSubmitted(false);
|
|
257
|
+
}
|
|
252
258
|
setHideModal(true);
|
|
253
259
|
};
|
|
254
260
|
const variant = getVariant(fullVariant);
|
|
@@ -259,6 +265,7 @@ const MortgageRate = ({
|
|
|
259
265
|
} else {
|
|
260
266
|
setHideModal(true);
|
|
261
267
|
}
|
|
268
|
+
setHideModal(!hideModal);
|
|
262
269
|
};
|
|
263
270
|
const rateWatchModal = /* @__PURE__ */ jsx(
|
|
264
271
|
"div",
|
|
@@ -268,7 +275,7 @@ const MortgageRate = ({
|
|
|
268
275
|
children: /* @__PURE__ */ jsxs(
|
|
269
276
|
"div",
|
|
270
277
|
{
|
|
271
|
-
className: `${css.modal} active
|
|
278
|
+
className: `${css.modal} active`,
|
|
272
279
|
role: "dialog",
|
|
273
280
|
"aria-modal": "true",
|
|
274
281
|
tabIndex: -1,
|
|
@@ -311,13 +318,13 @@ const MortgageRate = ({
|
|
|
311
318
|
}
|
|
312
319
|
return value;
|
|
313
320
|
};
|
|
314
|
-
return
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
/* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
321
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
322
|
+
hideModal && !showingTables && /* @__PURE__ */ jsx(
|
|
323
|
+
"section",
|
|
324
|
+
{
|
|
325
|
+
id: "MortgageRateQuoteForm",
|
|
326
|
+
className: clsx(formContainer({ variant })),
|
|
327
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
321
328
|
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
322
329
|
/* @__PURE__ */ jsxs("div", { className: clsx(headerContainer, "text_center"), children: [
|
|
323
330
|
/* @__PURE__ */ jsxs("h1", { className: clsx("header_1", headerForm({ variant })), children: [
|
|
@@ -359,7 +366,9 @@ const MortgageRate = ({
|
|
|
359
366
|
onChange: (e) => {
|
|
360
367
|
const selectedValue = Number(e.target.value);
|
|
361
368
|
setLoanPurpose(selectedValue);
|
|
362
|
-
setRateType(
|
|
369
|
+
setRateType(
|
|
370
|
+
selectedValue === 1 ? "Purchase" : "Refinance"
|
|
371
|
+
);
|
|
363
372
|
},
|
|
364
373
|
children: [
|
|
365
374
|
/* @__PURE__ */ jsx("option", { value: "1", children: "Purchase Rates" }),
|
|
@@ -725,6 +734,7 @@ const MortgageRate = ({
|
|
|
725
734
|
onClick: isValid ? handleSubmit(async (data) => {
|
|
726
735
|
await onSubmit(data);
|
|
727
736
|
toggleModal();
|
|
737
|
+
setHideModal(false);
|
|
728
738
|
}) : (e) => {
|
|
729
739
|
e.preventDefault();
|
|
730
740
|
},
|
|
@@ -735,12 +745,12 @@ const MortgageRate = ({
|
|
|
735
745
|
] })
|
|
736
746
|
] }) })
|
|
737
747
|
] })
|
|
738
|
-
] }) })
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
);
|
|
748
|
+
] }) })
|
|
749
|
+
},
|
|
750
|
+
id
|
|
751
|
+
),
|
|
752
|
+
!hideModal && rateWatchModal
|
|
753
|
+
] });
|
|
744
754
|
};
|
|
745
755
|
export {
|
|
746
756
|
MortgageRate
|
|
@@ -7,12 +7,11 @@ const MortgageRateModal = ({
|
|
|
7
7
|
email,
|
|
8
8
|
lastName,
|
|
9
9
|
rateWatchOnSubmit,
|
|
10
|
-
isOpen,
|
|
10
|
+
isOpen = true,
|
|
11
11
|
toggleModal,
|
|
12
12
|
isSubmitting
|
|
13
13
|
}) => {
|
|
14
|
-
|
|
15
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
+
return isOpen && /* @__PURE__ */ jsx(
|
|
16
15
|
"div",
|
|
17
16
|
{
|
|
18
17
|
className: `${marketing_tile} ${css.overlay} ${css.white_modal} active interstitial`,
|
|
@@ -20,7 +19,7 @@ const MortgageRateModal = ({
|
|
|
20
19
|
children: /* @__PURE__ */ jsxs(
|
|
21
20
|
"div",
|
|
22
21
|
{
|
|
23
|
-
className: `${css.modal} active
|
|
22
|
+
className: `${css.modal} active`,
|
|
24
23
|
role: "dialog",
|
|
25
24
|
"aria-modal": "true",
|
|
26
25
|
tabIndex: -1,
|
|
@@ -15,6 +15,7 @@ import "../../Input/InputAmount.js";
|
|
|
15
15
|
import "../../Input/InputPhone.js";
|
|
16
16
|
import "../../Input/InputTextArea.js";
|
|
17
17
|
import { DownPaymentInput } from "../../Input/DownPaymentInput.js";
|
|
18
|
+
import "../../Input/RadioButton.js";
|
|
18
19
|
import clsx from "clsx";
|
|
19
20
|
import { useForm, FormProvider } from "react-hook-form";
|
|
20
21
|
import * as z from "zod";
|
|
@@ -28,7 +29,9 @@ const MortgageRateFilters = ({
|
|
|
28
29
|
const [loanPurpose, setLoanPurpose] = useState(formData.loanPurpose);
|
|
29
30
|
const [salesPriceVal, setSalesPriceVal] = useState(0);
|
|
30
31
|
const [isTypingDownPayment, setIsTypingDownPayment] = useState(false);
|
|
31
|
-
const [downPaymentPercentage, setDownPaymentPercentage] = useState(
|
|
32
|
+
const [downPaymentPercentage, setDownPaymentPercentage] = useState(
|
|
33
|
+
formData.downPayment / formData.salesPrice * 100 || 10
|
|
34
|
+
);
|
|
32
35
|
const [_downPayment, setDownPayment] = useState(0);
|
|
33
36
|
const schema = z.object({
|
|
34
37
|
loanPurpose: z.number({ message: "Loan Purpose is required." }),
|
|
@@ -279,7 +282,7 @@ const MortgageRateFilters = ({
|
|
|
279
282
|
isTypingDownPayment,
|
|
280
283
|
setIsTypingDownPayment,
|
|
281
284
|
methods,
|
|
282
|
-
defaultValue: formData.downPayment
|
|
285
|
+
defaultValue: formData.downPayment > 0 ? formatCurrency(formData.downPayment) : ""
|
|
283
286
|
}
|
|
284
287
|
) })
|
|
285
288
|
] }),
|
|
@@ -23,6 +23,7 @@ type RateWatchFormProps = {
|
|
|
23
23
|
lastName: string;
|
|
24
24
|
}) => void;
|
|
25
25
|
toggleModal: () => void;
|
|
26
|
+
setRateWatchSubmitted?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
26
27
|
};
|
|
27
|
-
export declare const RateWatchForm: ({ email, lastName, rateWatchOnSubmit, toggleModal, }: RateWatchFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const RateWatchForm: ({ email, lastName, rateWatchOnSubmit, toggleModal, setRateWatchSubmitted, }: RateWatchFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|