@axos-web-dev/shared-components 0.0.66 → 0.0.68

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 (140) hide show
  1. package/dist/AwardsBanner/AwardsBanner.js +3 -3
  2. package/dist/AwardsItem/AwardsItem.js +13 -5
  3. package/dist/BulletItem/BulletItem.js +1 -1
  4. package/dist/Calculators/Calculator.js +7 -2
  5. package/dist/CallToActionBar/CallToActionBar.css.d.ts +1 -0
  6. package/dist/CallToActionBar/CallToActionBar.css.js +18 -16
  7. package/dist/CallToActionBar/index.js +24 -17
  8. package/dist/Carousel/index.js +7 -2
  9. package/dist/Chevron/index.js +7 -2
  10. package/dist/Comparison/Comparison.css.d.ts +42 -0
  11. package/dist/Comparison/Comparison.css.js +27 -0
  12. package/dist/Comparison/Comparison.d.ts +3 -0
  13. package/dist/Comparison/Comparison.interface.d.ts +24 -0
  14. package/dist/Comparison/Comparison.interface.js +1 -0
  15. package/dist/Comparison/Comparison.js +143 -0
  16. package/dist/Comparison/ComparisonSet.d.ts +3 -0
  17. package/dist/{Forms/RenderForm.js → Comparison/ComparisonSet.js} +112 -36
  18. package/dist/Comparison/index.d.ts +3 -0
  19. package/dist/Comparison/index.js +15 -0
  20. package/dist/DownloadTile/index.js +9 -7
  21. package/dist/ExecutiveBio/ExecutiveBio.js +5 -4
  22. package/dist/FaqAccordion/index.d.ts +6 -4
  23. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +7 -2
  24. package/dist/Forms/ApplicationStart.d.ts +1 -1
  25. package/dist/Forms/ApplicationStart.js +7 -1
  26. package/dist/Forms/CommercialLending.d.ts +15 -0
  27. package/dist/Forms/CommercialLending.js +288 -0
  28. package/dist/Forms/ContactCompany.d.ts +2 -17
  29. package/dist/Forms/ContactCompany.js +7 -1
  30. package/dist/Forms/ContactUs.d.ts +9 -0
  31. package/dist/Forms/ContactUs.js +181 -0
  32. package/dist/Forms/ContactUsAAS.d.ts +13 -0
  33. package/dist/Forms/ContactUsAAS.js +330 -0
  34. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  35. package/dist/Forms/ContactUsBusiness.js +14 -3
  36. package/dist/Forms/DealerServices.d.ts +2 -17
  37. package/dist/Forms/DealerServices.js +7 -1
  38. package/dist/Forms/EmailOnly.d.ts +1 -1
  39. package/dist/Forms/EmailOnly.js +7 -2
  40. package/dist/Forms/EmailUs.d.ts +7 -0
  41. package/dist/Forms/EmailUs.js +125 -0
  42. package/dist/Forms/FormEnums.d.ts +2 -0
  43. package/dist/Forms/FormEnums.js +18 -0
  44. package/dist/Forms/FormProps.d.ts +17 -0
  45. package/dist/Forms/FormProps.js +1 -0
  46. package/dist/Forms/Forms.css.d.ts +8 -0
  47. package/dist/Forms/Forms.css.js +12 -10
  48. package/dist/Forms/SalesforceFieldsForm.d.ts +12 -0
  49. package/dist/Forms/SalesforceFieldsForm.js +4 -1
  50. package/dist/Forms/ScheduleCall.d.ts +5 -18
  51. package/dist/Forms/ScheduleCall.js +65 -6
  52. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  53. package/dist/Forms/ScheduleCallPremier.js +15 -2
  54. package/dist/Forms/SuccesForm.js +8 -3
  55. package/dist/Forms/WcplSurvey.d.ts +8 -0
  56. package/dist/Forms/WcplSurvey.js +194 -0
  57. package/dist/Forms/index.d.ts +9 -4
  58. package/dist/Forms/index.js +15 -7
  59. package/dist/Hyperlink/index.js +7 -2
  60. package/dist/IconBillboard/IconBillboard.css.d.ts +2 -0
  61. package/dist/ImageBillboard/ImageBillboardSet.js +1 -1
  62. package/dist/ImageLink/ImageLink.js +14 -9
  63. package/dist/ImageLink/ImageLinkSet.js +5 -0
  64. package/dist/ImageLink/index.js +7 -2
  65. package/dist/Input/Checkbox.d.ts +1 -1
  66. package/dist/Input/DatePicker.css.d.ts +1 -0
  67. package/dist/Input/DatePicker.css.js +6 -0
  68. package/dist/Input/Datepicker.d.ts +4 -0
  69. package/dist/Input/Datepicker.js +40 -0
  70. package/dist/Input/Input.d.ts +1 -12
  71. package/dist/Input/Input.js +3 -1
  72. package/dist/Input/InputProps.d.ts +9 -0
  73. package/dist/Input/RadioButton.css.d.ts +15 -0
  74. package/dist/Input/RadioButton.css.js +10 -0
  75. package/dist/Input/RadioButton.d.ts +5 -0
  76. package/dist/Input/RadioButton.js +50 -0
  77. package/dist/Input/index.d.ts +1 -0
  78. package/dist/LandingPageHeader/LandingPageHeader.js +2 -2
  79. package/dist/LandingPageHeader/index.d.ts +1 -0
  80. package/dist/LandingPageHeader/index.js +6 -1
  81. package/dist/LoadingIndicator/LoadingIndicator.css.d.ts +16 -0
  82. package/dist/LoadingIndicator/LoadingIndicator.css.js +6 -0
  83. package/dist/LoadingIndicator/index.d.ts +10 -0
  84. package/dist/LoadingIndicator/index.js +20 -0
  85. package/dist/Modal/Modal.js +7 -2
  86. package/dist/NavigationMenu/AxosAdvisorServices/NavBar.module.js +56 -53
  87. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.d.ts +1 -1
  88. package/dist/NavigationMenu/AxosAdvisorServices/SubNavBar.js +15 -11
  89. package/dist/NavigationMenu/AxosAdvisorServices/index.js +1 -1
  90. package/dist/SetContainer/SetContainer.css.d.ts +35 -0
  91. package/dist/SetContainer/SetContainer.css.js +10 -2
  92. package/dist/SetContainer/SetContainer.d.ts +6 -2
  93. package/dist/SetContainer/SetContainer.js +42 -19
  94. package/dist/SetContainer/index.js +6 -2
  95. package/dist/Tab/Tab.css.d.ts +37 -0
  96. package/dist/Tab/Tab.css.js +13 -0
  97. package/dist/Tab/Tab.d.ts +10 -0
  98. package/dist/Tab/Tab.js +25 -0
  99. package/dist/Tab/TabContainer.d.ts +5 -0
  100. package/dist/Tab/TabContainer.js +10 -0
  101. package/dist/Tab/index.d.ts +2 -0
  102. package/dist/Tab/index.js +6 -0
  103. package/dist/Table/Table.d.ts +2 -2
  104. package/dist/Table/Table.interface.d.ts +3 -1
  105. package/dist/Table/Table.js +11 -3
  106. package/dist/TopicalNavItem/TopicalNavItem.d.ts +1 -1
  107. package/dist/TopicalNavItem/TopicalNavItem.js +40 -31
  108. package/dist/TopicalNavSet/TopicalNavSet.js +5 -5
  109. package/dist/VideoTile/VideoTile.interface.d.ts +3 -0
  110. package/dist/VideoTile/VideoTile.js +3 -1
  111. package/dist/assets/CallToActionBar/CallToActionBar.css +35 -27
  112. package/dist/assets/Carousel/Carousel.css +2 -0
  113. package/dist/assets/Chevron/Chevron.css +1 -1
  114. package/dist/assets/Comparison/Comparison.css +141 -0
  115. package/dist/assets/Forms/Forms.css +46 -35
  116. package/dist/assets/IconBillboard/IconBillboard.css +4 -0
  117. package/dist/assets/Input/DatePicker.css +86 -0
  118. package/dist/assets/Input/Input.css +1 -0
  119. package/dist/assets/Input/RadioButton.css +31 -0
  120. package/dist/assets/LoadingIndicator/LoadingIndicator.css +27 -0
  121. package/dist/assets/NavigationMenu/AxosAdvisorServices/NavBar.css.css +125 -117
  122. package/dist/assets/SetContainer/SetContainer.css +63 -5
  123. package/dist/assets/Tab/Tab.css +49 -0
  124. package/dist/assets/globals.css +6 -0
  125. package/dist/assets/icons/Star/Star.css +6 -0
  126. package/dist/icons/Logos/AAS.js +29 -26
  127. package/dist/icons/Logos/AFS.js +29 -26
  128. package/dist/icons/Logos/AXA.js +31 -28
  129. package/dist/icons/Logos/AXC.js +29 -26
  130. package/dist/icons/Logos/AXI.js +55 -52
  131. package/dist/icons/Logos/AXOS.js +30 -27
  132. package/dist/icons/Star/Star.css.d.ts +13 -0
  133. package/dist/icons/Star/Star.css.js +6 -0
  134. package/dist/icons/Star/index.d.ts +9 -0
  135. package/dist/icons/Star/index.js +26 -0
  136. package/dist/main.d.ts +5 -2
  137. package/dist/main.js +99 -63
  138. package/dist/utils/variant.types.d.ts +1 -0
  139. package/package.json +5 -3
  140. package/dist/Forms/RenderForm.d.ts +0 -8
