@courtneyring/components-library 1.0.30 → 1.0.31
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-BlVXPxrh.js +40 -0
- package/dist/ScrollTrigger-6HnikosL.js +1086 -0
- package/dist/animations/FadeIn.js +8 -7
- 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/ButtonGroup.css +1 -0
- 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 -0
- 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 -0
- 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 +1 -1
- package/dist/components/Accordion/AccordionItem.js +2 -2
- package/dist/components/Background/Background.js +24 -22
- package/dist/components/Banner/Banner.js +16 -14
- package/dist/components/BorderedBackground/BorderedBackground.js +1 -1
- package/dist/components/Button/Button.js +34 -27
- package/dist/components/ButtonGroup/ButtonGroup.js +10 -0
- package/dist/components/Container/Container.js +18 -17
- package/dist/components/Countdown/Countdown.js +35 -23
- package/dist/components/Fifty/Fifty.js +41 -33
- package/dist/components/FloatingWordsHero/FloatingWordsHero.js +30 -0
- package/dist/components/Footer/Footer.js +9 -9
- package/dist/components/GenericOverlay/GenericOverlay.js +13 -13
- package/dist/components/GridGallery/GridGallery.js +1 -1
- package/dist/components/HorizontalScrollImages/HorizontalScrollImages.js +13 -12
- package/dist/components/IconDetail/IconDetail.js +8 -8
- package/dist/components/ImageTextBlock/ImageTextBlock.js +27 -25
- package/dist/components/List/List.js +15 -15
- package/dist/components/Map/Map.js +41 -0
- package/dist/components/Map/Map.stories.js +16 -0
- package/dist/components/MenuButton/MenuButton.js +21 -21
- package/dist/components/Navbar/Navbar.js +50 -43
- package/dist/components/Note/Note.js +26 -22
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/OverlayHero/OverlayHero.js +5 -5
- package/dist/components/PageContainer/PageContainer.js +5 -5
- package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +4 -3
- package/dist/components/PinnedImage/PinnedImage.js +34 -33
- package/dist/components/PromoGroup/PromoGroup.js +98 -51
- package/dist/components/RSVPEmbed/RSVPEmbed.js +9 -8
- package/dist/components/Schedule/Schedule.js +10 -10
- package/dist/components/Spacer/Spacer.js +6 -0
- package/dist/components/TextBlock/TextBlock.js +18 -18
- package/dist/components/Timeline/Timeline.js +12 -11
- package/dist/components/Toolbar/Toolbar.js +43 -15
- package/dist/hooks/useActiveSection 2.js +27 -0
- package/dist/hooks/useFadeIn 2.js +52 -0
- package/dist/hooks/useFadeIn.js +17 -16
- package/dist/hooks/useNavColor 2.js +15 -0
- package/dist/hooks/useRepeatable 2.js +32 -0
- package/dist/hooks/useResize 2.js +19 -0
- package/dist/hooks/useResponsive 2.js +15 -0
- package/dist/hooks/useReveal 2.js +38 -0
- package/dist/hooks/useReveal.js +38 -0
- package/dist/hooks/useStagger 2.js +43 -0
- package/dist/hooks/useStagger.js +43 -0
- package/dist/{index-BIlioXmW.js → index-B2JRaoNz 2.js } +2 -1
- package/dist/index-B2JRaoNz.js +48 -0
- package/dist/index-BmTo-IS6.js +2018 -0
- package/dist/{index-BlCqcUwj.js → index-K0WrPJ_C.js} +1 -1
- package/dist/index.js +42 -46
- package/dist/index.modern-DPbS1w7M.js +1443 -0
- package/dist/presets/animations 3.js +19 -0
- package/dist/presets/animations.js +19 -0
- package/dist/utils/breakpoints 3.js +8 -0
- package/dist/utils/gsapSetup 3.js +8 -0
- package/dist/utils/gsapSetup.js +4 -3
- package/dist/utils/parse 3.js +12 -0
- package/dist/utils/parse.js +7 -7
- package/package.json +8 -4
- package/src/styles/_breakpoints.scss +107 -0
- package/src/styles/_colors.scss +50 -0
- package/src/styles/_fonts.scss +241 -0
- package/src/styles/_mixins.scss +114 -0
- package/src/styles/_sizes.scss +191 -0
- package/src/styles/globals.scss +77 -0
- package/src/styles/index.scss +1 -0
- package/src/styles/variables.module.scss +20 -0
- package/dist/AccordionItem-DuHzStoZ.js +0 -40
- package/dist/Particles-CKNJUrOc.js +0 -2789
- package/dist/ScrollTrigger-DDbij8gI.js +0 -3102
- package/dist/components/ParticleBackground/ParticleBackground.js +0 -31
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "breakpoints";
|
|
4
|
+
@use "sass:list";
|
|
5
|
+
// @use 'mixins';
|
|
6
|
+
|
|
7
|
+
$container-padding-vals: (
|
|
8
|
+
xxs: (
|
|
9
|
+
h: 20,
|
|
10
|
+
v: 40,
|
|
11
|
+
),
|
|
12
|
+
xs: (
|
|
13
|
+
h: 30,
|
|
14
|
+
v: 50,
|
|
15
|
+
),
|
|
16
|
+
sm: (
|
|
17
|
+
h: 30,
|
|
18
|
+
v: 50,
|
|
19
|
+
),
|
|
20
|
+
md-portrait: (
|
|
21
|
+
h: 30,
|
|
22
|
+
v: 50,
|
|
23
|
+
),
|
|
24
|
+
md-landscape: (
|
|
25
|
+
h: 30,
|
|
26
|
+
v: 30,
|
|
27
|
+
),
|
|
28
|
+
lg: (h: 50,
|
|
29
|
+
v: 70,
|
|
30
|
+
),
|
|
31
|
+
xl: (h: 100,
|
|
32
|
+
v: 50,
|
|
33
|
+
),
|
|
34
|
+
xxl: (h: 150,
|
|
35
|
+
v: 150,
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
$container-padding-mobile: 20px;
|
|
40
|
+
$container-padding-tablet: 50px 30px; //768+
|
|
41
|
+
$container-padding-desktop-small: 100px; //1200+
|
|
42
|
+
$container-padding-desktop-large: 150px; //1920+
|
|
43
|
+
|
|
44
|
+
$container-max-width-xsmall: 1000px;
|
|
45
|
+
$container-max-width-small: 1200px;
|
|
46
|
+
$container-max-width: 1400px;
|
|
47
|
+
$container-max-width-wide: 1800px;
|
|
48
|
+
|
|
49
|
+
// @mixin respond($bp) {
|
|
50
|
+
// @media (min-width: map.get(breakpoints.$breakpoints, $bp)) {
|
|
51
|
+
// @content;
|
|
52
|
+
// }
|
|
53
|
+
// }
|
|
54
|
+
|
|
55
|
+
@mixin respond($bp, $orientation: null) {
|
|
56
|
+
$width: map.get(breakpoints.$breakpoints, $bp);
|
|
57
|
+
|
|
58
|
+
@if $width {
|
|
59
|
+
$media: "(min-width: #{$width})";
|
|
60
|
+
|
|
61
|
+
@if $orientation {
|
|
62
|
+
$media: "#{$media} and (orientation: #{$orientation})";
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media #{$media} {
|
|
66
|
+
@content;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@function parse-breakpoint-key($key) {
|
|
72
|
+
$parts: string.split($key, "-");
|
|
73
|
+
|
|
74
|
+
$bp: list.nth($parts, 1);
|
|
75
|
+
$orientation: if(list.length($parts) > 1, list.nth($parts, 2), null);
|
|
76
|
+
|
|
77
|
+
@return (bp: $bp, orientation: $orientation);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@mixin container-padding($selector, $exclude...) {
|
|
81
|
+
@each $key, $val in $container-padding-vals {
|
|
82
|
+
$parsed: parse-breakpoint-key($key);
|
|
83
|
+
|
|
84
|
+
$bp: map.get($parsed, bp);
|
|
85
|
+
$orientation: map.get($parsed, orientation);
|
|
86
|
+
|
|
87
|
+
@include respond($bp, $orientation) {
|
|
88
|
+
|
|
89
|
+
// @include respond($key) {
|
|
90
|
+
#{$selector} {
|
|
91
|
+
$h: map.get($val, h);
|
|
92
|
+
$v: map.get($val, v);
|
|
93
|
+
|
|
94
|
+
padding: #{$v}px #{$h}px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@each $direction in $exclude {
|
|
100
|
+
#{$selector} {
|
|
101
|
+
padding-#{$direction}: 0px;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
//TODO: Fix me
|
|
107
|
+
|
|
108
|
+
@function get-container-padding($bp, $orientation, $axis) {
|
|
109
|
+
// 1. Try size + orientation first
|
|
110
|
+
$key: if($orientation, "#{$bp}-#{$orientation}", $bp);
|
|
111
|
+
$val: map.get($container-padding-vals, $key);
|
|
112
|
+
|
|
113
|
+
@if $val {
|
|
114
|
+
@return map.get($val, $axis);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// 2. Try size only
|
|
118
|
+
$val: map.get($container-padding-vals, $bp);
|
|
119
|
+
|
|
120
|
+
@if $val {
|
|
121
|
+
@return map.get($val, $axis);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// 3. Fallback to smaller sizes (assumes $container-padding-vals is ordered small → large)
|
|
125
|
+
$found: null;
|
|
126
|
+
|
|
127
|
+
@each $k, $v in $container-padding-vals {
|
|
128
|
+
|
|
129
|
+
// stop at current or smaller size
|
|
130
|
+
@if index(map-keys($container-padding-vals), $k) <=index(map-keys($container-padding-vals), $bp) {
|
|
131
|
+
$found: $v;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@if $found {
|
|
136
|
+
@return map.get($found, $axis);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// 4. Default to 0 if nothing found
|
|
140
|
+
@return 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@mixin override-container($selector,
|
|
144
|
+
$vertical: true,
|
|
145
|
+
$horizontal: true,
|
|
146
|
+
$sizes,
|
|
147
|
+
$resets) {
|
|
148
|
+
@each $bp in $sizes {
|
|
149
|
+
$parsed: parse-breakpoint-key($bp);
|
|
150
|
+
|
|
151
|
+
$bp: map.get($parsed, bp);
|
|
152
|
+
$orientation: map.get($parsed, orientation);
|
|
153
|
+
|
|
154
|
+
@include respond($bp, $orientation) {
|
|
155
|
+
|
|
156
|
+
@if $vertical {
|
|
157
|
+
$v: get-container-padding($bp, $orientation, v);
|
|
158
|
+
|
|
159
|
+
#{$selector} {
|
|
160
|
+
margin-top: -#{$v}px;
|
|
161
|
+
margin-bottom: -#{$v}px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
@if $horizontal {
|
|
166
|
+
$h: get-container-padding($bp, $orientation, h);
|
|
167
|
+
|
|
168
|
+
#{$selector} {
|
|
169
|
+
width: calc(100% + #{$h * 2}px);
|
|
170
|
+
margin-left: -#{$h}px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@each $bp in $resets {
|
|
177
|
+
$parsed: parse-breakpoint-key($bp);
|
|
178
|
+
|
|
179
|
+
$bp: map.get($parsed, bp);
|
|
180
|
+
$orientation: map.get($parsed, orientation);
|
|
181
|
+
|
|
182
|
+
@include respond($bp, $orientation) {
|
|
183
|
+
#{$selector} {
|
|
184
|
+
margin-top: 0px;
|
|
185
|
+
margin-bottom: 0px;
|
|
186
|
+
width: 100%;
|
|
187
|
+
margin-left: 0px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@use "fonts";
|
|
2
|
+
// @use './mixins';
|
|
3
|
+
@use './breakpoints';
|
|
4
|
+
// @use './colors';
|
|
5
|
+
// @use './fonts';
|
|
6
|
+
// @use './sizes';
|
|
7
|
+
|
|
8
|
+
// html {
|
|
9
|
+
// overflow: hidden;
|
|
10
|
+
// height: 100%;
|
|
11
|
+
// }
|
|
12
|
+
|
|
13
|
+
// body {
|
|
14
|
+
// height: 100%;
|
|
15
|
+
// overflow: auto;
|
|
16
|
+
// }
|
|
17
|
+
|
|
18
|
+
html,
|
|
19
|
+
body {
|
|
20
|
+
overscroll-behavior: none; /* prevents scroll chaining / overscroll glow */
|
|
21
|
+
height: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
p,
|
|
25
|
+
h1,
|
|
26
|
+
h2,
|
|
27
|
+
h3 {
|
|
28
|
+
margin: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
strong {
|
|
32
|
+
@include fonts.type("strong");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
small {
|
|
36
|
+
@include fonts.type("small");
|
|
37
|
+
font-style: italic;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#rsvpify-wrapper {
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.typography--h2 {
|
|
46
|
+
@include fonts.type('h2');
|
|
47
|
+
}
|
|
48
|
+
.typography--h3 {
|
|
49
|
+
@include fonts.type('h3');
|
|
50
|
+
}
|
|
51
|
+
.typography--h4 {
|
|
52
|
+
// margin-top: 0;
|
|
53
|
+
@include fonts.type('h4');
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.typography--body {
|
|
57
|
+
@include fonts.type('body');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.typography--strong {
|
|
61
|
+
@include fonts.type('strong');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.hidden {
|
|
65
|
+
visibility: hidden;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.mobile-break {
|
|
69
|
+
display: inline;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@include breakpoints.md {
|
|
74
|
+
.mobile-break {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward 'breakpoints';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @use './_colors' as *;
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
@use "colors";
|
|
4
|
+
|
|
5
|
+
$theme-colors: (
|
|
6
|
+
"colorPrimaryDark": colors.$color-primary-dark,
|
|
7
|
+
"colorPrimaryMedium": colors.$color-primary-medium,
|
|
8
|
+
"colorPrimaryLight": colors.$color-primary-light,
|
|
9
|
+
"colorSecondary": colors.$color-secondary,
|
|
10
|
+
"colorNeutralDark": colors.$color-neutral-dark,
|
|
11
|
+
"colorNeutralMedium": colors.$color-neutral-medium,
|
|
12
|
+
"colorNeutralLight": colors.$color-neutral-light,
|
|
13
|
+
"colorWhite": colors.$color-white,
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
:export {
|
|
17
|
+
@each $key, $value in $theme-colors {
|
|
18
|
+
#{string.unquote($key)}: $value;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -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 e } from "./index-BIlioXmW.js";
|
|
4
|
-
import './assets/AccordionItem.css';const s = "_accordion_l0mex_1", d = "_title_l0mex_8", l = "_accordion__item_l0mex_11", m = "_header_l0mex_14", x = "_accordion__icon_l0mex_101", p = "_open_l0mex_175", b = "_accordion__button_l0mex_179", h = "_accordion__content_l0mex_230", N = "_body_l0mex_238", o = {
|
|
5
|
-
accordion: s,
|
|
6
|
-
title: d,
|
|
7
|
-
accordion__item: l,
|
|
8
|
-
header: m,
|
|
9
|
-
accordion__icon: x,
|
|
10
|
-
open: p,
|
|
11
|
-
accordion__button: b,
|
|
12
|
-
accordion__content: h,
|
|
13
|
-
body: N
|
|
14
|
-
}, f = ({ title: t, body: a, toggleFn: i, isOpen: n }) => /* @__PURE__ */ _("div", { className: e(o.accordion__item, n && o.open), children: [
|
|
15
|
-
/* @__PURE__ */ _(
|
|
16
|
-
"button",
|
|
17
|
-
{
|
|
18
|
-
className: e(o.accordion__button),
|
|
19
|
-
onClick: () => i(!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: t })
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ c(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
className: e(o.accordion__content, n && o.open),
|
|
33
|
-
children: /* @__PURE__ */ c("div", { className: o.body, children: r(a) })
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
37
|
-
export {
|
|
38
|
-
f as A,
|
|
39
|
-
o as s
|
|
40
|
-
};
|