@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
@@ -0,0 +1,181 @@
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/Checkbox.js";
9
+ import "../Input/CurrencyInput.js";
10
+ import "../Input/Dropdown.js";
11
+ /* empty css */
12
+ /* empty css */
13
+ import { Input } from "../Input/Input.js";
14
+ import "../Input/Input.css.js";
15
+ import { InputPhone } from "../Input/InputPhone.js";
16
+ import "../Input/InputTextArea.js";
17
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
18
+ import SvgAxosX from "../icons/AxosX/index.js";
19
+ import SvgComponent from "../icons/AxosX/Blue.js";
20
+ import "../icons/CheckIcon/CheckIcon.css.js";
21
+ /* empty css */
22
+ /* empty css */
23
+ /* empty css */
24
+ /* empty css */
25
+ import { associatedEmail } from "../utils/EverestValidity.js";
26
+ import { getVariant } from "../utils/getVariant.js";
27
+ import clsx from "clsx";
28
+ import { useForm, FormProvider } from "react-hook-form";
29
+ import * as z from "zod";
30
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
31
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
32
+ const ContactUs = ({
33
+ icon = false,
34
+ children,
35
+ onSubmit = (values) => {
36
+ console.log(values);
37
+ },
38
+ disclosure,
39
+ variant: fullVariant = "primary",
40
+ headline,
41
+ description,
42
+ callToAction,
43
+ validateEmail,
44
+ id
45
+ }) => {
46
+ const schema = z.object({
47
+ first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
48
+ last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
49
+ email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
50
+ phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
51
+ const removeDashes = val.replace(/-/gi, "");
52
+ if (removeDashes.length !== 10) {
53
+ ctx.addIssue({
54
+ code: z.ZodIssueCode.custom,
55
+ message: "Phone must have at least 10 and no more than 10 characters."
56
+ });
57
+ return z.NEVER;
58
+ }
59
+ return removeDashes;
60
+ })
61
+ });
62
+ const methods = useForm({
63
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
64
+ async: true
65
+ }),
66
+ mode: "all",
67
+ defaultValues: {
68
+ email: ""
69
+ }
70
+ });
71
+ const {
72
+ handleSubmit,
73
+ register,
74
+ formState: { errors, isValid, isSubmitting }
75
+ } = methods;
76
+ const submitForm = async (data) => {
77
+ await onSubmit(data);
78
+ };
79
+ const variant = getVariant(fullVariant);
80
+ return /* @__PURE__ */ jsx(
81
+ "section",
82
+ {
83
+ id: `id_${id}`,
84
+ className: clsx(formContainer({ variant })),
85
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
86
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
87
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
88
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
89
+ description && /* @__PURE__ */ jsx(
90
+ "div",
91
+ {
92
+ className: `${form} ${descriptionField({ variant })} text_center`,
93
+ children: description
94
+ }
95
+ )
96
+ ] }),
97
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
98
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
99
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
100
+ Input,
101
+ {
102
+ id: "first_name",
103
+ ...register("first_name", { required: true }),
104
+ label: "First Name",
105
+ sizes: "medium",
106
+ placeholder: "First Name",
107
+ required: true,
108
+ error: !!errors.first_name,
109
+ helperText: errors.first_name?.message,
110
+ variant
111
+ }
112
+ ) }),
113
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
114
+ Input,
115
+ {
116
+ id: "last_name",
117
+ ...register("last_name", { required: true }),
118
+ label: "Last Name",
119
+ sizes: "medium",
120
+ placeholder: "Last Name",
121
+ required: true,
122
+ error: !!errors.last_name,
123
+ helperText: errors.last_name?.message,
124
+ variant
125
+ }
126
+ ) }),
127
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
128
+ Input,
129
+ {
130
+ id: "email",
131
+ ...register("email", {
132
+ required: true,
133
+ validate: {
134
+ isValid: associatedEmail
135
+ }
136
+ }),
137
+ label: "Email",
138
+ sizes: "medium",
139
+ placeholder: "Email",
140
+ required: true,
141
+ error: !!errors.email,
142
+ helperText: errors.email?.message,
143
+ variant
144
+ }
145
+ ) }),
146
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
147
+ InputPhone,
148
+ {
149
+ id: "phone",
150
+ ...register("phone", { required: true, maxLength: 12 }),
151
+ label: "Phone",
152
+ sizes: "medium",
153
+ placeholder: "Phone",
154
+ required: true,
155
+ error: !!errors.phone,
156
+ helperText: errors.phone?.message,
157
+ variant
158
+ }
159
+ ) })
160
+ ] }),
161
+ children,
162
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
163
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
164
+ Button,
165
+ {
166
+ color: getVariant(callToAction?.variant),
167
+ as: "button",
168
+ type: "submit",
169
+ disabled: !isValid || isSubmitting,
170
+ children: callToAction?.displayText
171
+ }
172
+ ) })
173
+ ] })
174
+ ] }) })
175
+ },
176
+ id
177
+ );
178
+ };
179
+ export {
180
+ ContactUs
181
+ };
@@ -0,0 +1,13 @@
1
+ import { FormProps } from './FormProps';
2
+
3
+ export type ContactUsAASInputs = {
4
+ first_name: string;
5
+ last_name: string;
6
+ email: string;
7
+ phone: string;
8
+ company: string;
9
+ Current_Assets_Under_Management__c: string;
10
+ Role__c: string;
11
+ description: string;
12
+ };
13
+ export declare const ContactUsAAS: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,330 @@
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 { Dropdown } from "../Input/Dropdown.js";
7
+ /* empty css */
8
+ /* empty css */
9
+ import { Input } from "../Input/Input.js";
10
+ import "../Input/Input.css.js";
11
+ import { InputPhone } from "../Input/InputPhone.js";
12
+ import { InputTextArea } from "../Input/InputTextArea.js";
13
+ import "../icons/ArrowIcon/ArrowIcon.css.js";
14
+ import SvgAxosX from "../icons/AxosX/index.js";
15
+ import SvgComponent from "../icons/AxosX/Blue.js";
16
+ import "../icons/CheckIcon/CheckIcon.css.js";
17
+ /* empty css */
18
+ /* empty css */
19
+ /* empty css */
20
+ /* empty css */
21
+ import "../Accordion/Accordion.js";
22
+ import "../Accordion/Accordion.css.js";
23
+ import { getVariant } from "../utils/getVariant.js";
24
+ import "../Chevron/Chevron.css.js";
25
+ import "../AlertBanner/AlertBanner.css.js";
26
+ import { Button } from "../Button/Button.js";
27
+ import "../Button/Button.css.js";
28
+ import "react";
29
+ import "react-use";
30
+ /* empty css */
31
+ import "../Article/Article.css.js";
32
+ import "../ArticlesSet/ArticlesSet.css.js";
33
+ /* empty css */
34
+ /* empty css */
35
+ import "../IconBillboard/IconBillboard.css.js";
36
+ /* empty css */
37
+ import clsx from "clsx";
38
+ import { useForm, FormProvider } from "react-hook-form";
39
+ import { z } from "zod";
40
+ import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
41
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
42
+ import { LoadingIndicator } from "../LoadingIndicator/index.js";
43
+ import "../Input/RadioButton.js";
44
+ import "iframe-resizer";
45
+ import "../Calculators/calculator.css.js";
46
+ /* empty css */
47
+ import "../Carousel/index.js";
48
+ /* empty css */
49
+ import "../Comparison/Comparison.css.js";
50
+ import "../HeroBanner/HeroBanner.css.js";
51
+ import "../HeroBanner/SelectionBanner.css.js";
52
+ import "../SetContainer/SetContainer.css.js";
53
+ import "../Tab/Tab.css.js";
54
+ import "../icons/Star/Star.css.js";
55
+ import "../ContentBanner/ContentBanner.css.js";
56
+ /* empty css */
57
+ import "../ExecutiveBio/ExecutiveBio.css.js";
58
+ import "../FaqAccordion/index.js";
59
+ import "../FooterDisclosure/FooterDisclosure.css.js";
60
+ /* empty css */
61
+ import "../ImageBillboard/ImageBillboard.css.js";
62
+ import "../LandingPageHeader/LandingPageHeader.css.js";
63
+ /* empty css */
64
+ import "../Modal/contextApi/store.js";
65
+ /* empty css */
66
+ /* empty css */
67
+ /* empty css */
68
+ /* empty css */
69
+ /* empty css */
70
+ /* empty css */
71
+ import "../StepItem/StepItem.css.js";
72
+ import "../StepItemSet/StepItemSet.css.js";
73
+ import "../Table/Table.css.js";
74
+ /* empty css */
75
+ /* empty css */
76
+ /* empty css */
77
+ import "next/script.js";
78
+ /* empty css */
79
+ /* empty css */
80
+ import { CurrentAssets } from "./FormEnums.js";
81
+ const ContactUsAAS = ({
82
+ icon = false,
83
+ children,
84
+ onSubmit = (values) => {
85
+ console.log(values);
86
+ },
87
+ disclosure,
88
+ variant: fullVariant = "primary",
89
+ headline,
90
+ description,
91
+ callToAction,
92
+ validateEmail,
93
+ id
94
+ }) => {
95
+ const schema = z.object({
96
+ first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
97
+ last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
98
+ email: z.string().email({ message: "Business email is required." }).refine(async (val) => await validateEmail(val)),
99
+ phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Business phone is required." }).max(12, { message: "Business phone is required." }).transform((val, ctx) => {
100
+ const removeDashes = val.replace(/-/gi, "");
101
+ if (removeDashes.length !== 10) {
102
+ ctx.addIssue({
103
+ code: z.ZodIssueCode.custom,
104
+ message: "Business phone must have at least 10 and no more than 10 characters."
105
+ });
106
+ return z.NEVER;
107
+ }
108
+ return removeDashes;
109
+ }),
110
+ company: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Company is required." }),
111
+ Current_Assets_Under_Management__c: z.enum(CurrentAssets, {
112
+ required_error: "Please select an asset",
113
+ invalid_type_error: "Please select an asset"
114
+ }),
115
+ Role__c: z.string({ message: "Role is required." }).regex(/^[^\s][A-Za-z()-][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^{}|~<>;:[\]]{1,}$/g, {
116
+ message: "Role is required."
117
+ }).trim().min(2, { message: "Role is required." }).transform((e) => e === "" ? void 0 : e),
118
+ description: z.string().trim().max(32e3).min(1)
119
+ });
120
+ const methods = useForm({
121
+ resolver: zodResolver(
122
+ schema.merge(SalesforceSchema),
123
+ {
124
+ async: true
125
+ },
126
+ { mode: "async" }
127
+ ),
128
+ mode: "onChange",
129
+ shouldUnregister: true,
130
+ defaultValues: {
131
+ email: "",
132
+ Role__c: "",
133
+ Current_Assets_Under_Management__c: ""
134
+ }
135
+ });
136
+ const {
137
+ handleSubmit,
138
+ register,
139
+ formState: { errors, isValid, isSubmitting }
140
+ } = methods;
141
+ const submitForm = async (data) => {
142
+ await onSubmit(data);
143
+ };
144
+ const variant = getVariant(fullVariant);
145
+ return /* @__PURE__ */ jsx(
146
+ "section",
147
+ {
148
+ id: `id_${id}`,
149
+ className: clsx(formContainer({ variant })),
150
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
151
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
152
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
153
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
154
+ description && /* @__PURE__ */ jsx(
155
+ "div",
156
+ {
157
+ className: `${form} ${descriptionField({ variant })} text_center`,
158
+ children: description
159
+ }
160
+ )
161
+ ] }),
162
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
163
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
164
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
165
+ Input,
166
+ {
167
+ id: "first_name",
168
+ ...register("first_name", { required: true }),
169
+ label: "First Name",
170
+ sizes: "medium",
171
+ placeholder: "",
172
+ required: true,
173
+ error: !!errors.first_name,
174
+ helperText: errors.first_name?.message,
175
+ variant
176
+ }
177
+ ) }),
178
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
179
+ Input,
180
+ {
181
+ id: "last_name",
182
+ ...register("last_name", { required: true }),
183
+ label: "Last Name",
184
+ sizes: "medium",
185
+ placeholder: "",
186
+ required: true,
187
+ error: !!errors.last_name,
188
+ helperText: errors.last_name?.message,
189
+ variant
190
+ }
191
+ ) }),
192
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
193
+ Input,
194
+ {
195
+ id: "email",
196
+ ...register("email", {
197
+ required: true
198
+ }),
199
+ type: "email",
200
+ label: "Business Email",
201
+ sizes: "medium",
202
+ placeholder: "",
203
+ required: true,
204
+ error: !!errors.email,
205
+ helperText: errors.email?.message,
206
+ variant
207
+ }
208
+ ) }),
209
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
210
+ InputPhone,
211
+ {
212
+ id: "phone",
213
+ ...register("phone", {
214
+ required: true,
215
+ maxLength: 12
216
+ }),
217
+ label: "Business Phone",
218
+ sizes: "medium",
219
+ placeholder: "",
220
+ type: "tel",
221
+ required: true,
222
+ error: !!errors.phone,
223
+ helperText: errors.phone?.message,
224
+ variant
225
+ }
226
+ ) }),
227
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
228
+ Input,
229
+ {
230
+ id: "company",
231
+ ...register("company", { required: true }),
232
+ label: "Company",
233
+ sizes: "medium",
234
+ placeholder: "",
235
+ required: true,
236
+ error: !!errors.company,
237
+ helperText: errors.company?.message,
238
+ variant
239
+ }
240
+ ) }),
241
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
242
+ Dropdown,
243
+ {
244
+ id: "Current_Assets_Under_Management__c",
245
+ ...register("Current_Assets_Under_Management__c", {
246
+ required: true
247
+ }),
248
+ label: "Current Assets Under Management",
249
+ sizes: "medium",
250
+ required: true,
251
+ error: !!errors.Current_Assets_Under_Management__c,
252
+ helperText: errors.Current_Assets_Under_Management__c?.message,
253
+ variant,
254
+ defaultValue: "",
255
+ children: [
256
+ /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select option" }),
257
+ /* @__PURE__ */ jsx("option", { value: "$0 - $25M", children: "$0 — $25M" }),
258
+ /* @__PURE__ */ jsx("option", { value: "$26M - $150M", children: "$26M — $150M" }),
259
+ /* @__PURE__ */ jsx("option", { value: "$151M - $500M", children: "$151M — $500M" }),
260
+ /* @__PURE__ */ jsx("option", { value: "$501M - $1B", children: "$501M — $1B" }),
261
+ /* @__PURE__ */ jsx("option", { value: "$1B+", children: "$1B+" })
262
+ ]
263
+ }
264
+ ) }),
265
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
266
+ Dropdown,
267
+ {
268
+ id: "Role__c",
269
+ ...register("Role__c", {
270
+ required: true
271
+ }),
272
+ label: "What best describes your role?",
273
+ sizes: "medium",
274
+ required: true,
275
+ error: !!errors.Role__c,
276
+ helperText: errors.Role__c?.message,
277
+ variant,
278
+ defaultValue: "",
279
+ children: [
280
+ /* @__PURE__ */ jsx("option", { value: "", disabled: true, children: "Select Option" }),
281
+ /* @__PURE__ */ jsx("option", { value: "RIA Principal", children: "RIA Principal" }),
282
+ /* @__PURE__ */ jsx("option", { value: "Advisor (IAR)", children: "Advisor (IAR)" }),
283
+ /* @__PURE__ */ jsx("option", { value: "Broker-Dealer Affiliated Advisor", children: "Broker-Dealer Affiliated Advisor" }),
284
+ /* @__PURE__ */ jsx("option", { value: "I am not a Financial Advisor", children: "I am not a Financial Advisor" }),
285
+ /* @__PURE__ */ jsx("option", { value: "Other", children: "Other" })
286
+ ]
287
+ }
288
+ ) }),
289
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
290
+ InputTextArea,
291
+ {
292
+ id: "description",
293
+ ...register("description"),
294
+ label: "Comments",
295
+ sizes: "medium",
296
+ placeholder: "",
297
+ error: !!errors.description,
298
+ helperText: errors.description?.message,
299
+ variant,
300
+ rows: 1
301
+ }
302
+ ) })
303
+ ] }),
304
+ children,
305
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
306
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx("div", { className: actions, children: isSubmitting ? /* @__PURE__ */ jsx(
307
+ LoadingIndicator,
308
+ {
309
+ style: { marginInline: "auto" },
310
+ variant
311
+ }
312
+ ) : /* @__PURE__ */ jsx(
313
+ Button,
314
+ {
315
+ color: getVariant(callToAction?.variant),
316
+ as: "button",
317
+ type: "submit",
318
+ disabled: !isValid || isSubmitting,
319
+ children: callToAction?.displayText
320
+ }
321
+ ) }) })
322
+ ] })
323
+ ] }) })
324
+ },
325
+ id
326
+ );
327
+ };
328
+ export {
329
+ ContactUsAAS
330
+ };
@@ -1,4 +1,4 @@
1
- import { FormProps } from '../main';
1
+ import { FormProps } from './FormProps';
2
2
 
