@axos-web-dev/shared-components 0.0.85 → 0.0.87
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/Calculators/Calculator.js +32 -34
- package/dist/Carousel/index.js +1 -0
- package/dist/Chevron/index.js +1 -0
- package/dist/Comparison/Comparison.js +1 -0
- package/dist/Comparison/ComparisonSet.js +1 -0
- package/dist/FaqAccordion/index.js +1 -1
- package/dist/FooterSiteMap/AxosBank/FooterSiteMap.js +1 -0
- package/dist/Forms/ContactUsBusiness.js +1 -0
- package/dist/Forms/ContactUsNMLSId.js +1 -0
- package/dist/Forms/EmailOnly.js +1 -0
- package/dist/Forms/SuccesForm.js +1 -0
- package/dist/HeroBanner/HeroBanner.css.d.ts +1 -0
- package/dist/HeroBanner/HeroBanner.css.js +9 -7
- package/dist/HeroBanner/HeroBanner.js +79 -66
- package/dist/HeroBanner/index.js +2 -1
- package/dist/Hyperlink/index.js +1 -0
- package/dist/ImageLink/ImageLink.js +1 -0
- package/dist/ImageLink/ImageLinkSet.js +1 -0
- package/dist/ImageLink/index.js +1 -0
- package/dist/Interstitial/Interstitial-variants.css.d.ts +10 -0
- package/dist/Interstitial/Interstitial-variants.css.js +9 -0
- package/dist/Interstitial/Interstitial.d.ts +16 -0
- package/dist/Interstitial/Interstitial.js +91 -0
- package/dist/Interstitial/Interstitial.module.js +32 -0
- package/dist/Interstitial/index.d.ts +1 -0
- package/dist/Interstitial/index.js +22 -0
- package/dist/Modal/Modal.js +1 -0
- package/dist/NavigationMenu/AxosBank/SubNavBar.js +127 -651
- package/dist/SetContainer/SetContainer.js +1 -0
- package/dist/Table/Table.css.d.ts +1 -0
- package/dist/Table/Table.css.js +2 -0
- package/dist/Table/Table.interface.d.ts +1 -0
- package/dist/Table/Table.js +1 -1
- package/dist/Table/index.js +2 -1
- package/dist/assets/HeroBanner/HeroBanner.css +39 -35
- package/dist/assets/HeroBanner/SelectionBanner.css +1 -0
- package/dist/assets/Interstitial/Interstitial-variants.css +9 -0
- package/dist/assets/Interstitial/Interstitial.css.css +137 -0
- package/dist/assets/SetContainer/SetContainer.css +2 -3
- package/dist/assets/Table/Table.css +5 -1
- package/dist/assets/globals.css +6 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +6 -2
- package/dist/utils/allowedAxosDomains.js +3 -1
- package/package.json +1 -1
|
@@ -63,6 +63,7 @@ import "../FaqAccordion/index.js";
|
|
|
63
63
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
64
64
|
/* empty css */
|
|
65
65
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
66
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
66
67
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
67
68
|
/* empty css */
|
|
68
69
|
/* empty css */
|
|
@@ -159,42 +160,39 @@ const Calculator = (props) => {
|
|
|
159
160
|
}
|
|
160
161
|
);
|
|
161
162
|
} else
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ jsx(
|
|
168
|
-
"h2",
|
|
169
|
-
{
|
|
170
|
-
className: clsx(
|
|
171
|
-
"header_2 text_center",
|
|
172
|
-
calculator_headline({ variant })
|
|
173
|
-
),
|
|
174
|
-
children: headline
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: bodyCopy })
|
|
178
|
-
] }),
|
|
179
|
-
/* @__PURE__ */ jsx("div", { className: "calc section-narrow", children: /* @__PURE__ */ jsx(
|
|
180
|
-
"iframe",
|
|
163
|
+
return /* @__PURE__ */ jsx("section", { id, children: /* @__PURE__ */ jsxs("div", { className: clsx("containment"), children: [
|
|
164
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
165
|
+
icon && /* @__PURE__ */ jsx("div", { className: clsx("text_center", iconForm), children: ["primary", "secondary"].includes(variant) ? /* @__PURE__ */ jsx(SvgComponent, {}) : /* @__PURE__ */ jsx(SvgAxosX, {}) }),
|
|
166
|
+
/* @__PURE__ */ jsx(
|
|
167
|
+
"h2",
|
|
181
168
|
{
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
},
|
|
188
|
-
scrolling: "no",
|
|
189
|
-
frameBorder: "0",
|
|
190
|
-
className: "iframe-calculator",
|
|
191
|
-
allow: "from",
|
|
192
|
-
src: iframe?.src
|
|
169
|
+
className: clsx(
|
|
170
|
+
"header_2 text_center",
|
|
171
|
+
calculator_headline({ variant })
|
|
172
|
+
),
|
|
173
|
+
children: headline
|
|
193
174
|
}
|
|
194
|
-
)
|
|
195
|
-
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children:
|
|
196
|
-
] })
|
|
197
|
-
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: bodyCopy })
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ jsx("div", { className: "calc section-narrow", children: /* @__PURE__ */ jsx(
|
|
179
|
+
"iframe",
|
|
180
|
+
{
|
|
181
|
+
ref,
|
|
182
|
+
style: {
|
|
183
|
+
width: "100%",
|
|
184
|
+
maxWidth: "100%",
|
|
185
|
+
minHeight: "clamp(1100px, 200vh)"
|
|
186
|
+
},
|
|
187
|
+
scrolling: "no",
|
|
188
|
+
frameBorder: "0",
|
|
189
|
+
className: "iframe-calculator",
|
|
190
|
+
allow: "from",
|
|
191
|
+
src: iframe?.src
|
|
192
|
+
}
|
|
193
|
+
) }),
|
|
194
|
+
/* @__PURE__ */ jsx("div", { className: clsx(calculator_description({ variant })), children: disclosure })
|
|
195
|
+
] }) });
|
|
198
196
|
};
|
|
199
197
|
export {
|
|
200
198
|
Calculator
|
package/dist/Carousel/index.js
CHANGED
|
@@ -64,6 +64,7 @@ import "../FaqAccordion/index.js";
|
|
|
64
64
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
65
65
|
/* empty css */
|
|
66
66
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
67
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
67
68
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
68
69
|
import "../Chevron/Chevron.css.js";
|
|
69
70
|
/* empty css */
|
package/dist/Chevron/index.js
CHANGED
|
@@ -64,6 +64,7 @@ import "../FaqAccordion/index.js";
|
|
|
64
64
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
65
65
|
/* empty css */
|
|
66
66
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
67
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
67
68
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
68
69
|
import { chevron_wrapper, chevron } from "./Chevron.css.js";
|
|
69
70
|
/* empty css */
|
|
@@ -62,6 +62,7 @@ import "../FaqAccordion/index.js";
|
|
|
62
62
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
63
63
|
/* empty css */
|
|
64
64
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
65
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
65
66
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
66
67
|
import "../Chevron/Chevron.css.js";
|
|
67
68
|
/* empty css */
|
|
@@ -62,6 +62,7 @@ import "../HeroBanner/SelectionBanner.css.js";
|
|
|
62
62
|
import "../SetContainer/SetContainer.css.js";
|
|
63
63
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
64
64
|
import { SetContainer } from "../SetContainer/SetContainer.js";
|
|
65
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
65
66
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
66
67
|
import "../Chevron/Chevron.css.js";
|
|
67
68
|
/* empty css */
|
|
@@ -30,7 +30,6 @@ const AccordionItem = (props) => {
|
|
|
30
30
|
const isOpen = useAccordion((state) => state.itemsOpened);
|
|
31
31
|
const toggle = (event) => {
|
|
32
32
|
event.stopPropagation();
|
|
33
|
-
event.preventDefault();
|
|
34
33
|
const ev = event.target;
|
|
35
34
|
let evClasses = ev.getAttribute("class");
|
|
36
35
|
if (!evClasses) {
|
|
@@ -39,6 +38,7 @@ const AccordionItem = (props) => {
|
|
|
39
38
|
if (!evClasses?.includes(summary) !== (evClasses?.includes(summaryHeader) || evClasses?.includes(icon))) {
|
|
40
39
|
return;
|
|
41
40
|
}
|
|
41
|
+
event.preventDefault();
|
|
42
42
|
if (!isOpen.includes(props.id)) {
|
|
43
43
|
addItem(props.id);
|
|
44
44
|
} else {
|
|
@@ -62,6 +62,7 @@ import "../../FaqAccordion/index.js";
|
|
|
62
62
|
import "../../FooterDisclosure/FooterDisclosure.css.js";
|
|
63
63
|
import { footer_section, footer_wrapper, ft_col, ft_col_header, ft_col_subheader, nested_grid, app_col, footer_mobile, ft_panel_group, ft_panel } from "./FooterSiteMap.css.js";
|
|
64
64
|
import "../../ImageBillboard/ImageBillboard.css.js";
|
|
65
|
+
import "../../Interstitial/Interstitial-variants.css.js";
|
|
65
66
|
import "../../LandingPageHeader/LandingPageHeader.css.js";
|
|
66
67
|
/* empty css */
|
|
67
68
|
/* empty css */
|
|
@@ -66,6 +66,7 @@ import "../FaqAccordion/index.js";
|
|
|
66
66
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
67
67
|
/* empty css */
|
|
68
68
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
69
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
69
70
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
70
71
|
/* empty css */
|
|
71
72
|
import "../Modal/contextApi/store.js";
|
|
@@ -66,6 +66,7 @@ import "../FaqAccordion/index.js";
|
|
|
66
66
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
67
67
|
/* empty css */
|
|
68
68
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
69
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
69
70
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
70
71
|
/* empty css */
|
|
71
72
|
import "../Modal/contextApi/store.js";
|
package/dist/Forms/EmailOnly.js
CHANGED
|
@@ -67,6 +67,7 @@ import "../FaqAccordion/index.js";
|
|
|
67
67
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
68
68
|
/* empty css */
|
|
69
69
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
70
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
70
71
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
71
72
|
/* empty css */
|
|
72
73
|
import "../Modal/contextApi/store.js";
|
package/dist/Forms/SuccesForm.js
CHANGED
|
@@ -61,6 +61,7 @@ import "../FaqAccordion/index.js";
|
|
|
61
61
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
62
62
|
/* empty css */
|
|
63
63
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
64
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
64
65
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
65
66
|
/* empty css */
|
|
66
67
|
/* empty css */
|
|
@@ -21,6 +21,7 @@ export declare const hero_banner: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare const hero_content: string;
|
|
23
23
|
export declare const reversed: string;
|
|
24
|
+
export declare const reversed_lg_image: string;
|
|
24
25
|
export declare const hero_text: string;
|
|
25
26
|
export declare const hero_wrapper: string;
|
|
26
27
|
export declare const hero_img: string;
|
|
@@ -8,12 +8,13 @@ var logout = "_1ye8k3f0";
|
|
|
8
8
|
var hero_banner = createRuntimeFn({ defaultClassName: "_1ye8k3f1", variantClassNames: { variant: { primary: "_1ye8k3f2", secondary: "_1ye8k3f3", tertiary: "_1ye8k3f4", quaternary: "_1ye8k3f5" } }, defaultVariants: {}, compoundVariants: [] });
|
|
9
9
|
var hero_content = "_1ye8k3f6";
|
|
10
10
|
var reversed = "_1ye8k3f7";
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
11
|
+
var reversed_lg_image = "_1ye8k3f8";
|
|
12
|
+
var hero_text = "_1ye8k3f9";
|
|
13
|
+
var hero_wrapper = "_1ye8k3fa";
|
|
14
|
+
var hero_img = "_1ye8k3fb";
|
|
15
|
+
var heroSupertag = createRuntimeFn({ defaultClassName: "_1ye8k3fc", variantClassNames: { variant: { primary: "_1ye8k3fd", secondary: "_1ye8k3fe", tertiary: "_1ye8k3ff", quaternary: "_1ye8k3fg" } }, defaultVariants: {}, compoundVariants: [] });
|
|
16
|
+
var headline_text = createRuntimeFn({ defaultClassName: "_1ye8k3fh", variantClassNames: { variant: { primary: "_1ye8k3fi", secondary: "_1ye8k3fj", tertiary: "_1ye8k3fk", quaternary: "_1ye8k3fl" } }, defaultVariants: {}, compoundVariants: [] });
|
|
17
|
+
var hero_btns = "_1ye8k3fm";
|
|
17
18
|
export {
|
|
18
19
|
headline_text,
|
|
19
20
|
heroSupertag,
|
|
@@ -24,5 +25,6 @@ export {
|
|
|
24
25
|
hero_text,
|
|
25
26
|
hero_wrapper,
|
|
26
27
|
logout,
|
|
27
|
-
reversed
|
|
28
|
+
reversed,
|
|
29
|
+
reversed_lg_image
|
|
28
30
|
};
|
|
@@ -6,7 +6,7 @@ import "react-use";
|
|
|
6
6
|
import { Chevron } from "../Chevron/index.js";
|
|
7
7
|
import { getVariant } from "../utils/getVariant.js";
|
|
8
8
|
import clsx from "clsx";
|
|
9
|
-
import { logout, hero_banner, hero_wrapper, hero_content, reversed, hero_text, heroSupertag, headline_text, hero_btns, hero_img } from "./HeroBanner.css.js";
|
|
9
|
+
import { logout, hero_banner, hero_wrapper, hero_content, reversed, hero_text, heroSupertag, headline_text, hero_btns, hero_img, reversed_lg_image } from "./HeroBanner.css.js";
|
|
10
10
|
import { lg_hero_banner, lg_hero_content, lg_hero_text, lg_hero_eyebrow, lg_headline_text, lg_hero_img, lg_hero_sizing } from "./LargeBanner.css.js";
|
|
11
11
|
import { selection_section_icon, selection_section_icon_img, selection_section, selection_section_bg, selection_section_content, selection_headline_text } from "./SelectionBanner.css.js";
|
|
12
12
|
const HeroBanner = ({
|
|
@@ -200,71 +200,84 @@ const HeroBanner = ({
|
|
|
200
200
|
{
|
|
201
201
|
className: lg_hero_banner({ variant: getVariant(variant) }),
|
|
202
202
|
id: `id_${id}`,
|
|
203
|
-
children: /* @__PURE__ */ jsx("div", { className:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
{
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
203
|
+
children: /* @__PURE__ */ jsx("div", { className: `${hero_wrapper} containment`, children: /* @__PURE__ */ jsxs(
|
|
204
|
+
"div",
|
|
205
|
+
{
|
|
206
|
+
className: `${lg_hero_content} ${imagePlacement !== "Right" ? reversed : ""} flex between middle `,
|
|
207
|
+
children: [
|
|
208
|
+
/* @__PURE__ */ jsx(
|
|
209
|
+
"div",
|
|
210
|
+
{
|
|
211
|
+
className: `${lg_hero_text({ variant: getVariant(variant) })} rounded`,
|
|
212
|
+
children: /* @__PURE__ */ jsxs("div", { className: "containment", children: [
|
|
213
|
+
eyebrow && /* @__PURE__ */ jsx(
|
|
214
|
+
"h1",
|
|
215
|
+
{
|
|
216
|
+
className: lg_hero_eyebrow({
|
|
217
|
+
variant: getVariant(variant)
|
|
218
|
+
}),
|
|
219
|
+
children: eyebrow
|
|
220
|
+
}
|
|
221
|
+
),
|
|
222
|
+
eyebrow ? /* @__PURE__ */ jsx(
|
|
223
|
+
"h2",
|
|
224
|
+
{
|
|
225
|
+
className: lg_headline_text({
|
|
226
|
+
variant: getVariant(variant)
|
|
227
|
+
}),
|
|
228
|
+
children: headline
|
|
229
|
+
}
|
|
230
|
+
) : /* @__PURE__ */ jsx(
|
|
231
|
+
"h1",
|
|
232
|
+
{
|
|
233
|
+
className: headline_text({
|
|
234
|
+
variant: getVariant(variant)
|
|
235
|
+
}),
|
|
236
|
+
children: headline
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ jsx("div", { className: "push_up", children: /* @__PURE__ */ jsx(Fragment, { children: bodyCopy }) }),
|
|
240
|
+
callToActionRow && callToActionRow.length > 0 && /* @__PURE__ */ jsx("div", { className: `${hero_btns}`, children: callToActionRow.map(
|
|
241
|
+
({
|
|
242
|
+
id: id2,
|
|
243
|
+
variant: variant2,
|
|
244
|
+
displayText,
|
|
245
|
+
targetUrl,
|
|
246
|
+
type
|
|
247
|
+
}) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
248
|
+
Button,
|
|
249
|
+
{
|
|
250
|
+
targetUrl,
|
|
251
|
+
color: getVariant(variant2),
|
|
252
|
+
size: "large",
|
|
253
|
+
rounded: "medium",
|
|
254
|
+
children: displayText
|
|
255
|
+
},
|
|
256
|
+
id2
|
|
257
|
+
) : /* @__PURE__ */ jsx(
|
|
258
|
+
Chevron,
|
|
259
|
+
{
|
|
260
|
+
targetUrl,
|
|
261
|
+
variant: getVariant(variant2),
|
|
262
|
+
children: displayText
|
|
263
|
+
},
|
|
264
|
+
id2
|
|
265
|
+
)
|
|
266
|
+
) })
|
|
267
|
+
] })
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
/* @__PURE__ */ jsx(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
className: `${lg_hero_img} ${imagePlacement !== "Right" ? reversed_lg_image : ""} rounded`,
|
|
274
|
+
role: "presentation",
|
|
275
|
+
children: /* @__PURE__ */ jsx("img", { alt: "", className: lg_hero_sizing, src: image?.src })
|
|
276
|
+
}
|
|
277
|
+
)
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
) })
|
|
268
281
|
}
|
|
269
282
|
) });
|
|
270
283
|
};
|
package/dist/HeroBanner/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeroBanner } from "./HeroBanner.js";
|
|
2
|
-
import { headline_text, heroSupertag, hero_banner, hero_btns, hero_content, hero_img, hero_text, hero_wrapper, logout, reversed } from "./HeroBanner.css.js";
|
|
2
|
+
import { headline_text, heroSupertag, hero_banner, hero_btns, hero_content, hero_img, hero_text, hero_wrapper, logout, reversed, reversed_lg_image } from "./HeroBanner.css.js";
|
|
3
3
|
import { selection_headline_text, selection_section, selection_section_bg, selection_section_content, selection_section_icon, selection_section_icon_img } from "./SelectionBanner.css.js";
|
|
4
4
|
export {
|
|
5
5
|
HeroBanner,
|
|
@@ -13,6 +13,7 @@ export {
|
|
|
13
13
|
hero_wrapper,
|
|
14
14
|
logout,
|
|
15
15
|
reversed,
|
|
16
|
+
reversed_lg_image,
|
|
16
17
|
selection_headline_text,
|
|
17
18
|
selection_section,
|
|
18
19
|
selection_section_bg,
|
package/dist/Hyperlink/index.js
CHANGED
|
@@ -64,6 +64,7 @@ import "../FaqAccordion/index.js";
|
|
|
64
64
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
65
65
|
/* empty css */
|
|
66
66
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
67
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
67
68
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
68
69
|
/* empty css */
|
|
69
70
|
/* empty css */
|
|
@@ -59,6 +59,7 @@ import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
|
59
59
|
/* empty css */
|
|
60
60
|
import { imageLinkContainer } from "../SetContainer/SetContainer.css.js";
|
|
61
61
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
62
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
62
63
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
63
64
|
import "../Chevron/Chevron.css.js";
|
|
64
65
|
/* empty css */
|
|
@@ -64,6 +64,7 @@ import "../HeroBanner/LargeBanner.css.js";
|
|
|
64
64
|
import "../HeroBanner/SelectionBanner.css.js";
|
|
65
65
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
66
66
|
import ImageLink from "./ImageLink.js";
|
|
67
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
67
68
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
68
69
|
import "../Chevron/Chevron.css.js";
|
|
69
70
|
/* empty css */
|
package/dist/ImageLink/index.js
CHANGED
|
@@ -62,6 +62,7 @@ import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
|
62
62
|
/* empty css */
|
|
63
63
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
64
64
|
import { ImageLinkSet } from "./ImageLinkSet.js";
|
|
65
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
65
66
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
66
67
|
/* empty css */
|
|
67
68
|
/* empty css */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const int_headline: import('@vanilla-extract/recipes').RuntimeFn<{
|
|
2
|
+
variant: {
|
|
3
|
+
primary: {
|
|
4
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
};
|
|
6
|
+
secondary: {
|
|
7
|
+
color: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
/* empty css */
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { createRuntimeFn } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
6
|
+
var int_headline = createRuntimeFn({ defaultClassName: "ep91dm0", variantClassNames: { variant: { primary: "ep91dm1", secondary: "ep91dm2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
|
+
export {
|
|
8
|
+
int_headline
|
|
9
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ChevronProps } from '../Chevron/Chevron.interface';
|
|
2
|
+
import { ImageInterface } from '../IconBillboard';
|
|
3
|
+
import { SecondaryTypes } from '../utils/variant.types';
|
|
4
|
+
import { FC, ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
export interface interstitialProps {
|
|
7
|
+
id: string;
|
|
8
|
+
variant?: SecondaryTypes;
|
|
9
|
+
image?: ImageInterface;
|
|
10
|
+
callToActionRow?: boolean | ChevronProps[];
|
|
11
|
+
headline?: string | ReactNode;
|
|
12
|
+
bodyCopy?: string | ReactNode;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const Modal: FC<interstitialProps>;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "../Button/Button.js";
|
|
3
|
+
import "../Button/Button.css.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-use";
|
|
6
|
+
import { Chevron } from "../Chevron/index.js";
|
|
7
|
+
import { getVariant } from "../utils/getVariant.js";
|
|
8
|
+
import { int_headline } from "./Interstitial-variants.css.js";
|
|
9
|
+
import css from "./Interstitial.module.js";
|
|
10
|
+
const Modal = ({
|
|
11
|
+
id,
|
|
12
|
+
image,
|
|
13
|
+
headline,
|
|
14
|
+
bodyCopy,
|
|
15
|
+
variant: fullVariant = "primary",
|
|
16
|
+
callToActionRow,
|
|
17
|
+
isOpen,
|
|
18
|
+
onClose
|
|
19
|
+
}) => {
|
|
20
|
+
const variant = getVariant(fullVariant);
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: `${css.overlay} ${isOpen ? "active" : ""}`,
|
|
25
|
+
id: `modal_${id}`,
|
|
26
|
+
children: /* @__PURE__ */ jsxs(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
id: `modal_${id}`,
|
|
30
|
+
className: `${css.modal} ${isOpen ? "active" : ""}`,
|
|
31
|
+
role: "dialog",
|
|
32
|
+
"aria-modal": "true",
|
|
33
|
+
tabIndex: -1,
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
"button",
|
|
37
|
+
{
|
|
38
|
+
className: css.close_button,
|
|
39
|
+
onClick: onClose,
|
|
40
|
+
"aria-label": "Close modal",
|
|
41
|
+
children: "×"
|
|
42
|
+
}
|
|
43
|
+
),
|
|
44
|
+
image && /* @__PURE__ */ jsx(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
className: css.img_area,
|
|
48
|
+
style: { backgroundImage: `url(${image?.src})` },
|
|
49
|
+
children: " "
|
|
50
|
+
}
|
|
51
|
+
),
|
|
52
|
+
/* @__PURE__ */ jsxs("div", { className: `${css.modal_content} text_center`, children: [
|
|
53
|
+
headline && /* @__PURE__ */ jsx("h2", { className: `header_3 ${int_headline({ variant })}`, children: headline }),
|
|
54
|
+
bodyCopy && /* @__PURE__ */ jsx("div", { className: css.body_copy, children: bodyCopy }),
|
|
55
|
+
Array.isArray(callToActionRow) && callToActionRow?.length > 0 && /* @__PURE__ */ jsx("div", { className: css.btns, children: callToActionRow.map(
|
|
56
|
+
({
|
|
57
|
+
id: id2,
|
|
58
|
+
variant: variant2,
|
|
59
|
+
displayText,
|
|
60
|
+
targetUrl,
|
|
61
|
+
type
|
|
62
|
+
}) => type === "Button" ? /* @__PURE__ */ jsx(
|
|
63
|
+
Button,
|
|
64
|
+
{
|
|
65
|
+
targetUrl,
|
|
66
|
+
color: getVariant(variant2),
|
|
67
|
+
size: "large",
|
|
68
|
+
rounded: "medium",
|
|
69
|
+
children: displayText
|
|
70
|
+
},
|
|
71
|
+
id2
|
|
72
|
+
) : /* @__PURE__ */ jsx(
|
|
73
|
+
Chevron,
|
|
74
|
+
{
|
|
75
|
+
targetUrl,
|
|
76
|
+
variant: getVariant(variant2),
|
|
77
|
+
children: displayText
|
|
78
|
+
},
|
|
79
|
+
id2
|
|
80
|
+
)
|
|
81
|
+
) })
|
|
82
|
+
] })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
Modal
|
|
91
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const overlay = "_overlay_1euix_24";
|
|
2
|
+
const modal = "_modal_1euix_40";
|
|
3
|
+
const vanish = "_vanish_1euix_1";
|
|
4
|
+
const appear = "_appear_1euix_1";
|
|
5
|
+
const close_button = "_close_button_1euix_55";
|
|
6
|
+
const modal_content = "_modal_content_1euix_70";
|
|
7
|
+
const img_area = "_img_area_1euix_74";
|
|
8
|
+
const body_copy = "_body_copy_1euix_84";
|
|
9
|
+
const btns = "_btns_1euix_98";
|
|
10
|
+
const css = {
|
|
11
|
+
overlay,
|
|
12
|
+
modal,
|
|
13
|
+
vanish,
|
|
14
|
+
appear,
|
|
15
|
+
close_button,
|
|
16
|
+
modal_content,
|
|
17
|
+
img_area,
|
|
18
|
+
body_copy,
|
|
19
|
+
btns
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
appear,
|
|
23
|
+
body_copy,
|
|
24
|
+
btns,
|
|
25
|
+
close_button,
|
|
26
|
+
css as default,
|
|
27
|
+
img_area,
|
|
28
|
+
modal,
|
|
29
|
+
modal_content,
|
|
30
|
+
overlay,
|
|
31
|
+
vanish
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Interstitial: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useEffect } from "react";
|
|
4
|
+
import { Modal } from "./Interstitial.js";
|
|
5
|
+
const Interstitial = () => {
|
|
6
|
+
const [isModalOpen, setModalOpen] = useState(false);
|
|
7
|
+
const openModal = (id) => {
|
|
8
|
+
setModalOpen((prev) => ({ ...prev, id }));
|
|
9
|
+
};
|
|
10
|
+
const closeModal = () => setModalOpen(false);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const links = document.querySelectorAll('[href^="#modal_"]');
|
|
13
|
+
links.forEach((link) => {
|
|
14
|
+
const dataId = link.getAttribute("href").substring(1);
|
|
15
|
+
link.addEventListener("click", () => openModal(dataId));
|
|
16
|
+
});
|
|
17
|
+
}, []);
|
|
18
|
+
return /* @__PURE__ */ jsx(Modal, { id: "test-intersitial", isOpen: isModalOpen, onClose: closeModal });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
Interstitial
|
|
22
|
+
};
|
package/dist/Modal/Modal.js
CHANGED
|
@@ -61,6 +61,7 @@ import "../FaqAccordion/index.js";
|
|
|
61
61
|
import "../FooterDisclosure/FooterDisclosure.css.js";
|
|
62
62
|
/* empty css */
|
|
63
63
|
import "../ImageBillboard/ImageBillboard.css.js";
|
|
64
|
+
import "../Interstitial/Interstitial-variants.css.js";
|
|
64
65
|
import "../LandingPageHeader/LandingPageHeader.css.js";
|
|
65
66
|
import "./contextApi/store.js";
|
|
66
67
|
/* empty css */
|