@axos-web-dev/shared-components 0.0.50 → 0.0.52

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 (71) hide show
  1. package/dist/Button/GoBackButton.js +1 -1
  2. package/dist/CallToActionBar/index.js +2 -3
  3. package/dist/Carousel/index.js +2 -3
  4. package/dist/Chevron/index.js +6 -2
  5. package/dist/ContentBanner/index.js +1 -1
  6. package/dist/DownloadTile/index.js +2 -2
  7. package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
  8. package/dist/ExecutiveBio/ExecutiveBioSet.js +1 -1
  9. package/dist/FaqAccordion/index.js +6 -3
  10. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +6 -2
  11. package/dist/Forms/ApplicationStart.d.ts +10 -0
  12. package/dist/Forms/ApplicationStart.js +191 -0
  13. package/dist/Forms/ContactUsBusiness.d.ts +11 -0
  14. package/dist/Forms/ContactUsBusiness.js +246 -0
  15. package/dist/Forms/EmailOnly.d.ts +6 -0
  16. package/dist/Forms/EmailOnly.js +160 -0
  17. package/dist/Forms/Forms.css.d.ts +22 -1
  18. package/dist/Forms/Forms.css.js +11 -9
  19. package/dist/Forms/RenderForm.js +52 -1
  20. package/dist/Forms/SalesforceFieldsForm.js +11 -11
  21. package/dist/Forms/ScheduleCall.d.ts +1 -1
  22. package/dist/Forms/ScheduleCall.js +11 -7
  23. package/dist/Forms/ScheduleCallPremier.d.ts +12 -0
  24. package/dist/Forms/ScheduleCallPremier.js +255 -0
  25. package/dist/Forms/SuccesForm.d.ts +1 -1
  26. package/dist/Forms/SuccesForm.js +39 -3
  27. package/dist/Forms/index.d.ts +4 -0
  28. package/dist/Forms/index.js +12 -3
  29. package/dist/Hyperlink/index.js +6 -2
  30. package/dist/IconBillboard/IconBillboard.js +2 -2
  31. package/dist/IconBillboard/IconBillboardSet.js +2 -2
  32. package/dist/ImageBillboard/ImageBillboard.js +2 -2
  33. package/dist/ImageBillboard/ImageBillboardSet.js +6 -6
  34. package/dist/ImageLink/ImageLink.js +6 -2
  35. package/dist/ImageLink/ImageLinkSet.js +8 -4
  36. package/dist/ImageLink/index.js +6 -2
  37. package/dist/Input/Checkbox.css.d.ts +10 -0
  38. package/dist/Input/Checkbox.css.js +8 -0
  39. package/dist/Input/Checkbox.d.ts +5 -0
  40. package/dist/Input/Checkbox.js +48 -0
  41. package/dist/Input/CurrencyInput.d.ts +3 -0
  42. package/dist/Input/CurrencyInput.js +27 -0
  43. package/dist/Input/Dropdown.css.d.ts +1 -0
  44. package/dist/Input/Dropdown.css.js +6 -0
  45. package/dist/Input/Dropdown.d.ts +3 -0
  46. package/dist/Input/Dropdown.js +55 -0
  47. package/dist/Input/Input.css.d.ts +7 -0
  48. package/dist/Input/Input.css.js +8 -7
  49. package/dist/Input/InputPhone.js +5 -0
  50. package/dist/Input/InputProps.d.ts +29 -0
  51. package/dist/Input/InputProps.js +1 -0
  52. package/dist/Input/index.d.ts +4 -0
  53. package/dist/Input/index.js +8 -0
  54. package/dist/Modal/Modal.js +6 -2
  55. package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +5 -4
  56. package/dist/NavigationMenu/AxosAdvisor/index.js +1 -2
  57. package/dist/SecondaryFooter/index.js +1 -1
  58. package/dist/SetContainer/SetContainer.js +7 -3
  59. package/dist/StepItems/StepItemsSet.js +1 -1
  60. package/dist/Table/Table.js +2 -2
  61. package/dist/VideoWrapper/index.js +7 -7
  62. package/dist/assets/Button/Button.css +1 -1
  63. package/dist/assets/Forms/Forms.css +52 -29
  64. package/dist/assets/Input/Checkbox.css +6 -0
  65. package/dist/assets/Input/Dropdown.css +10 -0
  66. package/dist/assets/Input/Input.css +51 -30
  67. package/dist/assets/globals.css +1 -1
  68. package/dist/icons/CheckIcon/index.js +1 -1
  69. package/dist/main.d.ts +1 -1
  70. package/dist/main.js +25 -7
  71. package/package.json +3 -2
