@axos-web-dev/shared-components 0.0.98 → 0.0.100

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 (68) hide show
  1. package/dist/ATMLocator/ATMLocator.js +2 -2
  2. package/dist/Accordion/Accordion.css.d.ts +9 -9
  3. package/dist/BulletItem/BulletItem.js +1 -0
  4. package/dist/Button/Button.js +2 -3
  5. package/dist/Calculators/AnnualFeeCalculator/index.js +1 -0
  6. package/dist/Calculators/BalanceAPYCalculator/index.js +1 -0
  7. package/dist/Calculators/Calculator.js +2 -2
  8. package/dist/Calculators/MarginTradingCalculator/index.js +1 -0
  9. package/dist/Calculators/MaxLoanCalculator/index.js +1 -0
  10. package/dist/Calculators/MonthlyPaymentCalculator/index.js +1 -0
  11. package/dist/Carousel/index.js +2 -2
  12. package/dist/Chevron/index.js +2 -3
  13. package/dist/Comparison/Comparison.js +3 -3
  14. package/dist/Comparison/ComparisonSet.js +3 -3
  15. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -2
  16. package/dist/Forms/ApplicationStart.js +3 -3
  17. package/dist/Forms/CommercialLending.js +7 -14
  18. package/dist/Forms/ContactCompany.js +3 -3
  19. package/dist/Forms/ContactUs.js +3 -3
  20. package/dist/Forms/ContactUsAAS.js +3 -3
  21. package/dist/Forms/ContactUsBusiness.js +4 -4
  22. package/dist/Forms/ContactUsNMLSId.js +4 -4
  23. package/dist/Forms/DealerServices.js +3 -3
  24. package/dist/Forms/EmailOnly.js +4 -4
  25. package/dist/Forms/EmailUs.js +1 -0
  26. package/dist/Forms/SalesforceFieldsForm.d.ts +1 -0
  27. package/dist/Forms/ScheduleCall.js +4 -7
  28. package/dist/Forms/ScheduleCallPremier.js +3 -3
  29. package/dist/Forms/SuccesForm.js +2 -2
  30. package/dist/Forms/WcplSurvey.js +2 -3
  31. package/dist/Hyperlink/index.js +1 -2
  32. package/dist/ImageLink/ImageLink.js +2 -2
  33. package/dist/ImageLink/ImageLinkSet.js +2 -2
  34. package/dist/ImageLink/index.js +2 -2
  35. package/dist/Input/Checkbox.d.ts +1 -1
  36. package/dist/Input/CurrencyInput.js +2 -3
  37. package/dist/Input/InputPhone.js +2 -3
  38. package/dist/Input/InputProps.d.ts +0 -6
  39. package/dist/Input/index.d.ts +0 -3
  40. package/dist/Input/index.js +0 -6
  41. package/dist/LoadingIndicator/index.js +1 -0
  42. package/dist/Modal/Modal.js +3 -3
  43. package/dist/Modal/contextApi/store.js +1 -0
  44. package/dist/NavigationMenu/AxosAdvisorServices/NavData.d.ts +1 -5
  45. package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +1 -7
  46. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.js +2 -3
  47. package/dist/NavigationMenu/AxosAdvisorServices/index.js +11 -21
  48. package/dist/NavigationMenu/AxosBank/NavData.d.ts +5 -0
  49. package/dist/NavigationMenu/AxosBank/NavData.js +38 -1
  50. package/dist/NavigationMenu/AxosBank/SubNavBar.js +6 -4
  51. package/dist/SetContainer/SetContainer.js +2 -2
  52. package/dist/Tab/Tab.js +1 -0
  53. package/dist/Table/Table.d.ts +13 -13
  54. package/dist/Table/Table.js +1 -0
  55. package/dist/assets/Table/Table.css +1 -1
  56. package/dist/main.js +0 -6
  57. package/dist/utils/allowedAxosDomains.js +18 -16
  58. package/package.json +1 -1
  59. package/dist/Input/DatePicker.css.d.ts +0 -1
  60. package/dist/Input/DatePicker.css.js +0 -6
  61. package/dist/Input/Datepicker.d.ts +0 -3
  62. package/dist/Input/Datepicker.js +0 -47
  63. package/dist/Input/InputDate.css.d.ts +0 -6
  64. package/dist/Input/InputDate.css.js +0 -15
  65. package/dist/Input/InputDate.d.ts +0 -3
  66. package/dist/Input/InputDate.js +0 -47
  67. package/dist/assets/Input/DatePicker.css +0 -95
  68. package/dist/assets/Input/InputDate.css +0 -39
