@courtneyring/components-library 1.0.31 → 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.
- package/dist/AccordionItem-CDN4L4a7.js +40 -0
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Background.css +1 -1
- package/dist/assets/Banner.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/Countdown.css +1 -1
- package/dist/assets/Fifty.css +1 -1
- package/dist/assets/FloatingWordsHero.css +1 -1
- package/dist/assets/Footer.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/IconDetail.css +1 -1
- package/dist/assets/ImageTextBlock.css +1 -1
- package/dist/assets/List.css +1 -1
- package/dist/assets/Map.css +1 -1
- package/dist/assets/MenuButton.css +1 -1
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Note.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PageContainer.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/assets/RSVPEmbed.css +1 -1
- package/dist/assets/Schedule.css +1 -1
- package/dist/assets/TextBlock.css +1 -1
- package/dist/components/Accordion/Accordion.js +21 -14
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Background/Background.js +6 -6
- package/dist/components/Banner/Banner.js +15 -15
- package/dist/components/Button/Button.js +29 -29
- package/dist/components/ButtonGroup/ButtonGroup.js +5 -4
- package/dist/components/Container/Container.js +13 -11
- package/dist/components/Countdown/Countdown.js +1 -1
- package/dist/components/Fifty/Fifty.js +24 -23
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +55 -25
- package/dist/components/Footer/Footer.js +6 -6
- package/dist/components/GenericOverlay/GenericOverlay.js +14 -14
- package/dist/components/IconDetail/IconDetail.js +3 -3
- package/dist/components/ImageTextBlock/ImageTextBlock.js +24 -23
- package/dist/components/List/List.js +12 -12
- package/dist/components/Map/Map.js +25 -23
- package/dist/components/MenuButton/MenuButton.js +21 -21
- package/dist/components/Navbar/Navbar.js +40 -40
- package/dist/components/Note/Note.js +14 -14
- package/dist/components/OverlayHero/OverlayHero.js +63 -21
- package/dist/components/PageContainer/PageContainer.js +6 -6
- package/dist/components/PinnedImage/PinnedImage.js +36 -36
- package/dist/components/PromoGroup/PromoGroup.js +46 -44
- package/dist/components/RSVPEmbed/RSVPEmbed.js +3 -3
- package/dist/components/Schedule/Schedule.js +12 -12
- package/dist/components/TextBlock/TextBlock.js +18 -18
- package/dist/components/Toolbar/Toolbar.js +16 -16
- package/dist/hooks/useImageReveal 4.js +55 -0
- package/dist/hooks/useImageReveal.js +55 -0
- package/dist/hooks/{useResize 2.js → useResize 4.js } +11 -7
- package/dist/hooks/useResize.js +11 -7
- package/dist/index 2.js +50 -0
- package/dist/index-BmTo-IS6 4.js +2018 -0
- package/dist/index-DyQs5aC7 4.js +388 -0
- package/dist/index-K0WrPJ_C 4.js +29 -0
- package/dist/index.modern-DPbS1w7M 4.js +1443 -0
- package/dist/presets/{animations 3.js → animations 4.js } +7 -2
- package/dist/presets/animations.js +7 -2
- package/package.json +3 -2
- package/src/styles/_fonts.scss +4 -7
- package/src/styles/_reveal.scss +93 -0
- package/src/styles/_sizes.scss +1 -0
- package/dist/AccordionItem-BlVXPxrh.js +0 -40
- /package/dist/hooks/{useActiveSection 2.js → useActiveSection 4.js} +0 -0
- /package/dist/hooks/{useFadeIn 2.js → useFadeIn 4.js} +0 -0
- /package/dist/hooks/{useNavColor 2.js → useNavColor 4.js} +0 -0
- /package/dist/hooks/{useRepeatable 2.js → useRepeatable 4.js} +0 -0
- /package/dist/hooks/{useResponsive 2.js → useResponsive 4.js} +0 -0
- /package/dist/hooks/{useReveal 2.js → useReveal 4.js} +0 -0
- /package/dist/hooks/{useStagger 2.js → useStagger 4.js} +0 -0
- /package/dist/{index-B2JRaoNz 2.js → index-B2JRaoNz 4.js} +0 -0
- /package/dist/utils/{breakpoints 3.js → breakpoints 4.js} +0 -0
- /package/dist/utils/{gsapSetup 3.js → gsapSetup 4.js} +0 -0
- /package/dist/utils/{parse 3.js → parse 4.js} +0 -0
|
@@ -4,16 +4,21 @@ const t = {
|
|
|
4
4
|
start: "top 78%"
|
|
5
5
|
}, o = {
|
|
6
6
|
from: { opacity: 0 },
|
|
7
|
-
to: { opacity: 1, duration:
|
|
7
|
+
to: { opacity: 1, duration: 1.5, ease: "power2.out" },
|
|
8
8
|
start: "top 78%"
|
|
9
9
|
}, a = {
|
|
10
10
|
from: { opacity: 0, y: 20 },
|
|
11
11
|
to: { opacity: 1, y: 0, duration: 0.7, ease: "power2.out" },
|
|
12
12
|
stagger: 0.1,
|
|
13
13
|
start: "top 80%"
|
|
14
|
+
}, e = {
|
|
15
|
+
from: { opacity: 0, filter: "brightness(2) saturate(0)" },
|
|
16
|
+
to: { opacity: 1, filter: "brightness(1) saturate(1)", duration: 1.2, ease: "power2.out" },
|
|
17
|
+
start: "top 85%"
|
|
14
18
|
};
|
|
15
19
|
export {
|
|
16
20
|
o as appleFade,
|
|
17
21
|
t as appleReveal,
|
|
18
|
-
a as appleStagger
|
|
22
|
+
a as appleStagger,
|
|
23
|
+
e as imageFadeFromWhite
|
|
19
24
|
};
|
|
@@ -4,16 +4,21 @@ const t = {
|
|
|
4
4
|
start: "top 78%"
|
|
5
5
|
}, o = {
|
|
6
6
|
from: { opacity: 0 },
|
|
7
|
-
to: { opacity: 1, duration:
|
|
7
|
+
to: { opacity: 1, duration: 1.5, ease: "power2.out" },
|
|
8
8
|
start: "top 78%"
|
|
9
9
|
}, a = {
|
|
10
10
|
from: { opacity: 0, y: 20 },
|
|
11
11
|
to: { opacity: 1, y: 0, duration: 0.7, ease: "power2.out" },
|
|
12
12
|
stagger: 0.1,
|
|
13
13
|
start: "top 80%"
|
|
14
|
+
}, e = {
|
|
15
|
+
from: { opacity: 0, filter: "brightness(2) saturate(0)" },
|
|
16
|
+
to: { opacity: 1, filter: "brightness(1) saturate(1)", duration: 1.2, ease: "power2.out" },
|
|
17
|
+
start: "top 85%"
|
|
14
18
|
};
|
|
15
19
|
export {
|
|
16
20
|
o as appleFade,
|
|
17
21
|
t as appleReveal,
|
|
18
|
-
a as appleStagger
|
|
22
|
+
a as appleStagger,
|
|
23
|
+
e as imageFadeFromWhite
|
|
19
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@courtneyring/components-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
|
-
"build": "vite build
|
|
20
|
+
"build": "vite build",
|
|
21
|
+
"watch": "rm -rf dist && vite build --watch",
|
|
21
22
|
"lint": "eslint .",
|
|
22
23
|
"preview": "vite preview",
|
|
23
24
|
"storybook": "storybook dev -p 6006",
|
package/src/styles/_fonts.scss
CHANGED
|
@@ -33,7 +33,7 @@ $type-scale: (
|
|
|
33
33
|
),
|
|
34
34
|
xl: (
|
|
35
35
|
font-size: 24px,
|
|
36
|
-
line-height: 1.5,
|
|
36
|
+
// line-height: 1.5,
|
|
37
37
|
),
|
|
38
38
|
xxl: (
|
|
39
39
|
line-height: 1.7,
|
|
@@ -122,12 +122,9 @@ $type-scale: (
|
|
|
122
122
|
md-portrait: (
|
|
123
123
|
font-size: 30px,
|
|
124
124
|
),
|
|
125
|
-
lg
|
|
126
|
-
font-size:
|
|
127
|
-
)
|
|
128
|
-
lg-landscape: (
|
|
129
|
-
font-size: 28px,
|
|
130
|
-
),
|
|
125
|
+
lg: (
|
|
126
|
+
font-size: 24px,
|
|
127
|
+
)
|
|
131
128
|
),
|
|
132
129
|
h4: (
|
|
133
130
|
xxs: (
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// _reveal.scss
|
|
2
|
+
// Mixins and base styles for useReveal, useRevealGroup, useRevealChildren
|
|
3
|
+
// ------------------------------------------------------------------
|
|
4
|
+
// Usage:
|
|
5
|
+
// @use "reveal";
|
|
6
|
+
//
|
|
7
|
+
// .myElement { @include reveal.fade-up; }
|
|
8
|
+
// .myElement { @include reveal.fade-in; }
|
|
9
|
+
// .myElement { @include reveal.fade-left; }
|
|
10
|
+
// .myElement { @include reveal.fade-right; }
|
|
11
|
+
// .myElement { @include reveal.scale-up; }
|
|
12
|
+
|
|
13
|
+
@mixin base {
|
|
14
|
+
transition-delay: var(--reveal-delay, 0s);
|
|
15
|
+
|
|
16
|
+
&.is-visible {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transform: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// Fade up (most common — replaces gsap y: 30)
|
|
23
|
+
@mixin fade-up($duration: 0.6s, $ease: ease, $distance: 30px) {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
transform: translateY($distance);
|
|
26
|
+
transition: opacity $duration $ease, transform $duration $ease;
|
|
27
|
+
@include base;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Fade in (opacity only)
|
|
31
|
+
@mixin fade-in($duration: 0.6s, $ease: ease) {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
transition: opacity $duration $ease;
|
|
34
|
+
@include base;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Fade from left
|
|
38
|
+
@mixin fade-left($duration: 0.6s, $ease: ease, $distance: 24px) {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
transform: translateX(-$distance);
|
|
41
|
+
transition: opacity $duration $ease, transform $duration $ease;
|
|
42
|
+
@include base;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Fade from right
|
|
46
|
+
@mixin fade-right($duration: 0.6s, $ease: ease, $distance: 24px) {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
transform: translateX($distance);
|
|
49
|
+
transition: opacity $duration $ease, transform $duration $ease;
|
|
50
|
+
@include base;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Scale up
|
|
54
|
+
@mixin scale-up($duration: 0.6s, $ease: ease, $from: 0.92) {
|
|
55
|
+
opacity: 0;
|
|
56
|
+
transform: scale($from);
|
|
57
|
+
transition: opacity $duration $ease, transform $duration $ease;
|
|
58
|
+
@include base;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Reduced motion override — put this once at the root level
|
|
62
|
+
@mixin reduced-motion-reset {
|
|
63
|
+
@media (prefers-reduced-motion: reduce) {
|
|
64
|
+
* {
|
|
65
|
+
animation-duration: 0.01ms !important;
|
|
66
|
+
transition-duration: 0.01ms !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@mixin fade-from-white {
|
|
74
|
+
@keyframes fadeOutWhite {
|
|
75
|
+
0% {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
100% {
|
|
80
|
+
opacity: 0;
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&::before {
|
|
86
|
+
content: '';
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
background: white;
|
|
90
|
+
animation: fadeOutWhite 3s ease forwards;
|
|
91
|
+
z-index: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
package/src/styles/_sizes.scss
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import r from "./utils/parse.js";
|
|
3
|
-
import { c as t } from "./index-B2JRaoNz.js";
|
|
4
|
-
import './assets/AccordionItem.css';const s = "_accordion_1l59q_1", d = "_title_1l59q_8", l = "_accordion__item_1l59q_11", m = "_header_1l59q_14", p = "_accordion__icon_1l59q_101", b = "_open_1l59q_175", h = "_accordion__button_1l59q_179", q = "_accordion__content_1l59q_249", N = "_body_1l59q_257", o = {
|
|
5
|
-
accordion: s,
|
|
6
|
-
title: d,
|
|
7
|
-
accordion__item: l,
|
|
8
|
-
header: m,
|
|
9
|
-
accordion__icon: p,
|
|
10
|
-
open: b,
|
|
11
|
-
accordion__button: h,
|
|
12
|
-
accordion__content: q,
|
|
13
|
-
body: N
|
|
14
|
-
}, f = ({ title: a, body: i, toggleFn: e, isOpen: n }) => /* @__PURE__ */ _("div", { className: t(o.accordion__item, n && o.open), children: [
|
|
15
|
-
/* @__PURE__ */ _(
|
|
16
|
-
"button",
|
|
17
|
-
{
|
|
18
|
-
className: t(o.accordion__button),
|
|
19
|
-
onClick: () => e(!n),
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ _("div", { className: o.accordion__icon, children: [
|
|
22
|
-
/* @__PURE__ */ c("span", {}),
|
|
23
|
-
/* @__PURE__ */ c("span", { className: `${n ? o.open : ""}` })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ c("span", { className: o.title, children: a })
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ c(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
className: t(o.accordion__content, n && o.open),
|
|
33
|
-
children: /* @__PURE__ */ c("div", { className: o.body, children: r(i) })
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
37
|
-
export {
|
|
38
|
-
f as A,
|
|
39
|
-
o as s
|
|
40
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|