@axos-web-dev/shared-components 0.0.57 → 0.0.58

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 (69) hide show
  1. package/dist/Article/Article.css.d.ts +230 -0
  2. package/dist/Article/Article.css.js +21 -0
  3. package/dist/Article/Article.d.ts +14 -0
  4. package/dist/Article/Article.js +51 -0
  5. package/dist/Article/index.d.ts +2 -0
  6. package/dist/Article/index.js +12 -0
  7. package/dist/ArticlesSet/ArticlesSet.css.d.ts +155 -0
  8. package/dist/ArticlesSet/ArticlesSet.css.js +21 -0
  9. package/dist/ArticlesSet/ArticlesSet.d.ts +12 -0
  10. package/dist/ArticlesSet/ArticlesSet.js +115 -0
  11. package/dist/ArticlesSet/index.d.ts +2 -0
  12. package/dist/ArticlesSet/index.js +12 -0
  13. package/dist/AwardsBanner/AwardsBanner.css.d.ts +2 -0
  14. package/dist/AwardsBanner/AwardsBanner.css.js +7 -0
  15. package/dist/AwardsBanner/AwardsBanner.d.ts +8 -0
  16. package/dist/AwardsBanner/AwardsBanner.js +18 -0
  17. package/dist/AwardsBanner/index.d.ts +2 -0
  18. package/dist/AwardsBanner/index.js +7 -0
  19. package/dist/AwardsItem/AwardsItem.css.d.ts +3 -0
  20. package/dist/AwardsItem/AwardsItem.css.js +10 -0
  21. package/dist/AwardsItem/AwardsItem.d.ts +9 -0
  22. package/dist/AwardsItem/AwardsItem.js +29 -0
  23. package/dist/AwardsItem/index.d.ts +2 -0
  24. package/dist/AwardsItem/index.js +8 -0
  25. package/dist/Carousel/index.js +5 -0
  26. package/dist/Chevron/index.js +6 -1
  27. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -39
  28. package/dist/ExecutiveBio/ExecutiveBio.css.js +12 -10
  29. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  30. package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +4 -2
  31. package/dist/ExecutiveBio/ExecutiveBio.js +104 -46
  32. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
  33. package/dist/ExecutiveBio/ExecutiveBioSet.js +22 -128
  34. package/dist/ExecutiveBio/index.js +2 -1
  35. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +6 -1
  36. package/dist/Forms/ApplicationStart.js +1 -0
  37. package/dist/Forms/ContactCompany.d.ts +25 -0
  38. package/dist/Forms/ContactCompany.js +190 -0
  39. package/dist/Forms/ContactUsBusiness.js +5 -0
  40. package/dist/Forms/DealerServices.d.ts +32 -0
  41. package/dist/Forms/DealerServices.js +311 -0
  42. package/dist/Forms/EmailOnly.js +5 -0
  43. package/dist/Forms/RenderForm.js +5 -0
  44. package/dist/Forms/ScheduleCall.js +1 -0
  45. package/dist/Forms/ScheduleCallPremier.js +1 -0
  46. package/dist/Forms/SuccesForm.d.ts +7 -3
  47. package/dist/Forms/SuccesForm.js +76 -61
  48. package/dist/Forms/index.d.ts +2 -0
  49. package/dist/Forms/index.js +4 -0
  50. package/dist/Hyperlink/index.js +6 -1
  51. package/dist/ImageLink/ImageLink.js +5 -0
  52. package/dist/ImageLink/ImageLinkSet.js +5 -0
  53. package/dist/ImageLink/index.js +6 -1
  54. package/dist/Input/CurrencyInput.js +1 -0
  55. package/dist/Input/InputPhone.js +1 -0
  56. package/dist/Input/InputTextArea.d.ts +16 -0
  57. package/dist/Input/InputTextArea.js +48 -0
  58. package/dist/Input/index.d.ts +1 -0
  59. package/dist/Input/index.js +2 -0
  60. package/dist/Modal/Modal.js +6 -1
  61. package/dist/SetContainer/SetContainer.js +5 -0
  62. package/dist/assets/Article/Article.css +243 -0
  63. package/dist/assets/ArticlesSet/ArticlesSet.css +234 -0
  64. package/dist/assets/AwardsBanner/AwardsBanner.css +19 -0
  65. package/dist/assets/AwardsItem/AwardsItem.css +40 -0
  66. package/dist/assets/ExecutiveBio/ExecutiveBio.css +61 -65
  67. package/dist/main.d.ts +4 -0
  68. package/dist/main.js +39 -1
  69. package/package.json +1 -1
