@courtneyring/components-library 1.0.34 → 1.0.35
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-DUGBw5pW 2.js +40 -0
- package/dist/AccordionItem-DUGBw5pW.js +40 -0
- package/dist/ScrollTrigger-6HnikosL 3.js +1086 -0
- package/dist/animations/FadeIn 3.js +34 -0
- package/dist/assets/AccordionItem 4.css +1 -0
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Background.css +1 -1
- package/dist/assets/Banner 3.css +1 -0
- package/dist/assets/Banner.css +1 -1
- package/dist/assets/BorderedBackground 4.css +1 -0
- package/dist/assets/Button 4.css +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup 4.css +1 -0
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/Container 4.css +1 -0
- package/dist/assets/Container.css +1 -1
- package/dist/assets/Countdown 4.css +1 -0
- package/dist/assets/Countdown.css +1 -1
- package/dist/assets/Fifty 4.css +1 -0
- package/dist/assets/Fifty.css +1 -1
- package/dist/assets/FloatingWordsHero 4.css +1 -0
- package/dist/assets/FloatingWordsHero.css +1 -1
- package/dist/assets/Footer 4.css +1 -0
- package/dist/assets/Footer.css +1 -1
- package/dist/assets/GenericOverlay 4.css +1 -0
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/GridGallery 4.css +1 -0
- package/dist/assets/GridGallery.css +1 -1
- package/dist/assets/HorizontalScrollImages 4.css +1 -0
- package/dist/assets/IconDetail 4.css +1 -0
- package/dist/assets/IconDetail.css +1 -1
- package/dist/assets/ImageTextBlock 4.css +1 -0
- package/dist/assets/ImageTextBlock.css +1 -1
- package/dist/assets/List.css +1 -1
- package/dist/assets/Map 4.css +1 -0
- package/dist/assets/Map.css +1 -1
- package/dist/assets/MenuButton 4.css +1 -0
- package/dist/assets/Navbar 4.css +1 -0
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Note 4.css +1 -0
- package/dist/assets/Note.css +1 -1
- package/dist/assets/Overlay 4.css +1 -0
- package/dist/assets/Overlay.css +1 -1
- package/dist/assets/OverlayHero 4.css +1 -0
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PageContainer 4.css +1 -0
- package/dist/assets/PageContainer.css +1 -1
- package/dist/assets/ParallaxImageGrid 4.css +1 -0
- package/dist/assets/PinnedImage 4.css +1 -0
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/PromoGroup 4.css +1 -0
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/assets/RSVPEmbed 4.css +1 -0
- package/dist/assets/RSVPEmbed.css +1 -1
- package/dist/assets/Schedule 4.css +1 -0
- package/dist/assets/Schedule.css +1 -1
- package/dist/assets/TextBlock 4.css +1 -0
- package/dist/assets/TextBlock.css +1 -1
- package/dist/assets/Timeline 3.css +1 -0
- package/dist/assets/Toolbar 3.css +1 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Background/Background.js +5 -5
- package/dist/components/Banner/Banner.js +13 -13
- package/dist/components/Button/Button.js +19 -19
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/Container/Container.js +12 -12
- package/dist/components/Countdown/Countdown.js +3 -3
- package/dist/components/Fifty/Fifty.js +22 -22
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +21 -21
- package/dist/components/Footer/Footer.js +6 -6
- package/dist/components/GenericOverlay/GenericOverlay.js +10 -10
- package/dist/components/GridGallery/GridGallery.js +9 -9
- package/dist/components/IconDetail/IconDetail.js +8 -8
- package/dist/components/ImageTextBlock/ImageTextBlock.js +17 -17
- package/dist/components/List/List.js +12 -12
- package/dist/components/Map/Map.js +14 -14
- package/dist/components/Navbar/Navbar.js +40 -40
- package/dist/components/Note/Note.js +19 -19
- package/dist/components/Overlay/Overlay.js +31 -31
- package/dist/components/OverlayHero/OverlayHero.js +32 -32
- package/dist/components/PageContainer/PageContainer.js +3 -3
- package/dist/components/PinnedImage/PinnedImage.js +25 -25
- package/dist/components/PromoGroup/PromoGroup.js +31 -30
- package/dist/components/RSVPEmbed/RSVPEmbed.js +1 -1
- package/dist/components/Schedule/Schedule.js +12 -12
- package/dist/components/TextBlock/TextBlock.js +12 -12
- package/dist/hooks/useActiveSection 4.js +27 -0
- package/dist/hooks/useFadeIn 4.js +52 -0
- package/dist/hooks/useImageReveal 4.js +55 -0
- package/dist/hooks/useNavColor 4.js +15 -0
- package/dist/hooks/useRepeatable 4.js +32 -0
- package/dist/hooks/useResize 4.js +23 -0
- package/dist/hooks/useResponsive 4.js +15 -0
- package/dist/hooks/useReveal 4.js +38 -0
- package/dist/hooks/useStagger 4.js +43 -0
- package/dist/index 4.js +50 -0
- package/dist/index-BmTo-IS6 4.js +2018 -0
- package/dist/index-K0WrPJ_C 4.js +29 -0
- package/dist/index.modern-DPbS1w7M 4.js +1443 -0
- package/package.json +1 -1
- package/src/styles/_breakpoints.scss +1 -1
- package/dist/AccordionItem-BnGlD8YU.js +0 -40
- /package/dist/{index-B2JRaoNz 2.js → index-B2JRaoNz 4.js} +0 -0
- /package/dist/{index-DyQs5aC7 3.js → index-DyQs5aC7 4.js} +0 -0
- /package/dist/presets/{animations 3.js → animations 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,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useRef as
|
|
2
|
+
import { jsxs as _, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as s, useEffect as x, createElement as y } from "react";
|
|
4
4
|
import q from "../IconDetail/IconDetail.js";
|
|
5
5
|
import { g as a } from "../../index-BmTo-IS6.js";
|
|
6
6
|
import { S as v } from "../../ScrollTrigger-6HnikosL.js";
|
|
7
7
|
import N from "../../utils/parse.js";
|
|
8
|
-
import '../../assets/PinnedImage.css';const b = "
|
|
8
|
+
import '../../assets/PinnedImage.css';const b = "_container_i1qiu_2", k = "_content_i1qiu_122", P = "_copy_i1qiu_130", R = "_text_i1qiu_165", S = "_title_i1qiu_220", T = "_background_i1qiu_271", E = "_section_i1qiu_283", H = "_details_i1qiu_315", e = {
|
|
9
9
|
container: b,
|
|
10
10
|
content: k,
|
|
11
11
|
copy: P,
|
|
@@ -16,17 +16,17 @@ import '../../assets/PinnedImage.css';const b = "_container_q2g9x_2", k = "_cont
|
|
|
16
16
|
details: H
|
|
17
17
|
};
|
|
18
18
|
a.registerPlugin(v);
|
|
19
|
-
const W = ({ image:
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
const l =
|
|
19
|
+
const W = ({ image: u, title: g, sections: f }) => {
|
|
20
|
+
const r = s(null);
|
|
21
|
+
s(null);
|
|
22
|
+
const l = s([]), m = s();
|
|
23
23
|
return x(() => {
|
|
24
24
|
const n = a.context(() => {
|
|
25
|
-
const
|
|
26
|
-
a.set(m.current, { minHeight:
|
|
27
|
-
const d =
|
|
25
|
+
const i = l.current, c = Math.max(...i.map((o) => o.offsetHeight));
|
|
26
|
+
a.set(m.current, { minHeight: c });
|
|
27
|
+
const d = r.current.offsetTop, h = a.timeline({
|
|
28
28
|
scrollTrigger: {
|
|
29
|
-
trigger:
|
|
29
|
+
trigger: r.current,
|
|
30
30
|
start: `top-=${d} top`,
|
|
31
31
|
end: `+=${l.current.length * 100}%`,
|
|
32
32
|
// controls scroll length
|
|
@@ -35,40 +35,40 @@ const W = ({ image: g, title: _, sections: f }) => {
|
|
|
35
35
|
anticipatePin: 1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
|
|
38
|
+
i.forEach((o, p) => {
|
|
39
39
|
h.fromTo(
|
|
40
|
-
|
|
40
|
+
o,
|
|
41
41
|
{ opacity: p === 0 ? 1 : 0 },
|
|
42
42
|
{ opacity: 1, duration: 0.5 }
|
|
43
43
|
).to(
|
|
44
|
-
|
|
45
|
-
{ opacity: p ===
|
|
44
|
+
o,
|
|
45
|
+
{ opacity: p === i.length - 1 ? 1 : 0, duration: 0.5 },
|
|
46
46
|
"+=0.75"
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
|
-
},
|
|
49
|
+
}, r);
|
|
50
50
|
return () => n.revert();
|
|
51
|
-
}, []), /* @__PURE__ */
|
|
51
|
+
}, []), /* @__PURE__ */ _(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: e.container,
|
|
55
|
-
ref:
|
|
56
|
-
style: { backgroundImage: `url(${
|
|
55
|
+
ref: r,
|
|
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: m, children: /* @__PURE__ */ t("div", { className: e.copy, children: f.map((n,
|
|
58
|
+
/* @__PURE__ */ t("h2", { className: e.title, children: g }),
|
|
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: f.map((n, i) => /* @__PURE__ */ _(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: e.section,
|
|
64
|
-
ref: (
|
|
64
|
+
ref: (c) => l.current[i] = c,
|
|
65
65
|
children: [
|
|
66
66
|
/* @__PURE__ */ t("h3", { children: n.header }),
|
|
67
67
|
/* @__PURE__ */ t("div", { className: e.text, children: N(n.description) }),
|
|
68
|
-
/* @__PURE__ */ t("div", { className: e.details, children: n.details && n.details.map((
|
|
68
|
+
/* @__PURE__ */ t("div", { className: e.details, children: n.details && n.details.map((c, d) => /* @__PURE__ */ y(q, { ...c, key: d })) })
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
i
|
|
72
72
|
)) }) })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as n, Fragment as N, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo as
|
|
3
|
+
import { useMemo as q } from "react";
|
|
4
4
|
import "../../index-K0WrPJ_C.js";
|
|
5
5
|
import "../../hooks/useFadeIn.js";
|
|
6
|
-
import
|
|
6
|
+
import f from "../Button/Button.js";
|
|
7
7
|
import { appleStagger as r } from "../../presets/animations.js";
|
|
8
8
|
import { c as m } from "../../index-B2JRaoNz.js";
|
|
9
9
|
import "../OverlayHero/OverlayHero.js";
|
|
10
10
|
import "../../index-DyQs5aC7.js";
|
|
11
|
-
import { useStagger as
|
|
11
|
+
import { useStagger as y } from "../../hooks/useStagger.js";
|
|
12
12
|
import "../FloatingWordsHero/FloatingWordsHero.js";
|
|
13
13
|
import "../../index.modern-DPbS1w7M.js";
|
|
14
|
-
import '../../assets/PromoGroup.css';const b = "
|
|
15
|
-
group:
|
|
16
|
-
slider:
|
|
17
|
-
header:
|
|
18
|
-
promo:
|
|
19
|
-
icon:
|
|
20
|
-
cta:
|
|
21
|
-
imageContainer:
|
|
22
|
-
image:
|
|
23
|
-
promo__header:
|
|
24
|
-
promo__body:
|
|
25
|
-
stats:
|
|
26
|
-
stat:
|
|
27
|
-
statText:
|
|
28
|
-
"count-4": "_count-
|
|
29
|
-
|
|
30
|
-
|
|
14
|
+
import '../../assets/PromoGroup.css';const C = "_group_iq3ie_2", b = "_slider_iq3ie_27", x = "_header_iq3ie_33", v = "_promo_iq3ie_81", T = "_icon_iq3ie_131", $ = "_cta_iq3ie_141", j = "_imageContainer_iq3ie_149", F = "_image_iq3ie_149", k = "_promo__header_iq3ie_161", S = "_promo__body_iq3ie_253", z = "_stats_iq3ie_300", A = "_stat_iq3ie_300", B = "_statText_iq3ie_314", e = {
|
|
15
|
+
group: C,
|
|
16
|
+
slider: b,
|
|
17
|
+
header: x,
|
|
18
|
+
promo: v,
|
|
19
|
+
icon: T,
|
|
20
|
+
cta: $,
|
|
21
|
+
imageContainer: j,
|
|
22
|
+
image: F,
|
|
23
|
+
promo__header: k,
|
|
24
|
+
promo__body: S,
|
|
25
|
+
stats: z,
|
|
26
|
+
stat: A,
|
|
27
|
+
statText: B,
|
|
28
|
+
"count-4": "_count-4_iq3ie_381",
|
|
29
|
+
"count-2": "_count-2_iq3ie_381"
|
|
30
|
+
}, Q = ({ header: d, promos: i, direction: c = "vertical", slider: g }) => {
|
|
31
|
+
const h = ["icon", "header", "body", "cta", "stats", "image"], p = y(`.${e.promo}`, r.from, {
|
|
31
32
|
...r.to,
|
|
32
33
|
stagger: r.stagger,
|
|
33
34
|
scrollTrigger: { start: r.start }
|
|
34
|
-
}), l =
|
|
35
|
+
}), l = q(() => {
|
|
35
36
|
let t = 0;
|
|
36
|
-
for (let
|
|
37
|
-
|
|
37
|
+
for (let s of h)
|
|
38
|
+
i.some((o) => !!o[s]) && (t += 1);
|
|
38
39
|
return t;
|
|
39
|
-
}, [
|
|
40
|
+
}, [i]);
|
|
40
41
|
return /* @__PURE__ */ n(N, { children: [
|
|
41
42
|
/* @__PURE__ */ a("h2", { className: e.header, children: d }),
|
|
42
43
|
/* @__PURE__ */ a(
|
|
@@ -45,14 +46,14 @@ import '../../assets/PromoGroup.css';const b = "_group_tliee_2", x = "_slider_tl
|
|
|
45
46
|
ref: p,
|
|
46
47
|
className: m(
|
|
47
48
|
e.group,
|
|
48
|
-
e[`count-${
|
|
49
|
+
e[`count-${i.length}`],
|
|
49
50
|
g && e.slider
|
|
50
51
|
),
|
|
51
52
|
style: {
|
|
52
|
-
"--promos":
|
|
53
|
+
"--promos": i.length,
|
|
53
54
|
"--propCount": c == "horizontal" ? l - 1 : l
|
|
54
55
|
},
|
|
55
|
-
children:
|
|
56
|
+
children: i.map((t, s) => {
|
|
56
57
|
const o = t.containerCta ? "a" : "div";
|
|
57
58
|
return /* @__PURE__ */ n(
|
|
58
59
|
o,
|
|
@@ -60,7 +61,7 @@ import '../../assets/PromoGroup.css';const b = "_group_tliee_2", x = "_slider_tl
|
|
|
60
61
|
onClick: t.containerCta?.onClick || null,
|
|
61
62
|
href: t.containerCta?.href || null,
|
|
62
63
|
target: t.containerCta?.target || null,
|
|
63
|
-
delay: 0.1 *
|
|
64
|
+
delay: 0.1 * s,
|
|
64
65
|
className: e.promo,
|
|
65
66
|
"data-color": t.color,
|
|
66
67
|
"data-text-align": t.textAlign,
|
|
@@ -87,14 +88,14 @@ import '../../assets/PromoGroup.css';const b = "_group_tliee_2", x = "_slider_tl
|
|
|
87
88
|
) }),
|
|
88
89
|
t.header && /* @__PURE__ */ a("h3", { className: e.promo__header, children: t.header }),
|
|
89
90
|
/* @__PURE__ */ a("p", { className: e.promo__body, children: t.body }),
|
|
90
|
-
t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(
|
|
91
|
+
t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(f, { ...t.cta }) }),
|
|
91
92
|
t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_, u) => /* @__PURE__ */ n("div", { className: e.stat, children: [
|
|
92
93
|
/* @__PURE__ */ a("span", { className: "material-symbols-outlined", children: _.icon }),
|
|
93
94
|
/* @__PURE__ */ a("span", { className: e.statText, children: _.text })
|
|
94
95
|
] }, `stat-${u}`)) })
|
|
95
96
|
]
|
|
96
97
|
},
|
|
97
|
-
`promo-${
|
|
98
|
+
`promo-${s}`
|
|
98
99
|
);
|
|
99
100
|
})
|
|
100
101
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
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 = "
|
|
4
|
+
import '../../assets/RSVPEmbed.css';const o = "_container_u6rv2_1", i = "_wrapper_u6rv2_5", t = {
|
|
5
5
|
container: o,
|
|
6
6
|
wrapper: i
|
|
7
7
|
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import '../../assets/Schedule.css';const
|
|
5
|
-
schedule:
|
|
6
|
-
timeline:
|
|
7
|
-
time:
|
|
3
|
+
import { Fragment as l } from "react";
|
|
4
|
+
import '../../assets/Schedule.css';const n = "_schedule_rm7y9_2", a = "_timeline_rm7y9_79", r = "_time_rm7y9_79", o = "_dot_rm7y9_92", _ = "_diagram_rm7y9_100", h = "_line_rm7y9_106", e = {
|
|
5
|
+
schedule: n,
|
|
6
|
+
timeline: a,
|
|
7
|
+
time: r,
|
|
8
8
|
dot: o,
|
|
9
9
|
diagram: _,
|
|
10
10
|
line: h
|
|
11
|
-
},
|
|
12
|
-
/* @__PURE__ */ i("h3", { children:
|
|
13
|
-
/* @__PURE__ */ i("div", { className: e.timeline, children:
|
|
14
|
-
/* @__PURE__ */ i("div", { className: e.time, children:
|
|
11
|
+
}, y = ({ slots: c, header: d }) => /* @__PURE__ */ s("div", { className: e.schedule, children: [
|
|
12
|
+
/* @__PURE__ */ i("h3", { children: d }),
|
|
13
|
+
/* @__PURE__ */ i("div", { className: e.timeline, children: c.map((m, t) => /* @__PURE__ */ s(l, { children: [
|
|
14
|
+
/* @__PURE__ */ i("div", { className: e.time, children: m.time }),
|
|
15
15
|
/* @__PURE__ */ s("div", { className: e.diagram, children: [
|
|
16
16
|
/* @__PURE__ */ i("span", { className: e.line }),
|
|
17
17
|
/* @__PURE__ */ i("div", { className: e.dot })
|
|
18
18
|
] }),
|
|
19
|
-
/* @__PURE__ */ i("div", { className: e.description, children:
|
|
20
|
-
] },
|
|
19
|
+
/* @__PURE__ */ i("div", { className: e.description, children: m.description })
|
|
20
|
+
] }, t)) })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
y as default
|
|
24
24
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as d } from "react";
|
|
4
4
|
import n from "../../utils/parse.js";
|
|
5
5
|
import m from "../IconDetail/IconDetail.js";
|
|
6
|
-
import '../../assets/TextBlock.css';const _ = "
|
|
6
|
+
import '../../assets/TextBlock.css';const _ = "_title_1iuzs_1", p = "_blocks_1iuzs_52", k = "_block_1iuzs_52", h = "_blockHeader_1iuzs_63", b = "_description_1iuzs_92", e = {
|
|
7
7
|
title: _,
|
|
8
8
|
blocks: p,
|
|
9
9
|
block: k,
|
|
10
10
|
blockHeader: h,
|
|
11
11
|
description: b
|
|
12
|
-
},
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
12
|
+
}, z = ({ header: l, blocks: t }) => /* @__PURE__ */ i("div", { className: e.container, children: [
|
|
13
|
+
/* @__PURE__ */ s("h2", { className: e.title, children: l }),
|
|
14
|
+
/* @__PURE__ */ s("div", { className: e.blocks, children: t.map((c, o) => (
|
|
15
15
|
// <div className={styles.block} key={`block-${idx}`}>
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ i("div", { className: e.block, children: [
|
|
17
|
+
/* @__PURE__ */ s("h3", { className: e.blockHeader, children: c.header }),
|
|
18
|
+
/* @__PURE__ */ i("div", { className: e.content, children: [
|
|
19
|
+
/* @__PURE__ */ s("div", { className: e.description, children: n(c.description) }),
|
|
20
|
+
/* @__PURE__ */ s("div", { className: e.details, children: c.details && c.details.map((a, r) => /* @__PURE__ */ d(m, { ...a, key: r })) })
|
|
21
21
|
] })
|
|
22
|
-
] }, `block-${
|
|
22
|
+
] }, `block-${o}`)
|
|
23
23
|
)) })
|
|
24
24
|
] });
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
z as default
|
|
27
27
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useState as s, useEffect as l } from "react";
|
|
2
|
+
function a() {
|
|
3
|
+
const [o, r] = s < string | null > null;
|
|
4
|
+
return l(() => {
|
|
5
|
+
const c = Array.from(
|
|
6
|
+
document.querySelectorAll < HTMLElement > '[id^="section-"]'
|
|
7
|
+
), t = new IntersectionObserver(
|
|
8
|
+
(e) => {
|
|
9
|
+
e.forEach((n) => {
|
|
10
|
+
if (n.isIntersecting) {
|
|
11
|
+
const i = n.target.id.replace("section-", "");
|
|
12
|
+
r(i);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
root: null,
|
|
18
|
+
rootMargin: "-40% 0px -40% 0px",
|
|
19
|
+
threshold: 0
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
return c.forEach((e) => t.observe(e)), () => t.disconnect();
|
|
23
|
+
}, []), o;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
a as useActiveSection
|
|
27
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { useRef as f } from "react";
|
|
2
|
+
import { g as s } from "../index-BmTo-IS6.js";
|
|
3
|
+
import { S as g } from "../ScrollTrigger-6HnikosL.js";
|
|
4
|
+
import { u as m } from "../index-K0WrPJ_C.js";
|
|
5
|
+
s.registerPlugin(g);
|
|
6
|
+
function b({
|
|
7
|
+
direction: u = "none",
|
|
8
|
+
// 'up' | 'down' | 'left' | 'right' | 'none'
|
|
9
|
+
distance: t = 40,
|
|
10
|
+
duration: c = 0.8,
|
|
11
|
+
delay: i = 0,
|
|
12
|
+
ease: n = "power2.out",
|
|
13
|
+
start: a = "top 85%",
|
|
14
|
+
once: p = !0
|
|
15
|
+
} = {}) {
|
|
16
|
+
const r = f(null);
|
|
17
|
+
return m(
|
|
18
|
+
() => {
|
|
19
|
+
if (!r.current) return;
|
|
20
|
+
const e = { opacity: 0 }, o = {
|
|
21
|
+
opacity: 1,
|
|
22
|
+
duration: c,
|
|
23
|
+
delay: i,
|
|
24
|
+
ease: n,
|
|
25
|
+
scrollTrigger: {
|
|
26
|
+
trigger: r.current,
|
|
27
|
+
start: a,
|
|
28
|
+
once: p
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
switch (u) {
|
|
32
|
+
case "up":
|
|
33
|
+
e.y = t, o.y = 0;
|
|
34
|
+
break;
|
|
35
|
+
case "down":
|
|
36
|
+
e.y = -t, o.y = 0;
|
|
37
|
+
break;
|
|
38
|
+
case "left":
|
|
39
|
+
e.x = t, o.x = 0;
|
|
40
|
+
break;
|
|
41
|
+
case "right":
|
|
42
|
+
e.x = -t, o.x = 0;
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
s.fromTo(r.current, e, o);
|
|
46
|
+
},
|
|
47
|
+
{ scope: r }
|
|
48
|
+
), r;
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
b as useFadeIn
|
|
52
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { useRef as d, useEffect as g } from "react";
|
|
2
|
+
import { g as r } from "../index-BmTo-IS6.js";
|
|
3
|
+
import { S as n } from "../ScrollTrigger-6HnikosL.js";
|
|
4
|
+
function T(s = {}) {
|
|
5
|
+
const t = d(null);
|
|
6
|
+
return g(() => {
|
|
7
|
+
const o = t.current;
|
|
8
|
+
if (!o) return;
|
|
9
|
+
const {
|
|
10
|
+
start: i = "top 85%",
|
|
11
|
+
once: c = !0,
|
|
12
|
+
duration: a = 2,
|
|
13
|
+
ease: l = "power2.out",
|
|
14
|
+
color: u = "#ffffff"
|
|
15
|
+
} = s, f = window.matchMedia(
|
|
16
|
+
"(prefers-reduced-motion: reduce)"
|
|
17
|
+
).matches, e = document.createElement("div");
|
|
18
|
+
e.style.cssText = `
|
|
19
|
+
position: absolute;
|
|
20
|
+
inset: 0;
|
|
21
|
+
background: ${u};
|
|
22
|
+
z-index: 1;
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
`, o.style.position = "relative", o.appendChild(e);
|
|
25
|
+
const m = r.context(() => {
|
|
26
|
+
if (f) {
|
|
27
|
+
e.remove();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
r.fromTo(
|
|
31
|
+
e,
|
|
32
|
+
{ opacity: 1 },
|
|
33
|
+
{
|
|
34
|
+
opacity: 0,
|
|
35
|
+
duration: a,
|
|
36
|
+
ease: l,
|
|
37
|
+
scrollTrigger: {
|
|
38
|
+
trigger: o,
|
|
39
|
+
start: i,
|
|
40
|
+
toggleActions: c ? "play none none none" : "play none none reverse"
|
|
41
|
+
},
|
|
42
|
+
onComplete: () => e.remove()
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
window.addEventListener("load", () => n.refresh());
|
|
47
|
+
const p = setTimeout(() => n.refresh(), 500);
|
|
48
|
+
return () => {
|
|
49
|
+
m.revert(), e.remove(), clearTimeout(p);
|
|
50
|
+
};
|
|
51
|
+
}, []), t;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
T as useImageReveal
|
|
55
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState as e, useEffect as n } from "react";
|
|
2
|
+
let o = null;
|
|
3
|
+
function a(t = "color-neutral-light") {
|
|
4
|
+
const [r, l] = e(t);
|
|
5
|
+
return n(() => (o = l, () => {
|
|
6
|
+
o === l && (o = null);
|
|
7
|
+
}), []), [r, l];
|
|
8
|
+
}
|
|
9
|
+
function f(t) {
|
|
10
|
+
o && o(t);
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
f as notifyNavColor,
|
|
14
|
+
a as useNavColor
|
|
15
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { useState as k, useEffect as j } from "react";
|
|
2
|
+
const L = ({ componentType: o, copy: l, length: a }) => {
|
|
3
|
+
const [f, i] = k([]), b = {
|
|
4
|
+
promo: {
|
|
5
|
+
header: "Header",
|
|
6
|
+
body: "Body",
|
|
7
|
+
linkUrl: "LinkUrl",
|
|
8
|
+
linkLabel: "LinkLabel",
|
|
9
|
+
icon: "Icon"
|
|
10
|
+
},
|
|
11
|
+
textBlock: {
|
|
12
|
+
title: "Title",
|
|
13
|
+
body: "Body"
|
|
14
|
+
}
|
|
15
|
+
}, n = ({ componentType: e, copy: t, i: r }) => {
|
|
16
|
+
let u = b[`${e}`], s = {};
|
|
17
|
+
for (let [d, c] of Object.entries(u))
|
|
18
|
+
s[d] = t[`${e}${c}${r + 1}`];
|
|
19
|
+
return s;
|
|
20
|
+
};
|
|
21
|
+
return j(() => {
|
|
22
|
+
let e = [];
|
|
23
|
+
for (let t = 0; t < a; t++) {
|
|
24
|
+
let r = n({ componentType: o, copy: l, i: t });
|
|
25
|
+
e.push(r);
|
|
26
|
+
}
|
|
27
|
+
i(e);
|
|
28
|
+
}, [o, l, a]), f;
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
L as default
|
|
32
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { useState as t, useEffect as r } from "react";
|
|
2
|
+
const s = () => {
|
|
3
|
+
const [i, e] = t({
|
|
4
|
+
innerWidth: void 0,
|
|
5
|
+
innerHeight: void 0
|
|
6
|
+
});
|
|
7
|
+
return r(() => {
|
|
8
|
+
e({
|
|
9
|
+
innerWidth: window.innerWidth,
|
|
10
|
+
innerHeight: window.innerHeight
|
|
11
|
+
});
|
|
12
|
+
const n = () => {
|
|
13
|
+
e({
|
|
14
|
+
innerWidth: window.innerWidth,
|
|
15
|
+
innerHeight: window.innerHeight
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
|
|
19
|
+
}, []), i;
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
s as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useState as u, useEffect as f } from "react";
|
|
2
|
+
import c from "./useResize.js";
|
|
3
|
+
const a = (s) => {
|
|
4
|
+
const [e, o] = u(!1), r = c(), { innerWidth: t, innerHeight: i } = r;
|
|
5
|
+
return f(() => {
|
|
6
|
+
const n = s({
|
|
7
|
+
innerWidth: t,
|
|
8
|
+
innerHeight: i
|
|
9
|
+
});
|
|
10
|
+
n !== e && o(n);
|
|
11
|
+
}, [e, t, i, s]), e;
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
a as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useRef as g, useEffect as d } from "react";
|
|
2
|
+
import { g as r } from "../index-BmTo-IS6.js";
|
|
3
|
+
import { S as s } from "../ScrollTrigger-6HnikosL.js";
|
|
4
|
+
function h(o = {}) {
|
|
5
|
+
const t = g(null);
|
|
6
|
+
return d(() => {
|
|
7
|
+
const e = t.current;
|
|
8
|
+
if (!e) return;
|
|
9
|
+
const {
|
|
10
|
+
from: c = { opacity: 0, y: 30 },
|
|
11
|
+
to: n = { opacity: 1, y: 0, duration: 0.6, ease: "power2.out" },
|
|
12
|
+
start: i = "top 85%",
|
|
13
|
+
once: f = !0,
|
|
14
|
+
delay: a = 0
|
|
15
|
+
} = o, l = window.matchMedia(
|
|
16
|
+
"(prefers-reduced-motion: reduce)"
|
|
17
|
+
).matches, u = r.context(() => {
|
|
18
|
+
if (l) {
|
|
19
|
+
r.set(e, n);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
r.fromTo(e, c, {
|
|
23
|
+
...n,
|
|
24
|
+
delay: a,
|
|
25
|
+
scrollTrigger: {
|
|
26
|
+
trigger: o.trigger ?? e,
|
|
27
|
+
start: i,
|
|
28
|
+
toggleActions: f ? "play none none none" : "play none none reverse",
|
|
29
|
+
onEnter: () => console.log("ScrollTrigger fired for:", e)
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return window.addEventListener("load", () => s.refresh()), setTimeout(() => s.refresh(), 500), () => u.revert();
|
|
34
|
+
}, []), t;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
h as useReveal
|
|
38
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useRef as g, useEffect as l } from "react";
|
|
2
|
+
import { g as e } from "../index-BmTo-IS6.js";
|
|
3
|
+
function y(c, i = {}, n = {}, r = !0) {
|
|
4
|
+
const o = g(null);
|
|
5
|
+
return l(() => {
|
|
6
|
+
if (!r) return;
|
|
7
|
+
const t = o.current;
|
|
8
|
+
if (!t) return;
|
|
9
|
+
const u = window.matchMedia(
|
|
10
|
+
"(prefers-reduced-motion: reduce)"
|
|
11
|
+
).matches, { scrollTrigger: a, ...f } = n, p = e.context(() => {
|
|
12
|
+
const s = e.utils.toArray(c, t);
|
|
13
|
+
if (u) {
|
|
14
|
+
e.set(s, { opacity: 1, y: 0, scale: 1 });
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
e.fromTo(
|
|
18
|
+
s,
|
|
19
|
+
{ opacity: 0, y: 20, scale: 0.98, ...i },
|
|
20
|
+
{
|
|
21
|
+
opacity: 1,
|
|
22
|
+
y: 0,
|
|
23
|
+
scale: 1,
|
|
24
|
+
stagger: 0.1,
|
|
25
|
+
duration: 0.5,
|
|
26
|
+
ease: "power2.out",
|
|
27
|
+
...f,
|
|
28
|
+
scrollTrigger: {
|
|
29
|
+
trigger: t,
|
|
30
|
+
// ← always keep el as trigger
|
|
31
|
+
start: "top 85%",
|
|
32
|
+
...a
|
|
33
|
+
// ← merge in start/other overrides on top
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}, t);
|
|
38
|
+
return () => p.revert();
|
|
39
|
+
}, [r]), o;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
y as useStagger
|
|
43
|
+
};
|
package/dist/index 4.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as r } from "./components/PromoGroup/PromoGroup.js";
|
|
2
|
+
import { default as t } from "./components/Background/Background.js";
|
|
3
|
+
import { default as l } from "./components/Banner/Banner.js";
|
|
4
|
+
import { default as d } from "./components/Button/Button.js";
|
|
5
|
+
import { default as p } from "./components/Container/Container.js";
|
|
6
|
+
import { default as s } from "./components/Fifty/Fifty.js";
|
|
7
|
+
import { default as c } from "./components/Footer/Footer.js";
|
|
8
|
+
import { default as B } from "./components/ImageTextBlock/ImageTextBlock.js";
|
|
9
|
+
import { default as y } from "./components/OverlayHero/OverlayHero.js";
|
|
10
|
+
import { default as g } from "./components/Note/Note.js";
|
|
11
|
+
import { default as F } from "./components/MenuButton/MenuButton.js";
|
|
12
|
+
import { default as S } from "./components/Navbar/Navbar.js";
|
|
13
|
+
import { default as C } from "./components/IconDetail/IconDetail.js";
|
|
14
|
+
import { default as H } from "./components/Overlay/Overlay.js";
|
|
15
|
+
import { default as M } from "./components/GenericOverlay/GenericOverlay.js";
|
|
16
|
+
import { default as P } from "./components/Toolbar/Toolbar.js";
|
|
17
|
+
import { default as w } from "./components/TextBlock/TextBlock.js";
|
|
18
|
+
import { default as D } from "./components/RSVPEmbed/RSVPEmbed.js";
|
|
19
|
+
import { default as R } from "./components/Accordion/Accordion.js";
|
|
20
|
+
import { default as W } from "./components/Schedule/Schedule.js";
|
|
21
|
+
import { default as q } from "./components/Countdown/Countdown.js";
|
|
22
|
+
import { default as J } from "./components/FloatingWordsHero/FloatingWordsHero.js";
|
|
23
|
+
import { default as L } from "./components/Map/Map.js";
|
|
24
|
+
import { default as U } from "./components/Spacer/Spacer.js";
|
|
25
|
+
export {
|
|
26
|
+
R as Accordion,
|
|
27
|
+
t as Background,
|
|
28
|
+
l as Banner,
|
|
29
|
+
d as Button,
|
|
30
|
+
p as Container,
|
|
31
|
+
q as Countdown,
|
|
32
|
+
s as Fifty,
|
|
33
|
+
J as FloatingWordsHero,
|
|
34
|
+
c as Footer,
|
|
35
|
+
M as GenericOverlay,
|
|
36
|
+
C as IconDetail,
|
|
37
|
+
B as ImageTextBlock,
|
|
38
|
+
L as Map,
|
|
39
|
+
F as MenuButton,
|
|
40
|
+
S as Navbar,
|
|
41
|
+
g as Note,
|
|
42
|
+
H as Overlay,
|
|
43
|
+
y as OverlayHero,
|
|
44
|
+
r as PromoGroup,
|
|
45
|
+
D as RSVPEmbed,
|
|
46
|
+
W as Schedule,
|
|
47
|
+
U as Spacer,
|
|
48
|
+
w as TextBlock,
|
|
49
|
+
P as Toolbar
|
|
50
|
+
};
|