dune-react 0.0.21 → 0.0.23

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 (249) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/puck-base/button.d.ts +1 -1
  3. package/dist/components/puck-base/button.js +5 -6
  4. package/dist/components/puck-base/card.d.ts +1 -1
  5. package/dist/components/puck-base/container.js +1 -1
  6. package/dist/components/puck-base/content.d.ts +1 -1
  7. package/dist/components/puck-base/image.js +16 -16
  8. package/dist/components/puck-base/index.d.ts +1 -13
  9. package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +13 -13
  10. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
  11. package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +8 -8
  12. package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
  13. package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
  14. package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
  15. package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
  16. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
  17. package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
  18. package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
  19. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
  20. package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
  21. package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
  22. package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
  23. package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
  24. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
  25. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
  26. package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
  27. package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
  28. package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
  29. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
  30. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +92 -63
  31. package/dist/components/puck-block/cta-sections/props.js +46 -0
  32. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
  33. package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
  34. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
  35. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
  36. package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
  37. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
  38. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
  39. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
  40. package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
  41. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
  42. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
  43. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
  44. package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
  45. package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
  46. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
  47. package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
  48. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
  49. package/dist/components/puck-block/feature-sections/tab-feature/component.js +80 -64
  50. package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
  51. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
  52. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
  53. package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
  54. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
  55. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
  56. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +42 -1
  57. package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
  58. package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
  59. package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
  60. package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
  61. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +38 -1
  62. package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
  63. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +55 -1
  64. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +42 -1
  65. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +55 -1
  66. package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
  67. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
  68. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
  69. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
  70. package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +1 -1
  71. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
  72. package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +1 -1
  73. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
  74. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +68 -65
  75. package/dist/components/puck-block/gallery-sections/props.d.ts +11 -1
  76. package/dist/components/puck-block/gallery-sections/props.js +7 -2
  77. package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +18 -0
  78. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
  79. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
  80. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +25 -22
  81. package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
  82. package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +3 -2
  83. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
  84. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +119 -17
  85. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
  86. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +162 -22
  87. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
  88. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +143 -19
  89. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
  90. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
  91. package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
  92. package/dist/components/puck-block/header-sections/props.d.ts +3 -0
  93. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
  94. package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
  95. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
  96. package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
  97. package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
  98. package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
  99. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
  100. package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
  101. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
  102. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
  103. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -3
  104. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
  105. package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
  106. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
  107. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
  108. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
  109. package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
  110. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
  111. package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
  112. package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
  113. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
  114. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
  115. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
  116. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
  117. package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
  118. package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
  119. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
  120. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
  121. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
  122. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
  123. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
  124. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +93 -44
  125. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
  126. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
  127. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
  128. package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
  129. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +14 -6
  130. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
  131. package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
  132. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
  133. package/dist/components/puck-block/hero-sections/tab-hero/component.js +4 -4
  134. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
  135. package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
  136. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +96 -46
  137. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
  138. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +33 -10
  139. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
  140. package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
  141. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
  142. package/dist/components/puck-block/index.d.ts +2 -0
  143. package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
  144. package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
  145. package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
  146. package/dist/components/puck-block/location-sections/props.d.ts +1 -1
  147. package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
  148. package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
  149. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
  150. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
  151. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
  152. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
  153. package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
  154. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
  155. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
  156. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +39 -26
  157. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
  158. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
  159. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
  160. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
  161. package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
  162. package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
  163. package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
  164. package/dist/components/puck-block/registry.generated.d.ts +13408 -0
  165. package/dist/components/puck-block/registry.generated.js +558 -0
  166. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
  167. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
  168. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
  169. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
  170. package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
  171. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
  172. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
  173. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
  174. package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
  175. package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
  176. package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
  177. package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
  178. package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
  179. package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
  180. package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
  181. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
  182. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
  183. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +2 -2
  184. package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
  185. package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
  186. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
  187. package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
  188. package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
  189. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
  190. package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
  191. package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
  192. package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
  193. package/dist/components/puck-core/core/props/content.js +41 -1
  194. package/dist/components/puck-core/core/props/form.js +76 -0
  195. package/dist/components/puck-core/core/props/index.js +34 -0
  196. package/dist/components/puck-core/core/props/interactive.js +17 -0
  197. package/dist/components/puck-core/core/props/media.js +14 -5
  198. package/dist/components/puck-core/core/styles.d.ts +1 -1
  199. package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
  200. package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
  201. package/dist/components/puck-core/fields/action-field.js +1 -1
  202. package/dist/components/puck-core/fields/array-field.d.ts +7 -0
  203. package/dist/components/puck-core/fields/array-field.js +229 -0
  204. package/dist/components/{puck-base → puck-core}/fields/auto-field.js +11 -0
  205. package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +5 -5
  206. package/dist/components/puck-core/fields/index.d.ts +1 -0
  207. package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
  208. package/dist/components/{puck-base → puck-core}/fields/object-field.js +1 -1
  209. package/dist/components/puck-core/index.d.ts +1 -0
  210. package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
  211. package/dist/index.js +121 -104
  212. package/dist/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.2.4/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +59 -0
  213. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@dnd-kit/core/dist/core.esm.js +3093 -0
  214. package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4__react@19.2.4/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +592 -0
  215. package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.4/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +301 -0
  216. package/package.json +4 -1
  217. package/dist/components/puck-base/core/fields.d.ts +0 -827
  218. package/dist/components/puck-base/core/fields.js +0 -267
  219. package/dist/components/puck-base/core/hooks.d.ts +0 -19
  220. package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
  221. package/dist/components/puck-base/core/icon-catalog.js +0 -193
  222. package/dist/components/puck-base/core/styles.d.ts +0 -1942
  223. package/dist/components/puck-base/core/types.d.ts +0 -20
  224. package/dist/components/puck-base/core/types.js +0 -26
  225. package/dist/components/puck-base/core/utils.d.ts +0 -5
  226. package/dist/components/puck-base/core/with-editable.d.ts +0 -16
  227. package/dist/components/puck-base/error-boundary.d.ts +0 -4
  228. package/dist/components/puck-base/fields/action-field.d.ts +0 -30
  229. package/dist/components/puck-base/fields/action-field.js +0 -265
  230. package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
  231. package/dist/components/puck-base/fields/color-field.d.ts +0 -6
  232. package/dist/components/puck-base/fields/index.d.ts +0 -8
  233. package/dist/components/puck-base/fields/location-field.d.ts +0 -44
  234. package/dist/components/puck-base/fields/object-field.d.ts +0 -8
  235. package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
  236. package/dist/components/puck-base/fields/types.d.ts +0 -29
  237. package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
  238. package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
  239. package/dist/components/puck-base/icon-picker-field.js +0 -153
  240. package/dist/components/puck-base/image-upload-field.d.ts +0 -7
  241. package/dist/components/puck-base/inline-editable.d.ts +0 -14
  242. package/dist/components/puck-base/use-upload.d.ts +0 -42
  243. /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
  244. /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
  245. /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
  246. /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
  247. /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
  248. /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
  249. /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
