@axos-web-dev/shared-components 0.0.67 → 0.0.69

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 (112) hide show
  1. package/dist/AwardsItem/AwardsItem.js +13 -5
  2. package/dist/BulletItem/BulletItem.js +1 -1
  3. package/dist/Calculators/Calculator.js +7 -2
  4. package/dist/CallToActionBar/CallToActionBar.css.d.ts +1 -0
  5. package/dist/CallToActionBar/CallToActionBar.css.js +18 -16
  6. package/dist/CallToActionBar/index.js +24 -17
  7. package/dist/Carousel/index.js +7 -2
  8. package/dist/Chevron/index.js +7 -2
  9. package/dist/Comparison/Comparison.css.d.ts +42 -0
  10. package/dist/Comparison/Comparison.css.js +27 -0
  11. package/dist/Comparison/Comparison.d.ts +3 -0
  12. package/dist/Comparison/Comparison.interface.d.ts +24 -0
  13. package/dist/Comparison/Comparison.interface.js +1 -0
  14. package/dist/Comparison/Comparison.js +143 -0
  15. package/dist/Comparison/ComparisonSet.d.ts +3 -0
  16. package/dist/{Forms/RenderForm.js → Comparison/ComparisonSet.js} +112 -36
  17. package/dist/Comparison/index.d.ts +3 -0
  18. package/dist/Comparison/index.js +15 -0
  19. package/dist/DownloadTile/index.js +9 -7
  20. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +7 -2
  21. package/dist/Forms/ApplicationStart.d.ts +1 -1
  22. package/dist/Forms/ApplicationStart.js +11 -1
  23. package/dist/Forms/CommercialLending.d.ts +15 -0
  24. package/dist/Forms/CommercialLending.js +288 -0
  25. package/dist/Forms/ContactCompany.d.ts +2 -17
  26. package/dist/Forms/ContactCompany.js +11 -1
  27. package/dist/Forms/ContactUs.d.ts +9 -0
  28. package/dist/Forms/ContactUs.js +181 -0
  29. package/dist/Forms/ContactUsAAS.d.ts +13 -0
  30. package/dist/Forms/ContactUsAAS.js +330 -0
  31. package/dist/Forms/ContactUsBusiness.d.ts +1 -1
  32. package/dist/Forms/ContactUsBusiness.js +18 -3
  33. package/dist/Forms/DealerServices.d.ts +2 -17
  34. package/dist/Forms/DealerServices.js +11 -1
  35. package/dist/Forms/EmailOnly.d.ts +1 -1
  36. package/dist/Forms/EmailOnly.js +12 -3
  37. package/dist/Forms/EmailUs.d.ts +7 -0
  38. package/dist/Forms/EmailUs.js +125 -0
  39. package/dist/Forms/FormEnums.d.ts +2 -0
  40. package/dist/Forms/FormEnums.js +18 -0
  41. package/dist/Forms/FormProps.d.ts +17 -0
  42. package/dist/Forms/FormProps.js +1 -0
  43. package/dist/Forms/Forms.css.d.ts +8 -0
  44. package/dist/Forms/Forms.css.js +12 -10
  45. package/dist/Forms/SalesforceFieldsForm.d.ts +12 -0
  46. package/dist/Forms/SalesforceFieldsForm.js +4 -1
  47. package/dist/Forms/ScheduleCall.d.ts +5 -18
  48. package/dist/Forms/ScheduleCall.js +70 -7
  49. package/dist/Forms/ScheduleCallPremier.d.ts +1 -1
  50. package/dist/Forms/ScheduleCallPremier.js +19 -2
  51. package/dist/Forms/SuccesForm.js +7 -2
  52. package/dist/Forms/WcplSurvey.d.ts +8 -0
  53. package/dist/Forms/WcplSurvey.js +194 -0
  54. package/dist/Forms/index.d.ts +9 -4
  55. package/dist/Forms/index.js +15 -7
  56. package/dist/Hyperlink/index.js +7 -2
  57. package/dist/ImageBillboard/ImageBillboardSet.js +1 -1
  58. package/dist/ImageLink/ImageLink.js +14 -9
  59. package/dist/ImageLink/ImageLinkSet.js +5 -0
  60. package/dist/ImageLink/index.js +7 -2
  61. package/dist/Input/Checkbox.d.ts +1 -1
  62. package/dist/Input/Input.d.ts +1 -12
  63. package/dist/Input/Input.js +3 -1
  64. package/dist/Input/InputProps.d.ts +9 -0
  65. package/dist/Input/RadioButton.css.d.ts +15 -0
  66. package/dist/Input/RadioButton.css.js +10 -0
  67. package/dist/Input/RadioButton.d.ts +5 -0
  68. package/dist/Input/RadioButton.js +50 -0
  69. package/dist/Input/index.d.ts +1 -0
  70. package/dist/LoadingIndicator/LoadingIndicator.css.d.ts +16 -0
  71. package/dist/LoadingIndicator/LoadingIndicator.css.js +6 -0
  72. package/dist/LoadingIndicator/index.d.ts +10 -0
  73. package/dist/LoadingIndicator/index.js +20 -0
  74. package/dist/Modal/Modal.js +7 -2
  75. package/dist/SetContainer/SetContainer.css.d.ts +35 -0
  76. package/dist/SetContainer/SetContainer.css.js +10 -2
  77. package/dist/SetContainer/SetContainer.d.ts +6 -2
  78. package/dist/SetContainer/SetContainer.js +42 -19
  79. package/dist/SetContainer/index.js +6 -2
  80. package/dist/Tab/Tab.css.d.ts +37 -0
  81. package/dist/Tab/Tab.css.js +13 -0
  82. package/dist/Tab/Tab.d.ts +10 -0
  83. package/dist/Tab/Tab.js +25 -0
  84. package/dist/Tab/TabContainer.d.ts +5 -0
  85. package/dist/Tab/TabContainer.js +10 -0
  86. package/dist/Tab/index.d.ts +2 -0
  87. package/dist/Tab/index.js +6 -0
  88. package/dist/TopicalNavItem/TopicalNavItem.d.ts +1 -1
  89. package/dist/TopicalNavItem/TopicalNavItem.js +40 -31
  90. package/dist/TopicalNavSet/TopicalNavSet.js +5 -5
  91. package/dist/VideoTile/VideoTile.interface.d.ts +3 -0
  92. package/dist/VideoTile/VideoTile.js +3 -1
  93. package/dist/assets/CallToActionBar/CallToActionBar.css +35 -27
  94. package/dist/assets/Carousel/Carousel.css +2 -0
  95. package/dist/assets/Comparison/Comparison.css +141 -0
  96. package/dist/assets/Forms/Forms.css +46 -35
  97. package/dist/assets/Input/Input.css +1 -0
  98. package/dist/assets/Input/RadioButton.css +31 -0
  99. package/dist/assets/LoadingIndicator/LoadingIndicator.css +27 -0
  100. package/dist/assets/SetContainer/SetContainer.css +63 -5
  101. package/dist/assets/Tab/Tab.css +49 -0
  102. package/dist/assets/globals.css +6 -0
  103. package/dist/assets/icons/Star/Star.css +6 -0
  104. package/dist/icons/Star/Star.css.d.ts +13 -0
  105. package/dist/icons/Star/Star.css.js +6 -0
  106. package/dist/icons/Star/index.d.ts +9 -0
  107. package/dist/icons/Star/index.js +26 -0
  108. package/dist/main.d.ts +5 -2
  109. package/dist/main.js +94 -63
  110. package/dist/utils/variant.types.d.ts +1 -0
  111. package/package.json +8 -7
  112. 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 */
