@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.
Files changed (107) hide show
  1. package/dist/{AccordionItem-DuHzStoZ.js → AccordionItem-CDN4L4a7.js} +11 -11
  2. package/dist/ScrollTrigger-6HnikosL.js +1086 -0
  3. package/dist/animations/FadeIn.js +8 -7
  4. package/dist/assets/AccordionItem.css +1 -1
  5. package/dist/assets/Background.css +1 -1
  6. package/dist/assets/Banner.css +1 -1
  7. package/dist/assets/Button.css +1 -1
  8. package/dist/assets/ButtonGroup.css +1 -0
  9. package/dist/assets/Container.css +1 -1
  10. package/dist/assets/Countdown.css +1 -1
  11. package/dist/assets/Fifty.css +1 -1
  12. package/dist/assets/FloatingWordsHero.css +1 -0
  13. package/dist/assets/Footer.css +1 -1
  14. package/dist/assets/GenericOverlay.css +1 -1
  15. package/dist/assets/IconDetail.css +1 -1
  16. package/dist/assets/ImageTextBlock.css +1 -1
  17. package/dist/assets/List.css +1 -1
  18. package/dist/assets/Map.css +1 -0
  19. package/dist/assets/Navbar.css +1 -1
  20. package/dist/assets/Note.css +1 -1
  21. package/dist/assets/OverlayHero.css +1 -1
  22. package/dist/assets/PageContainer.css +1 -1
  23. package/dist/assets/PinnedImage.css +1 -1
  24. package/dist/assets/PromoGroup.css +1 -1
  25. package/dist/assets/RSVPEmbed.css +1 -1
  26. package/dist/assets/Schedule.css +1 -1
  27. package/dist/assets/TextBlock.css +1 -1
  28. package/dist/components/Accordion/Accordion.js +21 -14
  29. package/dist/components/Accordion/AccordionItem.js +2 -2
  30. package/dist/components/Background/Background.js +24 -22
  31. package/dist/components/Banner/Banner.js +18 -16
  32. package/dist/components/BorderedBackground/BorderedBackground.js +1 -1
  33. package/dist/components/Button/Button.js +23 -16
  34. package/dist/components/ButtonGroup/ButtonGroup.js +11 -0
  35. package/dist/components/Container/Container.js +18 -15
  36. package/dist/components/Countdown/Countdown.js +35 -23
  37. package/dist/components/Fifty/Fifty.js +43 -34
  38. package/dist/components/FloatingWordsHero/FloatingWordsHero.js +60 -0
  39. package/dist/components/Footer/Footer.js +7 -7
  40. package/dist/components/GenericOverlay/GenericOverlay.js +7 -7
  41. package/dist/components/GridGallery/GridGallery.js +1 -1
  42. package/dist/components/HorizontalScrollImages/HorizontalScrollImages.js +13 -12
  43. package/dist/components/IconDetail/IconDetail.js +8 -8
  44. package/dist/components/ImageTextBlock/ImageTextBlock.js +27 -24
  45. package/dist/components/List/List.js +8 -8
  46. package/dist/components/Map/Map.js +43 -0
  47. package/dist/components/Map/Map.stories.js +16 -0
  48. package/dist/components/MenuButton/MenuButton.js +1 -1
  49. package/dist/components/Navbar/Navbar.js +61 -54
  50. package/dist/components/Note/Note.js +26 -22
  51. package/dist/components/Overlay/Overlay.js +1 -1
  52. package/dist/components/OverlayHero/OverlayHero.js +63 -21
  53. package/dist/components/PageContainer/PageContainer.js +6 -6
  54. package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +4 -3
  55. package/dist/components/PinnedImage/PinnedImage.js +34 -33
  56. package/dist/components/PromoGroup/PromoGroup.js +100 -51
  57. package/dist/components/RSVPEmbed/RSVPEmbed.js +9 -8
  58. package/dist/components/Schedule/Schedule.js +6 -6
  59. package/dist/components/Spacer/Spacer.js +6 -0
  60. package/dist/components/TextBlock/TextBlock.js +5 -5
  61. package/dist/components/Timeline/Timeline.js +12 -11
  62. package/dist/components/Toolbar/Toolbar.js +41 -13
  63. package/dist/hooks/useActiveSection 4.js +27 -0
  64. package/dist/hooks/useFadeIn 4.js +52 -0
  65. package/dist/hooks/useFadeIn.js +17 -16
  66. package/dist/hooks/useImageReveal 4.js +55 -0
  67. package/dist/hooks/useImageReveal.js +55 -0
  68. package/dist/hooks/useNavColor 4.js +15 -0
  69. package/dist/hooks/useRepeatable 4.js +32 -0
  70. package/dist/hooks/useResize 4.js +23 -0
  71. package/dist/hooks/useResize.js +11 -7
  72. package/dist/hooks/useResponsive 4.js +15 -0
  73. package/dist/hooks/useReveal 4.js +38 -0
  74. package/dist/hooks/useReveal.js +38 -0
  75. package/dist/hooks/useStagger 4.js +43 -0
  76. package/dist/hooks/useStagger.js +43 -0
  77. package/dist/index 2.js +50 -0
  78. package/dist/{index-BIlioXmW.js → index-B2JRaoNz 4.js } +2 -1
  79. package/dist/index-B2JRaoNz.js +48 -0
  80. package/dist/index-BmTo-IS6 4.js +2018 -0
  81. package/dist/index-BmTo-IS6.js +2018 -0
  82. package/dist/index-DyQs5aC7 4.js +388 -0
  83. package/dist/{index-BlCqcUwj.js → index-K0WrPJ_C 4.js } +1 -1
  84. package/dist/index-K0WrPJ_C.js +29 -0
  85. package/dist/index.js +42 -46
  86. package/dist/index.modern-DPbS1w7M 4.js +1443 -0
  87. package/dist/index.modern-DPbS1w7M.js +1443 -0
  88. package/dist/presets/animations 4.js +24 -0
  89. package/dist/presets/animations.js +24 -0
  90. package/dist/utils/breakpoints 4.js +8 -0
  91. package/dist/utils/gsapSetup 4.js +8 -0
  92. package/dist/utils/gsapSetup.js +4 -3
  93. package/dist/utils/parse 4.js +12 -0
  94. package/dist/utils/parse.js +7 -7
  95. package/package.json +9 -4
  96. package/src/styles/_breakpoints.scss +107 -0
  97. package/src/styles/_colors.scss +50 -0
  98. package/src/styles/_fonts.scss +238 -0
  99. package/src/styles/_mixins.scss +114 -0
  100. package/src/styles/_reveal.scss +93 -0
  101. package/src/styles/_sizes.scss +192 -0
  102. package/src/styles/globals.scss +77 -0
  103. package/src/styles/index.scss +1 -0
  104. package/src/styles/variables.module.scss +20 -0
  105. package/dist/Particles-CKNJUrOc.js +0 -2789
  106. package/dist/ScrollTrigger-DDbij8gI.js +0 -3102
  107. package/dist/components/ParticleBackground/ParticleBackground.js +0 -31
