@courtneyring/components-library 1.0.35 → 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.
Files changed (127) hide show
  1. package/dist/assets/OverlayHero.css +1 -1
  2. package/package.json +1 -1
  3. package/dist/AccordionItem-DUGBw5pW 2.js +0 -40
  4. package/dist/AccordionItem-DUGBw5pW.js +0 -40
  5. package/dist/ScrollTrigger-6HnikosL 3.js +0 -1086
  6. package/dist/ScrollTrigger-6HnikosL.js +0 -1086
  7. package/dist/animations/FadeIn 3.js +0 -34
  8. package/dist/animations/FadeIn.js +0 -34
  9. package/dist/animations/FadeInMotion.js +0 -4805
  10. package/dist/assets/AccordionItem 4.css +0 -1
  11. package/dist/assets/Background.css +0 -1
  12. package/dist/assets/Banner 3.css +0 -1
  13. package/dist/assets/Banner.css +0 -1
  14. package/dist/assets/BorderedBackground 4.css +0 -1
  15. package/dist/assets/Button 4.css +0 -1
  16. package/dist/assets/Button.css +0 -1
  17. package/dist/assets/ButtonGroup 4.css +0 -1
  18. package/dist/assets/ButtonGroup.css +0 -1
  19. package/dist/assets/Container 4.css +0 -1
  20. package/dist/assets/Container.css +0 -1
  21. package/dist/assets/Countdown 4.css +0 -1
  22. package/dist/assets/Countdown.css +0 -1
  23. package/dist/assets/Fifty 4.css +0 -1
  24. package/dist/assets/Fifty.css +0 -1
  25. package/dist/assets/FloatingWordsHero 4.css +0 -1
  26. package/dist/assets/FloatingWordsHero.css +0 -1
  27. package/dist/assets/Footer 4.css +0 -1
  28. package/dist/assets/Footer.css +0 -1
  29. package/dist/assets/GenericOverlay 4.css +0 -1
  30. package/dist/assets/GridGallery 4.css +0 -1
  31. package/dist/assets/GridGallery.css +0 -1
  32. package/dist/assets/HorizontalScrollImages 4.css +0 -1
  33. package/dist/assets/HorizontalScrollImages.css +0 -1
  34. package/dist/assets/IconDetail 4.css +0 -1
  35. package/dist/assets/IconDetail.css +0 -1
  36. package/dist/assets/ImageTextBlock 4.css +0 -1
  37. package/dist/assets/ImageTextBlock.css +0 -1
  38. package/dist/assets/List.css +0 -1
  39. package/dist/assets/Map 4.css +0 -1
  40. package/dist/assets/Map.css +0 -1
  41. package/dist/assets/MenuButton 4.css +0 -1
  42. package/dist/assets/MenuButton.css +0 -1
  43. package/dist/assets/Navbar 4.css +0 -1
  44. package/dist/assets/Navbar.css +0 -1
  45. package/dist/assets/Note 4.css +0 -1
  46. package/dist/assets/Note.css +0 -1
  47. package/dist/assets/Overlay 4.css +0 -1
  48. package/dist/assets/Overlay.css +0 -1
  49. package/dist/assets/OverlayHero 4.css +0 -1
  50. package/dist/assets/PageContainer 4.css +0 -1
  51. package/dist/assets/PageContainer.css +0 -1
  52. package/dist/assets/ParallaxImageGrid 4.css +0 -1
  53. package/dist/assets/ParallaxImageGrid.css +0 -1
  54. package/dist/assets/PinnedImage 4.css +0 -1
  55. package/dist/assets/PromoGroup 4.css +0 -1
  56. package/dist/assets/PromoGroup.css +0 -1
  57. package/dist/assets/RSVPEmbed 4.css +0 -1
  58. package/dist/assets/Schedule 4.css +0 -1
  59. package/dist/assets/TextBlock 4.css +0 -1
  60. package/dist/assets/TextBlock.css +0 -1
  61. package/dist/assets/Timeline 3.css +0 -1
  62. package/dist/assets/Timeline.css +0 -1
  63. package/dist/assets/Toolbar 3.css +0 -1
  64. package/dist/assets/Toolbar.css +0 -1
  65. package/dist/assets/icons/checkmark.svg +0 -3
  66. package/dist/components/Accordion/Accordion.js +0 -33
  67. package/dist/components/Accordion/AccordionItem.js +0 -8
  68. package/dist/components/Background/Background.js +0 -59
  69. package/dist/components/Banner/Banner.js +0 -23
  70. package/dist/components/Button/Button.js +0 -44
  71. package/dist/components/ButtonGroup/ButtonGroup.js +0 -11
  72. package/dist/components/Countdown/Countdown.js +0 -41
  73. package/dist/components/Fifty/Fifty.js +0 -55
  74. package/dist/components/Fifty/Fifty.stories.js +0 -32
  75. package/dist/components/FloatingWordsHero/FloatingWordsHero.js +0 -60
  76. package/dist/components/IconDetail/IconDetail.js +0 -14
  77. package/dist/components/ImageTextBlock/ImageTextBlock.js +0 -36
  78. package/dist/components/Navbar/Navbar.js +0 -98
  79. package/dist/components/Note/Note.js +0 -30
  80. package/dist/components/OverlayHero/OverlayHero.js +0 -67
  81. package/dist/components/PageContainer/PageContainer.js +0 -39
  82. package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +0 -92
  83. package/dist/components/PromoGroup/PromoGroup.js +0 -107
  84. package/dist/components/Schedule/Schedule.js +0 -24
  85. package/dist/components/Spacer/Spacer.js +0 -6
  86. package/dist/components/TextBlock/TextBlock.js +0 -27
  87. package/dist/components/Timeline/Timeline.js +0 -54
  88. package/dist/hooks/useActiveSection 4.js +0 -27
  89. package/dist/hooks/useActiveSection.js +0 -27
  90. package/dist/hooks/useFadeIn 4.js +0 -52
  91. package/dist/hooks/useFadeIn.js +0 -52
  92. package/dist/hooks/useImageReveal 4.js +0 -55
  93. package/dist/hooks/useImageReveal.js +0 -55
  94. package/dist/hooks/useNavColor 4.js +0 -15
  95. package/dist/hooks/useNavColor.js +0 -15
  96. package/dist/hooks/useRepeatable 4.js +0 -32
  97. package/dist/hooks/useRepeatable.js +0 -32
  98. package/dist/hooks/useResize 4.js +0 -23
  99. package/dist/hooks/useResize.js +0 -23
  100. package/dist/hooks/useResponsive 4.js +0 -15
  101. package/dist/hooks/useResponsive.js +0 -15
  102. package/dist/hooks/useReveal 4.js +0 -38
  103. package/dist/hooks/useReveal.js +0 -38
  104. package/dist/hooks/useStagger 4.js +0 -43
  105. package/dist/hooks/useStagger.js +0 -43
  106. package/dist/index 4.js +0 -50
  107. package/dist/index-B2JRaoNz 4.js +0 -48
  108. package/dist/index-B2JRaoNz.js +0 -48
  109. package/dist/index-BmTo-IS6 4.js +0 -2018
  110. package/dist/index-BmTo-IS6.js +0 -2018
  111. package/dist/index-DyQs5aC7 4.js +0 -388
  112. package/dist/index-DyQs5aC7.js +0 -388
  113. package/dist/index-K0WrPJ_C 4.js +0 -29
  114. package/dist/index-K0WrPJ_C.js +0 -29
  115. package/dist/index.js +0 -50
  116. package/dist/index.modern-DPbS1w7M 4.js +0 -1443
  117. package/dist/index.modern-DPbS1w7M.js +0 -1443
  118. package/dist/presets/animations 4.js +0 -24
  119. package/dist/presets/animations.js +0 -24
  120. package/dist/utils/breakpoints 4.js +0 -8
  121. package/dist/utils/breakpoints.js +0 -8
  122. package/dist/utils/gsapSetup 4.js +0 -8
  123. package/dist/utils/gsapSetup.js +0 -8
  124. package/dist/utils/parse 4.js +0 -12
  125. package/dist/utils/parse.js +0 -12
  126. /package/dist/components/{GenericOverlay → GenericOverlay 6}/GenericOverlay.js +0 -0
  127. /package/dist/components/{PinnedImage → PinnedImage 8}/PinnedImage.js +0 -0
