@courtneyring/components-library 1.0.30 → 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.
Files changed (107) hide show
  1. package/dist/{AccordionItem-DuHzStoZ.js → AccordionItem-CDN4L4a7.js} +11 -11
  2. package/dist/ScrollTrigger-6HnikosL.js +1086 -0
  3. package/dist/animations/FadeIn.js +8 -7
  4. package/dist/assets/AccordionItem.css +1 -1
  5. package/dist/assets/Background.css +1 -1
  6. package/dist/assets/Banner.css +1 -1
  7. package/dist/assets/Button.css +1 -1
  8. package/dist/assets/ButtonGroup.css +1 -0
  9. package/dist/assets/Container.css +1 -1
  10. package/dist/assets/Countdown.css +1 -1
  11. package/dist/assets/Fifty.css +1 -1
  12. package/dist/assets/FloatingWordsHero.css +1 -0
  13. package/dist/assets/Footer.css +1 -1
  14. package/dist/assets/GenericOverlay.css +1 -1
  15. package/dist/assets/IconDetail.css +1 -1
  16. package/dist/assets/ImageTextBlock.css +1 -1
  17. package/dist/assets/List.css +1 -1
  18. package/dist/assets/Map.css +1 -0
  19. package/dist/assets/Navbar.css +1 -1
  20. package/dist/assets/Note.css +1 -1
  21. package/dist/assets/OverlayHero.css +1 -1
  22. package/dist/assets/PageContainer.css +1 -1
  23. package/dist/assets/PinnedImage.css +1 -1
  24. package/dist/assets/PromoGroup.css +1 -1
  25. package/dist/assets/RSVPEmbed.css +1 -1
  26. package/dist/assets/Schedule.css +1 -1
  27. package/dist/assets/TextBlock.css +1 -1
  28. package/dist/components/Accordion/Accordion.js +21 -14
  29. package/dist/components/Accordion/AccordionItem.js +2 -2
  30. package/dist/components/Background/Background.js +24 -22
  31. package/dist/components/Banner/Banner.js +18 -16
  32. package/dist/components/BorderedBackground/BorderedBackground.js +1 -1
  33. package/dist/components/Button/Button.js +23 -16
  34. package/dist/components/ButtonGroup/ButtonGroup.js +11 -0
  35. package/dist/components/Container/Container.js +18 -15
  36. package/dist/components/Countdown/Countdown.js +35 -23
  37. package/dist/components/Fifty/Fifty.js +43 -34
  38. package/dist/components/FloatingWordsHero/FloatingWordsHero.js +60 -0
  39. package/dist/components/Footer/Footer.js +7 -7
  40. package/dist/components/GenericOverlay/GenericOverlay.js +7 -7
  41. package/dist/components/GridGallery/GridGallery.js +1 -1
  42. package/dist/components/HorizontalScrollImages/HorizontalScrollImages.js +13 -12
  43. package/dist/components/IconDetail/IconDetail.js +8 -8
  44. package/dist/components/ImageTextBlock/ImageTextBlock.js +27 -24
  45. package/dist/components/List/List.js +8 -8
  46. package/dist/components/Map/Map.js +43 -0
  47. package/dist/components/Map/Map.stories.js +16 -0
  48. package/dist/components/MenuButton/MenuButton.js +1 -1
  49. package/dist/components/Navbar/Navbar.js +61 -54
  50. package/dist/components/Note/Note.js +26 -22
  51. package/dist/components/Overlay/Overlay.js +1 -1
  52. package/dist/components/OverlayHero/OverlayHero.js +63 -21
  53. package/dist/components/PageContainer/PageContainer.js +6 -6
  54. package/dist/components/ParallaxImageGrid/ParallaxImageGrid.js +4 -3
  55. package/dist/components/PinnedImage/PinnedImage.js +34 -33
  56. package/dist/components/PromoGroup/PromoGroup.js +100 -51
  57. package/dist/components/RSVPEmbed/RSVPEmbed.js +9 -8
  58. package/dist/components/Schedule/Schedule.js +6 -6
  59. package/dist/components/Spacer/Spacer.js +6 -0
  60. package/dist/components/TextBlock/TextBlock.js +5 -5
  61. package/dist/components/Timeline/Timeline.js +12 -11
  62. package/dist/components/Toolbar/Toolbar.js +41 -13
  63. package/dist/hooks/useActiveSection 4.js +27 -0
  64. package/dist/hooks/useFadeIn 4.js +52 -0
  65. package/dist/hooks/useFadeIn.js +17 -16
  66. package/dist/hooks/useImageReveal 4.js +55 -0
  67. package/dist/hooks/useImageReveal.js +55 -0
  68. package/dist/hooks/useNavColor 4.js +15 -0
  69. package/dist/hooks/useRepeatable 4.js +32 -0
  70. package/dist/hooks/useResize 4.js +23 -0
  71. package/dist/hooks/useResize.js +11 -7
  72. package/dist/hooks/useResponsive 4.js +15 -0
  73. package/dist/hooks/useReveal 4.js +38 -0
  74. package/dist/hooks/useReveal.js +38 -0
  75. package/dist/hooks/useStagger 4.js +43 -0
  76. package/dist/hooks/useStagger.js +43 -0
  77. package/dist/index 2.js +50 -0
  78. package/dist/{index-BIlioXmW.js → index-B2JRaoNz 4.js } +2 -1
  79. package/dist/index-B2JRaoNz.js +48 -0
  80. package/dist/index-BmTo-IS6 4.js +2018 -0
  81. package/dist/index-BmTo-IS6.js +2018 -0
  82. package/dist/index-DyQs5aC7 4.js +388 -0
  83. package/dist/{index-BlCqcUwj.js → index-K0WrPJ_C 4.js } +1 -1
  84. package/dist/index-K0WrPJ_C.js +29 -0
  85. package/dist/index.js +42 -46
  86. package/dist/index.modern-DPbS1w7M 4.js +1443 -0
  87. package/dist/index.modern-DPbS1w7M.js +1443 -0
  88. package/dist/presets/animations 4.js +24 -0
  89. package/dist/presets/animations.js +24 -0
  90. package/dist/utils/breakpoints 4.js +8 -0
  91. package/dist/utils/gsapSetup 4.js +8 -0
  92. package/dist/utils/gsapSetup.js +4 -3
  93. package/dist/utils/parse 4.js +12 -0
  94. package/dist/utils/parse.js +7 -7
  95. package/package.json +9 -4
  96. package/src/styles/_breakpoints.scss +107 -0
  97. package/src/styles/_colors.scss +50 -0
  98. package/src/styles/_fonts.scss +238 -0
  99. package/src/styles/_mixins.scss +114 -0
  100. package/src/styles/_reveal.scss +93 -0
  101. package/src/styles/_sizes.scss +192 -0
  102. package/src/styles/globals.scss +77 -0
  103. package/src/styles/index.scss +1 -0
  104. package/src/styles/variables.module.scss +20 -0
  105. package/dist/Particles-CKNJUrOc.js +0 -2789
  106. package/dist/ScrollTrigger-DDbij8gI.js +0 -3102
  107. package/dist/components/ParticleBackground/ParticleBackground.js +0 -31