@@ -0,0 +1,165 @@
1
+ "use client";
2
+ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
3
+ import { CompoundButton } from "../../../puck-base/button.js";
4
+ import { CompoundImage } from "../../../puck-base/image.js";
5
+ import { cn } from "../../../../utils/css-utils.js";
6
+ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
7
+ const TextBlockCta = (props) => {
8
+ const {
9
+ heading,
10
+ description,
11
+ buttons,
12
+ images,
13
+ video,
14
+ // inputPlaceholder,
15
+ // formButton,
16
+ // termsAndConditions,
17
+ styles,
18
+ logos
19
+ } = {
20
+ ...TextBlockCtaDefaults,
21
+ ...props
22
+ };
23
+ const {
24
+ className: sectionClassName,
25
+ style: sectionStyle,
26
+ css,
27
+ textLayout = "left",
28
+ bgMedia = "none",
29
+ bordered = false,
30
+ // formType = "buttons",
31
+ bottomContent = "none"
32
+ } = styles ?? {};
33
+ const hasBg = bgMedia !== "none";
34
+ const isFullscreenBg = bgMedia === "fullscreenImage" || bgMedia === "fullscreenVideo";
35
+ const isContainerBg = bgMedia === "containerImage" || bgMedia === "containerVideo";
36
+ const isBgImage = bgMedia === "fullscreenImage" || bgMedia === "containerImage";
37
+ const isBgVideo = bgMedia === "fullscreenVideo" || bgMedia === "containerVideo";
38
+ const isCenter = textLayout === "center";
39
+ const isTwoColumn = textLayout === "twoColumn";
40
+ const isInlineRow = textLayout === "inlineRow";
41
+ const renderActions = () => {
42
+ return /* @__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)) });
43
+ };
44
+ const renderBottomContent = () => {
45
+ if (bottomContent === "image" && images && images.length > 0) {
46
+ return /* @__PURE__ */ jsx("div", { className: "mt-12 md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(
47
+ CompoundImage,
48
+ {
49
+ src: images[0].src,
50
+ alt: images[0].alt,
51
+ className: "w-full object-cover"
52
+ }
53
+ ) });
54
+ }
55
+ if (bottomContent === "logos" && logos && logos.length > 0) {
56
+ return /* @__PURE__ */ jsx("div", { className: "mt-12 flex flex-wrap items-center justify-center gap-x-8 gap-y-6 md:mt-18 lg:mt-20", children: logos.map((logo, index) => /* @__PURE__ */ jsx(CompoundImage, { src: logo.src, alt: logo.alt, className: "max-h-12" }, index)) });
57
+ }
58
+ return null;
59
+ };
60
+ const renderBgMedia = () => {
61
+ var _a, _b;
62
+ if (!hasBg) return null;
63
+ if (isFullscreenBg) {
64
+ return /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 z-0", children: [
65
+ isBgImage && /* @__PURE__ */ jsxs(Fragment, { children: [
66
+ /* @__PURE__ */ jsx(CompoundImage, { src: (_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src, className: "size-full object-cover", alt: (_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt }),
67
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
68
+ ] }),
69
+ isBgVideo && /* @__PURE__ */ jsxs(Fragment, { children: [
70
+ /* @__PURE__ */ jsx("video", { className: "size-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) }),
71
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
72
+ ] })
73
+ ] });
74
+ }
75
+ return null;
76
+ };
77
+ const renderContainerMedia = () => {
78
+ var _a, _b;
79
+ if (!isContainerBg) return null;
80
+ return /* @__PURE__ */ jsxs("div", { className: "mt-12 md:mt-18 lg:mt-20", children: [
81
+ isBgImage && /* @__PURE__ */ jsx(CompoundImage, { src: (_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src, className: "w-full object-cover", alt: (_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt }),
82
+ isBgVideo && /* @__PURE__ */ jsx("video", { className: "w-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) })
83
+ ] });
84
+ };
85
+ const textColorClass = isFullscreenBg ? "text-text-alternative" : "";
86
+ const renderTextContent = () => {
87
+ if (isTwoColumn) {
88
+ return /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-y-5 md:grid-cols-2 md:gap-x-12 lg:gap-x-20", children: [
89
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h2", { className: cn("mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", textColorClass), children: heading }) }),
90
+ /* @__PURE__ */ jsxs("div", { children: [
91
+ /* @__PURE__ */ jsx("p", { className: cn("md:text-md", textColorClass), children: description }),
92
+ renderActions()
93
+ ] })
94
+ ] });
95
+ }
96
+ if (isInlineRow) {
97
+ return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-start gap-6 md:flex-row md:items-center md:justify-between", {
98
+ "border border-border-primary p-8 md:p-12": bordered && !isFullscreenBg
99
+ }), children: [
100
+ /* @__PURE__ */ jsx("h2", { className: cn("text-5xl font-bold md:text-7xl lg:text-8xl", textColorClass), children: heading }),
101
+ renderActions()
102
+ ] });
103
+ }
104
+ if (isCenter) {
105
+ return /* @__PURE__ */ jsxs("div", { className: cn("mx-auto max-w-lg text-center", textColorClass), children: [
106
+ /* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
107
+ /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
108
+ renderActions()
109
+ ] });
110
+ }
111
+ return /* @__PURE__ */ jsxs("div", { className: cn("w-full max-w-lg", textColorClass), children: [
112
+ /* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
113
+ /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
114
+ renderActions()
115
+ ] });
116
+ };
117
+ return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", { relative: isFullscreenBg }, sectionClassName), style: sectionStyle, css, children: [
118
+ renderBgMedia(),
119
+ /* @__PURE__ */ jsxs("div", { className: cn("container", { "relative z-10": isFullscreenBg }), children: [
120
+ renderTextContent(),
121
+ renderContainerMedia(),
122
+ renderBottomContent()
123
+ ] })
124
+ ] });
125
+ };
126
+ const TextBlockCtaDefaults = {
127
+ heading: "Medium length heading goes here",
128
+ description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
129
+ buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
130
+ images: [
131
+ {
132
+ src: "https://picsum.photos/seed/cta-bg/1920/1080",
133
+ alt: "Placeholder image"
134
+ },
135
+ {
136
+ src: "https://picsum.photos/seed/cta-bottom/1200/600",
137
+ alt: "Placeholder image"
138
+ }
139
+ ],
140
+ video: "https://www.example.com/video.mp4",
141
+ // inputPlaceholder: "Enter your email",
142
+ // formButton: { label: "Sign up" },
143
+ // termsAndConditions: `
144
+ // <p class='text-xs'>
145
+ // By clicking Sign Up you're confirming that you agree with our
146
+ // <a href='#' class='underline'>Terms and Conditions</a>.
147
+ // </p>
148
+ // `,
149
+ logos: [
150
+ { src: "https://picsum.photos/seed/logo1/120/40", alt: "Logo 1" },
151
+ { src: "https://picsum.photos/seed/logo2/120/40", alt: "Logo 2" },
152
+ { src: "https://picsum.photos/seed/logo3/120/40", alt: "Logo 3" }
153
+ ],
154
+ styles: {
155
+ textLayout: "left",
156
+ bgMedia: "none",
157
+ bordered: false,
158
+ // formType: "buttons",
159
+ bottomContent: "none"
160
+ }
161
+ };
162
+ export {
163
+ TextBlockCta,
164
+ TextBlockCtaDefaults
165
+ };
@@ -46,7 +46,7 @@ declare const conf: {
46
46
  readonly action: {
47
47
  type: "custom";
48
48
  label: string;
49
- render: typeof import("../../../puck-core").ActionField;
49
+ render: typeof import("../../..").ActionField;
50
50
  };
51
51
  readonly variant: {
52
52
  readonly type: "select";
@@ -55,7 +55,7 @@ declare const conf: {
55
55
  readonly action: {
56
56
  type: "custom";
57
57
  label: string;
58
- render: typeof import("../../../puck-core").ActionField;
58
+ render: typeof import("../../..").ActionField;
59
59
  };
60
60
  readonly variant: {
61
61
  readonly type: "select";
@@ -46,7 +46,7 @@ declare const conf: {
46
46
  readonly action: {
47
47
  type: "custom";
48
48
  label: string;
49
- render: typeof import("../../../puck-core").ActionField;
49
+ render: typeof import("../../..").ActionField;
50
50
  };
51
51
  readonly variant: {
52
52
  readonly type: "select";
@@ -46,7 +46,7 @@ declare const conf: {
46
46
  readonly action: {
47
47
  type: "custom";
48
48
  label: string;
49
- render: typeof import("../../../puck-core").ActionField;
49
+ render: typeof import("../../..").ActionField;
50
50
  };
51
51
  readonly variant: {
52
52
  readonly type: "select";
@@ -21,7 +21,7 @@ declare const conf: {
21
21
  readonly action: {
22
22
  type: "custom";
23
23
  label: string;
24
- render: typeof import("../../../puck-core").ActionField;
24
+ render: typeof import("../../..").ActionField;
25
25
  };
26
26
  readonly variant: {
27
27
  readonly type: "select";
@@ -21,7 +21,7 @@ declare const conf: {
21
21
  readonly action: {
22
22
  type: "custom";
23
23
  label: string;
24
- render: typeof import("../../../puck-core").ActionField;
24
+ render: typeof import("../../..").ActionField;
25
25
  };
26
26
  readonly variant: {
27
27
  readonly type: "select";
@@ -96,7 +96,7 @@ const FeatureCardsGridDefaults = {
96
96
  ],
97
97
  image: {
98
98
  src: "https://picsum.photos/seed/feature-cards/800/600",
99
- alt: "Relume placeholder image"
99
+ alt: "Placeholder image"
100
100
  },
101
101
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
102
102
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
@@ -38,7 +38,7 @@ declare const conf: {
38
38
  readonly action: {
39
39
  type: "custom";
40
40
  label: string;
41
- render: typeof import("../../../puck-core").ActionField;
41
+ render: typeof import("../../..").ActionField;
42
42
  };
43
43
  readonly variant: {
44
44
  readonly type: "select";
@@ -119,7 +119,7 @@ declare const conf: {
119
119
  readonly action: {
120
120
  type: "custom";
121
121
  label: string;
122
- render: typeof import("../../../puck-core").ActionField;
122
+ render: typeof import("../../..").ActionField;
123
123
  };
124
124
  readonly variant: {
125
125
  readonly type: "select";
@@ -93,7 +93,7 @@ const FeatureListSplitDefaults = {
93
93
  ],
94
94
  image: {
95
95
  src: "https://picsum.photos/seed/feature-list/800/600",
96
- alt: "Relume placeholder image"
96
+ alt: "Placeholder image"
97
97
  },
98
98
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
99
99
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
@@ -38,7 +38,7 @@ declare const conf: {
38
38
  readonly action: {
39
39
  type: "custom";
40
40
  label: string;
41
- render: typeof import("../../../puck-core").ActionField;
41
+ render: typeof import("../../..").ActionField;
42
42
  };
43
43
  readonly variant: {
44
44
  readonly type: "select";
@@ -119,7 +119,7 @@ declare const conf: {
119
119
  readonly action: {
120
120
  type: "custom";
121
121
  label: string;
122
- render: typeof import("../../../puck-core").ActionField;
122
+ render: typeof import("../../..").ActionField;
123
123
  };
124
124
  readonly variant: {
125
125
  readonly type: "select";
@@ -9,47 +9,51 @@ import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_reac
9
9
  import { cn } from "../../../../utils/css-utils.js";
10
10
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
11
11
  const TabFeature = (props) => {
12
- const { defaultTabValue, tabs = [], styles } = {
12
+ const {
13
+ defaultTabValue,
14
+ tabs = [],
15
+ styles
16
+ } = {
13
17
  ...TabFeatureDefaults,
14
18
  ...props
15
19
  };
16
- const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
20
+ const {
21
+ className: sectionClassName,
22
+ style: sectionStyle,
23
+ css
24
+ } = styles ?? {};
17
25
  const [isIframeLoaded, setIsIframeLoaded] = useState(false);
18
- 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(
19
- Tabs,
26
+ return /* @__PURE__ */ jsx(
27
+ SectionWrapper,
20
28
  {
21
- defaultValue: defaultTabValue,
22
- className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20",
23
- children: [
24
- /* @__PURE__ */ jsx(TabsList, { className: "col-start-1 col-end-2 row-start-1 row-end-2 grid grid-cols-1 items-center gap-x-4 gap-y-10", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
25
- TabsTrigger,
26
- {
27
- value: tab.value,
28
- className: "flex-col items-start justify-start whitespace-normal border-0 border-l-2 border-transparent py-0 pl-8 pr-0 text-left data-[state=active]:border-black data-[state=active]:bg-transparent data-[state=active]:text-text-primary",
29
- children: [
30
- /* @__PURE__ */ jsx("h3", { className: "mb-3 text-2xl font-bold md:mb-4 md:text-3xl md:leading-[1.3] lg:text-4xl", children: tab.heading }),
31
- /* @__PURE__ */ jsx("p", { children: tab.description })
32
- ]
33
- },
34
- tab.value
35
- )) }),
36
- /* @__PURE__ */ jsx("div", { className: "max-size-full flex items-center justify-center overflow-hidden", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
37
- TabsContent,
38
- {
39
- value: tab.value,
40
- className: "data-[state=active]:animate-tabs",
41
- children: [
42
- tab.image && !tab.videoUrl && /* @__PURE__ */ jsx(
43
- CompoundImage,
44
- {
45
- src: tab.image.src,
46
- alt: tab.image.alt,
47
- className: "size-full object-cover"
48
- }
49
- ),
50
- tab.videoUrl && tab.image && /* @__PURE__ */ jsxs(Dialog, { children: [
51
- /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
52
- /* @__PURE__ */ jsx(
29
+ className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
30
+ style: sectionStyle,
31
+ css,
32
+ children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs(
33
+ Tabs,
34
+ {
35
+ defaultValue: defaultTabValue,
36
+ className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20",
37
+ children: [
38
+ /* @__PURE__ */ jsx(TabsList, { className: "col-start-1 col-end-2 row-start-1 row-end-2 h-full! w-full! grid grid-cols-1 items-center gap-x-4 gap-y-4", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
39
+ TabsTrigger,
40
+ {
41
+ value: tab.value,
42
+ className: "flex-col items-start justify-start whitespace-normal border-0 border-l-2 border-transparent py-2 px-2 pr-0 text-left data-[state=active]:border-black data-[state=active]:bg-transparent data-[state=active]:text-text-primary",
43
+ children: [
44
+ /* @__PURE__ */ jsx("h3", { className: "mb-3 text-2xl font-bold md:mb-2 md:text-3xl md:leading-[1.3] lg:text-4xl", children: tab.heading }),
45
+ /* @__PURE__ */ jsx("p", { children: tab.description })
46
+ ]
47
+ },
48
+ tab.value
49
+ )) }),
50
+ /* @__PURE__ */ jsx("div", { className: "size-full flex items-center justify-center overflow-hidden", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
51
+ TabsContent,
52
+ {
53
+ value: tab.value,
54
+ className: "data-[state=active]:animate-tabs",
55
+ children: [
56
+ tab.image && !tab.videoUrl && /* @__PURE__ */ jsx(
53
57
  CompoundImage,
54
58
  {
55
59
  src: tab.image.src,
@@ -57,33 +61,45 @@ const TabFeature = (props) => {
57
61
  className: "size-full object-cover"
58
62
  }
59
63
  ),
60
- /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
61
- /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
62
- ] }) }),
63
- /* @__PURE__ */ jsxs(DialogContent, { children: [
64
- !isIframeLoaded && /* @__PURE__ */ jsx(CgSpinner, { className: "mx-auto size-16 animate-spin text-white" }),
65
- /* @__PURE__ */ jsx(
66
- "iframe",
67
- {
68
- className: cn(
69
- "z-0 mx-auto aspect-video size-full md:w-[738px] lg:w-[940px]",
70
- { visible: isIframeLoaded, hidden: !isIframeLoaded }
64
+ tab.videoUrl && tab.image && /* @__PURE__ */ jsxs(Dialog, { children: [
65
+ /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
66
+ /* @__PURE__ */ jsx(
67
+ CompoundImage,
68
+ {
69
+ src: tab.image.src,
70
+ alt: tab.image.alt,
71
+ className: "size-full object-cover"
72
+ }
71
73
  ),
72
- src: tab.videoUrl,
73
- allow: "autoplay; encrypted-media; picture-in-picture",
74
- allowFullScreen: true,
75
- onLoad: () => setIsIframeLoaded(true)
76
- }
77
- )
78
- ] })
79
- ] })
80
- ]
81
- },
82
- tab.value
83
- )) })
84
- ]
74
+ /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
75
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
76
+ ] }) }),
77
+ /* @__PURE__ */ jsxs(DialogContent, { children: [
78
+ !isIframeLoaded && /* @__PURE__ */ jsx(CgSpinner, { className: "mx-auto size-16 animate-spin text-white" }),
79
+ /* @__PURE__ */ jsx(
80
+ "iframe",
81
+ {
82
+ className: cn(
83
+ "z-0 mx-auto aspect-video size-full md:w-[738px] lg:w-[940px]",
84
+ { visible: isIframeLoaded, hidden: !isIframeLoaded }
85
+ ),
86
+ src: tab.videoUrl,
87
+ allow: "autoplay; encrypted-media; picture-in-picture",
88
+ allowFullScreen: true,
89
+ onLoad: () => setIsIframeLoaded(true)
90
+ }
91
+ )
92
+ ] })
93
+ ] })
94
+ ]
95
+ },
96
+ tab.value
97
+ )) })
98
+ ]
99
+ }
100
+ ) })
85
101
  }
86
- ) }) });
102
+ );
87
103
  };
88
104
  const TabFeatureDefaults = {
89
105
  defaultTabValue: "tab-1",
@@ -94,7 +110,7 @@ const TabFeatureDefaults = {
94
110
  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.",
95
111
  image: {
96
112
  src: "https://picsum.photos/seed/tab-feature1/800/600",
97
- alt: "Relume placeholder image 1"
113
+ alt: "Placeholder image 1"
98
114
  }
99
115
  },
100
116
  {
@@ -103,7 +119,7 @@ const TabFeatureDefaults = {
103
119
  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.",
104
120
  image: {
105
121
  src: "https://picsum.photos/seed/tab-feature2/800/600",
106
- alt: "Relume placeholder image 2"
122
+ alt: "Placeholder image 2"
107
123
  }
108
124
  },
109
125
  {
@@ -112,7 +128,7 @@ const TabFeatureDefaults = {
112
128
  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.",
113
129
  image: {
114
130
  src: "https://picsum.photos/seed/tab-feature3/800/600",
115
- alt: "Relume placeholder image 3"
131
+ alt: "Placeholder image 3"
116
132
  }
117
133
  }
118
134
  ]
@@ -78,7 +78,7 @@ const TextMediaSplitDefaults = {
78
78
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
79
79
  image: {
80
80
  src: "https://picsum.photos/seed/feature-split/800/600",
81
- alt: "Relume placeholder image"
81
+ alt: "Placeholder image"
82
82
  },
83
83
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
84
84
  styles: {
@@ -28,7 +28,7 @@ declare const conf: {
28
28
  readonly action: {
29
29
  type: "custom";
30
30
  label: string;
31
- render: typeof import("../../../puck-core").ActionField;
31
+ render: typeof import("../../..").ActionField;
32
32
  };
33
33
  readonly variant: {
34
34
  readonly type: "select";
@@ -28,7 +28,7 @@ declare const conf: {
28
28
  readonly action: {
29
29
  type: "custom";
30
30
  label: string;
31
- render: typeof import("../../../puck-core").ActionField;
31
+ render: typeof import("../../..").ActionField;
32
32
  };
33
33
  readonly variant: {
34
34
  readonly type: "select";
@@ -3,23 +3,64 @@ import { CompoundImage } from "../../../puck-base/image.js";
3
3
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
4
4
  import { cn } from "../../../../utils/css-utils.js";
5
5
  const CenteredMinimalFooter = (props) => {
6
- const { logo, columnLinks, socialMediaLinks, footerText, footerLinks, styles } = { ...CenteredMinimalFooterDefaults, ...props };
7
- const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
8
- return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-6 md:py-9 lg:py-10", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
9
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center justify-center justify-items-center gap-x-[4vw] gap-y-12 pb-12 md:pb-18 lg:grid-cols-[0.25fr_1fr_0.25fr] lg:justify-between lg:gap-y-4 lg:pb-20", children: [
10
- /* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, className: "lg:justify-self-start", children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "inline-block" }) }),
11
- columnLinks == null ? void 0 : columnLinks.map((col, i) => /* @__PURE__ */ jsx("ul", { className: "grid grid-flow-row grid-cols-1 items-start justify-center justify-items-center gap-6 md:grid-flow-col md:grid-cols-[max-content] md:justify-center md:justify-items-start", children: col.links.map((l, li) => /* @__PURE__ */ jsx("li", { className: "font-semibold", children: /* @__PURE__ */ jsx("a", { href: l.url, children: l.title }) }, li)) }, i)),
12
- /* @__PURE__ */ jsx("div", { className: "flex items-start justify-start justify-items-center gap-x-3 lg:justify-self-end", children: socialMediaLinks == null ? void 0 : socialMediaLinks.map((l, i) => /* @__PURE__ */ jsx("a", { href: l.url, children: l.icon }, i)) })
13
- ] }),
14
- /* @__PURE__ */ jsx("div", { className: "h-px w-full bg-black" }),
15
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col-reverse items-center justify-center pb-4 pt-6 text-sm md:flex-row md:gap-x-6 md:pb-0 md:pt-8", children: [
16
- /* @__PURE__ */ jsx("p", { className: "mt-8 md:mt-0", children: footerText }),
17
- /* @__PURE__ */ jsx("ul", { className: "grid grid-flow-row grid-cols-[max-content] items-center justify-center gap-y-4 text-sm md:grid-flow-col md:gap-x-6 md:gap-y-0", children: footerLinks == null ? void 0 : footerLinks.map((l, i) => /* @__PURE__ */ jsx("li", { className: "underline", children: /* @__PURE__ */ jsx("a", { href: l.url, children: l.title }) }, i)) })
18
- ] })
19
- ] }) });
6
+ const {
7
+ logo,
8
+ columnLinks,
9
+ socialMediaLinks,
10
+ footerText,
11
+ footerLinks,
12
+ styles
13
+ } = { ...CenteredMinimalFooterDefaults, ...props };
14
+ const {
15
+ className: sectionClassName,
16
+ style: sectionStyle,
17
+ css
18
+ } = styles ?? {};
19
+ return /* @__PURE__ */ jsx(
20
+ SectionWrapper,
21
+ {
22
+ className: cn("px-[5%] py-6 md:py-9 lg:py-10", sectionClassName),
23
+ style: sectionStyle,
24
+ css,
25
+ children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
26
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center justify-center justify-items-center gap-x-[4vw] gap-y-12 pb-12 md:pb-18 lg:grid-cols-[0.25fr_1fr_0.25fr] lg:justify-between lg:gap-y-4 lg:pb-20", children: [
27
+ /* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, className: "lg:justify-self-start", children: /* @__PURE__ */ jsx(
28
+ CompoundImage,
29
+ {
30
+ src: logo == null ? void 0 : logo.src,
31
+ alt: logo == null ? void 0 : logo.alt,
32
+ className: "inline-block"
33
+ }
34
+ ) }),
35
+ columnLinks == null ? void 0 : columnLinks.map((col, i) => {
36
+ var _a;
37
+ return /* @__PURE__ */ jsx(
38
+ "ul",
39
+ {
40
+ className: "grid grid-flow-row grid-cols-1 items-start justify-center justify-items-center gap-6 md:grid-flow-col md:grid-cols-[max-content] md:justify-center md:justify-items-start",
41
+ children: (_a = col.links) == null ? void 0 : _a.map((l, li) => /* @__PURE__ */ jsx("li", { className: "font-semibold", children: /* @__PURE__ */ jsx("a", { href: l.url, children: l.title }) }, li))
42
+ },
43
+ i
44
+ );
45
+ }),
46
+ /* @__PURE__ */ jsx("div", { className: "flex items-start justify-start justify-items-center gap-x-3 lg:justify-self-end", children: socialMediaLinks == null ? void 0 : socialMediaLinks.map((l, i) => /* @__PURE__ */ jsx("a", { href: l.url, children: l.icon }, i)) })
47
+ ] }),
48
+ /* @__PURE__ */ jsx("div", { className: "h-px w-full bg-black" }),
49
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col-reverse items-center justify-center pb-4 pt-6 text-sm md:flex-row md:gap-x-6 md:pb-0 md:pt-8", children: [
50
+ /* @__PURE__ */ jsx("p", { className: "mt-8 md:mt-0", children: footerText }),
51
+ /* @__PURE__ */ jsx("ul", { className: "grid grid-flow-row grid-cols-[max-content] items-center justify-center gap-y-4 text-sm md:grid-flow-col md:gap-x-6 md:gap-y-0", children: footerLinks == null ? void 0 : footerLinks.map((l, i) => /* @__PURE__ */ jsx("li", { className: "underline", children: /* @__PURE__ */ jsx("a", { href: l.url, children: l.title }) }, i)) })
52
+ ] })
53
+ ] })
54
+ }
55
+ );
20
56
  };
