@courtneyring/components-library 1.0.31 → 1.0.32
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/AccordionItem-CDN4L4a7.js +40 -0
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Background.css +1 -1
- package/dist/assets/Banner.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/Countdown.css +1 -1
- package/dist/assets/Fifty.css +1 -1
- package/dist/assets/FloatingWordsHero.css +1 -1
- package/dist/assets/Footer.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/IconDetail.css +1 -1
- package/dist/assets/ImageTextBlock.css +1 -1
- package/dist/assets/List.css +1 -1
- package/dist/assets/Map.css +1 -1
- package/dist/assets/MenuButton.css +1 -1
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Note.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PageContainer.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/assets/RSVPEmbed.css +1 -1
- package/dist/assets/Schedule.css +1 -1
- package/dist/assets/TextBlock.css +1 -1
- package/dist/components/Accordion/Accordion.js +21 -14
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Background/Background.js +6 -6
- package/dist/components/Banner/Banner.js +15 -15
- package/dist/components/Button/Button.js +29 -29
- package/dist/components/ButtonGroup/ButtonGroup.js +5 -4
- package/dist/components/Container/Container.js +13 -11
- package/dist/components/Countdown/Countdown.js +1 -1
- package/dist/components/Fifty/Fifty.js +24 -23
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +55 -25
- package/dist/components/Footer/Footer.js +6 -6
- package/dist/components/GenericOverlay/GenericOverlay.js +14 -14
- package/dist/components/IconDetail/IconDetail.js +3 -3
- package/dist/components/ImageTextBlock/ImageTextBlock.js +24 -23
- package/dist/components/List/List.js +12 -12
- package/dist/components/Map/Map.js +25 -23
- package/dist/components/MenuButton/MenuButton.js +21 -21
- package/dist/components/Navbar/Navbar.js +40 -40
- package/dist/components/Note/Note.js +14 -14
- package/dist/components/OverlayHero/OverlayHero.js +63 -21
- package/dist/components/PageContainer/PageContainer.js +6 -6
- package/dist/components/PinnedImage/PinnedImage.js +36 -36
- package/dist/components/PromoGroup/PromoGroup.js +46 -44
- package/dist/components/RSVPEmbed/RSVPEmbed.js +3 -3
- package/dist/components/Schedule/Schedule.js +12 -12
- package/dist/components/TextBlock/TextBlock.js +18 -18
- package/dist/components/Toolbar/Toolbar.js +16 -16
- package/dist/hooks/useImageReveal 4.js +55 -0
- package/dist/hooks/useImageReveal.js +55 -0
- package/dist/hooks/{useResize 2.js → useResize 4.js } +11 -7
- package/dist/hooks/useResize.js +11 -7
- package/dist/index 2.js +50 -0
- package/dist/index-BmTo-IS6 4.js +2018 -0
- package/dist/index-DyQs5aC7 4.js +388 -0
- package/dist/index-K0WrPJ_C 4.js +29 -0
- package/dist/index.modern-DPbS1w7M 4.js +1443 -0
- package/dist/presets/{animations 3.js → animations 4.js } +7 -2
- package/dist/presets/animations.js +7 -2
- package/package.json +3 -2
- package/src/styles/_fonts.scss +4 -7
- package/src/styles/_reveal.scss +93 -0
- package/src/styles/_sizes.scss +1 -0
- package/dist/AccordionItem-BlVXPxrh.js +0 -40
- /package/dist/hooks/{useActiveSection 2.js → useActiveSection 4.js} +0 -0
- /package/dist/hooks/{useFadeIn 2.js → useFadeIn 4.js} +0 -0
- /package/dist/hooks/{useNavColor 2.js → useNavColor 4.js} +0 -0
- /package/dist/hooks/{useRepeatable 2.js → useRepeatable 4.js} +0 -0
- /package/dist/hooks/{useResponsive 2.js → useResponsive 4.js} +0 -0
- /package/dist/hooks/{useReveal 2.js → useReveal 4.js} +0 -0
- /package/dist/hooks/{useStagger 2.js → useStagger 4.js} +0 -0
- /package/dist/{index-B2JRaoNz 2.js → index-B2JRaoNz 4.js} +0 -0
- /package/dist/utils/{breakpoints 3.js → breakpoints 4.js} +0 -0
- /package/dist/utils/{gsapSetup 3.js → gsapSetup 4.js} +0 -0
- /package/dist/utils/{parse 3.js → parse 4.js} +0 -0
|
@@ -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
|
|
5
|
-
button:
|
|
6
|
-
isOpen:
|
|
7
|
-
top:
|
|
8
|
-
bottom:
|
|
9
|
-
middle:
|
|
10
|
-
line:
|
|
11
|
-
}, u = ({ isOpen:
|
|
2
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { c as t } from "../../index-B2JRaoNz.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
|
+
button: a,
|
|
6
|
+
isOpen: c,
|
|
7
|
+
top: _,
|
|
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,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as b, jsx as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import
|
|
2
|
+
import { jsxs as b, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as g, useState as l, useEffect as w, cloneElement as h } from "react";
|
|
4
|
+
import f 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-B2JRaoNz.js";
|
|
9
|
-
import '../../assets/Navbar.css';const y = "
|
|
9
|
+
import '../../assets/Navbar.css';const y = "_navbar_1okw8_1", O = "_hide_1okw8_19", Y = "_background_1okw8_22", S = "_navbar__link_1okw8_22", $ = "_navbar__logo_1okw8_26", j = "_component_1okw8_34", B = "_navbar__links_1okw8_38", C = "_navbar__mobileDialog_1okw8_95", F = "_open_1okw8_107", L = "_navbar__toggle_1okw8_118", a = {
|
|
10
10
|
navbar: y,
|
|
11
11
|
hide: O,
|
|
12
12
|
background: Y,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
navbar__link: S,
|
|
14
|
+
navbar__logo: $,
|
|
15
|
+
component: j,
|
|
16
|
+
navbar__links: B,
|
|
17
|
+
navbar__mobileDialog: C,
|
|
18
|
+
open: F,
|
|
19
19
|
navbar__toggle: L
|
|
20
20
|
}, M = {}, Q = ({
|
|
21
21
|
links: c,
|
|
@@ -26,64 +26,64 @@ import '../../assets/Navbar.css';const y = "_navbar_hb3wf_1", O = "_hide_hb3wf_4
|
|
|
26
26
|
hidden: d,
|
|
27
27
|
position: v = "absolute"
|
|
28
28
|
}) => {
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const r = g(0), [R, m] = l("up"), [e, _] = l(!1), [u, p] = l(!1);
|
|
30
|
+
w(() => (window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i)), []);
|
|
31
31
|
const i = () => {
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
32
|
+
p(window.scrollY > 30);
|
|
33
|
+
const o = window.scrollY;
|
|
34
|
+
o - r.current !== 0 && m(o > r.current ? "down" : "up"), r.current = o > 0 ? o : 0;
|
|
35
35
|
};
|
|
36
36
|
return /* @__PURE__ */ b(
|
|
37
37
|
"nav",
|
|
38
38
|
{
|
|
39
39
|
className: E(
|
|
40
|
-
|
|
41
|
-
u &&
|
|
42
|
-
|
|
40
|
+
a.navbar,
|
|
41
|
+
u && a.background,
|
|
42
|
+
e && a.open,
|
|
43
43
|
// (direction === "down" || hidden) && styles.hide
|
|
44
|
-
d &&
|
|
44
|
+
d && a.hide
|
|
45
45
|
),
|
|
46
|
-
style:
|
|
46
|
+
style: e ? {} : { position: v },
|
|
47
47
|
children: [
|
|
48
|
-
/* @__PURE__ */ b("a", { className:
|
|
49
|
-
s && /* @__PURE__ */
|
|
50
|
-
t &&
|
|
51
|
-
className:
|
|
48
|
+
/* @__PURE__ */ b("a", { className: a.navbar__logo, href: "/", children: [
|
|
49
|
+
s && /* @__PURE__ */ n("img", { src: s }),
|
|
50
|
+
t && h(t, {
|
|
51
|
+
className: a.component
|
|
52
52
|
})
|
|
53
53
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
/* @__PURE__ */ n("div", { className: a.navbar__toggle, children: /* @__PURE__ */ n(
|
|
55
|
+
f,
|
|
56
56
|
{
|
|
57
|
-
clickFn: () => _(!
|
|
58
|
-
isOpen:
|
|
57
|
+
clickFn: () => _(!e),
|
|
58
|
+
isOpen: e,
|
|
59
59
|
theme: "color-white"
|
|
60
60
|
}
|
|
61
61
|
) }),
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ n("div", { className: a.navbar__links, children: c.map((o, k) => /* @__PURE__ */ n(
|
|
63
63
|
"a",
|
|
64
64
|
{
|
|
65
|
-
className: `${
|
|
66
|
-
href:
|
|
67
|
-
children:
|
|
65
|
+
className: `${a.navbar__link}`,
|
|
66
|
+
href: o.value,
|
|
67
|
+
children: o.label
|
|
68
68
|
},
|
|
69
|
-
`navbar-d-${
|
|
69
|
+
`navbar-d-${o.value}`
|
|
70
70
|
)) }),
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
e && N.createPortal(
|
|
72
|
+
/* @__PURE__ */ n(
|
|
73
73
|
D,
|
|
74
74
|
{
|
|
75
75
|
closeFn: () => _(!1),
|
|
76
76
|
hideClose: !0,
|
|
77
77
|
background: M.white,
|
|
78
78
|
fullscreen: !0,
|
|
79
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ n(x, { color: "color-white", children: /* @__PURE__ */ n("div", { className: a.navbar__mobileDialog, children: c.map((o, k) => /* @__PURE__ */ n(
|
|
80
80
|
"a",
|
|
81
81
|
{
|
|
82
|
-
className:
|
|
83
|
-
href:
|
|
84
|
-
children:
|
|
82
|
+
className: a.navbar__link,
|
|
83
|
+
href: o.value,
|
|
84
|
+
children: o.label
|
|
85
85
|
},
|
|
86
|
-
`m-${
|
|
86
|
+
`m-${o.value}`
|
|
87
87
|
)) }) })
|
|
88
88
|
}
|
|
89
89
|
),
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useReveal as i } from "../../hooks/useReveal.js";
|
|
4
4
|
import { appleReveal as m } from "../../presets/animations.js";
|
|
5
5
|
import _ from "../../utils/parse.js";
|
|
6
|
-
import '../../assets/Note.css';const p = "
|
|
6
|
+
import '../../assets/Note.css';const p = "_salutation_1azns_2", d = "_opener_1azns_48", u = "_from_1azns_53", f = "_body_1azns_95", N = "_close_1azns_147", h = "_signature_1azns_194", s = {
|
|
7
7
|
salutation: p,
|
|
8
8
|
opener: d,
|
|
9
9
|
from: u,
|
|
10
10
|
body: f,
|
|
11
|
-
close:
|
|
12
|
-
signature:
|
|
13
|
-
},
|
|
11
|
+
close: N,
|
|
12
|
+
signature: h
|
|
13
|
+
}, v = ({ salutation: o, from: n, body: r, signature: t, close: c }) => {
|
|
14
14
|
const l = i(m);
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
15
|
+
return /* @__PURE__ */ a("div", { className: s.note, ref: l, children: [
|
|
16
|
+
/* @__PURE__ */ a("p", { className: s.salutation, children: [
|
|
17
|
+
/* @__PURE__ */ a("span", { className: s.opener, children: [
|
|
18
|
+
o,
|
|
19
19
|
" "
|
|
20
20
|
] }),
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ e("span", { className: s.from, children: n })
|
|
22
22
|
] }),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ e("div", { className: s.body, children: _(r) }),
|
|
24
|
+
/* @__PURE__ */ e("p", { className: s.close, children: c }),
|
|
25
|
+
/* @__PURE__ */ e("p", { className: s.signature, children: t })
|
|
26
26
|
] });
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
v as default
|
|
30
30
|
};
|
|
@@ -1,25 +1,67 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import "react";
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
2
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import y from "../../utils/parse.js";
|
|
4
|
+
import { useRef as e, useEffect as q } from "react";
|
|
5
|
+
import { g as t } from "../../index-BmTo-IS6.js";
|
|
6
|
+
import { S as N } from "../../ScrollTrigger-6HnikosL.js";
|
|
7
|
+
import B from "../../hooks/useResize.js";
|
|
8
|
+
import '../../assets/OverlayHero.css';const T = "_hero_qu85a_5", S = "_heroBg_qu85a_34", j = "_overlay_qu85a_42", k = "_eyebrow_qu85a_69", E = "_title_qu85a_76", P = "_subtitle_qu85a_94", r = {
|
|
9
|
+
hero: T,
|
|
10
|
+
heroBg: S,
|
|
11
|
+
overlay: j,
|
|
12
|
+
eyebrow: k,
|
|
13
|
+
title: E,
|
|
14
|
+
subtitle: P
|
|
15
|
+
};
|
|
16
|
+
t.registerPlugin(N);
|
|
17
|
+
const $ = ({ text: W, image: d, pos: g, eyebrow: c, title: h, subtitle: a }) => {
|
|
18
|
+
const { innerWidth: _ } = B(), s = e(null), n = e(), l = e(null), i = e(null), u = e(null), f = e(null);
|
|
19
|
+
return q(() => {
|
|
20
|
+
const b = s.current, v = l.current, w = window.matchMedia("(prefers-reduced-motion: reduce)").matches, m = n.current;
|
|
21
|
+
if (w || _ < 390) return;
|
|
22
|
+
const R = t.context(() => {
|
|
23
|
+
t.fromTo(
|
|
24
|
+
v,
|
|
25
|
+
{ opacity: 0 },
|
|
26
|
+
{ opacity: 1, duration: 1.2, ease: "power2.out" }
|
|
27
|
+
);
|
|
28
|
+
const x = [i.current, u.current, f.current].filter(Boolean);
|
|
29
|
+
t.fromTo(
|
|
30
|
+
x,
|
|
31
|
+
{ opacity: 0, y: 18 },
|
|
32
|
+
{
|
|
33
|
+
opacity: 1,
|
|
34
|
+
y: 0,
|
|
35
|
+
duration: 0.85,
|
|
36
|
+
ease: "power2.out",
|
|
37
|
+
stagger: 0.2,
|
|
38
|
+
delay: 0.4
|
|
39
|
+
}
|
|
40
|
+
), t.fromTo(
|
|
41
|
+
m,
|
|
42
|
+
{ scale: 1.08, opacity: 0 },
|
|
43
|
+
{ scale: 1, opacity: 1, duration: 2, ease: "power1.out" }
|
|
44
|
+
), t.to(m, {
|
|
45
|
+
y: "15%",
|
|
46
|
+
ease: "none",
|
|
47
|
+
scrollTrigger: {
|
|
48
|
+
trigger: b,
|
|
49
|
+
start: "top top",
|
|
50
|
+
end: "bottom top",
|
|
51
|
+
scrub: !0
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}, s);
|
|
55
|
+
return () => R.revert();
|
|
56
|
+
}, []), /* @__PURE__ */ p("div", { ref: s, className: r.hero, children: [
|
|
57
|
+
/* @__PURE__ */ o("div", { ref: n, className: r.heroBg, style: { backgroundImage: `url(${d})`, backgroundPosition: g, opacity: 0 } }),
|
|
58
|
+
/* @__PURE__ */ p("div", { ref: l, className: r.overlay, style: { opacity: 0 }, children: [
|
|
59
|
+
c && /* @__PURE__ */ o("p", { ref: i, className: r.eyebrow, children: c }),
|
|
60
|
+
/* @__PURE__ */ o("h1", { ref: u, className: r.title, children: y(h) }),
|
|
61
|
+
a && /* @__PURE__ */ o("div", { ref: f, className: r.subtitle, children: y(a) })
|
|
20
62
|
] })
|
|
21
|
-
}
|
|
22
|
-
|
|
63
|
+
] });
|
|
64
|
+
};
|
|
23
65
|
export {
|
|
24
|
-
|
|
66
|
+
$ as default
|
|
25
67
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import '../../assets/PageContainer.css';const s = "
|
|
3
|
+
import '../../assets/PageContainer.css';const s = "_container__inner_bnzqv_2", l = "_removePadding_bnzqv_55", m = "_container__body_bnzqv_59", v = "_container__copy_bnzqv_74", n = {
|
|
4
4
|
container__inner: s,
|
|
5
5
|
removePadding: l,
|
|
6
6
|
container__body: m,
|
|
7
|
-
container__copy:
|
|
8
|
-
},
|
|
9
|
-
heroImage:
|
|
7
|
+
container__copy: v
|
|
8
|
+
}, h = ({
|
|
9
|
+
heroImage: y,
|
|
10
10
|
pageTitle: r,
|
|
11
11
|
children: t,
|
|
12
|
-
hero:
|
|
12
|
+
hero: b,
|
|
13
13
|
copy: e,
|
|
14
14
|
excludePadding: c = []
|
|
15
15
|
}) => {
|
|
@@ -35,5 +35,5 @@ import '../../assets/PageContainer.css';const s = "_container__inner_9nloq_2", l
|
|
|
35
35
|
] });
|
|
36
36
|
};
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
h as default
|
|
39
39
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useRef as
|
|
4
|
-
import
|
|
5
|
-
import { g as
|
|
6
|
-
import { S as
|
|
7
|
-
import
|
|
8
|
-
import '../../assets/PinnedImage.css';const
|
|
9
|
-
container:
|
|
10
|
-
content:
|
|
2
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
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 } from "../../index-BmTo-IS6.js";
|
|
6
|
+
import { S as w } from "../../ScrollTrigger-6HnikosL.js";
|
|
7
|
+
import N from "../../utils/parse.js";
|
|
8
|
+
import '../../assets/PinnedImage.css';const b = "_container_1uhcw_2", k = "_content_1uhcw_122", P = "_copy_1uhcw_130", R = "_text_1uhcw_165", S = "_title_1uhcw_220", T = "_background_1uhcw_266", E = "_section_1uhcw_278", H = "_details_1uhcw_310", e = {
|
|
9
|
+
container: b,
|
|
10
|
+
content: k,
|
|
11
11
|
copy: P,
|
|
12
12
|
text: R,
|
|
13
13
|
title: S,
|
|
@@ -15,16 +15,16 @@ import '../../assets/PinnedImage.css';const N = "_container_19qak_2", b = "_cont
|
|
|
15
15
|
section: E,
|
|
16
16
|
details: H
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
const W = ({ image:
|
|
20
|
-
const o =
|
|
21
|
-
|
|
22
|
-
const l =
|
|
23
|
-
return
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const d = o.current.offsetTop,
|
|
18
|
+
a.registerPlugin(w);
|
|
19
|
+
const W = ({ image: u, title: _, sections: g }) => {
|
|
20
|
+
const o = i(null);
|
|
21
|
+
i(null);
|
|
22
|
+
const l = i([]), m = i();
|
|
23
|
+
return x(() => {
|
|
24
|
+
const c = a.context(() => {
|
|
25
|
+
const n = l.current, r = Math.max(...n.map((s) => s.offsetHeight));
|
|
26
|
+
a.set(m.current, { minHeight: r });
|
|
27
|
+
const d = o.current.offsetTop, f = a.timeline({
|
|
28
28
|
scrollTrigger: {
|
|
29
29
|
trigger: o.current,
|
|
30
30
|
start: `top-=${d} top`,
|
|
@@ -35,40 +35,40 @@ const W = ({ image: m, title: g, sections: f }) => {
|
|
|
35
35
|
anticipatePin: 1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
{ opacity:
|
|
38
|
+
n.forEach((s, h) => {
|
|
39
|
+
f.fromTo(
|
|
40
|
+
s,
|
|
41
|
+
{ opacity: h === 0 ? 1 : 0 },
|
|
42
42
|
{ opacity: 1, duration: 0.5 }
|
|
43
43
|
).to(
|
|
44
|
-
|
|
45
|
-
{ opacity:
|
|
44
|
+
s,
|
|
45
|
+
{ opacity: h === n.length - 1 ? 1 : 0, duration: 0.5 },
|
|
46
46
|
"+=0.75"
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
}, o);
|
|
50
|
-
return () =>
|
|
51
|
-
}, []), /* @__PURE__ */
|
|
50
|
+
return () => c.revert();
|
|
51
|
+
}, []), /* @__PURE__ */ p(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: e.container,
|
|
55
55
|
ref: o,
|
|
56
|
-
style: { backgroundImage: `url(${
|
|
56
|
+
style: { backgroundImage: `url(${u})` },
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */ t("h2", { className: e.title, children:
|
|
59
|
-
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src:
|
|
60
|
-
/* @__PURE__ */ t("div", { className: e.content, ref:
|
|
58
|
+
/* @__PURE__ */ t("h2", { className: e.title, children: _ }),
|
|
59
|
+
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: u }) }),
|
|
60
|
+
/* @__PURE__ */ t("div", { className: e.content, ref: m, children: /* @__PURE__ */ t("div", { className: e.copy, children: g.map((c, n) => /* @__PURE__ */ p(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: e.section,
|
|
64
|
-
ref: (r) => l.current[
|
|
64
|
+
ref: (r) => l.current[n] = r,
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */ t("h3", { children:
|
|
67
|
-
/* @__PURE__ */ t("div", { className: e.text, children:
|
|
68
|
-
/* @__PURE__ */ t("div", { className: e.details, children:
|
|
66
|
+
/* @__PURE__ */ t("h3", { children: c.header }),
|
|
67
|
+
/* @__PURE__ */ t("div", { className: e.text, children: N(c.description) }),
|
|
68
|
+
/* @__PURE__ */ t("div", { className: e.details, children: c.details && c.details.map((r, d) => /* @__PURE__ */ y(v, { ...r, key: d })) })
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
n
|
|
72
72
|
)) }) })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as c, Fragment as
|
|
3
|
-
import { useMemo as
|
|
2
|
+
import { jsxs as c, Fragment as u, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as N } from "react";
|
|
4
4
|
import "../../index-K0WrPJ_C.js";
|
|
5
5
|
import "../../hooks/useFadeIn.js";
|
|
6
|
-
import
|
|
7
|
-
import { appleStagger as
|
|
6
|
+
import z from "../Button/Button.js";
|
|
7
|
+
import { appleStagger as o } from "../../presets/animations.js";
|
|
8
8
|
import { c as m } from "../../index-B2JRaoNz.js";
|
|
9
|
+
import "../OverlayHero/OverlayHero.js";
|
|
9
10
|
import "../../index-DyQs5aC7.js";
|
|
10
11
|
import { useStagger as f } from "../../hooks/useStagger.js";
|
|
12
|
+
import "../FloatingWordsHero/FloatingWordsHero.js";
|
|
11
13
|
import "../../index.modern-DPbS1w7M.js";
|
|
12
|
-
import '../../assets/PromoGroup.css';const y = "
|
|
14
|
+
import '../../assets/PromoGroup.css';const y = "_group_sebz3_2", C = "_slider_sebz3_27", x = "_header_sebz3_33", v = "_promo_sebz3_76", T = "_icon_sebz3_126", $ = "_cta_sebz3_136", j = "_imageContainer_sebz3_144", F = "_image_sebz3_144", k = "_promo__header_sebz3_156", S = "_promo__body_sebz3_248", A = "_stats_sebz3_295", B = "_stat_sebz3_295", G = "_statText_sebz3_309", e = {
|
|
13
15
|
group: y,
|
|
14
16
|
slider: C,
|
|
15
17
|
header: x,
|
|
@@ -20,79 +22,79 @@ import '../../assets/PromoGroup.css';const y = "_group_rwbwb_2", C = "_slider_rw
|
|
|
20
22
|
image: F,
|
|
21
23
|
promo__header: k,
|
|
22
24
|
promo__body: S,
|
|
23
|
-
stats:
|
|
24
|
-
stat:
|
|
25
|
-
statText:
|
|
26
|
-
"count-4": "_count-
|
|
27
|
-
},
|
|
28
|
-
const
|
|
29
|
-
...
|
|
30
|
-
stagger:
|
|
31
|
-
scrollTrigger: { start:
|
|
32
|
-
}), l =
|
|
25
|
+
stats: A,
|
|
26
|
+
stat: B,
|
|
27
|
+
statText: G,
|
|
28
|
+
"count-4": "_count-4_sebz3_386"
|
|
29
|
+
}, Q = ({ header: d, promos: s, direction: i = "vertical", slider: g }) => {
|
|
30
|
+
const h = ["icon", "header", "body", "cta", "stats", "image"], p = f(`.${e.promo}`, o.from, {
|
|
31
|
+
...o.to,
|
|
32
|
+
stagger: o.stagger,
|
|
33
|
+
scrollTrigger: { start: o.start }
|
|
34
|
+
}), l = N(() => {
|
|
33
35
|
let t = 0;
|
|
34
|
-
for (let
|
|
35
|
-
|
|
36
|
+
for (let r of h)
|
|
37
|
+
s.some((n) => !!n[r]) && (t += 1);
|
|
36
38
|
return t;
|
|
37
|
-
}, [
|
|
38
|
-
return /* @__PURE__ */ c(
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
}, [s]);
|
|
40
|
+
return /* @__PURE__ */ c(u, { children: [
|
|
41
|
+
/* @__PURE__ */ a("h2", { className: e.header, children: d }),
|
|
42
|
+
/* @__PURE__ */ a(
|
|
41
43
|
"div",
|
|
42
44
|
{
|
|
43
|
-
ref:
|
|
45
|
+
ref: p,
|
|
44
46
|
className: m(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
47
|
+
e.group,
|
|
48
|
+
e[`count-${s.length}`],
|
|
49
|
+
g && e.slider
|
|
48
50
|
),
|
|
49
51
|
style: {
|
|
50
|
-
"--promos":
|
|
52
|
+
"--promos": s.length,
|
|
51
53
|
"--propCount": i == "horizontal" ? l - 1 : l
|
|
52
54
|
},
|
|
53
|
-
children:
|
|
54
|
-
const
|
|
55
|
+
children: s.map((t, r) => {
|
|
56
|
+
const n = t.containerCta ? "a" : "div";
|
|
55
57
|
return /* @__PURE__ */ c(
|
|
56
|
-
|
|
58
|
+
n,
|
|
57
59
|
{
|
|
58
60
|
onClick: t.containerCta?.onClick || null,
|
|
59
61
|
href: t.containerCta?.href || null,
|
|
60
62
|
target: t.containerCta?.target || null,
|
|
61
|
-
delay: 0.1 *
|
|
62
|
-
className:
|
|
63
|
+
delay: 0.1 * r,
|
|
64
|
+
className: e.promo,
|
|
63
65
|
"data-color": t.color,
|
|
64
66
|
"data-text-align": t.textAlign,
|
|
65
67
|
"data-direction": i,
|
|
66
68
|
children: [
|
|
67
|
-
t.icon && /* @__PURE__ */
|
|
69
|
+
t.icon && /* @__PURE__ */ a(
|
|
68
70
|
"span",
|
|
69
71
|
{
|
|
70
72
|
className: m(
|
|
71
73
|
"material-symbols-outlined",
|
|
72
|
-
|
|
74
|
+
e.icon,
|
|
73
75
|
!t.icon && "hidden"
|
|
74
76
|
),
|
|
75
77
|
children: t.icon
|
|
76
78
|
}
|
|
77
79
|
),
|
|
78
|
-
t.image && /* @__PURE__ */
|
|
80
|
+
t.image && /* @__PURE__ */ a("div", { className: e.imageContainer, children: /* @__PURE__ */ a(
|
|
79
81
|
"img",
|
|
80
82
|
{
|
|
81
83
|
style: { objectFit: t.imageFit },
|
|
82
|
-
className:
|
|
84
|
+
className: e.image,
|
|
83
85
|
src: t.image
|
|
84
86
|
}
|
|
85
87
|
) }),
|
|
86
|
-
t.header && /* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
t.cta && /* @__PURE__ */
|
|
89
|
-
t.stats && /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
] }, `stat-${
|
|
88
|
+
t.header && /* @__PURE__ */ a("h3", { className: e.promo__header, children: t.header }),
|
|
89
|
+
/* @__PURE__ */ a("p", { className: e.promo__body, children: t.body }),
|
|
90
|
+
t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(z, { ...t.cta }) }),
|
|
91
|
+
t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_, b) => /* @__PURE__ */ c("div", { className: e.stat, children: [
|
|
92
|
+
/* @__PURE__ */ a("span", { className: "material-symbols-outlined", children: _.icon }),
|
|
93
|
+
/* @__PURE__ */ a("span", { className: e.statText, children: _.text })
|
|
94
|
+
] }, `stat-${b}`)) })
|
|
93
95
|
]
|
|
94
96
|
},
|
|
95
|
-
`promo-${
|
|
97
|
+
`promo-${r}`
|
|
96
98
|
);
|
|
97
99
|
})
|
|
98
100
|
}
|
|
@@ -100,5 +102,5 @@ import '../../assets/PromoGroup.css';const y = "_group_rwbwb_2", C = "_slider_rw
|
|
|
100
102
|
] });
|
|
101
103
|
};
|
|
102
104
|
export {
|
|
103
|
-
|
|
105
|
+
Q as default
|
|
104
106
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as s, useEffect as a } from "react";
|
|
4
|
-
import '../../assets/RSVPEmbed.css';const o = "
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import '../../assets/RSVPEmbed.css';const o = "_container_g8yt4_1", i = "_wrapper_g8yt4_5", t = {
|
|
5
|
+
container: o,
|
|
6
|
+
wrapper: i
|
|
7
7
|
};
|
|
8
8
|
function f({ embedUrl: c }) {
|
|
9
9
|
const r = s(null);
|