@@ -1,27 +1,29 @@
1
1
  const moreDomains = {
2
- "{AXOS}": "https://www.axos.com",
3
- "{AXOSBANK}": "https://www.axosbank.com",
4
- "{AXOSCLEARING}": "https://axosclearing.com",
5
- "{AAS}": "https://www.axosadvisorservices.com",
6
- "{AFS}": "https://www.axosfiduciaryservices.com",
7
- "{NATIONWIDE}": "https://www.nationwide.axosbank.com",
8
- "{ENROLLMENT}": "https://enrollment.axosbank.com",
2
+ // "{AXOS}": "https://www.axos.com",
3
+ "{AXOS}": "" + process.env.AXOS_URL,
4
+ "{AXOSBANK}": process.env.AXOS_BANK_URL ?? "https://www.axosbank.com",
5
+ "{AXOSCLEARING}": process.env.CLEARING_URL || "https://axosclearing.com",
6
+ "{AAS}": process.env.AAS_URL || "https://www.axosadvisorservices.com",
7
+ "{AFS}": process.env.AFS_URL || "https://www.axosfiduciaryservices.com",
8
+ "{NATIONWIDE}": process.env.NATIOWIDE_URL || "https://www.nationwide.axosbank.com",
9
+ "{ENROLLMENT}": process.env.ENROLLMENT_URL || "https://enrollment.axosbank.com",
9
10
  "{ASSETSURL}": "https://assets.axos.com",
10
11
  "{IMAGEASSETSURL}": "https://images.axos.com",
11
- "{ONLINEBANKING}": "https://onlinebanking.uat.axsobank.com",
12
- "{UFBDIRECT}": "https://www.ufbdirect.com",
13
- "{ARMS}": "https://arms.axosadvisor.com",
14
- "{APPS}": "https://apps.axosbank.com",
15
- "{AFP}": "https://afp.axosbank.com",
16
- "{INVESTORS}": "https://investors.axosfinancial.com",
17
- "{OBAXB}": "https://onlinebanking.axosbank.com"
18
- // "assets.axos.com": "https://assets.axos.com",
19
- // "images.axos.com": "https://images.axos.com",
12
+ "{ONLINEBANKING}": process.env.ONLINEBANKING_URL || "https://onlinebanking.uat.axsobank.com",
13
+ "{UFBDIRECT}": process.env.UFB_URL || "https://www.ufbdirect.com",
14
+ "{ARMS}": process.env.ARMS_URL || "https://arms.axosadvisor.com",
15
+ "{APPS}": process.env.APPS_URL || "https://apps.axosbank.com",
16
+ "{AFP}": process.env.AFP_URL || "https://afp.axosbank.com",
17
+ "{INVESTORS}": process.env.INVESTORS_URL || "https://investors.axosfinancial.com",
18
+ "{OBAXB}": process.env.ONLINEBANKING_URL || "https://onlinebanking.axosbank.com",
19
+ "{UNVENROLLMENT}": String(process.env.UNVENROLLMENT_URL) || "https://enroll.axosbank.com"
20
20
  };
21
21
  const isAllowedUrl = (url) => {
22
22
  const uri = new URL(url, location.href);
23
+ console.log(uri);
23
24
  for (const key in moreDomains) {
24
25
  const urlToCompare = new URL(moreDomains[key], location.href);
26
+ console.log({ urlToCompare });
25
27
  if (uri.hostname === urlToCompare.hostname) return true;
26
28
  }
27
29
  return false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "0.0.98",
4
+ "version": "0.0.100",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -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
- }