@@ -0,0 +1,160 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { zodResolver } from "@hookform/resolvers/zod";
4
+ import "../Input/Checkbox.js";
5
+ import "../Input/CurrencyInput.js";
6
+ import "../Input/Dropdown.js";
7
+ /* empty css */
8
+ /* empty css */
9
+ import { Input } from "../Input/Input.js";
10
+ import "../Input/Input.css.js";
11
+ import "../Input/InputPhone.js";
12
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
13
+ import SvgAxosX from "../icons/AxosX/index.js";
14
+ import SvgComponent from "../icons/AxosX/Blue.js";
15
+ import "../icons/CheckIcon/CheckIcon.css.js";
16
+ /* empty css */
17
+ /* empty css */
18
+ /* empty css */
19
+ /* empty css */
20
+ import "../Accordion/Accordion.js";
21
+ import "../Accordion/Accordion.css.js";
22
+ import { getVariant } from "../utils/getVariant.js";
23
+ import "../Chevron/Chevron.css.js";
24
+ import "../AlertBanner/AlertBanner.css.js";
25
+ import { Button } from "../Button/Button.js";
26
+ import "../Button/Button.css.js";
27
+ import "react";
28
+ import "react-use";
29
+ /* empty css */
30
+ import "../IconBillboard/IconBillboard.css.js";
31
+ /* empty css */
32
+ import clsx from "clsx";
33
+ /* empty css */
34
+ import "../Carousel/index.js";
35
+ /* empty css */
36
+ import "../HeroBanner/HeroBanner.css.js";
37
+ import "../ContentBanner/ContentBanner.css.js";
38
+ /* empty css */
39
+ import "../ExecutiveBio/ExecutiveBio.css.js";
40
+ import "../FaqAccordion/index.js";
41
+ import "../FooterDisclosure/FooterDisclosure.css.js";
42
+ /* empty css */
43
+ import { associatedEmail } from "../utils/EverestValidity.js";
44
+ import { useForm, FormProvider } from "react-hook-form";
45
+ import { z } from "zod";
46
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
47
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
48
+ import "../SetContainer/SetContainer.css.js";
49
+ import "../ImageBillboard/ImageBillboard.css.js";
50
+ import "../LandingPageHeader/LandingPageHeader.css.js";
51
+ /* empty css */
52
+ import "../Modal/contextApi/store.js";
53
+ /* empty css */
54
+ /* empty css */
55
+ /* empty css */
56
+ /* empty css */
57
+ import "../StepItems/StepItems.css.js";
58
+ import "../Table/Table.css.js";
59
+ /* empty css */
60
+ import "next/script.js";
61
+ /* empty css */
62
+ /* empty css */
63
+ const EmailOnly = ({
64
+ icon = false,
65
+ children,
66
+ onSubmit = (values) => {
67
+ console.log(values);
68
+ },
69
+ disclosure,
70
+ variant: fullVariant = "tertiary",
71
+ headline,
72
+ description,
73
+ callToAction,
74
+ validateEmail,
75
+ id
76
+ }) => {
77
+ const schema = z.object({
78
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val))
79
+ });
80
+ const methods = useForm({
81
+ resolver: async (data, context, options) => {
82
+ return zodResolver(schema.merge(SalesforceSchema))(
83
+ data,
84
+ context,
85
+ options
86
+ );
87
+ },
88
+ mode: "all",
89
+ defaultValues: {
90
+ email: ""
91
+ }
92
+ });
93
+ const {
94
+ handleSubmit,
95
+ register,
96
+ formState: { errors, isValid, isSubmitting }
97
+ } = methods;
98
+ const submitForm = async (data) => {
99
+ await onSubmit(data);
100
+ };
101
+ const variant = getVariant(fullVariant);
102
+ const formType = "email";
103
+ return /* @__PURE__ */ jsx(
104
+ "section",
105
+ {
106
+ id: `id_${id}`,
107
+ className: clsx(formContainer({ variant })),
108
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
109
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
110
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
111
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
112
+ description && /* @__PURE__ */ jsx(
113
+ "div",
114
+ {
115
+ className: `${form} ${descriptionField({ variant })} text_center`,
116
+ children: description
117
+ }
118
+ )
119
+ ] }),
120
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
121
+ /* @__PURE__ */ jsx("div", { className: clsx(formWrapper({ variant, formType })), children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
122
+ Input,
123
+ {
124
+ id: "email",
125
+ ...register("email", {
126
+ required: true,
127
+ validate: {
128
+ isValid: associatedEmail
129
+ }
130
+ }),
131
+ label: "Email",
132
+ sizes: "medium",
133
+ placeholder: "Email",
134
+ required: true,
135
+ error: !!errors.email,
136
+ helperText: errors.email?.message,
137
+ variant
138
+ }
139
+ ) }) }),
140
+ children,
141
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
142
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
143
+ Button,
144
+ {
145
+ color: getVariant(callToAction?.variant),
146
+ as: "button",
147
+ type: "submit",
148
+ disabled: !isValid || isSubmitting,
149
+ children: callToAction?.displayText
150
+ }
151
+ ) })
152
+ ] })
153
+ ] }) })
154
+ },
155
+ id
156
+ );
157
+ };
158
+ export {
159
+ EmailOnly
160
+ };
@@ -75,6 +75,11 @@ export declare const formWrapper: import('@vanilla-extract/recipes').RuntimeFn<{
75
75
  color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
76
76
  };
