dune-react 0.0.20 → 0.0.21

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 (331) hide show
  1. package/dist/components/puck-base/core/with-editable.js +13 -2
  2. package/dist/components/puck-base/fields/action-field.js +1 -1
  3. package/dist/components/puck-base/fields/location-field.js +1 -1
  4. package/dist/components/puck-base/form.js +1 -1
  5. package/dist/components/puck-base/image.js +1 -1
  6. package/dist/components/puck-base/index.d.ts +2 -1
  7. package/dist/components/puck-base/inline-editable.js +1 -1
  8. package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +9 -4
  9. package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +22 -0
  10. package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +3 -1
  11. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +44 -0
  12. package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +16 -4
  13. package/dist/components/puck-block/banner-sections/props.d.ts +3 -0
  14. package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +13 -2
  15. package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +15 -4
  16. package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +3 -13
  17. package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +22 -0
  18. package/dist/components/puck-block/contact-sections/centered-form/index.js +3 -1
  19. package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +5 -1
  20. package/dist/components/puck-block/contact-sections/contact-cards-grid/index.d.ts +22 -0
  21. package/dist/components/puck-block/contact-sections/contact-cards-grid/index.js +3 -1
  22. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +4 -22
  23. package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +22 -0
  24. package/dist/components/puck-block/contact-sections/contact-modal/index.js +3 -1
  25. package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +3 -13
  26. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +22 -0
  27. package/dist/components/puck-block/contact-sections/form-with-media/index.js +3 -1
  28. package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +4 -13
  29. package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +22 -0
  30. package/dist/components/puck-block/contact-sections/header-form-cards/index.js +3 -1
  31. package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -2
  32. package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +22 -0
  33. package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +3 -1
  34. package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +22 -0
  35. package/dist/components/puck-block/contact-sections/info-cards-media/index.js +3 -1
  36. package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -2
  37. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +22 -0
  38. package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +3 -1
  39. package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +5 -1
  40. package/dist/components/puck-block/contact-sections/props.d.ts +3 -0
  41. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +22 -0
  42. package/dist/components/puck-block/contact-sections/split-info-form/index.js +3 -1
  43. package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +4 -13
  44. package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +22 -0
  45. package/dist/components/puck-block/contact-sections/tab-locations/index.js +3 -1
  46. package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +4 -2
  47. package/dist/components/puck-block/contact-sections/use-contact-form.js +1 -1
  48. package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +3 -2
  49. package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +22 -0
  50. package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +3 -1
  51. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +22 -0
  52. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +3 -1
  53. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +3 -2
  54. package/dist/components/puck-block/cta-sections/props.d.ts +3 -1
  55. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +35 -5
  56. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +22 -9
  57. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/dual-column-accordion-faq.js +3 -2
  58. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +22 -0
  59. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.js +3 -1
  60. package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +6 -2
  61. package/dist/components/puck-block/faq-sections/props.d.ts +3 -0
  62. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +22 -0
  63. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.js +3 -1
  64. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js +5 -1
  65. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +22 -0
  66. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.js +3 -1
  67. package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +5 -1
  68. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +22 -0
  69. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.js +3 -1
  70. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.js +3 -2
  71. package/dist/components/puck-block/faq-sections/two-column-static-faq/two-column-static-faq.js +6 -2
  72. package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +5 -1
  73. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +22 -0
  74. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -1
  75. package/dist/components/puck-block/feature-sections/feature-list-split/component.js +5 -1
  76. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +22 -0
  77. package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -1
  78. package/dist/components/puck-block/feature-sections/props.d.ts +3 -0
  79. package/dist/components/puck-block/feature-sections/tab-feature/component.js +4 -2
  80. package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -1
  81. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +22 -0
  82. package/dist/components/puck-block/feature-sections/text-media-split/index.js +3 -1
  83. package/dist/components/puck-block/feature-sections/text-only-section/component.js +8 -3
  84. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +22 -0
  85. package/dist/components/puck-block/feature-sections/text-only-section/index.js +3 -1
  86. package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +5 -2
  87. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +22 -0
  88. package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +3 -2
  89. package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +22 -0
  90. package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +2 -1
  91. package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
  92. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +22 -0
  93. package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +2 -1
  94. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +22 -0
  95. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +22 -0
  96. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +22 -0
  97. package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
  98. package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +3 -2
  99. package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +22 -0
  100. package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +3 -1
  101. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +16 -6
  102. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +27 -2
  103. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -1
  104. package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +6 -2
  105. package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +22 -0
  106. package/dist/components/puck-block/gallery-sections/image-carousel/index.js +3 -1
  107. package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +22 -0
  108. package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +3 -1
  109. package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +4 -3
  110. package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +22 -0
  111. package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +3 -1
  112. package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +3 -2
  113. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +22 -0
  114. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +3 -1
  115. package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +5 -1
  116. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +22 -0
  117. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +3 -1
  118. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +4 -2
  119. package/dist/components/puck-block/gallery-sections/props.d.ts +3 -0
  120. package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +9 -3
  121. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +27 -2
  122. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +2 -1
  123. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -10
  124. package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +22 -0
  125. package/dist/components/puck-block/gallery-sections/split-carousel/index.js +3 -1
  126. package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +3 -2
  127. package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +22 -0
  128. package/dist/components/puck-block/gallery-sections/static-grid/index.js +3 -1
  129. package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +3 -2
  130. package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +5 -2
  131. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +5 -2
  132. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +4 -2
  133. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +22 -0
  134. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +2 -1
  135. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +5 -2
  136. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +22 -0
  137. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +2 -1
  138. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +22 -0
  139. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +2 -1
  140. package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +5 -2
  141. package/dist/components/puck-block/header-sections/props.d.ts +3 -0
  142. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +22 -0
  143. package/dist/components/puck-block/header-sections/standard-navbar/index.js +2 -1
  144. package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +5 -2
  145. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +7 -4
  146. package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +22 -0
  147. package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +6 -3
  148. package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +5 -2
  149. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +35 -5
  150. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +15 -5
  151. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +13 -5
  152. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +2 -2
  153. package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +12 -4
  154. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +22 -0
  155. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +3 -1
  156. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +8 -4
  157. package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +22 -0
  158. package/dist/components/puck-block/hero-sections/inline-image-hero/index.js +3 -1
  159. package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +4 -2
  160. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +40 -7
  161. package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +9 -5
  162. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +27 -2
  163. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -1
  164. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +6 -4
  165. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +22 -0
  166. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +3 -1
  167. package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +6 -4
  168. package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +10 -3
  169. package/dist/components/puck-block/hero-sections/props.d.ts +3 -1
  170. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +12 -4
  171. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +16 -7
  172. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +13 -5
  173. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +2 -2
  174. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +17 -8
  175. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +35 -5
  176. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +5 -3
  177. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +35 -5
  178. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +35 -5
  179. package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +15 -5
  180. package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +37 -14
  181. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +35 -5
  182. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +5 -3
  183. package/dist/components/puck-block/hero-sections/tab-hero/component.js +6 -3
  184. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +44 -0
  185. package/dist/components/puck-block/hero-sections/tab-hero/index.js +3 -2
  186. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +11 -3
  187. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +22 -0
  188. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +3 -1
  189. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +8 -4
  190. package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +12 -4
  191. package/dist/components/puck-block/location-sections/location-1/location.d.ts +3 -0
  192. package/dist/components/puck-block/location-sections/location-2/location.d.ts +3 -0
  193. package/dist/components/puck-block/location-sections/location-3/location.d.ts +3 -0
  194. package/dist/components/puck-block/location-sections/props.d.ts +3 -0
  195. package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -1
  196. package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +22 -0
  197. package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +3 -1
  198. package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +5 -1
  199. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +22 -0
  200. package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +3 -1
  201. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +22 -0
  202. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -1
  203. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +5 -1
  204. package/dist/components/puck-block/metrics-sections/props.d.ts +3 -0
  205. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +22 -0
  206. package/dist/components/puck-block/metrics-sections/split-stats/index.js +3 -1
  207. package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +5 -1
  208. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +44 -0
  209. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +4 -2
  210. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +4 -2
  211. package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +4 -2
  212. package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.d.ts +22 -0
  213. package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.js +3 -1
  214. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +5 -1
  215. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +22 -0
  216. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +3 -1
  217. package/dist/components/puck-block/pricing-sections/props.d.ts +3 -0
  218. package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +4 -2
  219. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +44 -0
  220. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +4 -2
  221. package/dist/components/puck-block/pricing-sections/split-pricing/component.js +5 -2
  222. package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +22 -0
  223. package/dist/components/puck-block/pricing-sections/split-pricing/index.js +2 -1
  224. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +4 -2
  225. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.d.ts +22 -0
  226. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.js +3 -1
  227. package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +5 -2
  228. package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.d.ts +22 -0
  229. package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.js +3 -1
  230. package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +5 -1
  231. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +22 -0
  232. package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +3 -1
  233. package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +6 -1
  234. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +22 -0
  235. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +3 -1
  236. package/dist/components/puck-block/showcase-sections/props.d.ts +3 -0
  237. package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +8 -1
  238. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +22 -0
  239. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +3 -1
  240. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +8 -1
  241. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +22 -0
  242. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +3 -1
  243. package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +1 -3
  244. package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +5 -1
  245. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +45 -3
  246. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +4 -2
  247. package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +8 -1
  248. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +22 -0
  249. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +3 -1
  250. package/dist/components/puck-block/team-sections/props.d.ts +3 -0
  251. package/dist/components/puck-block/team-sections/team-carousel/component.js +8 -2
  252. package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +44 -0
  253. package/dist/components/puck-block/team-sections/team-carousel/index.js +5 -2
  254. package/dist/components/puck-block/team-sections/team-grid/component.js +6 -1
  255. package/dist/components/puck-block/team-sections/team-grid/index.d.ts +44 -0
  256. package/dist/components/puck-block/team-sections/team-grid/index.js +5 -2
  257. package/dist/components/puck-block/team-sections/team-inline-card/component.js +10 -2
  258. package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +44 -0
  259. package/dist/components/puck-block/team-sections/team-inline-card/index.js +5 -2
  260. package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +9 -2
  261. package/dist/components/puck-block/team-sections/team-sticky-scatter/index.d.ts +22 -0
  262. package/dist/components/puck-block/team-sections/team-sticky-scatter/index.js +3 -1
  263. package/dist/components/puck-block/team-sections/team-two-column/component.js +6 -1
  264. package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +22 -0
  265. package/dist/components/puck-block/team-sections/team-two-column/index.js +3 -1
  266. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +5 -1
  267. package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.d.ts +22 -0
  268. package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.js +3 -1
  269. package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +6 -1
  270. package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.d.ts +22 -0
  271. package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -1
  272. package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +5 -1
  273. package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.d.ts +22 -0
  274. package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.js +3 -1
  275. package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +1 -1
  276. package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +14 -6
  277. package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +35 -5
  278. package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +5 -3
  279. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +8 -2
  280. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +22 -0
  281. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -1
  282. package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +9 -2
  283. package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +9 -2
  284. package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.d.ts +22 -0
  285. package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.js +3 -1
  286. package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -1
  287. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +9 -2
  288. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +22 -0
  289. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.js +3 -1
  290. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +9 -2
  291. package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.d.ts +22 -0
  292. package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.js +3 -1
  293. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -1
  294. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.d.ts +22 -0
  295. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.js +3 -1
  296. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +5 -1
  297. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.d.ts +22 -0
  298. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.js +3 -1
  299. package/dist/components/puck-block/text-sections/aside-nav-content/component.js +5 -1
  300. package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +44 -0
  301. package/dist/components/puck-block/text-sections/aside-nav-content/index.js +4 -2
  302. package/dist/components/puck-block/text-sections/blog-article/component.js +6 -1
  303. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +44 -0
  304. package/dist/components/puck-block/text-sections/blog-article/index.js +4 -2
  305. package/dist/components/puck-block/text-sections/props.d.ts +3 -0
  306. package/dist/components/puck-block/text-sections/prose-content/component.js +5 -1
  307. package/dist/components/puck-block/text-sections/prose-content/index.d.ts +22 -0
  308. package/dist/components/puck-block/text-sections/prose-content/index.js +3 -1
  309. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +44 -0
  310. package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -1
  311. package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +22 -0
  312. package/dist/components/puck-block/text-sections/side-media-content/index.js +3 -1
  313. package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +6 -1
  314. package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +22 -0
  315. package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +3 -1
  316. package/dist/components/puck-block/text-sections/text-header/index.d.ts +22 -0
  317. package/dist/components/puck-core/core/context/section-id-context.d.ts +6 -0
  318. package/dist/components/puck-core/core/context/section-id-context.js +12 -0
  319. package/dist/components/puck-core/core/styles.d.ts +374 -0
  320. package/dist/components/puck-core/fields/action-field.js +1 -1
  321. package/dist/components/puck-core/index.d.ts +2 -1
  322. package/dist/components/puck-core/section-wrapper.d.ts +27 -13
  323. package/dist/components/puck-core/section-wrapper.js +48 -0
  324. package/dist/hooks/use-scroll-container.d.ts +18 -0
  325. package/dist/hooks/use-scroll-container.js +25 -0
  326. package/dist/index.js +4 -1
  327. package/package.json +1 -1
  328. package/dist/components/puck-core/editor-context.d.ts +0 -25
  329. package/dist/components/puck-core/editor-context.js +0 -15
  330. /package/dist/components/{puck-base → puck-core/core/context}/editor-context.d.ts +0 -0
  331. /package/dist/components/{puck-base → puck-core/core/context}/editor-context.js +0 -0