@@ -16,8 +16,12 @@ import "react";
16
16
  import "../../Button/Button.css.js";
17
17
  import "react-use";
18
18
  /* empty css */
19
- import "../../IconBillboard/IconBillboard.css.js";
19
+ import "../../Article/Article.css.js";
20
+ import "../../ArticlesSet/ArticlesSet.css.js";
21
+ /* empty css */
20
22
  /* empty css */
23
+ /* empty css */
24
+ import "../../IconBillboard/IconBillboard.css.js";
21
25
  /* empty css */
22
26
  /* empty css */
23
27
  import "../../Carousel/index.js";
@@ -37,6 +41,7 @@ import "../../Input/Dropdown.js";
37
41
  import "../../Input/Input.js";
38
42
  import "../../Input/Input.css.js";
39
43
  import "../../Input/InputPhone.js";
44
+ import "../../Input/InputTextArea.js";
40
45
  import "react-hook-form";
41
46
  import "../../Forms/Forms.css.js";
42
47
  import "../../Forms/SalesforceFieldsForm.js";
@@ -13,6 +13,7 @@ import "../Input/Dropdown.js";
13
13
  import { Input } from "../Input/Input.js";
14
14
  import "../Input/Input.css.js";
15
15
  import { InputPhone } from "../Input/InputPhone.js";
16
+ import "../Input/InputTextArea.js";
16
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
17
18
  import SvgAxosX from "../icons/AxosX/index.js";
18
19
  import SvgComponent from "../icons/AxosX/Blue.js";