77
77
  };
78
+ formType: {
79
+ email: {
80
+ gridTemplateColumns: "1fr";
81
+ };
82
+ };
78
83
  }>;
79
84
  export declare const actions: string;
80
85
  export declare const disclosureForm: import('@vanilla-extract/recipes').RuntimeFn<{
@@ -132,4 +137,20 @@ export declare const success_circle: import('@vanilla-extract/recipes').RuntimeF
132
137
  };
133
138
  };
134
139
  }>;
135
- export declare const descriptionField: string;
140
+ export declare const descriptionField: import('@vanilla-extract/recipes').RuntimeFn<{
141
+ variant: {
142
+ primary: {
143
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
144
+ };
145
+ secondary: {
146
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
147
+ };
148
+ tertiary: {
149
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
150
+ };
151
+ quaternary: {
152
+ color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
153
+ };
154
+ };
155
+ }>;
156
+ export declare const fullRowForm: string;
@@ -7,15 +7,16 @@ 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" } }, defaultVariants: {}, compoundVariants: [] });
11
- var actions = "tfms6ah";
12
- var disclosureForm = createRuntimeFn({ defaultClassName: "tfms6ai", variantClassNames: { variant: { primary: "tfms6aj", secondary: "tfms6ak", tertiary: "tfms6al", quaternary: "tfms6am" } }, defaultVariants: {}, compoundVariants: [] });
13
- var form = "tfms6an";
14
- var success_wrap = createRuntimeFn({ defaultClassName: "tfms6aq", variantClassNames: { variant: { primary: "tfms6ar", secondary: "tfms6as", tertiary: "tfms6at", quaternary: "tfms6au" } }, defaultVariants: {}, compoundVariants: [] });
15
- var success_icon = "tfms6av";
16
- var succes_check_mark = "tfms6aw";
17
- var success_circle = createRuntimeFn({ defaultClassName: "tfms6ax", variantClassNames: { variant: { primary: "tfms6ay", secondary: "tfms6az", tertiary: "tfms6a10", quaternary: "tfms6a11" } }, defaultVariants: {}, compoundVariants: [] });
18
- var descriptionField = "tfms6a12";
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";
19
20
  export {
20
21
  actions,
21
22
  descriptionField,
@@ -23,6 +24,7 @@ export {
23
24
  form,
24
25
  formContainer,
25
26
  formWrapper,
27
+ fullRowForm,
26
28
  headerContainer,
27
29
  headerForm,
28
30
  iconForm,
@@ -1,8 +1,59 @@
1
1
  import { jsx, Fragment } from "react/jsx-runtime";
2
+ import "@hookform/resolvers/zod";
3
+ import "../Modal/contextApi/store.js";
4
+ import "clsx";
5
+ import "react";
6
+ import "../Button/Button.css.js";
7
+ import "react-use";
8
+ import "../Input/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import "../Input/Dropdown.js";
11
+ /* empty css */
12
+ /* empty css */
13
+ import "../Input/Input.js";
14
+ import "../Input/Input.css.js";
15
+ import "../Input/InputPhone.js";
16
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
17
+ import "../icons/CheckIcon/CheckIcon.css.js";
18
+ /* empty css */
19
+ /* empty css */
20
+ /* empty css */
21
+ /* empty css */
22
+ import "react-hook-form";
2
23
  import "./Forms.css.js";
3
24
  import "./SalesforceFieldsForm.js";
25
+ import "../Accordion/Accordion.js";
26
+ import "../Accordion/Accordion.css.js";
27
+ import "../Chevron/Chevron.css.js";
28
+ import "../AlertBanner/AlertBanner.css.js";
29
+ /* empty css */
30
+ import "../IconBillboard/IconBillboard.css.js";
31
+ /* empty css */
32
+ /* empty css */
33
+ import "../Carousel/index.js";
34
+ /* empty css */
35
+ import "../HeroBanner/HeroBanner.css.js";
36
+ import "../ContentBanner/ContentBanner.css.js";
37
+ /* empty css */
38
+ import "../ExecutiveBio/ExecutiveBio.css.js";
39
+ import "../FaqAccordion/index.js";
40
+ import "../FooterDisclosure/FooterDisclosure.css.js";
41
+ /* empty css */
42
+ import "../SetContainer/SetContainer.css.js";
43
+ import "../ImageBillboard/ImageBillboard.css.js";
44
+ import "../LandingPageHeader/LandingPageHeader.css.js";
45
+ /* empty css */
46
+ /* empty css */
47
+ /* empty css */
48
+ /* empty css */
49
+ /* empty css */
50
+ import "../StepItems/StepItems.css.js";
51
+ import "../Table/Table.css.js";
52
+ /* empty css */
53
+ import "next/script.js";
54
+ /* empty css */
55
+ /* empty css */
4
56
  import { ScheduleCall } from "./ScheduleCall.js";
5
- import "clsx";
6
57
  const renderSwitch = (form = "Contact Form", props) => {
7
58
  switch (form) {
8
59
  case "Contact Form":
@@ -36,7 +36,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
36
36
  {
37
37
  type: "hidden",
38
38
  ...register("Brand_SFDC2__c", {
39
- value: salesforceFields == null ? void 0 : salesforceFields.brand
39
+ value: salesforceFields?.brand
40
40
  })
41
41
  }
42
42
  ),
@@ -45,7 +45,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
45
45
  {
46
46
  type: "hidden",
47
47
  ...register("Branch_SFDC2__c", {
48
- value: salesforceFields == null ? void 0 : salesforceFields.branch
48
+ value: salesforceFields?.branch
49
49
  })
50
50
  }
51
51
  ),
@@ -54,7 +54,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
54
54
  {
55
55
  type: "hidden",
56
56
  ...register("Sub_Branch_SFDC2__c", {
57
- value: salesforceFields == null ? void 0 : salesforceFields.subBranch
57
+ value: salesforceFields?.subBranch
58
58
  })
59
59
  }
60
60
  ),
@@ -63,7 +63,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
63
63
  {
64
64
  type: "hidden",
65
65
  ...register("Lead_Source_Detail_SFDC2__c", {
66
- value: salesforceFields == null ? void 0 : salesforceFields.leadSourceDetail
66
+ value: salesforceFields?.leadSourceDetail
67
67
  })
68
68
  }
69
69
  ),
