dune-react 0.0.30 → 0.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 (348) hide show
  1. package/dist/components/puck-base/article-card.d.ts +2 -2
  2. package/dist/components/puck-base/article-card.js +2 -2
  3. package/dist/components/puck-base/card.d.ts +2 -2
  4. package/dist/components/puck-base/card.js +2 -2
  5. package/dist/components/puck-base/index.d.ts +2 -1
  6. package/dist/components/puck-base/media.d.ts +12 -0
  7. package/dist/components/puck-base/media.js +576 -0
  8. package/dist/components/puck-base/social-links.d.ts +7 -0
  9. package/dist/components/puck-base/social-links.js +23 -0
  10. package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +6 -6
  11. package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +1 -1
  12. package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +2 -2
  13. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +42 -0
  14. package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +10 -10
  15. package/dist/components/puck-block/banner-sections/dual-row-marquee/index.d.ts +2 -2
  16. package/dist/components/puck-block/banner-sections/dual-row-marquee/index.js +3 -3
  17. package/dist/components/puck-block/banner-sections/props.d.ts +9 -12
  18. package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +1 -5
  19. package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -5
  20. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -5
  21. package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +4 -8
  22. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
  23. package/dist/components/puck-block/contact-sections/form-with-media/index.js +2 -2
  24. package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -5
  25. package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -8
  26. package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +1 -1
  27. package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +2 -2
  28. package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +1 -1
  29. package/dist/components/puck-block/contact-sections/info-cards-media/index.js +2 -2
  30. package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -8
  31. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
  32. package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +2 -2
  33. package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +10 -14
  34. package/dist/components/puck-block/contact-sections/props.d.ts +5 -16
  35. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
  36. package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.d.ts +7 -2
  37. package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -2
  38. package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +57 -8
  39. package/dist/components/puck-block/contact-sections/tab-locations/index.js +7 -7
  40. package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +40 -47
  41. package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.d.ts +2 -2
  42. package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +2 -2
  43. package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +2 -2
  44. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
  45. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +2 -2
  46. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.d.ts +2 -2
  47. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +6 -6
  48. package/dist/components/puck-block/cta-sections/props.d.ts +3 -3
  49. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -1
  50. package/dist/components/puck-block/cta-sections/side-media-cta/index.js +2 -2
  51. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +4 -4
  52. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -2
  53. package/dist/components/puck-block/cta-sections/text-block-cta/index.js +3 -3
  54. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +3 -3
  55. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +10 -10
  56. package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.d.ts +2 -2
  57. package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +2 -2
  58. package/dist/components/puck-block/faq-sections/icon-card-faq/index.js +2 -2
  59. package/dist/components/puck-block/faq-sections/props.d.ts +4 -4
  60. package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +7 -7
  61. package/dist/components/puck-block/feature-sections/feature-cards-grid/component.d.ts +2 -2
  62. package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +6 -6
  63. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +1 -1
  64. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -3
  65. package/dist/components/puck-block/feature-sections/feature-list-split/component.d.ts +2 -2
  66. package/dist/components/puck-block/feature-sections/feature-list-split/component.js +6 -6
  67. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +1 -1
  68. package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -3
  69. package/dist/components/puck-block/feature-sections/props.d.ts +3 -3
  70. package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +2 -2
  71. package/dist/components/puck-block/feature-sections/tab-feature/component.js +12 -12
  72. package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +1 -1
  73. package/dist/components/puck-block/feature-sections/tab-feature/index.js +2 -2
  74. package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -5
  75. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
  76. package/dist/components/puck-block/feature-sections/text-media-split/index.js +2 -2
  77. package/dist/components/puck-block/feature-sections/text-only-section/component.d.ts +2 -2
  78. package/dist/components/puck-block/feature-sections/text-only-section/component.js +2 -2
  79. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
  80. package/dist/components/puck-block/feature-sections/text-only-section/index.js +2 -2
  81. package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +9 -9
  82. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +2 -2
  83. package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.d.ts +7 -2
  84. package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +9 -9
  85. package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +50 -10
  86. package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +3 -2
  87. package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +9 -9
  88. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +50 -10
  89. package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +3 -3
  90. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +50 -10
  91. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +50 -10
  92. package/dist/components/puck-block/footer-sections/props.d.ts +17 -10
  93. package/dist/components/puck-block/footer-sections/props.js +8 -0
  94. package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +7 -7
  95. package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +1 -1
  96. package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +2 -2
  97. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +12 -12
  98. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +1 -1
  99. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -2
  100. package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +12 -12
  101. package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +1 -1
  102. package/dist/components/puck-block/gallery-sections/image-carousel/index.js +2 -2
  103. package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +1 -1
  104. package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +2 -2
  105. package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +14 -14
  106. package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +1 -1
  107. package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +2 -2
  108. package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +7 -7
  109. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +1 -1
  110. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +2 -2
  111. package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +6 -6
  112. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +1 -1
  113. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +2 -2
  114. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +9 -9
  115. package/dist/components/puck-block/gallery-sections/props.d.ts +8 -8
  116. package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +1 -1
  117. package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +2 -2
  118. package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +11 -11
  119. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +1 -1
  120. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +5 -5
  121. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -26
  122. package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +1 -1
  123. package/dist/components/puck-block/gallery-sections/split-carousel/index.js +2 -2
  124. package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +6 -6
  125. package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +1 -1
  126. package/dist/components/puck-block/gallery-sections/static-grid/index.js +2 -2
  127. package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +7 -7
  128. package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +31 -24
  129. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +81 -0
  130. package/dist/components/puck-block/header-sections/centered-navbar/index.js +8 -4
  131. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +32 -25
  132. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +81 -0
  133. package/dist/components/puck-block/header-sections/drawer-navbar/index.js +5 -3
  134. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +27 -22
  135. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +80 -3
  136. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +3 -3
  137. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +23 -18
  138. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +80 -3
  139. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +3 -3
  140. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +53 -0
  141. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +3 -3
  142. package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +13 -6
  143. package/dist/components/puck-block/header-sections/props.d.ts +17 -5
  144. package/dist/components/puck-block/header-sections/props.js +8 -0
  145. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +53 -0
  146. package/dist/components/puck-block/header-sections/standard-navbar/index.js +5 -4
  147. package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +9 -5
  148. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +8 -8
  149. package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
  150. package/dist/components/puck-block/hero-sections/carousel-hero/index.js +2 -2
  151. package/dist/components/puck-block/hero-sections/column-scroll-hero/component.d.ts +3 -3
  152. package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +14 -14
  153. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +2 -2
  154. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.js +3 -3
  155. package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +11 -11
  156. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
  157. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.js +2 -2
  158. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +1 -1
  159. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -5
  160. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
  161. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +2 -2
  162. package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +16 -16
  163. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
  164. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +2 -2
  165. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +11 -11
  166. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
  167. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.js +2 -2
  168. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +1 -1
  169. package/dist/components/puck-block/hero-sections/mouse-track-hero/component.d.ts +3 -3
  170. package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +6 -6
  171. package/dist/components/puck-block/hero-sections/mouse-track-hero/index.js +3 -3
  172. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +1 -1
  173. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -2
  174. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +7 -7
  175. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +4 -4
  176. package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts +4 -4
  177. package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +18 -18
  178. package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +12 -12
  179. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
  180. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.js +2 -2
  181. package/dist/components/puck-block/hero-sections/props.d.ts +4 -4
  182. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +5 -5
  183. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
  184. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.js +2 -2
  185. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +5 -5
  186. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
  187. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +2 -2
  188. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +9 -9
  189. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
  190. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +2 -2
  191. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +1 -1
  192. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +1 -1
  193. package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +12 -12
  194. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
  195. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
  196. package/dist/components/puck-block/hero-sections/sticky-video-hero/component.d.ts +2 -2
  197. package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +13 -13
  198. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
  199. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +3 -3
  200. package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +2 -2
  201. package/dist/components/puck-block/hero-sections/tab-hero/component.js +6 -6
  202. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +1 -1
  203. package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -2
  204. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.d.ts +4 -4
  205. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +4 -4
  206. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +4 -4
  207. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +11 -11
  208. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
  209. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.js +2 -2
  210. package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +7 -7
  211. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
  212. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.js +2 -2
  213. package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -5
  214. package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +1 -1
  215. package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +2 -2
  216. package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +4 -4
  217. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
  218. package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +2 -2
  219. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +2 -2
  220. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -3
  221. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.d.ts +2 -2
  222. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +7 -7
  223. package/dist/components/puck-block/metrics-sections/props.d.ts +6 -6
  224. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
  225. package/dist/components/puck-block/metrics-sections/split-stats/index.js +2 -2
  226. package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +4 -4
  227. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +2 -2
  228. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -3
  229. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +3 -3
  230. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +11 -11
  231. package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +4 -4
  232. package/dist/components/puck-block/pricing-sections/props.d.ts +3 -3
  233. package/dist/components/puck-block/pricing-sections/single-pricing-card/component.d.ts +2 -2
  234. package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +3 -3
  235. package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +2 -2
  236. package/dist/components/puck-block/pricing-sections/split-pricing/component.js +2 -2
  237. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.d.ts +2 -2
  238. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +4 -4
  239. package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.d.ts +2 -2
  240. package/dist/components/puck-block/registry.generated.d.ts +694 -118
  241. package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +2 -2
  242. package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +3 -3
  243. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +2 -2
  244. package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +2 -2
  245. package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +2 -2
  246. package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +3 -3
  247. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +2 -2
  248. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +2 -2
  249. package/dist/components/puck-block/showcase-sections/props.d.ts +2 -2
  250. package/dist/components/puck-block/showcase-sections/single-column-timeline/component.d.ts +2 -2
  251. package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +3 -3
  252. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
  253. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +2 -2
  254. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.d.ts +2 -2
  255. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +3 -3
  256. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
  257. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +2 -2
  258. package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +2 -2
  259. package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +8 -8
  260. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +2 -2
  261. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +2 -2
  262. package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +2 -2
  263. package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +3 -3
  264. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
  265. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +2 -2
  266. package/dist/components/puck-block/team-sections/props.d.ts +4 -5
  267. package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +2 -2
  268. package/dist/components/puck-block/team-sections/team-carousel/component.js +3 -3
  269. package/dist/components/puck-block/team-sections/team-grid/component.d.ts +2 -2
  270. package/dist/components/puck-block/team-sections/team-grid/component.js +6 -6
  271. package/dist/components/puck-block/team-sections/team-inline-card/component.d.ts +2 -2
  272. package/dist/components/puck-block/team-sections/team-inline-card/component.js +3 -3
  273. package/dist/components/puck-block/team-sections/team-sticky-scatter/component.d.ts +2 -2
  274. package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +3 -3
  275. package/dist/components/puck-block/team-sections/team-two-column/component.d.ts +2 -2
  276. package/dist/components/puck-block/team-sections/team-two-column/component.js +7 -7
  277. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +4 -4
  278. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +8 -8
  279. package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +3 -3
  280. package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +4 -4
  281. package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -3
  282. package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.d.ts +3 -3
  283. package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +3 -3
  284. package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +3 -3
  285. package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +10 -10
  286. package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +1 -1
  287. package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +3 -3
  288. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.d.ts +3 -3
  289. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +7 -7
  290. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +1 -1
  291. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -3
  292. package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.d.ts +2 -2
  293. package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +2 -2
  294. package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +2 -2
  295. package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +5 -5
  296. package/dist/components/puck-block/testimonial-sections/props.d.ts +6 -7
  297. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +3 -2
  298. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +6 -3
  299. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +4 -4
  300. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +5 -5
  301. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts +4 -4
  302. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +9 -9
  303. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +3 -3
  304. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +8 -8
  305. package/dist/components/puck-block/text-sections/blog-article/component.d.ts +4 -7
  306. package/dist/components/puck-block/text-sections/blog-article/component.js +9 -17
  307. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +39 -14
  308. package/dist/components/puck-block/text-sections/blog-article/index.js +4 -10
  309. package/dist/components/puck-block/text-sections/props.d.ts +3 -3
  310. package/dist/components/puck-block/text-sections/prose-content/component.d.ts +2 -2
  311. package/dist/components/puck-block/text-sections/prose-content/component.js +3 -3
  312. package/dist/components/puck-block/text-sections/prose-content/index.d.ts +1 -1
  313. package/dist/components/puck-block/text-sections/prose-content/index.js +2 -2
  314. package/dist/components/puck-block/text-sections/prose-sidebar/component.d.ts +2 -2
  315. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -1
  316. package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -5
  317. package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +1 -1
  318. package/dist/components/puck-block/text-sections/side-media-content/index.js +2 -2
  319. package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.d.ts +2 -2
  320. package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +4 -4
  321. package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +2 -2
  322. package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +2 -2
  323. package/dist/components/puck-block/text-sections/text-header/component.d.ts +2 -2
  324. package/dist/components/puck-block/text-sections/text-header/index.d.ts +1 -1
  325. package/dist/components/puck-core/core/context/editor-context.d.ts +2 -0
  326. package/dist/components/puck-core/core/fields.d.ts +2 -2
  327. package/dist/components/puck-core/core/props/content.d.ts +3 -3
  328. package/dist/components/puck-core/core/props/index.d.ts +2 -2
  329. package/dist/components/puck-core/core/props/index.js +7 -0
  330. package/dist/components/puck-core/core/props/interactive.d.ts +44 -1
  331. package/dist/components/puck-core/core/props/interactive.js +24 -1
  332. package/dist/components/puck-core/core/props/media.d.ts +8 -8
  333. package/dist/components/puck-core/core/props/media.js +21 -21
  334. package/dist/components/puck-core/core/social-icons.d.ts +5 -0
  335. package/dist/components/puck-core/core/social-icons.js +48 -0
  336. package/dist/components/puck-core/core/with-editable.js +9 -2
  337. package/dist/components/puck-core/fields/media-upload-field.d.ts +7 -0
  338. package/dist/components/puck-core/fields/{image-upload-field.js → media-upload-field.js} +71 -28
  339. package/dist/components/puck-core/index.d.ts +2 -2
  340. package/dist/components/shadcn/tabs.d.ts +2 -1
  341. package/dist/components/shadcn/tabs.js +21 -3
  342. package/dist/components/shadcn/video-iframe.d.ts +2 -1
  343. package/dist/components/shadcn/video-iframe.js +7 -6
  344. package/dist/index.js +15 -12
  345. package/package.json +2 -2
  346. package/dist/components/puck-base/image.d.ts +0 -6
  347. package/dist/components/puck-base/image.js +0 -360
  348. package/dist/components/puck-core/fields/image-upload-field.d.ts +0 -7
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { CompoundButton } from "../../../puck-base/button.js";
3
- import { CompoundImage } from "../../../puck-base/image.js";
3
+ import { CompoundMedia } from "../../../puck-base/media.js";
4
4
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  const MultiImageGridHero = (props) => {
7
- const { heading, description, buttons, images, styles: rawStyles } = {
7
+ const { heading, description, buttons, medias, styles: rawStyles } = {
8
8
  ...MultiImageGridHeroDefaults,
9
9
  ...props
10
10
  };
@@ -14,16 +14,16 @@ const MultiImageGridHero = (props) => {
14
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)) });
15
15
  const renderImages = () => {
16
16
  const gridStyle = { gridTemplateColumns: (imageGridRatio ?? "").replace(/_/g, " ") };
17
- return /* @__PURE__ */ jsx("div", { className: "grid items-start gap-6 sm:gap-8 md:gap-16", style: gridStyle, children: images.map((image, index) => /* @__PURE__ */ jsx(
17
+ return /* @__PURE__ */ jsx("div", { className: "grid items-start gap-6 sm:gap-8 md:gap-16", style: gridStyle, children: medias.map((item, index) => /* @__PURE__ */ jsx(
18
18
  "div",
19
19
  {
20
20
  className: `w-full ${imageMarginTops[index % imageMarginTops.length] || ""}`,
21
21
  children: /* @__PURE__ */ jsx(
22
- CompoundImage,
22
+ CompoundMedia,
23
23
  {
24
24
  className: `${imageAspectRatios[index % imageAspectRatios.length]} size-full object-cover`,
25
- src: image.src,
26
- alt: image.alt
25
+ src: item.src,
26
+ alt: item.alt
27
27
  }
28
28
  )
29
29
  },
@@ -65,7 +65,7 @@ const MultiImageGridHeroDefaults = {
65
65
  heading: "Medium length hero heading goes here",
66
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.",
67
67
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
68
- images: [
68
+ medias: [
69
69
  {
70
70
  src: "https://picsum.photos/seed/hero-landscape/1200/800",
71
71
  alt: "Placeholder image 1"
@@ -1,7 +1,7 @@
1
1
  import { OverlappingImageHero, OverlappingImageHeroDefaults } from "./overlapping-image-hero.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 { mediaField } from "../../../puck-core/core/props/media.js";
5
5
  import { heroStyleFields } from "../props.js";
6
6
  import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
7
7
  const conf = {
@@ -9,9 +9,9 @@ const conf = {
9
9
  heading: headingField,
10
10
  description: descriptionField,
11
11
  buttons: buttonsField,
12
- firstImage: imageField,
13
- secondImage: imageField,
14
- thirdImage: imageField,
12
+ firstImage: mediaField,
13
+ secondImage: mediaField,
14
+ thirdImage: mediaField,
15
15
  styles: {
16
16
  type: "object",
17
17
  label: "Styles",
@@ -1,8 +1,8 @@
1
- import type { BaseImage, HeroComponentProps } from "../props";
1
+ import type { BaseMedia, HeroComponentProps } from "../props";
2
2
  type OverlappingImageHeroExtra = {
3
- firstImage: BaseImage;
4
- secondImage: BaseImage;
5
- thirdImage: BaseImage;
3
+ firstImage: BaseMedia;
4
+ secondImage: BaseMedia;
5
+ thirdImage: BaseMedia;
6
6
  };
7
7
  export type OverlappingImageHeroProps = HeroComponentProps<OverlappingImageHeroExtra>;
8
8
  export declare const OverlappingImageHero: (props: OverlappingImageHeroProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { CompoundButton } from "../../../puck-base/button.js";
3
- import { CompoundImage } from "../../../puck-base/image.js";
3
+ import { CompoundMedia } from "../../../puck-base/media.js";
4
4
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  const OverlappingImageHero = (props) => {
@@ -19,11 +19,11 @@ const OverlappingImageHero = (props) => {
19
19
  const { className: sectionClassName, style: sectionStyle, css, textPosition, imageCount, overlapStyle } = rawStyles ?? {};
20
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)) });
21
21
  const renderOverlappingImages = () => {
22
- if (imageCount === 3) {
22
+ if (imageCount === "3") {
23
23
  if (overlapStyle === "side-by-side") {
24
24
  return /* @__PURE__ */ jsxs("div", { className: "relative flex", children: [
25
25
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-0 w-[30%]", children: /* @__PURE__ */ jsx(
26
- CompoundImage,
26
+ CompoundMedia,
27
27
  {
28
28
  src: firstImage.src,
29
29
  className: "aspect-[2/3] size-full object-cover",
@@ -31,7 +31,7 @@ const OverlappingImageHero = (props) => {
31
31
  }
32
32
  ) }),
33
33
  /* @__PURE__ */ jsx("div", { className: "mx-[10%] mb-[10%] w-full", children: /* @__PURE__ */ jsx(
34
- CompoundImage,
34
+ CompoundMedia,
35
35
  {
36
36
  src: secondImage.src,
37
37
  className: "aspect-[3/2] size-full object-cover",
@@ -39,7 +39,7 @@ const OverlappingImageHero = (props) => {
39
39
  }
40
40
  ) }),
41
41
  /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-[10%] w-[30%]", children: /* @__PURE__ */ jsx(
42
- CompoundImage,
42
+ CompoundMedia,
43
43
  {
44
44
  src: thirdImage.src,
45
45
  className: "aspect-square size-full object-cover",
@@ -51,7 +51,7 @@ const OverlappingImageHero = (props) => {
51
51
  if (overlapStyle === "square") {
52
52
  return /* @__PURE__ */ jsxs("div", { className: "relative flex w-full", children: [
53
53
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-[10%] left-0 w-[35%]", children: /* @__PURE__ */ jsx(
54
- CompoundImage,
54
+ CompoundMedia,
55
55
  {
56
56
  src: firstImage.src,
57
57
  className: "aspect-square size-full object-cover",
@@ -59,7 +59,7 @@ const OverlappingImageHero = (props) => {
59
59
  }
60
60
  ) }),
61
61
  /* @__PURE__ */ jsx("div", { className: "mx-[10%] w-full", children: /* @__PURE__ */ jsx(
62
- CompoundImage,
62
+ CompoundMedia,
63
63
  {
64
64
  src: secondImage.src,
65
65
  className: "aspect-square size-full object-cover",
@@ -67,7 +67,7 @@ const OverlappingImageHero = (props) => {
67
67
  }
68
68
  ) }),
69
69
  /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-[10%] w-2/5", children: /* @__PURE__ */ jsx(
70
- CompoundImage,
70
+ CompoundMedia,
71
71
  {
72
72
  src: thirdImage.src,
73
73
  className: "aspect-[3/2] size-full object-cover",
@@ -78,7 +78,7 @@ const OverlappingImageHero = (props) => {
78
78
  }
79
79
  return /* @__PURE__ */ jsxs("div", { className: "relative flex w-full", children: [
80
80
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-[10%] left-0 right-auto top-auto w-[45%]", children: /* @__PURE__ */ jsx(
81
- CompoundImage,
81
+ CompoundMedia,
82
82
  {
83
83
  src: firstImage.src,
84
84
  className: "aspect-[3/2] size-full object-cover",
@@ -86,7 +86,7 @@ const OverlappingImageHero = (props) => {
86
86
  }
87
87
  ) }),
88
88
  /* @__PURE__ */ jsx("div", { className: "mx-[15%] w-full", children: /* @__PURE__ */ jsx(
89
- CompoundImage,
89
+ CompoundMedia,
90
90
  {
91
91
  src: secondImage.src,
92
92
  className: "aspect-[2/3] size-full object-cover",
@@ -94,7 +94,7 @@ const OverlappingImageHero = (props) => {
94
94
  }
95
95
  ) }),
96
96
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-auto left-auto right-0 top-[10%] w-[40%]", children: /* @__PURE__ */ jsx(
97
- CompoundImage,
97
+ CompoundMedia,
98
98
  {
99
99
  src: thirdImage.src,
100
100
  className: "aspect-square size-full object-cover",
@@ -106,7 +106,7 @@ const OverlappingImageHero = (props) => {
106
106
  if (overlapStyle === "square") {
107
107
  return /* @__PURE__ */ jsxs("div", { className: "relative flex", children: [
108
108
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-0 w-3/5", children: /* @__PURE__ */ jsx(
109
- CompoundImage,
109
+ CompoundMedia,
110
110
  {
111
111
  src: firstImage.src,
112
112
  className: "aspect-square size-full object-cover",
@@ -114,7 +114,7 @@ const OverlappingImageHero = (props) => {
114
114
  }
115
115
  ) }),
116
116
  /* @__PURE__ */ jsx("div", { className: "mb-[15%] ml-[15%] w-full", children: /* @__PURE__ */ jsx(
117
- CompoundImage,
117
+ CompoundMedia,
118
118
  {
119
119
  src: secondImage.src,
120
120
  className: "aspect-square size-full object-cover",
@@ -126,7 +126,7 @@ const OverlappingImageHero = (props) => {
126
126
  if (overlapStyle === "side-by-side") {
127
127
  return /* @__PURE__ */ jsxs("div", { className: "relative flex w-full", children: [
128
128
  /* @__PURE__ */ jsx("div", { className: "absolute left-0 top-[10%] w-3/5", children: /* @__PURE__ */ jsx(
129
- CompoundImage,
129
+ CompoundMedia,
130
130
  {
131
131
  src: firstImage.src,
132
132
  className: "aspect-[3/2] size-full object-cover",
@@ -134,7 +134,7 @@ const OverlappingImageHero = (props) => {
134
134
  }
135
135
  ) }),
136
136
  /* @__PURE__ */ jsx("div", { className: "ml-[15%] w-full", children: /* @__PURE__ */ jsx(
137
- CompoundImage,
137
+ CompoundMedia,
138
138
  {
139
139
  src: secondImage.src,
140
140
  className: "aspect-square size-full object-cover",
@@ -145,7 +145,7 @@ const OverlappingImageHero = (props) => {
145
145
  }
146
146
  return /* @__PURE__ */ jsxs("div", { className: "relative flex w-full", children: [
147
147
  /* @__PURE__ */ jsx("div", { className: "mr-[30%]", children: /* @__PURE__ */ jsx(
148
- CompoundImage,
148
+ CompoundMedia,
149
149
  {
150
150
  src: firstImage.src,
151
151
  className: "aspect-[2/3] size-full object-cover",
@@ -153,7 +153,7 @@ const OverlappingImageHero = (props) => {
153
153
  }
154
154
  ) }),
155
155
  /* @__PURE__ */ jsx("div", { className: "absolute bottom-auto left-auto right-0 top-[10%] w-1/2", children: /* @__PURE__ */ jsx(
156
- CompoundImage,
156
+ CompoundMedia,
157
157
  {
158
158
  src: secondImage.src,
159
159
  className: "aspect-square size-full object-cover",
@@ -211,7 +211,7 @@ const OverlappingImageHeroDefaults = {
211
211
  },
212
212
  styles: {
213
213
  textPosition: "left",
214
- imageCount: 2,
214
+ imageCount: "2",
215
215
  overlapStyle: "default"
216
216
  }
217
217
  };
@@ -2,14 +2,14 @@
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useScroll, useSpring, useTransform, motion } from "motion/react";
4
4
  import { CompoundButton } from "../../../puck-base/button.js";
5
- import { CompoundImage } from "../../../puck-base/image.js";
5
+ import { CompoundMedia } from "../../../puck-base/media.js";
6
6
  import { useRef } from "react";
7
7
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
8
8
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
9
9
  import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
10
10
  import { cn } from "../../../../utils/css-utils.js";
11
11
  const ParallaxImagesHero = (props) => {
12
- const { heading, description, buttons = [], images = [], styles } = {
12
+ const { heading, description, buttons = [], medias = [], styles } = {
13
13
  ...ParallaxImagesHeroDefaults,
14
14
  ...props
15
15
  };
@@ -28,7 +28,7 @@ const ParallaxImagesHero = (props) => {
28
28
  const ySecond = useTransform(animatedScrollYProgress, [0, 1], ["0vh", "-39.6vh"]);
29
29
  if (isEditor) {
30
30
  return /* @__PURE__ */ jsx(SectionWrapper, { ref: transformRef, className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "relative overflow-hidden", children: [
31
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-4 py-8", children: images.slice(0, 6).map((image, index) => /* @__PURE__ */ jsx("div", { className: "relative aspect-square", children: /* @__PURE__ */ jsx(CompoundImage, { src: image.src, className: "absolute inset-0 size-full object-cover", alt: image.alt }) }, index)) }),
31
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-4 py-8", children: medias.slice(0, 6).map((item, index) => /* @__PURE__ */ jsx("div", { className: "relative aspect-square", children: /* @__PURE__ */ jsx(CompoundMedia, { src: item.src, className: "absolute inset-0 size-full object-cover", alt: item.alt }) }, index)) }),
32
32
  /* @__PURE__ */ jsx("div", { className: "container relative flex max-w-lg items-center py-16 text-center", children: /* @__PURE__ */ jsxs("div", { children: [
33
33
  /* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
34
34
  /* @__PURE__ */ jsx("p", { className: "relative z-20 md:text-md", children: description }),
@@ -37,7 +37,7 @@ const ParallaxImagesHero = (props) => {
37
37
  ] }) });
38
38
  }
39
39
  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: [
40
- /* @__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(
40
+ /* @__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: medias.slice(0, 4).map((item, index) => /* @__PURE__ */ jsx(
41
41
  "div",
42
42
  {
43
43
  className: cn("relative h-[35vw] pt-[120%] sm:h-auto", {
@@ -47,11 +47,11 @@ const ParallaxImagesHero = (props) => {
47
47
  "left-[64vw] mt-[-45vw] w-[26vw] md:w-[24vw] lg:w-[18vw]": index === 3
48
48
  }),
49
49
  children: /* @__PURE__ */ jsx(
50
- CompoundImage,
50
+ CompoundMedia,
51
51
  {
52
- src: image.src,
52
+ src: item.src,
53
53
  className: "absolute inset-0 size-full object-cover",
54
- alt: image.alt
54
+ alt: item.alt
55
55
  }
56
56
  )
57
57
  },
@@ -62,7 +62,7 @@ const ParallaxImagesHero = (props) => {
62
62
  {
63
63
  className: "absolute bottom-0 left-auto right-0 top-0 z-0",
64
64
  style: { y: ySecond },
65
- children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[26vw] pt-[70vh]", children: images.slice(4).map((image, index) => /* @__PURE__ */ jsx(
65
+ children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-[26vw] pt-[70vh]", children: medias.slice(4).map((item, index) => /* @__PURE__ */ jsx(
66
66
  "div",
67
67
  {
68
68
  className: cn("relative h-[35vw] pt-[120%] opacity-75 sm:h-auto", {
@@ -70,11 +70,11 @@ const ParallaxImagesHero = (props) => {
70
70
  "right-[50vw] mt-[-44vw] w-[26vw] md:w-[24vw] lg:right-[54vw] lg:w-[18vw]": index === 1
71
71
  }),
72
72
  children: /* @__PURE__ */ jsx(
73
- CompoundImage,
73
+ CompoundMedia,
74
74
  {
75
- src: image.src,
75
+ src: item.src,
76
76
  className: "absolute inset-0 size-full object-cover",
77
- alt: image.alt
77
+ alt: item.alt
78
78
  }
79
79
  )
80
80
  },
@@ -102,7 +102,7 @@ const ParallaxImagesHeroDefaults = {
102
102
  variant: "secondary"
103
103
  }
104
104
  ],
105
- images: [
105
+ medias: [
106
106
  {
107
107
  src: "https://picsum.photos/seed/hero-square/1200/1200",
108
108
  alt: "Placeholder image 1"
@@ -91,7 +91,7 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- images: {
94
+ medias: {
95
95
  readonly type: "array";
96
96
  readonly max: 10;
97
97
  readonly getItemSummary: (item: {
@@ -1,13 +1,13 @@
1
1
  import { ParallaxImagesHero, ParallaxImagesHeroDefaults } 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 { imagesField } from "../../../puck-core/core/props/media.js";
4
+ import { mediasField } 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
- images: imagesField
10
+ medias: mediasField
11
11
  },
12
12
  defaultProps: ParallaxImagesHeroDefaults,
13
13
  render: ParallaxImagesHero
@@ -4,9 +4,9 @@
4
4
  * 基础类型引用自 ../props/(全局共享)
5
5
  * HeroSectionStyles 为 hero 特有的样式字段
6
6
  */
7
- import type { BaseImage } from "@/components/puck-core/core/props/media";
7
+ import type { BaseMedia } from "@/components/puck-core/core/props/media";
8
8
  import type { BaseButton } from "@/components/puck-core/core/props/interactive";
9
- export type { BaseImage, BaseButton };
9
+ export type { BaseMedia, BaseButton };
10
10
  export interface HeroSectionStyles {
11
11
  className?: string;
12
12
  style?: React.CSSProperties;
@@ -18,7 +18,7 @@ export interface HeroSectionStyles {
18
18
  mediaType?: "image" | "video" | "play";
19
19
  formType?: "none" | "email" | "search";
20
20
  bordered?: boolean;
21
- imageCount?: 1 | 2 | 3;
21
+ imageCount?: "1" | "2" | "3";
22
22
  imageGridRatio?: string;
23
23
  overlapStyle?: "default" | "square" | "side-by-side";
24
24
  variant?: "centered" | "parallax-bg";
@@ -29,7 +29,7 @@ export interface HeroSectionBaseProps {
29
29
  heading: string;
30
30
  description: string;
31
31
  buttons: BaseButton[];
32
- images: BaseImage[];
32
+ medias: BaseMedia[];
33
33
  video: string;
34
34
  inputPlaceholder: string;
35
35
  formButton: BaseButton;
@@ -3,13 +3,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useRef } from "react";
4
4
  import { cn } from "../../../../utils/css-utils.js";
5
5
  import { CompoundButton } from "../../../puck-base/button.js";
6
- import { CompoundImage } from "../../../puck-base/image.js";
6
+ import { CompoundMedia } from "../../../puck-base/media.js";
7
7
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
8
8
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
9
9
  import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
10
10
  import { useScroll, useTransform, motion } from "motion/react";
11
11
  const ScatterParallaxHero = (props) => {
12
- const { heading, description, buttons = [], images = [], styles } = {
12
+ const { heading, description, buttons = [], medias = [], styles } = {
13
13
  ...ScatterParallaxHeroDefaults,
14
14
  ...props
15
15
  };
@@ -56,7 +56,7 @@ const ScatterParallaxHero = (props) => {
56
56
  {
57
57
  style: isEditor ? { y: "0%", scale: 1, opacity: 1 } : containerMotion,
58
58
  className: "absolute inset-0 z-10 flex origin-bottom items-end justify-center",
59
- children: images.map((image, index) => /* @__PURE__ */ jsx(
59
+ children: medias.map((item, index) => /* @__PURE__ */ jsx(
60
60
  motion.div,
61
61
  {
62
62
  style: isEditor ? { x: 0, y: 0 } : imageMotions[index],
@@ -67,7 +67,7 @@ const ScatterParallaxHero = (props) => {
67
67
  "bottom-[4%] right-[-5%] sm:bottom-[7%] md:right-[8%] lg:bottom-[15%] lg:right-[10%]": index === 3,
68
68
  "right-[-30%] top-[65%] sm:right-[-15%] sm:top-[45%] lg:right-[-8%] lg:top-[5%]": index === 4
69
69
  }),
70
- children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full", src: image.src, alt: image.alt })
70
+ children: /* @__PURE__ */ jsx(CompoundMedia, { className: "size-full", src: item.src, alt: item.alt })
71
71
  },
72
72
  index
73
73
  ))
@@ -81,7 +81,7 @@ const ScatterParallaxHeroDefaults = {
81
81
  heading: "Medium length hero heading goes here",
82
82
  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.",
83
83
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
84
- images: [
84
+ medias: [
85
85
  {
86
86
  src: "https://picsum.photos/seed/hero-square/1200/1200",
87
87
  alt: "Placeholder image 1"
@@ -91,7 +91,7 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- images: {
94
+ medias: {
95
95
  readonly type: "array";
96
96
  readonly max: 10;
97
97
  readonly getItemSummary: (item: {
@@ -1,13 +1,13 @@
1
1
  import { ScatterParallaxHero, ScatterParallaxHeroDefaults } 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 { imagesField } from "../../../puck-core/core/props/media.js";
4
+ import { mediasField } 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
- images: imagesField
10
+ medias: mediasField
11
11
  },
12
12
  defaultProps: ScatterParallaxHeroDefaults,
13
13
  render: ScatterParallaxHero
@@ -3,7 +3,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
3
3
  import { useState, useRef } from "react";
4
4
  import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
5
5
  import { CompoundButton } from "../../../puck-base/button.js";
6
- import { CompoundImage } from "../../../puck-base/image.js";
6
+ import { CompoundMedia } from "../../../puck-base/media.js";
7
7
  import { useScroll, useSpring, useTransform, motion } from "motion/react";
8
8
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
9
9
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
@@ -12,11 +12,11 @@ import { useEditorContext } from "../../../puck-core/core/context/editor-context
12
12
  import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
13
13
  import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
14
14
  const ScrollExpandVideoHero = (props) => {
15
- const { heading, description, buttons = [], video = "", images = [{ src: "", alt: "" }], styles } = {
15
+ const { heading, description, buttons = [], video = "", medias = [{ src: "", alt: "" }], styles } = {
16
16
  ...ScrollExpandVideoHeroDefaults,
17
17
  ...props
18
18
  };
19
- const image = images == null ? void 0 : images[0];
19
+ const media = medias == null ? void 0 : medias[0];
20
20
  const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
21
21
  const { isEditor } = useEditorContext();
22
22
  const [isIframeLoaded, setIsIframeLoaded] = useState(false);
@@ -55,7 +55,7 @@ const ScrollExpandVideoHero = (props) => {
55
55
  className: cn("z-10 flex flex-col justify-start", isEditor ? "relative" : "sticky top-[10vh] mb-[-10vh]"),
56
56
  children: /* @__PURE__ */ jsxs(Dialog, { children: [
57
57
  /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex size-full items-center justify-center", children: [
58
- /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" }),
58
+ /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }),
59
59
  /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" }),
60
60
  /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" })
61
61
  ] }) }),
@@ -88,7 +88,7 @@ const ScrollExpandVideoHeroDefaults = {
88
88
  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.",
89
89
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
90
90
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
91
- images: [{
91
+ medias: [{
92
92
  src: "https://picsum.photos/seed/hero-video/1200/800",
93
93
  alt: "Placeholder image"
94
94
  }]
@@ -94,7 +94,7 @@ declare const conf: {
94
94
  video: {
95
95
  type: string;
96
96
  };
97
- images: {
97
+ medias: {
98
98
  readonly type: "array";
99
99
  readonly max: 10;
100
100
  readonly getItemSummary: (item: {
@@ -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 { imagesField } from "../../../puck-core/core/props/media.js";
4
+ import { mediasField } 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
- images: imagesField
11
+ medias: mediasField
12
12
  },
13
13
  defaultProps: ScrollExpandVideoHeroDefaults,
14
14
  render: ScrollExpandVideoHero
@@ -8,7 +8,7 @@ import { useMediaQuery } from "../../../../hooks/use-media-query.js";
8
8
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
9
9
  import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
10
10
  import { CompoundButton } from "../../../puck-base/button.js";
11
- import { CompoundImage } from "../../../puck-base/image.js";
11
+ import { CompoundMedia } from "../../../puck-base/media.js";
12
12
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
13
13
  import { cn } from "../../../../utils/css-utils.js";
14
14
  import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
@@ -18,7 +18,7 @@ const ScrollZoomHero = (props) => {
18
18
  heading,
19
19
  description,
20
20
  buttons,
21
- images,
21
+ medias,
22
22
  video,
23
23
  styles: rawStyles
24
24
  } = {
@@ -76,10 +76,10 @@ const ScrollZoomHero = (props) => {
76
76
  style: { scale: isMobile || isEditor ? 1 : scaleValue },
77
77
  children: [
78
78
  /* @__PURE__ */ jsx(
79
- CompoundImage,
79
+ CompoundMedia,
80
80
  {
81
- src: ((_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src) ?? "",
82
- alt: ((_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt) ?? "",
81
+ src: ((_a = medias == null ? void 0 : medias[0]) == null ? void 0 : _a.src) ?? "",
82
+ alt: ((_b = medias == null ? void 0 : medias[0]) == null ? void 0 : _b.alt) ?? "",
83
83
  className: "size-full object-cover"
84
84
  }
85
85
  ),
@@ -95,10 +95,10 @@ const ScrollZoomHero = (props) => {
95
95
  className: "flex origin-top-right flex-col items-end justify-center md:h-[60vh] lg:h-[80vh] lg:justify-start",
96
96
  style: { scale: isMobile || isEditor ? 1 : scaleValue },
97
97
  children: /* @__PURE__ */ jsx(
98
- CompoundImage,
98
+ CompoundMedia,
99
99
  {
100
- src: ((_c = images == null ? void 0 : images[0]) == null ? void 0 : _c.src) ?? "",
101
- alt: ((_d = images == null ? void 0 : images[0]) == null ? void 0 : _d.alt) ?? "",
100
+ src: ((_c = medias == null ? void 0 : medias[0]) == null ? void 0 : _c.src) ?? "",
101
+ alt: ((_d = medias == null ? void 0 : medias[0]) == null ? void 0 : _d.alt) ?? "",
102
102
  className: "size-full object-cover"
103
103
  }
104
104
  )
@@ -113,7 +113,7 @@ const ScrollZoomHeroDefaults = {
113
113
  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.",
114
114
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
115
115
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
116
- images: [
116
+ medias: [
117
117
  {
118
118
  src: "https://picsum.photos/seed/hero-video/1200/800",
119
119
  alt: "Placeholder image"
@@ -91,7 +91,7 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- images: {
94
+ medias: {
95
95
  readonly type: "array";
96
96
  readonly max: 10;
97
97
  readonly getItemSummary: (item: {
@@ -1,7 +1,7 @@
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 { imagesField } from "../../../puck-core/core/props/media.js";
4
+ import { mediasField } from "../../../puck-core/core/props/media.js";
5
5
  import { heroStyleFields } from "../props.js";
6
6
  import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
7
7
  const conf = {
@@ -9,7 +9,7 @@ const conf = {
9
9
  heading: headingField,
10
10
  description: descriptionField,
11
11
  buttons: buttonsField,
12
- images: imagesField,
12
+ medias: mediasField,
13
13
  video: { type: "text" },
14
14
  styles: {
15
15
  type: "object",
@@ -91,7 +91,7 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- images: {
94
+ medias: {
95
95
  readonly type: "array";
96
96
  readonly max: 10;
97
97
  readonly getItemSummary: (item: {
@@ -91,7 +91,7 @@ declare const conf: {
91
91
  readonly instructions: "Buttons must use the same size";
92
92
  };
93
93
  };
94
- images: {
94
+ medias: {
95
95
  readonly type: "array";
96
96
  readonly max: 10;
97
97
  readonly getItemSummary: (item: {