@axos-web-dev/shared-components 0.0.152 → 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.
@@ -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);
@@ -151,7 +151,7 @@ const MortgageRate = ({
151
151
  propertyType: z.number({ message: "Property Type is required." }).positive({ message: "Property Type is required." }),
152
152
  occupancy: z.number({ message: "Property Usage is required." }).positive({ message: "Property Usage is required." }),
153
153
  salesPrice: z.number({ message: "Purchase Price is required." }).optional().refine((val) => loanPurpose === 1 ? val != null : true, {
154
- message: "Sales Price is required for purchase"
154
+ message: "Sales Price is required."
155
155
  }).refine(
156
156
  (val) => {
157
157
  if (loanPurpose === 1) {
@@ -214,6 +214,15 @@ const MortgageRate = ({
214
214
  methods.setValue("downPayment", 0);
215
215
  }
216
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]);
217
226
  const {
218
227
  handleSubmit,
219
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 {};
@@ -22,18 +22,16 @@ import { formContainer, headerContainer, headerForm, form, formWrapper, fullRowF
22
22
  import { SalesforceSchema } from "../SalesforceFieldsForm.js";
23
23
  import { LoadingIndicator } from "../../LoadingIndicator/index.js";
24
24
  const MortgageRateFilters = ({
25
- onSubmit = (values) => {
26
- console.log(values);
27
- },
28
- initialLoanPurpose = 1
25
+ formData,
26
+ onSubmit
29
27
  }) => {
30
- const [loanPurpose, setLoanPurpose] = useState(initialLoanPurpose);
28
+ const [loanPurpose, setLoanPurpose] = useState(formData.loanPurpose);
31
29
  const [salesPriceVal, setSalesPriceVal] = useState(0);
32
30
  const [isTypingDownPayment, setIsTypingDownPayment] = useState(false);
33
31
  const [downPaymentPercentage, setDownPaymentPercentage] = useState(10);
34
32
  const [_downPayment, setDownPayment] = useState(0);
35
33
  const schema = z.object({
36
- loanPurpose: z.number({ message: "Loan Purpose is required." }).positive({ message: "Loan Purpose is required." }),
34
+ loanPurpose: z.number({ message: "Loan Purpose is required." }),
37
35
  propertyType: z.number({ message: "Property Type is required." }).positive({ message: "Property Type is required." }),
38
36
  occupancy: z.number({ message: "Property Usage is required." }).positive({ message: "Property Usage is required." }),
39
37
  salesPrice: z.number({ message: "Purchase Price is required." }).optional().refine((val) => loanPurpose === 1 ? val != null : true, {
@@ -64,21 +62,21 @@ const MortgageRateFilters = ({
64
62
  zipCode: z.number().positive({ message: "Zip Code is required." }),
65
63
  appraisedValue: z.number({ message: "Home Price is required." }).optional().refine(
66
64
  (val) => {
67
- if (loanPurpose === 2 && val == null) {
68
- return false;
65
+ if (loanPurpose === 2) {
66
+ return val != null && val >= 5e4 && val <= 25e6;
69
67
  }
70
68
  return true;
71
69
  },
72
- { message: "Appraised Value is required for refinance" }
70
+ { message: "Value must be between $50,000 and $25,000,000." }
73
71
  ),
74
72
  mortgageBalance: z.number({ message: "Mortgage Balance is required." }).optional().refine(
75
73
  (val) => {
76
- if (loanPurpose === 2 && val == null) {
77
- return false;
74
+ if (loanPurpose === 2) {
75
+ return val != null && val >= 5e4 && val <= 25e6;
78
76
  }
79
77
  return true;
80
78
  },
81
- { message: "Mortgage Balance is required for refinance" }
79
+ { message: "Value must be between $50,000 and $25,000,000." }
82
80
  ),
83
81
  cashOut: z.number({ message: "Cash Out is required." }).optional().refine(
84
82
  (val) => {
@@ -184,7 +182,7 @@ const MortgageRateFilters = ({
184
182
  error: !!errors.propertyType,
185
183
  helperText: errors.propertyType?.message,
186
184
  variant: "tertiary",
187
- defaultValue: "Select option",
185
+ defaultValue: formData.propertyType ?? "Select option",
188
186
  children: [
189
187
  /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
190
188
  /* @__PURE__ */ jsx("option", { value: "1", children: "Single Family Home" }),
@@ -210,7 +208,7 @@ const MortgageRateFilters = ({
210
208
  error: !!errors.occupancy,
211
209
  helperText: errors.occupancy?.message,
212
210
  variant: "tertiary",
213
- defaultValue: "Select option",
211
+ defaultValue: formData.occupancy ?? "Select option",
214
212
  children: [
215
213
  /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
216
214
  /* @__PURE__ */ jsx("option", { value: "1", children: "Primary Residence" }),
@@ -253,7 +251,8 @@ const MortgageRateFilters = ({
253
251
  onFocus: (e) => {
254
252
  const currentValue = e.target.value;
255
253
  e.target.value = currentValue.replace(/[$,]/g, "");
256
- }
254
+ },
255
+ defaultValue: formData.salesPrice > 0 ? formatCurrency(formData.salesPrice) : ""
257
256
  }
258
257
  ) }),
259
258
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
@@ -279,7 +278,8 @@ const MortgageRateFilters = ({
279
278
  variant: "tertiary",
280
279
  isTypingDownPayment,
281
280
  setIsTypingDownPayment,
282
- methods
281
+ methods,
282
+ defaultValue: formData.downPayment
283
283
  }
284
284
  ) })
285
285
  ] }),
@@ -288,7 +288,7 @@ const MortgageRateFilters = ({
288
288
  Input,
289
289
  {
290
290
  id: "appraisedValue",
291
- type: "number",
291
+ type: "text",
292
292
  ...register("appraisedValue", {
293
293
  required: true,
294
294
  setValueAs: (value) => parseCurrency(value)
@@ -302,20 +302,28 @@ const MortgageRateFilters = ({
302
302
  onBlur: (e) => {
303
303
  const rawValue = e.target.value;
304
304
  const parsedValue = parseCurrency(rawValue);
305
- methods.setValue("appraisedValue", parsedValue);
306
- e.target.value = formatCurrency(parsedValue);
305
+ if (parsedValue === 0) {
306
+ methods.setError("appraisedValue", {
307
+ type: "manual",
308
+ message: "Purchase Price is required."
309
+ });
310
+ } else {
311
+ methods.setValue("appraisedValue", parsedValue);
312
+ e.target.value = formatCurrency(parsedValue);
313
+ }
307
314
  },
308
315
  onFocus: (e) => {
309
316
  const currentValue = e.target.value;
310
317
  e.target.value = currentValue.replace(/[$,]/g, "");
311
- }
318
+ },
319
+ defaultValue: formData.appraisedValue > 0 ? formatCurrency(formData.appraisedValue) : ""
312
320
  }
313
321
  ) }),
314
322
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
315
323
  Input,
316
324
  {
317
325
  id: "mortgageBalance",
318
- type: "number",
326
+ type: "text",
319
327
  ...register("mortgageBalance", {
320
328
  required: true,
321
329
  setValueAs: (value) => parseCurrency(value)
@@ -329,13 +337,21 @@ const MortgageRateFilters = ({
329
337
  onBlur: (e) => {
330
338
  const rawValue = e.target.value;
331
339
  const parsedValue = parseCurrency(rawValue);
332
- methods.setValue("cashOut", parsedValue);
333
- e.target.value = formatCurrency(parsedValue);
340
+ if (parsedValue === 0) {
341
+ methods.setError("mortgageBalance", {
342
+ type: "manual",
343
+ message: "Purchase Price is required."
344
+ });
345
+ } else {
346
+ methods.setValue("mortgageBalance", parsedValue);
347
+ e.target.value = formatCurrency(parsedValue);
348
+ }
334
349
  },
335
350
  onFocus: (e) => {
336
351
  const currentValue = e.target.value;
337
352
  e.target.value = currentValue.replace(/[$,]/g, "");
338
- }
353
+ },
354
+ defaultValue: formData.mortgageBalance > 0 ? formatCurrency(formData.mortgageBalance) : ""
339
355
  }
340
356
  ) })
341
357
  ] }),
@@ -353,7 +369,7 @@ const MortgageRateFilters = ({
353
369
  error: !!errors.creditScore,
354
370
  helperText: errors.creditScore?.message,
355
371
  variant: "tertiary",
356
- defaultValue: "Select option",
372
+ defaultValue: formData.creditScore ?? "Select option",
357
373
  children: [
358
374
  /* @__PURE__ */ jsx("option", { disabled: true, value: "Select option", children: "Select Option" }),
359
375
  /* @__PURE__ */ jsx("option", { value: "740", children: "740+" }),
@@ -381,7 +397,8 @@ const MortgageRateFilters = ({
381
397
  required: true,
382
398
  error: !!errors.zipCode,
383
399
  helperText: errors.zipCode?.message,
384
- variant: "tertiary"
400
+ variant: "tertiary",
401
+ defaultValue: formData.zipCode
385
402
  }
386
403
  ) }),
387
404
  loanPurpose === 2 ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
@@ -398,7 +415,8 @@ const MortgageRateFilters = ({
398
415
  required: true,
399
416
  error: !!errors.cashOut,
400
417
  helperText: errors.cashOut?.message,
401
- variant: "tertiary"
418
+ variant: "tertiary",
419
+ defaultValue: formData.cashOut
402
420
  }
403
421
  ) }) }) : null
404
422
  ] }),
@@ -45,8 +45,8 @@ export declare const SalesforceSchema: z.ZodObject<{
45
45
  First_UTMMedium__c: z.ZodOptional<z.ZodString>;
46
46
  First_UTMSource__c: z.ZodOptional<z.ZodString>;
47
47
  First_UTMTerm__c: z.ZodOptional<z.ZodString>;
48
- utm_cjdata: z.ZodOptional<z.ZodString>;
49
- utm_cjevent: z.ZodOptional<z.ZodString>;
48
+ Primary_Cjdata__c: z.ZodOptional<z.ZodString>;
49
+ Primary_Cjevent__c: z.ZodOptional<z.ZodString>;
50
50
  Fuutm_cjevennfatll_Web_Source__c: z.ZodOptional<z.ZodString>;
51
51
  First_MicrosoftClickId__c: z.ZodOptional<z.ZodString>;
52
52
  First_GoogleClickId__c: z.ZodOptional<z.ZodString>;
@@ -69,8 +69,8 @@ export declare const SalesforceSchema: z.ZodObject<{
69
69
  First_UTMMedium__c?: string | undefined;
70
70
  First_UTMSource__c?: string | undefined;
71
71
  First_UTMTerm__c?: string | undefined;
72
- utm_cjdata?: string | undefined;
73
- utm_cjevent?: string | undefined;
72
+ Primary_Cjdata__c?: string | undefined;
73
+ Primary_Cjevent__c?: string | undefined;
74
74
  Fuutm_cjevennfatll_Web_Source__c?: string | undefined;
75
75
  First_MicrosoftClickId__c?: string | undefined;
76
76
  First_GoogleClickId__c?: string | undefined;
@@ -93,8 +93,8 @@ export declare const SalesforceSchema: z.ZodObject<{
93
93
  First_UTMMedium__c?: string | undefined;
94
94
  First_UTMSource__c?: string | undefined;
95
95
  First_UTMTerm__c?: string | undefined;
96
- utm_cjdata?: string | undefined;
97
- utm_cjevent?: string | undefined;
96
+ Primary_Cjdata__c?: string | undefined;
97
+ Primary_Cjevent__c?: string | undefined;
98
98
  Fuutm_cjevennfatll_Web_Source__c?: string | undefined;
99
99
  First_MicrosoftClickId__c?: string | undefined;
100
100
  First_GoogleClickId__c?: string | undefined;
@@ -24,8 +24,8 @@ const SalesforceSchema = z.object({
24
24
  First_UTMMedium__c: z.string().optional(),
25
25
  First_UTMSource__c: z.string().optional(),
26
26
  First_UTMTerm__c: z.string().optional(),
27
- utm_cjdata: z.string().optional(),
28
- utm_cjevent: z.string().optional(),
27
+ Primary_Cjdata__c: z.string().optional(),
28
+ Primary_Cjevent__c: z.string().optional(),
29
29
  Fuutm_cjevennfatll_Web_Source__c: z.string().optional(),
30
30
  First_MicrosoftClickId__c: z.string().optional(),
31
31
  First_GoogleClickId__c: z.string().optional(),
@@ -32,7 +32,6 @@ const DownPaymentInput = forwardRef(
32
32
  const value = parseCurrency(e.target.value);
33
33
  setDownPayment(value);
34
34
  setIsTypingDownPayment(true);
35
- console.log("handleDownPaymentChange ? yup");
36
35
  methods.setValue("downPayment", value);
37
36
  methods.trigger("downPayment");
38
37
  if (salesPrice && !isTypingDownPayment) {
@@ -358,6 +358,11 @@
358
358
  width: 50%;
359
359
  }
360
360
  }
361
+ @media screen and (max-width: 500px) {
362
+ .tfms6a1o {
363
+ flex-direction: column;
364
+ }
365
+ }
361
366
  @media screen and (max-width: 800px) {
362
367
  .tfms6a1q {
363
368
  flex-direction: column;
package/package.json CHANGED
@@ -1,124 +1,124 @@
1
- {
2
- "name": "@axos-web-dev/shared-components",
3
- "description": "Axos shared components library for web.",
4
- "version": "0.0.152",
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
- "@hookform/resolvers": "^3.9.0",
32
- "@react-input/mask": "^1.2.11",
33
- "@react-input/number-format": "^1.1.1",
34
- "@storybook/icons": "^1.2.12",
35
- "@storybook/preview-api": "^8.3.5",
36
- "@types/iframe-resizer": "3.5.13",
37
- "@vanilla-extract/css": "^1.16.0",
38
- "@vanilla-extract/recipes": "^0.5.1",
39
- "antd": "^5.21.5",
40
- "clsx": "^2.1.1",
41
- "iframe-resizer": "4.3.11",
42
- "lodash": "^4.17.21",
43
- "moment": "^2.30.1",
44
- "react-date-picker": "^11.0.0",
45
- "react-hook-form": "^7.53.1",
46
- "react-markdown": "^9.0.1",
47
- "react-slick": "^0.30.2",
48
- "react-use": "^17.5.1",
49
- "react-wrap-balancer": "^1.1.1",
50
- "rsuite": "^5.72.0",
51
- "slick-carousel": "^1.8.1",
52
- "typed-css-modules": "^0.9.1",
53
- "vite-plugin-svgr": "^4.2.0",
54
- "zod": "^3.23.8",
55
- "zustand": "^4.5.5"
56
- },
57
- "peerDependencies": {
58
- "@vanilla-extract/css-utils": "^0.1.3",
59
- "@vanilla-extract/recipes": "^0.5.1",
60
- "@vanilla-extract/vite-plugin": "^4.0.3",
61
- "next": "^14.1.4",
62
- "react": "^18.2.0",
63
- "react-dom": "^18.2.0",
64
- "react-slick": "^0.30.2",
65
- "slick-carousel": "^1.8.1"
66
- },
67
- "devDependencies": {
68
- "@chromatic-com/storybook": "^1.8.0",
69
- "@rollup/plugin-alias": "^5.1.0",
70
- "@storybook/addon-essentials": "^8.2.9",
71
- "@storybook/addon-interactions": "^8.2.9",
72
- "@storybook/addon-links": "^8.2.9",
73
- "@storybook/addon-mdx-gfm": "^8.2.9",
74
- "@storybook/addon-onboarding": "^8.2.9",
75
- "@storybook/addon-themes": "^8.2.9",
76
- "@storybook/blocks": "^8.2.9",
77
- "@storybook/react": "^8.2.9",
78
- "@storybook/react-vite": "^8.2.9",
79
- "@storybook/test": "^8.2.9",
80
- "@svgr/core": "^8.1.0",
81
- "@svgr/plugin-prettier": "^8.1.0",
82
- "@svgr/plugin-svgo": "^8.1.0",
83
- "@types/lodash": "^4.17.10",
84
- "@types/node": "^20.16.10",
85
- "@types/react": "^18.3.11",
86
- "@types/react-datepicker": "^6.2.0",
87
- "@types/react-dom": "^18.3.0",
88
- "@types/react-slick": "^0.23.13",
89
- "@typescript-eslint/eslint-plugin": "^7.9.0",
90
- "@typescript-eslint/parser": "^7.9.0",
91
- "@vanilla-extract/css-utils": "^0.1.4",
92
- "@vanilla-extract/recipes": "^0.5.5",
93
- "@vanilla-extract/vite-plugin": "^4.0.15",
94
- "@vitejs/plugin-react-swc": "^3.7.0",
95
- "esbuild-vanilla-image-loader": "^0.1.3",
96
- "eslint": "^8.57.0",
97
- "eslint-plugin-react-hooks": "^4.6.2",
98
- "eslint-plugin-react-refresh": "^0.4.7",
99
- "eslint-plugin-storybook": "^0.8.0",
100
- "glob": "^10.4.5",
101
- "husky": "^9.1.6",
102
- "next": "^14.1.4",
103
- "prettier": "3.2.5",
104
- "react": "^18.3.1",
105
- "react-dom": "^18.3.1",
106
- "rollup-plugin-preserve-directives": "^0.4.0",
107
- "rollup-plugin-svg-import": "^3.0.0",
108
- "rollup-plugin-svgo": "^2.0.0",
109
- "storybook": "^8.2.9",
110
- "typescript": "^5.6.2",
111
- "typescript-plugin-css-modules": "^5.1.0",
112
- "vite": "^5.4.9",
113
- "vite-plugin-dts": "^3.9.1",
114
- "vite-plugin-lib-inject-css": "^2.1.1",
115
- "vite-plugin-setting-css-module": "^1.1.4",
116
- "vite-tsconfig-paths": "^4.3.2"
117
- },
118
- "main": "index.js",
119
- "directories": {
120
- "lib": "lib"
121
- },
122
- "author": "axos-web-dev",
123
- "license": "ISC"
124
- }
1
+ {
2
+ "name": "@axos-web-dev/shared-components",
3
+ "description": "Axos shared components library for web.",
4
+ "version": "0.0.153",
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
+ "@hookform/resolvers": "^3.9.0",
32
+ "@react-input/mask": "^1.2.11",
33
+ "@react-input/number-format": "^1.1.1",
34
+ "@storybook/icons": "^1.2.12",
35
+ "@storybook/preview-api": "^8.3.5",
36
+ "@types/iframe-resizer": "3.5.13",
37
+ "@vanilla-extract/css": "^1.16.0",
38
+ "@vanilla-extract/recipes": "^0.5.1",
39
+ "antd": "^5.21.5",
40
+ "clsx": "^2.1.1",
41
+ "iframe-resizer": "4.3.11",
42
+ "lodash": "^4.17.21",
43
+ "moment": "^2.30.1",
44
+ "react-date-picker": "^11.0.0",
45
+ "react-hook-form": "^7.53.1",
46
+ "react-markdown": "^9.0.1",
47
+ "react-slick": "^0.30.2",
48
+ "react-use": "^17.5.1",
49
+ "react-wrap-balancer": "^1.1.1",
50
+ "rsuite": "^5.72.0",
51
+ "slick-carousel": "^1.8.1",
52
+ "typed-css-modules": "^0.9.1",
53
+ "vite-plugin-svgr": "^4.2.0",
54
+ "zod": "^3.23.8",
55
+ "zustand": "^4.5.5"
56
+ },
57
+ "peerDependencies": {
58
+ "@vanilla-extract/css-utils": "^0.1.3",
59
+ "@vanilla-extract/recipes": "^0.5.1",
60
+ "@vanilla-extract/vite-plugin": "^4.0.3",
61
+ "next": "^14.1.4",
62
+ "react": "^18.2.0",
63
+ "react-dom": "^18.2.0",
64
+ "react-slick": "^0.30.2",
65
+ "slick-carousel": "^1.8.1"
66
+ },
67
+ "devDependencies": {
68
+ "@chromatic-com/storybook": "^1.8.0",
69
+ "@rollup/plugin-alias": "^5.1.0",
70
+ "@storybook/addon-essentials": "^8.2.9",
71
+ "@storybook/addon-interactions": "^8.2.9",
72
+ "@storybook/addon-links": "^8.2.9",
73
+ "@storybook/addon-mdx-gfm": "^8.2.9",
74
+ "@storybook/addon-onboarding": "^8.2.9",
75
+ "@storybook/addon-themes": "^8.2.9",
76
+ "@storybook/blocks": "^8.2.9",
77
+ "@storybook/react": "^8.2.9",
78
+ "@storybook/react-vite": "^8.2.9",
79
+ "@storybook/test": "^8.2.9",
80
+ "@svgr/core": "^8.1.0",
81
+ "@svgr/plugin-prettier": "^8.1.0",
82
+ "@svgr/plugin-svgo": "^8.1.0",
83
+ "@types/lodash": "^4.17.10",
84
+ "@types/node": "^20.16.10",
85
+ "@types/react": "^18.3.11",
86
+ "@types/react-datepicker": "^6.2.0",
87
+ "@types/react-dom": "^18.3.0",
88
+ "@types/react-slick": "^0.23.13",
89
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
90
+ "@typescript-eslint/parser": "^7.9.0",
91
+ "@vanilla-extract/css-utils": "^0.1.4",
92
+ "@vanilla-extract/recipes": "^0.5.5",
93
+ "@vanilla-extract/vite-plugin": "^4.0.15",
94
+ "@vitejs/plugin-react-swc": "^3.7.0",
95
+ "esbuild-vanilla-image-loader": "^0.1.3",
96
+ "eslint": "^8.57.0",
97
+ "eslint-plugin-react-hooks": "^4.6.2",
98
+ "eslint-plugin-react-refresh": "^0.4.7",
99
+ "eslint-plugin-storybook": "^0.8.0",
100
+ "glob": "^10.4.5",
101
+ "husky": "^9.1.6",
102
+ "next": "^14.1.4",
103
+ "prettier": "3.2.5",
104
+ "react": "^18.3.1",
105
+ "react-dom": "^18.3.1",
106
+ "rollup-plugin-preserve-directives": "^0.4.0",
107
+ "rollup-plugin-svg-import": "^3.0.0",
108
+ "rollup-plugin-svgo": "^2.0.0",
109
+ "storybook": "^8.2.9",
110
+ "typescript": "^5.6.2",
111
+ "typescript-plugin-css-modules": "^5.1.0",
112
+ "vite": "^5.4.9",
113
+ "vite-plugin-dts": "^3.9.1",
114
+ "vite-plugin-lib-inject-css": "^2.1.1",
115
+ "vite-plugin-setting-css-module": "^1.1.4",
116
+ "vite-tsconfig-paths": "^4.3.2"
117
+ },
118
+ "main": "index.js",
119
+ "directories": {
120
+ "lib": "lib"
121
+ },
122
+ "author": "axos-web-dev",
123
+ "license": "ISC"
124
+ }