@@ -72,7 +72,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
72
72
  "input",
73
73
  {
74
74
  type: "hidden",
75
- ...register("Web_Source__c", { value: location == null ? void 0 : location.pathname })
75
+ ...register("Web_Source__c", { value: location?.pathname })
76
76
  }
77
77
  ),
78
78
  /* @__PURE__ */ jsx(
@@ -80,7 +80,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
80
80
  {
81
81
  type: "hidden",
82
82
  ...register("Marketing_Source__c", {
83
- value: `${(queryParams == null ? void 0 : queryParams.utm_campaign) ? queryParams.utm_campaign : "no campaign_no source"}`
83
+ value: `${queryParams?.utm_campaign ? queryParams.utm_campaign : "no campaign_no source"}`
84
84
  })
85
85
  }
86
86
  ),
@@ -89,7 +89,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
89
89
  {
90
90
  type: "hidden",
91
91
  ...register("First_UTMCampaign__c", {
92
- value: queryParams == null ? void 0 : queryParams.utm_campaign
92
+ value: queryParams?.utm_campaign
93
93
  })
94
94
  }
95
95
  ),
@@ -98,7 +98,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
98
98
  {
99
99
  type: "hidden",
100
100
  ...register("First_UTMContent__c", {
101
- value: queryParams == null ? void 0 : queryParams.utm_content
101
+ value: queryParams?.utm_content
102
102
  })
103
103
  }
104
104
  ),
