@axos-web-dev/shared-components 1.0.99-dev.15 → 1.0.99-dev.17

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.
@@ -204,11 +204,28 @@ const MaxLoanCalculator = ({
204
204
  }
205
205
  ) }),
206
206
  /* @__PURE__ */ jsxs("div", { className: "text_center flex flex_col center middle push_up_32", children: [
207
- /* @__PURE__ */ jsx("span", { className: calculation_header, children: "Maximum Loan Amount You Can Borrow:" }),
208
- /* @__PURE__ */ jsxs("span", { id: "estimatedLoanAmount", className: payment_results, children: [
209
- "$",
210
- loanAmount.toFixed(2)
211
- ] })
207
+ /* @__PURE__ */ jsx(
208
+ "label",
209
+ {
210
+ htmlFor: "estimatedLoanAmount",
211
+ className: calculation_header,
212
+ children: "Maximum Loan Amount You Can Borrow:"
213
+ }
214
+ ),
215
+ /* @__PURE__ */ jsxs(
216
+ "output",
217
+ {
218
+ id: "estimatedLoanAmount",
219
+ className: payment_results,
220
+ name: "estimated-loan-amount",
221
+ htmlFor: "monthlyPayment loanDuration interestRate",
222
+ role: "status",
223
+ children: [
224
+ "$",
225
+ loanAmount.toFixed(2)
226
+ ]
227
+ }
228
+ )
212
229
  ] })
213
230
  ] })
214
231
  ]
@@ -212,11 +212,21 @@ const MonthlyPaymentCalculator = ({
212
212
  }
213
213
  ) }),
214
214
  /* @__PURE__ */ jsxs("div", { className: "text_center flex flex_col center middle push_up_32", children: [
215
- /* @__PURE__ */ jsx("span", { className: calculation_header, children: "Estimated Monthly Payment:" }),
216
- /* @__PURE__ */ jsxs("span", { id: "estimatedPayment", className: payment_results, children: [
217
- "$",
218
- estimatedPayment.toFixed(2)
219
- ] })
215
+ /* @__PURE__ */ jsx("label", { htmlFor: "estimatedPayment", className: calculation_header, children: "Estimated Monthly Payment:" }),
216
+ /* @__PURE__ */ jsxs(
217
+ "output",
218
+ {
219
+ id: "estimatedPayment",
220
+ className: payment_results,
221
+ name: "estimated-payment",
222
+ htmlFor: "loanAmount loanDuration interestRate",
223
+ role: "status",
224
+ children: [
225
+ "$",
226
+ estimatedPayment.toFixed(2)
227
+ ]
228
+ }
229
+ )
220
230
  ] })
221
231
  ] }),
222
232
  disclosure && /* @__PURE__ */ jsx("div", { className: calc_disclosure({ variant: fullVariant }), children: disclosure })