@@ -0,0 +1,23 @@
1
+ import { useState as t, useEffect as r } from "react";
2
+ const s = () => {
3
+ const [i, e] = t({
4
+ innerWidth: void 0,
5
+ innerHeight: void 0
6
+ });
7
+ return r(() => {
8
+ e({
9
+ innerWidth: window.innerWidth,
10
+ innerHeight: window.innerHeight
11
+ });
12
+ const n = () => {
13
+ e({
14
+ innerWidth: window.innerWidth,
15
+ innerHeight: window.innerHeight
16
+ });
17
+ };
18
+ return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
19
+ }, []), i;
20
+ };
21
+ export {
22
+ s as default
23
+ };
@@ -1,19 +1,23 @@
1
1
  import { useState as t, useEffect as r } from "react";
2
- const o = () => {
3
- const [e, i] = t({
4
- innerWidth: typeof window < "u" && window.innerWidth,
5
- innerHeight: typeof window < "u" && window.innerHeight
2
+ const s = () => {
3
+ const [i, e] = t({
4
+ innerWidth: void 0,
5
+ innerHeight: void 0
6
6
  });
7
7
  return r(() => {
8
+ e({
9
+ innerWidth: window.innerWidth,
10
+ innerHeight: window.innerHeight
11
+ });
8
12
  const n = () => {
9
- i({
13
+ e({
10
14
  innerWidth: window.innerWidth,
11
15
  innerHeight: window.innerHeight
12
16
  });
13
17
  };
14
18
  return window.addEventListener("resize", n), () => window.removeEventListener("resize", n);
15
- }, [e]), e;
19
+ }, []), i;
16
20
  };
17
21
  export {
18
- o as default
22
+ s as default
19
23
  };
@@ -0,0 +1,15 @@
1
+ import { useState as u, useEffect as f } from "react";
2
+ import c from "./useResize.js";
3
+ const a = (s) => {
4
+ const [e, o] = u(!1), r = c(), { innerWidth: t, innerHeight: i } = r;
5
+ return f(() => {
6
+ const n = s({
7
+ innerWidth: t,
8
+ innerHeight: i
9
+ });
10
+ n !== e && o(n);
11
+ }, [e, t, i, s]), e;
12
+ };
13
+ export {
14
+ a as default
15
+ };
@@ -0,0 +1,38 @@
1
+ import { useRef as g, useEffect as d } from "react";
2
+ import { g as r } from "../index-BmTo-IS6.js";
3
+ import { S as s } from "../ScrollTrigger-6HnikosL.js";
4
+ function h(o = {}) {
5
+ const t = g(null);
6
+ return d(() => {
7
+ const e = t.current;
8
+ if (!e) return;
9
+ const {
10
+ from: c = { opacity: 0, y: 30 },
11
+ to: n = { opacity: 1, y: 0, duration: 0.6, ease: "power2.out" },
12
+ start: i = "top 85%",
13
+ once: f = !0,
14
+ delay: a = 0
15
+ } = o, l = window.matchMedia(
16
+ "(prefers-reduced-motion: reduce)"
17
+ ).matches, u = r.context(() => {
18
+ if (l) {
19
+ r.set(e, n);
20
+ return;
21
+ }
22
+ r.fromTo(e, c, {
23
+ ...n,
24
+ delay: a,
25
+ scrollTrigger: {
26
+ trigger: o.trigger ?? e,
27
+ start: i,
28
+ toggleActions: f ? "play none none none" : "play none none reverse",
29
+ onEnter: () => console.log("ScrollTrigger fired for:", e)
30
+ }
31
+ });
32
+ });
33
+ return window.addEventListener("load", () => s.refresh()), setTimeout(() => s.refresh(), 500), () => u.revert();
34
+ }, []), t;
35
+ }
36
+ export {
37
+ h as useReveal
38
+ };
@@ -0,0 +1,38 @@
1
+ import { useRef as g, useEffect as d } from "react";
2
+ import { g as r } from "../index-BmTo-IS6.js";
3
+ import { S as s } from "../ScrollTrigger-6HnikosL.js";
4
+ function h(o = {}) {
5
+ const t = g(null);
6
+ return d(() => {
7
+ const e = t.current;
8
+ if (!e) return;
9
+ const {
10
+ from: c = { opacity: 0, y: 30 },
11
+ to: n = { opacity: 1, y: 0, duration: 0.6, ease: "power2.out" },
12
+ start: i = "top 85%",
13
+ once: f = !0,
14
+ delay: a = 0
15
+ } = o, l = window.matchMedia(
16
+ "(prefers-reduced-motion: reduce)"
17
+ ).matches, u = r.context(() => {
18
+ if (l) {
19
+ r.set(e, n);
20
+ return;
21
+ }
22
+ r.fromTo(e, c, {
23
+ ...n,
24
+ delay: a,
25
+ scrollTrigger: {
26
+ trigger: o.trigger ?? e,
27
+ start: i,
28
+ toggleActions: f ? "play none none none" : "play none none reverse",
29
+ onEnter: () => console.log("ScrollTrigger fired for:", e)
30
+ }
31
+ });
32
+ });
33
+ return window.addEventListener("load", () => s.refresh()), setTimeout(() => s.refresh(), 500), () => u.revert();
34
+ }, []), t;
35
+ }
36
+ export {
37
+ h as useReveal
38
+ };
@@ -0,0 +1,43 @@
1
+ import { useRef as g, useEffect as l } from "react";
2
+ import { g as e } from "../index-BmTo-IS6.js";
3
+ function y(c, i = {}, n = {}, r = !0) {
4
+ const o = g(null);
5
+ return l(() => {
6
+ if (!r) return;
7
+ const t = o.current;
8
+ if (!t) return;
9
+ const u = window.matchMedia(
10
+ "(prefers-reduced-motion: reduce)"
11
+ ).matches, { scrollTrigger: a, ...f } = n, p = e.context(() => {
12
+ const s = e.utils.toArray(c, t);
13
+ if (u) {
14
+ e.set(s, { opacity: 1, y: 0, scale: 1 });
15
+ return;
16
+ }
17
+ e.fromTo(
18
+ s,
19
+ { opacity: 0, y: 20, scale: 0.98, ...i },
20
+ {
21
+ opacity: 1,
22
+ y: 0,
23
+ scale: 1,
24
+ stagger: 0.1,
25
+ duration: 0.5,
26
+ ease: "power2.out",
27
+ ...f,
28
+ scrollTrigger: {
29
+ trigger: t,
30
+ // ← always keep el as trigger
31
+ start: "top 85%",
32
+ ...a
33
+ // ← merge in start/other overrides on top
34
+ }
35
+ }
36
+ );
37
+ }, t);
38
+ return () => p.revert();
39
+ }, [r]), o;
40
+ }
41
+ export {
42
+ y as useStagger
43
+ };
@@ -0,0 +1,43 @@
1
+ import { useRef as g, useEffect as l } from "react";
2
+ import { g as e } from "../index-BmTo-IS6.js";
3
+ function y(c, i = {}, n = {}, r = !0) {
4
+ const o = g(null);
5
+ return l(() => {
6
+ if (!r) return;
7
+ const t = o.current;
8
+ if (!t) return;
9
+ const u = window.matchMedia(
10
+ "(prefers-reduced-motion: reduce)"
11
+ ).matches, { scrollTrigger: a, ...f } = n, p = e.context(() => {
12
+ const s = e.utils.toArray(c, t);
13
+ if (u) {
14
+ e.set(s, { opacity: 1, y: 0, scale: 1 });
15
+ return;
16
+ }
17
+ e.fromTo(
18
+ s,
19
+ { opacity: 0, y: 20, scale: 0.98, ...i },
20
+ {
21
+ opacity: 1,
22
+ y: 0,
23
+ scale: 1,
24
+ stagger: 0.1,
25
+ duration: 0.5,
26
+ ease: "power2.out",
27
+ ...f,
28
+ scrollTrigger: {
29
+ trigger: t,
30
+ // ← always keep el as trigger
31
+ start: "top 85%",
32
+ ...a
33
+ // ← merge in start/other overrides on top
34
+ }
35
+ }
36
+ );
37
+ }, t);
38
+ return () => p.revert();
39
+ }, [r]), o;
40
+ }
41
+ export {
42
+ y as useStagger
43
+ };
@@ -0,0 +1,50 @@
1
+ import { default as r } from "./components/PromoGroup/PromoGroup.js";
2
+ import { default as t } from "./components/Background/Background.js";
3
+ import { default as l } from "./components/Banner/Banner.js";
4
+ import { default as d } from "./components/Button/Button.js";
5
+ import { default as p } from "./components/Container/Container.js";
6
+ import { default as s } from "./components/Fifty/Fifty.js";
7
+ import { default as c } from "./components/Footer/Footer.js";
8
+ import { default as B } from "./components/ImageTextBlock/ImageTextBlock.js";
9
+ import { default as y } from "./components/OverlayHero/OverlayHero.js";
10
+ import { default as g } from "./components/Note/Note.js";
11
+ import { default as F } from "./components/MenuButton/MenuButton.js";
12
+ import { default as S } from "./components/Navbar/Navbar.js";
13
+ import { default as C } from "./components/IconDetail/IconDetail.js";
14
+ import { default as H } from "./components/Overlay/Overlay.js";
15
+ import { default as M } from "./components/GenericOverlay/GenericOverlay.js";
16
+ import { default as P } from "./components/Toolbar/Toolbar.js";
17
+ import { default as w } from "./components/TextBlock/TextBlock.js";
18
+ import { default as D } from "./components/RSVPEmbed/RSVPEmbed.js";
19
+ import { default as R } from "./components/Accordion/Accordion.js";
20
+ import { default as W } from "./components/Schedule/Schedule.js";
21
+ import { default as q } from "./components/Countdown/Countdown.js";
22
+ import { default as J } from "./components/FloatingWordsHero/FloatingWordsHero.js";
23
+ import { default as L } from "./components/Map/Map.js";
24
+ import { default as U } from "./components/Spacer/Spacer.js";
25
+ export {
26
+ R as Accordion,
27
+ t as Background,
28
+ l as Banner,
29
+ d as Button,
30
+ p as Container,
31
+ q as Countdown,
32
+ s as Fifty,
33
+ J as FloatingWordsHero,
34
+ c as Footer,
35
+ M as GenericOverlay,
36
+ C as IconDetail,
37
+ B as ImageTextBlock,
38
+ L as Map,
39
+ F as MenuButton,
40
+ S as Navbar,
41
+ g as Note,
42
+ H as Overlay,
43
+ y as OverlayHero,
44
+ r as PromoGroup,
45
+ D as RSVPEmbed,
46
+ W as Schedule,
47
+ U as Spacer,
48
+ w as TextBlock,
49
+ P as Toolbar
50
+ };
@@ -43,5 +43,6 @@ function p() {
43
43
  var l = p();
44
44
  const m = /* @__PURE__ */ c(l);
45
45
  export {
46
- m as c
46
+ m as c,
47
+ c as g
47
48
  };
@@ -0,0 +1,48 @@
1
+ function c(e) {
2
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
+ }
4
+ var o = { exports: {} };
5
+ /*!
6
+ Copyright (c) 2018 Jed Watson.
7
+ Licensed under the MIT License (MIT), see
8
+ http://jedwatson.github.io/classnames
9
+ */
10
+ var i;
11
+ function p() {
12
+ return i || (i = 1, (function(e) {
13
+ (function() {
14
+ var u = {}.hasOwnProperty;
15
+ function s() {
16
+ for (var t = "", r = 0; r < arguments.length; r++) {
17
+ var n = arguments[r];
18
+ n && (t = a(t, f(n)));
19
+ }
20
+ return t;
21
+ }
22
+ function f(t) {
23
+ if (typeof t == "string" || typeof t == "number")
24
+ return t;
25
+ if (typeof t != "object")
26
+ return "";
27
+ if (Array.isArray(t))
28
+ return s.apply(null, t);
29
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]"))
30
+ return t.toString();
31
+ var r = "";
32
+ for (var n in t)
33
+ u.call(t, n) && t[n] && (r = a(r, n));
34
+ return r;
35
+ }
36
+ function a(t, r) {
37
+ return r ? t ? t + " " + r : t + r : t;
38
+ }
39
+ e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
40
+ })();
41
+ })(o)), o.exports;
42
+ }
43
+ var l = p();
44
+ const m = /* @__PURE__ */ c(l);
45
+ export {
46
+ m as c,
47
+ c as g
48
+ };