@@ -1,23 +0,0 @@
1
- "use client";
2
- import { jsxs as b, jsx as e } from "react/jsx-runtime";
3
- import "../../hooks/useFadeIn.js";
4
- import _ from "../Button/Button.js";
5
- import { Fragment as p } from "react";
6
- import { useReveal as a } from "../../hooks/useReveal.js";
7
- import { appleReveal as n } from "../../presets/animations.js";
8
- import '../../assets/Banner.css';const f = "_banner_1cxb9_1", v = "_header_1cxb9_8", h = "_body_1cxb9_60", x = "_ctas_1cxb9_104", r = {
9
- banner: f,
10
- header: v,
11
- body: h,
12
- ctas: x
13
- }, g = ({ header: s, body: o, ctas: t }) => {
14
- const c = a(n), d = a({ ...n, delay: 0.2 }), l = a({ ...n, delay: 0.4 });
15
- return /* @__PURE__ */ b("div", { className: r.banner, children: [
16
- s && /* @__PURE__ */ e("div", { className: r.header, ref: c, children: s }),
17
- o && /* @__PURE__ */ e("div", { className: r.body, ref: d, children: o }),
18
- t && /* @__PURE__ */ e("div", { className: r.ctas, ref: l, children: t.map((m, i) => /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(_, { ...m }) }, `button-${i}`)) })
19
- ] });
20
- };
21
- export {
22
- g as default
23
- };
@@ -1,44 +0,0 @@
1
- "use client";
2
- import { jsxs as u, jsx as k } from "react/jsx-runtime";
3
- import { c as f } from "../../index-B2JRaoNz.js";
4
- import '../../assets/Button.css';const x = "_button_1xkig_1", b = "_hollow_1xkig_110", g = "_filled_1xkig_113", h = "_link_1xkig_149", l = {
5
- button: x,
6
- hollow: b,
7
- filled: g,
8
- link: h
9
- }, N = ({
10
- children: i,
11
- fn: o,
12
- href: t,
13
- target: c,
14
- hollow: r = !1,
15
- variation: s = "color-primary-dark",
16
- textDecoration: _,
17
- label: d,
18
- value: n,
19
- icon: a,
20
- onClick: e,
21
- className: m
22
- }) => /* @__PURE__ */ u(
23
- t || n ? "a" : "button",
24
- {
25
- href: t || n,
26
- onClick: o || e ? o || e : null,
27
- target: c,
28
- className: f(
29
- l.button,
30
- r ? l.hollow : l.filled,
31
- l[s],
32
- m
33
- ),
34
- style: { textDecoration: _ },
35
- "data-color": s,
36
- children: [
37
- i || d,
38
- a && /* @__PURE__ */ k("span", { className: "material-symbols-outlined", children: a })
39
- ]
40
- }
41
- );
42
- export {
43
- N as default
44
- };
@@ -1,11 +0,0 @@
1
- "use client";
2
- import { jsx as u } from "react/jsx-runtime";
3
- import { createElement as e } from "react";
4
- import m from "../Button/Button.js";
5
- import { c as n } from "../../index-B2JRaoNz.js";
6
- import '../../assets/ButtonGroup.css';const p = "_buttonGroup_8k163_1", a = {
7
- buttonGroup: p
8
- }, G = ({ ctas: t, className: o }) => /* @__PURE__ */ u("div", { className: n(a.buttonGroup, o), children: t.map((r, s) => /* @__PURE__ */ e(m, { ...r, key: `cta-${s}` })) });
9
- export {
10
- G as default
11
- };
@@ -1,41 +0,0 @@
1
- "use client";
2
- import { jsx as n, jsxs as f } from "react/jsx-runtime";
3
- import { useState as d, useEffect as m } from "react";
4
- import { useStagger as p } from "../../hooks/useStagger.js";
5
- import { appleStagger as o } from "../../presets/animations.js";
6
- import '../../assets/Countdown.css';const h = "_countdown_45yvm_1", g = "_block_45yvm_12", r = {
7
- countdown: h,
8
- block: g
9
- }, _ = ({ targetDate: s }) => {
10
- const c = () => {
11
- const t = new Date(s) - /* @__PURE__ */ new Date();
12
- return t <= 0 ? 0 : {
13
- days: Math.floor(t / 864e5),
14
- hours: Math.floor(t / 36e5 % 24),
15
- minutes: Math.floor(t / 1e3 / 60 % 60),
16
- seconds: Math.floor(t / 1e3 % 60)
17
- };
18
- }, [e, l] = d(void 0), a = ["days", "hours", "minutes", "seconds"], i = p(
19
- `.${r.block}`,
20
- o.from,
21
- {
22
- ...o.to,
23
- stagger: o.stagger,
24
- scrollTrigger: { start: o.start }
25
- },
26
- typeof e == "object"
27
- );
28
- return m(() => {
29
- l(c());
30
- const t = setInterval(() => {
31
- l(c());
32
- }, 1e3);
33
- return () => clearInterval(t);
34
- }, [s]), e === void 0 || e === 0 ? null : /* @__PURE__ */ n("div", { className: r.countdown, ref: i, children: e && a.map((t, u) => /* @__PURE__ */ f("div", { className: r.block, children: [
35
- /* @__PURE__ */ n("span", { children: e[t] }),
36
- /* @__PURE__ */ n("span", { children: t })
37
- ] }, `countdown-${u}`)) });
38
- };
39
- export {
40
- _ as default
41
- };
@@ -1,55 +0,0 @@
1
- "use client";
2
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
3
- import F from "../Button/Button.js";
4
- import { c as f } from "../../index-B2JRaoNz.js";
5
- import { Fragment as d } from "react";
6
- import j from "../IconDetail/IconDetail.js";
7
- import I from "../../utils/parse.js";
8
- import { useReveal as s } from "../../hooks/useReveal.js";
9
- import { appleReveal as r } from "../../presets/animations.js";
10
- import { useImageReveal as b } from "../../hooks/useImageReveal.js";
11
- import '../../assets/Fifty.css';const B = "_content_1x7u4_2", D = "_fifty_1x7u4_49", P = "_contentFirst_1x7u4_86", k = "_reverse_1x7u4_90", q = "_image_1x7u4_93", w = "_text_1x7u4_161", z = "_ctas_1x7u4_219", A = "_details_1x7u4_237", t = {
12
- content: B,
13
- fifty: D,
14
- contentFirst: P,
15
- reverse: k,
16
- image: q,
17
- text: w,
18
- ctas: z,
19
- details: A
20
- }, Q = ({
21
- heading: i,
22
- body: n,
23
- ctas: a,
24
- color: _,
25
- image: v,
26
- reverse: p,
27
- pos: u,
28
- details: l,
29
- contentFirst: x = !0
30
- }) => {
31
- const R = b({ duration: 1.4 }), h = s(r), y = s({ ...r, delay: 0.2 }), g = s({ ...r, delay: 0.4 }), N = s({ ...r, delay: 0.4 });
32
- return /* @__PURE__ */ m(
33
- "div",
34
- {
35
- className: f(
36
- t.fifty,
37
- !!p && t.reverse,
38
- x && t.contentFirst
39
- ),
40
- "data-color": _,
41
- children: [
42
- /* @__PURE__ */ e("div", { className: f(t.content), children: /* @__PURE__ */ m("div", { className: t.text, children: [
43
- i && /* @__PURE__ */ e("h2", { ref: h, children: i }),
44
- n && /* @__PURE__ */ e("div", { ref: y, children: I(n) }),
45
- a && !!a.length && /* @__PURE__ */ e("div", { className: t.ctas, ref: g, children: a.map((o, c) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(F, { ...o }) }, c)) }),
46
- /* @__PURE__ */ e("div", { className: t.details, ref: N, children: l && l.map((o, c) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(j, { ...o }) }, c)) })
47
- ] }) }),
48
- /* @__PURE__ */ e("div", { className: t.image, ref: R, children: /* @__PURE__ */ e("img", { src: v, style: { objectPosition: u } }) })
49
- ]
50
- }
51
- );
52
- };
53
- export {
54
- Q as default
55
- };
@@ -1,32 +0,0 @@
1
- "use client";
2
- import o from "./Fifty.js";
3
- const s = {
4
- title: "Components/Fifty",
5
- component: o,
6
- parameters: {
7
- layout: "centered"
8
- },
9
- tags: ["autodocs"]
10
- }, r = {
11
- args: {
12
- heading: "Museum Events",
13
- body: "The museum is funded through donations, sponsorships, and grants. Find out ways you can help the museum from day-to-day operations to long term success",
14
- color: "color-primary-dark",
15
- cta: { children: "Click Here", color: "color-primary-dark" },
16
- image: "https://placehold.co/600x600/png"
17
- }
18
- }, t = {
19
- args: {
20
- heading: "Museum Events",
21
- body: "The museum is funded through donations, sponsorships, and grants. Find out ways you can help the museum from day-to-day operations to long term success",
22
- reverse: !0,
23
- color: "color-secondary",
24
- cta: { children: "Click Here", color: "color-primary-dark" },
25
- image: "https://placehold.co/600x600/png"
26
- }
27
- };
28
- export {
29
- r as Default,
30
- t as Reverse,
31
- s as default
32
- };
@@ -1,60 +0,0 @@
1
- "use client";
2
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
3
- import a from "../../utils/parse.js";
4
- import "../../index-B2JRaoNz.js";
5
- import w from "../ButtonGroup/ButtonGroup.js";
6
- import b from "../../hooks/useResize.js";
7
- import { useRef as u, useEffect as v } from "react";
8
- import { g as o } from "../../index-BmTo-IS6.js";
9
- import { S as z } from "../../ScrollTrigger-6HnikosL.js";
10
- import '../../assets/FloatingWordsHero.css';const N = "_hero_4e3sz_1", k = "_buttonGroup_4e3sz_28", x = "_heroBg_4e3sz_32", B = "_content_4e3sz_40", C = "_title_4e3sz_48", R = "_subtitle_4e3sz_62", G = "_arrow_4e3sz_80", S = "_arrowCircle_4e3sz_91", r = {
11
- hero: N,
12
- buttonGroup: k,
13
- heroBg: x,
14
- content: B,
15
- title: C,
16
- subtitle: R,
17
- arrow: G,
18
- arrowCircle: S
19
- };
20
- o.registerPlugin(z);
21
- const $ = ({ image: d, pos: m, eyebrow: s, title: h, subtitle: n, cta: y, contentPos: W, ctas: c, scrollToId: p }) => {
22
- const { innerWidth: j, innerHeight: I } = b(), t = u(null), i = u(null), g = () => {
23
- document.getElementById(p).scrollIntoView({ behavior: "smooth" });
24
- };
25
- return v(() => {
26
- if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
27
- const f = o.context(() => {
28
- o.to(i.current, {
29
- y: "15%",
30
- ease: "none",
31
- scrollTrigger: {
32
- trigger: t.current,
33
- start: "top top",
34
- end: "bottom top",
35
- scrub: !0
36
- }
37
- });
38
- }, t);
39
- return () => f.revert();
40
- }, []), /* @__PURE__ */ l("div", { ref: t, className: r.hero, children: [
41
- /* @__PURE__ */ e(
42
- "div",
43
- {
44
- ref: i,
45
- className: r.heroBg,
46
- style: { backgroundImage: `url(${d})`, backgroundPosition: m }
47
- }
48
- ),
49
- /* @__PURE__ */ l("div", { className: r.content, children: [
50
- s && /* @__PURE__ */ e("p", { className: r.eyebrow, children: s }),
51
- /* @__PURE__ */ e("h1", { className: r.title, children: a(h) }),
52
- n && /* @__PURE__ */ e("div", { className: r.subtitle, children: a(n) }),
53
- c && /* @__PURE__ */ e(w, { ctas: c, className: r.buttonGroup })
54
- ] }),
55
- /* @__PURE__ */ e("div", { className: r.arrow, onClick: g, children: /* @__PURE__ */ e("div", { className: r.arrowCircle, children: /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ e("path", { d: "M6 9l6 6 6-6" }) }) }) })
56
- ] });
57
- };
58
- export {
59
- $ as default
60
- };
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { jsxs as i, jsx as l } from "react/jsx-runtime";
3
- import o from "../../utils/parse.js";
4
- import { c } from "../../index-B2JRaoNz.js";
5
- import '../../assets/IconDetail.css';const r = "_detail_1tukt_1", n = "_label_1tukt_57", a = {
6
- detail: r,
7
- label: n
8
- }, b = ({ icon: s, text: e, href: t }) => /* @__PURE__ */ i(t ? "a" : "div", { className: a.detail, children: [
9
- /* @__PURE__ */ l("span", { className: c(a.icon, "material-symbols-outlined"), children: s }),
10
- /* @__PURE__ */ l("div", { className: a.label, children: o(e) })
11
- ] });
12
- export {
13
- b as default
14
- };
@@ -1,36 +0,0 @@
1
- "use client";
2
- import { jsx as e, jsxs as a, Fragment as f } from "react/jsx-runtime";
3
- import i from "../Button/Button.js";
4
- import { c as h } from "../../index-B2JRaoNz.js";
5
- import "../../hooks/useFadeIn.js";
6
- import p from "../../utils/parse.js";
7
- import { Children as g } from "react";
8
- import { appleReveal as b } from "../../presets/animations.js";
9
- import { useReveal as N } from "../../hooks/useReveal.js";
10
- import { useImageReveal as u } from "../../hooks/useImageReveal.js";
11
- import '../../assets/ImageTextBlock.css';const k = "_container_v69a4_1", R = "_reverse_v69a4_7", x = "_content_v69a4_11", y = "_header_v69a4_16", j = "_body_v69a4_69", I = "_ctas_v69a4_121", B = "_image_v69a4_125", F = "_block_v69a4_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: c, secondaryCta: r, reverse: l, children: n, imagePos: _ }) => {
21
- const v = u(), d = N({ ...b, delay: 0.2 });
22
- return /* @__PURE__ */ e("div", { className: h(o.block, l && o.reverse), children: /* @__PURE__ */ a("div", { className: o.container, children: [
23
- /* @__PURE__ */ e("div", { className: o.image, ref: v, children: /* @__PURE__ */ e("img", { src: m, style: { objectPosition: _ } }) }),
24
- /* @__PURE__ */ a("div", { className: o.content, ref: d, children: [
25
- s && /* @__PURE__ */ e("h2", { className: o.header, children: s }),
26
- t && /* @__PURE__ */ e("div", { className: o.body, children: p(t) }),
27
- g.count(n) > 0 ? n : /* @__PURE__ */ e(f, { children: /* @__PURE__ */ a("div", { className: o.ctas, children: [
28
- c && /* @__PURE__ */ e(i, { ...c }),
29
- r && /* @__PURE__ */ e(i, { ...r })
30
- ] }) })
31
- ] })
32
- ] }) });
33
- };
34
- export {
35
- G as default
36
- };
@@ -1,98 +0,0 @@
1
- "use client";
2
- import { jsxs as u, jsx as n } from "react/jsx-runtime";
3
- import { useRef as h, useState as l, useEffect as f, cloneElement as k } from "react";
4
- import w from "../MenuButton/MenuButton.js";
5
- import { r as N } from "../../index-DyQs5aC7.js";
6
- import D from "../Overlay/Overlay.js";
7
- import x from "../Container/Container.js";
8
- import { c as E } from "../../index-B2JRaoNz.js";
9
- import '../../assets/Navbar.css';const y = "_navbar_1ue9a_1", O = "_hide_1ue9a_19", Y = "_background_1ue9a_22", S = "_navbar__link_1ue9a_22", $ = "_navbar__logo_1ue9a_26", j = "_component_1ue9a_34", B = "_navbar__links_1ue9a_38", C = "_navbar__mobileDialog_1ue9a_95", F = "_open_1ue9a_107", L = "_navbar__toggle_1ue9a_118", e = {
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: b,
27
- position: d = "absolute"
28
- }) => {
29
- const o = h(0), [R, v] = l("up"), [r, _] = l(!1), [m, p] = l(!1);
30
- f(() => (window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i)), []);
31
- const i = () => {
32
- p(window.scrollY > 30);
33
- const a = window.scrollY;
34
- a - o.current !== 0 && v(a > o.current ? "down" : "up"), o.current = a > 0 ? a : 0;
35
- };
36
- return /* @__PURE__ */ u(
37
- "nav",
38
- {
39
- className: E(
40
- e.navbar,
41
- m && e.background,
42
- r && e.open,
43
- // (direction === "down" || hidden) && styles.hide
44
- b && e.hide
45
- ),
46
- style: r ? {} : { position: d },
47
- children: [
48
- /* @__PURE__ */ u("a", { className: e.navbar__logo, href: "/", children: [
49
- s && /* @__PURE__ */ n("img", { src: s }),
50
- t && k(t, {
51
- className: e.component
52
- })
53
- ] }),
54
- /* @__PURE__ */ n("div", { className: e.navbar__toggle, children: /* @__PURE__ */ n(
55
- w,
56
- {
57
- clickFn: () => _(!r),
58
- isOpen: r,
59
- theme: "color-white"
60
- }
61
- ) }),
62
- /* @__PURE__ */ n("div", { className: e.navbar__links, children: c.map((a, g) => /* @__PURE__ */ n(
63
- "a",
64
- {
65
- className: `${e.navbar__link}`,
66
- href: a.value,
67
- children: a.label
68
- },
69
- `navbar-d-${a.value}`
70
- )) }),
71
- r && N.createPortal(
72
- /* @__PURE__ */ n(
73
- D,
74
- {
75
- closeFn: () => _(!1),
76
- hideClose: !0,
77
- background: M.white,
78
- fullscreen: !0,
79
- children: /* @__PURE__ */ n(x, { color: "color-white", children: /* @__PURE__ */ n("div", { className: e.navbar__mobileDialog, children: c.map((a, g) => /* @__PURE__ */ n(
80
- "a",
81
- {
82
- className: e.navbar__link,
83
- href: a.value,
84
- children: a.label
85
- },
86
- `m-${a.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 s } from "react/jsx-runtime";
3
- import { useReveal as m } from "../../hooks/useReveal.js";
4
- import { appleReveal as i } from "../../presets/animations.js";
5
- import _ from "../../utils/parse.js";
6
- import '../../assets/Note.css';const p = "_salutation_vtem0_2", d = "_opener_vtem0_48", u = "_from_vtem0_53", f = "_body_vtem0_100", v = "_close_vtem0_152", N = "_signature_vtem0_199", e = {
7
- salutation: p,
8
- opener: d,
9
- from: u,
10
- body: f,
11
- close: v,
12
- signature: N
13
- }, x = ({ salutation: t, from: a, body: n, signature: r, close: c }) => {
14
- const l = m(i);
15
- return /* @__PURE__ */ o("div", { className: e.note, ref: l, children: [
16
- /* @__PURE__ */ o("p", { className: e.salutation, children: [
17
- /* @__PURE__ */ o("span", { className: e.opener, children: [
18
- t,
19
- " "
20
- ] }),
21
- /* @__PURE__ */ s("span", { className: e.from, children: a })
22
- ] }),
23
- /* @__PURE__ */ s("div", { className: e.body, children: _(n) }),
24
- /* @__PURE__ */ s("p", { className: e.close, children: c }),
25
- /* @__PURE__ */ s("p", { className: e.signature, children: r })
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 N } from "react";
5
- import { g as r } from "../../index-BmTo-IS6.js";
6
- import { S as B } from "../../ScrollTrigger-6HnikosL.js";
7
- import T from "../../hooks/useResize.js";
8
- import '../../assets/OverlayHero.css';const S = "_hero_m6nvt_5", j = "_heroBg_m6nvt_34", k = "_overlay_m6nvt_42", E = "_eyebrow_m6nvt_69", P = "_title_m6nvt_76", W = "_subtitle_m6nvt_94", t = {
9
- hero: S,
10
- heroBg: j,
11
- overlay: k,
12
- eyebrow: E,
13
- title: P,
14
- subtitle: W
15
- };
16
- r.registerPlugin(B);
17
- const q = ({ text: z, image: d, pos: g, eyebrow: n, title: h, subtitle: c }) => {
18
- const { innerWidth: v } = T(), s = e(null), l = e(), a = e(null), i = e(null), u = e(null), m = e(null);
19
- return N(() => {
20
- const _ = s.current, b = a.current, w = window.matchMedia("(prefers-reduced-motion: reduce)").matches, f = l.current;
21
- if (w || v < 390) return;
22
- const R = r.context(() => {
23
- r.fromTo(
24
- b,
25
- { opacity: 0 },
26
- { opacity: 1, duration: 1.2, ease: "power2.out" }
27
- );
28
- const x = [i.current, u.current, m.current].filter(Boolean);
29
- r.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
- ), r.fromTo(
41
- f,
42
- { scale: 1.08, opacity: 0 },
43
- { scale: 1, opacity: 1, duration: 2, ease: "power1.out" }
44
- ), r.to(f, {
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: t.hero, children: [
57
- /* @__PURE__ */ o("div", { ref: l, className: t.heroBg, style: { backgroundImage: `url(${d})`, backgroundPosition: g, opacity: 0 } }),
58
- /* @__PURE__ */ p("div", { ref: a, className: t.overlay, style: { opacity: 0 }, children: [
59
- n && /* @__PURE__ */ o("p", { ref: i, className: t.eyebrow, children: n }),
60
- /* @__PURE__ */ o("h1", { ref: u, className: t.title, children: y(h) }),
61
- c && /* @__PURE__ */ o("div", { ref: m, className: t.subtitle, children: y(c) })
62
- ] })
63
- ] });
64
- };
65
- export {
66
- q 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_1mlm4_2", m = "_removePadding_1mlm4_55", l = "_container__body_1mlm4_59", y = "_container__copy_1mlm4_74", n = {
4
- container__inner: s,
5
- removePadding: m,
6
- container__body: l,
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
- };