@axos-web-dev/shared-components 0.0.51 → 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.
- package/dist/Button/GoBackButton.js +1 -1
- package/dist/CallToActionBar/index.js +2 -3
- package/dist/Carousel/index.js +2 -3
- package/dist/Chevron/index.js +6 -2
- package/dist/ContentBanner/index.js +1 -1
- package/dist/DownloadTile/index.js +2 -2
- package/dist/ExecutiveBio/ExecutiveBio.js +1 -1
- package/dist/ExecutiveBio/ExecutiveBioSet.js +1 -1
- package/dist/FaqAccordion/index.js +2 -3
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +6 -2
- package/dist/Forms/ApplicationStart.d.ts +10 -0
- package/dist/Forms/ApplicationStart.js +191 -0
- package/dist/Forms/ContactUsBusiness.d.ts +11 -0
- package/dist/Forms/ContactUsBusiness.js +246 -0
- package/dist/Forms/EmailOnly.d.ts +6 -0
- package/dist/Forms/EmailOnly.js +160 -0
- package/dist/Forms/Forms.css.d.ts +22 -1
- package/dist/Forms/Forms.css.js +11 -9
- package/dist/Forms/RenderForm.js +52 -1
- package/dist/Forms/SalesforceFieldsForm.js +11 -11
- package/dist/Forms/ScheduleCall.d.ts +1 -1
- package/dist/Forms/ScheduleCall.js +11 -7
- package/dist/Forms/ScheduleCallPremier.d.ts +12 -0
- package/dist/Forms/ScheduleCallPremier.js +255 -0
- package/dist/Forms/SuccesForm.d.ts +1 -1
- package/dist/Forms/SuccesForm.js +39 -3
- package/dist/Forms/index.d.ts +4 -0
- package/dist/Forms/index.js +12 -3
- package/dist/Hyperlink/index.js +6 -2
- package/dist/IconBillboard/IconBillboard.js +2 -2
- package/dist/IconBillboard/IconBillboardSet.js +2 -2
- package/dist/ImageBillboard/ImageBillboard.js +2 -2
- package/dist/ImageBillboard/ImageBillboardSet.js +6 -6
- package/dist/ImageLink/ImageLink.js +6 -2
- package/dist/ImageLink/ImageLinkSet.js +8 -4
- package/dist/ImageLink/index.js +6 -2
- package/dist/Input/Checkbox.css.d.ts +10 -0
- package/dist/Input/Checkbox.css.js +8 -0
- package/dist/Input/Checkbox.d.ts +5 -0
- package/dist/Input/Checkbox.js +48 -0
- package/dist/Input/CurrencyInput.d.ts +3 -0
- package/dist/Input/CurrencyInput.js +27 -0
- package/dist/Input/Dropdown.css.d.ts +1 -0
- package/dist/Input/Dropdown.css.js +6 -0
- package/dist/Input/Dropdown.d.ts +3 -0
- package/dist/Input/Dropdown.js +55 -0
- package/dist/Input/Input.css.d.ts +7 -0
- package/dist/Input/Input.css.js +8 -7
- package/dist/Input/InputPhone.js +5 -0
- package/dist/Input/InputProps.d.ts +29 -0
- package/dist/Input/InputProps.js +1 -0
- package/dist/Input/index.d.ts +4 -0
- package/dist/Input/index.js +8 -0
- package/dist/Modal/Modal.js +6 -2
- package/dist/NavigationMenu/AxosAdvisor/SubNavBar.js +1 -1
- package/dist/NavigationMenu/AxosAdvisor/index.js +1 -2
- package/dist/SecondaryFooter/index.js +1 -1
- package/dist/SetContainer/SetContainer.js +7 -3
- package/dist/StepItems/StepItemsSet.js +1 -1
- package/dist/Table/Table.js +2 -2
- package/dist/VideoWrapper/index.js +7 -7
- package/dist/assets/Button/Button.css +1 -1
- package/dist/assets/Forms/Forms.css +52 -29
- package/dist/assets/Input/Checkbox.css +6 -0
- package/dist/assets/Input/Dropdown.css +10 -0
- package/dist/assets/Input/Input.css +51 -30
- package/dist/icons/CheckIcon/index.js +1 -1
- package/dist/main.js +25 -7
- package/package.json +3 -2
|
@@ -0,0 +1,255 @@
|
|
|
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 { CurrencyInput } from "../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 "../icons/ArrowIcon/ArrowIcon.css.js";
|
|
17
|
+
import SvgAxosX from "../icons/AxosX/index.js";
|
|
18
|
+
import SvgComponent from "../icons/AxosX/Blue.js";
|
|
19
|
+
import "../icons/CheckIcon/CheckIcon.css.js";
|
|
20
|
+
/* empty css */
|
|
21
|
+
/* empty css */
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
import { associatedEmail } from "../utils/EverestValidity.js";
|
|
25
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
26
|
+
import clsx from "clsx";
|
|
27
|
+
import { useForm, FormProvider } from "react-hook-form";
|
|
28
|
+
import * as z from "zod";
|
|
29
|
+
import { formContainer, iconForm, headerContainer, headerForm, form, descriptionField, formWrapper, fullRowForm, disclosureForm, actions } from "./Forms.css.js";
|
|
30
|
+
import { SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
31
|
+
const ScheduleCallPremier = ({
|
|
32
|
+
icon = false,
|
|
33
|
+
children,
|
|
34
|
+
onSubmit = (values) => {
|
|
35
|
+
console.log(values);
|
|
36
|
+
},
|
|
37
|
+
disclosure,
|
|
38
|
+
variant: fullVariant = "primary",
|
|
39
|
+
headline,
|
|
40
|
+
description,
|
|
41
|
+
callToAction,
|
|
42
|
+
validateEmail,
|
|
43
|
+
id
|
|
44
|
+
}) => {
|
|
45
|
+
const schema = z.object({
|
|
46
|
+
first_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "First Name is required." }),
|
|
47
|
+
last_name: z.string().regex(/^[A-Za-z][^0-9_!¡?÷?¿/\\+=@#$%ˆ&*,.^(){}|~<>;:[\]]{1,}$/g).trim().min(1, { message: "Last Name is required." }),
|
|
48
|
+
email: z.string().email({ message: "Email is required." }).refine(async (val) => await validateEmail(val)),
|
|
49
|
+
phone: z.string().regex(/[\d-]{10}/).min(10, { message: "Phone is required." }).max(12, { message: "Phone is required." }).transform((val, ctx) => {
|
|
50
|
+
const removeDashes = val.replace(/-/gi, "");
|
|
51
|
+
if (removeDashes.length !== 10) {
|
|
52
|
+
ctx.addIssue({
|
|
53
|
+
code: z.ZodIssueCode.custom,
|
|
54
|
+
message: "Phone must have at least 10 and no more than 10 characters."
|
|
55
|
+
});
|
|
56
|
+
return z.NEVER;
|
|
57
|
+
}
|
|
58
|
+
return removeDashes;
|
|
59
|
+
}),
|
|
60
|
+
Best_Contact_Date__c: z.string().min(1).date("The field Value must be a date."),
|
|
61
|
+
Best_Time_To_Call__c: z.string().min(1).refine((val) => /[ap]|m/.test(val)),
|
|
62
|
+
Potential_Funding__c: z.string().min(1)
|
|
63
|
+
});
|
|
64
|
+
const methods = useForm({
|
|
65
|
+
resolver: zodResolver(schema.merge(SalesforceSchema)),
|
|
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
|
+
const potential = data.Potential_Funding__c.replace(/[$ ]/gi, "");
|
|
78
|
+
const parseData = {
|
|
79
|
+
...data,
|
|
80
|
+
Potential_Funding__c: parseFloat(potential.replaceAll(/$ ,/gi, "")),
|
|
81
|
+
Best_Contact_Date__c: new Intl.DateTimeFormat("en-US").format(
|
|
82
|
+
new Date(data.Best_Contact_Date__c)
|
|
83
|
+
)
|
|
84
|
+
};
|
|
85
|
+
await onSubmit(parseData);
|
|
86
|
+
};
|
|
87
|
+
const variant = getVariant(fullVariant);
|
|
88
|
+
return /* @__PURE__ */ jsx(
|
|
89
|
+
"section",
|
|
90
|
+
{
|
|
91
|
+
id: `id_${id}`,
|
|
92
|
+
className: clsx(formContainer({ variant })),
|
|
93
|
+
children: /* @__PURE__ */ jsx("div", { className: clsx("containment"), children: /* @__PURE__ */ jsxs(FormProvider, { ...methods, children: [
|
|
94
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
95
|
+
/* @__PURE__ */ jsxs("div", { className: `${headerContainer} text_center`, children: [
|
|
96
|
+
/* @__PURE__ */ jsx("h2", { className: clsx("header_2", headerForm({ variant })), children: headline }),
|
|
97
|
+
description && /* @__PURE__ */ jsx("div", { className: `${form} ${descriptionField} text_center`, children: description })
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ jsxs("form", { className: form, onSubmit: handleSubmit(submitForm), children: [
|
|
100
|
+
/* @__PURE__ */ jsxs("div", { className: clsx(formWrapper({ variant })), children: [
|
|
101
|
+
/* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx(
|
|
102
|
+
Input,
|
|
103
|
+
{
|
|
104
|
+
id: "first_name",
|
|
105
|
+
...register("first_name", { required: true }),
|
|
106
|
+
label: "First Name",
|
|
107
|
+
sizes: "medium",
|
|
108
|
+
placeholder: "First Name",
|
|
109
|
+
required: true,
|
|
110
|
+
error: !!errors.first_name,
|
|
111
|
+
helperText: errors.first_name?.message,
|
|
112
|
+
variant
|
|
113
|
+
}
|
|
114
|
+
) }),
|
|
115
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
116
|
+
Input,
|
|
117
|
+
{
|
|
118
|
+
id: "last_name",
|
|
119
|
+
...register("last_name", { required: true }),
|
|
120
|
+
label: "Last Name",
|
|
121
|
+
sizes: "medium",
|
|
122
|
+
placeholder: "Last Name",
|
|
123
|
+
required: true,
|
|
124
|
+
error: !!errors.last_name,
|
|
125
|
+
helperText: errors.last_name?.message,
|
|
126
|
+
variant
|
|
127
|
+
}
|
|
128
|
+
) }),
|
|
129
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
130
|
+
Input,
|
|
131
|
+
{
|
|
132
|
+
id: "email",
|
|
133
|
+
...register("email", {
|
|
134
|
+
required: true,
|
|
135
|
+
validate: {
|
|
136
|
+
isValid: associatedEmail
|
|
137
|
+
}
|
|
138
|
+
}),
|
|
139
|
+
label: "Email",
|
|
140
|
+
sizes: "medium",
|
|
141
|
+
placeholder: "Email",
|
|
142
|
+
required: true,
|
|
143
|
+
error: !!errors.email,
|
|
144
|
+
helperText: errors.email?.message,
|
|
145
|
+
variant
|
|
146
|
+
}
|
|
147
|
+
) }),
|
|
148
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
149
|
+
InputPhone,
|
|
150
|
+
{
|
|
151
|
+
id: "phone",
|
|
152
|
+
...register("phone", { required: true, maxLength: 12 }),
|
|
153
|
+
label: "Phone",
|
|
154
|
+
sizes: "medium",
|
|
155
|
+
placeholder: "Phone",
|
|
156
|
+
required: true,
|
|
157
|
+
error: !!errors.phone,
|
|
158
|
+
helperText: errors.phone?.message,
|
|
159
|
+
variant
|
|
160
|
+
}
|
|
161
|
+
) }),
|
|
162
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
163
|
+
Input,
|
|
164
|
+
{
|
|
165
|
+
id: "Best_Contact_Date__c",
|
|
166
|
+
...register("Best_Contact_Date__c", {
|
|
167
|
+
required: true
|
|
168
|
+
}),
|
|
169
|
+
type: "date",
|
|
170
|
+
label: "Best Date to Call",
|
|
171
|
+
sizes: "medium",
|
|
172
|
+
placeholder: "Best Date to Call",
|
|
173
|
+
required: true,
|
|
174
|
+
error: !!errors.Best_Contact_Date__c,
|
|
175
|
+
helperText: errors.Best_Contact_Date__c?.message,
|
|
176
|
+
variant
|
|
177
|
+
}
|
|
178
|
+
) }),
|
|
179
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsxs(
|
|
180
|
+
Dropdown,
|
|
181
|
+
{
|
|
182
|
+
id: "Best_Time_To_Call__c",
|
|
183
|
+
...register("Best_Time_To_Call__c", {
|
|
184
|
+
required: true,
|
|
185
|
+
maxLength: 12
|
|
186
|
+
}),
|
|
187
|
+
label: "Best Time to Call",
|
|
188
|
+
sizes: "medium",
|
|
189
|
+
required: true,
|
|
190
|
+
error: !!errors.Best_Time_To_Call__c,
|
|
191
|
+
helperText: errors.Best_Time_To_Call__c?.message,
|
|
192
|
+
variant,
|
|
193
|
+
defaultValue: "Best Time to Call",
|
|
194
|
+
children: [
|
|
195
|
+
/* @__PURE__ */ jsx("option", { value: "Best Time to Call", disabled: true, children: "Best Time to Call" }),
|
|
196
|
+
/* @__PURE__ */ jsx("option", { value: "8:00 am", children: "8:00 am" }),
|
|
197
|
+
/* @__PURE__ */ jsx("option", { value: "8:30 am", children: "8:30 am" }),
|
|
198
|
+
/* @__PURE__ */ jsx("option", { value: "9:00 am", children: "9:00 am" }),
|
|
199
|
+
/* @__PURE__ */ jsx("option", { value: "9:30 am", children: "9:30 am" }),
|
|
200
|
+
/* @__PURE__ */ jsx("option", { value: "10:00 am", children: "10:00 am" }),
|
|
201
|
+
/* @__PURE__ */ jsx("option", { value: "10:30 am", children: "10:30 am" }),
|
|
202
|
+
/* @__PURE__ */ jsx("option", { value: "11:00 am", children: "11:00 am" }),
|
|
203
|
+
/* @__PURE__ */ jsx("option", { value: "11:30 am", children: "11:30 am" }),
|
|
204
|
+
/* @__PURE__ */ jsx("option", { value: "12:00 pm", children: "12:00 pm" }),
|
|
205
|
+
/* @__PURE__ */ jsx("option", { value: "12:30 pm", children: "12:30 pm" }),
|
|
206
|
+
/* @__PURE__ */ jsx("option", { value: "1:00 pm", children: "1:00 pm" }),
|
|
207
|
+
/* @__PURE__ */ jsx("option", { value: "1:30 pm", children: "1:30 pm" }),
|
|
208
|
+
/* @__PURE__ */ jsx("option", { value: "2:00 pm", children: "2:00 pm" }),
|
|
209
|
+
/* @__PURE__ */ jsx("option", { value: "2:30 pm", children: "2:30 pm" }),
|
|
210
|
+
/* @__PURE__ */ jsx("option", { value: "3:00 pm", children: "3:00 pm" }),
|
|
211
|
+
/* @__PURE__ */ jsx("option", { value: "3:30 pm", children: "3:30 pm" }),
|
|
212
|
+
/* @__PURE__ */ jsx("option", { value: "4:00 pm", children: "4:00 pm" }),
|
|
213
|
+
/* @__PURE__ */ jsx("option", { value: "4:30 pm", children: "4:30 pm" }),
|
|
214
|
+
/* @__PURE__ */ jsx("option", { value: "5:00 pm", children: "5:00 pm" })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
) }),
|
|
218
|
+
/* @__PURE__ */ jsx("div", { className: fullRowForm, children: /* @__PURE__ */ jsx(
|
|
219
|
+
CurrencyInput,
|
|
220
|
+
{
|
|
221
|
+
id: "Potential_Funding__c",
|
|
222
|
+
...register("Potential_Funding__c", {
|
|
223
|
+
required: true
|
|
224
|
+
}),
|
|
225
|
+
label: "Potential Funding",
|
|
226
|
+
placeholder: "Potential Funding",
|
|
227
|
+
sizes: "medium",
|
|
228
|
+
required: true,
|
|
229
|
+
error: !!errors.Potential_Funding__c,
|
|
230
|
+
helperText: errors.Potential_Funding__c?.message,
|
|
231
|
+
variant
|
|
232
|
+
}
|
|
233
|
+
) })
|
|
234
|
+
] }),
|
|
235
|
+
children,
|
|
236
|
+
/* @__PURE__ */ jsx("div", { className: disclosureForm({ variant }), children: disclosure }),
|
|
237
|
+
/* @__PURE__ */ jsx("div", { className: actions, children: /* @__PURE__ */ jsx(
|
|
238
|
+
Button,
|
|
239
|
+
{
|
|
240
|
+
color: getVariant(callToAction?.variant),
|
|
241
|
+
as: "button",
|
|
242
|
+
type: "submit",
|
|
243
|
+
disabled: !isValid || isSubmitting,
|
|
244
|
+
children: callToAction?.displayText
|
|
245
|
+
}
|
|
246
|
+
) })
|
|
247
|
+
] })
|
|
248
|
+
] }) })
|
|
249
|
+
},
|
|
250
|
+
id
|
|
251
|
+
);
|
|
252
|
+
};
|
|
253
|
+
export {
|
|
254
|
+
ScheduleCallPremier
|
|
255
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export declare function SuccesFormWrapper({ children, isSubmitted, variant: fullVariant, }: {
|
|
4
4
|
isSubmitted: boolean;
|
|
5
5
|
variant?: string;
|
|
6
6
|
} & PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
package/dist/Forms/SuccesForm.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { success_wrap, success_icon, success_circle, succes_check_mark } from "./Forms.css.js";
|
|
5
|
-
import "./SalesforceFieldsForm.js";
|
|
6
4
|
import "@hookform/resolvers/zod";
|
|
7
5
|
import "../Modal/contextApi/store.js";
|
|
8
6
|
import "react";
|
|
9
7
|
import "../Button/Button.css.js";
|
|
10
8
|
import "react-use";
|
|
9
|
+
import "../Input/Checkbox.js";
|
|
10
|
+
import "../Input/CurrencyInput.js";
|
|
11
|
+
import "../Input/Dropdown.js";
|
|
12
|
+
/* empty css */
|
|
13
|
+
/* empty css */
|
|
11
14
|
import "../Input/Input.js";
|
|
12
15
|
import "../Input/Input.css.js";
|
|
13
16
|
import "../Input/InputPhone.js";
|
|
@@ -18,6 +21,39 @@ import "../icons/CheckIcon/CheckIcon.css.js";
|
|
|
18
21
|
/* empty css */
|
|
19
22
|
/* empty css */
|
|
20
23
|
import "react-hook-form";
|
|
24
|
+
import { success_wrap, success_icon, success_circle, succes_check_mark } from "./Forms.css.js";
|
|
25
|
+
import "./SalesforceFieldsForm.js";
|
|
26
|
+
import "../Accordion/Accordion.js";
|
|
27
|
+
import "../Accordion/Accordion.css.js";
|
|
28
|
+
import "../Chevron/Chevron.css.js";
|
|
29
|
+
import "../AlertBanner/AlertBanner.css.js";
|
|
30
|
+
/* empty css */
|
|
31
|
+
import "../IconBillboard/IconBillboard.css.js";
|
|
32
|
+
/* empty css */
|
|
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 "../SetContainer/SetContainer.css.js";
|
|
44
|
+
import "../ImageBillboard/ImageBillboard.css.js";
|
|
45
|
+
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
46
|
+
/* empty css */
|
|
47
|
+
/* empty css */
|
|
48
|
+
/* empty css */
|
|
49
|
+
/* empty css */
|
|
50
|
+
/* empty css */
|
|
51
|
+
import "../StepItems/StepItems.css.js";
|
|
52
|
+
import "../Table/Table.css.js";
|
|
53
|
+
/* empty css */
|
|
54
|
+
import "next/script.js";
|
|
55
|
+
/* empty css */
|
|
56
|
+
/* empty css */
|
|
21
57
|
function SuccesFormWrapper({
|
|
22
58
|
children,
|
|
23
59
|
isSubmitted,
|
|
@@ -85,5 +121,5 @@ function SuccesFormWrapper({
|
|
|
85
121
|
] });
|
|
86
122
|
}
|
|
87
123
|
export {
|
|
88
|
-
SuccesFormWrapper
|
|
124
|
+
SuccesFormWrapper
|
|
89
125
|
};
|
package/dist/Forms/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export * from './ApplicationStart';
|
|
2
|
+
export * from './EmailOnly';
|
|
3
|
+
export * from './ContactUsBusiness';
|
|
1
4
|
export * from './Forms.css';
|
|
2
5
|
export * from './RenderForm';
|
|
3
6
|
export * from './SalesforceFieldsForm';
|
|
4
7
|
export * from './ScheduleCall';
|
|
8
|
+
export * from './ScheduleCallPremier';
|
|
5
9
|
export * from './SuccesForm';
|
package/dist/Forms/index.js
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationStart } from "./ApplicationStart.js";
|
|
2
|
+
import { EmailOnly } from "./EmailOnly.js";
|
|
3
|
+
import { ContactUsBusiness } from "./ContactUsBusiness.js";
|
|
4
|
+
import { actions, descriptionField, disclosureForm, form, formContainer, formWrapper, fullRowForm, headerContainer, headerForm, iconForm, succes_check_mark, success_circle, success_icon, success_wrap } from "./Forms.css.js";
|
|
2
5
|
import { RenderWebForm, renderSwitch } from "./RenderForm.js";
|
|
3
6
|
import { SalesforceFieldsForm, SalesforceSchema } from "./SalesforceFieldsForm.js";
|
|
4
7
|
import { ScheduleCall } from "./ScheduleCall.js";
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
8
|
+
import { ScheduleCallPremier } from "./ScheduleCallPremier.js";
|
|
9
|
+
import { SuccesFormWrapper } from "./SuccesForm.js";
|
|
7
10
|
export {
|
|
11
|
+
ApplicationStart,
|
|
12
|
+
ContactUsBusiness,
|
|
13
|
+
EmailOnly,
|
|
8
14
|
RenderWebForm,
|
|
9
15
|
SalesforceFieldsForm,
|
|
10
16
|
SalesforceSchema,
|
|
11
17
|
ScheduleCall,
|
|
18
|
+
ScheduleCallPremier,
|
|
19
|
+
SuccesFormWrapper,
|
|
12
20
|
actions,
|
|
13
21
|
descriptionField,
|
|
14
22
|
disclosureForm,
|
|
15
23
|
form,
|
|
16
24
|
formContainer,
|
|
17
25
|
formWrapper,
|
|
26
|
+
fullRowForm,
|
|
18
27
|
headerContainer,
|
|
19
28
|
headerForm,
|
|
20
29
|
iconForm,
|
package/dist/Hyperlink/index.js
CHANGED
|
@@ -31,13 +31,17 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
|
|
|
31
31
|
import "../FaqAccordion/index.js";
|
|
32
32
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
33
33
|
/* empty css */
|
|
34
|
-
import "../Forms/Forms.css.js";
|
|
35
|
-
import "../Forms/SalesforceFieldsForm.js";
|
|
36
34
|
import "@hookform/resolvers/zod";
|
|
35
|
+
import "../Input/Checkbox.js";
|
|
36
|
+
import "../Input/CurrencyInput.js";
|
|
37
|
+
import "../Input/Dropdown.js";
|
|
38
|
+
/* empty css */
|
|
37
39
|
import "../Input/Input.js";
|
|
38
40
|
import "../Input/Input.css.js";
|
|
39
41
|
import "../Input/InputPhone.js";
|
|
40
42
|
import "react-hook-form";
|
|
43
|
+
import "../Forms/Forms.css.js";
|
|
44
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
41
45
|
import "../SetContainer/SetContainer.css.js";
|
|
42
46
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
43
47
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
@@ -30,13 +30,13 @@ const IconBillboard = (props) => {
|
|
|
30
30
|
),
|
|
31
31
|
children: [
|
|
32
32
|
/* @__PURE__ */ jsxs("div", { className: `middle ${layout({ side })}`, children: [
|
|
33
|
-
icon && /* @__PURE__ */ jsx("div", { className: billboard_icon, role: "presentation", children: /* @__PURE__ */ jsx("img", { src: icon
|
|
33
|
+
icon && /* @__PURE__ */ jsx("div", { className: billboard_icon, role: "presentation", children: /* @__PURE__ */ jsx("img", { src: icon?.src, className: "img_fluid", alt: icon?.alt }) }),
|
|
34
34
|
/* @__PURE__ */ jsxs("div", { className: content, children: [
|
|
35
35
|
/* @__PURE__ */ jsxs("div", { className: headerIconBillboard, children: [
|
|
36
36
|
/* @__PURE__ */ jsx("div", { className: title({ variant }), children: headline }),
|
|
37
37
|
/* @__PURE__ */ jsx("div", { children: body })
|
|
38
38
|
] }),
|
|
39
|
-
items &&
|
|
39
|
+
items && items?.length > 0 && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("ul", { className: clsx(list, "list_unstyled"), children: items?.map((item) => /* @__PURE__ */ jsx(BulletItem, { id: item.id, variant, children: item.content }, item.id)) }) })
|
|
40
40
|
] })
|
|
41
41
|
] }),
|
|
42
42
|
callToActionRow && /* @__PURE__ */ jsx("div", { className: buttons, children: callToActionRow.map(
|
|
@@ -33,9 +33,9 @@ const IconBillboardSet = ({
|
|
|
33
33
|
icon && /* @__PURE__ */ jsx("div", { className: billboard_icon, children: /* @__PURE__ */ jsx(
|
|
34
34
|
"img",
|
|
35
35
|
{
|
|
36
|
-
src: icon
|
|
36
|
+
src: icon?.src,
|
|
37
37
|
className: "img_fluid",
|
|
38
|
-
alt: icon
|
|
38
|
+
alt: icon?.alt
|
|
39
39
|
}
|
|
40
40
|
) }),
|
|
41
41
|
/* @__PURE__ */ jsxs("div", { className: content, children: [
|
|
@@ -52,7 +52,7 @@ const ImageBillboardSet = ({
|
|
|
52
52
|
${billboard({ variant: billboard_variant })} ${inline ? "" : billboard_container}
|
|
53
53
|
rounded flex ${inline ? "flex_col" : "flex_row"} ${bordered ? "bordered" : ""} ${imagePlacement.toLowerCase() === "left" && !inline ? "reversed" : ""}`,
|
|
54
54
|
children: [
|
|
55
|
-
/* @__PURE__ */ jsx("div", { "background-image": image
|
|
55
|
+
/* @__PURE__ */ jsx("div", { "background-image": image?.src, "aria-label": image?.alt }),
|
|
56
56
|
/* @__PURE__ */ jsxs("div", { className: body, children: [
|
|
57
57
|
/* @__PURE__ */ jsxs("div", { className: billboard_body, children: [
|
|
58
58
|
/* @__PURE__ */ jsxs("div", { className: `${billboard_header_section}`, children: [
|
|
@@ -78,7 +78,7 @@ const ImageBillboardSet = ({
|
|
|
78
78
|
{
|
|
79
79
|
variant: billboard_variant === "primary" || billboard_variant === "secondary" ? "primary" : "secondary"
|
|
80
80
|
}
|
|
81
|
-
) : /* @__PURE__ */ jsx("img", { src: icon
|
|
81
|
+
) : /* @__PURE__ */ jsx("img", { src: icon?.src, alt: icon?.altText }) }),
|
|
82
82
|
/* @__PURE__ */ jsx("span", { children: copy })
|
|
83
83
|
] }, id3)) })
|
|
84
84
|
] }),
|
|
@@ -30,7 +30,7 @@ const ImageBillboard = ({
|
|
|
30
30
|
textImageLineThreeSmall
|
|
31
31
|
}) => {
|
|
32
32
|
const billboard_variant = getVariant(variant);
|
|
33
|
-
position = position
|
|
33
|
+
position = position?.toLocaleLowerCase();
|
|
34
34
|
return /* @__PURE__ */ jsxs(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
@@ -40,10 +40,10 @@ const ImageBillboard = ({
|
|
|
40
40
|
billboard({ variant: billboard_variant }),
|
|
41
41
|
`rounded flex`,
|
|
42
42
|
bordered ? "bordered" : "",
|
|
43
|
-
imagePlacement({ position: position
|
|
43
|
+
imagePlacement({ position: position?.toLowerCase() }),
|
|
44
44
|
`${set ? "" : "containment"}`,
|
|
45
45
|
position === "right" && "reversed",
|
|
46
|
-
imagePlacement({ position: position
|
|
46
|
+
imagePlacement({ position: position?.toLowerCase() })
|
|
47
47
|
),
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ jsx("div", { className: `${billboard_img} flex`, children: image ? /* @__PURE__ */ jsx(
|
|
@@ -95,15 +95,15 @@ const ImageBillboard = ({
|
|
|
95
95
|
{
|
|
96
96
|
variant: billboard_variant === "primary" || billboard_variant === "secondary" ? "primary" : "secondary"
|
|
97
97
|
}
|
|
98
|
-
) : /* @__PURE__ */ jsx("img", { src: icon
|
|
98
|
+
) : /* @__PURE__ */ jsx("img", { src: icon?.src, alt: icon?.altText }) }),
|
|
99
99
|
/* @__PURE__ */ jsx("span", { children: copy })
|
|
100
100
|
] }, id2) : /* @__PURE__ */ jsx("ul", { className: clsx(sub_bullets, "mb_0", "push_up"), children: /* @__PURE__ */ jsxs("li", { className: "list_item flex", children: [
|
|
101
101
|
/* @__PURE__ */ jsx("div", { className: "img_item", children: /* @__PURE__ */ jsx(
|
|
102
102
|
"img",
|
|
103
103
|
{
|
|
104
104
|
style: { maxWidth: "max-content" },
|
|
105
|
-
src: icon
|
|
106
|
-
alt: icon
|
|
105
|
+
src: icon?.src,
|
|
106
|
+
alt: icon?.altText
|
|
107
107
|
}
|
|
108
108
|
) }),
|
|
109
109
|
/* @__PURE__ */ jsx("span", { children: copy })
|
|
@@ -28,13 +28,17 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
|
|
|
28
28
|
import "../FaqAccordion/index.js";
|
|
29
29
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
30
30
|
/* empty css */
|
|
31
|
-
import "../Forms/Forms.css.js";
|
|
32
|
-
import "../Forms/SalesforceFieldsForm.js";
|
|
33
31
|
import "@hookform/resolvers/zod";
|
|
32
|
+
import "../Input/Checkbox.js";
|
|
33
|
+
import "../Input/CurrencyInput.js";
|
|
34
|
+
import "../Input/Dropdown.js";
|
|
35
|
+
/* empty css */
|
|
34
36
|
import "../Input/Input.js";
|
|
35
37
|
import "../Input/Input.css.js";
|
|
36
38
|
import "../Input/InputPhone.js";
|
|
37
39
|
import "react-hook-form";
|
|
40
|
+
import "../Forms/Forms.css.js";
|
|
41
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
38
42
|
import { imageLinkContainer } from "../SetContainer/SetContainer.css.js";
|
|
39
43
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
40
44
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
@@ -31,13 +31,17 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
|
|
|
31
31
|
import "../FaqAccordion/index.js";
|
|
32
32
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
33
33
|
/* empty css */
|
|
34
|
-
import "../Forms/Forms.css.js";
|
|
35
|
-
import "../Forms/SalesforceFieldsForm.js";
|
|
36
34
|
import "@hookform/resolvers/zod";
|
|
35
|
+
import "../Input/Checkbox.js";
|
|
36
|
+
import "../Input/CurrencyInput.js";
|
|
37
|
+
import "../Input/Dropdown.js";
|
|
38
|
+
/* empty css */
|
|
37
39
|
import "../Input/Input.js";
|
|
38
40
|
import "../Input/Input.css.js";
|
|
39
41
|
import "../Input/InputPhone.js";
|
|
40
42
|
import "react-hook-form";
|
|
43
|
+
import "../Forms/Forms.css.js";
|
|
44
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
41
45
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
42
46
|
import ImageLink from "./ImageLink.js";
|
|
43
47
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
@@ -60,8 +64,8 @@ const ImageLinkSet = (props) => {
|
|
|
60
64
|
return /* @__PURE__ */ jsx(ImageLink, { ...item }, item.id);
|
|
61
65
|
});
|
|
62
66
|
const additionalDetails = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63
|
-
props
|
|
64
|
-
callToActionRow &&
|
|
67
|
+
props?.additionalDetails,
|
|
68
|
+
callToActionRow && callToActionRow?.length > 0 && /* @__PURE__ */ jsx("div", { className: buttons, children: callToActionRow?.map(
|
|
65
69
|
({ id, variant, displayText, targetUrl, type }) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
66
70
|
Button,
|
|
67
71
|
{
|
package/dist/ImageLink/index.js
CHANGED
|
@@ -28,13 +28,17 @@ import "../ExecutiveBio/ExecutiveBio.css.js";
|
|
|
28
28
|
import "../FaqAccordion/index.js";
|
|
29
29
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
30
30
|
/* empty css */
|
|
31
|
-
import "../Forms/Forms.css.js";
|
|
32
|
-
import "../Forms/SalesforceFieldsForm.js";
|
|
33
31
|
import "@hookform/resolvers/zod";
|
|
32
|
+
import "../Input/Checkbox.js";
|
|
33
|
+
import "../Input/CurrencyInput.js";
|
|
34
|
+
import "../Input/Dropdown.js";
|
|
35
|
+
/* empty css */
|
|
34
36
|
import "../Input/Input.js";
|
|
35
37
|
import "../Input/Input.css.js";
|
|
36
38
|
import "../Input/InputPhone.js";
|
|
37
39
|
import "react-hook-form";
|
|
40
|
+
import "../Forms/Forms.css.js";
|
|
41
|
+
import "../Forms/SalesforceFieldsForm.js";
|
|
38
42
|
import "../SetContainer/SetContainer.css.js";
|
|
39
43
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
40
44
|
import { ImageLinkSet } from "./ImageLinkSet.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const checkboxContainer: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
+
disabled: {
|
|
3
|
+
true: {};
|
|
4
|
+
};
|
|
5
|
+
}>;
|
|
6
|
+
export declare const checkbox: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
7
|
+
[x: string]: {
|
|
8
|
+
[x: string]: string | import('@vanilla-extract/css').ComplexStyleRule;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
+
var checkboxContainer = createRuntimeFn({ defaultClassName: "_3tjom70", variantClassNames: { disabled: { true: "_3tjom71" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
|
+
var checkbox = createRuntimeFn({ defaultClassName: "_3tjom72", variantClassNames: {}, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
+
export {
|
|
6
|
+
checkbox,
|
|
7
|
+
checkboxContainer
|
|
8
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { checkboxContainer, checkbox } from "./Checkbox.css.js";
|
|
5
|
+
import { wrapper, container, labelClassName, input, helperText } from "./Input.css.js";
|
|
6
|
+
const Checkbox = forwardRef((props, ref) => {
|
|
7
|
+
const {
|
|
8
|
+
disabled,
|
|
9
|
+
sizes,
|
|
10
|
+
error = false,
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
12
|
+
skeleton = false,
|
|
13
|
+
helperText: helper,
|
|
14
|
+
variant,
|
|
15
|
+
children,
|
|
16
|
+
...rest
|
|
17
|
+
} = props;
|
|
18
|
+
const isCheckbox = true;
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: wrapper(), children: [
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: container({ size: sizes, error }), children: /* @__PURE__ */ jsxs(
|
|
21
|
+
"label",
|
|
22
|
+
{
|
|
23
|
+
className: labelClassName({ error, variant, isCheckbox }),
|
|
24
|
+
htmlFor: props.name,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: checkboxContainer({}), children: /* @__PURE__ */ jsx(
|
|
27
|
+
"input",
|
|
28
|
+
{
|
|
29
|
+
...rest,
|
|
30
|
+
ref,
|
|
31
|
+
type: "checkbox",
|
|
32
|
+
className: clsx(
|
|
33
|
+
props.className,
|
|
34
|
+
input({ size: sizes }),
|
|
35
|
+
checkbox({})
|
|
36
|
+
)
|
|
37
|
+
}
|
|
38
|
+
) }),
|
|
39
|
+
children
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
) }),
|
|
43
|
+
/* @__PURE__ */ jsx("span", { className: helperText({ disabled, error }), children: helper })
|
|
44
|
+
] });
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
Checkbox
|
|
48
|
+
};
|