@courtneyring/components-library 1.0.36 → 1.0.37
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/AccordionItem-DUGBw5pW.js +40 -0
- package/dist/ScrollTrigger-6HnikosL.js +1086 -0
- package/dist/animations/FadeIn.js +34 -0
- package/dist/animations/FadeInMotion.js +4805 -0
- package/dist/assets/Background.css +1 -0
- package/dist/assets/Banner.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/ButtonGroup.css +1 -0
- package/dist/assets/Container.css +1 -0
- package/dist/assets/Countdown.css +1 -0
- package/dist/assets/Fifty.css +1 -0
- package/dist/assets/FloatingWordsHero.css +1 -0
- package/dist/assets/Footer.css +1 -0
- package/dist/assets/GridGallery.css +1 -0
- package/dist/assets/HorizontalScrollImages.css +1 -0
- package/dist/assets/IconDetail.css +1 -0
- package/dist/assets/ImageTextBlock.css +1 -0
- package/dist/assets/List.css +1 -0
- package/dist/assets/Map.css +1 -0
- package/dist/assets/MenuButton.css +1 -0
- package/dist/assets/Navbar.css +1 -0
- package/dist/assets/Note.css +1 -0
- package/dist/assets/Overlay.css +1 -0
- package/dist/assets/PageContainer.css +1 -0
- package/dist/assets/ParallaxImageGrid.css +1 -0
- package/dist/assets/PromoGroup.css +1 -0
- package/dist/assets/TextBlock.css +1 -0
- package/dist/assets/Timeline.css +1 -0
- package/dist/assets/Toolbar.css +1 -0
- package/dist/assets/icons/checkmark.svg +3 -0
- package/dist/components/Accordion/Accordion.js +33 -0
- package/dist/components/Accordion/AccordionItem.js +8 -0
- package/dist/components/Background/Background.js +59 -0
- package/dist/components/Banner/Banner.js +23 -0
- package/dist/components/Button/Button.js +44 -0
- package/dist/components/ButtonGroup/ButtonGroup.js +11 -0
- package/dist/components/Countdown/Countdown.js +41 -0
- package/dist/components/Fifty/Fifty.js +55 -0
- package/dist/components/Fifty/Fifty.stories.js +32 -0
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +60 -0
- package/dist/components/IconDetail/IconDetail.js +14 -0
- package/dist/components/ImageTextBlock/ImageTextBlock.js +36 -0
- package/dist/components/Navbar/Navbar.js +98 -0
- package/dist/components/Note/Note.js +30 -0
- package/dist/components/OverlayHero/OverlayHero.js +67 -0
- package/dist/components/PageContainer/PageContainer.js +39 -0
- package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +92 -0
- package/dist/components/PromoGroup/PromoGroup.js +107 -0
- package/dist/components/Schedule/Schedule.js +24 -0
- package/dist/components/Spacer/Spacer.js +6 -0
- package/dist/components/TextBlock/TextBlock.js +27 -0
- package/dist/components/Timeline/Timeline.js +54 -0
- package/dist/hooks/useActiveSection.js +27 -0
- package/dist/hooks/useFadeIn.js +52 -0
- package/dist/hooks/useImageReveal.js +55 -0
- package/dist/hooks/useNavColor.js +15 -0
- package/dist/hooks/useRepeatable.js +32 -0
- package/dist/hooks/useResize.js +23 -0
- package/dist/hooks/useResponsive.js +15 -0
- package/dist/hooks/useReveal.js +38 -0
- package/dist/hooks/useStagger.js +43 -0
- package/dist/index-B2JRaoNz.js +48 -0
- package/dist/index-BmTo-IS6.js +2018 -0
- package/dist/index-DyQs5aC7.js +388 -0
- package/dist/index-K0WrPJ_C.js +29 -0
- package/dist/index.js +50 -0
- package/dist/index.modern-DPbS1w7M.js +1443 -0
- package/dist/presets/animations.js +24 -0
- package/dist/utils/breakpoints.js +8 -0
- package/dist/utils/gsapSetup.js +8 -0
- package/dist/utils/parse.js +12 -0
- package/package.json +1 -1
- /package/dist/components/{GenericOverlay 6 → GenericOverlay}/GenericOverlay.js +0 -0
- /package/dist/components/{PinnedImage 8 → PinnedImage}/PinnedImage.js +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as f, useLayoutEffect as u, useEffect as a } from "react";
|
|
3
|
+
import { g as e } from "../index-BmTo-IS6.js";
|
|
4
|
+
import { isMobile as p } from "../utils/breakpoints.js";
|
|
5
|
+
import m from "../hooks/useResponsive.js";
|
|
6
|
+
import { S as l } from "../ScrollTrigger-6HnikosL.js";
|
|
7
|
+
e.registerPlugin(l);
|
|
8
|
+
const v = ({ children: r, className: o, excludeTranslate: s }) => {
|
|
9
|
+
const i = m(p), t = f();
|
|
10
|
+
return (typeof window < "u" ? u : a)(() => {
|
|
11
|
+
let c = e.context(() => {
|
|
12
|
+
e.to(t.current, {
|
|
13
|
+
opacity: 1,
|
|
14
|
+
y: "0",
|
|
15
|
+
duration: 0.5,
|
|
16
|
+
scrollTrigger: {
|
|
17
|
+
trigger: t.current,
|
|
18
|
+
start: i ? "top center" : "top top+=70%"
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
return () => () => c.revert();
|
|
23
|
+
}, []), /* @__PURE__ */ n(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
ref: t,
|
|
27
|
+
className: `opacity-0 ${!s && "translate-y-3"} ${o}`,
|
|
28
|
+
children: r
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
v as default
|
|
34
|
+
};
|