@axos-web-dev/shared-components 1.0.77-patch.16 → 1.0.77-patch.18

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 })
@@ -207,7 +207,15 @@ const AxosFooterSiteMap = ({
207
207
  children: "Auto Loans"
208
208
  }
209
209
  ) }),
210
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "https://lavictoirefinance.com/", children: "Marine Loans" }) })
210
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
211
+ "a",
212
+ {
213
+ href: findMoreAxosDomains(
214
+ "{AXOSBANK}/personal/borrow/marine-loans"
215
+ ),
216
+ children: "Marine Loans"
217
+ }
218
+ ) })
211
219
  ] }),
212
220
  /* @__PURE__ */ jsxs("ul", { children: [
213
221
  /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
@@ -615,7 +623,15 @@ const AxosFooterSiteMap = ({
615
623
  children: "Auto Loans"
616
624
  }
617
625
  ) }),
618
- /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: "https://lavictoirefinance.com/", children: "Marine Loans" }) })
626
+ /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
627
+ "a",
628
+ {
629
+ href: findMoreAxosDomains(
630
+ "{AXOSBANK}/personal/borrow/marine-loans"
631
+ ),
632
+ children: "Marine Loans"
633
+ }
634
+ ) })
619
635
  ] }),
620
636
  /* @__PURE__ */ jsxs("ul", { children: [
621
637
  /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
@@ -8,6 +8,10 @@ export type ContactUsLaVictoireInputs = {
8
8
  message: string;
9
9
  checkbox: boolean;
10
10
  };
11
- export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, dealerCheckbox, }: FormProps & {
11
+ export declare const ContactUsLVF: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, dealerCheckbox, contextData, }: FormProps & {
12
12
  dealerCheckbox?: boolean;
13
+ contextData?: {
14
+ pageName?: string;
15
+ pageUri?: string;
16
+ };
13
17
  }) => import("react/jsx-runtime").JSX.Element;
@@ -32,6 +32,7 @@ import clsx from "clsx";
32
32
  import { useForm, FormProvider } from "react-hook-form";
33
33
  import * as z from "zod";
34
34
  import { iconForm, headerContainer, headerForm, form, descriptionField, fullRowForm, formWrapper, disclosureForm, actions, formContainer } from "./Forms.css.js";
35
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
35
36
  const ContactUsLVF = ({
36
37
  icon = false,
37
38
  children,
@@ -45,7 +46,8 @@ const ContactUsLVF = ({
45
46
  callToAction,
46
47
  validateEmail,
47
48
  id,
48
- dealerCheckbox = true
49
+ dealerCheckbox = true,
50
+ contextData
49
51
  }) => {
50
52
  const schema = z.object({
51
53
  firstname: z.string().regex(/^[a-zA-Z]*(?:[a-zA-Z][a-zA-Z'-]*\s{0,1}){2,}$/g, {
@@ -76,8 +78,9 @@ const ContactUsLVF = ({
76
78
  message: z.string().min(1, { message: "Please complete this required field." }),
77
79
  checkbox: z.boolean()
78
80
  });
81
+ const gen_schema = schema.merge(SalesforceSchema);
79
82
  const methods = useForm({
80
- resolver: zodResolver(schema, {
83
+ resolver: zodResolver(gen_schema, {
81
84
  async: true
82
85
  }),
83
86
  mode: "all",
@@ -96,9 +99,9 @@ const ContactUsLVF = ({
96
99
  return { name: key, value: data[key] };
97
100
  }
98
101
  }).filter((el) => el !== void 0);
99
- const contextData = {
100
- pageName: "La Victoire Finance",
101
- pageUri: "https://lavictoirefinance.com/contact-us"
102
+ const finalContextData = {
103
+ pageName: contextData?.pageName || "La Victoire Finance",
104
+ pageUri: contextData?.pageUri || "https://lavictoirefinance.com/contact-us"
102
105
  };
103
106
  const legalConsentData = {
104
107
  consent: {
@@ -115,7 +118,7 @@ const ContactUsLVF = ({
115
118
  };
116
119
  await onSubmit({
117
120
  fields: formattedFieldsData,
118
- context: contextData,
121
+ context: finalContextData,
119
122
  legalConsentOptions: legalConsentData,
120
123
  form: "contactUSLVF"
121
124
  });
@@ -381,7 +381,7 @@ const QuickPricer = ({
381
381
  helperText: errors.Pledged_Assets__c?.message,
382
382
  variant,
383
383
  value: 1,
384
- children: "Pledget Assets"
384
+ children: "Pledged Assets"
385
385
  }
386
386
  ),
387
387
  /* @__PURE__ */ jsx(
@@ -13,6 +13,7 @@ export interface SalesforceFields {
13
13
  experience_id: string;
14
14
  hem: string;
15
15
  identity: string;
16
+ leadPriority: string;
16
17
  }
17
18
  export interface SalesforceInputs {
18
19
  Brand_SFDC2__c: string;
@@ -46,6 +47,7 @@ export interface SalesforceInputs {
46
47
  experience_id: string;
47
48
  hem: string;
48
49
  identity: string;
50
+ LeadPriority__c: string;
49
51
  }
50
52
  export declare const SalesforceSchema: z.ZodObject<{
51
53
  Brand_SFDC2__c: z.ZodOptional<z.ZodString>;
@@ -71,6 +73,7 @@ export declare const SalesforceSchema: z.ZodObject<{
71
73
  First_UTMIdentity__c: z.ZodOptional<z.ZodString>;
72
74
  First_UTMExperience_Id__c: z.ZodOptional<z.ZodString>;
73
75
  Full_Web_Source__c: z.ZodOptional<z.ZodString>;
76
+ LeadPriority__c: z.ZodOptional<z.ZodString>;
74
77
  }, "strip", z.ZodTypeAny, {
75
78
  Brand_SFDC2__c?: string | undefined;
76
79
  Branch_SFDC2__c?: string | undefined;
@@ -95,6 +98,7 @@ export declare const SalesforceSchema: z.ZodObject<{
95
98
  First_UTMIdentity__c?: string | undefined;
96
99
  First_UTMExperience_Id__c?: string | undefined;
97
100
  Full_Web_Source__c?: string | undefined;
101
+ LeadPriority__c?: string | undefined;
98
102
  }, {
99
103
  Brand_SFDC2__c?: string | undefined;
100
104
  Branch_SFDC2__c?: string | undefined;
@@ -119,6 +123,7 @@ export declare const SalesforceSchema: z.ZodObject<{
119
123
  First_UTMIdentity__c?: string | undefined;
120
124
  First_UTMExperience_Id__c?: string | undefined;
121
125
  Full_Web_Source__c?: string | undefined;
126
+ LeadPriority__c?: string | undefined;
122
127
  }>;
123
128
  export interface QueryParams {
124
129
  [str: string]: string;
@@ -33,7 +33,8 @@ const SalesforceSchema = z.object({
33
33
  First_UTMHem__c: z.string().optional(),
34
34
  First_UTMIdentity__c: z.string().optional(),
35
35
  First_UTMExperience_Id__c: z.string().optional(),
36
- Full_Web_Source__c: z.string().optional()
36
+ Full_Web_Source__c: z.string().optional(),
37
+ LeadPriority__c: z.string().optional()
37
38
  });
38
39
  const SalesforceFieldsForm = memo(function SaleforceFieldForm({
39
40
  salesforceFields,
@@ -87,6 +88,15 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
87
88
  })
88
89
  }
89
90
  ),
91
+ /* @__PURE__ */ jsx(
92
+ "input",
93
+ {
94
+ type: "hidden",
95
+ ...register("LeadPriority__c", {
96
+ value: salesforceFields?.leadPriority
97
+ })
98
+ }
99
+ ),
90
100
  /* @__PURE__ */ jsx("input", { type: "hidden", ...register("lead_source", { value: "Web RMI" }) }),
91
101
  /* @__PURE__ */ jsx(
92
102
  "input",
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.77-patch.16",
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.77-patch.18",
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
+ }