@courtneyring/components-library 1.0.31 → 1.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/dist/AccordionItem-CDN4L4a7.js +40 -0
  2. package/dist/assets/AccordionItem.css +1 -1
  3. package/dist/assets/Background.css +1 -1
  4. package/dist/assets/Banner.css +1 -1
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/Container.css +1 -1
  7. package/dist/assets/Countdown.css +1 -1
  8. package/dist/assets/Fifty.css +1 -1
  9. package/dist/assets/FloatingWordsHero.css +1 -1
  10. package/dist/assets/Footer.css +1 -1
  11. package/dist/assets/GenericOverlay.css +1 -1
  12. package/dist/assets/IconDetail.css +1 -1
  13. package/dist/assets/ImageTextBlock.css +1 -1
  14. package/dist/assets/List.css +1 -1
  15. package/dist/assets/Map.css +1 -1
  16. package/dist/assets/MenuButton.css +1 -1
  17. package/dist/assets/Navbar.css +1 -1
  18. package/dist/assets/Note.css +1 -1
  19. package/dist/assets/OverlayHero.css +1 -1
  20. package/dist/assets/PageContainer.css +1 -1
  21. package/dist/assets/PinnedImage.css +1 -1
  22. package/dist/assets/PromoGroup.css +1 -1
  23. package/dist/assets/RSVPEmbed.css +1 -1
  24. package/dist/assets/Schedule.css +1 -1
  25. package/dist/assets/TextBlock.css +1 -1
  26. package/dist/components/Accordion/Accordion.js +21 -14
  27. package/dist/components/Accordion/AccordionItem.js +1 -1
  28. package/dist/components/Background/Background.js +6 -6
  29. package/dist/components/Banner/Banner.js +15 -15
  30. package/dist/components/Button/Button.js +29 -29
  31. package/dist/components/ButtonGroup/ButtonGroup.js +5 -4
  32. package/dist/components/Container/Container.js +13 -11
  33. package/dist/components/Countdown/Countdown.js +1 -1
  34. package/dist/components/Fifty/Fifty.js +24 -23
  35. package/dist/components/FloatingWordsHero/FloatingWordsHero.js +55 -25
  36. package/dist/components/Footer/Footer.js +6 -6
  37. package/dist/components/GenericOverlay/GenericOverlay.js +14 -14
  38. package/dist/components/IconDetail/IconDetail.js +3 -3
  39. package/dist/components/ImageTextBlock/ImageTextBlock.js +24 -23
  40. package/dist/components/List/List.js +12 -12
  41. package/dist/components/Map/Map.js +25 -23
  42. package/dist/components/MenuButton/MenuButton.js +21 -21
  43. package/dist/components/Navbar/Navbar.js +40 -40
  44. package/dist/components/Note/Note.js +14 -14
  45. package/dist/components/OverlayHero/OverlayHero.js +63 -21
  46. package/dist/components/PageContainer/PageContainer.js +6 -6
  47. package/dist/components/PinnedImage/PinnedImage.js +36 -36
  48. package/dist/components/PromoGroup/PromoGroup.js +46 -44
  49. package/dist/components/RSVPEmbed/RSVPEmbed.js +3 -3
  50. package/dist/components/Schedule/Schedule.js +12 -12
  51. package/dist/components/TextBlock/TextBlock.js +18 -18
  52. package/dist/components/Toolbar/Toolbar.js +16 -16
  53. package/dist/hooks/useImageReveal 4.js +55 -0
  54. package/dist/hooks/useImageReveal.js +55 -0
  55. package/dist/hooks/{useResize 2.js → useResize 4.js } +11 -7
  56. package/dist/hooks/useResize.js +11 -7
  57. package/dist/index 2.js +50 -0
  58. package/dist/index-BmTo-IS6 4.js +2018 -0
  59. package/dist/index-DyQs5aC7 4.js +388 -0
  60. package/dist/index-K0WrPJ_C 4.js +29 -0
  61. package/dist/index.modern-DPbS1w7M 4.js +1443 -0
  62. package/dist/presets/{animations 3.js → animations 4.js } +7 -2
  63. package/dist/presets/animations.js +7 -2
  64. package/package.json +3 -2
  65. package/src/styles/_fonts.scss +4 -7
  66. package/src/styles/_reveal.scss +93 -0
  67. package/src/styles/_sizes.scss +1 -0
  68. package/dist/AccordionItem-BlVXPxrh.js +0 -40
  69. /package/dist/hooks/{useActiveSection 2.js → useActiveSection 4.js} +0 -0
  70. /package/dist/hooks/{useFadeIn 2.js → useFadeIn 4.js} +0 -0
  71. /package/dist/hooks/{useNavColor 2.js → useNavColor 4.js} +0 -0
  72. /package/dist/hooks/{useRepeatable 2.js → useRepeatable 4.js} +0 -0
  73. /package/dist/hooks/{useResponsive 2.js → useResponsive 4.js} +0 -0
  74. /package/dist/hooks/{useReveal 2.js → useReveal 4.js} +0 -0
  75. /package/dist/hooks/{useStagger 2.js → useStagger 4.js} +0 -0
  76. /package/dist/{index-B2JRaoNz 2.js → index-B2JRaoNz 4.js} +0 -0
  77. /package/dist/utils/{breakpoints 3.js → breakpoints 4.js} +0 -0
  78. /package/dist/utils/{gsapSetup 3.js → gsapSetup 4.js} +0 -0
  79. /package/dist/utils/{parse 3.js → parse 4.js} +0 -0