@@ -125,7 +130,11 @@ const EmailOnly = ({
125
130
  description && /* @__PURE__ */ jsx(
126
131
  "div",
127
132
  {
128
- className: `${form} ${descriptionField({ variant })} text_center`,
133
+ className: clsx(
134
+ "text_center",
135
+ form,
136
+ descriptionField({ variant })
137
+ ),
129
138
  children: description
130
139
  }
131
140
  )
@@ -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);
@@ -89,7 +92,11 @@ const ScheduleCall = ({
89
92
  description && /* @__PURE__ */ jsx(
90
93
  "div",
91
94
  {
92
- className: `${form} ${descriptionField({ variant })} text_center`,
95
+ className: clsx(
96
+ "text_center",
97
+ form,
98
+ descriptionField({ variant })
99
+ ),
93
100
  children: description
94
101
  }
95
102
  )
@@ -156,6 +163,62 @@ const ScheduleCall = ({
156
163
  helperText: errors.phone?.message,
157
164
  variant
158
165
  }
166
+ ) }),
167
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
168
+ Input,
169
+ {
170
+ id: "Best_Contact_Date__c",
171
+ ...register("Best_Contact_Date__c", {
172
+ required: true
173
+ }),
174
+ type: "date",
175
+ label: "Best Date to Call",
176
+ sizes: "medium",
177
+ placeholder: "Best Date to Call",
178
+ required: true,
179
+ error: !!errors.Best_Contact_Date__c,
180
+ helperText: errors.Best_Contact_Date__c?.message,
181
+ variant
182
+ }
183
+ ) }),
184
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
185
+ Dropdown,
186
+ {
187
+ id: "Best_Time_To_Call__c",
188
+ ...register("Best_Time_To_Call__c", {
189
+ required: true,
190
+ maxLength: 12
191
+ }),
192
+ label: "Best Time to Call",
193
+ sizes: "medium",
194
+ required: true,
195
+ error: !!errors.Best_Time_To_Call__c,
196
+ helperText: errors.Best_Time_To_Call__c?.message,
197
+ variant,
198
+ defaultValue: "Best Time to Call",
199
+ children: [
200
+ /* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
201
+ /* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
202
+ /* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
203
+ /* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
204
+ /* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
205
+ /* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
206
+ /* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
207
+ /* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
208
+ /* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
209
+ /* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
210
+ /* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
211
+ /* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
212
+ /* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
213
+ /* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
214
+ /* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
215
+ /* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
216
+ /* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
217
+ /* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
218
+ /* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
219
+ /* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
220
+ ]
221
+ }
159
222
  ) })
160
223
  ] }),
161
224
  children,
@@ -166,7 +229,7 @@ const ScheduleCall = ({
166
229
  color: getVariant(callToAction?.variant),
167
230
  as: "button",
168
231
  type: "submit",
169
- disabled: !isValid || isSubmitting,
232
+ disabled: !isValid,
170
233
  children: callToAction?.displayText
171
234
  }
172
235
  ) })
@@ -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,17 @@ 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: clsx(
103
+ "text_center",
104
+ form,
105
+ descriptionField({ variant })
106
+ ),
107
+ children: description
108
+ }
109
+ )
99
110
  ] }),
100
111
  /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
101
112
  /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
@@ -235,7 +246,13 @@ const ScheduleCallPremier = ({
235
246
  ] }),
236
247
  children,
237
248
  /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
238
- /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
249
+ /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
250
+ LoadingIndicator,
251
+ {
252
+ style: { marginInline: "auto" },
253
+ variant
254
+ }
255
+ ) : /* @__PURE__ */ jsx(
239
256
  Button,
240
257
  {
241
258
  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,
@@ -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;