@axos-web-dev/shared-components 0.0.56 → 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 (106) hide show
  1. package/dist/AlertBanner/index.d.ts +1 -1
  2. package/dist/Article/Article.css.d.ts +230 -0
  3. package/dist/Article/Article.css.js +21 -0
  4. package/dist/Article/Article.d.ts +14 -0
  5. package/dist/Article/Article.js +51 -0
  6. package/dist/Article/index.d.ts +2 -0
  7. package/dist/Article/index.js +12 -0
  8. package/dist/ArticlesSet/ArticlesSet.css.d.ts +155 -0
  9. package/dist/ArticlesSet/ArticlesSet.css.js +21 -0
  10. package/dist/ArticlesSet/ArticlesSet.d.ts +12 -0
  11. package/dist/ArticlesSet/ArticlesSet.js +115 -0
  12. package/dist/ArticlesSet/index.d.ts +2 -0
  13. package/dist/ArticlesSet/index.js +12 -0
  14. package/dist/AwardsBanner/AwardsBanner.css.d.ts +2 -0
  15. package/dist/AwardsBanner/AwardsBanner.css.js +7 -0
  16. package/dist/AwardsBanner/AwardsBanner.d.ts +8 -0
  17. package/dist/AwardsBanner/AwardsBanner.js +18 -0
  18. package/dist/AwardsBanner/index.d.ts +2 -0
  19. package/dist/AwardsBanner/index.js +7 -0
  20. package/dist/AwardsItem/AwardsItem.css.d.ts +3 -0
  21. package/dist/AwardsItem/AwardsItem.css.js +10 -0
  22. package/dist/AwardsItem/AwardsItem.d.ts +9 -0
  23. package/dist/AwardsItem/AwardsItem.js +29 -0
  24. package/dist/AwardsItem/index.d.ts +2 -0
  25. package/dist/AwardsItem/index.js +8 -0
  26. package/dist/Button/Button.d.ts +1 -1
  27. package/dist/Button/GoBackButton.d.ts +1 -1
  28. package/dist/CallToActionBar/CallToActionBar.interface.d.ts +1 -1
  29. package/dist/CallToActionBar/index.d.ts +1 -1
  30. package/dist/Carousel/Carousel.css.d.ts +44 -0
  31. package/dist/Carousel/Carousel.css.js +12 -8
  32. package/dist/Carousel/index.d.ts +3 -1
  33. package/dist/Carousel/index.js +89 -31
  34. package/dist/Chevron/Chevron.interface.d.ts +1 -1
  35. package/dist/Chevron/index.d.ts +1 -1
  36. package/dist/Chevron/index.js +6 -1
  37. package/dist/ContentBanner/ContentBanner.interface.d.ts +1 -1
  38. package/dist/ContentBanner/index.d.ts +1 -1
  39. package/dist/DownloadTile/index.d.ts +1 -1
  40. package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +1 -39
  41. package/dist/ExecutiveBio/ExecutiveBio.css.js +12 -10
  42. package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
  43. package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +6 -4
  44. package/dist/ExecutiveBio/ExecutiveBio.js +104 -46
  45. package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +2 -2
  46. package/dist/ExecutiveBio/ExecutiveBioSet.js +22 -128
  47. package/dist/ExecutiveBio/index.js +2 -1
  48. package/dist/FaqAccordion/index.d.ts +2 -1
  49. package/dist/FaqAccordion/index.js +26 -13
  50. package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +6 -1
  51. package/dist/Forms/ApplicationStart.js +1 -0
  52. package/dist/Forms/ContactCompany.d.ts +25 -0
  53. package/dist/Forms/ContactCompany.js +190 -0
  54. package/dist/Forms/ContactUsBusiness.js +5 -0
  55. package/dist/Forms/DealerServices.d.ts +32 -0
  56. package/dist/Forms/DealerServices.js +311 -0
  57. package/dist/Forms/EmailOnly.js +5 -0
  58. package/dist/Forms/RenderForm.d.ts +1 -1
  59. package/dist/Forms/RenderForm.js +5 -0
  60. package/dist/Forms/ScheduleCall.d.ts +2 -2
  61. package/dist/Forms/ScheduleCall.js +8 -1
  62. package/dist/Forms/ScheduleCallPremier.js +1 -0
  63. package/dist/Forms/SuccesForm.d.ts +7 -3
  64. package/dist/Forms/SuccesForm.js +76 -61
  65. package/dist/Forms/index.d.ts +2 -0
  66. package/dist/Forms/index.js +4 -0
  67. package/dist/HeroBanner/HeroBanner.interface.d.ts +1 -1
  68. package/dist/Hyperlink/index.d.ts +1 -1
  69. package/dist/Hyperlink/index.js +6 -1
  70. package/dist/IconBillboard/IconBillboard.d.ts +3 -3
  71. package/dist/IconBillboard/IconBillboard.interface.d.ts +3 -3
  72. package/dist/ImageBillboard/ImageBillboard.interface.d.ts +4 -4
  73. package/dist/ImageLink/ImageLink.js +5 -0
  74. package/dist/ImageLink/ImageLinkSet.d.ts +2 -2
  75. package/dist/ImageLink/ImageLinkSet.js +5 -0
  76. package/dist/ImageLink/index.js +6 -1
  77. package/dist/Input/CurrencyInput.js +1 -0
  78. package/dist/Input/Input.d.ts +1 -1
  79. package/dist/Input/InputPhone.js +1 -0
  80. package/dist/Input/InputProps.d.ts +1 -1
  81. package/dist/Input/InputTextArea.d.ts +16 -0
  82. package/dist/Input/InputTextArea.js +48 -0
  83. package/dist/Input/index.d.ts +1 -0
  84. package/dist/Input/index.js +2 -0
  85. package/dist/Modal/Modal.d.ts +1 -1
  86. package/dist/Modal/Modal.js +6 -1
  87. package/dist/SetContainer/SetContainer.d.ts +1 -1
  88. package/dist/SetContainer/SetContainer.js +5 -0
  89. package/dist/StepItems/StepItems.interface.d.ts +3 -3
  90. package/dist/Table/Table.d.ts +1 -1
  91. package/dist/Typography/Typography.d.ts +1 -1
  92. package/dist/VideoTile/VideoTile.d.ts +1 -1
  93. package/dist/VideoWrapper/index.d.ts +1 -1
  94. package/dist/assets/Article/Article.css +243 -0
  95. package/dist/assets/ArticlesSet/ArticlesSet.css +234 -0
  96. package/dist/assets/AwardsBanner/AwardsBanner.css +19 -0
  97. package/dist/assets/AwardsItem/AwardsItem.css +40 -0
  98. package/dist/assets/Carousel/Carousel.css +68 -29
  99. package/dist/assets/ExecutiveBio/ExecutiveBio.css +61 -65
  100. package/dist/assets/IconBillboard/IconBillboard.css +3 -0
  101. package/dist/icons/ArrowIcon/index.d.ts +1 -1
  102. package/dist/main.d.ts +4 -0
  103. package/dist/main.js +39 -1
  104. package/dist/utils/faqAccordionOptions.d.ts +1 -0
  105. package/dist/utils/faqAccordionOptions.js +20 -0
  106. package/package.json +17 -17