@@ -1,38 +1,38 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as n } from "react/jsx-runtime";
3
- import { c as o } from "../../index-B2JRaoNz.js";
4
- import '../../assets/MenuButton.css';const m = "_button_y3m6p_1", a = "_isOpen_y3m6p_6", c = "_top_y3m6p_6", _ = "_bottom_y3m6p_7", p = "_middle_y3m6p_25", d = "_line_y3m6p_33", t = {
5
- button: m,
6
- isOpen: a,
7
- top: c,
8
- bottom: _,
9
- middle: p,
10
- line: d
11
- }, u = ({ isOpen: l, clickFn: e, theme: s }) => /* @__PURE__ */ i(
2
+ import { jsxs as i, jsx as s } from "react/jsx-runtime";
3
+ import { c as t } from "../../index-B2JRaoNz.js";
4
+ import '../../assets/MenuButton.css';const a = "_button_zo0en_1", c = "_isOpen_zo0en_6", _ = "_top_zo0en_6", d = "_bottom_zo0en_7", m = "_middle_zo0en_25", p = "_line_zo0en_33", o = {
5
+ button: a,
6
+ isOpen: c,
7
+ top: _,
8
+ bottom: d,
9
+ middle: m,
10
+ line: p
11
+ }, u = ({ isOpen: e, clickFn: l, theme: n }) => /* @__PURE__ */ i(
12
12
  "button",
13
13
  {
14
- className: o(t.button, l && t.isOpen),
15
- onClick: e,
14
+ className: t(o.button, e && o.isOpen),
15
+ onClick: l,
16
16
  children: [
17
- /* @__PURE__ */ n(
17
+ /* @__PURE__ */ s(
18
18
  "div",
19
19
  {
20
- className: o(t.top, t.line),
21
- "data-color": s
20
+ className: t(o.top, o.line),
21
+ "data-color": n
22
22
  }
23
23
  ),
24
- /* @__PURE__ */ n(
24
+ /* @__PURE__ */ s(
25
25
  "div",
26
26
  {
27
- className: o(t.middle, t.line),
28
- "data-color": s
27
+ className: t(o.middle, o.line),
28
+ "data-color": n
29
29
  }
30
30
  ),
31
- /* @__PURE__ */ n(
31
+ /* @__PURE__ */ s(
32
32
  "div",
33
33
  {
34
- className: o(t.bottom, t.line),
35
- "data-color": s
34
+ className: t(o.bottom, o.line),
35
+ "data-color": n
36
36
  }
37
37
  )
38
38
  ]
@@ -1,21 +1,21 @@
1
1
  "use client";
2
- import { jsxs as b, jsx as e } from "react/jsx-runtime";
3
- import { useRef as p, useState as l, useEffect as g, cloneElement as w } from "react";
4
- import k from "../MenuButton/MenuButton.js";
2
+ import { jsxs as b, jsx as n } from "react/jsx-runtime";
3
+ import { useRef as g, useState as l, useEffect as w, cloneElement as h } from "react";
4
+ import f from "../MenuButton/MenuButton.js";
5
5
  import { r as N } from "../../index-DyQs5aC7.js";
6
6
  import D from "../Overlay/Overlay.js";
7
7
  import x from "../Container/Container.js";
8
8
  import { c as E } from "../../index-B2JRaoNz.js";
9
- import '../../assets/Navbar.css';const y = "_navbar_hb3wf_1", O = "_hide_hb3wf_4", Y = "_background_hb3wf_27", S = "_open_hb3wf_27", $ = "_navbar__link_hb3wf_31", j = "_navbar__logo_hb3wf_35", B = "_component_hb3wf_48", C = "_navbar__links_hb3wf_52", F = "_navbar__mobileDialog_hb3wf_110", L = "_navbar__toggle_hb3wf_123", n = {
9
+ import '../../assets/Navbar.css';const y = "_navbar_1okw8_1", O = "_hide_1okw8_19", Y = "_background_1okw8_22", S = "_navbar__link_1okw8_22", $ = "_navbar__logo_1okw8_26", j = "_component_1okw8_34", B = "_navbar__links_1okw8_38", C = "_navbar__mobileDialog_1okw8_95", F = "_open_1okw8_107", L = "_navbar__toggle_1okw8_118", a = {
10
10
  navbar: y,
11
11
  hide: O,
12
12
  background: Y,
13
- open: S,
14
- navbar__link: $,
15
- navbar__logo: j,
16
- component: B,
17
- navbar__links: C,
18
- navbar__mobileDialog: F,
13
+ navbar__link: S,
14
+ navbar__logo: $,
15
+ component: j,
16
+ navbar__links: B,
17
+ navbar__mobileDialog: C,
18
+ open: F,
19
19
  navbar__toggle: L
20
20
  }, M = {}, Q = ({
21
21
  links: c,
@@ -26,64 +26,64 @@ import '../../assets/Navbar.css';const y = "_navbar_hb3wf_1", O = "_hide_hb3wf_4
26
26
  hidden: d,
27
27
  position: v = "absolute"
28
28
  }) => {
29
- const o = p(0), [R, m] = l("up"), [r, _] = l(!1), [u, h] = l(!1);
30
- g(() => (window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i)), []);
29
+ const r = g(0), [R, m] = l("up"), [e, _] = l(!1), [u, p] = l(!1);
30
+ w(() => (window.addEventListener("scroll", i), () => window.removeEventListener("scroll", i)), []);
31
31
  const i = () => {
32
- h(window.scrollY > 30);
33
- const a = window.scrollY;
34
- a - o.current !== 0 && m(a > o.current ? "down" : "up"), o.current = a > 0 ? a : 0;
32
+ p(window.scrollY > 30);
33
+ const o = window.scrollY;
34
+ o - r.current !== 0 && m(o > r.current ? "down" : "up"), r.current = o > 0 ? o : 0;
35
35
  };
36
36
  return /* @__PURE__ */ b(
37
37
  "nav",
38
38
  {
39
39
  className: E(
40
- n.navbar,
41
- u && n.background,
42
- r && n.open,
40
+ a.navbar,
41
+ u && a.background,
42
+ e && a.open,
43
43
  // (direction === "down" || hidden) && styles.hide
44
- d && n.hide
44
+ d && a.hide
45
45
  ),
46
- style: r ? {} : { position: v },
46
+ style: e ? {} : { position: v },
47
47
  children: [
48
- /* @__PURE__ */ b("a", { className: n.navbar__logo, href: "/", children: [
49
- s && /* @__PURE__ */ e("img", { src: s }),
50
- t && w(t, {
51
- className: n.component
48
+ /* @__PURE__ */ b("a", { className: a.navbar__logo, href: "/", children: [
49
+ s && /* @__PURE__ */ n("img", { src: s }),
50
+ t && h(t, {
51
+ className: a.component
52
52
  })
53
53
  ] }),
54
- /* @__PURE__ */ e("div", { className: n.navbar__toggle, children: /* @__PURE__ */ e(
55
- k,
54
+ /* @__PURE__ */ n("div", { className: a.navbar__toggle, children: /* @__PURE__ */ n(
55
+ f,
56
56
  {
57
- clickFn: () => _(!r),
58
- isOpen: r,
57
+ clickFn: () => _(!e),
58
+ isOpen: e,
59
59
  theme: "color-white"
60
60
  }
61
61
  ) }),
62
- /* @__PURE__ */ e("div", { className: n.navbar__links, children: c.map((a, f) => /* @__PURE__ */ e(
62
+ /* @__PURE__ */ n("div", { className: a.navbar__links, children: c.map((o, k) => /* @__PURE__ */ n(
63
63
  "a",
64
64
  {
65
- className: `${n.navbar__link}`,
66
- href: a.value,
67
- children: a.label
65
+ className: `${a.navbar__link}`,
66
+ href: o.value,
67
+ children: o.label
68
68
  },
69
- `navbar-d-${a.value}`
69
+ `navbar-d-${o.value}`
70
70
  )) }),
71
- r && N.createPortal(
72
- /* @__PURE__ */ e(
71
+ e && N.createPortal(
72
+ /* @__PURE__ */ n(
73
73
  D,
74
74
  {
75
75
  closeFn: () => _(!1),
76
76
  hideClose: !0,
77
77
  background: M.white,
78
78
  fullscreen: !0,
79
- children: /* @__PURE__ */ e(x, { color: "color-white", children: /* @__PURE__ */ e("div", { className: n.navbar__mobileDialog, children: c.map((a, f) => /* @__PURE__ */ e(
79
+ children: /* @__PURE__ */ n(x, { color: "color-white", children: /* @__PURE__ */ n("div", { className: a.navbar__mobileDialog, children: c.map((o, k) => /* @__PURE__ */ n(
80
80
  "a",
81
81
  {
82
- className: n.navbar__link,
83
- href: a.value,
84
- children: a.label
82
+ className: a.navbar__link,
83
+ href: o.value,
84
+ children: o.label
85
85
  },
86
- `m-${a.value}`
86
+ `m-${o.value}`
87
87
  )) }) })
88
88
  }
89
89
  ),
@@ -1,30 +1,30 @@
1
1
  "use client";
2
- import { jsxs as e, jsx as s } from "react/jsx-runtime";
2
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
3
3
  import { useReveal as i } from "../../hooks/useReveal.js";
4
4
  import { appleReveal as m } from "../../presets/animations.js";
5
5
  import _ from "../../utils/parse.js";
6
- import '../../assets/Note.css';const p = "_salutation_tq8oj_2", d = "_opener_tq8oj_49", u = "_from_tq8oj_54", f = "_body_tq8oj_96", j = "_close_tq8oj_149", N = "_signature_tq8oj_197", o = {
6
+ import '../../assets/Note.css';const p = "_salutation_1azns_2", d = "_opener_1azns_48", u = "_from_1azns_53", f = "_body_1azns_95", N = "_close_1azns_147", h = "_signature_1azns_194", s = {
7
7
  salutation: p,
8
8
  opener: d,
9
9
  from: u,
10
10
  body: f,
11
- close: j,
12
- signature: N
13
- }, g = ({ salutation: t, from: a, body: n, signature: r, close: c }) => {
11
+ close: N,
12
+ signature: h
13
+ }, v = ({ salutation: o, from: n, body: r, signature: t, close: c }) => {
14
14
  const l = i(m);
15
- return /* @__PURE__ */ e("div", { className: o.note, ref: l, children: [
16
- /* @__PURE__ */ e("p", { className: o.salutation, children: [
17
- /* @__PURE__ */ e("span", { className: o.opener, children: [
18
- t,
15
+ return /* @__PURE__ */ a("div", { className: s.note, ref: l, children: [
16
+ /* @__PURE__ */ a("p", { className: s.salutation, children: [
17
+ /* @__PURE__ */ a("span", { className: s.opener, children: [
18
+ o,
19
19
  " "
20
20
  ] }),
21
- /* @__PURE__ */ s("span", { className: o.from, children: a })
21
+ /* @__PURE__ */ e("span", { className: s.from, children: n })
22
22
  ] }),
23
- /* @__PURE__ */ s("div", { className: o.body, children: _(n) }),
24
- /* @__PURE__ */ s("p", { className: o.close, children: c }),
25
- /* @__PURE__ */ s("p", { className: o.signature, children: r })
23
+ /* @__PURE__ */ e("div", { className: s.body, children: _(r) }),
24
+ /* @__PURE__ */ e("p", { className: s.close, children: c }),
25
+ /* @__PURE__ */ e("p", { className: s.signature, children: t })
26
26
  ] });
27
27
  };
28
28
  export {
29
- g as default
29
+ v as default
30
30
  };
@@ -1,25 +1,67 @@
1
1
  "use client";
2
- import { jsx as t, jsxs as c } from "react/jsx-runtime";
3
- import s from "../../utils/parse.js";
4
- import "react";
5
- import '../../assets/OverlayHero.css';const n = "_hero_18ghz_5", h = "_overlay_18ghz_17", _ = "_eyebrow_18ghz_46", d = "_title_18ghz_53", m = "_subtitle_18ghz_71", e = {
6
- hero: n,
7
- overlay: h,
8
- eyebrow: _,
9
- title: d,
10
- subtitle: m
11
- }, v = ({ text: y, image: l, pos: a, eyebrow: r, title: i, subtitle: o }) => /* @__PURE__ */ t(
12
- "div",
13
- {
14
- className: e.hero,
15
- style: { backgroundImage: `url(${l})`, backgroundPosition: a },
16
- children: /* @__PURE__ */ c("div", { className: e.overlay, children: [
17
- r && /* @__PURE__ */ t("p", { className: e.eyebrow, children: r }),
18
- /* @__PURE__ */ t("h1", { className: e.title, children: s(i) }),
19
- o && /* @__PURE__ */ t("div", { className: e.subtitle, children: s(o) })
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
- v as default
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 = "_container__inner_9nloq_2", l = "_removePadding_9nloq_47", m = "_container__body_9nloq_51", y = "_container__copy_9nloq_66", n = {
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: y
8
- }, P = ({
9
- heroImage: g,
7
+ container__copy: v
8
+ }, h = ({
9
+ heroImage: y,
10
10
  pageTitle: r,
11
11
  children: t,
12
- hero: h,
12
+ hero: b,
13
13
  copy: e,
14
14
  excludePadding: c = []
15
15
  }) => {
@@ -35,5 +35,5 @@ import '../../assets/PageContainer.css';const s = "_container__inner_9nloq_2", l
35
35
  ] });
36
36
  };
37
37
  export {
38
- P as default
38
+ h as default
39
39
  };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { jsxs as _, jsx as t } from "react/jsx-runtime";
3
- import { useRef as s, useEffect as k, createElement as x } from "react";
4
- import y from "../IconDetail/IconDetail.js";
5
- import { g as i } from "../../index-BmTo-IS6.js";
6
- import { S as q } from "../../ScrollTrigger-6HnikosL.js";
7
- import v from "../../utils/parse.js";
8
- import '../../assets/PinnedImage.css';const N = "_container_19qak_2", b = "_content_19qak_114", P = "_copy_19qak_122", R = "_text_19qak_162", S = "_title_19qak_218", T = "_background_19qak_264", E = "_section_19qak_276", H = "_details_19qak_308", e = {
9
- container: N,
10
- content: b,
2
+ import { jsxs as p, jsx as t } from "react/jsx-runtime";
3
+ import { useRef as i, useEffect as x, createElement as y } from "react";
4
+ import v from "../IconDetail/IconDetail.js";
5
+ import { g as a } from "../../index-BmTo-IS6.js";
6
+ import { S as w } from "../../ScrollTrigger-6HnikosL.js";
7
+ import N from "../../utils/parse.js";
8
+ import '../../assets/PinnedImage.css';const b = "_container_1uhcw_2", k = "_content_1uhcw_122", P = "_copy_1uhcw_130", R = "_text_1uhcw_165", S = "_title_1uhcw_220", T = "_background_1uhcw_266", E = "_section_1uhcw_278", H = "_details_1uhcw_310", e = {
9
+ container: b,
10
+ content: k,
11
11
  copy: P,
12
12
  text: R,
13
13
  title: S,
@@ -15,16 +15,16 @@ import '../../assets/PinnedImage.css';const N = "_container_19qak_2", b = "_cont
15
15
  section: E,
16
16
  details: H
17
17
  };
18
- i.registerPlugin(q);
19
- const W = ({ image: m, title: g, sections: f }) => {
20
- const o = s(null);
21
- s(null);
22
- const l = s([]), p = s();
23
- return k(() => {
24
- const n = i.context(() => {
25
- const c = l.current, r = Math.max(...c.map((a) => a.offsetHeight));
26
- i.set(p.current, { minHeight: r });
27
- const d = o.current.offsetTop, h = i.timeline({
18
+ a.registerPlugin(w);
19
+ const W = ({ image: u, title: _, sections: g }) => {
20
+ const o = i(null);
21
+ i(null);
22
+ const l = i([]), m = i();
23
+ return x(() => {
24
+ const c = a.context(() => {
25
+ const n = l.current, r = Math.max(...n.map((s) => s.offsetHeight));
26
+ a.set(m.current, { minHeight: r });
27
+ const d = o.current.offsetTop, f = a.timeline({
28
28
  scrollTrigger: {
29
29
  trigger: o.current,
30
30
  start: `top-=${d} top`,
@@ -35,40 +35,40 @@ const W = ({ image: m, title: g, sections: f }) => {
35
35
  anticipatePin: 1
36
36
  }
37
37
  });
38
- c.forEach((a, u) => {
39
- h.fromTo(
40
- a,
41
- { opacity: u === 0 ? 1 : 0 },
38
+ n.forEach((s, h) => {
39
+ f.fromTo(
40
+ s,
41
+ { opacity: h === 0 ? 1 : 0 },
42
42
  { opacity: 1, duration: 0.5 }
43
43
  ).to(
44
- a,
45
- { opacity: u === c.length - 1 ? 1 : 0, duration: 0.5 },
44
+ s,
45
+ { opacity: h === n.length - 1 ? 1 : 0, duration: 0.5 },
46
46
  "+=0.75"
47
47
  );
48
48
  });
49
49
  }, o);
50
- return () => n.revert();
51
- }, []), /* @__PURE__ */ _(
50
+ return () => c.revert();
51
+ }, []), /* @__PURE__ */ p(
52
52
  "div",
53
53
  {
54
54
  className: e.container,
55
55
  ref: o,
56
- style: { backgroundImage: `url(${m})` },
56
+ style: { backgroundImage: `url(${u})` },
57
57
  children: [
58
- /* @__PURE__ */ t("h2", { className: e.title, children: g }),
59
- /* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: m }) }),
60
- /* @__PURE__ */ t("div", { className: e.content, ref: p, children: /* @__PURE__ */ t("div", { className: e.copy, children: f.map((n, c) => /* @__PURE__ */ _(
58
+ /* @__PURE__ */ t("h2", { className: e.title, children: _ }),
59
+ /* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: u }) }),
60
+ /* @__PURE__ */ t("div", { className: e.content, ref: m, children: /* @__PURE__ */ t("div", { className: e.copy, children: g.map((c, n) => /* @__PURE__ */ p(
61
61
  "div",
62
62
  {
63
63
  className: e.section,
64
- ref: (r) => l.current[c] = r,
64
+ ref: (r) => l.current[n] = r,
65
65
  children: [
66
- /* @__PURE__ */ t("h3", { children: n.header }),
67
- /* @__PURE__ */ t("div", { className: e.text, children: v(n.description) }),
68
- /* @__PURE__ */ t("div", { className: e.details, children: n.details && n.details.map((r, d) => /* @__PURE__ */ x(y, { ...r, key: d })) })
66
+ /* @__PURE__ */ t("h3", { children: c.header }),
67
+ /* @__PURE__ */ t("div", { className: e.text, children: N(c.description) }),
68
+ /* @__PURE__ */ t("div", { className: e.details, children: c.details && c.details.map((r, d) => /* @__PURE__ */ y(v, { ...r, key: d })) })
69
69
  ]
70
70
  },
71
- c
71
+ n
72
72
  )) }) })
73
73
  ]
74
74
  }
@@ -1,15 +1,17 @@
1
1
  "use client";
2
- import { jsxs as c, Fragment as p, jsx as e } from "react/jsx-runtime";
3
- import { useMemo as u } from "react";
2
+ import { jsxs as c, Fragment as u, jsx as a } from "react/jsx-runtime";
3
+ import { useMemo as N } from "react";
4
4
  import "../../index-K0WrPJ_C.js";
5
5
  import "../../hooks/useFadeIn.js";
6
- import N from "../Button/Button.js";
7
- import { appleStagger as n } from "../../presets/animations.js";
6
+ import z from "../Button/Button.js";
7
+ import { appleStagger as o } from "../../presets/animations.js";
8
8
  import { c as m } from "../../index-B2JRaoNz.js";
9
+ import "../OverlayHero/OverlayHero.js";
9
10
  import "../../index-DyQs5aC7.js";
10
11
  import { useStagger as f } from "../../hooks/useStagger.js";
12
+ import "../FloatingWordsHero/FloatingWordsHero.js";
11
13
  import "../../index.modern-DPbS1w7M.js";
12
- import '../../assets/PromoGroup.css';const y = "_group_rwbwb_2", C = "_slider_rwbwb_27", x = "_header_rwbwb_33", v = "_promo_rwbwb_76", T = "_icon_rwbwb_126", $ = "_cta_rwbwb_136", j = "_imageContainer_rwbwb_144", F = "_image_rwbwb_144", k = "_promo__header_rwbwb_156", S = "_promo__body_rwbwb_254", z = "_stats_rwbwb_302", A = "_stat_rwbwb_302", B = "_statText_rwbwb_316", a = {
14
+ import '../../assets/PromoGroup.css';const y = "_group_sebz3_2", C = "_slider_sebz3_27", x = "_header_sebz3_33", v = "_promo_sebz3_76", T = "_icon_sebz3_126", $ = "_cta_sebz3_136", j = "_imageContainer_sebz3_144", F = "_image_sebz3_144", k = "_promo__header_sebz3_156", S = "_promo__body_sebz3_248", A = "_stats_sebz3_295", B = "_stat_sebz3_295", G = "_statText_sebz3_309", e = {
13
15
  group: y,
14
16
  slider: C,
15
17
  header: x,
@@ -20,79 +22,79 @@ import '../../assets/PromoGroup.css';const y = "_group_rwbwb_2", C = "_slider_rw
20
22
  image: F,
21
23
  promo__header: k,
22
24
  promo__body: S,
23
- stats: z,
24
- stat: A,
25
- statText: B,
26
- "count-4": "_count-4_rwbwb_394"
27
- }, L = ({ header: d, promos: r, direction: i = "vertical", slider: b }) => {
28
- const g = ["icon", "header", "body", "cta", "stats", "image"], h = f(`.${a.promo}`, n.from, {
29
- ...n.to,
30
- stagger: n.stagger,
31
- scrollTrigger: { start: n.start }
32
- }), l = u(() => {
25
+ stats: A,
26
+ stat: B,
27
+ statText: G,
28
+ "count-4": "_count-4_sebz3_386"
29
+ }, Q = ({ header: d, promos: s, direction: i = "vertical", slider: g }) => {
30
+ const h = ["icon", "header", "body", "cta", "stats", "image"], p = f(`.${e.promo}`, o.from, {
31
+ ...o.to,
32
+ stagger: o.stagger,
33
+ scrollTrigger: { start: o.start }
34
+ }), l = N(() => {
33
35
  let t = 0;
34
- for (let s of g)
35
- r.some((o) => !!o[s]) && (t += 1);
36
+ for (let r of h)
37
+ s.some((n) => !!n[r]) && (t += 1);
36
38
  return t;
37
- }, [r]);
38
- return /* @__PURE__ */ c(p, { children: [
39
- /* @__PURE__ */ e("h2", { className: a.header, children: d }),
40
- /* @__PURE__ */ e(
39
+ }, [s]);
40
+ return /* @__PURE__ */ c(u, { children: [
41
+ /* @__PURE__ */ a("h2", { className: e.header, children: d }),
42
+ /* @__PURE__ */ a(
41
43
  "div",
42
44
  {
43
- ref: h,
45
+ ref: p,
44
46
  className: m(
45
- a.group,
46
- a[`count-${r.length}`],
47
- b && a.slider
47
+ e.group,
48
+ e[`count-${s.length}`],
49
+ g && e.slider
48
50
  ),
49
51
  style: {
50
- "--promos": r.length,
52
+ "--promos": s.length,
51
53
  "--propCount": i == "horizontal" ? l - 1 : l
52
54
  },
53
- children: r.map((t, s) => {
54
- const o = t.containerCta ? "a" : "div";
55
+ children: s.map((t, r) => {
56
+ const n = t.containerCta ? "a" : "div";
55
57
  return /* @__PURE__ */ c(
56
- o,
58
+ n,
57
59
  {
58
60
  onClick: t.containerCta?.onClick || null,
59
61
  href: t.containerCta?.href || null,
60
62
  target: t.containerCta?.target || null,
61
- delay: 0.1 * s,
62
- className: a.promo,
63
+ delay: 0.1 * r,
64
+ className: e.promo,
63
65
  "data-color": t.color,
64
66
  "data-text-align": t.textAlign,
65
67
  "data-direction": i,
66
68
  children: [
67
- t.icon && /* @__PURE__ */ e(
69
+ t.icon && /* @__PURE__ */ a(
68
70
  "span",
69
71
  {
70
72
  className: m(
71
73
  "material-symbols-outlined",
72
- a.icon,
74
+ e.icon,
73
75
  !t.icon && "hidden"
74
76
  ),
75
77
  children: t.icon
76
78
  }
77
79
  ),
78
- t.image && /* @__PURE__ */ e("div", { className: a.imageContainer, children: /* @__PURE__ */ e(
80
+ t.image && /* @__PURE__ */ a("div", { className: e.imageContainer, children: /* @__PURE__ */ a(
79
81
  "img",
80
82
  {
81
83
  style: { objectFit: t.imageFit },
82
- className: a.image,
84
+ className: e.image,
83
85
  src: t.image
84
86
  }
85
87
  ) }),
86
- t.header && /* @__PURE__ */ e("h3", { className: a.promo__header, children: t.header }),
87
- /* @__PURE__ */ e("p", { className: a.promo__body, children: t.body }),
88
- t.cta && /* @__PURE__ */ e("div", { className: a.cta, children: /* @__PURE__ */ e(N, { ...t.cta }) }),
89
- t.stats && /* @__PURE__ */ e("div", { className: a.stats, children: t.stats.map((_, w) => /* @__PURE__ */ c("div", { className: a.stat, children: [
90
- /* @__PURE__ */ e("span", { className: "material-symbols-outlined", children: _.icon }),
91
- /* @__PURE__ */ e("span", { className: a.statText, children: _.text })
92
- ] }, `stat-${w}`)) })
88
+ t.header && /* @__PURE__ */ a("h3", { className: e.promo__header, children: t.header }),
89
+ /* @__PURE__ */ a("p", { className: e.promo__body, children: t.body }),
90
+ t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(z, { ...t.cta }) }),
91
+ t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_, b) => /* @__PURE__ */ c("div", { className: e.stat, children: [
92
+ /* @__PURE__ */ a("span", { className: "material-symbols-outlined", children: _.icon }),
93
+ /* @__PURE__ */ a("span", { className: e.statText, children: _.text })
94
+ ] }, `stat-${b}`)) })
93
95
  ]
94
96
  },
95
- `promo-${s}`
97
+ `promo-${r}`
96
98
  );
97
99
  })
98
100
  }
@@ -100,5 +102,5 @@ import '../../assets/PromoGroup.css';const y = "_group_rwbwb_2", C = "_slider_rw
100
102
  ] });
101
103
  };
102
104
  export {
103
- L as default
105
+ Q as default
104
106
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
3
  import { useRef as s, useEffect as a } from "react";
4
- import '../../assets/RSVPEmbed.css';const o = "_wrapper_1uu5y_1", i = "_container_1uu5y_10", t = {
5
- wrapper: o,
6
- container: i
4
+ import '../../assets/RSVPEmbed.css';const o = "_container_g8yt4_1", i = "_wrapper_g8yt4_5", t = {
5
+ container: o,
6
+ wrapper: i
7
7
  };
8
8
  function f({ embedUrl: c }) {
9
9
  const r = s(null);