@@ -107,7 +107,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
107
107
  {
108
108
  type: "hidden",
109
109
  ...register("First_UTMMedium__c", {
110
- value: queryParams == null ? void 0 : queryParams.utm_medium
110
+ value: queryParams?.utm_medium
111
111
  })
112
112
  }
113
113
  ),
@@ -116,7 +116,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
116
116
  {
117
117
  type: "hidden",
118
118
  ...register("First_UTMSource__c", {
119
- value: queryParams == null ? void 0 : queryParams.utm_source
119
+ value: queryParams?.utm_source
120
120
  })
121
121
  }
122
122
  ),
@@ -125,7 +125,7 @@ const SalesforceFieldsForm = memo(function SaleforceFieldForm({
125
125
  {
126
126
  type: "hidden",
127
127
  ...register("First_UTMTerm__c", {
128
- value: queryParams == null ? void 0 : queryParams.utm_term
128
+ value: queryParams?.utm_term
129
129
  })
130
130
  }
131
131
  )
@@ -11,7 +11,7 @@ export type Inputs = {
11
11
  export interface FormProps extends PropsWithChildren {
12
12
  id?: string;
13
13
  onSubmit?: (values: {
14
- [index: string]: string;
14
+ [index: string]: string | boolean | number;
15
15
  }) => void;
16
16
  icon?: boolean;
17
17
  headline?: ReactNode | string;
@@ -5,6 +5,11 @@ import { Button } from "../Button/Button.js";
5
5
  import "../Button/Button.css.js";
6
6
  import "react";
7
7
  import "react-use";
8
+ import "../Input/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import "../Input/Dropdown.js";
11
+ /* empty css */
12
+ /* empty css */
8
13
  import { Input } from "../Input/Input.js";
9
14
  import "../Input/Input.css.js";
10
15
  import { InputPhone } from "../Input/InputPhone.js";
@@ -37,7 +42,6 @@ const ScheduleCall = ({
37
42
  validateEmail,
38
43
  id
39
44
  }) => {
40
- var _a, _b, _c, _d;
41
45
  const schema = z.object({
42
46
  first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
43
47
  last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
@@ -95,7 +99,7 @@ const ScheduleCall = ({
95
99
  placeholder: "First Name",
96
100
  required: true,
97
101
  error: !!errors.first_name,
98
- helperText: (_a = errors.first_name) == null ? void 0 : _a.message,
102
+ helperText: errors.first_name?.message,
99
103
  variant
100
104
  }
101
105
  ) }),
@@ -109,7 +113,7 @@ const ScheduleCall = ({
109
113
  placeholder: "Last Name",
110
114
  required: true,
111
115
  error: !!errors.last_name,
112
- helperText: (_b = errors.last_name) == null ? void 0 : _b.message,
116
+ helperText: errors.last_name?.message,
113
117
  variant
114
118
  }
115
119
  ) }),
@@ -128,7 +132,7 @@ const ScheduleCall = ({
128
132
  placeholder: "Email",
129
133
  required: true,
130
134
  error: !!errors.email,
131
- helperText: (_c = errors.email) == null ? void 0 : _c.message,
135
+ helperText: errors.email?.message,
132
136
  variant
133
137
  }
134
138
  ) }),
@@ -142,7 +146,7 @@ const ScheduleCall = ({
142
146
  placeholder: "Phone",
143
147
  required: true,
144
148
  error: !!errors.phone,
145
- helperText: (_d = errors.phone) == null ? void 0 : _d.message,
149
+ helperText: errors.phone?.message,
146
150
  variant
147
151
  }
148
152
  ) })
@@ -152,11 +156,11 @@ const ScheduleCall = ({
152
156
  /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
153
157
  Button,
154
158
  {
155
- color: getVariant(callToAction == null ? void 0 : callToAction.variant),
159
+ color: getVariant(callToAction?.variant),
156
160
  as: "button",
157
161
  type: "submit",
158
162
  disabled: !isValid || isSubmitting,
159
- children: callToAction == null ? void 0 : callToAction.displayText
163
+ children: callToAction?.displayText
160
164
  }
161
165
  ) })
162
166
  ] })
@@ -0,0 +1,12 @@
1
+ import { FormProps } from './ScheduleCall';
2
+
3
+ export type ScheduleCallPremierInputs = {
4
+ first_name: string;
5
+ last_name: string;
6
+ email: string;
7
+ phone: string;
8
+ Best_Contact_Date__c: string;
9
+ Best_Time_To_Call__c: string;
10
+ Potential_Funding__c: string;
11
+ };
12
+ export declare const ScheduleCallPremier: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;