@courtneyring/components-library 1.0.34 → 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.
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/RSVPEmbed.css +1 -1
- package/dist/assets/Schedule.css +1 -1
- package/dist/components/Container/Container.js +12 -12
- package/dist/components/Footer/Footer.js +6 -6
- package/dist/components/GenericOverlay 6/GenericOverlay.js +21 -0
- package/dist/components/GridGallery/GridGallery.js +9 -9
- package/dist/components/List/List.js +12 -12
- package/dist/components/Map/Map.js +14 -14
- package/dist/components/Overlay/Overlay.js +31 -31
- package/dist/components/{PinnedImage/PinnedImage.js → PinnedImage 8/PinnedImage.js } +25 -25
- package/dist/components/RSVPEmbed/RSVPEmbed.js +1 -1
- package/package.json +1 -1
- package/src/styles/_breakpoints.scss +1 -1
- package/dist/AccordionItem-BnGlD8YU.js +0 -40
- package/dist/ScrollTrigger-6HnikosL.js +0 -1086
- package/dist/animations/FadeIn.js +0 -34
- package/dist/animations/FadeInMotion.js +0 -4805
- package/dist/assets/Background.css +0 -1
- package/dist/assets/Banner.css +0 -1
- package/dist/assets/Button.css +0 -1
- package/dist/assets/ButtonGroup.css +0 -1
- package/dist/assets/Container.css +0 -1
- package/dist/assets/Countdown.css +0 -1
- package/dist/assets/Fifty.css +0 -1
- package/dist/assets/FloatingWordsHero.css +0 -1
- package/dist/assets/Footer.css +0 -1
- package/dist/assets/GridGallery.css +0 -1
- package/dist/assets/HorizontalScrollImages.css +0 -1
- package/dist/assets/IconDetail.css +0 -1
- package/dist/assets/ImageTextBlock.css +0 -1
- package/dist/assets/List.css +0 -1
- package/dist/assets/Map.css +0 -1
- package/dist/assets/MenuButton.css +0 -1
- package/dist/assets/Navbar.css +0 -1
- package/dist/assets/Note.css +0 -1
- package/dist/assets/Overlay.css +0 -1
- package/dist/assets/PageContainer.css +0 -1
- package/dist/assets/ParallaxImageGrid.css +0 -1
- package/dist/assets/PromoGroup.css +0 -1
- package/dist/assets/TextBlock.css +0 -1
- package/dist/assets/Timeline.css +0 -1
- package/dist/assets/Toolbar.css +0 -1
- package/dist/assets/icons/checkmark.svg +0 -3
- package/dist/components/Accordion/Accordion.js +0 -33
- package/dist/components/Accordion/AccordionItem.js +0 -8
- package/dist/components/Background/Background.js +0 -59
- package/dist/components/Banner/Banner.js +0 -23
- package/dist/components/Button/Button.js +0 -44
- package/dist/components/ButtonGroup/ButtonGroup.js +0 -11
- package/dist/components/Countdown/Countdown.js +0 -41
- package/dist/components/Fifty/Fifty.js +0 -55
- package/dist/components/Fifty/Fifty.stories.js +0 -32
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +0 -60
- package/dist/components/GenericOverlay/GenericOverlay.js +0 -21
- package/dist/components/IconDetail/IconDetail.js +0 -14
- package/dist/components/ImageTextBlock/ImageTextBlock.js +0 -36
- package/dist/components/Navbar/Navbar.js +0 -98
- package/dist/components/Note/Note.js +0 -30
- package/dist/components/OverlayHero/OverlayHero.js +0 -67
- package/dist/components/PageContainer/PageContainer.js +0 -39
- package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +0 -92
- package/dist/components/PromoGroup/PromoGroup.js +0 -106
- package/dist/components/Schedule/Schedule.js +0 -24
- package/dist/components/Spacer/Spacer.js +0 -6
- package/dist/components/TextBlock/TextBlock.js +0 -27
- package/dist/components/Timeline/Timeline.js +0 -54
- package/dist/hooks/useActiveSection.js +0 -27
- package/dist/hooks/useFadeIn.js +0 -52
- package/dist/hooks/useImageReveal.js +0 -55
- package/dist/hooks/useNavColor.js +0 -15
- package/dist/hooks/useRepeatable.js +0 -32
- package/dist/hooks/useResize.js +0 -23
- package/dist/hooks/useResponsive.js +0 -15
- package/dist/hooks/useReveal.js +0 -38
- package/dist/hooks/useStagger.js +0 -43
- package/dist/index-B2JRaoNz 2.js +0 -48
- package/dist/index-B2JRaoNz.js +0 -48
- package/dist/index-BmTo-IS6.js +0 -2018
- package/dist/index-DyQs5aC7 3.js +0 -388
- package/dist/index-DyQs5aC7.js +0 -388
- package/dist/index-K0WrPJ_C.js +0 -29
- package/dist/index.js +0 -50
- package/dist/index.modern-DPbS1w7M.js +0 -1443
- package/dist/presets/animations 3.js +0 -24
- package/dist/presets/animations.js +0 -24
- package/dist/utils/breakpoints 3.js +0 -8
- package/dist/utils/breakpoints.js +0 -8
- package/dist/utils/gsapSetup 3.js +0 -8
- package/dist/utils/gsapSetup.js +0 -8
- package/dist/utils/parse 3.js +0 -12
- package/dist/utils/parse.js +0 -12
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { useRef as d, useEffect as g } from "react";
|
|
2
|
-
import { g as r } from "../index-BmTo-IS6.js";
|
|
3
|
-
import { S as n } from "../ScrollTrigger-6HnikosL.js";
|
|
4
|
-
function T(s = {}) {
|
|
5
|
-
const t = d(null);
|
|
6
|
-
return g(() => {
|
|
7
|
-
const o = t.current;
|
|
8
|
-
if (!o) return;
|
|
9
|
-
const {
|
|
10
|
-
start: i = "top 85%",
|
|
11
|
-
once: c = !0,
|
|
12
|
-
duration: a = 2,
|
|
13
|
-
ease: l = "power2.out",
|
|
14
|
-
color: u = "#ffffff"
|
|
15
|
-
} = s, f = window.matchMedia(
|
|
16
|
-
"(prefers-reduced-motion: reduce)"
|
|
17
|
-
).matches, e = document.createElement("div");
|
|
18
|
-
e.style.cssText = `
|
|
19
|
-
position: absolute;
|
|
20
|
-
inset: 0;
|
|
21
|
-
background: ${u};
|
|
22
|
-
z-index: 1;
|
|
23
|
-
pointer-events: none;
|
|
24
|
-
`, o.style.position = "relative", o.appendChild(e);
|
|
25
|
-
const m = r.context(() => {
|
|
26
|
-
if (f) {
|
|
27
|
-
e.remove();
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
r.fromTo(
|
|
31
|
-
e,
|
|
32
|
-
{ opacity: 1 },
|
|
33
|
-
{
|
|
34
|
-
opacity: 0,
|
|
35
|
-
duration: a,
|
|
36
|
-
ease: l,
|
|
37
|
-
scrollTrigger: {
|
|
38
|
-
trigger: o,
|
|
39
|
-
start: i,
|
|
40
|
-
toggleActions: c ? "play none none none" : "play none none reverse"
|
|
41
|
-
},
|
|
42
|
-
onComplete: () => e.remove()
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
});
|
|
46
|
-
window.addEventListener("load", () => n.refresh());
|
|
47
|
-
const p = setTimeout(() => n.refresh(), 500);
|
|
48
|
-
return () => {
|
|
49
|
-
m.revert(), e.remove(), clearTimeout(p);
|
|
50
|
-
};
|
|
51
|
-
}, []), t;
|
|
52
|
-
}
|
|
53
|
-
export {
|
|
54
|
-
T as useImageReveal
|
|
55
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useState as e, useEffect as n } from "react";
|
|
2
|
-
let o = null;
|
|
3
|
-
function a(t = "color-neutral-light") {
|
|
4
|
-
const [r, l] = e(t);
|
|
5
|
-
return n(() => (o = l, () => {
|
|
6
|
-
o === l && (o = null);
|
|
7
|
-
}), []), [r, l];
|
|
8
|
-
}
|
|
9
|
-
function f(t) {
|
|
10
|
-
o && o(t);
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
f as notifyNavColor,
|
|
14
|
-
a as useNavColor
|
|
15
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { useState as k, useEffect as j } from "react";
|
|
2
|
-
const L = ({ componentType: o, copy: l, length: a }) => {
|
|
3
|
-
const [f, i] = k([]), b = {
|
|
4
|
-
promo: {
|
|
5
|
-
header: "Header",
|
|
6
|
-
body: "Body",
|
|
7
|
-
linkUrl: "LinkUrl",
|
|
8
|
-
linkLabel: "LinkLabel",
|
|
9
|
-
icon: "Icon"
|
|
10
|
-
},
|
|
11
|
-
textBlock: {
|
|
12
|
-
title: "Title",
|
|
13
|
-
body: "Body"
|
|
14
|
-
}
|
|
15
|
-
}, n = ({ componentType: e, copy: t, i: r }) => {
|
|
16
|
-
let u = b[`${e}`], s = {};
|
|
17
|
-
for (let [d, c] of Object.entries(u))
|
|
18
|
-
s[d] = t[`${e}${c}${r + 1}`];
|
|
19
|
-
return s;
|
|
20
|
-
};
|
|
21
|
-
return j(() => {
|
|
22
|
-
let e = [];
|
|
23
|
-
for (let t = 0; t < a; t++) {
|
|
24
|
-
let r = n({ componentType: o, copy: l, i: t });
|
|
25
|
-
e.push(r);
|
|
26
|
-
}
|
|
27
|
-
i(e);
|
|
28
|
-
}, [o, l, a]), f;
|
|
29
|
-
};
|
|
30
|
-
export {
|
|
31
|
-
L as default
|
|
32
|
-
};
|
package/dist/hooks/useResize.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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,15 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/hooks/useReveal.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/hooks/useStagger.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/index-B2JRaoNz 2.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/index-B2JRaoNz.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
};
|