3
3
  export type ContactUsBusinessNmlsIdInputs = {
4
4
  first_name: string;
@@ -39,20 +39,25 @@ import { useForm, FormProvider } from "react-hook-form";
39
39
  import { z } from "zod";
40
40
  import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, disclosureForm, actions } from "./Forms.css.js";
41
41
  import { SalesforceSchema } from "./SalesforceFieldsForm.js";
42
+ import "../LoadingIndicator/LoadingIndicator.css.js";
43
+ import "../Input/RadioButton.js";
42
44
  import "iframe-resizer";
43
45
  import "../Calculators/calculator.css.js";
44
46
  /* empty css */
45
47
  import "../Carousel/index.js";
46
48
  /* empty css */
49
+ import "../Comparison/Comparison.css.js";
47
50
  import "../HeroBanner/HeroBanner.css.js";
51
+ import "../HeroBanner/SelectionBanner.css.js";
52
+ import "../SetContainer/SetContainer.css.js";
53
+ import "../Tab/Tab.css.js";
54
+ import "../icons/Star/Star.css.js";
48
55
  import "../ContentBanner/ContentBanner.css.js";
49
56
  /* empty css */
50
57
  import "../ExecutiveBio/ExecutiveBio.css.js";
51
58
  import "../FaqAccordion/index.js";
