@courtneyring/components-library 1.0.34 → 1.0.36
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/assets/AccordionItem.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/RSVPEmbed.css +1 -1
- package/dist/assets/Schedule.css +1 -1
- package/dist/components/Container/Container.js +12 -12
- package/dist/components/Footer/Footer.js +6 -6
- package/dist/components/GenericOverlay 6/GenericOverlay.js +21 -0
- package/dist/components/GridGallery/GridGallery.js +9 -9
- package/dist/components/List/List.js +12 -12
- package/dist/components/Map/Map.js +14 -14
- package/dist/components/Overlay/Overlay.js +31 -31
- package/dist/components/{PinnedImage/PinnedImage.js → PinnedImage 8/PinnedImage.js } +25 -25
- package/dist/components/RSVPEmbed/RSVPEmbed.js +1 -1
- package/package.json +1 -1
- package/src/styles/_breakpoints.scss +1 -1
- package/dist/AccordionItem-BnGlD8YU.js +0 -40
- package/dist/ScrollTrigger-6HnikosL.js +0 -1086
- package/dist/animations/FadeIn.js +0 -34
- package/dist/animations/FadeInMotion.js +0 -4805
- package/dist/assets/Background.css +0 -1
- package/dist/assets/Banner.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonGroup.css +0 -1
- package/dist/assets/Container.css +0 -1
- package/dist/assets/Countdown.css +0 -1
- package/dist/assets/Fifty.css +0 -1
- package/dist/assets/FloatingWordsHero.css +0 -1
- package/dist/assets/Footer.css +0 -1
- package/dist/assets/GridGallery.css +0 -1
- package/dist/assets/HorizontalScrollImages.css +0 -1
- package/dist/assets/IconDetail.css +0 -1
- package/dist/assets/ImageTextBlock.css +0 -1
- package/dist/assets/List.css +0 -1
- package/dist/assets/Map.css +0 -1
- package/dist/assets/MenuButton.css +0 -1
- package/dist/assets/Navbar.css +0 -1
- package/dist/assets/Note.css +0 -1
- package/dist/assets/Overlay.css +0 -1
- package/dist/assets/PageContainer.css +0 -1
- package/dist/assets/ParallaxImageGrid.css +0 -1
- package/dist/assets/PromoGroup.css +0 -1
- package/dist/assets/TextBlock.css +0 -1
- package/dist/assets/Timeline.css +0 -1
- package/dist/assets/Toolbar.css +0 -1
- package/dist/assets/icons/checkmark.svg +0 -3
- package/dist/components/Accordion/Accordion.js +0 -33
- package/dist/components/Accordion/AccordionItem.js +0 -8
- package/dist/components/Background/Background.js +0 -59
- package/dist/components/Banner/Banner.js +0 -23
- package/dist/components/Button/Button.js +0 -44
- package/dist/components/ButtonGroup/ButtonGroup.js +0 -11
- package/dist/components/Countdown/Countdown.js +0 -41
- package/dist/components/Fifty/Fifty.js +0 -55
- package/dist/components/Fifty/Fifty.stories.js +0 -32
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +0 -60
- package/dist/components/GenericOverlay/GenericOverlay.js +0 -21
- package/dist/components/IconDetail/IconDetail.js +0 -14
- package/dist/components/ImageTextBlock/ImageTextBlock.js +0 -36
- package/dist/components/Navbar/Navbar.js +0 -98
- package/dist/components/Note/Note.js +0 -30
- package/dist/components/OverlayHero/OverlayHero.js +0 -67
- package/dist/components/PageContainer/PageContainer.js +0 -39
- package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +0 -92
- package/dist/components/PromoGroup/PromoGroup.js +0 -106
- package/dist/components/Schedule/Schedule.js +0 -24
- package/dist/components/Spacer/Spacer.js +0 -6
- package/dist/components/TextBlock/TextBlock.js +0 -27
- package/dist/components/Timeline/Timeline.js +0 -54
- package/dist/hooks/useActiveSection.js +0 -27
- package/dist/hooks/useFadeIn.js +0 -52
- package/dist/hooks/useImageReveal.js +0 -55
- package/dist/hooks/useNavColor.js +0 -15
- package/dist/hooks/useRepeatable.js +0 -32
- package/dist/hooks/useResize.js +0 -23
- package/dist/hooks/useResponsive.js +0 -15
- package/dist/hooks/useReveal.js +0 -38
- package/dist/hooks/useStagger.js +0 -43
- package/dist/index-B2JRaoNz 2.js +0 -48
- package/dist/index-B2JRaoNz.js +0 -48
- package/dist/index-BmTo-IS6.js +0 -2018
- package/dist/index-DyQs5aC7 3.js +0 -388
- package/dist/index-DyQs5aC7.js +0 -388
- package/dist/index-K0WrPJ_C.js +0 -29
- package/dist/index.js +0 -50
- package/dist/index.modern-DPbS1w7M.js +0 -1443
- package/dist/presets/animations 3.js +0 -24
- package/dist/presets/animations.js +0 -24
- package/dist/utils/breakpoints 3.js +0 -8
- package/dist/utils/breakpoints.js +0 -8
- package/dist/utils/gsapSetup 3.js +0 -8
- package/dist/utils/gsapSetup.js +0 -8
- package/dist/utils/parse 3.js +0 -12
- package/dist/utils/parse.js +0 -12
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as e, jsxs as c, Fragment as v } from "react/jsx-runtime";
|
|
3
|
-
import i from "../Button/Button.js";
|
|
4
|
-
import { c as u } from "../../index-B2JRaoNz.js";
|
|
5
|
-
import "../../hooks/useFadeIn.js";
|
|
6
|
-
import f from "../../utils/parse.js";
|
|
7
|
-
import { Children as h } from "react";
|
|
8
|
-
import { appleReveal as p } from "../../presets/animations.js";
|
|
9
|
-
import { useReveal as g } from "../../hooks/useReveal.js";
|
|
10
|
-
import { useImageReveal as N } from "../../hooks/useImageReveal.js";
|
|
11
|
-
import '../../assets/ImageTextBlock.css';const k = "_container_cuob2_1", R = "_reverse_cuob2_7", x = "_content_cuob2_11", y = "_header_cuob2_16", j = "_body_cuob2_69", I = "_ctas_cuob2_121", B = "_image_cuob2_125", F = "_block_cuob2_186", o = {
|
|
12
|
-
container: k,
|
|
13
|
-
reverse: R,
|
|
14
|
-
content: x,
|
|
15
|
-
header: y,
|
|
16
|
-
body: j,
|
|
17
|
-
ctas: I,
|
|
18
|
-
image: B,
|
|
19
|
-
block: F
|
|
20
|
-
}, G = ({ image: m, header: s, body: t, primaryCta: r, secondaryCta: a, reverse: l, children: n, imagePos: _ }) => {
|
|
21
|
-
const d = N(), b = g({ ...p, delay: 0.2 });
|
|
22
|
-
return /* @__PURE__ */ e("div", { className: u(o.block, l && o.reverse), children: /* @__PURE__ */ c("div", { className: o.container, children: [
|
|
23
|
-
/* @__PURE__ */ e("div", { className: o.image, ref: d, children: /* @__PURE__ */ e("img", { src: m, style: { objectPosition: _ } }) }),
|
|
24
|
-
/* @__PURE__ */ c("div", { className: o.content, ref: b, children: [
|
|
25
|
-
s && /* @__PURE__ */ e("h2", { className: o.header, children: s }),
|
|
26
|
-
t && /* @__PURE__ */ e("div", { className: o.body, children: f(t) }),
|
|
27
|
-
h.count(n) > 0 ? n : /* @__PURE__ */ e(v, { children: /* @__PURE__ */ c("div", { className: o.ctas, children: [
|
|
28
|
-
r && /* @__PURE__ */ e(i, { ...r }),
|
|
29
|
-
a && /* @__PURE__ */ e(i, { ...a })
|
|
30
|
-
] }) })
|
|
31
|
-
] })
|
|
32
|
-
] }) });
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
G as default
|
|
36
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as d, jsx as n } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as g, useState as l, useEffect as f, cloneElement as y } from "react";
|
|
4
|
-
import k from "../MenuButton/MenuButton.js";
|
|
5
|
-
import { r as w } from "../../index-DyQs5aC7.js";
|
|
6
|
-
import N from "../Overlay/Overlay.js";
|
|
7
|
-
import D from "../Container/Container.js";
|
|
8
|
-
import { c as x } from "../../index-B2JRaoNz.js";
|
|
9
|
-
import '../../assets/Navbar.css';const E = "_navbar_1yhdr_1", O = "_hide_1yhdr_19", Y = "_background_1yhdr_22", S = "_navbar__link_1yhdr_22", $ = "_navbar__logo_1yhdr_26", j = "_component_1yhdr_34", B = "_navbar__links_1yhdr_38", C = "_navbar__mobileDialog_1yhdr_95", F = "_open_1yhdr_107", L = "_navbar__toggle_1yhdr_118", a = {
|
|
10
|
-
navbar: E,
|
|
11
|
-
hide: O,
|
|
12
|
-
background: Y,
|
|
13
|
-
navbar__link: S,
|
|
14
|
-
navbar__logo: $,
|
|
15
|
-
component: j,
|
|
16
|
-
navbar__links: B,
|
|
17
|
-
navbar__mobileDialog: C,
|
|
18
|
-
open: F,
|
|
19
|
-
navbar__toggle: L
|
|
20
|
-
}, M = {}, Q = ({
|
|
21
|
-
links: c,
|
|
22
|
-
logoImage: s,
|
|
23
|
-
backgroundColor: I,
|
|
24
|
-
color: P,
|
|
25
|
-
logoComponent: t,
|
|
26
|
-
hidden: b,
|
|
27
|
-
position: v = "absolute"
|
|
28
|
-
}) => {
|
|
29
|
-
const o = g(0), [R, m] = l("up"), [e, _] = l(!1), [u, h] = l(!1);
|
|
30
|
-
f(() => (window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i)), []);
|
|
31
|
-
const i = () => {
|
|
32
|
-
h(window.scrollY > 30);
|
|
33
|
-
const r = window.scrollY;
|
|
34
|
-
r - o.current !== 0 && m(r > o.current ? "down" : "up"), o.current = r > 0 ? r : 0;
|
|
35
|
-
};
|
|
36
|
-
return /* @__PURE__ */ d(
|
|
37
|
-
"nav",
|
|
38
|
-
{
|
|
39
|
-
className: x(
|
|
40
|
-
a.navbar,
|
|
41
|
-
u && a.background,
|
|
42
|
-
e && a.open,
|
|
43
|
-
// (direction === "down" || hidden) && styles.hide
|
|
44
|
-
b && a.hide
|
|
45
|
-
),
|
|
46
|
-
style: e ? {} : { position: v },
|
|
47
|
-
children: [
|
|
48
|
-
/* @__PURE__ */ d("a", { className: a.navbar__logo, href: "/", children: [
|
|
49
|
-
s && /* @__PURE__ */ n("img", { src: s }),
|
|
50
|
-
t && y(t, {
|
|
51
|
-
className: a.component
|
|
52
|
-
})
|
|
53
|
-
] }),
|
|
54
|
-
/* @__PURE__ */ n("div", { className: a.navbar__toggle, children: /* @__PURE__ */ n(
|
|
55
|
-
k,
|
|
56
|
-
{
|
|
57
|
-
clickFn: () => _(!e),
|
|
58
|
-
isOpen: e,
|
|
59
|
-
theme: "color-white"
|
|
60
|
-
}
|
|
61
|
-
) }),
|
|
62
|
-
/* @__PURE__ */ n("div", { className: a.navbar__links, children: c.map((r, p) => /* @__PURE__ */ n(
|
|
63
|
-
"a",
|
|
64
|
-
{
|
|
65
|
-
className: `${a.navbar__link}`,
|
|
66
|
-
href: r.value,
|
|
67
|
-
children: r.label
|
|
68
|
-
},
|
|
69
|
-
`navbar-d-${r.value}`
|
|
70
|
-
)) }),
|
|
71
|
-
e && w.createPortal(
|
|
72
|
-
/* @__PURE__ */ n(
|
|
73
|
-
N,
|
|
74
|
-
{
|
|
75
|
-
closeFn: () => _(!1),
|
|
76
|
-
hideClose: !0,
|
|
77
|
-
background: M.white,
|
|
78
|
-
fullscreen: !0,
|
|
79
|
-
children: /* @__PURE__ */ n(D, { color: "color-white", children: /* @__PURE__ */ n("div", { className: a.navbar__mobileDialog, children: c.map((r, p) => /* @__PURE__ */ n(
|
|
80
|
-
"a",
|
|
81
|
-
{
|
|
82
|
-
className: a.navbar__link,
|
|
83
|
-
href: r.value,
|
|
84
|
-
children: r.label
|
|
85
|
-
},
|
|
86
|
-
`m-${r.value}`
|
|
87
|
-
)) }) })
|
|
88
|
-
}
|
|
89
|
-
),
|
|
90
|
-
document.body
|
|
91
|
-
)
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
Q as default
|
|
98
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useReveal as i } from "../../hooks/useReveal.js";
|
|
4
|
-
import { appleReveal as m } from "../../presets/animations.js";
|
|
5
|
-
import _ from "../../utils/parse.js";
|
|
6
|
-
import '../../assets/Note.css';const p = "_salutation_69fus_2", u = "_opener_69fus_48", f = "_from_69fus_53", d = "_body_69fus_100", N = "_close_69fus_152", h = "_signature_69fus_199", s = {
|
|
7
|
-
salutation: p,
|
|
8
|
-
opener: u,
|
|
9
|
-
from: f,
|
|
10
|
-
body: d,
|
|
11
|
-
close: N,
|
|
12
|
-
signature: h
|
|
13
|
-
}, x = ({ salutation: a, from: n, body: r, signature: t, close: c }) => {
|
|
14
|
-
const l = i(m);
|
|
15
|
-
return /* @__PURE__ */ o("div", { className: s.note, ref: l, children: [
|
|
16
|
-
/* @__PURE__ */ o("p", { className: s.salutation, children: [
|
|
17
|
-
/* @__PURE__ */ o("span", { className: s.opener, children: [
|
|
18
|
-
a,
|
|
19
|
-
" "
|
|
20
|
-
] }),
|
|
21
|
-
/* @__PURE__ */ e("span", { className: s.from, children: n })
|
|
22
|
-
] }),
|
|
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
|
-
] });
|
|
27
|
-
};
|
|
28
|
-
export {
|
|
29
|
-
x as default
|
|
30
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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 z } from "react";
|
|
5
|
-
import { g as t } from "../../index-BmTo-IS6.js";
|
|
6
|
-
import { S as q } from "../../ScrollTrigger-6HnikosL.js";
|
|
7
|
-
import N from "../../hooks/useResize.js";
|
|
8
|
-
import '../../assets/OverlayHero.css';const B = "_hero_fbz3q_5", T = "_heroBg_fbz3q_34", S = "_overlay_fbz3q_42", j = "_eyebrow_fbz3q_69", k = "_title_fbz3q_76", E = "_subtitle_fbz3q_94", r = {
|
|
9
|
-
hero: B,
|
|
10
|
-
heroBg: T,
|
|
11
|
-
overlay: S,
|
|
12
|
-
eyebrow: j,
|
|
13
|
-
title: k,
|
|
14
|
-
subtitle: E
|
|
15
|
-
};
|
|
16
|
-
t.registerPlugin(q);
|
|
17
|
-
const $ = ({ text: P, image: d, pos: g, eyebrow: c, title: b, subtitle: n }) => {
|
|
18
|
-
const { innerWidth: h } = N(), s = e(null), l = e(), a = e(null), i = e(null), u = e(null), f = e(null);
|
|
19
|
-
return z(() => {
|
|
20
|
-
const _ = s.current, v = a.current, w = window.matchMedia("(prefers-reduced-motion: reduce)").matches, m = l.current;
|
|
21
|
-
if (w || h < 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: _,
|
|
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: l, className: r.heroBg, style: { backgroundImage: `url(${d})`, backgroundPosition: g, opacity: 0 } }),
|
|
58
|
-
/* @__PURE__ */ p("div", { ref: a, 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(b) }),
|
|
61
|
-
n && /* @__PURE__ */ o("div", { ref: f, className: r.subtitle, children: y(n) })
|
|
62
|
-
] })
|
|
63
|
-
] });
|
|
64
|
-
};
|
|
65
|
-
export {
|
|
66
|
-
$ as default
|
|
67
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
3
|
-
import '../../assets/PageContainer.css';const s = "_container__inner_18w4z_2", l = "_removePadding_18w4z_55", m = "_container__body_18w4z_59", y = "_container__copy_18w4z_74", n = {
|
|
4
|
-
container__inner: s,
|
|
5
|
-
removePadding: l,
|
|
6
|
-
container__body: m,
|
|
7
|
-
container__copy: y
|
|
8
|
-
}, P = ({
|
|
9
|
-
heroImage: g,
|
|
10
|
-
pageTitle: r,
|
|
11
|
-
children: t,
|
|
12
|
-
hero: h,
|
|
13
|
-
copy: e,
|
|
14
|
-
excludePadding: c = []
|
|
15
|
-
}) => {
|
|
16
|
-
const a = () => {
|
|
17
|
-
let _ = {};
|
|
18
|
-
for (let d of c)
|
|
19
|
-
_[`padding-${d}`] = 0;
|
|
20
|
-
return _;
|
|
21
|
-
};
|
|
22
|
-
return /* @__PURE__ */ i("main", { children: [
|
|
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
|
-
),
|
|
34
|
-
t
|
|
35
|
-
] });
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
P as default
|
|
39
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as a, jsxs as _ } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as o, useEffect as b } from "react";
|
|
4
|
-
import { g as i } from "../../index-BmTo-IS6.js";
|
|
5
|
-
import { S as w } from "../../ScrollTrigger-6HnikosL.js";
|
|
6
|
-
import '../../assets/ParallaxImageGrid.css';const h = "_container_1tu23_1", R = "_center_1tu23_10", T = "_wrapper_1tu23_17", k = "_box_1tu23_29", n = {
|
|
7
|
-
container: h,
|
|
8
|
-
center: R,
|
|
9
|
-
wrapper: T,
|
|
10
|
-
box: k
|
|
11
|
-
};
|
|
12
|
-
i.registerPlugin(w);
|
|
13
|
-
const A = ({ images: y, center: l }) => {
|
|
14
|
-
const c = o(null), u = o([]), p = o(), g = o(), x = [
|
|
15
|
-
{ x: -500, y: -200 },
|
|
16
|
-
{ x: -75, y: -200 },
|
|
17
|
-
{ x: 200, y: 0 },
|
|
18
|
-
{ x: 500, y: -200 },
|
|
19
|
-
{ x: -500, y: 100 },
|
|
20
|
-
{ x: -200, y: 0 },
|
|
21
|
-
{ x: 75, y: 200 },
|
|
22
|
-
{ x: 500, y: 200 }
|
|
23
|
-
], f = (e) => {
|
|
24
|
-
const r = g.current.getBoundingClientRect(), t = r.width / 100 * x[e].x, s = r.height / 100 * x[e].y;
|
|
25
|
-
return { x: t, y: s };
|
|
26
|
-
};
|
|
27
|
-
return b(() => {
|
|
28
|
-
const e = i.context(() => {
|
|
29
|
-
const r = i.timeline({
|
|
30
|
-
scrollTrigger: {
|
|
31
|
-
trigger: c.current,
|
|
32
|
-
start: "top-=25% top",
|
|
33
|
-
toggleActions: "play none none none"
|
|
34
|
-
// end: "top-=10% top",
|
|
35
|
-
// end: "+=250%",
|
|
36
|
-
// scrub: true,
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
r.fromTo(
|
|
40
|
-
p.current,
|
|
41
|
-
{ scale: 2, y: -200 },
|
|
42
|
-
{ scale: 1, y: 0, ease: "power1.out", duration: 2 },
|
|
43
|
-
0.7
|
|
44
|
-
), u.current.forEach((t, s) => {
|
|
45
|
-
const { x: m, y: d } = f(s);
|
|
46
|
-
r.fromTo(
|
|
47
|
-
t,
|
|
48
|
-
{ x: m, y: d, opacity: 0 },
|
|
49
|
-
{
|
|
50
|
-
x: 0,
|
|
51
|
-
y: 0,
|
|
52
|
-
opacity: 1,
|
|
53
|
-
ease: "power1.out",
|
|
54
|
-
duration: 3
|
|
55
|
-
},
|
|
56
|
-
0
|
|
57
|
-
);
|
|
58
|
-
});
|
|
59
|
-
}, c);
|
|
60
|
-
return () => e.revert();
|
|
61
|
-
}, []), /* @__PURE__ */ a("div", { className: n.container, ref: c, children: /* @__PURE__ */ _("section", { className: n.wrapper, ref: g, children: [
|
|
62
|
-
y.map((e, r) => /* @__PURE__ */ a(
|
|
63
|
-
"div",
|
|
64
|
-
{
|
|
65
|
-
className: n.box,
|
|
66
|
-
ref: (t) => u.current[r] = t,
|
|
67
|
-
style: {
|
|
68
|
-
backgroundImage: `url(${e.src})`,
|
|
69
|
-
backgroundPosition: e.position,
|
|
70
|
-
backgroundSize: e.size,
|
|
71
|
-
gridArea: `area-${r + 1}`
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
r
|
|
75
|
-
)),
|
|
76
|
-
/* @__PURE__ */ a(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
className: n.center,
|
|
80
|
-
ref: p,
|
|
81
|
-
style: {
|
|
82
|
-
backgroundImage: `url(${l.src})`,
|
|
83
|
-
backgroundPosition: l.position,
|
|
84
|
-
gridArea: "center"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
)
|
|
88
|
-
] }) });
|
|
89
|
-
};
|
|
90
|
-
export {
|
|
91
|
-
A as default
|
|
92
|
-
};
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as n, Fragment as N, jsx as a } from "react/jsx-runtime";
|
|
3
|
-
import { useMemo as f } from "react";
|
|
4
|
-
import "../../index-K0WrPJ_C.js";
|
|
5
|
-
import "../../hooks/useFadeIn.js";
|
|
6
|
-
import y from "../Button/Button.js";
|
|
7
|
-
import { appleStagger as r } from "../../presets/animations.js";
|
|
8
|
-
import { c as m } from "../../index-B2JRaoNz.js";
|
|
9
|
-
import "../OverlayHero/OverlayHero.js";
|
|
10
|
-
import "../../index-DyQs5aC7.js";
|
|
11
|
-
import { useStagger as C } from "../../hooks/useStagger.js";
|
|
12
|
-
import "../FloatingWordsHero/FloatingWordsHero.js";
|
|
13
|
-
import "../../index.modern-DPbS1w7M.js";
|
|
14
|
-
import '../../assets/PromoGroup.css';const b = "_group_tliee_2", x = "_slider_tliee_27", v = "_header_tliee_33", T = "_promo_tliee_81", $ = "_icon_tliee_131", j = "_cta_tliee_141", F = "_imageContainer_tliee_149", k = "_image_tliee_149", S = "_promo__header_tliee_161", z = "_promo__body_tliee_253", A = "_stats_tliee_300", B = "_stat_tliee_300", G = "_statText_tliee_314", e = {
|
|
15
|
-
group: b,
|
|
16
|
-
slider: x,
|
|
17
|
-
header: v,
|
|
18
|
-
promo: T,
|
|
19
|
-
icon: $,
|
|
20
|
-
cta: j,
|
|
21
|
-
imageContainer: F,
|
|
22
|
-
image: k,
|
|
23
|
-
promo__header: S,
|
|
24
|
-
promo__body: z,
|
|
25
|
-
stats: A,
|
|
26
|
-
stat: B,
|
|
27
|
-
statText: G,
|
|
28
|
-
"count-4": "_count-4_tliee_391"
|
|
29
|
-
}, Q = ({ header: d, promos: s, direction: c = "vertical", slider: g }) => {
|
|
30
|
-
const h = ["icon", "header", "body", "cta", "stats", "image"], p = C(`.${e.promo}`, r.from, {
|
|
31
|
-
...r.to,
|
|
32
|
-
stagger: r.stagger,
|
|
33
|
-
scrollTrigger: { start: r.start }
|
|
34
|
-
}), l = f(() => {
|
|
35
|
-
let t = 0;
|
|
36
|
-
for (let i of h)
|
|
37
|
-
s.some((o) => !!o[i]) && (t += 1);
|
|
38
|
-
return t;
|
|
39
|
-
}, [s]);
|
|
40
|
-
return /* @__PURE__ */ n(N, { children: [
|
|
41
|
-
/* @__PURE__ */ a("h2", { className: e.header, children: d }),
|
|
42
|
-
/* @__PURE__ */ a(
|
|
43
|
-
"div",
|
|
44
|
-
{
|
|
45
|
-
ref: p,
|
|
46
|
-
className: m(
|
|
47
|
-
e.group,
|
|
48
|
-
e[`count-${s.length}`],
|
|
49
|
-
g && e.slider
|
|
50
|
-
),
|
|
51
|
-
style: {
|
|
52
|
-
"--promos": s.length,
|
|
53
|
-
"--propCount": c == "horizontal" ? l - 1 : l
|
|
54
|
-
},
|
|
55
|
-
children: s.map((t, i) => {
|
|
56
|
-
const o = t.containerCta ? "a" : "div";
|
|
57
|
-
return /* @__PURE__ */ n(
|
|
58
|
-
o,
|
|
59
|
-
{
|
|
60
|
-
onClick: t.containerCta?.onClick || null,
|
|
61
|
-
href: t.containerCta?.href || null,
|
|
62
|
-
target: t.containerCta?.target || null,
|
|
63
|
-
delay: 0.1 * i,
|
|
64
|
-
className: e.promo,
|
|
65
|
-
"data-color": t.color,
|
|
66
|
-
"data-text-align": t.textAlign,
|
|
67
|
-
"data-direction": c,
|
|
68
|
-
children: [
|
|
69
|
-
t.icon && /* @__PURE__ */ a(
|
|
70
|
-
"span",
|
|
71
|
-
{
|
|
72
|
-
className: m(
|
|
73
|
-
"material-symbols-outlined",
|
|
74
|
-
e.icon,
|
|
75
|
-
!t.icon && "hidden"
|
|
76
|
-
),
|
|
77
|
-
children: t.icon
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
t.image && /* @__PURE__ */ a("div", { className: e.imageContainer, children: /* @__PURE__ */ a(
|
|
81
|
-
"img",
|
|
82
|
-
{
|
|
83
|
-
style: { objectFit: t.imageFit },
|
|
84
|
-
className: e.image,
|
|
85
|
-
src: t.image
|
|
86
|
-
}
|
|
87
|
-
) }),
|
|
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(y, { ...t.cta }) }),
|
|
91
|
-
t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_, u) => /* @__PURE__ */ n("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-${u}`)) })
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
`promo-${i}`
|
|
98
|
-
);
|
|
99
|
-
})
|
|
100
|
-
}
|
|
101
|
-
)
|
|
102
|
-
] });
|
|
103
|
-
};
|
|
104
|
-
export {
|
|
105
|
-
Q as default
|
|
106
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
3
|
-
import { Fragment as n } from "react";
|
|
4
|
-
import '../../assets/Schedule.css';const a = "_schedule_ro9fq_2", r = "_timeline_ro9fq_79", m = "_time_ro9fq_79", o = "_dot_ro9fq_92", _ = "_diagram_ro9fq_100", h = "_line_ro9fq_106", e = {
|
|
5
|
-
schedule: a,
|
|
6
|
-
timeline: r,
|
|
7
|
-
time: m,
|
|
8
|
-
dot: o,
|
|
9
|
-
diagram: _,
|
|
10
|
-
line: h
|
|
11
|
-
}, u = ({ slots: d, header: t }) => /* @__PURE__ */ s("div", { className: e.schedule, children: [
|
|
12
|
-
/* @__PURE__ */ i("h3", { children: t }),
|
|
13
|
-
/* @__PURE__ */ i("div", { className: e.timeline, children: d.map((c, l) => /* @__PURE__ */ s(n, { children: [
|
|
14
|
-
/* @__PURE__ */ i("div", { className: e.time, children: c.time }),
|
|
15
|
-
/* @__PURE__ */ s("div", { className: e.diagram, children: [
|
|
16
|
-
/* @__PURE__ */ i("span", { className: e.line }),
|
|
17
|
-
/* @__PURE__ */ i("div", { className: e.dot })
|
|
18
|
-
] }),
|
|
19
|
-
/* @__PURE__ */ i("div", { className: e.description, children: c.description })
|
|
20
|
-
] }, l)) })
|
|
21
|
-
] });
|
|
22
|
-
export {
|
|
23
|
-
u as default
|
|
24
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as s, jsx as c } from "react/jsx-runtime";
|
|
3
|
-
import { createElement as d } from "react";
|
|
4
|
-
import n from "../../utils/parse.js";
|
|
5
|
-
import m from "../IconDetail/IconDetail.js";
|
|
6
|
-
import '../../assets/TextBlock.css';const _ = "_title_1riej_1", p = "_blocks_1riej_52", k = "_block_1riej_52", h = "_blockHeader_1riej_63", b = "_description_1riej_92", e = {
|
|
7
|
-
title: _,
|
|
8
|
-
blocks: p,
|
|
9
|
-
block: k,
|
|
10
|
-
blockHeader: h,
|
|
11
|
-
description: b
|
|
12
|
-
}, x = ({ header: l, blocks: t }) => /* @__PURE__ */ s("div", { className: e.container, children: [
|
|
13
|
-
/* @__PURE__ */ c("h2", { className: e.title, children: l }),
|
|
14
|
-
/* @__PURE__ */ c("div", { className: e.blocks, children: t.map((i, r) => (
|
|
15
|
-
// <div className={styles.block} key={`block-${idx}`}>
|
|
16
|
-
/* @__PURE__ */ s("div", { className: e.block, children: [
|
|
17
|
-
/* @__PURE__ */ c("h3", { className: e.blockHeader, children: i.header }),
|
|
18
|
-
/* @__PURE__ */ s("div", { className: e.content, children: [
|
|
19
|
-
/* @__PURE__ */ c("div", { className: e.description, children: n(i.description) }),
|
|
20
|
-
/* @__PURE__ */ c("div", { className: e.details, children: i.details && i.details.map((o, a) => /* @__PURE__ */ d(m, { ...o, key: a })) })
|
|
21
|
-
] })
|
|
22
|
-
] }, `block-${r}`)
|
|
23
|
-
)) })
|
|
24
|
-
] });
|
|
25
|
-
export {
|
|
26
|
-
x as default
|
|
27
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsxs as l, Fragment as g, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { useRef as a, useEffect as f } from "react";
|
|
4
|
-
import { g as o } from "../../index-BmTo-IS6.js";
|
|
5
|
-
import { S as p } from "../../ScrollTrigger-6HnikosL.js";
|
|
6
|
-
import '../../assets/Timeline.css';const h = "_spacer_1g76i_1", u = "_timelineWrapper_1g76i_6", x = "_linePin_1g76i_12", v = "_timelineLine_1g76i_22", N = "_items_1g76i_33", y = "_item_1g76i_33", P = "_text_1g76i_49", i = {
|
|
7
|
-
spacer: h,
|
|
8
|
-
timelineWrapper: u,
|
|
9
|
-
linePin: x,
|
|
10
|
-
timelineLine: v,
|
|
11
|
-
items: N,
|
|
12
|
-
item: y,
|
|
13
|
-
text: P
|
|
14
|
-
};
|
|
15
|
-
o.registerPlugin(p);
|
|
16
|
-
const W = [
|
|
17
|
-
{ year: "2019", text: "Started the journey" },
|
|
18
|
-
{ year: "2021", text: "Major milestone" },
|
|
19
|
-
{ year: "2024", text: "Where we are today" }
|
|
20
|
-
];
|
|
21
|
-
function R() {
|
|
22
|
-
const s = a(null), d = a(null), m = a(null);
|
|
23
|
-
return f(() => {
|
|
24
|
-
const e = window.innerHeight, c = o.context(() => {
|
|
25
|
-
p.create({
|
|
26
|
-
trigger: s.current,
|
|
27
|
-
start: "top top",
|
|
28
|
-
end: `+=${e * 2}`,
|
|
29
|
-
// controls how long it stays pinned
|
|
30
|
-
pin: d.current,
|
|
31
|
-
scrub: !0,
|
|
32
|
-
onUpdate: (_) => {
|
|
33
|
-
const r = _.progress;
|
|
34
|
-
let n;
|
|
35
|
-
r < 0.25 ? n = r / 0.25 * 0.5 * e : r < 0.75 ? n = 0.5 * e : n = 0.5 * e + (r - 0.75) / 0.25 * 0.5 * e, o.set(m.current, { height: n });
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}, s);
|
|
39
|
-
return () => c.revert();
|
|
40
|
-
}, []), /* @__PURE__ */ l(g, { children: [
|
|
41
|
-
/* @__PURE__ */ t("div", { className: i.spacer }),
|
|
42
|
-
/* @__PURE__ */ l("section", { className: i.timelineWrapper, ref: s, children: [
|
|
43
|
-
/* @__PURE__ */ t("div", { className: i.linePin, children: /* @__PURE__ */ t("div", { className: i.timelineLine, ref: m }) }),
|
|
44
|
-
/* @__PURE__ */ t("div", { className: i.items, children: W.map((e, c) => /* @__PURE__ */ t("div", { className: i.item, children: /* @__PURE__ */ l("div", { className: i.text, children: [
|
|
45
|
-
/* @__PURE__ */ t("h3", { children: e.year }),
|
|
46
|
-
/* @__PURE__ */ t("p", { children: e.text })
|
|
47
|
-
] }) }, c)) })
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ t("div", { className: i.spacer })
|
|
50
|
-
] });
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
R as default
|
|
54
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/hooks/useFadeIn.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
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
|
-
};
|