@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,107 +0,0 @@
1
- "use client";
2
- import { jsxs as n, Fragment as N, jsx as a } from "react/jsx-runtime";
3
- import { useMemo as q } from "react";
4
- import "../../index-K0WrPJ_C.js";
5
- import "../../hooks/useFadeIn.js";
6
- import f from "../Button/Button.js";
7
- import { appleStagger as r } from "../../presets/animations.js";
8
- import { c as m } from "../../index-B2JRaoNz.js";
9
- import "../OverlayHero/OverlayHero.js";
10
- import "../../index-DyQs5aC7.js";
11
- import { useStagger as y } from "../../hooks/useStagger.js";
12
- import "../FloatingWordsHero/FloatingWordsHero.js";
13
- import "../../index.modern-DPbS1w7M.js";
14
- import '../../assets/PromoGroup.css';const C = "_group_iq3ie_2", b = "_slider_iq3ie_27", x = "_header_iq3ie_33", v = "_promo_iq3ie_81", T = "_icon_iq3ie_131", $ = "_cta_iq3ie_141", j = "_imageContainer_iq3ie_149", F = "_image_iq3ie_149", k = "_promo__header_iq3ie_161", S = "_promo__body_iq3ie_253", z = "_stats_iq3ie_300", A = "_stat_iq3ie_300", B = "_statText_iq3ie_314", e = {
15
- group: C,
16
- slider: b,
17
- header: x,
18
- promo: v,
19
- icon: T,
20
- cta: $,
21
- imageContainer: j,
22
- image: F,
23
- promo__header: k,
24
- promo__body: S,
25
- stats: z,
26
- stat: A,
27
- statText: B,
28
- "count-4": "_count-4_iq3ie_381",
29
- "count-2": "_count-2_iq3ie_381"
30
- }, Q = ({ header: d, promos: i, direction: c = "vertical", slider: g }) => {
31
- const h = ["icon", "header", "body", "cta", "stats", "image"], p = y(`.${e.promo}`, r.from, {
32
- ...r.to,
33
- stagger: r.stagger,
34
- scrollTrigger: { start: r.start }
35
- }), l = q(() => {
36
- let t = 0;
37
- for (let s of h)
38
- i.some((o) => !!o[s]) && (t += 1);
39
- return t;
40
- }, [i]);
41
- return /* @__PURE__ */ n(N, { children: [
42
- /* @__PURE__ */ a("h2", { className: e.header, children: d }),
43
- /* @__PURE__ */ a(
44
- "div",
45
- {
46
- ref: p,
47
- className: m(
48
- e.group,
49
- e[`count-${i.length}`],
50
- g && e.slider
51
- ),
52
- style: {
53
- "--promos": i.length,
54
- "--propCount": c == "horizontal" ? l - 1 : l
55
- },
56
- children: i.map((t, s) => {
57
- const o = t.containerCta ? "a" : "div";
58
- return /* @__PURE__ */ n(
59
- o,
60
- {
61
- onClick: t.containerCta?.onClick || null,
62
- href: t.containerCta?.href || null,
63
- target: t.containerCta?.target || null,
64
- delay: 0.1 * s,
65
- className: e.promo,
66
- "data-color": t.color,
67
- "data-text-align": t.textAlign,
68
- "data-direction": c,
69
- children: [
70
- t.icon && /* @__PURE__ */ a(
71
- "span",
72
- {
73
- className: m(
74
- "material-symbols-outlined",
75
- e.icon,
76
- !t.icon && "hidden"
77
- ),
78
- children: t.icon
79
- }
80
- ),
81
- t.image && /* @__PURE__ */ a("div", { className: e.imageContainer, children: /* @__PURE__ */ a(
82
- "img",
83
- {
84
- style: { objectFit: t.imageFit },
85
- className: e.image,
86
- src: t.image
87
- }
88
- ) }),
89
- t.header && /* @__PURE__ */ a("h3", { className: e.promo__header, children: t.header }),
90
- /* @__PURE__ */ a("p", { className: e.promo__body, children: t.body }),
91
- t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(f, { ...t.cta }) }),
92
- t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_, u) => /* @__PURE__ */ n("div", { className: e.stat, children: [
93
- /* @__PURE__ */ a("span", { className: "material-symbols-outlined", children: _.icon }),
94
- /* @__PURE__ */ a("span", { className: e.statText, children: _.text })
95
- ] }, `stat-${u}`)) })
96
- ]
97
- },
98
- `promo-${s}`
99
- );
100
- })
101
- }
102
- )
103
- ] });
104
- };
105
- export {
106
- Q as default
107
- };
@@ -1,24 +0,0 @@
1
- "use client";
2
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
3
- import { Fragment as l } from "react";
4
- import '../../assets/Schedule.css';const n = "_schedule_rm7y9_2", a = "_timeline_rm7y9_79", r = "_time_rm7y9_79", o = "_dot_rm7y9_92", _ = "_diagram_rm7y9_100", h = "_line_rm7y9_106", e = {
5
- schedule: n,
6
- timeline: a,
7
- time: r,
8
- dot: o,
9
- diagram: _,
10
- line: h
11
- }, y = ({ slots: c, header: d }) => /* @__PURE__ */ s("div", { className: e.schedule, children: [
12
- /* @__PURE__ */ i("h3", { children: d }),
13
- /* @__PURE__ */ i("div", { className: e.timeline, children: c.map((m, t) => /* @__PURE__ */ s(l, { children: [
14
- /* @__PURE__ */ i("div", { className: e.time, children: m.time }),
15
- /* @__PURE__ */ s("div", { className: e.diagram, children: [
16
- /* @__PURE__ */ i("span", { className: e.line }),
17
- /* @__PURE__ */ i("div", { className: e.dot })
18
- ] }),
19
- /* @__PURE__ */ i("div", { className: e.description, children: m.description })
20
- ] }, t)) })
21
- ] });
22
- export {
23
- y as default
24
- };
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { jsx as e } from "react/jsx-runtime";
3
- const s = ({ height: r, className: t }) => /* @__PURE__ */ e("div", { style: { height: r }, className: t });
4
- export {
5
- s as default
6
- };
@@ -1,27 +0,0 @@
1
- "use client";
2
- import { jsxs as i, jsx as s } from "react/jsx-runtime";
3
- import { createElement as d } from "react";
4
- import n from "../../utils/parse.js";
5
- import m from "../IconDetail/IconDetail.js";
6
- import '../../assets/TextBlock.css';const _ = "_title_1iuzs_1", p = "_blocks_1iuzs_52", k = "_block_1iuzs_52", h = "_blockHeader_1iuzs_63", b = "_description_1iuzs_92", e = {
7
- title: _,
8
- blocks: p,
9
- block: k,
10
- blockHeader: h,
11
- description: b
12
- }, z = ({ header: l, blocks: t }) => /* @__PURE__ */ i("div", { className: e.container, children: [
13
- /* @__PURE__ */ s("h2", { className: e.title, children: l }),
14
- /* @__PURE__ */ s("div", { className: e.blocks, children: t.map((c, o) => (
15
- // <div className={styles.block} key={`block-${idx}`}>
16
- /* @__PURE__ */ i("div", { className: e.block, children: [
17
- /* @__PURE__ */ s("h3", { className: e.blockHeader, children: c.header }),
18
- /* @__PURE__ */ i("div", { className: e.content, children: [
19
- /* @__PURE__ */ s("div", { className: e.description, children: n(c.description) }),
20
- /* @__PURE__ */ s("div", { className: e.details, children: c.details && c.details.map((a, r) => /* @__PURE__ */ d(m, { ...a, key: r })) })
21
- ] })
22
- ] }, `block-${o}`)
23
- )) })
24
- ] });
25
- export {
26
- z as default
27
- };
@@ -1,54 +0,0 @@
1
- "use client";
2
- import { jsxs as l, Fragment as g, jsx as t } from "react/jsx-runtime";
3
- import { useRef as a, useEffect as f } from "react";
4
- import { g as o } from "../../index-BmTo-IS6.js";
5
- import { S as p } from "../../ScrollTrigger-6HnikosL.js";
6
- import '../../assets/Timeline.css';const h = "_spacer_1g76i_1", u = "_timelineWrapper_1g76i_6", x = "_linePin_1g76i_12", v = "_timelineLine_1g76i_22", N = "_items_1g76i_33", y = "_item_1g76i_33", P = "_text_1g76i_49", i = {
7
- spacer: h,
8
- timelineWrapper: u,
9
- linePin: x,
10
- timelineLine: v,
11
- items: N,
12
- item: y,
13
- text: P
14
- };
15
- o.registerPlugin(p);
16
- const W = [
17
- { year: "2019", text: "Started the journey" },
18
- { year: "2021", text: "Major milestone" },
19
- { year: "2024", text: "Where we are today" }
20
- ];
21
- function R() {
22
- const s = a(null), d = a(null), m = a(null);
23
- return f(() => {
24
- const e = window.innerHeight, c = o.context(() => {
25
- p.create({
26
- trigger: s.current,
27
- start: "top top",
28
- end: `+=${e * 2}`,
29
- // controls how long it stays pinned
30
- pin: d.current,
31
- scrub: !0,
32
- onUpdate: (_) => {
33
- const r = _.progress;
34
- let n;
35
- r < 0.25 ? n = r / 0.25 * 0.5 * e : r < 0.75 ? n = 0.5 * e : n = 0.5 * e + (r - 0.75) / 0.25 * 0.5 * e, o.set(m.current, { height: n });
36
- }
37
- });
38
- }, s);
39
- return () => c.revert();
40
- }, []), /* @__PURE__ */ l(g, { children: [
41
- /* @__PURE__ */ t("div", { className: i.spacer }),
42
- /* @__PURE__ */ l("section", { className: i.timelineWrapper, ref: s, children: [
43
- /* @__PURE__ */ t("div", { className: i.linePin, children: /* @__PURE__ */ t("div", { className: i.timelineLine, ref: m }) }),
44
- /* @__PURE__ */ t("div", { className: i.items, children: W.map((e, c) => /* @__PURE__ */ t("div", { className: i.item, children: /* @__PURE__ */ l("div", { className: i.text, children: [
45
- /* @__PURE__ */ t("h3", { children: e.year }),
46
- /* @__PURE__ */ t("p", { children: e.text })
47
- ] }) }, c)) })
48
- ] }),
49
- /* @__PURE__ */ t("div", { className: i.spacer })
50
- ] });
51
- }
52
- export {
53
- R as default
54
- };
@@ -1,27 +0,0 @@
1
- import { useState as s, useEffect as l } from "react";
2
- function a() {
3
- const [o, r] = s < string | null > null;
4
- return l(() => {
5
- const c = Array.from(
6
- document.querySelectorAll < HTMLElement > '[id^="section-"]'
7
- ), t = new IntersectionObserver(
8
- (e) => {
9
- e.forEach((n) => {
10
- if (n.isIntersecting) {
11
- const i = n.target.id.replace("section-", "");
12
- r(i);
13
- }
14
- });
15
- },
16
- {
17
- root: null,
18
- rootMargin: "-40% 0px -40% 0px",
19
- threshold: 0
20
- }
21
- );
22
- return c.forEach((e) => t.observe(e)), () => t.disconnect();
23
- }, []), o;
24
- }
25
- export {
26
- a as useActiveSection
27
- };
@@ -1,27 +0,0 @@
1
- import { useState as s, useEffect as l } from "react";
2
- function a() {
3
- const [o, r] = s < string | null > null;
4
- return l(() => {
5
- const c = Array.from(
6
- document.querySelectorAll < HTMLElement > '[id^="section-"]'
7
- ), t = new IntersectionObserver(
8
- (e) => {
9
- e.forEach((n) => {
10
- if (n.isIntersecting) {
11
- const i = n.target.id.replace("section-", "");
12
- r(i);
13
- }
14
- });
15
- },
16
- {
17
- root: null,
18
- rootMargin: "-40% 0px -40% 0px",
19
- threshold: 0
20
- }
21
- );
22
- return c.forEach((e) => t.observe(e)), () => t.disconnect();
23
- }, []), o;
24
- }
25
- export {
26
- a as useActiveSection
27
- };
@@ -1,52 +0,0 @@
1
- import { useRef as f } from "react";
2
- import { g as s } from "../index-BmTo-IS6.js";
3
- import { S as g } from "../ScrollTrigger-6HnikosL.js";
4
- import { u as m } from "../index-K0WrPJ_C.js";
5
- s.registerPlugin(g);
6
- function b({
7
- direction: u = "none",
8
- // 'up' | 'down' | 'left' | 'right' | 'none'
9
- distance: t = 40,
10
- duration: c = 0.8,
11
- delay: i = 0,
12
- ease: n = "power2.out",
13
- start: a = "top 85%",
14
- once: p = !0
15
- } = {}) {
16
- const r = f(null);
17
- return m(
18
- () => {
19
- if (!r.current) return;
20
- const e = { opacity: 0 }, o = {
21
- opacity: 1,
22
- duration: c,
23
- delay: i,
24
- ease: n,
25
- scrollTrigger: {
26
- trigger: r.current,
27
- start: a,
28
- once: p
29
- }
30
- };
31
- switch (u) {
32
- case "up":
33
- e.y = t, o.y = 0;
34
- break;
35
- case "down":
36
- e.y = -t, o.y = 0;
37
- break;
38
- case "left":
39
- e.x = t, o.x = 0;
40
- break;
41
- case "right":
42
- e.x = -t, o.x = 0;
43
- break;
44
- }
45
- s.fromTo(r.current, e, o);
46
- },
47
- { scope: r }
48
- ), r;
49
- }
50
- export {
51
- b as useFadeIn
52
- };
@@ -1,52 +0,0 @@
1
- import { useRef as f } from "react";
2
- import { g as s } from "../index-BmTo-IS6.js";
3
- import { S as g } from "../ScrollTrigger-6HnikosL.js";
4
- import { u as m } from "../index-K0WrPJ_C.js";
5
- s.registerPlugin(g);
6
- function b({
7
- direction: u = "none",
8
- // 'up' | 'down' | 'left' | 'right' | 'none'
9
- distance: t = 40,
10
- duration: c = 0.8,
11
- delay: i = 0,
12
- ease: n = "power2.out",
13
- start: a = "top 85%",
14
- once: p = !0
15
- } = {}) {
16
- const r = f(null);
17
- return m(
18
- () => {
19
- if (!r.current) return;
20
- const e = { opacity: 0 }, o = {
21
- opacity: 1,
22
- duration: c,
23
- delay: i,
24
- ease: n,
25
- scrollTrigger: {
26
- trigger: r.current,
27
- start: a,
28
- once: p
29
- }
30
- };
31
- switch (u) {
32
- case "up":
33
- e.y = t, o.y = 0;
34
- break;
35
- case "down":
36
- e.y = -t, o.y = 0;
37
- break;
38
- case "left":
39
- e.x = t, o.x = 0;
40
- break;
41
- case "right":
42
- e.x = -t, o.x = 0;
43
- break;
44
- }
45
- s.fromTo(r.current, e, o);
46
- },
47
- { scope: r }
48
- ), r;
49
- }
50
- export {
51
- b as useFadeIn
52
- };
@@ -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,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,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
- };
@@ -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
- };
@@ -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,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
- };
@@ -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
- };