21
57
  const CenteredMinimalFooterDefaults = {
22
- logo: { url: "#", src: "https://d22po4pjz3o32e.cloudfront.net/logo-image.svg", alt: "Logo image" },
58
+ __metadata: { type: "footer" },
59
+ logo: {
60
+ url: "#",
61
+ src: "https://file.springbrand.ai/web_assets/template-logo.svg",
62
+ alt: "Logo image"
63
+ },
23
64
  heading: "",
24
65
  description: "",
25
66
  buttons: [],
@@ -28,9 +69,22 @@ const CenteredMinimalFooterDefaults = {
28
69
  inputPlaceholder: "",
29
70
  button: { label: "" },
30
71
  termsAndConditions: "",
31
- columnLinks: [{ links: [{ title: "Link One", url: "#" }, { title: "Link Two", url: "#" }, { title: "Link Three", url: "#" }, { title: "Link Four", url: "#" }, { title: "Link Five", url: "#" }] }],
32
- footerText: "© 2024 Relume. All rights reserved.",
33
- footerLinks: [{ title: "Privacy Policy", url: "#" }, { title: "Terms of Service", url: "#" }],
72
+ columnLinks: [
73
+ {
74
+ links: [
75
+ { title: "Link One", url: "#" },
76
+ { title: "Link Two", url: "#" },
77
+ { title: "Link Three", url: "#" },
78
+ { title: "Link Four", url: "#" },
79
+ { title: "Link Five", url: "#" }
80
+ ]
81
+ }
82
+ ],
83
+ footerText: "© 2024 Company. All rights reserved.",
84
+ footerLinks: [
85
+ { title: "Privacy Policy", url: "#" },
86
+ { title: "Terms of Service", url: "#" }
87
+ ],
34
88
  socialMediaLinks: [],
35
89
  address: { label: "", value: "" },
36
90
  contact: { label: "", phone: "", email: "" },