@@ -0,0 +1,11 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type MortgageWarehouseLendingInputs = {
4
+ first_name: string;
5
+ last_name: string;
6
+ email: string;
7
+ phone: string;
8
+ Company_NMLS_ID__c: string;
9
+ Business_Name__c: string;
10
+ };
11
+ export declare const MortgageWarehouseLending: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, onValidate, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,338 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import "../Input/Checkbox.js";
5
+ import "../Input/CurrencyInput.js";
6
+ import "../Input/Dropdown.js";
7
+ import "../Input/Dropdown.css.js";
8
+ import { Input } from "../Input/Input.js";
9
+ import "../Input/Input.css.js";
10
+ import "../Input/InputAmount.js";
11
+ import { InputPhone } from "../Input/InputPhone.js";
12
+ import "../Input/InputTextArea.js";
13
+ import "../Input/DownPaymentInput.js";
14
+ import "../Input/RadioButton.js";
15
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
16
+ import SvgAxosX from "../icons/AxosX/index.js";
17
+ import SvgComponent from "../icons/AxosX/Blue.js";
18
+ import "../icons/CheckIcon/CheckIcon.css.js";
19
+ import '../assets/VideoWrapper/VideoWrapper.css';import '../assets/TopicalNavSet/TopicalNavSet.css';import '../assets/TopicalNavItem/TopicalNavItem.css';import '../assets/Topic/Topic.css';import '../assets/TextBlock/TextBlock.css';import '../assets/SocialMediaBar/SocialMediaBar.css';import '../assets/SecondaryFooter/SecondaryFooter.css';import '../assets/Pagination/Pagination.css';import '../assets/PageNavSet/PageNavigationSet.css';import '../assets/NavigationMenu/LaVictoire/NavBar.css';import '../assets/NavigationMenu/AxosALTS/NavBar.css';import '../assets/NavigationMenu/AxosClearing/NavBar.css';import '../assets/NavigationMenu/AxosBank/SubNavbar.css';import '../assets/NavigationMenu/AxosBank/NavBar.css';import '../assets/NavigationMenu/AxosAdvisorServices/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisorServices/NavBar.css';import '../assets/NavigationMenu/AxosAdvisor/SubNavbar.css';import '../assets/NavigationMenu/AxosAdvisor/NavBar.css';import '../assets/Insight/Insight.css';import '../assets/Insight/Featured/Header.css';import '../assets/Insight/Featured/CategorySelector.css';import '../assets/Insight/Featured/Featured.css';import '../assets/ImageLink/ImageLink.css';import '../assets/VideoTile/VideoTile.css';import '../assets/HelpArticle/HelpArticle.css';import '../assets/FooterSiteMap/AxosBank/FooterSiteMap.css';import '../assets/FooterDisclosure/LVF/LaVictorieFooter.css';import '../assets/DownloadTile/DownloadTile.css';import '../assets/CollectInformationAlert/CollectInformationAlert.css';import '../assets/CallToActionBar/CallToActionBar.css';import '../assets/AwardsItem/AwardsItem.css';import '../assets/AwardsBanner/AwardsBanner.css';import '../assets/Auth/SignIn.css';import '../assets/Auth/ErrorAlert.css';import '../assets/Calculators/MarginTradingCalculator/MarginTradingCalculator.css';import '../assets/Forms/QuickPricer/UserInformation.css';import '../assets/Modal/Modal.css';import '../assets/Forms/QuickPricer/QuickPricerResults.css';import '../assets/BulletItem/BulletItem.css';import '../assets/Typography/Typography.css';import '../assets/icons/FollowIcon/FollowIcon.css';import '../assets/icons/DownloadIcon/DownloadIcon.css';import '../assets/themes/victorie.css';import '../assets/themes/premier.css';import '../assets/themes/axos.css';/* empty css */
20
+ /* empty css */
21
+ /* empty css */
22
+ /* empty css */
23
+ /* empty css */
24
+ import "../Accordion/Accordion.js";
25
+ import "../Accordion/Accordion.css.js";
26
+ import { getVariant } from "../utils/getVariant.js";
27
+ import clsx from "clsx";
28
+ import "react";
29
+ import "../Chevron/Chevron.css.js";
30
+ import "../AlertBanner/AlertBanner.css.js";
31
+ import "../Article/Article.css.js";
32
+ import { Button } from "../Button/Button.js";
33
+ import "../Button/Button.css.js";
34
+ import "react-use";
35
+ import "../ArticlesSet/ArticlesSet.css.js";
36
+ import "../IconBillboard/IconBillboard.css.js";
37
+ import "../utils/allowedAxosDomains.js";
38
+ import "../Calculators/calculator.css.js";
39
+ import "../Calculators/AnnualFeeCalculator/AnnualFeeCalculator.css.js";
40
+ import "../Calculators/ApyCalculator/ApyCalculator.css.js";
41
+ import "../Table/Table.css.js";
42
+ import "../Calculators/AxosOneCalculator/BalanceAPYCalculator.css.js";
43
+ import "../Calculators/BalanceAPYCalculator/BalanceAPYCalculator.css.js";
44
+ import "../Input/PercentageInput.js";
45
+ import { useForm, FormProvider } from "react-hook-form";
46
+ import { z } from "zod";
47
+ import "../Calculators/BuyDownCalculator/BuyDownCalculator.css.js";
48
+ import { iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
49
+ import { honeyPotSchema, isValidHoneyPot, HoneyPot } from "./HoneyPot/index.js";
50
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
51
+ /* empty css */
52
+ /* empty css */
53
+ import "../Input/RadioButton.css.js";
54
+ import "../Input/Checkbox.css.js";
55
+ import "../LoadingIndicator/LoadingIndicator.css.js";
56
+ import "../Interstitial/Interstitial-variants.css.js";
57
+ import "../Inputs/Input.css.js";
58
+ /* empty css */
59
+ /* empty css */
60
+ import "../Modal/contextApi/store.js";
61
+ import "../Hyperlink/Hyperlink.css.js";
62
+ /* empty css */
63
+ import "iframe-resizer";
64
+ /* empty css */
65
+ import "../Calculators/MonthlyPaymentCalculator/MonthlyPaymentCalculator.css.js";
66
+ import "../Calculators/MonthlyPaymentLVFCalculator/MonthlyPaymentCalculator.css.js";
67
+ import "../Calculators/SummitApyCalculator/BalanceAPYCalculator.css.js";
68
+ /* empty css */
69
+ import "react-dom";
70
+ /* empty css */
71
+ import "../Auth/SignInPassword.js";
72
+ /* empty css */
73
+ /* empty css */
74
+ /* empty css */
75
+ import "../Carousel/index.js";
76
+ /* empty css */
77
+ import "../Comparison/Comparison.css.js";
78
+ import "next/image.js";
79
+ import "../HeroBanner/HeroBanner.css.js";
80
+ import "../HeroBanner/LargeBanner.css.js";
81
+ import "../HeroBanner/SelectionBanner.css.js";
82
+ import "../SetContainer/SetContainer.css.js";
83
+ import "../Tab/Tab.css.js";
84
+ import "../icons/Star/Star.css.js";
85
+ import "../ContentBanner/ContentBanner.css.js";
86
+ /* empty css */
87
+ import "../ExecutiveBio/ExecutiveBio.css.js";
88
+ import "../FaqAccordion/index.js";
89
+ import "../FooterDisclosure/FooterDisclosure.css.js";
90
+ /* empty css */
91
+ /* empty css */
92
+ /* empty css */
93
+ import "../ImageBillboard/ImageBillboard.css.js";
94
+ import "next/script.js";
95
+ /* empty css */
96
+ /* empty css */
97
+ /* empty css */
98
+ /* empty css */
99
+ /* empty css */
100
+ /* empty css */
101
+ import "../LandingPageHeader/LandingPageHeader.css.js";
102
+ /* empty css */
103
+ import "next/navigation.js";
104
+ /* empty css */
105
+ /* empty css */
106
+ /* empty css */
107
+ import "next/link.js";
108
+ import "../NavigationMenu/AxosBank/MobileMenu/MobileNavData.js";
109
+ /* empty css */
110
+ import "../NavigationMenu/AxosBank/NavData.js";
111
+ /* empty css */
112
+ /* empty css */
113
+ import "../NavigationMenu/AxosALTS/NavData.js";
114
+ /* empty css */
115
+ /* empty css */
116
+ import "../NavigationMenu/LaVictoire/NavData.js";
117
+ import "../PageNavItem/PageNavItem.css.js";
118
+ import "react-slick";
119
+ /* empty css */
120
+ /* empty css */
121
+ /* empty css */
122
+ /* empty css */
123
+ import "../StepItem/StepItem.css.js";
124
+ import "../StepItemSet/StepItemSet.css.js";
125
+ /* empty css */
126
+ /* empty css */
127
+ /* empty css */
128
+ /* empty css */
129
+ /* empty css */
130
+ const MortgageWarehouseLending = ({
131
+ icon = false,
132
+ children,
133
+ onSubmit = (values) => {
134
+ console.log(values);
135
+ },
136
+ disclosure,
137
+ variant: fullVariant = "primary",
138
+ headline,
139
+ description,
140
+ callToAction,
141
+ validateEmail,
142
+ onValidate,
143
+ id
144
+ }) => {
145
+ const schema = z.object({
146
+ first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
147
+ last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
148
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
149
+ phone: z.string({ message: "Phone is required." }).regex(/[\d-]{10}/, "Invalid phone number.").min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
150
+ const removeDashes = val.replace(/-/gi, "");
151
+ if (removeDashes.length !== 10) {
152
+ ctx.addIssue({
153
+ code: z.ZodIssueCode.custom,
154
+ message: "Phone must have at least 10 and no more than 10 characters."
155
+ });
156
+ return z.NEVER;
157
+ }
158
+ if (removeDashes.endsWith("00000") || removeDashes.startsWith("999") || removeDashes.length === 10 && /^[01]/.test(removeDashes)) {
159
+ ctx.addIssue({
160
+ code: z.ZodIssueCode.custom,
161
+ message: "Invalid phone number."
162
+ });
163
+ return z.NEVER;
164
+ }
165
+ return removeDashes;
166
+ }),
167
+ Company_NMLS_ID__c: z.string().min(6).max(7),
168
+ Business_Name__c: z.string().min(1)
169
+ });
170
+ const gen_schema = schema.merge(SalesforceSchema).merge(honeyPotSchema).superRefine((data, ctx) => {
171
+ if (!isValidHoneyPot(data)) {
172
+ ctx.addIssue({
173
+ code: z.ZodIssueCode.custom,
174
+ message: "fields are not valid."
175
+ });
176
+ }
177
+ });
178
+ const methods = useForm({
179
+ resolver: zodResolver(
180
+ gen_schema,
181
+ {
182
+ async: true
183
+ },
184
+ { mode: "async" }
185
+ ),
186
+ mode: "onChange",
187
+ shouldUnregister: true,
188
+ defaultValues: {
189
+ email: ""
190
+ }
191
+ });
192
+ const {
193
+ handleSubmit,
194
+ register,
195
+ formState: { errors, isValid, isSubmitting }
196
+ } = methods;
197
+ const submitForm = async (data) => {
198
+ await onSubmit(data);
199
+ };
200
+ const variant = getVariant(fullVariant);
201
+ return /* @__PURE__ */ jsx("section", { id, className: clsx(formContainer({ variant })), children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
202
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
203
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
204
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
205
+ description && /* @__PURE__ */ jsx(
206
+ "div",
207
+ {
208
+ className: clsx(
209
+ "text_center",
210
+ form,
211
+ descriptionField({ variant })
212
+ ),
213
+ children: description
214
+ }
215
+ )
216
+ ] }),
217
+ /* @__PURE__ */ jsxs(
218
+ "form",
219
+ {
220
+ className: form,
221
+ onSubmit: async (e) => {
222
+ onValidate && onValidate(e);
223
+ await handleSubmit(submitForm)(e);
224
+ e.preventDefault();
225
+ },
226
+ children: [
227
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
228
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
229
+ Input,
230
+ {
231
+ id: "first_name",
232
+ ...register("first_name", { required: true }),
233
+ label: "First Name",
234
+ sizes: "medium",
235
+ required: true,
236
+ error: !!errors.first_name,
237
+ helperText: errors.first_name?.message,
238
+ variant
239
+ }
240
+ ) }),
241
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
242
+ Input,
243
+ {
244
+ id: "last_name",
245
+ ...register("last_name", { required: true }),
246
+ label: "Last Name",
247
+ sizes: "medium",
248
+ required: true,
249
+ error: !!errors.last_name,
250
+ helperText: errors.last_name?.message,
251
+ variant
252
+ }
253
+ ) }),
254
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
255
+ Input,
256
+ {
257
+ id: "email",
258
+ ...register("email", {
259
+ required: true
260
+ }),
261
+ type: "email",
262
+ label: "Business Email",
263
+ sizes: "medium",
264
+ required: true,
265
+ error: !!errors.email,
266
+ helperText: errors.email?.message,
267
+ variant
268
+ }
269
+ ) }),
270
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
271
+ InputPhone,
272
+ {
273
+ id: "phone",
274
+ ...register("phone", { required: true, maxLength: 12 }),
275
+ label: "Business Phone",
276
+ sizes: "medium",
277
+ type: "tel",
278
+ required: true,
279
+ error: !!errors.phone,
280
+ helperText: errors.phone?.message,
281
+ variant
282
+ }
283
+ ) }),
284
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
285
+ Input,
286
+ {
287
+ id: "Company_NMLS_ID__c",
288
+ ...register("Company_NMLS_ID__c", {
289
+ required: true,
290
+ min: 6,
291
+ max: 7
292
+ }),
293
+ label: "Company NMLS ID",
294
+ sizes: "medium",
295
+ required: true,
296
+ error: !!errors.Company_NMLS_ID__c,
297
+ helperText: errors.Company_NMLS_ID__c?.message,
298
+ variant
299
+ }
300
+ ) }),
301
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
302
+ Input,
303
+ {
304
+ id: "Business_Name__c",
305
+ ...register("Business_Name__c", {
306
+ required: true
307
+ }),
308
+ type: "text",
309
+ label: "Business Name",
310
+ sizes: "medium",
311
+ required: true,
312
+ error: !!errors.Business_Name__c,
313
+ helperText: errors.Business_Name__c?.message,
314
+ variant
315
+ }
316
+ ) }),
317
+ /* @__PURE__ */ jsx(HoneyPot, { register, errors, variant })
318
+ ] }),
319
+ children,
320
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
321
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
322
+ Button,
323
+ {
324
+ color: getVariant(callToAction?.variant),
325
+ as: "button",
326
+ type: "submit",
327
+ disabled: !isValid || isSubmitting,
328
+ children: callToAction?.displayText
329
+ }
330
+ ) })
331
+ ]
332
+ }
333
+ )
334
+ ] }) }) }, id);
335
+ };
336
+ export {
337
+ MortgageWarehouseLending
338
+ };
@@ -25,6 +25,7 @@ export * from './MortgageRate/MortgageRateForm';
25
25
  export * from './MortgageRate/MortgageRateModal';
