@axos-web-dev/shared-components 0.0.135 → 0.0.137

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 (53) hide show
  1. package/dist/ATMLocator/ATMLocator.js +3 -2
  2. package/dist/Button/Button.js +1 -0
  3. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.d.ts +45 -0
  4. package/dist/Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js +37 -0
  5. package/dist/Calculators/AxosOneCalculator/index.d.ts +10 -0
  6. package/dist/Calculators/AxosOneCalculator/index.js +183 -0
  7. package/dist/Calculators/Calculator.js +12 -0
  8. package/dist/Calculators/index.d.ts +1 -0
  9. package/dist/Calculators/index.js +2 -0
  10. package/dist/Carousel/index.js +1 -0
  11. package/dist/Chevron/index.js +1 -0
  12. package/dist/Comparison/Comparison.js +1 -0
  13. package/dist/FaqAccordion/index.js +1 -0
  14. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
  15. package/dist/Forms/ContactUsBusiness.js +1 -0
  16. package/dist/Forms/ContactUsNMLSId.js +1 -0
  17. package/dist/Forms/EmailOnly.js +1 -0
  18. package/dist/Forms/SalesforceFieldsForm.d.ts +8 -0
  19. package/dist/Forms/SalesforceFieldsForm.js +21 -1
  20. package/dist/Forms/SuccesForm.js +1 -0
  21. package/dist/Hyperlink/index.js +1 -0
  22. package/dist/ImageLink/ImageLink.js +1 -0
  23. package/dist/ImageLink/ImageLinkSet.js +1 -0
  24. package/dist/ImageLink/index.js +1 -0
  25. package/dist/Input/InputProps.d.ts +0 -6
  26. package/dist/Insight/Featured/CategorySelector.js +1 -0
  27. package/dist/Insight/Featured/Featured.js +1 -0
  28. package/dist/Modal/Modal.js +1 -0
  29. package/dist/NavigationMenu/AxosBank/NavData.js +1 -0
  30. package/dist/NavigationMenu/AxosBank/SubNavBar.js +1 -0
  31. package/dist/NavigationMenu/AxosBank/index.js +1 -0
  32. package/dist/SetContainer/SetContainer.js +1 -0
  33. package/dist/Table/Table.d.ts +2 -1
  34. package/dist/VideoTile/VideoTile.js +1 -1
  35. package/dist/assets/Calculators/AxosOneCalculator/BalanceAPYCalculator.css +210 -0
  36. package/dist/main.d.ts +2 -0
  37. package/dist/main.js +2 -0
  38. package/dist/utils/allowedAxosDomains.js +2 -1
  39. package/package.json +1 -1
  40. package/dist/Forms/BlendPurchase.d.ts +0 -11
  41. package/dist/Forms/BlendPurchase.js +0 -215
  42. package/dist/Forms/BlendRefinance.d.ts +0 -11
  43. package/dist/Forms/BlendRefinance.js +0 -215
  44. package/dist/Input/DatePicker.css.d.ts +0 -1
  45. package/dist/Input/DatePicker.css.js +0 -6
  46. package/dist/Input/Datepicker.d.ts +0 -3
  47. package/dist/Input/Datepicker.js +0 -47
  48. package/dist/Input/InputDate.css.d.ts +0 -6
  49. package/dist/Input/InputDate.css.js +0 -15
  50. package/dist/Input/InputDate.d.ts +0 -3
  51. package/dist/Input/InputDate.js +0 -47
  52. package/dist/assets/Input/DatePicker.css +0 -95
  53. package/dist/assets/Input/InputDate.css +0 -39