@@ -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";
@@ -1,5 +1,5 @@
1
- import { FormProps } from '.';
2
1
  import { PropsWithChildren } from 'react';
2
+ import { FormProps } from '.';
3
3
 
4
4
  export interface renderFormProps extends FormProps, PropsWithChildren {
5
5
  form?: string;
@@ -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 */
@@ -1,6 +1,6 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
2
- import { QuaternaryTypes } from '../utils/variant.types';
3
1
  import { ChevronProps } from '../Chevron/Chevron.interface';
2
+ import { QuaternaryTypes } from '../utils/variant.types';
3
+ import { PropsWithChildren, ReactNode } from 'react';
4
4
 
5
5
  export type Inputs = {
6
6
  first_name: string;
@@ -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";
@@ -85,7 +86,13 @@ const ScheduleCall = ({
85
86
  icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
86
87
  /* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
87
88
  /* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
88
- description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField} text_center`, children: description })
89
+ description && /* @__PURE__ */ jsx(
90
+ "div",
91
+ {
92
+ className: `${form} ${descriptionField({ variant })} text_center`,
93
+ children: description
94
+ }
95
+ )
89
96
  ] }),
90
97
  /* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
91
98
  /* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
@@ -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";
@@ -1,6 +1,10 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
2
 
3
- export declare function SuccesFormWrapper({ children, isSubmitted, variant: fullVariant, }: {
3
+ export interface SuccessFormProps extends PropsWithChildren {
4
+ id?: string;
5
+ headline?: string;
6
+ bodyCopy?: ReactNode;
4
7
  isSubmitted: boolean;
5
8
  variant?: string;
6
- } & PropsWithChildren): import("react/jsx-runtime").JSX.Element;
9
+ }
10
+ export declare function SuccesFormWrapper({ children, isSubmitted, variant: fullVariant, bodyCopy, headline, id, }: SuccessFormProps): import("react/jsx-runtime").JSX.Element;