26
26
  export * from './MortgageRate/MortgageRateQuoteFilters';
27
27
  export * from './MortgageRate/MortgageRateWatch';
28
+ export * from './MortgageWarehouseLending';
28
29
  export * from './QuickPricer';
29
30
  export * from './SalesforceFieldsForm';
30
31
  export * from './ScheduleCall';
@@ -28,6 +28,7 @@ import "../utils/allowedAxosDomains.js";
28
28
  import "../LoadingIndicator/LoadingIndicator.css.js";
29
29
  import "../Interstitial/Interstitial-variants.css.js";
30
30
  import { MortgageRateFilters } from "./MortgageRate/MortgageRateQuoteFilters.js";
31
+ import { MortgageWarehouseLending } from "./MortgageWarehouseLending.js";
31
32
  import { QuickPricer } from "./QuickPricer/QuickPricerForm.js";
32
33
  import { rate_table_title, results_container } from "./QuickPricer/QuickPricerResults.css.js";
33
34
  import { UserInformation } from "./QuickPricer/UserInformation.js";
@@ -61,6 +62,7 @@ export {
61
62
  HoneyPot,
62
63
  MortgageRate,
63
64
  MortgageRateFilters,
65
+ MortgageWarehouseLending,
64
66
  QuickPricer,
65
67
  RateWatchForm,
66
68
  SalesforceFieldsForm,
@@ -5,7 +5,12 @@ const useExitIntentModal = (enabled) => {
5
5
  const modalRef = useRef(null);
6
6
  useEffect(() => {
7
7
  if (!enabled) return;
8
- const STORAGE_KEY = "exitIntentShown";
8
+ const getPageSpecificStorageKey = () => {
9
+ const pathname = window.location.pathname;
10
+ const normalizedPath = pathname.replace(/^\/+|\/+$/g, "").replace(/\//g, "_") || "root";
11
+ return `exitIntentShown_${normalizedPath}`;
12
+ };
13
+ const STORAGE_KEY = getPageSpecificStorageKey();
9
14
  const sessionExpiry = 24 * 60 * 60 * 1e3;
10
15
  const hasShown = () => {
11
16
  const stored = localStorage.getItem(STORAGE_KEY);
@@ -61,7 +61,7 @@ export declare const TableCell: ({ children, as, variant, highlighted, colSpan,
61
61
  is?: string | undefined;
62
62
  exportparts?: string | undefined;
63
63
  part?: string | undefined;
64
- popover?: "" | "auto" | "manual" | undefined;
64
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
65
65
  popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
66
66
  popoverTarget?: string | undefined;
67
67
  onToggle?: import('react').ToggleEventHandler<HTMLTableCellElement> | undefined;
package/dist/main.js CHANGED
@@ -82,6 +82,7 @@ import { RateWatchForm } from "./Forms/MortgageRate/MortgageRateWatch.js";
82
82
  import { LoadingIndicator } from "./LoadingIndicator/index.js";
83
83
  import "./Interstitial/Interstitial-variants.css.js";
84
84
  import { MortgageRateFilters } from "./Forms/MortgageRate/MortgageRateQuoteFilters.js";
85
+ import { MortgageWarehouseLending } from "./Forms/MortgageWarehouseLending.js";
85
86
  import { QuickPricer } from "./Forms/QuickPricer/QuickPricerForm.js";
86
87
  import { rate_table_title, results_container } from "./Forms/QuickPricer/QuickPricerResults.css.js";
87
88
  import { UserInformation } from "./Forms/QuickPricer/UserInformation.js";
@@ -324,6 +325,7 @@ export {
324
325
  MonthlyPaymentLVFCalculator,
325
326
  MortgageRate,
326
327
  MortgageRateFilters,
328
+ MortgageWarehouseLending,
327
329
  default30 as NavBarAAS,
328
330
  default33 as NavBarAFS,
329
331
  default34 as NavBarALT,
@@ -6,7 +6,8 @@ const moreDomains = {
6
6
  "{AXA}": process.env.AXA_URL || "https://www.axosadvisor.com",
7
7
  "{AFS}": process.env.AFS_URL || "https://www.axosfiduciaryservices.com",
8
8
  "{NATIONWIDE}": process.env.NATIOWIDE_URL || "https://www.nationwide.axosbank.com",
9
- "{ENROLLMENT}": process.env.ENROLLMENT_URL || "https://enrollment.axosbank.com",
9
+ "{ENROLLMENT}": process.env.ENROLLMENT_URL || "https://onboard.axos.com",
10
+ "{LEGACYENROLLMENT}": process.env.LEGACY_ENROLLMENT_URL || "https://enrollment.axosbank.com",
10
11
  "{ASSETSURL}": "https://assets.axos.com",
11
12
  "{IMAGEASSETSURL}": "https://images.axos.com",
12
13
  "{ONLINEBANKING}": process.env.ONLINEBANKING_URL || "https://onlinebanking.uat.axosbank.com",
package/package.json CHANGED
@@ -1,133 +1,133 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "1.0.99-dev.15",
5
- "type": "module",
6
- "module": "dist/main.js",
7
- "types": "dist/main.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "sideEffects": [
12
- "dist/assets/**/*.css"
13
- ],
14
- "scripts": {
15
- "dev": "vite",
16
- "build": "tsc --p ./tsconfig.build.json && vite build",
17
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
- "preview": "vite preview",
19
- "prepublishOnly": "npm run build",
20
- "check-types": "tsc --pretty --noEmit",
21
- "check-format": "prettier --check .",
22
- "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
- "format": "prettier --write .",
24
- "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
- "prepare": "husky",
26
- "storybook": "storybook dev -p 6006",
27
- "build-storybook": "storybook build",
28
- "npm:link": "npm run build && npm link"
29
- },
30
- "dependencies": {
31
- "@headlessui/react": "^2.2.0",
32
- "@hookform/resolvers": "^3.10.0",
33
- "@next-safe-action/adapter-react-hook-form": "^2.0.0",
34
- "@react-input/mask": "^1.2.15",
35
- "@react-input/number-format": "^1.1.3",
36
- "@storybook/icons": "^1.3.0",
37
- "@storybook/preview-api": "^8.4.7",
38
- "@types/iframe-resizer": "3.5.13",
39
- "@vanilla-extract/css": "^1.16.1",
40
- "@vanilla-extract/recipes": "^0.5.1",
41
- "antd": "^5.22.5",
42
- "clsx": "^2.1.1",
43
- "framer-motion": "^12.9.2",
44
- "iframe-resizer": "^3.6.6",
45
- "lodash": "^4.17.21",
46
- "moment": "^2.30.1",
47
- "next-safe-action": "^8.0.2",
48
- "react-date-picker": "^11.0.0",
49
- "react-date-range": "^2.0.1",
50
- "react-hook-form": "^7.54.2",
51
- "react-markdown": "^9.0.1",
52
- "react-popper": "^2.3.0",
53
- "react-slick": "^0.30.2",
54
- "react-use": "^17.6.0",
55
- "react-wrap-balancer": "^1.1.1",
56
- "rsuite": "^5.75.0",
57
- "slick-carousel": "^1.8.1",
58
- "typed-css-modules": "^0.9.1",
59
- "vite-plugin-svgr": "^4.3.0",
60
- "zod": "^3.24.1",
61
- "zustand": "^4.5.5"
62
- },
63
- "peerDependencies": {
64
- "@vanilla-extract/css-utils": "^0.1.3",
65
- "@vanilla-extract/recipes": "^0.5.1",
66
- "@vanilla-extract/vite-plugin": "^4.0.3",
67
- "next": "^14.1.4",
68
- "react": "^18.2.0",
69
- "react-date-range": "^2.0.1",
70
- "react-dom": "^18.2.0",
71
- "react-popper": "^2.3.0",
72
- "react-slick": "^0.30.2",
73
- "slick-carousel": "^1.8.1"
74
- },
75
- "devDependencies": {
76
- "@chromatic-com/storybook": "^1.9.0",
77
- "@rollup/plugin-alias": "^5.1.1",
78
- "@storybook/addon-essentials": "^8.4.7",
79
- "@storybook/addon-interactions": "^8.4.7",
80
- "@storybook/addon-links": "^8.4.7",
81
- "@storybook/addon-mdx-gfm": "^8.4.7",
82
- "@storybook/addon-onboarding": "^8.4.7",
83
- "@storybook/addon-themes": "^8.4.7",
84
- "@storybook/blocks": "^8.4.7",
85
- "@storybook/react": "^8.6.14",
86
- "@storybook/react-vite": "^8.4.7",
87
- "@storybook/test": "^8.6.14",
88
- "@svgr/core": "^8.1.0",
89
- "@svgr/plugin-prettier": "^8.1.0",
90
- "@svgr/plugin-svgo": "^8.1.0",
91
- "@types/lodash": "^4.17.17",
92
- "@types/node": "^20.19.0",
93
- "@types/react": "^18.3.23",
94
- "@types/react-date-range": "^1.4.9",
95
- "@types/react-datepicker": "^6.2.0",
96
- "@types/react-dom": "^18.3.7",
97
- "@types/react-slick": "^0.23.13",
98
- "@typescript-eslint/eslint-plugin": "^7.18.0",
99
- "@typescript-eslint/parser": "^7.18.0",
100
- "@vanilla-extract/css-utils": "^0.1.4",
101
- "@vanilla-extract/recipes": "^0.5.5",
102
- "@vanilla-extract/vite-plugin": "^4.0.18",
103
- "@vitejs/plugin-react-swc": "^3.7.2",
104
- "esbuild-vanilla-image-loader": "^0.1.3",
105
- "eslint": "^8.57.1",
106
- "eslint-plugin-react-hooks": "^4.6.2",
107
- "eslint-plugin-react-refresh": "^0.4.16",
108
- "eslint-plugin-storybook": "^0.8.0",
109
- "glob": "^10.4.5",
110
- "husky": "^9.1.7",
111
- "next": "^14.1.4",
112
- "prettier": "3.2.5",
113
- "react": "^18.3.1",
114
- "react-dom": "^18.3.1",
115
- "rollup-plugin-preserve-directives": "^0.4.0",
116
- "rollup-plugin-svg-import": "^3.0.0",
117
- "rollup-plugin-svgo": "^2.0.0",
118
- "storybook": "^8.4.7",
119
- "typescript": "^5.7.2",
120
- "typescript-plugin-css-modules": "^5.1.0",
121
- "vite": "^5.4.11",
122
- "vite-plugin-dts": "^3.9.1",
123
- "vite-plugin-lib-inject-css": "^2.1.1",
124
- "vite-plugin-setting-css-module": "^1.1.4",
125
- "vite-tsconfig-paths": "^4.3.2"
126
- },
127
- "main": "index.js",
128
- "directories": {
129
- "lib": "lib"
130
- },
131
- "author": "axos-web-dev",
132
- "license": "ISC"
133
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "1.0.99-dev.17",
5
+ "type": "module",
6
+ "module": "dist/main.js",
7
+ "types": "dist/main.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "sideEffects": [
12
+ "dist/assets/**/*.css"
13
+ ],
14
+ "scripts": {
15
+ "dev": "vite",
16
+ "build": "tsc --p ./tsconfig.build.json && vite build",
17
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
18
+ "preview": "vite preview",
19
+ "prepublishOnly": "npm run build",
20
+ "check-types": "tsc --pretty --noEmit",
21
+ "check-format": "prettier --check .",
22
+ "check-lint": "eslint . --ext ts --ext tsx --ext js",
23
+ "format": "prettier --write .",
24
+ "test-all": "npm run check-format && npm run check-lint && npm run check-types && npm run build",
25
+ "prepare": "husky",
26
+ "storybook": "storybook dev -p 6006",
27
+ "build-storybook": "storybook build",
28
+ "npm:link": "npm run build && npm link"
29
+ },
30
+ "dependencies": {
31
+ "@headlessui/react": "^2.2.0",
32
+ "@hookform/resolvers": "^3.10.0",
33
+ "@next-safe-action/adapter-react-hook-form": "^2.0.0",
34
+ "@react-input/mask": "^1.2.15",
35
+ "@react-input/number-format": "^1.1.3",
36
+ "@storybook/icons": "^1.3.0",
37
+ "@storybook/preview-api": "^8.4.7",
38
+ "@types/iframe-resizer": "3.5.13",
39
+ "@vanilla-extract/css": "^1.16.1",
40
+ "@vanilla-extract/recipes": "^0.5.1",
41
+ "antd": "^5.22.5",
42
+ "clsx": "^2.1.1",
43
+ "framer-motion": "^12.9.2",
44
+ "iframe-resizer": "^3.6.6",
45
+ "lodash": "^4.17.21",
46
+ "moment": "^2.30.1",
47
+ "next-safe-action": "^8.0.2",
48
+ "react-date-picker": "^11.0.0",
49
+ "react-date-range": "^2.0.1",
50
+ "react-hook-form": "^7.54.2",
51
+ "react-markdown": "^9.0.1",
52
+ "react-popper": "^2.3.0",
53
+ "react-slick": "^0.30.2",
54
+ "react-use": "^17.6.0",
55
+ "react-wrap-balancer": "^1.1.1",
56
+ "rsuite": "^5.75.0",
57
+ "slick-carousel": "^1.8.1",
58
+ "typed-css-modules": "^0.9.1",
59
+ "vite-plugin-svgr": "^4.3.0",
60
+ "zod": "^3.24.1",
61
+ "zustand": "^4.5.5"
62
+ },
63
+ "peerDependencies": {
64
+ "@vanilla-extract/css-utils": "^0.1.3",
65
+ "@vanilla-extract/recipes": "^0.5.1",
66
+ "@vanilla-extract/vite-plugin": "^4.0.3",
67
+ "next": "^14.1.4",
68
+ "react": "^18.2.0",
69
+ "react-date-range": "^2.0.1",
70
+ "react-dom": "^18.2.0",
71
+ "react-popper": "^2.3.0",
72
+ "react-slick": "^0.30.2",
73
+ "slick-carousel": "^1.8.1"
74
+ },
75
+ "devDependencies": {
76
+ "@chromatic-com/storybook": "^1.9.0",
77
+ "@rollup/plugin-alias": "^5.1.1",
78
+ "@storybook/addon-essentials": "^8.4.7",
79
+ "@storybook/addon-interactions": "^8.4.7",
80
+ "@storybook/addon-links": "^8.4.7",
81
+ "@storybook/addon-mdx-gfm": "^8.4.7",
82
+ "@storybook/addon-onboarding": "^8.4.7",
83
+ "@storybook/addon-themes": "^8.4.7",
84
+ "@storybook/blocks": "^8.4.7",
85
+ "@storybook/react": "^8.6.14",
86
+ "@storybook/react-vite": "^8.4.7",
87
+ "@storybook/test": "^8.6.14",
88
+ "@svgr/core": "^8.1.0",
89
+ "@svgr/plugin-prettier": "^8.1.0",
90
+ "@svgr/plugin-svgo": "^8.1.0",
91
+ "@types/lodash": "^4.17.17",
92
+ "@types/node": "^20.19.0",
93
+ "@types/react": "^18.3.23",
94
+ "@types/react-date-range": "^1.4.9",
95
+ "@types/react-datepicker": "^6.2.0",
96
+ "@types/react-dom": "^18.3.7",
97
+ "@types/react-slick": "^0.23.13",
98
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
99
+ "@typescript-eslint/parser": "^7.18.0",
100
+ "@vanilla-extract/css-utils": "^0.1.4",
101
+ "@vanilla-extract/recipes": "^0.5.5",
102
+ "@vanilla-extract/vite-plugin": "^4.0.18",
103
+ "@vitejs/plugin-react-swc": "^3.7.2",
104
+ "esbuild-vanilla-image-loader": "^0.1.3",
105
+ "eslint": "^8.57.1",
106
+ "eslint-plugin-react-hooks": "^4.6.2",
107
+ "eslint-plugin-react-refresh": "^0.4.16",
108
+ "eslint-plugin-storybook": "^0.8.0",
109
+ "glob": "^10.4.5",
110
+ "husky": "^9.1.7",
111
+ "next": "^14.1.4",
112
+ "prettier": "3.2.5",
113
+ "react": "^18.3.1",
114
+ "react-dom": "^18.3.1",
115
+ "rollup-plugin-preserve-directives": "^0.4.0",
116
+ "rollup-plugin-svg-import": "^3.0.0",
117
+ "rollup-plugin-svgo": "^2.0.0",
118
+ "storybook": "^8.4.7",
119
+ "typescript": "^5.7.2",
120
+ "typescript-plugin-css-modules": "^5.1.0",
121
+ "vite": "^5.4.11",
122
+ "vite-plugin-dts": "^3.9.1",
123
+ "vite-plugin-lib-inject-css": "^2.1.1",
124
+ "vite-plugin-setting-css-module": "^1.1.4",
125
+ "vite-tsconfig-paths": "^4.3.2"
126
+ },
127
+ "main": "index.js",
128
+ "directories": {
129
+ "lib": "lib"
130
+ },
131
+ "author": "axos-web-dev",
132
+ "license": "ISC"
133
+ }