@@ -40,20 +40,25 @@ import { useForm, FormProvider } from "react-hook-form";
40
40
  import { z } from "zod";
41
41
  import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
42
42
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
43
+ import "../LoadingIndicator/LoadingIndicator.css.js";
44
+ import "../Input/RadioButton.js";
43
45
  import "iframe-resizer";
44
46
  import "../Calculators/calculator.css.js";
45
47
  /* empty css */
46
48
  import "../Carousel/index.js";
47
49
  /* empty css */
50
+ import "../Comparison/Comparison.css.js";
48
51
  import "../HeroBanner/HeroBanner.css.js";
52
+ import "../HeroBanner/SelectionBanner.css.js";
53
+ import "../SetContainer/SetContainer.css.js";
54
+ import "../Tab/Tab.css.js";
55
+ import "../icons/Star/Star.css.js";
49
56
  import "../ContentBanner/ContentBanner.css.js";
50
57
  /* empty css */
51
58
  import "../ExecutiveBio/ExecutiveBio.css.js";
52
59
  import "../FaqAccordion/index.js";
53
60
  import "../FooterDisclosure/FooterDisclosure.css.js";
54
61
  /* empty css */
55
- import "../HeroBanner/SelectionBanner.css.js";
56
- import "../SetContainer/SetContainer.css.js";
57
62
  import "../ImageBillboard/ImageBillboard.css.js";