@@ -0,0 +1,25 @@
1
+ import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { QuaternaryTypes } from '../utils/variant.types';
3
+ import { PropsWithChildren, ReactNode } from 'react';
4
+
5
+ export type ContactCompanyInputs = {
6
+ first_name: string;
7
+ last_name: string;
8
+ email: string;
9
+ phone: string;
10
+ company: string;
11
+ };
12
+ export interface ContactCompanyFormProps extends PropsWithChildren {
13
+ id?: string;
14
+ onSubmit?: (values: {
15
+ [index: string]: string;
16
+ }) => void;
17
+ icon?: boolean;
18
+ headline?: ReactNode | string;
19
+ description?: ReactNode | string;
20
+ disclosure?: ReactNode | string;
21
+ variant?: QuaternaryTypes;
22
+ validateEmail: (email: string) => Promise<boolean>;
23
+ callToAction: Omit<ChevronProps, "targetUrl">;
24
+ }
25
+ export declare const ContactCompany: ({ icon, children, onSubmit, disclosure, variant: fullVariant, headline, description, callToAction, validateEmail, id, }: ContactCompanyFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,190 @@
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, fullRowForm, disclosureForm, actions } from "./Forms.css.js";
31
+ import { SalesforceSchema } from "./SalesforceFieldsForm.js";
32
+ const ContactCompany = ({
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
+ company: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Company is required." }).max(255, { message: "Company can have atmost 255 characters." })
62
+ });
63
+ const methods = useForm({
64
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
65
+ async: true
66
+ }),
67
+ mode: "all",
68
+ defaultValues: {
69
+ email: ""
70
+ }
71
+ });
72
+ const {
73
+ handleSubmit,
74
+ register,
75
+ formState: { errors, isValid, isSubmitting }
76
+ } = methods;
77
+ const submitForm = async (data) => {
78
+ await onSubmit(data);
79
+ };
80
+ const variant = getVariant(fullVariant);
81
+ return /* @__PURE__ */ jsx(
82
+ "section",
83
+ {
84
+ id: `id_${id}`,
85
+ className: clsx(formContainer({ variant })),
86
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
87
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
88
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
89
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
90
+ description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField} text_center`, children: description })
91
+ ] }),
92
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
93
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
94
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
95
+ Input,
96
+ {
97
+ id: "first_name",
98
+ ...register("first_name", { required: true }),
99
+ label: "First Name",
100
+ sizes: "medium",
101
+ placeholder: "First Name",
102
+ required: true,
103
+ error: !!errors.first_name,
104
+ helperText: errors.first_name?.message,
105
+ variant
106
+ }
107
+ ) }),
108
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
109
+ Input,
110
+ {
111
+ id: "last_name",
112
+ ...register("last_name", { required: true }),
113
+ label: "Last Name",
114
+ sizes: "medium",
115
+ placeholder: "Last Name",
116
+ required: true,
117
+ error: !!errors.last_name,
118
+ helperText: errors.last_name?.message,
119
+ variant
120
+ }
121
+ ) }),
122
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
123
+ Input,
124
+ {
125
+ id: "email",
126
+ ...register("email", {
127
+ required: true,
128
+ validate: {
129
+ isValid: associatedEmail
130
+ }
131
+ }),
132
+ label: "Email",
133
+ sizes: "medium",
134
+ placeholder: "Email",
135
+ required: true,
136
+ error: !!errors.email,
137
+ helperText: errors.email?.message,
138
+ variant
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
142
+ InputPhone,
143
+ {
144
+ id: "phone",
145
+ ...register("phone", { required: true, maxLength: 12 }),
146
+ label: "Phone",
147
+ sizes: "medium",
148
+ placeholder: "Phone",
149
+ required: true,
150
+ error: !!errors.phone,
151
+ helperText: errors.phone?.message,
152
+ variant
153
+ }
154
+ ) }),
155
+ /* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
156
+ Input,
157
+ {
158
+ id: "company",
159
+ ...register("company", { required: true }),
160
+ label: "Company",
161
+ sizes: "medium",
162
+ placeholder: "Company",
163
+ required: true,
164
+ error: !!errors.company,
165
+ helperText: errors.company?.message,
166
+ variant
167
+ }
168
+ ) })
169
+ ] }),
170
+ children,
171
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
172
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
173
+ Button,
174
+ {
175
+ color: getVariant(callToAction?.variant),
176
+ as: "button",
177
+ type: "submit",
178
+ disabled: !isValid || isSubmitting,
179
+ children: callToAction?.displayText
180
+ }
181
+ ) })
182
+ ] })
183
+ ] }) })
184
+ },
185
+ id
186
+ );
187
+ };
188
+ export {
189
+ ContactCompany
190
+ };
@@ -9,6 +9,7 @@ import "../Input/Dropdown.js";
9
9
  import { Input } from "../Input/Input.js";
10
10
  import "../Input/Input.css.js";
11
11
  import { InputPhone } from "../Input/InputPhone.js";
12
+ import "../Input/InputTextArea.js";
12
13
  import "../icons/ArrowIcon/ArrowIcon.css.js";
13
14
  import SvgAxosX from "../icons/AxosX/index.js";
14
15
  import SvgComponent from "../icons/AxosX/Blue.js";
@@ -27,6 +28,10 @@ import "../Button/Button.css.js";
27
28
  import "react";
28
29
  import "react-use";
29
30
  /* empty css */
31
+ import "../Article/Article.css.js";
32
+ import "../ArticlesSet/ArticlesSet.css.js";
33
+ /* empty css */
34
+ /* empty css */
30
35
  import "../IconBillboard/IconBillboard.css.js";
31
36
  /* empty css */
32
37
  import clsx from "clsx";
@@ -0,0 +1,32 @@
1
+ import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { QuaternaryTypes } from '../utils/variant.types';
3
+ import { PropsWithChildren, ReactNode } from 'react';
4
+
5
+ export type DealerServicesInputs = {
6
+ first_name: string;
7
+ last_name: string;
8
+ email: string;
9
+ phone: string;
10
+ title: string;
11
+ company: string;
12
+ Dealer_Type__c: string;
13
+ Lead_Source_Detail_SFDC2__c: string;
14
+ city: string;
15
+ state: string;
16
+ zip: string;
17
+ description: string;
18
+ };
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;
@@ -0,0 +1,311 @@
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 { Dropdown } from "../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 { InputTextArea } from "../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 DealerServices = ({
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
+ title: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Title is required." }),
62
+ company: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Company Name is required." }),
63
+ Dealer_Type__c: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Franchise or Independent is required." }),
64
+ Lead_Source_Detail_SFDC2__c: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, {
65
+ message: "Dealer Services or Collector Car Program is required."
66
+ }),
67
+ city: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "City is required." }),
68
+ state: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "State is required." }),
69
+ zip: z.string().trim().max(20).min(1, { message: "Zip code is required." }),
70
+ description: z.string().trim().max(32e3)
71
+ });
72
+ const methods = useForm({
73
+ resolver: zodResolver(schema.merge(SalesforceSchema), {
74
+ async: true
75
+ }),
76
+ mode: "all",
77
+ defaultValues: {
78
+ email: ""
79
+ }
80
+ });
81
+ const {
82
+ handleSubmit,
83
+ register,
84
+ formState: { errors, isValid, isSubmitting }
85
+ } = methods;
86
+ const submitForm = async (data) => {
87
+ await onSubmit(data);
88
+ };
89
+ const variant = getVariant(fullVariant);
90
+ return /* @__PURE__ */ jsx(
91
+ "section",
92
+ {
93
+ id: `id_${id}`,
94
+ className: clsx(formContainer({ variant })),
95
+ children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
96
+ icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
97
+ /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
98
+ /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
99
+ description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField} text_center`, children: description })
100
+ ] }),
101
+ /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
102
+ /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
103
+ /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
104
+ Input,
105
+ {
106
+ id: "first_name",
107
+ ...register("first_name", { required: true }),
108
+ label: "First Name",
109
+ sizes: "medium",
110
+ placeholder: "First Name",
111
+ required: true,
112
+ error: !!errors.first_name,
113
+ helperText: errors.first_name?.message,
114
+ variant
115
+ }
116
+ ) }),
117
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
118
+ Input,
119
+ {
120
+ id: "last_name",
121
+ ...register("last_name", { required: true }),
122
+ label: "Last Name",
123
+ sizes: "medium",
124
+ placeholder: "Last Name",
125
+ required: true,
126
+ error: !!errors.last_name,
127
+ helperText: errors.last_name?.message,
128
+ variant
129
+ }
130
+ ) }),
131
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
132
+ Input,
133
+ {
134
+ id: "email",
135
+ ...register("email", {
136
+ required: true,
137
+ validate: {
138
+ isValid: associatedEmail
139
+ }
140
+ }),
141
+ label: "Email",
142
+ sizes: "medium",
143
+ placeholder: "Email",
144
+ required: true,
145
+ error: !!errors.email,
146
+ helperText: errors.email?.message,
147
+ variant
148
+ }
149
+ ) }),
150
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
151
+ InputPhone,
152
+ {
153
+ id: "phone",
154
+ ...register("phone", { required: true, maxLength: 12 }),
155
+ label: "Phone",
156
+ sizes: "medium",
157
+ placeholder: "Phone",
158
+ required: true,
159
+ error: !!errors.phone,
160
+ helperText: errors.phone?.message,
161
+ variant
162
+ }
163
+ ) }),
164
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
165
+ Input,
166
+ {
167
+ id: "title",
168
+ ...register("title", { required: true }),
169
+ label: "Title",
170
+ sizes: "medium",
171
+ placeholder: "Title",
172
+ required: true,
173
+ error: !!errors.title,
174
+ helperText: errors.title?.message,
175
+ variant
176
+ }
177
+ ) }),
178
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
179
+ Input,
180
+ {
181
+ id: "company",
182
+ ...register("company", { required: true }),
183
+ label: "Company Name",
184
+ sizes: "medium",
185
+ placeholder: "Company Name",
186
+ required: true,
187
+ error: !!errors.company,
188
+ helperText: errors.company?.message,
189
+ variant
190
+ }
191
+ ) }),
192
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
193
+ Dropdown,
194
+ {
195
+ id: "Dealer_Type__c",
196
+ ...register("Dealer_Type__c", {
197
+ required: true,
198
+ maxLength: 12
199
+ }),
200
+ label: "Franchise or Independent",
201
+ sizes: "medium",
202
+ required: true,
203
+ error: !!errors.Dealer_Type__c,
204
+ helperText: errors.Dealer_Type__c?.message,
205
+ variant,
206
+ defaultValue: "Franchise",
207
+ children: [
208
+ /* @__PURE__ */ jsx("option", { value: "Franchise", children: "Franchise" }),
209
+ /* @__PURE__ */ jsx("option", { value: "Independent", children: "Independent" })
210
+ ]
211
+ }
212
+ ) }),
213
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
214
+ Dropdown,
215
+ {
216
+ id: "Lead_Source_Detail_SFDC2__c",
217
+ ...register("Lead_Source_Detail_SFDC2__c", {
218
+ required: true,
219
+ maxLength: 12
220
+ }),
221
+ label: "Dealer Services or Collector Car Program",
222
+ sizes: "medium",
223
+ required: true,
224
+ error: !!errors.Lead_Source_Detail_SFDC2__c,
225
+ helperText: errors.Lead_Source_Detail_SFDC2__c?.message,
226
+ variant,
227
+ defaultValue: "Dealer Services",
228
+ children: [
229
+ /* @__PURE__ */ jsx("option", { value: "Dealer Services", children: "Dealer Services" }),
230
+ /* @__PURE__ */ jsx("option", { value: "Collector Car Program", children: "Collector Car Program" })
231
+ ]
232
+ }
233
+ ) }),
234
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
235
+ Input,
236
+ {
237
+ id: "city",
238
+ ...register("city", { required: true }),
239
+ label: "City",
240
+ sizes: "medium",
241
+ placeholder: "City",
242
+ required: true,
243
+ error: !!errors.city,
244
+ helperText: errors.city?.message,
245
+ variant
246
+ }
247
+ ) }),
248
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
249
+ Input,
250
+ {
251
+ id: "state",
252
+ ...register("state", { required: true }),
253
+ label: "State",
254
+ sizes: "medium",
255
+ placeholder: "State",
256
+ required: true,
257
+ error: !!errors.state,
258
+ helperText: errors.state?.message,
259
+ variant
260
+ }
261
+ ) }),
262
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
263
+ Input,
264
+ {
265
+ id: "zip",
266
+ ...register("zip", { required: true }),
267
+ label: "Zip Code",
268
+ sizes: "medium",
269
+ placeholder: "Zip Code",
270
+ required: true,
271
+ error: !!errors.zip,
272
+ helperText: errors.zip?.message,
273
+ variant
274
+ }
275
+ ) }),
276
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
277
+ InputTextArea,
278
+ {
279
+ id: "description",
280
+ ...register("description"),
281
+ label: "Additional Details",
282
+ sizes: "medium",
283
+ placeholder: "Additional Details",
284
+ error: !!errors.description,
285
+ helperText: errors.description?.message,
286
+ variant,
287
+ rows: 1
288
+ }
289
+ ) })
290
+ ] }),
291
+ children,
292
+ /* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
293
+ /* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
294
+ Button,
295
+ {
296
+ color: getVariant(callToAction?.variant),
297
+ as: "button",
298
+ type: "submit",
299
+ disabled: !isValid || isSubmitting,
300
+ children: callToAction?.displayText
301
+ }
302
+ ) })
303
+ ] })
304
+ ] }) })
305
+ },
306
+ id
307
+ );
308
+ };
309
+ export {
310
+ DealerServices
311
+ };
@@ -9,6 +9,7 @@ import "../Input/Dropdown.js";
9
9
  import { Input } from "../Input/Input.js";
10
10
  import "../Input/Input.css.js";
11
11
  import "../Input/InputPhone.js";
12
+ import "../Input/InputTextArea.js";
12
13
  import "../icons/ArrowIcon/ArrowIcon.css.js";
13
14
  import SvgAxosX from "../icons/AxosX/index.js";
14
15
  import SvgComponent from "../icons/AxosX/Blue.js";
@@ -27,6 +28,10 @@ import "../Button/Button.css.js";
27
28
  import "react";
28
29
  import "react-use";
29
30
  /* empty css */