@@ -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
+ }
@@ -0,0 +1,192 @@
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
+ scroll-margin-top: #{$v}px;
96
+ }
97
+ }
98
+ }
99
+
100
+ @each $direction in $exclude {
101
+ #{$selector} {
102
+ padding-#{$direction}: 0px;
103
+ }
104
+ }
105
+ }
106
+
107
+ //TODO: Fix me
108
+
109
+ @function get-container-padding($bp, $orientation, $axis) {
110
+ // 1. Try size + orientation first
111
+ $key: if($orientation, "#{$bp}-#{$orientation}", $bp);
112
+ $val: map.get($container-padding-vals, $key);
113
+
114
+ @if $val {
115
+ @return map.get($val, $axis);
116
+ }
117
+
118
+ // 2. Try size only
119
+ $val: map.get($container-padding-vals, $bp);
120
+
121
+ @if $val {
122
+ @return map.get($val, $axis);
123
+ }
124
+
125
+ // 3. Fallback to smaller sizes (assumes $container-padding-vals is ordered small → large)
126
+ $found: null;
127
+
128
+ @each $k, $v in $container-padding-vals {
129
+
130
+ // stop at current or smaller size
131
+ @if index(map-keys($container-padding-vals), $k) <=index(map-keys($container-padding-vals), $bp) {
132
+ $found: $v;
133
+ }
134
+ }
135
+
136
+ @if $found {
137
+ @return map.get($found, $axis);
138
+ }
139
+
140
+ // 4. Default to 0 if nothing found
141
+ @return 0;
142
+ }
143
+
144
+ @mixin override-container($selector,
145
+ $vertical: true,
146
+ $horizontal: true,
147
+ $sizes,
148
+ $resets) {
149
+ @each $bp in $sizes {
150
+ $parsed: parse-breakpoint-key($bp);
151
+
152
+ $bp: map.get($parsed, bp);
153
+ $orientation: map.get($parsed, orientation);
154
+
155
+ @include respond($bp, $orientation) {
156
+
157
+ @if $vertical {
158
+ $v: get-container-padding($bp, $orientation, v);
159
+
160
+ #{$selector} {
161
+ margin-top: -#{$v}px;
162
+ margin-bottom: -#{$v}px;
163
+ }
164
+ }
165
+
166
+ @if $horizontal {
167
+ $h: get-container-padding($bp, $orientation, h);
168
+
169
+ #{$selector} {
170
+ width: calc(100% + #{$h * 2}px);
171
+ margin-left: -#{$h}px;
172
+ }
173
+ }
174
+ }
175
+ }
176
+
177
+ @each $bp in $resets {
178
+ $parsed: parse-breakpoint-key($bp);
179
+
180
+ $bp: map.get($parsed, bp);
181
+ $orientation: map.get($parsed, orientation);
182
+
183
+ @include respond($bp, $orientation) {
184
+ #{$selector} {
185
+ margin-top: 0px;
186
+ margin-bottom: 0px;
187
+ width: 100%;
188
+ margin-left: 0px;
189
+ }
190
+ }
191
+ }
192
+ }
@@ -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
+ }