58
63
  import "../LandingPageHeader/LandingPageHeader.css.js";
59
64
  /* empty css */
@@ -0,0 +1,7 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type EmailUsInputs = {
4
+ email: string;
5
+ write_your_message: string;
6
+ };
7
+ export declare const EmailUs: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,125 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import { Button } from "../Button/Button.js";
5
+ import "../Button/Button.css.js";
6
+ import "react";
7
+ import "react-use";
8
+ import { Input } from "../Input/Input.js";
9
+ import { InputTextArea } from "../Input/InputTextArea.js";
10
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
11
+ import SvgAxosX from "../icons/AxosX/index.js";
12
+ import SvgComponent from "../icons/AxosX/Blue.js";
13
+ import "../icons/CheckIcon/CheckIcon.css.js";
14
+ /* empty css */
15
+ /* empty css */
16
+ /* empty css */
17
+ /* empty css */
18
+ import { associatedEmail } from "../utils/EverestValidity.js";
19
+ import { getVariant } from "../utils/getVariant.js";
20
+ import clsx from "clsx";
21
+ import { useForm, FormProvider } from "react-hook-form";
22
+ import * as z from "zod";
23
+ import { formContainer, iconForm, headerForm, form, formWrapper, disclosureForm, actions } from "./Forms.css.js";
24
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
25
+ const EmailUs = ({
26
+ icon = false,
27
+ children,
28
+ onSubmit = (values) => {
29
+ console.log(values);
30
+ },
31
+ disclosure,
32
+ variant: fullVariant = "primary",
33
+ headline,
34
+ callToAction,
35
+ validateEmail,
36
+ id
37
+ }) => {
38
+ const schema = z.object({
39
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
40
+ write_your_message: z.string()
41
+ });
42
+ const methods = useForm({
43
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
44
+ async: true
45
+ }),
46
+ mode: "all",
47
+ defaultValues: {
48
+ email: "",
49
+ write_your_message: ""
50
+ }
51
+ });
52
+ const {
53
+ handleSubmit,
54
+ register,
55
+ formState: { errors, isValid }
56
+ } = methods;
57
+ const submitForm = async (data) => {
58
+ await onSubmit(data);
59
+ };
60
+ const variant = getVariant(fullVariant);
61
+ return /* @__PURE__ */ jsx(
62
+ "section",
63
+ {
64
+ id: `id_${id}`,
65
+ className: clsx(formContainer({ variant })),
66
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
67
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
68
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2 text_center", headerForm({ variant })), children: headline }),
69
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
70
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant, formType: "email" })), children: [
71
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
72
+ Input,
73
+ {
74
+ id: "email",
75
+ ...register("email", {
76
+ required: true,
77
+ validate: {
78
+ isValid: associatedEmail
79
+ }
80
+ }),
81
+ label: "Email",
82
+ sizes: "medium",
83
+ placeholder: "Email",
84
+ required: true,
85
+ error: !!errors.email,
86
+ helperText: errors.email?.message,
87
+ variant
88
+ }
89
+ ) }),
90
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
91
+ InputTextArea,
92
+ {
93
+ id: "write_your_message",
94
+ ...register("write_your_message", { required: true }),
95
+ label: "Write Your Message",
96
+ sizes: "medium",
97
+ placeholder: "Write Your Message",
98
+ required: true,
99
+ error: !!errors.write_your_message,
100
+ helperText: errors.write_your_message?.message,
101
+ variant
102
+ }
103
+ ) })
104
+ ] }),
105
+ children,
106
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
107
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
108
+ Button,
109
+ {
110
+ color: getVariant(callToAction?.variant),
111
+ as: "button",
112
+ type: "submit",
113
+ disabled: !isValid,
114
+ children: callToAction?.displayText
115
+ }
116
+ ) })
117
+ ] })
118
+ ] }) })
119
+ },
120
+ id
121
+ );
122
+ };
123
+ export {
124
+ EmailUs
125
+ };
@@ -0,0 +1,2 @@
1
+ export declare const Roles: readonly ["RIA Principal", "Advisor (IAR)", "Broker-Dealer Affiliated Advisor", "I am not a Financial Advisor", "Other"];
2
+ export declare const CurrentAssets: readonly ["$0 - $25M", "$26M - $150M", "$151M - $500M", "$501M - $1B", "$1B+"];
@@ -0,0 +1,18 @@
1
+ const Roles = [
2
+ "RIA Principal",
3
+ "Advisor (IAR)",
4
+ "Broker-Dealer Affiliated Advisor",
5
+ "I am not a Financial Advisor",
6
+ "Other"
7
+ ];
8
+ const CurrentAssets = [
9
+ "$0 - $25M",
10
+ "$26M - $150M",
11
+ "$151M - $500M",
12
+ "$501M - $1B",
13
+ "$1B+"
14
+ ];
15
+ export {
16
+ CurrentAssets,
17
+ Roles
18
+ };
@@ -0,0 +1,17 @@
1
+ import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { QuaternaryTypes } from '../utils';
3
+ import { PropsWithChildren, ReactNode } from 'react';
4
+
5
+ export interface FormProps extends PropsWithChildren {
6
+ id?: string;
7
+ onSubmit?: (values: {
8
+ [index: string]: string | boolean | number | Date;
9
+ }) => void;
10
+ icon?: boolean;
11
+ headline?: ReactNode | string;
12
+ description?: ReactNode | string;
13
+ disclosure?: ReactNode | string;
14
+ variant?: QuaternaryTypes;
15
+ validateEmail: (email: string) => Promise<boolean>;
16
+ callToAction: Omit<ChevronProps, "targetUrl">;
17
+ }
@@ -0,0 +1 @@
1
+
@@ -2,15 +2,19 @@ export declare const formContainer: import('@vanilla-extract/recipes').RuntimeFn
2
2
  variant: {
3
3
  primary: {
4
4
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
6
  };
6
7
  secondary: {
7
8
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
9
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
8
10
  };
9
11
  tertiary: {
10
12
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
13
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
11
14
  };
12
15
  quaternary: {
13
16
  background: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
17
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
14
18
  };
15
19
  };
