@courtneyring/components-library 1.0.30 → 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-DuHzStoZ.js → AccordionItem-CDN4L4a7.js} +11 -11
- package/dist/ScrollTrigger-6HnikosL.js +1086 -0
- package/dist/animations/FadeIn.js +8 -7
- 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/ButtonGroup.css +1 -0
- 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 -0
- 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 -0
- 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 +2 -2
- package/dist/components/Background/Background.js +24 -22
- package/dist/components/Banner/Banner.js +18 -16
- package/dist/components/BorderedBackground/BorderedBackground.js +1 -1
- package/dist/components/Button/Button.js +23 -16
- package/dist/components/ButtonGroup/ButtonGroup.js +11 -0
- package/dist/components/Container/Container.js +18 -15
- package/dist/components/Countdown/Countdown.js +35 -23
- package/dist/components/Fifty/Fifty.js +43 -34
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +60 -0
- package/dist/components/Footer/Footer.js +7 -7
- package/dist/components/GenericOverlay/GenericOverlay.js +7 -7
- package/dist/components/GridGallery/GridGallery.js +1 -1
- package/dist/components/HorizontalScrollImages/HorizontalScrollImages.js +13 -12
- package/dist/components/IconDetail/IconDetail.js +8 -8
- package/dist/components/ImageTextBlock/ImageTextBlock.js +27 -24
- package/dist/components/List/List.js +8 -8
- package/dist/components/Map/Map.js +43 -0
- package/dist/components/Map/Map.stories.js +16 -0
- package/dist/components/MenuButton/MenuButton.js +1 -1
- package/dist/components/Navbar/Navbar.js +61 -54
- package/dist/components/Note/Note.js +26 -22
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/OverlayHero/OverlayHero.js +63 -21
- package/dist/components/PageContainer/PageContainer.js +6 -6
- package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +4 -3
- package/dist/components/PinnedImage/PinnedImage.js +34 -33
- package/dist/components/PromoGroup/PromoGroup.js +100 -51
- package/dist/components/RSVPEmbed/RSVPEmbed.js +9 -8
- package/dist/components/Schedule/Schedule.js +6 -6
- package/dist/components/Spacer/Spacer.js +6 -0
- package/dist/components/TextBlock/TextBlock.js +5 -5
- package/dist/components/Timeline/Timeline.js +12 -11
- package/dist/components/Toolbar/Toolbar.js +41 -13
- package/dist/hooks/useActiveSection 4.js +27 -0
- package/dist/hooks/useFadeIn 4.js +52 -0
- package/dist/hooks/useFadeIn.js +17 -16
- package/dist/hooks/useImageReveal 4.js +55 -0
- package/dist/hooks/useImageReveal.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/useResize.js +11 -7
- package/dist/hooks/useResponsive 4.js +15 -0
- package/dist/hooks/useReveal 4.js +38 -0
- package/dist/hooks/useReveal.js +38 -0
- package/dist/hooks/useStagger 4.js +43 -0
- package/dist/hooks/useStagger.js +43 -0
- package/dist/index 2.js +50 -0
- package/dist/{index-BIlioXmW.js → index-B2JRaoNz 4.js } +2 -1
- package/dist/index-B2JRaoNz.js +48 -0
- package/dist/index-BmTo-IS6 4.js +2018 -0
- package/dist/index-BmTo-IS6.js +2018 -0
- package/dist/index-DyQs5aC7 4.js +388 -0
- package/dist/{index-BlCqcUwj.js → index-K0WrPJ_C 4.js } +1 -1
- package/dist/index-K0WrPJ_C.js +29 -0
- package/dist/index.js +42 -46
- package/dist/index.modern-DPbS1w7M 4.js +1443 -0
- package/dist/index.modern-DPbS1w7M.js +1443 -0
- package/dist/presets/animations 4.js +24 -0
- package/dist/presets/animations.js +24 -0
- package/dist/utils/breakpoints 4.js +8 -0
- package/dist/utils/gsapSetup 4.js +8 -0
- package/dist/utils/gsapSetup.js +4 -3
- package/dist/utils/parse 4.js +12 -0
- package/dist/utils/parse.js +7 -7
- package/package.json +9 -4
- package/src/styles/_breakpoints.scss +107 -0
- package/src/styles/_colors.scss +50 -0
- package/src/styles/_fonts.scss +238 -0
- package/src/styles/_mixins.scss +114 -0
- package/src/styles/_reveal.scss +93 -0
- package/src/styles/_sizes.scss +192 -0
- package/src/styles/globals.scss +77 -0
- package/src/styles/index.scss +1 -0
- package/src/styles/variables.module.scss +20 -0
- package/dist/Particles-CKNJUrOc.js +0 -2789
- package/dist/ScrollTrigger-DDbij8gI.js +0 -3102
- package/dist/components/ParticleBackground/ParticleBackground.js +0 -31
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
4
|
-
import '../../assets/List.css';const
|
|
5
|
-
item:
|
|
6
|
-
emphasis:
|
|
7
|
-
body:
|
|
8
|
-
},
|
|
3
|
+
import n from "../Icon/Icon.js";
|
|
4
|
+
import '../../assets/List.css';const r = "_item_7te51_1", d = "_emphasis_7te51_56", l = "_body_7te51_104", s = {
|
|
5
|
+
item: r,
|
|
6
|
+
emphasis: d,
|
|
7
|
+
body: l
|
|
8
|
+
}, _ = ({ icon: a, items: c, header: m }) => (new URL((/* @__PURE__ */ Object.assign({}))[`./assets/icons/${a}.svg`], import.meta.url).href, /* @__PURE__ */ t("div", { className: s.list, children: [
|
|
9
9
|
/* @__PURE__ */ e("h2", { children: m }),
|
|
10
10
|
c.map((i, o) => /* @__PURE__ */ t("div", { className: s.item, children: [
|
|
11
|
-
/* @__PURE__ */ e(
|
|
11
|
+
/* @__PURE__ */ e(n, { type: "checkmark" }),
|
|
12
12
|
/* @__PURE__ */ t("div", { className: s.content, children: [
|
|
13
13
|
/* @__PURE__ */ e("p", { className: s.emphasis, children: i.header }),
|
|
14
14
|
/* @__PURE__ */ e("p", { className: s.body, children: i.body })
|
|
@@ -16,5 +16,5 @@ import '../../assets/List.css';const n = "_item_gt8yl_1", r = "_emphasis_gt8yl_5
|
|
|
16
16
|
] }, `item-${o}`))
|
|
17
17
|
] }));
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
_ as default
|
|
20
20
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { A as _, M as m, a as d } from "../../index.modern-DPbS1w7M.js";
|
|
4
|
+
import { c as b } from "../../index-B2JRaoNz.js";
|
|
5
|
+
import f from "../Button/Button.js";
|
|
6
|
+
import '../../assets/Map.css';const u = "_container_p2z63_1", z = "_button_p2z63_7", v = "_map_p2z63_12", N = "_fade_p2z63_18", h = "_marker_p2z63_26", M = "_pin_p2z63_26", g = "_above_p2z63_35", w = "_below_p2z63_52", a = {
|
|
7
|
+
container: u,
|
|
8
|
+
button: z,
|
|
9
|
+
map: v,
|
|
10
|
+
fade: N,
|
|
11
|
+
marker: h,
|
|
12
|
+
pin: M,
|
|
13
|
+
above: g,
|
|
14
|
+
below: w
|
|
15
|
+
}, j = ({ apiKey: n, mapId: s, defaultZoom: t, defaultCenter: r, markers: l, cta: c }) => /* @__PURE__ */ p("div", { className: a.container, children: [
|
|
16
|
+
/* @__PURE__ */ o(_, { apiKey: n, children: /* @__PURE__ */ o(
|
|
17
|
+
m,
|
|
18
|
+
{
|
|
19
|
+
className: a.map,
|
|
20
|
+
defaultZoom: t,
|
|
21
|
+
mapId: s,
|
|
22
|
+
gestureHandling: "none",
|
|
23
|
+
defaultCenter: r,
|
|
24
|
+
zoomControl: !1,
|
|
25
|
+
panControl: !1,
|
|
26
|
+
disableDefaultUI: !0,
|
|
27
|
+
children: l.map((e, i) => /* @__PURE__ */ o(
|
|
28
|
+
d,
|
|
29
|
+
{
|
|
30
|
+
position: e.position,
|
|
31
|
+
className: b(a.marker, a[e.dialogPos]),
|
|
32
|
+
children: /* @__PURE__ */ o("div", { className: a.pin, children: e.label })
|
|
33
|
+
},
|
|
34
|
+
`${i}-${e.label}`
|
|
35
|
+
))
|
|
36
|
+
}
|
|
37
|
+
) }),
|
|
38
|
+
/* @__PURE__ */ o("div", { className: a.fade }),
|
|
39
|
+
/* @__PURE__ */ o(f, { ...c, className: a.button })
|
|
40
|
+
] });
|
|
41
|
+
export {
|
|
42
|
+
j as default
|
|
43
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./Map.js";
|
|
3
|
+
const s = {
|
|
4
|
+
title: "Components/Map",
|
|
5
|
+
component: e,
|
|
6
|
+
parameters: { layout: "centered" },
|
|
7
|
+
tags: ["autodocs"]
|
|
8
|
+
}, t = {
|
|
9
|
+
args: {
|
|
10
|
+
sourceUrl: "https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2837.8505399802675!2d-84.71720358452077!3d44.66140519466946!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x882011411ddf3bef%3A0x22e70df983887b6!2sCrawford+County+Historical+Museum!5e0!3m2!1sen!2sus!4v1460244247057"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
t as Primary,
|
|
15
|
+
s as default
|
|
16
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { c as t } from "../../index-
|
|
3
|
+
import { c as t } from "../../index-B2JRaoNz.js";
|
|
4
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,
|
|
@@ -1,82 +1,89 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs 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
|
-
import { c as E } from "../../index-
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
import { c as E } from "../../index-B2JRaoNz.js";
|
|
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
|
+
navbar: y,
|
|
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: d,
|
|
27
|
+
position: v = "absolute"
|
|
28
|
+
}) => {
|
|
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
|
+
const i = () => {
|
|
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;
|
|
28
35
|
};
|
|
29
|
-
return /* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ b(
|
|
30
37
|
"nav",
|
|
31
38
|
{
|
|
32
39
|
className: E(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
a.navbar,
|
|
41
|
+
u && a.background,
|
|
42
|
+
e && a.open,
|
|
43
|
+
// (direction === "down" || hidden) && styles.hide
|
|
44
|
+
d && a.hide
|
|
37
45
|
),
|
|
46
|
+
style: e ? {} : { position: v },
|
|
38
47
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
s && /* @__PURE__ */
|
|
41
|
-
|
|
42
|
-
className:
|
|
43
|
-
"data-color": !c || n ? "color-white" : "color-neutral-dark"
|
|
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
|
|
44
52
|
})
|
|
45
53
|
] }),
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
|
|
54
|
+
/* @__PURE__ */ n("div", { className: a.navbar__toggle, children: /* @__PURE__ */ n(
|
|
55
|
+
f,
|
|
48
56
|
{
|
|
49
|
-
clickFn: () =>
|
|
50
|
-
isOpen:
|
|
51
|
-
theme:
|
|
57
|
+
clickFn: () => _(!e),
|
|
58
|
+
isOpen: e,
|
|
59
|
+
theme: "color-white"
|
|
52
60
|
}
|
|
53
61
|
) }),
|
|
54
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ n("div", { className: a.navbar__links, children: c.map((o, k) => /* @__PURE__ */ n(
|
|
55
63
|
"a",
|
|
56
64
|
{
|
|
57
|
-
className: `${
|
|
58
|
-
href:
|
|
59
|
-
|
|
60
|
-
children: a.label
|
|
65
|
+
className: `${a.navbar__link}`,
|
|
66
|
+
href: o.value,
|
|
67
|
+
children: o.label
|
|
61
68
|
},
|
|
62
|
-
`navbar-d-${
|
|
69
|
+
`navbar-d-${o.value}`
|
|
63
70
|
)) }),
|
|
64
|
-
|
|
65
|
-
/* @__PURE__ */
|
|
71
|
+
e && N.createPortal(
|
|
72
|
+
/* @__PURE__ */ n(
|
|
66
73
|
D,
|
|
67
74
|
{
|
|
68
|
-
closeFn: () =>
|
|
75
|
+
closeFn: () => _(!1),
|
|
69
76
|
hideClose: !0,
|
|
70
|
-
background:
|
|
77
|
+
background: M.white,
|
|
71
78
|
fullscreen: !0,
|
|
72
|
-
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(
|
|
73
80
|
"a",
|
|
74
81
|
{
|
|
75
|
-
className:
|
|
76
|
-
href:
|
|
77
|
-
children:
|
|
82
|
+
className: a.navbar__link,
|
|
83
|
+
href: o.value,
|
|
84
|
+
children: o.label
|
|
78
85
|
},
|
|
79
|
-
`m-${
|
|
86
|
+
`m-${o.value}`
|
|
80
87
|
)) }) })
|
|
81
88
|
}
|
|
82
89
|
),
|
|
@@ -87,5 +94,5 @@ import '../../assets/Navbar.css';const O = "_navbar_15cfv_1", Y = "_hide_15cfv_4
|
|
|
87
94
|
);
|
|
88
95
|
};
|
|
89
96
|
export {
|
|
90
|
-
|
|
97
|
+
Q as default
|
|
91
98
|
};
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { jsxs as a, 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_1azns_2", d = "_opener_1azns_48", u = "_from_1azns_53", f = "_body_1azns_95", N = "_close_1azns_147", h = "_signature_1azns_194", s = {
|
|
7
|
+
salutation: p,
|
|
8
|
+
opener: d,
|
|
9
|
+
from: u,
|
|
10
|
+
body: f,
|
|
11
|
+
close: N,
|
|
12
|
+
signature: h
|
|
13
|
+
}, v = ({ salutation: o, from: n, body: r, signature: t, close: c }) => {
|
|
14
|
+
const l = i(m);
|
|
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
|
+
" "
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ e("span", { className: s.from, children: n })
|
|
17
22
|
] }),
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
] }) });
|
|
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
|
+
};
|
|
24
28
|
export {
|
|
25
|
-
|
|
29
|
+
v as default
|
|
26
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as r, jsx as s } from "react/jsx-runtime";
|
|
3
3
|
import { useState as v, useEffect as u } from "react";
|
|
4
|
-
import { c as m } from "../../index-
|
|
4
|
+
import { c as m } from "../../index-B2JRaoNz.js";
|
|
5
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,
|
|
@@ -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_1f10x_2", l
|
|
|
35
35
|
] });
|
|
36
36
|
};
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
h as default
|
|
39
39
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as _ } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as o, useEffect as b } from "react";
|
|
4
|
-
import { g as i
|
|
4
|
+
import { g as i } from "../../index-BmTo-IS6.js";
|
|
5
|
+
import { S as w } from "../../ScrollTrigger-6HnikosL.js";
|
|
5
6
|
import '../../assets/ParallaxImageGrid.css';const h = "_container_1tu23_1", R = "_center_1tu23_10", T = "_wrapper_1tu23_17", k = "_box_1tu23_29", n = {
|
|
6
7
|
container: h,
|
|
7
8
|
center: R,
|
|
@@ -9,7 +10,7 @@ import '../../assets/ParallaxImageGrid.css';const h = "_container_1tu23_1", R =
|
|
|
9
10
|
box: k
|
|
10
11
|
};
|
|
11
12
|
i.registerPlugin(w);
|
|
12
|
-
const
|
|
13
|
+
const A = ({ images: y, center: l }) => {
|
|
13
14
|
const c = o(null), u = o([]), p = o(), g = o(), x = [
|
|
14
15
|
{ x: -500, y: -200 },
|
|
15
16
|
{ x: -75, y: -200 },
|
|
@@ -87,5 +88,5 @@ const N = ({ images: y, center: l }) => {
|
|
|
87
88
|
] }) });
|
|
88
89
|
};
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
+
A as default
|
|
91
92
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as i, useEffect as x, createElement as y } from "react";
|
|
4
4
|
import v from "../IconDetail/IconDetail.js";
|
|
5
|
-
import { g as a
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
copy: P,
|
|
12
|
+
text: R,
|
|
13
|
+
title: S,
|
|
14
|
+
background: T,
|
|
15
|
+
section: E,
|
|
16
|
+
details: H
|
|
16
17
|
};
|
|
17
|
-
a.registerPlugin(
|
|
18
|
-
const W = ({ image:
|
|
18
|
+
a.registerPlugin(w);
|
|
19
|
+
const W = ({ image: u, title: _, sections: g }) => {
|
|
19
20
|
const o = i(null);
|
|
20
21
|
i(null);
|
|
21
|
-
const l = i([]),
|
|
22
|
+
const l = i([]), m = i();
|
|
22
23
|
return x(() => {
|
|
23
|
-
const
|
|
24
|
-
const n = l.current,
|
|
25
|
-
a.set(
|
|
26
|
-
const d = o.current.offsetTop,
|
|
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({
|
|
27
28
|
scrollTrigger: {
|
|
28
29
|
trigger: o.current,
|
|
29
30
|
start: `top-=${d} top`,
|
|
@@ -34,37 +35,37 @@ const W = ({ image: m, title: g, sections: f }) => {
|
|
|
34
35
|
anticipatePin: 1
|
|
35
36
|
}
|
|
36
37
|
});
|
|
37
|
-
n.forEach((s,
|
|
38
|
-
|
|
38
|
+
n.forEach((s, h) => {
|
|
39
|
+
f.fromTo(
|
|
39
40
|
s,
|
|
40
|
-
{ opacity:
|
|
41
|
+
{ opacity: h === 0 ? 1 : 0 },
|
|
41
42
|
{ opacity: 1, duration: 0.5 }
|
|
42
43
|
).to(
|
|
43
44
|
s,
|
|
44
|
-
{ opacity:
|
|
45
|
+
{ opacity: h === n.length - 1 ? 1 : 0, duration: 0.5 },
|
|
45
46
|
"+=0.75"
|
|
46
47
|
);
|
|
47
48
|
});
|
|
48
49
|
}, o);
|
|
49
|
-
return () =>
|
|
50
|
-
}, []), /* @__PURE__ */
|
|
50
|
+
return () => c.revert();
|
|
51
|
+
}, []), /* @__PURE__ */ p(
|
|
51
52
|
"div",
|
|
52
53
|
{
|
|
53
54
|
className: e.container,
|
|
54
55
|
ref: o,
|
|
55
|
-
style: { backgroundImage: `url(${
|
|
56
|
+
style: { backgroundImage: `url(${u})` },
|
|
56
57
|
children: [
|
|
57
|
-
/* @__PURE__ */ t("h2", { className: e.title, children:
|
|
58
|
-
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src:
|
|
59
|
-
/* @__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(
|
|
60
61
|
"div",
|
|
61
62
|
{
|
|
62
63
|
className: e.section,
|
|
63
|
-
ref: (
|
|
64
|
+
ref: (r) => l.current[n] = r,
|
|
64
65
|
children: [
|
|
65
|
-
/* @__PURE__ */ t("h3", { children:
|
|
66
|
-
/* @__PURE__ */ t("div", { className: e.text, children:
|
|
67
|
-
/* @__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 })) })
|
|
68
69
|
]
|
|
69
70
|
},
|
|
70
71
|
n
|