@courtneyring/components-library 1.0.20 → 1.0.21

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 (36) hide show
  1. package/README.md +11 -11
  2. package/dist/AccordionItem-DuHzStoZ.js +40 -0
  3. package/dist/animations/FadeIn.js +8 -1
  4. package/dist/assets/AccordionItem.css +1 -0
  5. package/dist/assets/Banner.css +1 -1
  6. package/dist/assets/Container.css +1 -1
  7. package/dist/assets/Fifty.css +1 -1
  8. package/dist/assets/GenericOverlay.css +1 -1
  9. package/dist/assets/IconDetail.css +1 -1
  10. package/dist/assets/MenuButton.css +1 -1
  11. package/dist/assets/Navbar.css +1 -1
  12. package/dist/assets/Overlay.css +1 -1
  13. package/dist/assets/OverlayHero.css +1 -1
  14. package/dist/assets/PinnedImage.css +1 -1
  15. package/dist/assets/PromoGroup.css +1 -1
  16. package/dist/assets/RSVPEmbed.css +1 -0
  17. package/dist/assets/index.css +1 -0
  18. package/dist/components/Accordion/Accordion.js +26 -0
  19. package/dist/components/Accordion/AccordionItem.js +8 -0
  20. package/dist/components/Banner/Banner.js +14 -14
  21. package/dist/components/Container/Container.js +27 -15
  22. package/dist/components/Fifty/Fifty.js +29 -20
  23. package/dist/components/GenericOverlay/GenericOverlay.js +16 -16
  24. package/dist/components/IconDetail/IconDetail.js +7 -7
  25. package/dist/components/ImageTextBlock/ImageTextBlock.js +26 -32
  26. package/dist/components/MenuButton/MenuButton.js +18 -18
  27. package/dist/components/Navbar/Navbar.js +15 -15
  28. package/dist/components/Overlay/Overlay.js +25 -19
  29. package/dist/components/OverlayHero/OverlayHero.js +8 -8
  30. package/dist/components/PageContainer/PageContainer.js +19 -5
  31. package/dist/components/PinnedImage/PinnedImage.js +30 -30
  32. package/dist/components/PromoGroup/PromoGroup.js +26 -19
  33. package/dist/components/RSVPEmbed/RSVPEmbed.js +18 -0
  34. package/dist/components/Toolbar/Toolbar.js +5 -5
  35. package/dist/index.js +69 -44
  36. package/package.json +4 -2
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
3
  import o from "../../utils/parse.js";