16
20
  }>;
@@ -79,6 +83,9 @@ export declare const formWrapper: import('@vanilla-extract/recipes').RuntimeFn<{
79
83
  email: {
80
84
  gridTemplateColumns: "1fr";
81
85
  };
86
+ default: {
87
+ gridTemplateColumns: "1fr 1fr";
88
+ };
82
89
  };
83
90
  }>;
84
91
  export declare const actions: string;
@@ -154,3 +161,4 @@ export declare const descriptionField: import('@vanilla-extract/recipes').Runtim
154
161
  };
155
162
  }>;
156
163
  export declare const fullRowForm: string;
164
+ export declare const one_row: string;
@@ -7,16 +7,17 @@ var formContainer = createRuntimeFn({ defaultClassName: "tfms6a0", variantClassN
7
7
  var iconForm = "tfms6a5";
8
8
  var headerContainer = "tfms6a6";
9
9
  var headerForm = createRuntimeFn({ defaultClassName: "tfms6a7", variantClassNames: { variant: { primary: "tfms6a8", secondary: "tfms6a9", tertiary: "tfms6aa", quaternary: "tfms6ab" } }, defaultVariants: {}, compoundVariants: [] });
10
- var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ac", variantClassNames: { variant: { primary: "tfms6ad", secondary: "tfms6ae", tertiary: "tfms6af", quaternary: "tfms6ag" }, formType: { email: "tfms6ah" } }, defaultVariants: {}, compoundVariants: [] });
11
- var actions = "tfms6ai";
12
- var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6aj", variantClassNames: { variant: { primary: "tfms6ak", secondary: "tfms6al", tertiary: "tfms6am", quaternary: "tfms6an" } }, defaultVariants: {}, compoundVariants: [] });
13
- var form = "tfms6ao";
14
- var success_wrap = createRuntimeFn({ defaultClassName: "tfms6ar", variantClassNames: { variant: { primary: "tfms6as", secondary: "tfms6at", tertiary: "tfms6au", quaternary: "tfms6av" } }, defaultVariants: {}, compoundVariants: [] });
15
- var success_icon = "tfms6aw";
16
- var succes_check_mark = "tfms6ax";
17
- var success_circle = createRuntimeFn({ defaultClassName: "tfms6ay", variantClassNames: { variant: { primary: "tfms6az", secondary: "tfms6a10", tertiary: "tfms6a11", quaternary: "tfms6a12" } }, defaultVariants: {}, compoundVariants: [] });
18
- var descriptionField = createRuntimeFn({ defaultClassName: "tfms6a13", variantClassNames: { variant: { primary: "tfms6a14", secondary: "tfms6a15", tertiary: "tfms6a16", quaternary: "tfms6a17" } }, defaultVariants: {}, compoundVariants: [] });
19
- var fullRowForm = "tfms6a18";
10
+ var formWrapper = createRuntimeFn({ defaultClassName: "tfms6ac", variantClassNames: { variant: { primary: "tfms6ad", secondary: "tfms6ae", tertiary: "tfms6af", quaternary: "tfms6ag" }, formType: { email: "tfms6ah", "default": "tfms6ai" } }, defaultVariants: {}, compoundVariants: [] });
11
+ var actions = "tfms6aj";
12
+ var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6ak", variantClassNames: { variant: { primary: "tfms6al", secondary: "tfms6am", tertiary: "tfms6an", quaternary: "tfms6ao" } }, defaultVariants: {}, compoundVariants: [] });
13
+ var form = "tfms6ap";
14
+ var success_wrap = createRuntimeFn({ defaultClassName: "tfms6as", variantClassNames: { variant: { primary: "tfms6at", secondary: "tfms6au", tertiary: "tfms6av", quaternary: "tfms6aw" } }, defaultVariants: {}, compoundVariants: [] });
15
+ var success_icon = "tfms6ax";
16
+ var succes_check_mark = "tfms6ay";
17
+ var success_circle = createRuntimeFn({ defaultClassName: "tfms6az", variantClassNames: { variant: { primary: "tfms6a10", secondary: "tfms6a11", tertiary: "tfms6a12", quaternary: "tfms6a13" } }, defaultVariants: {}, compoundVariants: [] });
18
+ var descriptionField = createRuntimeFn({ defaultClassName: "tfms6a14", variantClassNames: { variant: { primary: "tfms6a15", secondary: "tfms6a16", tertiary: "tfms6a17", quaternary: "tfms6a18" } }, defaultVariants: {}, compoundVariants: [] });
19
+ var fullRowForm = "tfms6a19";
20
+ var one_row = "tfms6a1a";
20
21
  export {
21
22
  actions,
22
23
  descriptionField,
@@ -28,6 +29,7 @@ export {
28
29
  headerContainer,
29
30
  headerForm,
30
31
  iconForm,
32
+ one_row,
31
33
  succes_check_mark,
32
34
  success_circle,
33
35
  success_icon,
@@ -19,6 +19,9 @@ export interface SalesforceInputs {
19
19
  First_UTMMedium__c: string;
20
20
  First_UTMSource__c: string;
21
21
  First_UTMTerm__c: string;
22
+ company: string;
23
+ Current_Assets_Under_Management__c: string;
24
+ Role__c: string;
22
25
  }
23
26
  export declare const SalesforceSchema: z.ZodObject<{
24
27
  Brand_SFDC2__c: z.ZodOptional<z.ZodString>;
@@ -33,6 +36,9 @@ export declare const SalesforceSchema: z.ZodObject<{
33
36
  First_UTMMedium__c: z.ZodOptional<z.ZodString>;
34
37
  First_UTMSource__c: z.ZodOptional<z.ZodString>;
35
38
  First_UTMTerm__c: z.ZodOptional<z.ZodString>;
39
+ company: z.ZodOptional<z.ZodString>;
40
+ Current_Assets_Under_Management__c: z.ZodOptional<z.ZodString>;
41
+ Role__c: z.ZodOptional<z.ZodString>;
36
42
  }, "strip", z.ZodTypeAny, {
37
43
  Brand_SFDC2__c?: string | undefined;
38
44
  Branch_SFDC2__c?: string | undefined;
@@ -46,6 +52,9 @@ export declare const SalesforceSchema: z.ZodObject<{
46
52
  First_UTMMedium__c?: string | undefined;
47
53
  First_UTMSource__c?: string | undefined;
48
54
  First_UTMTerm__c?: string | undefined;
55
+ company?: string | undefined;
56
+ Current_Assets_Under_Management__c?: string | undefined;
57
+ Role__c?: string | undefined;
49
58
  }, {
50
59
  Brand_SFDC2__c?: string | undefined;
51
60
  Branch_SFDC2__c?: string | undefined;
@@ -59,6 +68,9 @@ export declare const SalesforceSchema: z.ZodObject<{
59
68
  First_UTMMedium__c?: string | undefined;
60
69
  First_UTMSource__c?: string | undefined;
61
70
  First_UTMTerm__c?: string | undefined;
71
+ company?: string | undefined;
72
+ Current_Assets_Under_Management__c?: string | undefined;
73
+ Role__c?: string | undefined;
62
74
  }>;
63
75
  export interface QueryParams {
64
76
  [str: string]: string;
@@ -22,7 +22,10 @@ const SalesforceSchema = z.object({
22
22
  First_UTMContent__c: z.string().optional(),
23
23
  First_UTMMedium__c: z.string().optional(),
24
24
  First_UTMSource__c: z.string().optional(),
25
- First_UTMTerm__c: z.string().optional()
25
+ First_UTMTerm__c: z.string().optional(),
26
+ company: z.string().optional(),
27
+ Current_Assets_Under_Management__c: z.string().optional(),
28
+ Role__c: z.string().optional()
26
29
  });
27
30
  const SalesforceFieldsForm = memo(function SaleforceFieldForm({
28
31
  salesforceFields,
@@ -1,24 +1,11 @@
1
- import { ChevronProps } from '../Chevron/Chevron.interface';
2
- import { QuaternaryTypes } from '../utils/variant.types';
3
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import { FormProps } from './FormProps';
4
2
 
5
- export type Inputs = {
3
+ export type ScheduleCallInputs = {
6
4
  first_name: string;
7
5
  last_name: string;
8
6
  email: string;
9
7
  phone: string;
8
+ Best_Time_To_Call__c: string;
9
+ Best_Contact_Date__c: string;
10
10
  };
11
- export interface FormProps extends PropsWithChildren {
12
- id?: string;
13
- onSubmit?: (values: {
14
- [index: string]: string | boolean | number;
15
- }) => void;
16
- icon?: boolean;
17
- headline?: ReactNode | string;
18
- description?: ReactNode | string;
19
- disclosure?: ReactNode | string;
20
- variant?: QuaternaryTypes;
21
- validateEmail: (email: string) => Promise<boolean>;
22
- callToAction: Omit<ChevronProps, "targetUrl">;
23
- }
24
- export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ScheduleCall: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, validateEmail, id, description, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -7,7 +7,7 @@ import "react";
7
7
  import "react-use";
8
8
  import "../Input/Checkbox.js";
9
9
  import "../Input/CurrencyInput.js";
10
- import "../Input/Dropdown.js";
10
+ import { Dropdown } from "../Input/Dropdown.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  import { Input } from "../Input/Input.js";
@@ -38,10 +38,10 @@ const ScheduleCall = ({
38
38
  disclosure,
39
39
  variant: fullVariant = "primary",
40
40
  headline,
41
- description,
42
41
  callToAction,
43
42
  validateEmail,
44
- id
43
+ id,
44
+ description
45
45
  }) => {
46
46
  const schema = z.object({
47
47
  first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
@@ -57,7 +57,10 @@ const ScheduleCall = ({
57
57
  return z.NEVER;
58
58
  }
59
59
  return removeDashes;
60
- })
60
+ }),
61
+ Best_Contact_Date__c: z.string().min(1).date("The field Value must be a date."),
62
+ Best_Time_To_Call__c: z.string().min(1).refine((val) => /[ap]|m/.test(val)),
63
+ Potential_Funding__c: z.string().min(1)
61
64
  });
62
65
  const methods = useForm({
63
66
  resolver: zodResolver(schema.merge(SalesforceSchema), {
@@ -71,7 +74,7 @@ const ScheduleCall = ({
71
74
  const {
72
75
  handleSubmit,
73
76
  register,
74
- formState: { errors, isValid, isSubmitting }
77
+ formState: { errors, isValid }
75
78
  } = methods;
76
79
  const submitForm = async (data) => {
77
80
  await onSubmit(data);
@@ -156,6 +159,62 @@ const ScheduleCall = ({
156
159
  helperText: errors.phone?.message,
157
160
  variant
158
161
  }
162
+ ) }),
163
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
164
+ Input,
165
+ {
166
+ id: "Best_Contact_Date__c",
167
+ ...register("Best_Contact_Date__c", {
168
+ required: true
169
+ }),
170
+ type: "date",
171
+ label: "Best Date to Call",
172
+ sizes: "medium",
173
+ placeholder: "Best Date to Call",
174
+ required: true,
175
+ error: !!errors.Best_Contact_Date__c,
176
+ helperText: errors.Best_Contact_Date__c?.message,
177
+ variant
178
+ }
179
+ ) }),
180
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
181
+ Dropdown,
182
+ {
183
+ id: "Best_Time_To_Call__c",
184
+ ...register("Best_Time_To_Call__c", {
185
+ required: true,
186
+ maxLength: 12
187
+ }),
188
+ label: "Best Time to Call",
189
+ sizes: "medium",
190
+ required: true,
191
+ error: !!errors.Best_Time_To_Call__c,
192
+ helperText: errors.Best_Time_To_Call__c?.message,
193
+ variant,
194
+ defaultValue: "Best Time to Call",
195
+ children: [
196
+ /* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
197
+ /* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
198
+ /* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
199
+ /* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
200
+ /* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
201
+ /* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
202
+ /* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
203
+ /* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
204
+ /* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
205
+ /* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
206
+ /* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
207
+ /* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
208
+ /* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
209
+ /* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
210
+ /* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
211
+ /* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
212
+ /* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
213
+ /* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
214
+ /* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
215
+ /* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
216
+ ]
217
+ }
159
218
  ) })
160
219
  ] }),
161
220
  children,
@@ -166,7 +225,7 @@ const ScheduleCall = ({
166
225
  color: getVariant(callToAction?.variant),
167
226
  as: "button",
168
227
  type: "submit",
169
- disabled: !isValid || isSubmitting,
228
+ disabled: !isValid,
170
229
  children: callToAction?.displayText
171
230
  }
172
231
  ) })
@@ -1,4 +1,4 @@
1
- import { FormProps } from './ScheduleCall';
1
+ import { FormProps } from './FormProps';
2
2
 
3
3
  export type ScheduleCallPremierInputs = {
4
4
  first_name: string;
@@ -14,6 +14,7 @@ import { Input } from "../Input/Input.js";
14
14
  import "../Input/Input.css.js";
15
15
  import { InputPhone } from "../Input/InputPhone.js";
16
16
  import "../Input/InputTextArea.js";
17
+ import { LoadingIndicator } from "../LoadingIndicator/index.js";
17
18
  import "../icons/ArrowIcon/ArrowIcon.css.js";
18
19
  import SvgAxosX from "../icons/AxosX/index.js";
19
20
  import SvgComponent from "../icons/AxosX/Blue.js";
@@ -95,7 +96,13 @@ const ScheduleCallPremier = ({
95
96
  icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
96
97
  /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
97
98
  /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
98
- description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField} text_center`, children: description })
99
+ description && /* @__PURE__ */ jsx(
100
+ "div",
101
+ {
102
+ className: `${form} ${descriptionField({ variant })} text_center`,
103
+ children: description
104
+ }
105
+ )
99
106
  ] }),
100
107
  /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
101
108
  /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
@@ -235,7 +242,13 @@ const ScheduleCallPremier = ({
235
242
  ] }),
236
243
  children,
237
244
  /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
238
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
245
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
246
+ LoadingIndicator,
247
+ {
248
+ style: { marginInline: "auto" },
249
+ variant
250
+ }
251
+ ) : /* @__PURE__ */ jsx(
239
252
  Button,
240
253
  {
241
254
  color: getVariant(callToAction?.variant),
@@ -40,17 +40,21 @@ import "../Calculators/calculator.css.js";
40
40
  /* empty css */
41
41
  import "../Carousel/index.js";
42
42
  /* empty css */
43
+ import "../Comparison/Comparison.css.js";
43
44
  import "../HeroBanner/HeroBanner.css.js";
45
+ import "../HeroBanner/SelectionBanner.css.js";
46
+ import "../SetContainer/SetContainer.css.js";
47
+ import "../Tab/Tab.css.js";
48
+ import "../icons/Star/Star.css.js";
44
49
  import "../ContentBanner/ContentBanner.css.js";
45
50
  /* empty css */
46
51
  import "../ExecutiveBio/ExecutiveBio.css.js";
47
52
  import "../FaqAccordion/index.js";
48
53
  import "../FooterDisclosure/FooterDisclosure.css.js";
49
54
  /* empty css */
50
- import "../HeroBanner/SelectionBanner.css.js";
51
- import "../SetContainer/SetContainer.css.js";
52
55
  import "../ImageBillboard/ImageBillboard.css.js";
53
56
  import "../LandingPageHeader/LandingPageHeader.css.js";
57
+ import "../LoadingIndicator/LoadingIndicator.css.js";
54
58
  /* empty css */
55
59
  /* empty css */
56
60
  /* empty css */
@@ -67,6 +71,7 @@ import "../Table/Table.css.js";
67
71
  import "next/script.js";
68
72
  /* empty css */
69
73
  /* empty css */
74
+ import "../Input/RadioButton.js";
70
75
  function SuccesFormWrapper({
71
76
  children,
72
77
  isSubmitted,
@@ -134,7 +139,7 @@ function SuccesFormWrapper({
134
139
  }
135
140
  ),
136
141
  /* @__PURE__ */ jsx("h1", { id: "submittedText", children: headline || "Submitted!" }),
137
- /* @__PURE__ */ jsx("p", { id: "thankYouText", children: bodyCopy ? bodyCopy : /* @__PURE__ */ jsxs(Fragment, { children: [
142
+ /* @__PURE__ */ jsx("div", { id: "thankYouText", children: bodyCopy ? bodyCopy : /* @__PURE__ */ jsxs(Fragment, { children: [
138
143
  "Thank you!",
139
144
  /* @__PURE__ */ jsx("br", {}),
140
145
  "A Banking expert will be in contact with you shortly"
@@ -0,0 +1,8 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type WCPLSruveyInputs = {
4
+ Has_Deal: boolean;
5
+ Description_of_Deal_Details: string;
6
+ Telephone: string;
7
+ };
8
+ export declare const WCPLSurvey: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, callToAction, id, description, }: FormProps) => import("react/jsx-runtime").JSX.Element;