@axos-web-dev/shared-components 0.0.57 → 0.0.59
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/Article/Article.css.d.ts +158 -0
- package/dist/Article/Article.css.js +21 -0
- package/dist/Article/Article.d.ts +14 -0
- package/dist/Article/Article.js +51 -0
- package/dist/Article/index.d.ts +2 -0
- package/dist/Article/index.js +12 -0
- package/dist/ArticlesSet/ArticlesSet.css.d.ts +131 -0
- package/dist/ArticlesSet/ArticlesSet.css.js +21 -0
- package/dist/ArticlesSet/ArticlesSet.d.ts +12 -0
- package/dist/ArticlesSet/ArticlesSet.js +115 -0
- package/dist/ArticlesSet/index.d.ts +2 -0
- package/dist/ArticlesSet/index.js +12 -0
- package/dist/AwardsBanner/AwardsBanner.css.d.ts +2 -0
- package/dist/AwardsBanner/AwardsBanner.css.js +7 -0
- package/dist/AwardsBanner/AwardsBanner.d.ts +8 -0
- package/dist/AwardsBanner/AwardsBanner.js +18 -0
- package/dist/AwardsBanner/index.d.ts +2 -0
- package/dist/AwardsBanner/index.js +7 -0
- package/dist/AwardsItem/AwardsItem.css.d.ts +3 -0
- package/dist/AwardsItem/AwardsItem.css.js +10 -0
- package/dist/AwardsItem/AwardsItem.d.ts +9 -0
- package/dist/AwardsItem/AwardsItem.js +29 -0
- package/dist/AwardsItem/index.d.ts +2 -0
- package/dist/AwardsItem/index.js +8 -0
- package/dist/Carousel/index.js +5 -0
- package/dist/Chevron/index.js +6 -1
- package/dist/ExecutiveBio/ExecutiveBio.css.d.ts +149 -67
- package/dist/ExecutiveBio/ExecutiveBio.css.js +14 -12
- package/dist/ExecutiveBio/ExecutiveBio.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBio.interface.d.ts +4 -2
- package/dist/ExecutiveBio/ExecutiveBio.js +119 -47
- package/dist/ExecutiveBio/ExecutiveBioSet.d.ts +1 -1
- package/dist/ExecutiveBio/ExecutiveBioSet.js +21 -128
- package/dist/ExecutiveBio/index.js +3 -2
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +6 -1
- package/dist/Forms/ApplicationStart.js +1 -0
- package/dist/Forms/ContactCompany.d.ts +25 -0
- package/dist/Forms/ContactCompany.js +190 -0
- package/dist/Forms/ContactUsBusiness.js +5 -0
- package/dist/Forms/DealerServices.d.ts +32 -0
- package/dist/Forms/DealerServices.js +311 -0
- package/dist/Forms/EmailOnly.js +5 -0
- package/dist/Forms/RenderForm.js +5 -0
- package/dist/Forms/ScheduleCall.js +1 -0
- package/dist/Forms/ScheduleCallPremier.js +1 -0
- package/dist/Forms/SuccesForm.d.ts +7 -3
- package/dist/Forms/SuccesForm.js +76 -61
- package/dist/Forms/index.d.ts +2 -0
- package/dist/Forms/index.js +4 -0
- package/dist/Hyperlink/index.js +6 -1
- package/dist/ImageLink/ImageLink.js +5 -0
- package/dist/ImageLink/ImageLinkSet.js +5 -0
- package/dist/ImageLink/index.js +6 -1
- package/dist/Input/CurrencyInput.js +1 -0
- package/dist/Input/InputPhone.js +1 -0
- package/dist/Input/InputTextArea.d.ts +16 -0
- package/dist/Input/InputTextArea.js +48 -0
- package/dist/Input/index.d.ts +1 -0
- package/dist/Input/index.js +2 -0
- package/dist/Modal/Modal.js +6 -1
- package/dist/NavigationMenu/AxosAdvisorServices/NavData.js +1 -1
- package/dist/SetContainer/SetContainer.js +5 -0
- package/dist/assets/Article/Article.css +187 -0
- package/dist/assets/ArticlesSet/ArticlesSet.css +135 -0
- package/dist/assets/AwardsBanner/AwardsBanner.css +19 -0
- package/dist/assets/AwardsItem/AwardsItem.css +40 -0
- package/dist/assets/ExecutiveBio/ExecutiveBio.css +177 -89
- package/dist/assets/SetContainer/SetContainer.css +0 -3
- package/dist/main.d.ts +4 -0
- package/dist/main.js +40 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
|
-
import { padding, item_bio, shift, media, headshot, img_area, description, person,
|
|
3
|
+
import { padding, item_bio, shift, media, headshot, img_area, description, person, headline_setting, job_title, copy, contacts, contact_col, svg_icon, contact_entry, contact_links } from "./ExecutiveBio.css.js";
|
|
4
4
|
const ExecutiveBio = ({
|
|
5
5
|
id,
|
|
6
6
|
executiveName,
|
|
@@ -8,6 +8,8 @@ const ExecutiveBio = ({
|
|
|
8
8
|
executiveBodyCopy,
|
|
9
9
|
executiveEmailAddress,
|
|
10
10
|
executivePhoneNumber,
|
|
11
|
+
executiveLinkedIn,
|
|
12
|
+
executiveWebsite,
|
|
11
13
|
executiveHeadshot,
|
|
12
14
|
variant: fullVariant = "primary"
|
|
13
15
|
}) => {
|
|
@@ -26,56 +28,126 @@ const ExecutiveBio = ({
|
|
|
26
28
|
) }) }),
|
|
27
29
|
/* @__PURE__ */ jsxs("div", { className: `${description} flex_col between`, children: [
|
|
28
30
|
/* @__PURE__ */ jsxs("div", { className: person, children: [
|
|
29
|
-
/* @__PURE__ */ jsx("h2", { className: `${
|
|
31
|
+
/* @__PURE__ */ jsx("h2", { className: `${headline_setting({ variant })} header_3`, children: executiveName }),
|
|
30
32
|
/* @__PURE__ */ jsx("h3", { className: `${job_title({ variant })}`, children: executiveTitle }),
|
|
31
33
|
/* @__PURE__ */ jsx("div", { className: copy, children: executiveBodyCopy })
|
|
32
34
|
] }),
|
|
33
|
-
(executiveEmailAddress || executivePhoneNumber) && /* @__PURE__ */
|
|
34
|
-
executivePhoneNumber && /* @__PURE__ */ jsxs("div", { className:
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
(executiveEmailAddress || executivePhoneNumber || executiveLinkedIn || executiveWebsite) && /* @__PURE__ */ jsxs("div", { className: `${contacts} flex between push_up_24`, children: [
|
|
36
|
+
(executivePhoneNumber || executiveEmailAddress) && /* @__PURE__ */ jsxs("div", { className: contact_col, children: [
|
|
37
|
+
executivePhoneNumber && /* @__PURE__ */ jsxs("div", { className: "flex middle", children: [
|
|
38
|
+
/* @__PURE__ */ jsx(
|
|
39
|
+
"svg",
|
|
40
|
+
{
|
|
41
|
+
width: "24",
|
|
42
|
+
height: "24",
|
|
43
|
+
viewBox: "0 0 24 24",
|
|
44
|
+
fill: "none",
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
children: /* @__PURE__ */ jsx(
|
|
48
|
+
"path",
|
|
49
|
+
{
|
|
50
|
+
"fill-rule": "evenodd",
|
|
51
|
+
"clip-rule": "evenodd",
|
|
52
|
+
d: "M5.25 4.5C5.25 2.84315 6.59315 1.5 8.25 1.5H15.75C17.4069 1.5 18.75 2.84315 18.75 4.5V19.5C18.75 21.1569 17.4069 22.5 15.75 22.5H8.25C6.59315 22.5 5.25 21.1569 5.25 19.5V4.5ZM6.75 4.5C6.75 3.67157 7.42157 3 8.25 3C8.25 3.82843 8.92157 4.5 9.75 4.5H14.25C15.0784 4.5 15.75 3.82843 15.75 3C16.5784 3 17.25 3.67157 17.25 4.5V19.5C17.25 20.3284 16.5784 21 15.75 21H8.25C7.42157 21 6.75 20.3284 6.75 19.5V4.5Z",
|
|
53
|
+
fill: "#1E3860",
|
|
54
|
+
className: svg_icon({ variant })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ jsx("div", { className: contact_entry({ variant }), children: /* @__PURE__ */ jsx("a", { href: `tel:${executivePhoneNumber}`, children: executivePhoneNumber }) })
|
|
60
|
+
] }),
|
|
61
|
+
executiveEmailAddress && /* @__PURE__ */ jsxs("div", { className: "flex middle", children: [
|
|
62
|
+
/* @__PURE__ */ jsx(
|
|
63
|
+
"svg",
|
|
64
|
+
{
|
|
65
|
+
width: "24",
|
|
66
|
+
height: "24",
|
|
67
|
+
viewBox: "0 0 24 24",
|
|
68
|
+
fill: "none",
|
|
69
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
70
|
+
"aria-hidden": "true",
|
|
71
|
+
children: /* @__PURE__ */ jsx(
|
|
72
|
+
"path",
|
|
73
|
+
{
|
|
74
|
+
d: "M21 4.5C21.8284 4.5 22.5 5.17157 22.5 6V18C22.5 18.8284 21.8284 19.5 21 19.5H3C2.17157 19.5 1.5 18.8284 1.5 18V6C1.5 5.17157 2.17157 4.5 3 4.5H21ZM14.3932 12.455L14.1963 12.6098C12.8873 13.5569 11.1127 13.5569 9.80369 12.6098L9.60517 12.455L4.059 18H19.9395L14.3932 12.455ZM21 6.8655L15.5437 11.483L21 16.9395V6.8655ZM3 6.867V16.938L8.45467 11.483L3 6.867ZM19.701 6H4.2975L10.5466 11.2878C11.3296 11.9503 12.4523 11.9944 13.2806 11.4203L13.4534 11.2878L19.701 6Z",
|
|
75
|
+
fill: "#1E3860",
|
|
76
|
+
className: svg_icon({ variant })
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
/* @__PURE__ */ jsx("div", { className: contact_entry({ variant }), children: /* @__PURE__ */ jsx("a", { href: `mailto:${executiveEmailAddress}`, children: executiveEmailAddress }) })
|
|
82
|
+
] })
|
|
56
83
|
] }),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
(executiveLinkedIn || executiveWebsite) && /* @__PURE__ */ jsxs(
|
|
85
|
+
"div",
|
|
86
|
+
{
|
|
87
|
+
className: `${contact_col} ${contact_links} flex_col between`,
|
|
88
|
+
children: [
|
|
89
|
+
executiveLinkedIn && /* @__PURE__ */ jsxs("div", { className: "flex middle", children: [
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
"a",
|
|
92
|
+
{
|
|
93
|
+
href: `${executiveLinkedIn}`,
|
|
94
|
+
className: `${headline_setting({ variant })} btn_link`,
|
|
95
|
+
children: "LinkedIn"
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ jsx(
|
|
99
|
+
"svg",
|
|
100
|
+
{
|
|
101
|
+
width: "16",
|
|
102
|
+
height: "16",
|
|
103
|
+
viewBox: "0 0 24 24",
|
|
104
|
+
fill: "none",
|
|
105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
106
|
+
"aria-hidden": "true",
|
|
107
|
+
children: /* @__PURE__ */ jsx(
|
|
108
|
+
"path",
|
|
109
|
+
{
|
|
110
|
+
d: "M7.81069 2.25L17.341 11.7803L7.81069 21.3107L6.75003 20.25L15.2199 11.7803L6.75003 3.31066L7.81069 2.25Z",
|
|
111
|
+
fill: "#2F5B88",
|
|
112
|
+
className: svg_icon({ variant })
|
|
113
|
+
}
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] }),
|
|
118
|
+
executiveWebsite && /* @__PURE__ */ jsxs("div", { className: "flex middle", children: [
|
|
119
|
+
/* @__PURE__ */ jsx(
|
|
120
|
+
"a",
|
|
121
|
+
{
|
|
122
|
+
href: `${executiveWebsite}`,
|
|
123
|
+
className: `${headline_setting({ variant })} btn_link`,
|
|
124
|
+
children: "Website"
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
/* @__PURE__ */ jsx(
|
|
128
|
+
"svg",
|
|
129
|
+
{
|
|
130
|
+
width: "16",
|
|
131
|
+
height: "16",
|
|
132
|
+
viewBox: "0 0 24 24",
|
|
133
|
+
fill: "none",
|
|
134
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
135
|
+
"aria-hidden": "true",
|
|
136
|
+
children: /* @__PURE__ */ jsx(
|
|
137
|
+
"path",
|
|
138
|
+
{
|
|
139
|
+
d: "M7.81069 2.25L17.341 11.7803L7.81069 21.3107L6.75003 20.25L15.2199 11.7803L6.75003 3.31066L7.81069 2.25Z",
|
|
140
|
+
fill: "#2F5B88",
|
|
141
|
+
className: svg_icon({ variant })
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] })
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
] })
|
|
79
151
|
] })
|
|
80
152
|
] }) }) }) });
|
|
81
153
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SetContainerProps } from '../SetContainer';
|
|
2
2
|
import { ExecutiveBioSetProps as Props } from './ExecutiveBio.interface';
|
|
3
3
|
|
|
4
|
-
export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant
|
|
4
|
+
export declare const ExecutiveBioSet: ({ id, title, description, executiveBios, additionalDetails, variant: fullVariant, }: Props & SetContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,144 +1,37 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { getVariant } from "../utils/getVariant.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ExecutiveBio } from "./ExecutiveBio.js";
|
|
4
|
+
import { section_theme, bio_section_text, header_theme, components, details } from "./ExecutiveBio.css.js";
|
|
4
5
|
const ExecutiveBioSet = ({
|
|
5
6
|
id,
|
|
6
7
|
title,
|
|
7
8
|
description,
|
|
8
9
|
executiveBios,
|
|
9
10
|
additionalDetails,
|
|
10
|
-
variant
|
|
11
|
-
headline
|
|
11
|
+
variant: fullVariant = "primary"
|
|
12
12
|
}) => {
|
|
13
|
+
const variant = getVariant(fullVariant);
|
|
13
14
|
return /* @__PURE__ */ jsxs("section", { id, className: section_theme({ variant }), children: [
|
|
14
15
|
/* @__PURE__ */ jsx("div", { className: "containment", children: (title || description) && /* @__PURE__ */ jsxs("div", { className: bio_section_text, children: [
|
|
15
|
-
|
|
16
|
-
"h2",
|
|
17
|
-
{
|
|
18
|
-
className: `header_1 ${header_theme({ variant: getVariant(variant) })}`,
|
|
19
|
-
children: title
|
|
20
|
-
}
|
|
21
|
-
),
|
|
16
|
+
title && /* @__PURE__ */ jsx("h2", { className: `header_1 ${header_theme({ variant })}`, children: title }),
|
|
22
17
|
description && /* @__PURE__ */ jsx(Fragment, { children: description })
|
|
23
18
|
] }) }),
|
|
24
|
-
/* @__PURE__ */ jsx("div", { className: components, children: executiveBios.map(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"div",
|
|
41
|
-
{
|
|
42
|
-
className: img_area,
|
|
43
|
-
style: {
|
|
44
|
-
backgroundImage: `url(${executiveHeadshot?.src})`
|
|
45
|
-
},
|
|
46
|
-
role: "presentation",
|
|
47
|
-
children: " "
|
|
48
|
-
}
|
|
49
|
-
) }) }),
|
|
50
|
-
/* @__PURE__ */ jsxs("div", { className: `${description} flex_col between`, children: [
|
|
51
|
-
/* @__PURE__ */ jsxs("div", { className: person, children: [
|
|
52
|
-
title ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
54
|
-
"h3",
|
|
55
|
-
{
|
|
56
|
-
className: `${bio_name({ variant: getVariant(variant2) })} header_3`,
|
|
57
|
-
children: executiveName
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ jsx(
|
|
61
|
-
"h4",
|
|
62
|
-
{
|
|
63
|
-
className: `${job_title({ variant: getVariant(variant2) })}`,
|
|
64
|
-
children: executiveTitle
|
|
65
|
-
}
|
|
66
|
-
)
|
|
67
|
-
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
68
|
-
/* @__PURE__ */ jsx(
|
|
69
|
-
"h2",
|
|
70
|
-
{
|
|
71
|
-
className: `${bio_name({ variant: getVariant(variant2) })} header_3`,
|
|
72
|
-
children: executiveName
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
/* @__PURE__ */ jsx(
|
|
76
|
-
"h3",
|
|
77
|
-
{
|
|
78
|
-
className: `${job_title({ variant: getVariant(variant2) })}`,
|
|
79
|
-
children: executiveTitle
|
|
80
|
-
}
|
|
81
|
-
)
|
|
82
|
-
] }),
|
|
83
|
-
/* @__PURE__ */ jsx("div", { className: copy, children: executiveBodyCopy })
|
|
84
|
-
] }),
|
|
85
|
-
executiveEmailAddress || executivePhoneNumber && /* @__PURE__ */ jsx(
|
|
86
|
-
"div",
|
|
87
|
-
{
|
|
88
|
-
className: `${contacts} flex between push_up_24`,
|
|
89
|
-
children: /* @__PURE__ */ jsxs("div", { className: `${contact_col} flex`, children: [
|
|
90
|
-
executivePhoneNumber && /* @__PURE__ */ jsxs("div", { className: "flex middle", children: [
|
|
91
|
-
/* @__PURE__ */ jsx(
|
|
92
|
-
"svg",
|
|
93
|
-
{
|
|
94
|
-
width: "24",
|
|
95
|
-
height: "24",
|
|
96
|
-
viewBox: "0 0 24 24",
|
|
97
|
-
fill: "none",
|
|
98
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
99
|
-
children: /* @__PURE__ */ jsx(
|
|
100
|
-
"path",
|
|
101
|
-
{
|
|
102
|
-
className: svg_icon({ variant: variant2 }),
|
|
103
|
-
"fill-rule": "evenodd",
|
|
104
|
-
"clip-rule": "evenodd",
|
|
105
|
-
d: "M5.25 4.5C5.25 2.84315 6.59315 1.5 8.25 1.5H15.75C17.4069 1.5 18.75 2.84315 18.75 4.5V19.5C18.75 21.1569 17.4069 22.5 15.75 22.5H8.25C6.59315 22.5 5.25 21.1569 5.25 19.5V4.5ZM6.75 4.5C6.75 3.67157 7.42157 3 8.25 3C8.25 3.82843 8.92157 4.5 9.75 4.5H14.25C15.0784 4.5 15.75 3.82843 15.75 3C16.5784 3 17.25 3.67157 17.25 4.5V19.5C17.25 20.3284 16.5784 21 15.75 21H8.25C7.42157 21 6.75 20.3284 6.75 19.5V4.5Z",
|
|
106
|
-
fill: "#1E3860"
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
}
|
|
110
|
-
),
|
|
111
|
-
/* @__PURE__ */ jsx("div", { className: contact_entry({ variant: variant2 }), children: /* @__PURE__ */ jsx("a", { href: `tel:${executivePhoneNumber}`, children: executivePhoneNumber }) })
|
|
112
|
-
] }),
|
|
113
|
-
executivePhoneNumber && /* @__PURE__ */ jsxs("div", { className: "flex middle", children: [
|
|
114
|
-
/* @__PURE__ */ jsx(
|
|
115
|
-
"svg",
|
|
116
|
-
{
|
|
117
|
-
className: svg_icon({ variant: variant2 }),
|
|
118
|
-
width: "24",
|
|
119
|
-
height: "24",
|
|
120
|
-
viewBox: "0 0 24 24",
|
|
121
|
-
fill: "none",
|
|
122
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
123
|
-
children: /* @__PURE__ */ jsx(
|
|
124
|
-
"path",
|
|
125
|
-
{
|
|
126
|
-
d: "M21 4.5C21.8284 4.5 22.5 5.17157 22.5 6V18C22.5 18.8284 21.8284 19.5 21 19.5H3C2.17157 19.5 1.5 18.8284 1.5 18V6C1.5 5.17157 2.17157 4.5 3 4.5H21ZM14.3932 12.455L14.1963 12.6098C12.8873 13.5569 11.1127 13.5569 9.80369 12.6098L9.60517 12.455L4.059 18H19.9395L14.3932 12.455ZM21 6.8655L15.5437 11.483L21 16.9395V6.8655ZM3 6.867V16.938L8.45467 11.483L3 6.867ZM19.701 6H4.2975L10.5466 11.2878C11.3296 11.9503 12.4523 11.9944 13.2806 11.4203L13.4534 11.2878L19.701 6Z",
|
|
127
|
-
fill: "#1E3860"
|
|
128
|
-
}
|
|
129
|
-
)
|
|
130
|
-
}
|
|
131
|
-
),
|
|
132
|
-
/* @__PURE__ */ jsx("div", { className: contact_entry({ variant: variant2 }), children: /* @__PURE__ */ jsx("a", { href: `mailto:${executiveEmailAddress}`, children: executiveEmailAddress }) })
|
|
133
|
-
] })
|
|
134
|
-
] })
|
|
135
|
-
}
|
|
136
|
-
)
|
|
137
|
-
] })
|
|
138
|
-
] })
|
|
139
|
-
}
|
|
140
|
-
) }) }, id2)
|
|
141
|
-
) }),
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: components, children: executiveBios.map((bio, index) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
|
|
20
|
+
ExecutiveBio,
|
|
21
|
+
{
|
|
22
|
+
id: `id_${bio.id}`,
|
|
23
|
+
executiveName: bio?.executiveName,
|
|
24
|
+
executiveTitle: bio?.executiveTitle,
|
|
25
|
+
executiveBodyCopy: bio?.executiveBodyCopy,
|
|
26
|
+
executiveEmailAddress: bio?.executiveEmailAddress,
|
|
27
|
+
executivePhoneNumber: bio?.executivePhoneNumber,
|
|
28
|
+
executiveLinkedIn: bio?.executiveLinkedIn,
|
|
29
|
+
executiveWebsite: bio?.executiveWebsite,
|
|
30
|
+
executiveHeadshot: { src: bio?.executiveHeadshot?.src || "" },
|
|
31
|
+
variant: bio?.variant
|
|
32
|
+
},
|
|
33
|
+
index
|
|
34
|
+
) })) }),
|
|
142
35
|
additionalDetails && /* @__PURE__ */ jsx("div", { className: "containment", children: /* @__PURE__ */ jsx("div", { className: details, children: /* @__PURE__ */ jsx(Fragment, { children: additionalDetails }) }) })
|
|
143
36
|
] });
|
|
144
37
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { ExecutiveBio } from "./ExecutiveBio.js";
|
|
2
|
-
import {
|
|
2
|
+
import { bio_section_text, components, contact_col, contact_entry, contact_links, contacts, copy, description, details, header_theme, headline_setting, headshot, img_area, item_bio, job_title, media, padding, person, section_theme, shift, svg_icon } from "./ExecutiveBio.css.js";
|
|
3
3
|
import { ExecutiveBioSet } from "./ExecutiveBioSet.js";
|
|
4
4
|
export {
|
|
5
5
|
ExecutiveBio,
|
|
6
6
|
ExecutiveBioSet,
|
|
7
|
-
bio_name,
|
|
8
7
|
bio_section_text,
|
|
9
8
|
components,
|
|
10
9
|
contact_col,
|
|
11
10
|
contact_entry,
|
|
11
|
+
contact_links,
|
|
12
12
|
contacts,
|
|
13
13
|
copy,
|
|
14
14
|
description,
|
|
15
15
|
details,
|
|
16
16
|
header_theme,
|
|
17
|
+
headline_setting,
|
|
17
18
|
headshot,
|
|
18
19
|
img_area,
|
|
19
20
|
item_bio,
|
|
@@ -16,8 +16,12 @@ import "react";
|
|
|
16
16
|
import "../../Button/Button.css.js";
|
|
17
17
|
import "react-use";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import "../../
|
|
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";
|