@@ -1,215 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { zodResolver } from "@hookform/resolvers/zod";
4
- import { Button } from "../Button/Button.js";
5
- import "../Button/Button.css.js";
6
- import "react";
7
- import "react-use";
8
- import "../Input/Checkbox.js";
9
- import "../Input/CurrencyInput.js";
10
- import "../Input/Dropdown.js";
11
- /* empty css */
12
- /* empty css */
13
- import { Input } from "../Input/Input.js";
14
- import "../Input/Input.css.js";
15
- import "../Input/InputAmount.js";
16
- import { InputPhone } from "../Input/InputPhone.js";
17
- import "../Input/InputTextArea.js";
18
- import "../icons/ArrowIcon/ArrowIcon.css.js";
19
- import SvgAxosX from "../icons/AxosX/index.js";
20
- import SvgComponent from "../icons/AxosX/Blue.js";
21
- import "../icons/CheckIcon/CheckIcon.css.js";
22
- /* empty css */
23
- /* empty css */
24
- /* empty css */
25
- /* empty css */
26
- import { associatedEmail } from "../utils/EverestValidity.js";
27
- import "../utils/allowedAxosDomains.js";
28
- import { getVariant } from "../utils/getVariant.js";
29
- import clsx from "clsx";
30
- import { useForm, FormProvider } from "react-hook-form";
31
- import * as z from "zod";
32
- import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
33
- import { SalesforceSchema } from "./SalesforceFieldsForm.js";
34
- const BlendPurchase = ({
35
- icon = false,
36
- children,
37
- onSubmit = (values) => {
38
- console.log(values);
39
- },
40
- disclosure,
41
- variant: fullVariant = "primary",
42
- headline,
43
- description,
44
- callToAction,
45
- validateEmail,
46
- id
47
- }) => {
48
- const schema = z.object({
49
- property_Type: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
50
- Occupancy: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
51
- SalesPrice: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
52
- DownPayment: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
53
- const removeDashes = val.replace(/-/gi, "");
54
- if (removeDashes.length !== 10) {
55
- ctx.addIssue({
56
- code: z.ZodIssueCode.custom,
57
- message: "Phone must have at least 10 and no more than 10 characters."
58
- });
59
- return z.NEVER;
60
- }
61
- return removeDashes;
62
- }),
63
- CreditScore: z.string(),
64
- ZipCode: z.string()
65
- });
66
- const methods = useForm({
67
- resolver: zodResolver(schema.merge(SalesforceSchema), {
68
- async: true
69
- }),
70
- mode: "all",
71
- defaultValues: {}
72
- });
73
- const {
74
- handleSubmit,
75
- register,
76
- formState: { errors, isValid, isSubmitting }
77
- } = methods;
78
- const submitForm = async (data) => {
79
- await onSubmit(data);
80
- };
81
- const variant = getVariant(fullVariant);
82
- return /* @__PURE__ */ jsx(
83
- "section",
84
- {
85
- id: `id_${id}`,
86
- className: clsx(formContainer({ variant })),
87
- children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
88
- icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
89
- /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
90
- /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
91
- description && /* @__PURE__ */ jsx(
92
- "div",
93
- {
94
- className: clsx(
95
- "text_center",
96
- form,
97
- descriptionField({ variant })
98
- ),
99
- children: description
100
- }
101
- )
102
- ] }),
103
- /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
104
- /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
105
- /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
106
- Input,
107
- {
108
- id: "property_Type",
109
- ...register("property_Type", { required: true }),
110
- label: "Property Type",
111
- sizes: "medium",
112
- required: true,
113
- error: !!errors.property_Type,
114
- helperText: errors.property_Type?.message,
115
- variant
116
- }
117
- ) }),
118
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
119
- Input,
120
- {
121
- id: "Occupancy",
122
- ...register("Occupancy", { required: true }),
123
- label: "Property Usage",
124
- sizes: "medium",
125
- required: true,
126
- error: !!errors.Occupancy,
127
- helperText: errors.Occupancy?.message,
128
- variant
129
- }
130
- ) }),
131
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
132
- Input,
133
- {
134
- id: "SalesPrice",
135
- ...register("SalesPrice", {
136
- required: true,
137
- validate: {
138
- isValid: associatedEmail
139
- }
140
- }),
141
- label: "Purchase Price",
142
- sizes: "medium",
143
- required: true,
144
- error: !!errors.SalesPrice,
145
- helperText: errors.SalesPrice?.message,
146
- variant
147
- }
148
- ) }),
149
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
150
- InputPhone,
151
- {
152
- id: "DownPayment",
153
- ...register("DownPayment", {
154
- required: true,
155
- maxLength: 12
156
- }),
157
- label: "Down Payment",
158
- sizes: "medium",
159
- required: true,
160
- error: !!errors.DownPayment,
161
- helperText: errors.DownPayment?.message,
162
- variant
163
- }
164
- ) }),
165
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
166
- InputPhone,
167
- {
168
- id: "CreditScore",
169
- ...register("CreditScore", {
170
- required: true,
171
- maxLength: 12
172
- }),
173
- label: "Credit Score",
174
- sizes: "medium",
175
- required: true,
176
- error: !!errors.CreditScore,
177
- helperText: errors.CreditScore?.message,
178
- variant
179
- }
180
- ) }),
181
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
182
- InputPhone,
183
- {
184
- id: "ZipCode",
185
- ...register("ZipCode", { required: true, maxLength: 12 }),
186
- label: "Zip Code",
187
- sizes: "medium",
188
- required: true,
189
- error: !!errors.ZipCode,
190
- helperText: errors.ZipCode?.message,
191
- variant
192
- }
193
- ) })
194
- ] }),
195
- children,
196
- /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
197
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
198
- Button,
199
- {
200
- color: getVariant(callToAction?.variant),
201
- as: "button",
202
- type: "submit",
203
- disabled: !isValid || isSubmitting,
204
- children: callToAction?.displayText
205
- }
206
- ) })
207
- ] })
208
- ] }) })
209
- },
210
- id
211
- );
212
- };
213
- export {
214
- BlendPurchase
215
- };
@@ -1 +0,0 @@
1
- export declare const datePicker: string;
@@ -1,6 +0,0 @@
1
- /* empty css */
2
- /* empty css */
3
- var datePicker = "_1oit9ls0";
4
- export {
5
- datePicker
6
- };
@@ -1,3 +0,0 @@
1
- import { DatepickerInputProps } from './InputProps';
2
-
3
- export declare const DatePickerInput: (props: DatepickerInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,47 +0,0 @@
1
- "use client";
2
- import { jsxs, jsx } from "react/jsx-runtime";
3
- import { useState } from "react";
4
- import DatePicker from "react-date-picker";
5
- import { wrapper, labelClassName, container, iconContainer, iconInput, helperText } from "./Input.css.js";
6
- const DatePickerInput = (props) => {
7
- const {
8
- disabled,
9
- label,
10
- iconLeft,
11
- iconRight,
12
- sizes,
13
- error = false,
14
- helperText: helper,
15
- variant
16
- } = props;
17
- const [value, onChange] = useState();
18
- return /* @__PURE__ */ jsxs("div", { className: wrapper(), children: [
19
- label && /* @__PURE__ */ jsx(
20
- "label",
21
- {
22
- className: labelClassName({ error, variant }),
23
- htmlFor: props.name,
24
- children: label
25
- }
26
- ),
27
- /* @__PURE__ */ jsxs("div", { className: container({ size: sizes, error }), children: [
28
- iconLeft && /* @__PURE__ */ jsx("span", { className: iconContainer["left"], children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconLeft }) }),
29
- /* @__PURE__ */ jsx(
30
- DatePicker,
31
- {
32
- dayPlaceholder: "dd",
33
- monthPlaceholder: "mm",
34
- yearPlaceholder: "yyyy",
35
- minDate: /* @__PURE__ */ new Date(),
36
- onChange,
37
- value
38
- }
39
- ),
40
- iconRight && /* @__PURE__ */ jsx("span", { className: iconContainer.right, children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconRight }) })
41
- ] }),
42
- /* @__PURE__ */ jsx("span", { className: helperText({ disabled, error }), children: helper })
43
- ] });
44
- };
45
- export {
46
- DatePickerInput
47
- };
@@ -1,6 +0,0 @@
1
- export declare const calendarContainer: string;
2
- export declare const calendarIcon: string;
3
- export declare const inputDate: string;
4
- export declare const verticalCenter: string;
5
- export declare const calendar: string;
6
- export declare const headerCalendar: string;
@@ -1,15 +0,0 @@
1
- /* empty css */
2
- var calendarContainer = "skzved0";
3
- var calendarIcon = "skzved1";
4
- var inputDate = "skzved2";
5
- var verticalCenter = "skzved3";
6
- var calendar = "skzved4";
7
- var headerCalendar = "skzved5";
8
- export {
9
- calendar,
10
- calendarContainer,
11
- calendarIcon,
12
- headerCalendar,
13
- inputDate,
14
- verticalCenter
15
- };
@@ -1,3 +0,0 @@
1
- import { DatepickerInputProps } from './InputProps';
2
-
3
- export declare const InputDate: (props: DatepickerInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,47 +0,0 @@
1
- "use client";
2
- import { jsxs, jsx } from "react/jsx-runtime";
3
- import { useState } from "react";
4
- import DatePicker from "react-date-picker";
5
- import { wrapper, labelClassName, container, iconContainer, iconInput, helperText } from "./Input.css.js";
6
- const InputDate = (props) => {
7
- const {
8
- disabled,
9
- label,
10
- iconLeft,
11
- iconRight,
12
- sizes,
13
- error = false,
14
- helperText: helper,
15
- variant
16
- } = props;
17
- const [value, onChange] = useState();
18
- return /* @__PURE__ */ jsxs("div", { className: wrapper(), children: [
19
- label && /* @__PURE__ */ jsx(
20
- "label",
21
- {
22
- className: labelClassName({ error, variant }),
23
- htmlFor: props.name,
24
- children: label
25
- }
26
- ),
27
- /* @__PURE__ */ jsxs("div", { className: container({ size: sizes, error }), children: [
28
- iconLeft && /* @__PURE__ */ jsx("span", { className: iconContainer["left"], children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconLeft }) }),
29
- /* @__PURE__ */ jsx(
30
- DatePicker,
31
- {
32
- dayPlaceholder: "dd",
33
- monthPlaceholder: "mm",
34
- yearPlaceholder: "yyyy",
35
- minDate: /* @__PURE__ */ new Date(),
36
- onChange,
37
- value
38
- }
39
- ),
40
- iconRight && /* @__PURE__ */ jsx("span", { className: iconContainer.right, children: /* @__PURE__ */ jsx("div", { className: iconInput({ size: sizes }), children: iconRight }) })
41
- ] }),
42
- /* @__PURE__ */ jsx("span", { className: helperText({ disabled, error }), children: helper })
43
- ] });
44
- };
45
- export {
46
- InputDate
47
- };
@@ -1,95 +0,0 @@
1
- .react-date-picker {
2
- width: 100%;
3
- }
4
- .react-date-picker__wrapper {
5
- border: none !important;
6
- }
7
- .react-calendar__month-view__weekdays__weekday {
8
- width: 45px;
9
- height: 22px;
10
- margin: 0;
11
- display: inline-flex;
12
- align-items: center;
13
- font-family: var(--main-font-family);
14
- font-weight: 500;
15
- letter-spacing: 0.2px;
16
- justify-content: center;
17
- }
18
- .react-calendar__month-view__weekdays__weekday {
19
- font-size: 12px;
20
- line-height: 16;
21
- color: #2F5B88;
22
- }
23
- .react-calendar__month-view__weekdays__weekday > abbr {
24
- text-decoration: none;
25
- }
26
- .react-calendar__month-view__days__day {
27
- width: 49px;
28
- height: 49px;
29
- margin: 0;
30
- display: inline-flex;
31
- align-items: center;
32
- justify-content: center;
33
- }
34
- .react-calendar__month-view__days__day > abbr {
35
- font-family: var(--main-font-family) !important;
36
- font-weight: 500;
37
- letter-spacing: 0.2px;
38
- color: #051A3F;
39
- }
40
- .react-date-picker__inputGroup__input, .react-date-picker__inputGroup__divider {
41
- color: #5E6A74 !important;
42
- }
43
- .react-date-picker__clear-button {
44
- display: none;
45
- }
46
- .react-calendar__navigation__label__labelText {
47
- font-weight: 600;
48
- font-size: 24px;
49
- line-height: 36px;
50
- letter-spacing: 0.2px;
51
- color: #1E3860;
52
- font-family: var(--header-font-family);
53
- }
54
- .react-datepicker-popper {
55
- transform: translateY(40px)!important;
56
- }
57
- .react-calendar__month-view__days__day--neighboringMonth {
58
- background-color: #F4F4F4 !important;
59
- opacity: 50%;
60
- }
61
- .react-calendar__month-view__days__day--neighboringMonth > abbr {
62
- color: #5E6A74;
63
- }
64
- .react-calendar__tile--active > abbr {
65
- color: white;
66
- }
67
- .react-calendar {
68
- border: 12px solid #FFFFFF4D !important;
69
- border-radius: 4px;
70
- }
71
- .react-calendar__navigation__prev2-button, .react-calendar__navigation__next2-button {
72
- display: none;
73
- }
74
- .react-date-picker__calendar {
75
- max-width: 100% !important;
76
- }
77
- .react-date-picker__inputGroup__input:focus-visible {
78
- outline: none;
79
- }
80
- .react-date-picker__inputGroup__input:invalid {
81
- background: transparent !important;
82
- }
83
- @media screen and (max-width:320px) {
84
- .react-calendar__month-view__weekdays__weekday {
85
- width: 43.5px;
86
- }
87
- .react-calendar__month-view__days__day {
88
- width: 43.5px;
89
- }
90
- }
91
- @media screen and (max-width:400px) {
92
- .react-calendar__navigation .react-calendar__navigation__prev-button, .react-calendar__navigation .react-calendar__navigation__next-button {
93
- min-width: auto;
94
- }
95
- }
@@ -1,39 +0,0 @@
1
- .skzved0 {
2
- position: relative;
3
- }
4
- .skzved1 {
5
- position: relative;
6
- top: 5px;
7
- left: 5px;
8
- }
9
- .skzved2 {
10
- width: 100px;
11
- padding-left: 5px;
12
- padding-right: 5px;
13
- line-height: 28px;
14
- font-size: 14pt;
15
- }
16
- .skzved3 {
17
- display: flex;
18
- justify-content: center;
19
- align-items: center;
20
- }
21
- .skzved4 {
22
- display: block;
23
- background: #FFFFFF;
24
- width: 300px;
25
- border: solid 1px #CCCCCC;
26
- margin: 10px auto;
27
- box-shadow: 0 0 15px 0 #C0C0C0;
28
- font-size: 1.3rem;
29
- text-align: center;
30
- z-index: 999;
31
- }
32
- .skzved4 .skzved5 {
33
- display: flex;
34
- justify-content: center;
35
- align-items: center;
36
- color: #FFFFFF;
37
- cursor: default;
38
- font-weight: bold;
39
- }