@axos-web-dev/shared-components 0.0.123 → 0.0.125

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.
@@ -1,7 +1,7 @@
1
1
  /* empty css */
2
- /* empty css */
3
- /* empty css */
4
2
  /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
5
  /* empty css */
6
6
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
7
7
  var comparison = createRuntimeFn({ defaultClassName: "_198o0lt0", variantClassNames: { variant: { primary: "_198o0lt1", secondary: "_198o0lt2", tertiary: "_198o0lt3", quaternary: "_198o0lt4" } }, defaultVariants: {}, compoundVariants: [] });
@@ -15,4 +15,4 @@ export type CommercialDepositsInputs = {
15
15
  Others_Detail__c: string;
16
16
  Product_and_servicing_needs__c: string;
17
17
  };
18
- export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const CommercialDeposits: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -42,18 +42,17 @@ const CommercialDeposits = ({
42
42
  headline,
43
43
  description,
44
44
  callToAction,
45
- // validateEmail,
45
+ validateEmail,
46
46
  id
47
47
  }) => {
48
48
  const schema = z.object({
49
- first_name: z.string({ message: "First name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
50
- message: "First name is required."
49
+ first_name: z.string({ message: "First Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
50
+ message: "First Name is required."
51
51
  }).trim().min(1, { message: "First Name is required." }),
52
52
  last_name: z.string({ message: "Last Name is required." }).regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
53
53
  message: "Last Name is required."
54
54
  }).trim().min(1, { message: "Last Name is required." }),
55
- email: z.string().email({ message: "Email is required." }),
56
- // .refine(async (val: string) => await validateEmail(val)),
55
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
57
56
  phone: z.string({ message: "Business Phone is required." }).regex(/[\d-]{10}/, { message: "Business Phone is required." }).min(10, { message: "Business Phone is required." }).max(12, { message: "Business Phone is required." }).transform((val, ctx) => {
58
57
  const removeDashes = val.replace(/-/gi, "");
59
58
  if (removeDashes.length !== 10) {
@@ -73,8 +72,8 @@ const CommercialDeposits = ({
73
72
  Treasury_Management__c: z.boolean(),
74
73
  Commercial_Credit_Card__c: z.boolean(),
75
74
  Lending__c: z.boolean(),
76
- Others__c: z.boolean(),
77
- Others_Detail__c: z.string(),
75
+ Others__c: z.boolean().optional(),
76
+ Others_Detail__c: z.string().optional(),
78
77
  Product_and_servicing_needs__c: z.string()
79
78
  });
80
79
  const methods = useForm({
@@ -56,16 +56,20 @@ const CpraRequest = ({
56
56
  Previously_Employed_by_Axos_Financial: z.string(),
57
57
  Ever_Applied_for_Employment_with_Axos_Financial: z.string(),
58
58
  Axos_Financial_interaction_outlet: z.string(),
59
- Street_Address: z.string(),
59
+ Street_Address: z.string().min(1, { message: "Street address is required." }),
60
60
  City: z.string(),
61
61
  State_: z.string(),
62
- Zip_Code: z.string().regex(/^\d{5}(-\d{4})?$/, { message: "Invalid Zip Code format." }),
62
+ Zip_Code: z.string().trim().max(20).min(1, { message: "Zip code is required." }),
63
63
  Contact_Method: z.string(),
64
64
  DOB: z.string(),
65
- First_Name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
66
- Last_Name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
65
+ First_Name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
66
+ message: "First Name is required."
67
+ }).trim().min(1, { message: "First Name is required." }),
68
+ Last_Name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g, {
69
+ message: "Last Name is required."
70
+ }).trim().min(1, { message: "Last Name is required." }),
67
71
  email: z.string().email({ message: "Email is required." }),
68
- Telephone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
72
+ Telephone: z.string().regex(/[\d-]{10}/, { message: "Phone is required." }).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
69
73
  const removeDashes = val.replace(/-/gi, "");
70
74
  if (removeDashes.length !== 10) {
71
75
  ctx.addIssue({
@@ -503,7 +507,6 @@ const CpraRequest = ({
503
507
  ...register("First_Name", { required: true }),
504
508
  label: "First Name",
505
509
  sizes: "medium",
506
- placeholder: "First Name",
507
510
  required: true,
508
511
  error: !!errors.First_Name,
509
512
  helperText: errors.First_Name?.message,
@@ -600,63 +603,64 @@ const CpraRequest = ({
600
603
  ...register("State_", {
601
604
  required: true
602
605
  }),
603
- label: "Assets Under Management",
606
+ label: "State",
604
607
  sizes: "medium",
605
608
  required: true,
606
609
  error: !!errors.State_,
607
610
  helperText: errors.State_?.message,
608
611
  variant,
609
612
  children: [
610
- /* @__PURE__ */ jsx("option", { value: "Alabama - AL", children: "Alabama - AL" }),
611
- /* @__PURE__ */ jsx("option", { value: "Alaska - AK", children: "Alaska - AK" }),
612
- /* @__PURE__ */ jsx("option", { value: "Arizona - AZ", children: "Arizona - AZ" }),
613
- /* @__PURE__ */ jsx("option", { value: "Arkansas - AR", children: "Arkansas - AR" }),
614
- /* @__PURE__ */ jsx("option", { value: "California - CA", children: "California - CA" }),
615
- /* @__PURE__ */ jsx("option", { value: "Colorado - CO", children: "Colorado - CO" }),
616
- /* @__PURE__ */ jsx("option", { value: "Connecticut - CT", children: "Connecticut - CT" }),
617
- /* @__PURE__ */ jsx("option", { value: "Delaware - DE", children: "Delaware - DE" }),
618
- /* @__PURE__ */ jsx("option", { value: "Florida - FL", children: "Florida - FL" }),
619
- /* @__PURE__ */ jsx("option", { value: "Georgia - GA", children: "Georgia - GA" }),
620
- /* @__PURE__ */ jsx("option", { value: "Hawaii - HI", children: "Hawaii - HI" }),
621
- /* @__PURE__ */ jsx("option", { value: "Idaho - ID", children: "Idaho - ID" }),
622
- /* @__PURE__ */ jsx("option", { value: "Illinois - IL", children: "Illinois - IL" }),
623
- /* @__PURE__ */ jsx("option", { value: "Indiana - IN", children: "Indiana - IN" }),
624
- /* @__PURE__ */ jsx("option", { value: "Iowa - IA", children: "Iowa - IA" }),
625
- /* @__PURE__ */ jsx("option", { value: "Kansas - KS", children: "Kansas - KS" }),
626
- /* @__PURE__ */ jsx("option", { value: "Kentucky - KY", children: "Kentucky - KY" }),
627
- /* @__PURE__ */ jsx("option", { value: "Louisiana - LA", children: "Louisiana - LA" }),
628
- /* @__PURE__ */ jsx("option", { value: "Maine - ME", children: "Maine - ME" }),
629
- /* @__PURE__ */ jsx("option", { value: "Maryland - MD", children: "Maryland - MD" }),
630
- /* @__PURE__ */ jsx("option", { value: "Massachusetts - MA", children: "Massachusetts - MA" }),
631
- /* @__PURE__ */ jsx("option", { value: "Michigan - MI", children: "Michigan - MI" }),
632
- /* @__PURE__ */ jsx("option", { value: "Minnesota - MN", children: "Minnesota - MN" }),
633
- /* @__PURE__ */ jsx("option", { value: "Mississippi - MS", children: "Mississippi - MS" }),
634
- /* @__PURE__ */ jsx("option", { value: "Missouri - MO", children: "Missouri - MO" }),
635
- /* @__PURE__ */ jsx("option", { value: "Montana - MT", children: "Montana - MT" }),
636
- /* @__PURE__ */ jsx("option", { value: "Nebraska - NE", children: "Nebraska - NE" }),
637
- /* @__PURE__ */ jsx("option", { value: "Nevada - NV", children: "Nevada - NV" }),
638
- /* @__PURE__ */ jsx("option", { value: "New Hampshire - NH", children: "New Hampshire - NH" }),
639
- /* @__PURE__ */ jsx("option", { value: "New Jersey - NJ", children: "New Jersey - NJ" }),
640
- /* @__PURE__ */ jsx("option", { value: "New Mexico - NM", children: "New Mexico - NM" }),
641
- /* @__PURE__ */ jsx("option", { value: "New York - NY", children: "New York - NY" }),
642
- /* @__PURE__ */ jsx("option", { value: "North Carolina - NC", children: "North Carolina - NC" }),
643
- /* @__PURE__ */ jsx("option", { value: "North Dakota - ND", children: "North Dakota - ND" }),
644
- /* @__PURE__ */ jsx("option", { value: "Ohio - OH", children: "Ohio - OH" }),
645
- /* @__PURE__ */ jsx("option", { value: "Oklahoma - OK", children: "Oklahoma - OK" }),
646
- /* @__PURE__ */ jsx("option", { value: "Oregon - OR", children: "Oregon - OR" }),
647
- /* @__PURE__ */ jsx("option", { value: "Pennsylvania - PA", children: "Pennsylvania - PA" }),
648
- /* @__PURE__ */ jsx("option", { value: "Rhode Island - RI", children: "Rhode Island - RI" }),
649
- /* @__PURE__ */ jsx("option", { value: "South Carolina - SC", children: "South Carolina - SC" }),
650
- /* @__PURE__ */ jsx("option", { value: "South Dakota - SD", children: "South Dakota - SD" }),
651
- /* @__PURE__ */ jsx("option", { value: "Tennessee - TN", children: "Tennessee - TN" }),
652
- /* @__PURE__ */ jsx("option", { value: "Texas - TX", children: "Texas - TX" }),
653
- /* @__PURE__ */ jsx("option", { value: "Utah - UT", children: "Utah - UT" }),
654
- /* @__PURE__ */ jsx("option", { value: "Vermont - VT", children: "Vermont - VT" }),
655
- /* @__PURE__ */ jsx("option", { value: "Virginia - VA", children: "Virginia - VA" }),
656
- /* @__PURE__ */ jsx("option", { value: "Washington - WA", children: "Washington - WA" }),
657
- /* @__PURE__ */ jsx("option", { value: "West Virginia - WV", children: "West Virginia - WV" }),
658
- /* @__PURE__ */ jsx("option", { value: "Wisconsin - WI", children: "Wisconsin - WI" }),
659
- /* @__PURE__ */ jsx("option", { value: "Wyoming - WY", children: "Wyoming - WY" })
613
+ /* @__PURE__ */ jsx("option", { value: "" }),
614
+ /* @__PURE__ */ jsx("option", { value: "AL", children: "Alabama - AL" }),
615
+ /* @__PURE__ */ jsx("option", { value: "AK", children: "Alaska - AK" }),
616
+ /* @__PURE__ */ jsx("option", { value: "AZ", children: "Arizona - AZ" }),
617
+ /* @__PURE__ */ jsx("option", { value: "AR", children: "Arkansas - AR" }),
618
+ /* @__PURE__ */ jsx("option", { value: "CA", children: "California - CA" }),
619
+ /* @__PURE__ */ jsx("option", { value: "CO", children: "Colorado - CO" }),
620
+ /* @__PURE__ */ jsx("option", { value: "CT", children: "Connecticut - CT" }),
621
+ /* @__PURE__ */ jsx("option", { value: "DE", children: "Delaware - DE" }),
622
+ /* @__PURE__ */ jsx("option", { value: "FL", children: "Florida - FL" }),
623
+ /* @__PURE__ */ jsx("option", { value: "GA", children: "Georgia - GA" }),
624
+ /* @__PURE__ */ jsx("option", { value: "HI", children: "Hawaii - HI" }),
625
+ /* @__PURE__ */ jsx("option", { value: "ID", children: "Idaho - ID" }),
626
+ /* @__PURE__ */ jsx("option", { value: "IL", children: "Illinois - IL" }),
627
+ /* @__PURE__ */ jsx("option", { value: "IN", children: "Indiana - IN" }),
628
+ /* @__PURE__ */ jsx("option", { value: "IA", children: "Iowa - IA" }),
629
+ /* @__PURE__ */ jsx("option", { value: "KS", children: "Kansas - KS" }),
630
+ /* @__PURE__ */ jsx("option", { value: "KY", children: "Kentucky - KY" }),
631
+ /* @__PURE__ */ jsx("option", { value: "LA", children: "Louisiana - LA" }),
632
+ /* @__PURE__ */ jsx("option", { value: "ME", children: "Maine - ME" }),
633
+ /* @__PURE__ */ jsx("option", { value: "MD", children: "Maryland - MD" }),
634
+ /* @__PURE__ */ jsx("option", { value: "MA", children: "Massachusetts - MA" }),
635
+ /* @__PURE__ */ jsx("option", { value: "MI", children: "Michigan - MI" }),
636
+ /* @__PURE__ */ jsx("option", { value: "MN", children: "Minnesota - MN" }),
637
+ /* @__PURE__ */ jsx("option", { value: "MS", children: "Mississippi - MS" }),
638
+ /* @__PURE__ */ jsx("option", { value: "MO", children: "Missouri - MO" }),
639
+ /* @__PURE__ */ jsx("option", { value: "MT", children: "Montana - MT" }),
640
+ /* @__PURE__ */ jsx("option", { value: "NE", children: "Nebraska - NE" }),
641
+ /* @__PURE__ */ jsx("option", { value: "NV", children: "Nevada - NV" }),
642
+ /* @__PURE__ */ jsx("option", { value: "NH", children: "New Hampshire - NH" }),
643
+ /* @__PURE__ */ jsx("option", { value: "NJ", children: "New Jersey - NJ" }),
644
+ /* @__PURE__ */ jsx("option", { value: "NM", children: "New Mexico - NM" }),
645
+ /* @__PURE__ */ jsx("option", { value: "NY", children: "New York - NY" }),
646
+ /* @__PURE__ */ jsx("option", { value: "NC", children: "North Carolina - NC" }),
647
+ /* @__PURE__ */ jsx("option", { value: "ND", children: "North Dakota - ND" }),
648
+ /* @__PURE__ */ jsx("option", { value: "OH", children: "Ohio - OH" }),
649
+ /* @__PURE__ */ jsx("option", { value: "OK", children: "Oklahoma - OK" }),
650
+ /* @__PURE__ */ jsx("option", { value: "OR", children: "Oregon - OR" }),
651
+ /* @__PURE__ */ jsx("option", { value: "PA", children: "Pennsylvania - PA" }),
652
+ /* @__PURE__ */ jsx("option", { value: "RI", children: "Rhode Island - RI" }),
653
+ /* @__PURE__ */ jsx("option", { value: "SC", children: "South Carolina - SC" }),
654
+ /* @__PURE__ */ jsx("option", { value: "SD", children: "South Dakota - SD" }),
655
+ /* @__PURE__ */ jsx("option", { value: "TN", children: "Tennessee - TN" }),
656
+ /* @__PURE__ */ jsx("option", { value: "TX", children: "Texas - TX" }),
657
+ /* @__PURE__ */ jsx("option", { value: "UT", children: "Utah - UT" }),
658
+ /* @__PURE__ */ jsx("option", { value: "VT", children: "Vermont - VT" }),
659
+ /* @__PURE__ */ jsx("option", { value: "VA", children: "Virginia - VA" }),
660
+ /* @__PURE__ */ jsx("option", { value: "WA", children: "Washington - WA" }),
661
+ /* @__PURE__ */ jsx("option", { value: "WV", children: "West Virginia - WV" }),
662
+ /* @__PURE__ */ jsx("option", { value: "WI", children: "Wisconsin - WI" }),
663
+ /* @__PURE__ */ jsx("option", { value: "WY", children: "Wyoming - WY" })
660
664
  ]
661
665
  }
662
666
  ) }),
@@ -1,8 +1,8 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
- /* empty css */
4
- /* empty css */
5
3
  /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
@@ -1,7 +1,7 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  /* empty css */
3
4
  /* empty css */
4
- /* empty css */
5
5
  /* empty css */
6
6
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
7
7
  var logout = "_1ye8k3f0";
@@ -1,7 +1,7 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  /* empty css */
3
4
  /* empty css */
4
- /* empty css */
5
5
  /* empty css */
6
6
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
7
7
  var billboard = createRuntimeFn({ defaultClassName: "_1m7m2a0", variantClassNames: { variant: { primary: "_1m7m2a1", secondary: "_1m7m2a2", tertiary: "_1m7m2a3", quaternary: "_1m7m2a4" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,6 +1,6 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  /* empty css */
3
- /* empty css */
4
4
  /* empty css */
5
5
  import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
6
6
  var iconInput = createRuntimeFn({ defaultClassName: "_18du0la0", variantClassNames: { size: { small: "_18du0la1", medium: "_18du0la2", large: "_18du0la3" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,7 +1,7 @@
1
+ /* empty css */
1
2
  /* empty css */
2
3
  /* empty css */
3
4
  /* empty css */
4
- /* empty css */
5
5
  /* empty css */
6
6
  var selector_section = "_13y9ptj0";
7
7
  var selector_link = "_13y9ptj1";
@@ -288,14 +288,7 @@
288
288
  padding: 6px;
289
289
  }
290
290
  }
291
- @media screen and (max-width: 768px) and (min-width: 604px) {
292
- .tfms6a1j label {
293
- height: 48px;
294
- display: flex;
295
- align-items: flex-end;
296
- }
297
- }
298
- @media screen and (max-width: 579px) and (min-width: 481px) {
291
+ @media screen and (max-width: 571px) and (min-width: 481px) {
299
292
  .tfms6a1j label {
300
293
  height: 48px;
301
294
  display: flex;
@@ -303,7 +296,7 @@
303
296
  }
304
297
  }
305
298
  @media screen and (max-width: 483px) {
306
- .tfms6a1j label {
299
+ .tfms6a1k label {
307
300
  white-space: nowrap;
308
301
  }
309
302
  }
package/dist/index.css.js CHANGED
@@ -1,3 +1,3 @@
1
- /* empty css */
2
1
  /* empty css */
2
+ /* empty css */
3
3
  /* empty css */
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.123",
4
+ "version": "0.0.125",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",