@axos-web-dev/shared-components 0.0.151 → 0.0.153

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 (65) hide show
  1. package/README.md +111 -111
  2. package/dist/ATMLocator/ATMLocator.js +1 -0
  3. package/dist/Avatar/Avatar.module.js +7 -7
  4. package/dist/Blockquote/Blockquote.module.js +3 -3
  5. package/dist/Button/Button.js +1 -0
  6. package/dist/Calculators/Calculator.js +1 -0
  7. package/dist/Calculators/MarginTradingCalculator/index.js +4 -4
  8. package/dist/Carousel/index.js +1 -0
  9. package/dist/Chevron/index.js +1 -0
  10. package/dist/Comparison/Comparison.js +1 -0
  11. package/dist/FaqAccordion/index.js +1 -0
  12. package/dist/FdicCallout/FdicCallout.module.js +2 -2
  13. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.d.ts +3 -1
  14. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +43 -38
  15. package/dist/Forms/ContactUsBusiness.js +1 -0
  16. package/dist/Forms/ContactUsNMLSId.js +1 -0
  17. package/dist/Forms/CpraRequest.js +28 -2
  18. package/dist/Forms/EmailOnly.js +1 -0
  19. package/dist/Forms/MortgageRate/MortgageRateForm.js +11 -1
  20. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.d.ts +17 -4
  21. package/dist/Forms/MortgageRate/MortgageRateQuoteFilters.js +45 -27
  22. package/dist/Forms/MortgageRate/MortgageRateWatch.js +1 -0
  23. package/dist/Forms/SalesforceFieldsForm.d.ts +6 -6
  24. package/dist/Forms/SalesforceFieldsForm.js +2 -2
  25. package/dist/Forms/SuccesForm.js +1 -0
  26. package/dist/Hyperlink/index.js +1 -0
  27. package/dist/ImageLink/ImageLink.js +1 -0
  28. package/dist/ImageLink/ImageLinkSet.js +1 -0
  29. package/dist/ImageLink/index.js +1 -0
  30. package/dist/Input/DownPaymentInput.js +0 -1
  31. package/dist/Insight/Featured/CategorySelector.js +1 -0
  32. package/dist/Insight/Featured/Featured.js +1 -1
  33. package/dist/Insight/Featured/Header.css.d.ts +5 -0
  34. package/dist/Insight/Featured/Header.css.js +13 -0
  35. package/dist/Insight/Featured/Header.d.ts +7 -0
  36. package/dist/Insight/Featured/Header.js +129 -0
  37. package/dist/Insight/Featured/index.d.ts +1 -0
  38. package/dist/Insight/Featured/index.js +2 -0
  39. package/dist/Insight/index.js +2 -0
  40. package/dist/Interstitial/Interstitial.module.js +10 -10
  41. package/dist/Modal/Modal.js +1 -0
  42. package/dist/NavigationMenu/AxosAdvisor/NavBar.module.js +54 -54
  43. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +55 -55
  44. package/dist/NavigationMenu/AxosBank/NavBar.module.js +55 -55
  45. package/dist/NavigationMenu/AxosBank/NavData.js +1 -0
  46. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -0
  47. package/dist/NavigationMenu/AxosBank/index.js +1 -0
  48. package/dist/NavigationMenu/AxosClearing/NavBar.module.js +37 -37
  49. package/dist/NavigationMenu/AxosFiduciary/NavBar.module.js +41 -41
  50. package/dist/SetContainer/SetContainer.js +1 -0
  51. package/dist/assets/Avatar/Avatar.css.css +59 -59
  52. package/dist/assets/Blockquote/Blockquote.css.css +69 -69
  53. package/dist/assets/FdicCallout/FdicCallout.css.css +48 -48
  54. package/dist/assets/Forms/Forms.css +5 -0
  55. package/dist/assets/Insight/Featured/Featured.css +10 -0
  56. package/dist/assets/Insight/Featured/Header.css +39 -0
  57. package/dist/assets/Interstitial/Interstitial.css.css +141 -141
  58. package/dist/assets/NavigationMenu/AxosAdvisor/NavBar.css.css +600 -600
  59. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +621 -621
  60. package/dist/assets/NavigationMenu/AxosBank/NavBar.css.css +666 -666
  61. package/dist/assets/NavigationMenu/AxosClearing/NavBar.css.css +458 -458
  62. package/dist/assets/NavigationMenu/AxosFiduciary/NavBar.css.css +426 -426
  63. package/dist/main.js +2 -0
  64. package/dist/utils/allowedAxosDomains.js +2 -3
  65. package/package.json +1 -1
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
+ ```
@@ -73,6 +73,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
73
73
  import "react-wrap-balancer";
74
74
  /* empty css */
75
75
  /* empty css */
76
+ /* empty css */
76
77
  /* empty css */
77
78
  import "../LandingPageHeader/LandingPageHeader.css.js";
78
79
  /* empty css */
@@ -1,10 +1,10 @@
1
- const avatar_sec = "_avatar_sec_wf36a_1";
2
- const container = "_container_wf36a_9";
3
- const image = "_image_wf36a_27";
4
- const text = "_text_wf36a_45";
5
- const name = "_name_wf36a_57";
6
- const title = "_title_wf36a_73";
7
- const description = "_description_wf36a_87";
1
+ const avatar_sec = "_avatar_sec_1bnm9_1";
2
+ const container = "_container_1bnm9_5";
3
+ const image = "_image_1bnm9_14";
4
+ const text = "_text_1bnm9_23";
5
+ const name = "_name_1bnm9_29";
6
+ const title = "_title_1bnm9_37";
7
+ const description = "_description_1bnm9_44";
8
8
  const css = {
9
9
  avatar_sec,
10
10
  container,
@@ -1,6 +1,6 @@
1
- const quote_spacer = "_quote_spacer_44gig_1";
2
- const author = "_author_44gig_15";
3
- const quote = "_quote_44gig_1";
1
+ const quote_spacer = "_quote_spacer_4e152_1";
2
+ const author = "_author_4e152_8";
3
+ const quote = "_quote_4e152_1";
4
4
  const css = {
5
5
  quote_spacer,
6
6
  author,
@@ -76,6 +76,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
76
76
  import "react-wrap-balancer";
77
77
  /* empty css */
78
78
  /* empty css */
79
+ /* empty css */
79
80
  /* empty css */
80
81
  import "../LandingPageHeader/LandingPageHeader.css.js";
81
82
  /* empty css */
@@ -64,6 +64,7 @@ import "../Input/DownPaymentInput.js";
64
64
  import "react-wrap-balancer";
65
65
  /* empty css */
66
66
  /* empty css */
67
+ /* empty css */
67
68
  /* empty css */
68
69
  import "../LandingPageHeader/LandingPageHeader.css.js";
69
70
  import "../LoadingIndicator/LoadingIndicator.css.js";
@@ -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 { container, field_row, marketingTile, bodyContent, header_theme } from "../ApyCalculator/ApyCalculator.css.js";
7
+ import { container, field_row, errorTag, marketingTile, bodyContent, header_theme } 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 "../../utils/allowedAxosDomains.js";
@@ -233,7 +233,7 @@ const MarginTradingCalculator = ({
233
233
  step: 1e3,
234
234
  onKeyDown: (event) => {
235
235
  const eventCode = event.code.toLowerCase();
236
- if (!(event.code !== null && (eventCode.includes("digit") || eventCode.includes("arrow") || eventCode.includes("home") || eventCode.includes("end") || eventCode.includes("backspace") || eventCode.includes("period") || eventCode.includes("numpaddecimal") || eventCode.includes("numpad") && eventCode.length === 7))) {
236
+ if (!(event.code !== null && (eventCode.includes("digit") || eventCode.includes("arrow") || eventCode.includes("home") || eventCode.includes("end") || eventCode.includes("backspace") || eventCode.includes("period") || eventCode.includes("tab") || eventCode.includes("numpaddecimal") || eventCode.includes("numpad") && eventCode.length === 7))) {
237
237
  event.preventDefault();
238
238
  }
239
239
  }
@@ -256,7 +256,7 @@ const MarginTradingCalculator = ({
256
256
  step: 1e3,
257
257
  onKeyDown: (event) => {
258
258
  const eventCode = event.code.toLowerCase();
259
- if (!(event.code !== null && (eventCode.includes("digit") || eventCode.includes("arrow") || eventCode.includes("home") || eventCode.includes("end") || eventCode.includes("backspace") || eventCode.includes("period") || eventCode.includes("numpaddecimal") || eventCode.includes("numpad") && eventCode.length === 7))) {
259
+ if (!(event.code !== null && (eventCode.includes("digit") || eventCode.includes("arrow") || eventCode.includes("home") || eventCode.includes("end") || eventCode.includes("backspace") || eventCode.includes("period") || eventCode.includes("tab") || eventCode.includes("numpaddecimal") || eventCode.includes("numpad") && eventCode.length === 7))) {
260
260
  event.preventDefault();
261
261
  }
262
262
  }
@@ -325,7 +325,7 @@ const MarginTradingCalculator = ({
325
325
  /* @__PURE__ */ jsx("sup", { children: "3" })
326
326
  ] }),
327
327
  /* @__PURE__ */ jsxs("div", { children: [
328
- /* @__PURE__ */ jsx("div", { id: "errMsg" }),
328
+ /* @__PURE__ */ jsx("div", { id: "errMsg", className: `${errorTag}` }),
329
329
  /* @__PURE__ */ jsxs("table", { className: `${table} ${r502_fs12}`, children: [
330
330
  /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
331
331
  /* @__PURE__ */ jsx("th", { className: `ax-th ${tc} ${bb0} ${btl} ${w25}`, children: "Axos Standard" }),
@@ -78,6 +78,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
78
78
  import "react-wrap-balancer";
79
79
  /* empty css */
80
80
  /* empty css */
81
+ /* empty css */
81
82
  /* empty css */
82
83
  import "../LandingPageHeader/LandingPageHeader.css.js";
83
84
  /* empty css */
@@ -78,6 +78,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
78
78
  import "react-wrap-balancer";
79
79
  /* empty css */
80
80
  /* empty css */
81
+ /* empty css */
81
82
  /* empty css */
82
83
  import "../LandingPageHeader/LandingPageHeader.css.js";
83
84
  /* empty css */
@@ -75,6 +75,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
75
75
  import "react-wrap-balancer";
76
76
  /* empty css */
77
77
  /* empty css */
78
+ /* empty css */
78
79
  /* empty css */
79
80
  import "../LandingPageHeader/LandingPageHeader.css.js";
80
81
  /* empty css */
@@ -76,6 +76,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
76
76
  import "react-wrap-balancer";
77
77
  /* empty css */
78
78
  /* empty css */
79
+ /* empty css */
79
80
  /* empty css */
80
81
  import "../LandingPageHeader/LandingPageHeader.css.js";
81
82
  /* empty css */
@@ -1,5 +1,5 @@
1
- const fdic_callout = "_fdic_callout_eqzgp_1";
2
- const inner_container = "_inner_container_eqzgp_11";
1
+ const fdic_callout = "_fdic_callout_1f6md_1";
2
+ const inner_container = "_inner_container_1f6md_6";
3
3
  const css = {
4
4
  fdic_callout,
5
5
  inner_container
@@ -1 +1,3 @@
1
- export declare const AxosFooterSiteMap: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const AxosFooterSiteMap: ({ showButtons, }: {
2
+ showButtons?: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import "../../Accordion/Accordion.js";
3
3
  import "../../Accordion/Accordion.css.js";
4
4
  import "../../icons/ArrowIcon/ArrowIcon.css.js";
@@ -74,6 +74,7 @@ import "../../ImageBillboard/ImageBillboard.css.js";
74
74
  import "react-wrap-balancer";
75
75
  /* empty css */
76
76
  /* empty css */
77
+ /* empty css */
77
78
  /* empty css */
78
79
  import "../../LandingPageHeader/LandingPageHeader.css.js";
79
80
  /* empty css */
@@ -100,7 +101,9 @@ import "../../StepItemSet/StepItemSet.css.js";
100
101
  import "next/script.js";
101
102
  /* empty css */
102
103
  /* empty css */
103
- const AxosFooterSiteMap = () => {
104
+ const AxosFooterSiteMap = ({
105
+ showButtons = false
106
+ }) => {
104
107
  return /* @__PURE__ */ jsx("footer", { className: footer_section, id: "site_map", children: /* @__PURE__ */ jsxs("div", { className: "containment", children: [
105
108
  /* @__PURE__ */ jsxs("nav", { className: footer_wrapper, children: [
106
109
  /* @__PURE__ */ jsxs("div", { className: ft_col, children: [
@@ -486,42 +489,44 @@ const AxosFooterSiteMap = () => {
486
489
  ) }) })
487
490
  ] }),
488
491
  /* @__PURE__ */ jsxs("div", { className: footer_mobile, children: [
489
- /* @__PURE__ */ jsx("h2", { className: "gradient_text text_center", children: "All your finances. In one place." }),
490
- /* @__PURE__ */ jsxs("div", { className: "push_up flex center middle gap_24", children: [
491
- /* @__PURE__ */ jsx(
492
- "a",
493
- {
494
- href: findMoreAxosDomains(
495
- "https://play.google.com/store/apps/details?id=com.axos.udb"
496
- ),
497
- "aria-label": "visit the Google Play store to download the axos bank mobile app",
498
- title: "Google Play",
499
- children: /* @__PURE__ */ jsx(
500
- "img",
501
- {
502
- alt: "get it on Google Play",
503
- src: "https://images.axos.com/o9ov1v03uwqk/o446Mf5JdBS9RsXaaZYKb/10e6b082f3eeec4ecffc5d9b29ea4954/google-play.svg"
504
- }
505
- )
506
- }
507
- ),
508
- /* @__PURE__ */ jsx(
509
- "a",
510
- {
511
- href: findMoreAxosDomains(
512
- "https://apps.apple.com/us/app/axos-bank/id1396586421"
513
- ),
514
- "aria-label": "visit the App Store to download the Axos Bank mobile app",
515
- title: "App Store",
516
- children: /* @__PURE__ */ jsx(
517
- "img",
518
- {
519
- alt: "download on the App Store",
520
- src: "https://images.axos.com/o9ov1v03uwqk/6Ja0ODDH2HVdAFBIfQEiuh/d1894874d54c0dced3d7fe879135315a/app-store.svg"
521
- }
522
- )
523
- }
524
- )
492
+ showButtons && /* @__PURE__ */ jsxs(Fragment, { children: [
493
+ /* @__PURE__ */ jsx("h2", { className: "gradient_text text_center", children: "All your finances. In one place." }),
494
+ /* @__PURE__ */ jsxs("div", { className: "push_up flex center middle gap_24", children: [
495
+ /* @__PURE__ */ jsx(
496
+ "a",
497
+ {
498
+ href: findMoreAxosDomains(
499
+ "https://play.google.com/store/apps/details?id=com.axos.udb"
500
+ ),
501
+ "aria-label": "visit the Google Play store to download the axos bank mobile app",
502
+ title: "Google Play",
503
+ children: /* @__PURE__ */ jsx(
504
+ "img",
505
+ {
506
+ alt: "get it on Google Play",
507
+ src: "https://images.axos.com/o9ov1v03uwqk/o446Mf5JdBS9RsXaaZYKb/10e6b082f3eeec4ecffc5d9b29ea4954/google-play.svg"
508
+ }
509
+ )
510
+ }
511
+ ),
512
+ /* @__PURE__ */ jsx(
513
+ "a",
514
+ {
515
+ href: findMoreAxosDomains(
516
+ "https://apps.apple.com/us/app/axos-bank/id1396586421"
517
+ ),
518
+ "aria-label": "visit the App Store to download the Axos Bank mobile app",
519
+ title: "App Store",
520
+ children: /* @__PURE__ */ jsx(
521
+ "img",
522
+ {
523
+ alt: "download on the App Store",
524
+ src: "https://images.axos.com/o9ov1v03uwqk/6Ja0ODDH2HVdAFBIfQEiuh/d1894874d54c0dced3d7fe879135315a/app-store.svg"
525
+ }
526
+ )
527
+ }
528
+ )
529
+ ] })
525
530
  ] }),
526
531
  /* @__PURE__ */ jsxs("div", { className: ft_panel_group, children: [
527
532
  /* @__PURE__ */ jsxs("details", { className: `${ft_panel} push_up_32`, children: [
@@ -78,6 +78,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
78
78
  import "react-wrap-balancer";
79
79
  /* empty css */
80
80
  /* empty css */
81
+ /* empty css */
81
82
  /* empty css */
82
83
  import "../LandingPageHeader/LandingPageHeader.css.js";
83
84
  /* empty css */
@@ -78,6 +78,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
78
78
  import "react-wrap-balancer";
79
79
  /* empty css */
80
80
  /* empty css */
81
+ /* empty css */
81
82
  /* empty css */
82
83
  import "../LandingPageHeader/LandingPageHeader.css.js";
83
84
  /* empty css */
@@ -30,6 +30,7 @@ import * as z from "zod";
30
30
  import { formContainer, iconForm, headerContainer, form, descriptionField, formWrapper, fullRowForm, disclosureForm, actions } from "./Forms.css.js";
31
31
  import { RadioButtonSet, RadioButton } from "../Input/RadioButton.js";
32
32
  import CheckboxGroup from "../Input/CheckboxGroup.js";
33
+ import { findMoreAxosDomains } from "../utils/allowedAxosDomains.js";
33
34
  const CpraRequest = ({
34
35
  icon = false,
35
36
  children,
@@ -47,8 +48,18 @@ const CpraRequest = ({
47
48
  California_Resident: z.string(),
48
49
  Categories_of_personal_info: z.string(),
49
50
  Pieces_of_personal_information: z.string(),
50
- Request_Correction_of_Information: z.string(),
51
- Corrected_Information: z.string(),
51
+ Request_Correction_of_Information: z.string().optional(),
52
+ Corrected_Information: z.string().optional().refine(
53
+ (val) => {
54
+ if (requestCorrectionOfInfo === "Yes" && !val) {
55
+ return false;
56
+ }
57
+ return true;
58
+ },
59
+ {
60
+ message: "Corrected Information is required."
61
+ }
62
+ ),
52
63
  Delete_personal_info: z.string(),
53
64
  Opt_out_of_sale_of_info: z.string(),
54
65
  Current_client: z.string(),
@@ -710,6 +721,13 @@ const CpraRequest = ({
710
721
  ] }),
711
722
  children,
712
723
  /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
724
+ /* @__PURE__ */ jsx("div", { className: `${headerContainer}`, children: /* @__PURE__ */ jsxs("div", { className: `${form} ${descriptionField({ variant })}`, children: [
725
+ "For additional questions or concerns, please",
726
+ " ",
727
+ /* @__PURE__ */ jsx("a", { href: findMoreAxosDomains("{ONLINEBANKING}/Messages/Inbox"), children: "log in to online banking" }),
728
+ " ",
729
+ "and send us a secure message."
730
+ ] }) }),
713
731
  /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
714
732
  Button,
715
733
  {
@@ -719,6 +737,14 @@ const CpraRequest = ({
719
737
  disabled: !isValid || isSubmitting,
720
738
  children: callToAction?.displayText
721
739
  }
740
+ ) }),
741
+ /* @__PURE__ */ jsx("div", { className: `${headerContainer}`, children: /* @__PURE__ */ jsx(
742
+ "div",
743
+ {
744
+ id: "test",
745
+ className: `${form} ${descriptionField({ variant })}`,
746
+ children: "* = Required Field"
747
+ }
722
748
  ) })
723
749
  ] })
724
750
  ] }) }) }, id);
@@ -79,6 +79,7 @@ import "../ImageBillboard/ImageBillboard.css.js";
79
79
  import "react-wrap-balancer";
80
80
  /* empty css */
81
81
  /* empty css */
82
+ /* empty css */
82
83
  /* empty css */
83
84
  import "../LandingPageHeader/LandingPageHeader.css.js";
84
85
  /* empty css */
@@ -78,6 +78,7 @@ import "../../ImageBillboard/ImageBillboard.css.js";
78
78
  import "react-wrap-balancer";
79
79
  /* empty css */
80
80
  /* empty css */
81
+ /* empty css */
81
82
  /* empty css */
82
83
  import "../../LandingPageHeader/LandingPageHeader.css.js";
83
84
  import { chevron_wrapper, chevron } from "../../Chevron/Chevron.css.js";
@@ -150,7 +151,7 @@ const MortgageRate = ({
150
151
  propertyType: z.number({ message: "Property Type is required." }).positive({ message: "Property Type is required." }),
151
152
  occupancy: z.number({ message: "Property Usage is required." }).positive({ message: "Property Usage is required." }),
152
153
  salesPrice: z.number({ message: "Purchase Price is required." }).optional().refine((val) => loanPurpose === 1 ? val != null : true, {
153
- message: "Sales Price is required for purchase"
154
+ message: "Sales Price is required."
154
155
  }).refine(
155
156
  (val) => {
156
157
  if (loanPurpose === 1) {
@@ -213,6 +214,15 @@ const MortgageRate = ({
213
214
  methods.setValue("downPayment", 0);
214
215
  }
215
216
  }, [loanPurpose, methods]);
217
+ useEffect(() => {
218
+ const urlParams = new URLSearchParams(window.location.search);
219
+ const mortgageType = urlParams.get("mortgage-type");
220
+ if (mortgageType === "refinance") {
221
+ setLoanPurpose(2);
222
+ setRateType("Refinance");
223
+ methods.setValue("loanPurpose", 2);
224
+ }
225
+ }, [methods]);
216
226
  const {
217
227
  handleSubmit,
218
228
  register,
@@ -10,7 +10,20 @@ export type MortgageRateFilterInputs = {
10
10
  mortgageBalance: number;
11
11
  cashOut: number;
12
12
  };
13
- export declare const MortgageRateFilters: ({ onSubmit, initialLoanPurpose, }: {
14
- onSubmit?: ((values: MortgageRateFilterInputs) => void) | undefined;
15
- initialLoanPurpose?: number | undefined;
16
- }) => import("react/jsx-runtime").JSX.Element;
13
+ interface MortgageRateFiltersProps {
14
+ formData: {
15
+ loanPurpose: number;
16
+ propertyType: string;
17
+ occupancy: string;
18
+ salesPrice: number;
19
+ downPayment: number;
20
+ creditScore: string;
21
+ zipCode: number;
22
+ appraisedValue: number;
23
+ mortgageBalance: number;
24
+ cashOut: number;
25
+ };
26
+ onSubmit: (values: MortgageRateFilterInputs) => void;
27
+ }
28
+ export declare const MortgageRateFilters: ({ formData, onSubmit, }: MortgageRateFiltersProps) => import("react/jsx-runtime").JSX.Element;
29
+ export {};