@courtneyring/components-library 1.0.20 → 1.0.21
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/README.md +11 -11
- package/dist/AccordionItem-DuHzStoZ.js +40 -0
- package/dist/animations/FadeIn.js +8 -1
- package/dist/assets/AccordionItem.css +1 -0
- package/dist/assets/Banner.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/Fifty.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/IconDetail.css +1 -1
- package/dist/assets/MenuButton.css +1 -1
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Overlay.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/assets/RSVPEmbed.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/components/Accordion/Accordion.js +26 -0
- package/dist/components/Accordion/AccordionItem.js +8 -0
- package/dist/components/Banner/Banner.js +14 -14
- package/dist/components/Container/Container.js +27 -15
- package/dist/components/Fifty/Fifty.js +29 -20
- package/dist/components/GenericOverlay/GenericOverlay.js +16 -16
- package/dist/components/IconDetail/IconDetail.js +7 -7
- package/dist/components/ImageTextBlock/ImageTextBlock.js +26 -32
- package/dist/components/MenuButton/MenuButton.js +18 -18
- package/dist/components/Navbar/Navbar.js +15 -15
- package/dist/components/Overlay/Overlay.js +25 -19
- package/dist/components/OverlayHero/OverlayHero.js +8 -8
- package/dist/components/PageContainer/PageContainer.js +19 -5
- package/dist/components/PinnedImage/PinnedImage.js +30 -30
- package/dist/components/PromoGroup/PromoGroup.js +26 -19
- package/dist/components/RSVPEmbed/RSVPEmbed.js +18 -0
- package/dist/components/Toolbar/Toolbar.js +5 -5
- package/dist/index.js +69 -44
- package/package.json +4 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import o from "../../utils/parse.js";
|
|
4
|
-
import { c } from "../../index-BIlioXmW.js";
|
|
5
|
-
import '../../assets/IconDetail.css';const
|
|
6
|
-
detail:
|
|
7
|
-
label:
|
|
8
|
-
},
|
|
9
|
-
/* @__PURE__ */ e("span", { className:
|
|
4
|
+
import { c as r } from "../../index-BIlioXmW.js";
|
|
5
|
+
import '../../assets/IconDetail.css';const c = "_detail_4rjme_1", m = "_label_4rjme_53", a = {
|
|
6
|
+
detail: c,
|
|
7
|
+
label: m
|
|
8
|
+
}, b = ({ icon: l, text: s, href: t }) => /* @__PURE__ */ i(t ? "a" : "div", { className: a.detail, children: [
|
|
9
|
+
/* @__PURE__ */ e("span", { className: r(a.icon, "material-symbols-outlined"), children: l }),
|
|
10
10
|
/* @__PURE__ */ e("div", { className: a.label, children: o(s) })
|
|
11
11
|
] });
|
|
12
12
|
export {
|
|
13
|
-
|
|
13
|
+
b as default
|
|
14
14
|
};
|
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as e, jsxs as c, Fragment as u } from "react/jsx-runtime";
|
|
3
3
|
import a from "../Button/Button.js";
|
|
4
|
-
import { c as
|
|
5
|
-
import { useFadeIn as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ n("h2", { className: e.header, children: d }),
|
|
29
|
-
/* @__PURE__ */ n("div", { className: e.body, children: u(l) }),
|
|
30
|
-
/* @__PURE__ */ t("div", { className: e.ctas, children: [
|
|
31
|
-
s && /* @__PURE__ */ n(a, { ...s }),
|
|
32
|
-
o && /* @__PURE__ */ n(a, { ...o })
|
|
33
|
-
] })
|
|
4
|
+
import { c as f } from "../../index-BIlioXmW.js";
|
|
5
|
+
import { useFadeIn as i } from "../../hooks/useFadeIn.js";
|
|
6
|
+
import g from "../../utils/parse.js";
|
|
7
|
+
import { Children as b } from "react";
|
|
8
|
+
import '../../assets/ImageTextBlock.css';const v = "_block_hnnuu_1", N = "_container_hnnuu_5", p = "_reverse_hnnuu_11", k = "_content_hnnuu_15", x = "_header_hnnuu_20", y = "_body_hnnuu_68", I = "_ctas_hnnuu_115", j = "_image_hnnuu_119", n = {
|
|
9
|
+
block: v,
|
|
10
|
+
container: N,
|
|
11
|
+
reverse: p,
|
|
12
|
+
content: k,
|
|
13
|
+
header: x,
|
|
14
|
+
body: y,
|
|
15
|
+
ctas: I,
|
|
16
|
+
image: j
|
|
17
|
+
}, z = ({ image: d, header: m, body: l, primaryCta: o, secondaryCta: s, reverse: t, children: r }) => {
|
|
18
|
+
const _ = i({ direction: t ? "right" : "left" }), h = i({ direction: t ? "right" : "left" });
|
|
19
|
+
return /* @__PURE__ */ e("div", { className: f(n.block, t && n.reverse), children: /* @__PURE__ */ c("div", { className: n.container, children: [
|
|
20
|
+
/* @__PURE__ */ e("div", { className: n.image, ref: _, children: /* @__PURE__ */ e("img", { src: d }) }),
|
|
21
|
+
/* @__PURE__ */ c("div", { className: n.content, ref: h, children: [
|
|
22
|
+
/* @__PURE__ */ e("h2", { className: n.header, children: m }),
|
|
23
|
+
/* @__PURE__ */ e("div", { className: n.body, children: g(l) }),
|
|
24
|
+
b.count(r) > 0 ? r : /* @__PURE__ */ e(u, { children: /* @__PURE__ */ c("div", { className: n.ctas, children: [
|
|
25
|
+
o && /* @__PURE__ */ e(a, { ...o }),
|
|
26
|
+
s && /* @__PURE__ */ e(a, { ...s })
|
|
27
|
+
] }) })
|
|
34
28
|
] })
|
|
35
29
|
] }) });
|
|
36
30
|
};
|
|
37
31
|
export {
|
|
38
|
-
|
|
32
|
+
z as default
|
|
39
33
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as i, jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
import '../../assets/MenuButton.css';const a = "
|
|
2
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { c as t } from "../../index-BIlioXmW.js";
|
|
4
|
+
import '../../assets/MenuButton.css';const a = "_button_zo0en_1", c = "_isOpen_zo0en_6", _ = "_top_zo0en_6", d = "_bottom_zo0en_7", m = "_middle_zo0en_25", p = "_line_zo0en_33", o = {
|
|
5
5
|
button: a,
|
|
6
6
|
isOpen: c,
|
|
7
7
|
top: _,
|
|
8
|
-
bottom:
|
|
9
|
-
middle:
|
|
10
|
-
line:
|
|
11
|
-
}, u = ({ isOpen:
|
|
8
|
+
bottom: d,
|
|
9
|
+
middle: m,
|
|
10
|
+
line: p
|
|
11
|
+
}, u = ({ isOpen: e, clickFn: l, theme: n }) => /* @__PURE__ */ i(
|
|
12
12
|
"button",
|
|
13
13
|
{
|
|
14
|
-
className: o
|
|
15
|
-
onClick:
|
|
14
|
+
className: t(o.button, e && o.isOpen),
|
|
15
|
+
onClick: l,
|
|
16
16
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
17
|
+
/* @__PURE__ */ s(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
|
-
className: o
|
|
21
|
-
"data-color":
|
|
20
|
+
className: t(o.top, o.line),
|
|
21
|
+
"data-color": n
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ s(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className: o
|
|
28
|
-
"data-color":
|
|
27
|
+
className: t(o.middle, o.line),
|
|
28
|
+
"data-color": n
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ s(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
|
-
className: o
|
|
35
|
-
"data-color":
|
|
34
|
+
className: t(o.bottom, o.line),
|
|
35
|
+
"data-color": n
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useRef as g, useState as
|
|
2
|
+
import { jsxs as d, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as g, useState as l, useEffect as f, cloneElement as k } from "react";
|
|
4
4
|
import w from "../MenuButton/MenuButton.js";
|
|
5
5
|
import { r as N } from "../../index-DyQs5aC7.js";
|
|
6
6
|
import D from "../Overlay/Overlay.js";
|
|
7
7
|
import x from "../Container/Container.js";
|
|
8
8
|
import { c as E } from "../../index-BIlioXmW.js";
|
|
9
9
|
import { useNavColor as C } from "../../hooks/useNavColor.js";
|
|
10
|
-
import '../../assets/Navbar.css';const O = "
|
|
10
|
+
import '../../assets/Navbar.css';const O = "_navbar_12cmh_1", Y = "_hide_12cmh_4", y = "_background_12cmh_24", S = "_open_12cmh_24", $ = "_navbar__link_12cmh_27", j = "_navbar__logo_12cmh_31", B = "_component_12cmh_42", F = "_navbar__links_12cmh_72", L = "_navbar__mobileDialog_12cmh_84", M = "_navbar__toggle_12cmh_100", o = {
|
|
11
11
|
navbar: O,
|
|
12
12
|
hide: Y,
|
|
13
13
|
background: y,
|
|
@@ -19,28 +19,28 @@ import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4
|
|
|
19
19
|
navbar__mobileDialog: L,
|
|
20
20
|
navbar__toggle: M
|
|
21
21
|
}, I = {}, T = ({ links: t, logoImage: s, color: P, logoComponent: _ }) => {
|
|
22
|
-
const e = g(0), [v, b] =
|
|
23
|
-
f(() => (window.addEventListener("scroll",
|
|
24
|
-
const
|
|
25
|
-
|
|
22
|
+
const e = g(0), [v, b] = l("up"), [n, i] = l(!1), [u, R] = C(), [c, h] = l(!1);
|
|
23
|
+
f(() => (window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), []);
|
|
24
|
+
const m = () => {
|
|
25
|
+
h(window.scrollY > 30);
|
|
26
26
|
const a = window.scrollY;
|
|
27
27
|
a - e.current !== 0 && b(a > e.current ? "down" : "up"), e.current = a > 0 ? a : 0;
|
|
28
28
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ d(
|
|
30
30
|
"nav",
|
|
31
31
|
{
|
|
32
32
|
className: E(
|
|
33
33
|
o.navbar,
|
|
34
|
-
|
|
34
|
+
c && o.background,
|
|
35
35
|
n && o.open,
|
|
36
36
|
v === "down" && o.hide
|
|
37
37
|
),
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ d("a", { className: o.navbar__logo, href: "/", children: [
|
|
40
40
|
s && /* @__PURE__ */ r("img", { src: s }),
|
|
41
41
|
_ && k(_, {
|
|
42
42
|
className: o.component,
|
|
43
|
-
"data-color": !
|
|
43
|
+
"data-color": !c || n ? "color-white" : "color-neutral-dark"
|
|
44
44
|
})
|
|
45
45
|
] }),
|
|
46
46
|
/* @__PURE__ */ r("div", { className: o.navbar__toggle, children: /* @__PURE__ */ r(
|
|
@@ -48,15 +48,15 @@ import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4
|
|
|
48
48
|
{
|
|
49
49
|
clickFn: () => i(!n),
|
|
50
50
|
isOpen: n,
|
|
51
|
-
theme: !
|
|
51
|
+
theme: !c || n ? "color-white" : "color-neutral-dark"
|
|
52
52
|
}
|
|
53
53
|
) }),
|
|
54
|
-
/* @__PURE__ */ r("div", { className: o.navbar__links, children: t.map((a,
|
|
54
|
+
/* @__PURE__ */ r("div", { className: o.navbar__links, children: t.map((a, p) => /* @__PURE__ */ r(
|
|
55
55
|
"a",
|
|
56
56
|
{
|
|
57
57
|
className: `${o.navbar__link}`,
|
|
58
58
|
href: a.value,
|
|
59
|
-
"data-color":
|
|
59
|
+
"data-color": u,
|
|
60
60
|
children: a.label
|
|
61
61
|
},
|
|
62
62
|
`navbar-d-${a.value}`
|
|
@@ -69,7 +69,7 @@ import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4
|
|
|
69
69
|
hideClose: !0,
|
|
70
70
|
background: I.white,
|
|
71
71
|
fullscreen: !0,
|
|
72
|
-
children: /* @__PURE__ */ r(x, { color: "color-white", children: /* @__PURE__ */ r("div", { className: o.navbar__mobileDialog, children: t.map((a,
|
|
72
|
+
children: /* @__PURE__ */ r(x, { color: "color-white", children: /* @__PURE__ */ r("div", { className: o.navbar__mobileDialog, children: t.map((a, p) => /* @__PURE__ */ r(
|
|
73
73
|
"a",
|
|
74
74
|
{
|
|
75
75
|
className: o.navbar__link,
|
|
@@ -1,41 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useState as v, useEffect as u } from "react";
|
|
4
4
|
import { c as m } from "../../index-BIlioXmW.js";
|
|
5
|
-
import '../../assets/Overlay.css';const i = "
|
|
5
|
+
import '../../assets/Overlay.css';const i = "_overlay_m36se_17", y = "_hideNav_m36se_43", f = "_overlay__dialog_m36se_43", N = "_overlay__background_m36se_47", h = "_fadeIn_m36se_1", O = "_fadeOut_m36se_57", g = "_overlay__close_m36se_80", b = "_fullscreen_m36se_103", e = {
|
|
6
6
|
overlay: i,
|
|
7
7
|
hideNav: y,
|
|
8
8
|
overlay__dialog: f,
|
|
9
|
-
overlay__background:
|
|
10
|
-
fadeIn:
|
|
11
|
-
fadeOut:
|
|
12
|
-
overlay__close:
|
|
13
|
-
fullscreen:
|
|
14
|
-
},
|
|
15
|
-
|
|
9
|
+
overlay__background: N,
|
|
10
|
+
fadeIn: h,
|
|
11
|
+
fadeOut: O,
|
|
12
|
+
overlay__close: g,
|
|
13
|
+
fullscreen: b
|
|
14
|
+
}, I = ({
|
|
15
|
+
children: t,
|
|
16
|
+
closeFn: c,
|
|
17
|
+
hideClose: o,
|
|
18
|
+
background: a,
|
|
19
|
+
fullscreen: d = !0
|
|
20
|
+
}) => {
|
|
21
|
+
const [l, n] = v(!1);
|
|
16
22
|
u(() => (document.body.style.overflow = "hidden", () => {
|
|
17
23
|
document.body.style.overflow = "unset";
|
|
18
24
|
}), []);
|
|
19
|
-
const
|
|
25
|
+
const _ = () => {
|
|
20
26
|
n(!0), setTimeout(() => {
|
|
21
27
|
c();
|
|
22
28
|
}, 500);
|
|
23
29
|
};
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ r("div", { className: m(e.overlay, !o && e.hideNav), children: [
|
|
31
|
+
/* @__PURE__ */ s(
|
|
26
32
|
"div",
|
|
27
33
|
{
|
|
28
|
-
className: ` ${e.overlay__background} ${
|
|
29
|
-
onClick:
|
|
34
|
+
className: ` ${e.overlay__background} ${l && e.fadeOut}`,
|
|
35
|
+
onClick: _
|
|
30
36
|
}
|
|
31
37
|
),
|
|
32
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ r(
|
|
33
39
|
"div",
|
|
34
40
|
{
|
|
35
|
-
className: `${e.overlay__dialog} ${
|
|
36
|
-
style:
|
|
41
|
+
className: `${e.overlay__dialog} ${l ? e.fadeOut : e.fadeIn} ${d && e.fullscreen} `,
|
|
42
|
+
style: a ? { background: a } : {},
|
|
37
43
|
children: [
|
|
38
|
-
!o && /* @__PURE__ */
|
|
44
|
+
!o && /* @__PURE__ */ s("div", { className: e.overlay__close, onClick: _, children: /* @__PURE__ */ s("span", { className: "material-symbols-outlined", children: "close" }) }),
|
|
39
45
|
t
|
|
40
46
|
]
|
|
41
47
|
}
|
|
@@ -43,5 +49,5 @@ import '../../assets/Overlay.css';const i = "_overlay_xrwam_17", y = "_hideNav_x
|
|
|
43
49
|
] });
|
|
44
50
|
};
|
|
45
51
|
export {
|
|
46
|
-
|
|
52
|
+
I as default
|
|
47
53
|
};
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
3
3
|
import s from "../../utils/parse.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import '../../assets/OverlayHero.css';const
|
|
6
|
-
hero:
|
|
7
|
-
overlay:
|
|
8
|
-
eyebrow:
|
|
9
|
-
title:
|
|
10
|
-
subtitle:
|
|
11
|
-
}, v = ({ text: y, image:
|
|
5
|
+
import '../../assets/OverlayHero.css';const n = "_hero_1f1qw_5", _ = "_overlay_1f1qw_17", d = "_eyebrow_1f1qw_42", m = "_title_1f1qw_49", h = "_subtitle_1f1qw_67", e = {
|
|
6
|
+
hero: n,
|
|
7
|
+
overlay: _,
|
|
8
|
+
eyebrow: d,
|
|
9
|
+
title: m,
|
|
10
|
+
subtitle: h
|
|
11
|
+
}, v = ({ text: y, image: l, pos: a, eyebrow: r, title: i, subtitle: o }) => /* @__PURE__ */ t(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
14
|
className: e.hero,
|
|
15
|
-
style: { backgroundImage: `url(${
|
|
15
|
+
style: { backgroundImage: `url(${l})`, backgroundPosition: a },
|
|
16
16
|
children: /* @__PURE__ */ c("div", { className: e.overlay, children: [
|
|
17
17
|
r && /* @__PURE__ */ t("p", { className: e.eyebrow, children: r }),
|
|
18
18
|
/* @__PURE__ */ t("h1", { className: e.title, children: s(i) }),
|
|
@@ -5,7 +5,14 @@ import '../../assets/PageContainer.css';const s = "_container__inner_1f10x_2", l
|
|
|
5
5
|
removePadding: l,
|
|
6
6
|
container__body: m,
|
|
7
7
|
container__copy: y
|
|
8
|
-
}, x = ({
|
|
8
|
+
}, x = ({
|
|
9
|
+
heroImage: f,
|
|
10
|
+
pageTitle: r,
|
|
11
|
+
children: t,
|
|
12
|
+
hero: g,
|
|
13
|
+
copy: e,
|
|
14
|
+
excludePadding: c = []
|
|
15
|
+
}) => {
|
|
9
16
|
const a = () => {
|
|
10
17
|
let _ = {};
|
|
11
18
|
for (let d of c)
|
|
@@ -13,10 +20,17 @@ import '../../assets/PageContainer.css';const s = "_container__inner_1f10x_2", l
|
|
|
13
20
|
return _;
|
|
14
21
|
};
|
|
15
22
|
return /* @__PURE__ */ i("main", { children: [
|
|
16
|
-
/* @__PURE__ */ o(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
/* @__PURE__ */ o(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: `${n.container__inner} ${!r && !e && n.removePadding}`,
|
|
27
|
+
style: a(),
|
|
28
|
+
children: /* @__PURE__ */ i("div", { className: n.container__copy, children: [
|
|
29
|
+
/* @__PURE__ */ o("h1", { children: r }),
|
|
30
|
+
e && /* @__PURE__ */ o("div", { className: n.container__body, children: e })
|
|
31
|
+
] })
|
|
32
|
+
}
|
|
33
|
+
),
|
|
20
34
|
t
|
|
21
35
|
] });
|
|
22
36
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as _, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as
|
|
4
|
-
import
|
|
5
|
-
import { g as a, S as
|
|
6
|
-
import
|
|
7
|
-
import '../../assets/PinnedImage.css';const k = "
|
|
3
|
+
import { useRef as i, useEffect as x, createElement as y } from "react";
|
|
4
|
+
import v from "../IconDetail/IconDetail.js";
|
|
5
|
+
import { g as a, S as N } from "../../ScrollTrigger-DDbij8gI.js";
|
|
6
|
+
import b from "../../utils/parse.js";
|
|
7
|
+
import '../../assets/PinnedImage.css';const k = "_container_trrr1_2", P = "_content_trrr1_114", R = "_copy_trrr1_122", S = "_text_trrr1_158", T = "_title_trrr1_207", E = "_background_trrr1_253", H = "_section_trrr1_265", I = "_details_trrr1_297", e = {
|
|
8
8
|
container: k,
|
|
9
9
|
content: P,
|
|
10
10
|
copy: R,
|
|
@@ -14,18 +14,18 @@ import '../../assets/PinnedImage.css';const k = "_container_pixtb_2", P = "_cont
|
|
|
14
14
|
section: H,
|
|
15
15
|
details: I
|
|
16
16
|
};
|
|
17
|
-
a.registerPlugin(
|
|
18
|
-
const W = ({ image:
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const l =
|
|
17
|
+
a.registerPlugin(N);
|
|
18
|
+
const W = ({ image: m, title: g, sections: f }) => {
|
|
19
|
+
const o = i(null);
|
|
20
|
+
i(null);
|
|
21
|
+
const l = i([]), p = i();
|
|
22
22
|
return x(() => {
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
a.set(
|
|
26
|
-
const d =
|
|
23
|
+
const r = a.context(() => {
|
|
24
|
+
const n = l.current, c = Math.max(...n.map((s) => s.offsetHeight));
|
|
25
|
+
a.set(p.current, { minHeight: c });
|
|
26
|
+
const d = o.current.offsetTop, h = a.timeline({
|
|
27
27
|
scrollTrigger: {
|
|
28
|
-
trigger:
|
|
28
|
+
trigger: o.current,
|
|
29
29
|
start: `top-=${d} top`,
|
|
30
30
|
end: `+=${l.current.length * 100}%`,
|
|
31
31
|
// controls scroll length
|
|
@@ -34,40 +34,40 @@ const W = ({ image: p, title: g, sections: f }) => {
|
|
|
34
34
|
anticipatePin: 1
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
|
|
37
|
+
n.forEach((s, u) => {
|
|
38
38
|
h.fromTo(
|
|
39
|
-
|
|
39
|
+
s,
|
|
40
40
|
{ opacity: u === 0 ? 1 : 0 },
|
|
41
41
|
{ opacity: 1, duration: 0.5 }
|
|
42
42
|
).to(
|
|
43
|
-
|
|
44
|
-
{ opacity: u ===
|
|
43
|
+
s,
|
|
44
|
+
{ opacity: u === n.length - 1 ? 1 : 0, duration: 0.5 },
|
|
45
45
|
"+=0.75"
|
|
46
46
|
);
|
|
47
47
|
});
|
|
48
|
-
},
|
|
49
|
-
return () =>
|
|
48
|
+
}, o);
|
|
49
|
+
return () => r.revert();
|
|
50
50
|
}, []), /* @__PURE__ */ _(
|
|
51
51
|
"div",
|
|
52
52
|
{
|
|
53
53
|
className: e.container,
|
|
54
|
-
ref:
|
|
55
|
-
style: { backgroundImage: `url(${
|
|
54
|
+
ref: o,
|
|
55
|
+
style: { backgroundImage: `url(${m})` },
|
|
56
56
|
children: [
|
|
57
57
|
/* @__PURE__ */ t("h2", { className: e.title, children: g }),
|
|
58
|
-
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src:
|
|
59
|
-
/* @__PURE__ */ t("div", { className: e.content, ref:
|
|
58
|
+
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: m }) }),
|
|
59
|
+
/* @__PURE__ */ t("div", { className: e.content, ref: p, children: /* @__PURE__ */ t("div", { className: e.copy, children: f.map((r, n) => /* @__PURE__ */ _(
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
className: e.section,
|
|
63
|
-
ref: (
|
|
63
|
+
ref: (c) => l.current[n] = c,
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */ t("h3", { children:
|
|
66
|
-
/* @__PURE__ */ t("div", { className: e.text, children:
|
|
67
|
-
/* @__PURE__ */ t("div", { className: e.details, children:
|
|
65
|
+
/* @__PURE__ */ t("h3", { children: r.header }),
|
|
66
|
+
/* @__PURE__ */ t("div", { className: e.text, children: b(r.description) }),
|
|
67
|
+
/* @__PURE__ */ t("div", { className: e.details, children: r.details && r.details.map((c, d) => /* @__PURE__ */ y(v, { ...c, key: d })) })
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
|
|
70
|
+
n
|
|
71
71
|
)) }) })
|
|
72
72
|
]
|
|
73
73
|
}
|
|
@@ -22,27 +22,34 @@ import '../../assets/PromoGroup.css';const n = "_group_qbcz0_2", h = "_slider_qb
|
|
|
22
22
|
statText: z
|
|
23
23
|
}, P = ({ header: i, promos: s }) => /* @__PURE__ */ c(l, { children: [
|
|
24
24
|
/* @__PURE__ */ t("h2", { className: e.header, children: i }),
|
|
25
|
-
/* @__PURE__ */ t(
|
|
25
|
+
/* @__PURE__ */ t(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
className: m(e.group, s.length > 3 && e.slider),
|
|
29
|
+
style: { "--promos": s.length },
|
|
30
|
+
children: s.map((a, r) => /* @__PURE__ */ c(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
delay: 0.1 * r,
|
|
34
|
+
className: e.promo,
|
|
35
|
+
"data-color": a.color,
|
|
36
|
+
"data-text-align": a.textAlign,
|
|
37
|
+
children: [
|
|
38
|
+
a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: a.icon }),
|
|
39
|
+
a.image && /* @__PURE__ */ t("img", { className: e.image, src: a.image }),
|
|
40
|
+
a.header && /* @__PURE__ */ t("h3", { className: e.promo__header, children: a.header }),
|
|
41
|
+
/* @__PURE__ */ t("p", { className: e.promo__body, children: a.body }),
|
|
42
|
+
a.cta && /* @__PURE__ */ t("div", { className: e.cta, children: /* @__PURE__ */ t(d, { ...a.cta }) }),
|
|
43
|
+
a.stats && /* @__PURE__ */ t("div", { className: e.stats, children: a.stats.map((o, _) => /* @__PURE__ */ c("div", { className: e.stat, children: [
|
|
44
|
+
/* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: o.icon }),
|
|
45
|
+
/* @__PURE__ */ t("span", { className: e.statText, children: o.text })
|
|
46
|
+
] }, `stat-${_}`)) })
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
`promo-${r}`
|
|
50
|
+
))
|
|
51
|
+
}
|
|
52
|
+
)
|
|
46
53
|
] });
|
|
47
54
|
export {
|
|
48
55
|
P as default
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as c, useEffect as s } from "react";
|
|
4
|
+
import '../../assets/RSVPEmbed.css';const p = "_wrapper_1mgkx_1", a = {
|
|
5
|
+
wrapper: p
|
|
6
|
+
};
|
|
7
|
+
function f({ embedUrl: t }) {
|
|
8
|
+
const r = c(null);
|
|
9
|
+
return s(() => {
|
|
10
|
+
const e = document.createElement("script");
|
|
11
|
+
return e.src = t, e.async = !0, r.current?.appendChild(e), () => {
|
|
12
|
+
r.current && (r.current.innerHTML = "");
|
|
13
|
+
};
|
|
14
|
+
}, []), /* @__PURE__ */ n("div", { ref: r, className: a.wrapper });
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
|
@@ -5,17 +5,17 @@ import { useState as l, useEffect as c } from "react";
|
|
|
5
5
|
import '../../assets/Toolbar.css';const h = "_toolbar_17thg_1", m = {
|
|
6
6
|
toolbar: h
|
|
7
7
|
}, g = () => {
|
|
8
|
-
const [
|
|
9
|
-
|
|
8
|
+
const [t, n] = l(!1), s = d(), r = (e) => {
|
|
9
|
+
e.code === "KeyI" && (e.preventDefault(), e.stopPropagation(), n(!t));
|
|
10
10
|
};
|
|
11
|
-
return c(() => (window.addEventListener("keyup",
|
|
11
|
+
return c(() => (window.addEventListener("keyup", r), () => window.removeEventListener("keyup", r)), [t]), t ? /* @__PURE__ */ o("div", { className: m.toolbar, children: [
|
|
12
12
|
/* @__PURE__ */ o("div", { children: [
|
|
13
13
|
"Width: ",
|
|
14
|
-
|
|
14
|
+
s.innerWidth
|
|
15
15
|
] }),
|
|
16
16
|
/* @__PURE__ */ o("div", { children: [
|
|
17
17
|
"Height: ",
|
|
18
|
-
|
|
18
|
+
s.innerHeight
|
|
19
19
|
] })
|
|
20
20
|
] }) : /* @__PURE__ */ i(a, {});
|
|
21
21
|
};
|