4
- import { c } from "../../index-BIlioXmW.js";
5
- import '../../assets/IconDetail.css';const r = "_detail_eb6tx_1", n = "_label_eb6tx_53", a = {
6
- detail: r,
7
- label: n
8
- }, _ = ({ icon: l, text: s, href: t }) => /* @__PURE__ */ i(t ? "a" : "div", { className: a.detail, children: [
9
- /* @__PURE__ */ e("span", { className: c(a.icon, "material-symbols-outlined"), children: l }),
4
+ import { c as r } from "../../index-BIlioXmW.js";
5
+ import '../../assets/IconDetail.css';const c = "_detail_4rjme_1", m = "_label_4rjme_53", a = {
6
+ detail: c,
7
+ label: m
8
+ }, b = ({ icon: l, text: s, href: t }) => /* @__PURE__ */ i(t ? "a" : "div", { className: a.detail, children: [
9
+ /* @__PURE__ */ e("span", { className: r(a.icon, "material-symbols-outlined"), children: l }),
10
10
  /* @__PURE__ */ e("div", { className: a.label, children: o(s) })
11
11
  ] });
12
12
  export {
13
- _ as default
13
+ b as default
14
14
  };
@@ -1,39 +1,33 @@
1
1
  "use client";
2
- import { jsx as n, jsxs as t } from "react/jsx-runtime";
2
+ import { jsx as e, jsxs as c, Fragment as u } from "react/jsx-runtime";
3
3
  import a from "../Button/Button.js";
4
- import { c as h } from "../../index-BIlioXmW.js";
5
- import { useFadeIn as r } from "../../hooks/useFadeIn.js";
6
- import u from "../../utils/parse.js";
7
- import '../../assets/ImageTextBlock.css';const f = "_block_hnnuu_1", g = "_container_hnnuu_5", b = "_reverse_hnnuu_11", v = "_content_hnnuu_15", N = "_header_hnnuu_20", p = "_body_hnnuu_68", k = "_ctas_hnnuu_115", x = "_image_hnnuu_119", e = {
8
- block: f,
9
- container: g,
10
- reverse: b,
11
- content: v,
12
- header: N,
13
- body: p,
14
- ctas: k,
15
- image: x
16
- }, F = ({
17
- image: i,
18
- header: d,
19
- body: l,
20
- primaryCta: s,
21
- secondaryCta: o,
22
- reverse: c
23
- }) => {
24
- const m = r({ direction: c ? "right" : "left" }), _ = r({ direction: c ? "right" : "left" });
25
- return /* @__PURE__ */ n("div", { className: h(e.block, c && e.reverse), children: /* @__PURE__ */ t("div", { className: e.container, children: [
26
- /* @__PURE__ */ n("div", { className: e.image, ref: m, children: /* @__PURE__ */ n("img", { src: i }) }),
27
- /* @__PURE__ */ t("div", { className: e.content, ref: _, children: [
28
- /* @__PURE__ */ n("h2", { className: e.header, children: d }),
29
- /* @__PURE__ */ n("div", { className: e.body, children: u(l) }),
30
- /* @__PURE__ */ t("div", { className: e.ctas, children: [
31
- s && /* @__PURE__ */ n(a, { ...s }),
32
- o && /* @__PURE__ */ n(a, { ...o })
33
- ] })
4
+ import { c as f } from "../../index-BIlioXmW.js";
5
+ import { useFadeIn as i } from "../../hooks/useFadeIn.js";
6
+ import g from "../../utils/parse.js";
7
+ import { Children as b } from "react";
8
+ import '../../assets/ImageTextBlock.css';const v = "_block_hnnuu_1", N = "_container_hnnuu_5", p = "_reverse_hnnuu_11", k = "_content_hnnuu_15", x = "_header_hnnuu_20", y = "_body_hnnuu_68", I = "_ctas_hnnuu_115", j = "_image_hnnuu_119", n = {
9
+ block: v,
10
+ container: N,
11
+ reverse: p,
12
+ content: k,
13
+ header: x,
14
+ body: y,
15
+ ctas: I,
16
+ image: j
17
+ }, z = ({ image: d, header: m, body: l, primaryCta: o, secondaryCta: s, reverse: t, children: r }) => {
18
+ const _ = i({ direction: t ? "right" : "left" }), h = i({ direction: t ? "right" : "left" });
19
+ return /* @__PURE__ */ e("div", { className: f(n.block, t && n.reverse), children: /* @__PURE__ */ c("div", { className: n.container, children: [
20
+ /* @__PURE__ */ e("div", { className: n.image, ref: _, children: /* @__PURE__ */ e("img", { src: d }) }),
21
+ /* @__PURE__ */ c("div", { className: n.content, ref: h, children: [
22
+ /* @__PURE__ */ e("h2", { className: n.header, children: m }),
23
+ /* @__PURE__ */ e("div", { className: n.body, children: g(l) }),
24
+ b.count(r) > 0 ? r : /* @__PURE__ */ e(u, { children: /* @__PURE__ */ c("div", { className: n.ctas, children: [
25
+ o && /* @__PURE__ */ e(a, { ...o }),
26
+ s && /* @__PURE__ */ e(a, { ...s })
27
+ ] }) })
34
28
  ] })
35
29
  ] }) });
36
30
  };
37
31
  export {
38
- F as default
32
+ z as default
39
33
  };
@@ -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-BIlioXmW.js";
4
- import '../../assets/MenuButton.css';const a = "_button_rkv7s_1", c = "_isOpen_rkv7s_6", _ = "_top_rkv7s_6", r = "_bottom_rkv7s_6", d = "_middle_rkv7s_24", m = "_line_rkv7s_32", t = {
2
+ import { jsxs as i, jsx as s } from "react/jsx-runtime";
3
+ import { c as t } from "../../index-BIlioXmW.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
5
  button: a,
6
6
  isOpen: c,
7
7
  top: _,
8
- bottom: r,
9
- middle: d,
10
- line: m
11
- }, u = ({ isOpen: l, clickFn: e, theme: s }) => /* @__PURE__ */ i(
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,13 +1,13 @@
1
1
  "use client";
2
- import { jsxs as u, jsx as r } from "react/jsx-runtime";
3
- import { useRef as g, useState as c, useEffect as f, cloneElement as k } from "react";
2
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
3
+ import { useRef as g, useState as l, useEffect as f, cloneElement as k } from "react";
4
4
  import w 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-BIlioXmW.js";
9
9
  import { useNavColor as C } from "../../hooks/useNavColor.js";
10
- import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4", y = "_background_1d7u4_24", S = "_open_1d7u4_24", $ = "_navbar__link_1d7u4_27", j = "_navbar__logo_1d7u4_31", B = "_component_1d7u4_39", F = "_navbar__links_1d7u4_69", L = "_navbar__mobileDialog_1d7u4_81", M = "_navbar__toggle_1d7u4_97", o = {
10
+ import '../../assets/Navbar.css';const O = "_navbar_12cmh_1", Y = "_hide_12cmh_4", y = "_background_12cmh_24", S = "_open_12cmh_24", $ = "_navbar__link_12cmh_27", j = "_navbar__logo_12cmh_31", B = "_component_12cmh_42", F = "_navbar__links_12cmh_72", L = "_navbar__mobileDialog_12cmh_84", M = "_navbar__toggle_12cmh_100", o = {
11
11
  navbar: O,
12
12
  hide: Y,
13
13
  background: y,
@@ -19,28 +19,28 @@ import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4
19
19
  navbar__mobileDialog: L,
20
20
  navbar__toggle: M
21
21
  }, I = {}, T = ({ links: t, logoImage: s, color: P, logoComponent: _ }) => {
22
- const e = g(0), [v, b] = c("up"), [n, i] = c(!1), [m, R] = C(), [l, p] = c(!1);
23
- f(() => (window.addEventListener("scroll", d), () => window.removeEventListener("scroll", d)), []);
24
- const d = () => {
25
- p(window.scrollY > 30);
22
+ const e = g(0), [v, b] = l("up"), [n, i] = l(!1), [u, R] = C(), [c, h] = l(!1);
23
+ f(() => (window.addEventListener("scroll", m), () => window.removeEventListener("scroll", m)), []);
24
+ const m = () => {
25
+ h(window.scrollY > 30);
26
26
  const a = window.scrollY;
27
27
  a - e.current !== 0 && b(a > e.current ? "down" : "up"), e.current = a > 0 ? a : 0;
28
28
  };
29
- return /* @__PURE__ */ u(
29
+ return /* @__PURE__ */ d(
30
30
  "nav",
31
31
  {
32
32
  className: E(
33
33
  o.navbar,
34
- l && o.background,
34
+ c && o.background,
35
35
  n && o.open,
36
36
  v === "down" && o.hide
37
37
  ),
38
38
  children: [
39
- /* @__PURE__ */ u("a", { className: o.navbar__logo, href: "/", children: [
39
+ /* @__PURE__ */ d("a", { className: o.navbar__logo, href: "/", children: [
40
40
  s && /* @__PURE__ */ r("img", { src: s }),
41
41
  _ && k(_, {
42
42
  className: o.component,
43
- "data-color": !l || n ? "color-white" : "color-neutral-dark"
43
+ "data-color": !c || n ? "color-white" : "color-neutral-dark"
44
44
  })
45
45
  ] }),
46
46
  /* @__PURE__ */ r("div", { className: o.navbar__toggle, children: /* @__PURE__ */ r(
@@ -48,15 +48,15 @@ import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4
48
48
  {
49
49
  clickFn: () => i(!n),
50
50
  isOpen: n,
51
- theme: !l || n ? "color-white" : "color-neutral-dark"
51
+ theme: !c || n ? "color-white" : "color-neutral-dark"
52
52
  }
53
53
  ) }),
54
- /* @__PURE__ */ r("div", { className: o.navbar__links, children: t.map((a, h) => /* @__PURE__ */ r(
54
+ /* @__PURE__ */ r("div", { className: o.navbar__links, children: t.map((a, p) => /* @__PURE__ */ r(
55
55
  "a",
56
56
  {
57
57
  className: `${o.navbar__link}`,
58
58
  href: a.value,
59
- "data-color": m,
59
+ "data-color": u,
60
60
  children: a.label
61
61
  },
62
62
  `navbar-d-${a.value}`
@@ -69,7 +69,7 @@ import '../../assets/Navbar.css';const O = "_navbar_1d7u4_1", Y = "_hide_1d7u4_4
69
69
  hideClose: !0,
70
70
  background: I.white,
71
71
  fullscreen: !0,
72
- children: /* @__PURE__ */ r(x, { color: "color-white", children: /* @__PURE__ */ r("div", { className: o.navbar__mobileDialog, children: t.map((a, h) => /* @__PURE__ */ r(
72
+ children: /* @__PURE__ */ r(x, { color: "color-white", children: /* @__PURE__ */ r("div", { className: o.navbar__mobileDialog, children: t.map((a, p) => /* @__PURE__ */ r(
73
73
  "a",
74
74
  {
75
75
  className: o.navbar__link,
@@ -1,41 +1,47 @@
1
1
  "use client";
2
- import { jsxs as _, jsx as a } from "react/jsx-runtime";
2
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
3
3
  import { useState as v, useEffect as u } from "react";
4
4
  import { c as m } from "../../index-BIlioXmW.js";
5
- import '../../assets/Overlay.css';const i = "_overlay_xrwam_17", y = "_hideNav_xrwam_23", f = "_overlay__dialog_xrwam_23", x = "_overlay__background_xrwam_27", w = "_fadeIn_xrwam_1", N = "_fadeOut_xrwam_37", h = "_overlay__close_xrwam_60", O = "_fullscreen_xrwam_83", e = {
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,
8
8
  overlay__dialog: f,
9
- overlay__background: x,
10
- fadeIn: w,
11
- fadeOut: N,
12
- overlay__close: h,
13
- fullscreen: O
14
- }, p = ({ children: t, closeFn: c, hideClose: o, background: l, fullscreen: d = !0 }) => {
15
- const [s, n] = v(!1);
9
+ overlay__background: N,
10
+ fadeIn: h,
11
+ fadeOut: O,
12
+ overlay__close: g,
13
+ fullscreen: b
14
+ }, I = ({
15
+ children: t,
16
+ closeFn: c,
17
+ hideClose: o,
18
+ background: a,
19
+ fullscreen: d = !0
20
+ }) => {
21
+ const [l, n] = v(!1);
16
22
  u(() => (document.body.style.overflow = "hidden", () => {
17
23
  document.body.style.overflow = "unset";
18
24
  }), []);
19
- const r = () => {
25
+ const _ = () => {
20
26
  n(!0), setTimeout(() => {
21
27
  c();
22
28
  }, 500);
23
29
  };
24
- return /* @__PURE__ */ _("div", { className: m(e.overlay, !o && e.hideNav), children: [
25
- /* @__PURE__ */ a(
30
+ return /* @__PURE__ */ r("div", { className: m(e.overlay, !o && e.hideNav), children: [
31
+ /* @__PURE__ */ s(
26
32
  "div",
27
33
  {
28
- className: ` ${e.overlay__background} ${s && e.fadeOut}`,
29
- onClick: r
34
+ className: ` ${e.overlay__background} ${l && e.fadeOut}`,
35
+ onClick: _
30
36
  }
31
37
  ),
32
- /* @__PURE__ */ _(
38
+ /* @__PURE__ */ r(
33
39
  "div",
34
40
  {
35
- className: `${e.overlay__dialog} ${s ? e.fadeOut : e.fadeIn} ${d && e.fullscreen} `,
36
- style: l ? { background: l } : {},
41
+ className: `${e.overlay__dialog} ${l ? e.fadeOut : e.fadeIn} ${d && e.fullscreen} `,
42
+ style: a ? { background: a } : {},
37
43
  children: [
38
- !o && /* @__PURE__ */ a("div", { className: e.overlay__close, onClick: r, children: /* @__PURE__ */ a("span", { className: "material-symbols-outlined", children: "close" }) }),
44
+ !o && /* @__PURE__ */ s("div", { className: e.overlay__close, onClick: _, children: /* @__PURE__ */ s("span", { className: "material-symbols-outlined", children: "close" }) }),
39
45
  t
40
46
  ]
41
47
  }
@@ -43,5 +49,5 @@ import '../../assets/Overlay.css';const i = "_overlay_xrwam_17", y = "_hideNav_x
43
49
  ] });
44
50
  };
45
51
  export {
46
- p as default
52
+ I as default
47
53
  };
@@ -2,17 +2,17 @@
2
2
  import { jsx as t, jsxs as c } from "react/jsx-runtime";
3
3
  import s from "../../utils/parse.js";
4
4
  import "react";
5
- import '../../assets/OverlayHero.css';const m = "_hero_1hmag_1", n = "_overlay_1hmag_13", h = "_eyebrow_1hmag_38", _ = "_title_1hmag_45", d = "_subtitle_1hmag_63", e = {
6
- hero: m,
7
- overlay: n,
8
- eyebrow: h,
9
- title: _,
10
- subtitle: d
11
- }, v = ({ text: y, image: a, pos: l, eyebrow: r, title: i, subtitle: o }) => /* @__PURE__ */ t(
5
+ import '../../assets/OverlayHero.css';const n = "_hero_1f1qw_5", _ = "_overlay_1f1qw_17", d = "_eyebrow_1f1qw_42", m = "_title_1f1qw_49", h = "_subtitle_1f1qw_67", e = {
6
+ hero: n,
7
+ overlay: _,
8
+ eyebrow: d,
9
+ title: m,
10
+ subtitle: h
11
+ }, v = ({ text: y, image: l, pos: a, eyebrow: r, title: i, subtitle: o }) => /* @__PURE__ */ t(
12
12
  "div",
13
13
  {
14
14
  className: e.hero,
15
- style: { backgroundImage: `url(${a})`, backgroundPosition: l },
15
+ style: { backgroundImage: `url(${l})`, backgroundPosition: a },
16
16
  children: /* @__PURE__ */ c("div", { className: e.overlay, children: [
17
17
  r && /* @__PURE__ */ t("p", { className: e.eyebrow, children: r }),
18
18
  /* @__PURE__ */ t("h1", { className: e.title, children: s(i) }),
@@ -5,7 +5,14 @@ import '../../assets/PageContainer.css';const s = "_container__inner_1f10x_2", l
5
5
  removePadding: l,
6
6
  container__body: m,
7
7
  container__copy: y
8
- }, x = ({ heroImage: f, pageTitle: r, children: t, hero: g, copy: e, excludePadding: c = [] }) => {
8
+ }, x = ({
9
+ heroImage: f,
10
+ pageTitle: r,
11
+ children: t,
12
+ hero: g,
13
+ copy: e,
14
+ excludePadding: c = []
15
+ }) => {
9
16
  const a = () => {
10
17
  let _ = {};
11
18
  for (let d of c)
@@ -13,10 +20,17 @@ import '../../assets/PageContainer.css';const s = "_container__inner_1f10x_2", l
13
20
  return _;
14
21
  };
15
22
  return /* @__PURE__ */ i("main", { children: [
16
- /* @__PURE__ */ o("div", { className: `${n.container__inner} ${!r && !e && n.removePadding}`, style: a(), children: /* @__PURE__ */ i("div", { className: n.container__copy, children: [
17
- /* @__PURE__ */ o("h1", { children: r }),
18
- e && /* @__PURE__ */ o("div", { className: n.container__body, children: e })
19
- ] }) }),
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
+ ),
20
34
  t
21
35
  ] });
22
36
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsxs as _, jsx as t } from "react/jsx-runtime";
3
- import { useRef as s, useEffect as x, createElement as b } from "react";
4
- import y from "../IconDetail/IconDetail.js";
5
- import { g as a, S as v } from "../../ScrollTrigger-DDbij8gI.js";
6
- import N from "../../utils/parse.js";
7
- import '../../assets/PinnedImage.css';const k = "_container_pixtb_2", P = "_content_pixtb_114", R = "_copy_pixtb_122", S = "_text_pixtb_158", T = "_title_pixtb_207", E = "_background_pixtb_253", H = "_section_pixtb_265", I = "_details_pixtb_296", e = {
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, S as N } from "../../ScrollTrigger-DDbij8gI.js";
6
+ import b from "../../utils/parse.js";
7
+ import '../../assets/PinnedImage.css';const k = "_container_trrr1_2", P = "_content_trrr1_114", R = "_copy_trrr1_122", S = "_text_trrr1_158", T = "_title_trrr1_207", E = "_background_trrr1_253", H = "_section_trrr1_265", I = "_details_trrr1_297", e = {
8
8
  container: k,
9
9
  content: P,
10
10
  copy: R,
@@ -14,18 +14,18 @@ import '../../assets/PinnedImage.css';const k = "_container_pixtb_2", P = "_cont
14
14
  section: H,
15
15
  details: I
16
16
  };
17
- a.registerPlugin(v);
18
- const W = ({ image: p, title: g, sections: f }) => {
19
- const i = s(null);
20
- s(null);
21
- const l = s([]), m = s();
17
+ a.registerPlugin(N);
18
+ const W = ({ image: m, title: g, sections: f }) => {
19
+ const o = i(null);
20
+ i(null);
21
+ const l = i([]), p = i();
22
22
  return x(() => {
23
- const n = a.context(() => {
24
- const c = l.current, r = Math.max(...c.map((o) => o.offsetHeight));
25
- a.set(m.current, { minHeight: r });
26
- const d = i.current.offsetTop, h = a.timeline({
23
+ const r = a.context(() => {
24
+ const n = l.current, c = Math.max(...n.map((s) => s.offsetHeight));
25
+ a.set(p.current, { minHeight: c });
26
+ const d = o.current.offsetTop, h = a.timeline({
27
27
  scrollTrigger: {
28
- trigger: i.current,
28
+ trigger: o.current,
29
29
  start: `top-=${d} top`,
30
30
  end: `+=${l.current.length * 100}%`,
31
31
  // controls scroll length
@@ -34,40 +34,40 @@ const W = ({ image: p, title: g, sections: f }) => {
34
34
  anticipatePin: 1
35
35
  }
36
36
  });
37
- c.forEach((o, u) => {
37
+ n.forEach((s, u) => {
38
38
  h.fromTo(
39
- o,
39
+ s,
40
40
  { opacity: u === 0 ? 1 : 0 },
41
41
  { opacity: 1, duration: 0.5 }
42
42
  ).to(
43
- o,
44
- { opacity: u === c.length - 1 ? 1 : 0, duration: 0.5 },
43
+ s,
44
+ { opacity: u === n.length - 1 ? 1 : 0, duration: 0.5 },
45
45
  "+=0.75"
46
46
  );
47
47
  });
48
- }, i);
49
- return () => n.revert();
48
+ }, o);
49
+ return () => r.revert();
50
50
  }, []), /* @__PURE__ */ _(
51
51
  "div",
52
52
  {
53
53
  className: e.container,
54
- ref: i,
55
- style: { backgroundImage: `url(${p})` },
54
+ ref: o,
55
+ style: { backgroundImage: `url(${m})` },
56
56
  children: [
57
57
  /* @__PURE__ */ t("h2", { className: e.title, children: g }),
58
- /* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: p }) }),
59
- /* @__PURE__ */ t("div", { className: e.content, ref: m, children: /* @__PURE__ */ t("div", { className: e.copy, children: f.map((n, c) => /* @__PURE__ */ _(
58
+ /* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: m }) }),
59
+ /* @__PURE__ */ t("div", { className: e.content, ref: p, children: /* @__PURE__ */ t("div", { className: e.copy, children: f.map((r, n) => /* @__PURE__ */ _(
60
60
  "div",
61
61
  {
62
62
  className: e.section,
63
- ref: (r) => l.current[c] = r,
63
+ ref: (c) => l.current[n] = c,
64
64
  children: [
65
- /* @__PURE__ */ t("h3", { children: n.header }),
66
- /* @__PURE__ */ t("div", { className: e.text, children: N(n.description) }),
67
- /* @__PURE__ */ t("div", { className: e.details, children: n.details && n.details.map((r, d) => /* @__PURE__ */ b(y, { ...r, key: d })) })
65
+ /* @__PURE__ */ t("h3", { children: r.header }),
66
+ /* @__PURE__ */ t("div", { className: e.text, children: b(r.description) }),
67
+ /* @__PURE__ */ t("div", { className: e.details, children: r.details && r.details.map((c, d) => /* @__PURE__ */ y(v, { ...c, key: d })) })
68
68
  ]
69
69
  },
70
- c
70
+ n
71
71
  )) }) })
72
72
  ]
73
73
  }
@@ -22,27 +22,34 @@ import '../../assets/PromoGroup.css';const n = "_group_qbcz0_2", h = "_slider_qb
22
22
  statText: z
23
23
  }, P = ({ header: i, promos: s }) => /* @__PURE__ */ c(l, { children: [
24
24
  /* @__PURE__ */ t("h2", { className: e.header, children: i }),
25
- /* @__PURE__ */ t("div", { className: m(e.group, s.length > 3 && e.slider), style: { "--promos": s.length }, children: s.map((a, r) => /* @__PURE__ */ c(
25
+ /* @__PURE__ */ t(
26
26
  "div",
27
27
  {
28
- delay: 0.1 * r,
29
- className: e.promo,
30
- "data-color": a.color,
31
- "data-text-align": a.textAlign,
32
- children: [
33
- a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: a.icon }),
34
- a.image && /* @__PURE__ */ t("img", { className: e.image, src: a.image }),
35
- a.header && /* @__PURE__ */ t("h3", { className: e.promo__header, children: a.header }),
36
- /* @__PURE__ */ t("p", { className: e.promo__body, children: a.body }),
37
- a.cta && /* @__PURE__ */ t("div", { className: e.cta, children: /* @__PURE__ */ t(d, { ...a.cta }) }),
38
- a.stats && /* @__PURE__ */ t("div", { className: e.stats, children: a.stats.map((o, _) => /* @__PURE__ */ c("div", { className: e.stat, children: [
39
- /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: o.icon }),
40
- /* @__PURE__ */ t("span", { className: e.statText, children: o.text })
41
- ] }, `stat-${_}`)) })
42
- ]
43
- },
44
- `promo-${r}`
45
- )) })
28
+ className: m(e.group, s.length > 3 && e.slider),
29
+ style: { "--promos": s.length },
30
+ children: s.map((a, r) => /* @__PURE__ */ c(
31
+ "div",
32
+ {
33
+ delay: 0.1 * r,
34
+ className: e.promo,
35
+ "data-color": a.color,
36
+ "data-text-align": a.textAlign,
37
+ children: [
38
+ a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: a.icon }),
39
+ a.image && /* @__PURE__ */ t("img", { className: e.image, src: a.image }),
40
+ a.header && /* @__PURE__ */ t("h3", { className: e.promo__header, children: a.header }),
41
+ /* @__PURE__ */ t("p", { className: e.promo__body, children: a.body }),
42
+ a.cta && /* @__PURE__ */ t("div", { className: e.cta, children: /* @__PURE__ */ t(d, { ...a.cta }) }),
43
+ a.stats && /* @__PURE__ */ t("div", { className: e.stats, children: a.stats.map((o, _) => /* @__PURE__ */ c("div", { className: e.stat, children: [
44
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: o.icon }),
45
+ /* @__PURE__ */ t("span", { className: e.statText, children: o.text })
46
+ ] }, `stat-${_}`)) })
47
+ ]
48
+ },
49
+ `promo-${r}`
50
+ ))
51
+ }
52
+ )
46
53
  ] });
47
54
  export {
48
55
  P as default
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { useRef as c, useEffect as s } from "react";
4
+ import '../../assets/RSVPEmbed.css';const p = "_wrapper_1mgkx_1", a = {
5
+ wrapper: p
6
+ };
7
+ function f({ embedUrl: t }) {
8
+ const r = c(null);
9
+ return s(() => {
10
+ const e = document.createElement("script");
11
+ return e.src = t, e.async = !0, r.current?.appendChild(e), () => {
12
+ r.current && (r.current.innerHTML = "");
13
+ };
14
+ }, []), /* @__PURE__ */ n("div", { ref: r, className: a.wrapper });
15
+ }
16
+ export {
17
+ f as default
18
+ };
@@ -5,17 +5,17 @@ import { useState as l, useEffect as c } from "react";
5
5
  import '../../assets/Toolbar.css';const h = "_toolbar_17thg_1", m = {
6
6
  toolbar: h
7
7
  }, g = () => {
8
- const [e, n] = l(!0), r = d(), s = (t) => {
9
- console.log(t.code), t.code === "KeyI" && (t.preventDefault(), t.stopPropagation(), n(!e));
8
+ const [t, n] = l(!1), s = d(), r = (e) => {
9
+ e.code === "KeyI" && (e.preventDefault(), e.stopPropagation(), n(!t));
10
10
  };
11
- return c(() => (window.addEventListener("keyup", s), () => window.removeEventListener("keyup", s)), [e]), e ? /* @__PURE__ */ o("div", { className: m.toolbar, children: [
11
+ return c(() => (window.addEventListener("keyup", r), () => window.removeEventListener("keyup", r)), [t]), t ? /* @__PURE__ */ o("div", { className: m.toolbar, children: [
12
12
  /* @__PURE__ */ o("div", { children: [
13
13
  "Width: ",
14
- r.innerWidth
14
+ s.innerWidth
15
15
  ] }),
16
16
  /* @__PURE__ */ o("div", { children: [
17
17
  "Height: ",
18
- r.innerHeight
18
+ s.innerHeight
19
19
  ] })
20
20
  ] }) : /* @__PURE__ */ i(a, {});
21
21
  };