@@ -1,12 +1,14 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { CompoundButton } from "../../../puck-base/button.js";
3
3
  import { CompoundImage } from "../../../puck-base/image.js";
4
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
5
+ import { cn } from "../../../../utils/css-utils.js";
4
6
  const MultiImageGridHero = (props) => {
5
7
  const { heading, description, buttons, images, styles: rawStyles } = {
6
8
  ...MultiImageGridHeroDefaults,
7
9
  ...props
8
10
  };
9
- const { textLayout, imageGridRatio } = rawStyles ?? {};
11
+ const { className: sectionClassName, style: sectionStyle, css, textLayout, imageGridRatio } = rawStyles ?? {};
10
12
  const imageAspectRatios = ["aspect-[3/2]", "aspect-[2/3]", "aspect-square", "aspect-[3/4]"];
11
13
  const imageMarginTops = ["mt-[10%]", "", "mt-[70%]", "mt-[15%]"];
12
14
  const renderButtons = () => /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) });
@@ -29,7 +31,7 @@ const MultiImageGridHero = (props) => {
29
31
  )) });
30
32
  };
31
33
  if (textLayout === "centered") {
32
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
34
+ return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
33
35
  /* @__PURE__ */ jsx("div", { className: "rb-12 mb-12 flex flex-col items-center text-center md:mb-18 lg:mb-20", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg", children: [
34
36
  /* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
35
37
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
@@ -39,7 +41,7 @@ const MultiImageGridHero = (props) => {
39
41
  ] }) });
40
42
  }
41
43
  if (textLayout === "left-block") {
42
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
44
+ return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
43
45
  /* @__PURE__ */ jsx("div", { className: "ml-[5%]", children: /* @__PURE__ */ jsxs("div", { className: "mb-12 w-full max-w-lg md:mb-18 lg:mb-20", children: [
44
46
  /* @__PURE__ */ jsx("h2", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
45
47
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
@@ -48,7 +50,7 @@ const MultiImageGridHero = (props) => {
48
50
  renderImages()
49
51
  ] }) });
50
52
  }
51
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
53
+ return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
52
54
  /* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 grid grid-cols-1 items-start gap-5 md:mb-18 md:grid-cols-2 md:gap-12 lg:mb-20 lg:gap-20", children: [
53
55
  /* @__PURE__ */ jsx("h1", { className: "text-6xl font-bold md:text-9xl lg:text-10xl", children: heading }),
54
56
  /* @__PURE__ */ jsxs("div", { className: "mx-[7.5%] flex flex-col justify-end md:mt-48", children: [
@@ -122,6 +122,28 @@ declare const conf: {
122
122
  type: string;
123
123
  label: string;
124
124
  objectFields: {
125
+ className: {
126
+ readonly type: "text";
127
+ readonly label: "Class Name";
128
+ readonly ai: {
129
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
130
+ };
131
+ };
132
+ style: {
133
+ readonly type: "object";
134
+ readonly label: "Style";
135
+ readonly objectFields: {};
136
+ readonly ai: {
137
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
138
+ };
139
+ };
140
+ css: {
141
+ readonly type: "textarea";
142
+ readonly label: "Custom CSS";
143
+ readonly ai: {
144
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
145
+ };
146
+ };
125
147
  textPosition: {
126
148
  readonly type: "radio";
127
149
  readonly label: "Text Position";
@@ -3,6 +3,7 @@ import { descriptionField, headingField } from "../../../puck-core/core/props/co
3
3
  import { buttonsField } from "../../../puck-core/core/props/interactive.js";
4
4
  import { imageField } from "../../../puck-core/core/props/media.js";
5
5
  import { heroStyleFields } from "../props.js";
6
+ import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
6
7
  const conf = {
7
8
  fields: {
8
9
  heading: headingField,
@@ -17,7 +18,8 @@ const conf = {
17
18
  objectFields: {
18
19
  textPosition: heroStyleFields.textPosition,
19
20
  imageCount: heroStyleFields.imageCount,
20
- overlapStyle: heroStyleFields.overlapStyle
21
+ overlapStyle: heroStyleFields.overlapStyle,
22
+ ...sectionWrapperFields
21
23
  }
22
24
  }
23
25
  },
@@ -1,6 +1,8 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { CompoundButton } from "../../../puck-base/button.js";
3
3
  import { CompoundImage } from "../../../puck-base/image.js";
4
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
5
+ import { cn } from "../../../../utils/css-utils.js";
4
6
  const OverlappingImageHero = (props) => {
5
7
  const {
6
8
  heading,
@@ -14,7 +16,7 @@ const OverlappingImageHero = (props) => {
14
16
  ...OverlappingImageHeroDefaults,
15
17
  ...props
16
18
  };
17
- const { textPosition, imageCount, overlapStyle } = rawStyles ?? {};
19
+ const { className: sectionClassName, style: sectionStyle, css, textPosition, imageCount, overlapStyle } = rawStyles ?? {};
18
20
  const renderButtons = () => /* @__PURE__ */ jsx("div", { className: "mt-6 flex gap-x-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) });
19
21
  const renderOverlappingImages = () => {
20
22
  if (imageCount === 3) {
@@ -161,7 +163,7 @@ const OverlappingImageHero = (props) => {
161
163
  ] });
162
164
  };
163
165
  if (textPosition === "top") {
164
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
166
+ return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
165
167
  /* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 grid grid-cols-1 items-start gap-x-12 gap-y-5 md:mb-18 md:grid-cols-2 md:gap-y-8 lg:mb-20 lg:gap-x-20 lg:gap-y-16", children: [
166
168
  /* @__PURE__ */ jsx("h1", { className: "text-6xl font-bold md:text-9xl lg:text-10xl", children: heading }),
167
169
  /* @__PURE__ */ jsxs("div", { children: [
@@ -173,7 +175,7 @@ const OverlappingImageHero = (props) => {
173
175
  ] }) });
174
176
  }
175
177
  if (textPosition === "top-left") {
176
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
178
+ return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
177
179
  /* @__PURE__ */ jsxs("div", { className: "mb-12 w-full max-w-lg md:mb-18 lg:mb-20", children: [
178
180
  /* @__PURE__ */ jsx("h2", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
179
181
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
@@ -182,7 +184,7 @@ const OverlappingImageHero = (props) => {
182
184
  renderOverlappingImages()
183
185
  ] }) });
184
186
  }
185
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center gap-12 md:grid-cols-2 md:gap-16", children: [
187
+ return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center gap-12 md:grid-cols-2 md:gap-16", children: [
186
188
  /* @__PURE__ */ jsxs("div", { children: [
187
189
  /* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
188
190
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
@@ -4,20 +4,27 @@ import { useScroll, useSpring, useTransform, motion } from "framer-motion";
4
4
  import { CompoundButton } from "../../../puck-base/button.js";
5
5
  import { CompoundImage } from "../../../puck-base/image.js";
6
6
  import { useRef } from "react";
7
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
8
+ import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
7
9
  import { cn } from "../../../../utils/css-utils.js";
8
10
  const ParallaxImagesHero = (props) => {
9
- const { heading, description, buttons = [], images = [] } = {
11
+ const { heading, description, buttons = [], images = [], styles } = {
10
12
  ...ParallaxImagesHeroDefaults,
11
13
  ...props
12
14
  };
15
+ const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
13
16
  const transformRef = useRef(null);
14
- const { scrollYProgress } = useScroll({ target: transformRef });
17
+ const [scrollContainerRef] = useScrollContainer(transformRef);
18
+ const { scrollYProgress } = useScroll({
19
+ target: transformRef,
20
+ ...scrollContainerRef.current ? { container: scrollContainerRef } : {}
21
+ });
15
22
  const animatedScrollYProgress = useSpring(scrollYProgress, {
16
23
  bounce: 0
17
24
  });
18
25
  const yFirst = useTransform(animatedScrollYProgress, [0, 1], ["0vh", "-87.5vh"]);
19
26
  const ySecond = useTransform(animatedScrollYProgress, [0, 1], ["0vh", "-39.6vh"]);
20
- return /* @__PURE__ */ jsx("section", { id: "relume", ref: transformRef, className: "relative h-[150vh] px-[5%] md:h-[300vh]", children: /* @__PURE__ */ jsxs("div", { className: "sticky top-0 h-screen overflow-hidden", children: [
27
+ return /* @__PURE__ */ jsx(SectionWrapper, { ref: transformRef, className: cn("relative h-[150vh] px-[5%] md:h-[300vh]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "sticky top-0 h-screen overflow-hidden", children: [
21
28
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-0 right-auto top-0 z-10", children: /* @__PURE__ */ jsx(motion.div, { className: "flex flex-col gap-[26vw] pt-[70vh]", style: { y: yFirst }, children: images.slice(0, 4).map((image, index) => /* @__PURE__ */ jsx(
22
29
  "div",
23
30
  {
@@ -8,6 +8,9 @@ import type { BaseImage } from "@/components/puck-core/core/props/media";
8
8
  import type { BaseButton } from "@/components/puck-core/core/props/interactive";
9
9
  export type { BaseImage, BaseButton };
10
10
  export interface HeroSectionStyles {
11
+ className?: string;
12
+ style?: React.CSSProperties;
13
+ css?: string;
11
14
  mediaPosition?: "left" | "right" | "top" | "bottom";
12
15
  textAlign?: "left" | "center";
13
16
  textLayout?: "single-column" | "two-column" | "two-column-reverse" | "two-column-top" | "left-block" | "centered";
@@ -26,7 +29,6 @@ export interface HeroSectionBaseProps {
26
29
  heading: string;
27
30
  description: string;
28
31
  buttons: BaseButton[];
29
- image: BaseImage;
30
32
  images: BaseImage[];
31
33
  video: string;
32
34
  inputPlaceholder: string;
@@ -1,15 +1,23 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useRef } from "react";
3
4
  import { cn } from "../../../../utils/css-utils.js";
4
5
  import { CompoundButton } from "../../../puck-base/button.js";
5
6
  import { CompoundImage } from "../../../puck-base/image.js";
7
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
8
+ import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
6
9
  import { useScroll, useTransform, motion } from "framer-motion";
7
10
  const ScatterParallaxHero = (props) => {
8
- const { heading, description, buttons = [], images = [] } = {
11
+ const { heading, description, buttons = [], images = [], styles } = {
9
12
  ...ScatterParallaxHeroDefaults,
10
13
  ...props
11
14
  };
12
- const { scrollYProgress } = useScroll();
15
+ const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
16
+ const sectionRef = useRef(null);
17
+ const [scrollContainerRef] = useScrollContainer(sectionRef);
18
+ const { scrollYProgress } = useScroll(
19
+ scrollContainerRef.current ? { container: scrollContainerRef } : void 0
20
+ );
13
21
  const containerMotion = {
14
22
  y: useTransform(scrollYProgress, [0, 1], ["0%", "5%"]),
15
23
  scale: useTransform(scrollYProgress, [0, 1], [1, 0]),
@@ -34,9 +42,9 @@ const ScatterParallaxHero = (props) => {
34
42
  y: useTransform(scrollYProgress, [0, 1], ["0%", "120%"])
35
43
  }
36
44
  ];
37
- return /* @__PURE__ */ jsx("section", { id: "relume", children: /* @__PURE__ */ jsxs("div", { className: "relative h-[110vh] md:h-[500vh]", children: [
45
+ return /* @__PURE__ */ jsx(SectionWrapper, { ref: sectionRef, className: sectionClassName, style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "relative h-[110vh] md:h-[500vh]", children: [
38
46
  /* @__PURE__ */ jsxs("div", { className: "sticky top-0 min-h-screen overflow-hidden", children: [
39
- /* @__PURE__ */ jsx("div", { className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsx("div", { className: "container max-w-lg", children: /* @__PURE__ */ jsxs("div", { className: "relative z-20 text-center", children: [
47
+ /* @__PURE__ */ jsx("div", { className: "px-[5%] py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsx("div", { className: "container max-w-lg", children: /* @__PURE__ */ jsxs("div", { className: "relative z-20 text-center", children: [
40
48
  /* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
41
49
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
42
50
  /* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-x-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
@@ -5,17 +5,25 @@ import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js"
5
5
  import { CompoundButton } from "../../../puck-base/button.js";
6
6
  import { CompoundImage } from "../../../puck-base/image.js";
7
7
  import { useScroll, useSpring, useTransform, motion } from "framer-motion";
8
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
9
+ import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
8
10
  import { cn } from "../../../../utils/css-utils.js";
9
11
  import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
10
12
  import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
11
13
  const ScrollExpandVideoHero = (props) => {
12
- const { heading, description, buttons = [], video = "", image = { src: "", alt: "" } } = {
14
+ const { heading, description, buttons = [], video = "", images = [{ src: "", alt: "" }], styles } = {
13
15
  ...ScrollExpandVideoHeroDefaults,
14
16
  ...props
15
17
  };
18
+ const image = images == null ? void 0 : images[0];
19
+ const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
16
20
  const [isIframeLoaded, setIsIframeLoaded] = useState(false);
17
21
  const transformRef = useRef(null);
18
- const { scrollY, scrollYProgress } = useScroll({ target: transformRef });
22
+ const [scrollContainerRef] = useScrollContainer(transformRef);
23
+ const { scrollY, scrollYProgress } = useScroll({
24
+ target: transformRef,
25
+ ...scrollContainerRef.current ? { container: scrollContainerRef } : {}
26
+ });
19
27
  const animatedScrollYProgress = useSpring(scrollYProgress, {
20
28
  bounce: 0
21
29
  });
@@ -26,11 +34,12 @@ const ScrollExpandVideoHero = (props) => {
26
34
  const height = useTransform(animatedScrollYProgress, [0.3, 1], ["80vh", "100vh"]);
27
35
  const y = useTransform(animatedScrollYProgress, [0, 1], ["0vh", "-10vh"]);
28
36
  return /* @__PURE__ */ jsxs(
29
- "section",
37
+ SectionWrapper,
30
38
  {
31
- id: "relume",
32
39
  ref: transformRef,
33
- className: "relative flex h-[300vh] flex-col items-center",
40
+ className: cn("relative flex h-[300vh] flex-col items-center", sectionClassName),
41
+ style: sectionStyle,
42
+ css,
34
43
  children: [
35
44
  /* @__PURE__ */ jsx("div", { className: "px-[5%]", children: /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-0 mx-auto flex min-h-[80vh] max-w-lg items-center justify-center py-16 text-center md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs(motion.div, { style: { opacity: fadeOut, scale: scaleDown }, children: [
36
45
  /* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
@@ -77,10 +86,10 @@ const ScrollExpandVideoHeroDefaults = {
77
86
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
78
87
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
79
88
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
80
- image: {
89
+ images: [{
81
90
  src: "https://picsum.photos/seed/hero-video/1200/800",
82
91
  alt: "Relume placeholder image"
83
- }
92
+ }]
84
93
  };
85
94
  export {
86
95
  ScrollExpandVideoHero,
@@ -94,14 +94,22 @@ declare const conf: {
94
94
  video: {
95
95
  type: string;
96
96
  };
97
- image: {
98
- type: "object";
99
- objectFields: {
100
- src: import("@puckeditor/core").Field<string>;
101
- alt: {
97
+ images: {
98
+ readonly type: "array";
99
+ readonly max: 10;
100
+ readonly getItemSummary: (item: {
101
+ alt?: string;
102
+ }, index?: number) => string;
103
+ readonly arrayFields: {
104
+ readonly src: import("@puckeditor/core").Field<string>;
105
+ readonly alt: {
102
106
  type: "text";
103
107
  };
104
108
  };
109
+ readonly defaultItemProps: {
110
+ alt: string;
111
+ src: string;
112
+ };
105
113
  };
106
114
  };
107
115
  defaultProps: ScrollExpandVideoHeroProps;
@@ -1,14 +1,14 @@
1
1
  import { ScrollExpandVideoHero, ScrollExpandVideoHeroDefaults } from "./component.js";
2
2
  import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
3
3
  import { buttonsField } from "../../../puck-core/core/props/interactive.js";
4
- import { imageField } from "../../../puck-core/core/props/media.js";
4
+ import { imagesField } from "../../../puck-core/core/props/media.js";
5
5
  const conf = {
6
6
  fields: {
7
7
  heading: headingField,
8
8
  description: descriptionField,
9
9
  buttons: buttonsField,
10
10
  video: { type: "text" },
11
- image: imageField
11
+ images: imagesField
12
12
  },
13
13
  defaultProps: ScrollExpandVideoHeroDefaults,
14
14
  render: ScrollExpandVideoHero
@@ -1,26 +1,35 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { useRef } from "react";
3
4
  import { useScroll, useTransform, motion } from "framer-motion";
4
5
  import { VideoIframe } from "../../../shadcn/video-iframe.js";
5
6
  import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
6
7
  import { useMediaQuery } from "../../../../hooks/use-media-query.js";
8
+ import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
7
9
  import { CompoundButton } from "../../../puck-base/button.js";
8
10
  import { CompoundImage } from "../../../puck-base/image.js";
11
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
12
+ import { cn } from "../../../../utils/css-utils.js";
9
13
  import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
10
14
  const ScrollZoomHero = (props) => {
11
- const { heading, description, buttons, image, video, styles: rawStyles } = {
15
+ var _a, _b, _c, _d;
16
+ const { heading, description, buttons, images, video, styles: rawStyles } = {
12
17
  ...ScrollZoomHeroDefaults,
13
18
  ...props
14
19
  };
15
- const { mediaType } = rawStyles ?? {};
20
+ const { className: sectionClassName, style: sectionStyle, css, mediaType } = rawStyles ?? {};
16
21
  const isMobile = useMediaQuery("(max-width: 767px)");
17
- const { scrollYProgress } = useScroll();
22
+ const sectionRef = useRef(null);
23
+ const [scrollContainerRef] = useScrollContainer(sectionRef);
24
+ const { scrollYProgress } = useScroll(
25
+ scrollContainerRef.current ? { container: scrollContainerRef } : void 0
26
+ );
18
27
  const scaleValue = useTransform(
19
28
  scrollYProgress,
20
29
  mediaType === "play" ? [0, 0.3] : [0, 0.5],
21
30
  [0.5, 1]
22
31
  );
23
- return /* @__PURE__ */ jsx("section", { id: "relume", className: "relative md:min-h-screen", children: /* @__PURE__ */ jsx("div", { className: "px-[5%] py-16 md:py-24 lg:py-28", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
32
+ return /* @__PURE__ */ jsx(SectionWrapper, { ref: sectionRef, className: cn("relative md:min-h-screen", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "px-[5%] py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
24
33
  /* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 grid grid-cols-1 items-start gap-y-5 md:mb-18 md:grid-cols-2 md:gap-x-12 md:gap-y-8 lg:mb-20 lg:gap-x-20 lg:gap-y-16", children: [
25
34
  /* @__PURE__ */ jsx("h1", { className: "text-6xl font-bold md:text-9xl lg:text-10xl", children: heading }),
26
35
  /* @__PURE__ */ jsxs("div", { className: "mx-[7.5%] self-end md:mt-48", children: [
@@ -35,7 +44,7 @@ const ScrollZoomHero = (props) => {
35
44
  className: "relative flex size-full origin-top-right items-center justify-center",
36
45
  style: { scale: isMobile ? 1 : scaleValue },
37
46
  children: [
38
- /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" }),
47
+ /* @__PURE__ */ jsx(CompoundImage, { src: ((_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src) ?? "", alt: ((_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt) ?? "", className: "size-full object-cover" }),
39
48
  /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
40
49
  /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
41
50
  ]
@@ -47,7 +56,7 @@ const ScrollZoomHero = (props) => {
47
56
  {
48
57
  className: "flex origin-top-right flex-col items-end justify-center md:h-[60vh] lg:h-[80vh] lg:justify-start",
49
58
  style: { scale: isMobile ? 1 : scaleValue },
50
- children: /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" })
59
+ children: /* @__PURE__ */ jsx(CompoundImage, { src: ((_c = images == null ? void 0 : images[0]) == null ? void 0 : _c.src) ?? "", alt: ((_d = images == null ? void 0 : images[0]) == null ? void 0 : _d.alt) ?? "", className: "size-full object-cover" })
51
60
  }
52
61
  )
53
62
  ] }) }) });
@@ -57,10 +66,10 @@ const ScrollZoomHeroDefaults = {
57
66
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
58
67
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
59
68
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
60
- image: {
69
+ images: [{
61
70
  src: "https://picsum.photos/seed/hero-video/1200/800",
62
71
  alt: "Relume placeholder image"
63
- },
72
+ }],
64
73
  styles: {
65
74
  mediaType: "play"
66
75
  }
@@ -91,14 +91,22 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- image: {
95
- type: "object";
96
- objectFields: {
97
- src: import("@puckeditor/core").Field<string>;
98
- alt: {
94
+ images: {
95
+ readonly type: "array";
96
+ readonly max: 10;
97
+ readonly getItemSummary: (item: {
98
+ alt?: string;
99
+ }, index?: number) => string;
100
+ readonly arrayFields: {
101
+ readonly src: import("@puckeditor/core").Field<string>;
102
+ readonly alt: {
99
103
  type: "text";
100
104
  };
101
105
  };
106
+ readonly defaultItemProps: {
107
+ alt: string;
108
+ src: string;
109
+ };
102
110
  };
103
111
  video: {
104
112
  type: string;
@@ -107,6 +115,28 @@ declare const conf: {
107
115
  type: string;
108
116
  label: string;
109
117
  objectFields: {
118
+ className: {
119
+ readonly type: "text";
120
+ readonly label: "Class Name";
121
+ readonly ai: {
122
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
123
+ };
124
+ };
125
+ style: {
126
+ readonly type: "object";
127
+ readonly label: "Style";
128
+ readonly objectFields: {};
129
+ readonly ai: {
130
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
131
+ };
132
+ };
133
+ css: {
134
+ readonly type: "textarea";
135
+ readonly label: "Custom CSS";
136
+ readonly ai: {
137
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
138
+ };
139
+ };
110
140
  mediaType: {
111
141
  readonly type: "radio";
112
142
  readonly label: "Media Type";
@@ -1,20 +1,22 @@
1
1
  import { ScrollZoomHero, ScrollZoomHeroDefaults } from "./component.js";
2
2
  import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
3
3
  import { buttonsField } from "../../../puck-core/core/props/interactive.js";
4
- import { imageField } from "../../../puck-core/core/props/media.js";
4
+ import { imagesField } from "../../../puck-core/core/props/media.js";
5
5
  import { heroStyleFields } from "../props.js";
6
+ import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
6
7
  const conf = {
7
8
  fields: {
8
9
  heading: headingField,
9
10
  description: descriptionField,
10
11
  buttons: buttonsField,
11
- image: imageField,
12
+ images: imagesField,
12
13
  video: { type: "text" },
13
14
  styles: {
14
15
  type: "object",
15
16
  label: "Styles",
16
17
  objectFields: {
17
- mediaType: heroStyleFields.mediaType
18
+ mediaType: heroStyleFields.mediaType,
19
+ ...sectionWrapperFields
18
20
  }
19
21
  }
20
22
  },
@@ -91,14 +91,22 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- image: {
95
- type: "object";
96
- objectFields: {
97
- src: import("@puckeditor/core").Field<string>;
98
- alt: {
94
+ images: {
95
+ readonly type: "array";
96
+ readonly max: 10;
97
+ readonly getItemSummary: (item: {
98
+ alt?: string;
99
+ }, index?: number) => string;
100
+ readonly arrayFields: {
101
+ readonly src: import("@puckeditor/core").Field<string>;
102
+ readonly alt: {
99
103
  type: "text";
100
104
  };
101
105
  };
106
+ readonly defaultItemProps: {
107
+ alt: string;
108
+ src: string;
109
+ };
102
110
  };
103
111
  video: {
104
112
  type: string;
@@ -168,6 +176,28 @@ declare const conf: {
168
176
  type: string;
169
177
  label: string;
170
178
  objectFields: {
179
+ className: {
180
+ readonly type: "text";
181
+ readonly label: "Class Name";
182
+ readonly ai: {
183
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
184
+ };
185
+ };
186
+ style: {
187
+ readonly type: "object";
188
+ readonly label: "Style";
189
+ readonly objectFields: {};
190
+ readonly ai: {
191
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
192
+ };
193
+ };
194
+ css: {
195
+ readonly type: "textarea";
196
+ readonly label: "Custom CSS";
197
+ readonly ai: {
198
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
199
+ };
200
+ };
171
201
  mediaPosition: {
172
202
  readonly type: "radio";
173
203
  readonly label: "Media Position";
@@ -91,14 +91,22 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- image: {
95
- type: "object";
96
- objectFields: {
97
- src: import("@puckeditor/core").Field<string>;
98
- alt: {
94
+ images: {
95
+ readonly type: "array";
96
+ readonly max: 10;
97
+ readonly getItemSummary: (item: {
98
+ alt?: string;
99
+ }, index?: number) => string;
100
+ readonly arrayFields: {
101
+ readonly src: import("@puckeditor/core").Field<string>;
102
+ readonly alt: {
99
103
  type: "text";
100
104
  };
101
105
  };
106
+ readonly defaultItemProps: {
107
+ alt: string;
108
+ src: string;
109
+ };
102
110
  };
103
111
  video: {
104
112
  type: string;
@@ -168,6 +176,28 @@ declare const conf: {
168
176
  type: string;
169
177
  label: string;
170
178
  objectFields: {
179
+ className: {
180
+ readonly type: "text";
181
+ readonly label: "Class Name";
182
+ readonly ai: {
183
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
184
+ };
185
+ };
186
+ style: {
187
+ readonly type: "object";
188
+ readonly label: "Style";
189
+ readonly objectFields: {};
190
+ readonly ai: {
191
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
192
+ };
193
+ };
194
+ css: {
195
+ readonly type: "textarea";
196
+ readonly label: "Custom CSS";
197
+ readonly ai: {
198
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
199
+ };
200
+ };
171
201
  textAlign: {
172
202
  readonly type: "radio";
173
203
  readonly label: "Text Align";