52
59
  import "../FooterDisclosure/FooterDisclosure.css.js";
53
60
  /* empty css */
54
- import "../HeroBanner/SelectionBanner.css.js";
55
- import "../SetContainer/SetContainer.css.js";
56
61
  import "../ImageBillboard/ImageBillboard.css.js";
57
62
  import "../LandingPageHeader/LandingPageHeader.css.js";
58
63
  /* empty css */
@@ -136,7 +141,17 @@ const ContactUsBusiness = ({
136
141
  icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
137
142
  /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
138
143
  /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
139
- description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField} text_center`, children: description })
144
+ description && /* @__PURE__ */ jsx(
145
+ "div",
146
+ {
147
+ className: clsx(
148
+ "text_center",
149
+ form,
150
+ descriptionField({ variant })
151
+ ),
152
+ children: description
153
+ }
154
+ )
140
155
  ] }),
141
156
  /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
142
157
  /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
@@ -1,6 +1,4 @@
1
- import { ChevronProps } from '../Chevron/Chevron.interface';
2
- import { QuaternaryTypes } from '../utils/variant.types';
3
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import { FormProps } from '../main';
4
2
 
5
3
  export type DealerServicesInputs = {
6
4
  first_name: string;
@@ -16,17 +14,4 @@ export type DealerServicesInputs = {
16
14
  zip: string;
17
15
  description: string;
18
16
  };
19
- export interface DealerServicesFormProps extends PropsWithChildren {
20
- id?: string;
21
- onSubmit?: (values: {
22
- [index: string]: string;
23
- }) => void;
24
- icon?: boolean;
25
- headline?: ReactNode | string;
26
- description?: ReactNode | string;
27
- disclosure?: ReactNode | string;
28
- variant?: QuaternaryTypes;
29
- validateEmail: (email: string) => Promise<boolean>;
30
- callToAction: Omit<ChevronProps, "targetUrl">;
31
- }
32
- export declare const DealerServices: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: DealerServicesFormProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const DealerServices: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: FormProps) => import("react/jsx-runtime").JSX.Element;
@@ -96,7 +96,17 @@ const DealerServices = ({
96
96
  icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
97
97
  /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
98
98
  /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
99
- 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
+ )
100
110
  ] }),
101
111
  /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
102
112
  /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
@@ -1,4 +1,4 @@
1
- import { FormProps } from './ScheduleCall';
1
+ import { FormProps } from './FormProps';
2
2
 
3
3
  export type EmailOnlyInputs = {
4
4
  email: string;