31
+ import "../Article/Article.css.js";
32
+ import "../ArticlesSet/ArticlesSet.css.js";
33
+ /* empty css */
34
+ /* empty css */
30
35
  import "../IconBillboard/IconBillboard.css.js";
31
36
  /* empty css */
32
37
  import clsx from "clsx";
@@ -13,6 +13,7 @@ import "../Input/Dropdown.js";
13
13
  import "../Input/Input.js";
14
14
  import "../Input/Input.css.js";
15
15
  import "../Input/InputPhone.js";
16
+ import "../Input/InputTextArea.js";
16
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
17
18
  import "../icons/CheckIcon/CheckIcon.css.js";
18
19
  /* empty css */
@@ -27,6 +28,10 @@ import "../Accordion/Accordion.css.js";
27
28
  import "../Chevron/Chevron.css.js";
28
29
  import "../AlertBanner/AlertBanner.css.js";
29
30
  /* empty css */
31
+ import "../Article/Article.css.js";
32
+ import "../ArticlesSet/ArticlesSet.css.js";
33
+ /* empty css */
34
+ /* empty css */
30
35
  import "../IconBillboard/IconBillboard.css.js";
31
36
  /* empty css */
32
37
  /* empty css */
@@ -13,6 +13,7 @@ import "../Input/Dropdown.js";
13
13
  import { Input } from "../Input/Input.js";
14
14
  import "../Input/Input.css.js";
15
15
  import { InputPhone } from "../Input/InputPhone.js";
16
+ import "../Input/InputTextArea.js";
16
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
17
18
  import SvgAxosX from "../icons/AxosX/index.js";
18
19
  import SvgComponent from "../icons/AxosX/Blue.js";
@@ -13,6 +13,7 @@ import { Dropdown } from "../Input/Dropdown.js";
13
13
  import { Input } from "../Input/Input.js";
14
14
  import "../Input/Input.css.js";
15
15
  import { InputPhone } from "../Input/InputPhone.js";
16
+ import "../Input/InputTextArea.js";
16
17
  import "../icons/ArrowIcon/ArrowIcon.css.js";
17
18
  import SvgAxosX from "../icons/AxosX/index.js";
18
19
  import SvgComponent from "../icons/AxosX/Blue.js";