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
@@ -35,7 +35,7 @@ declare const conf: {
35
35
  readonly action: {
36
36
  type: "custom";
37
37
  label: string;
38
- render: typeof import("../../../puck-core").ActionField;
38
+ render: typeof import("../../..").ActionField;
39
39
  };
40
40
  readonly variant: {
41
41
  readonly type: "select";
@@ -87,38 +87,35 @@ declare const conf: {
87
87
  type: string;
88
88
  label: string;
89
89
  objectFields: {
90
+ className: {
91
+ readonly type: "text";
92
+ readonly label: "Class Name";
93
+ readonly ai: {
94
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
95
+ };
96
+ };
97
+ style: {
98
+ readonly type: "object";
99
+ readonly label: "Style";
100
+ readonly objectFields: {};
101
+ readonly ai: {
102
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
103
+ };
104
+ };
105
+ css: {
106
+ readonly type: "textarea";
107
+ readonly label: "Custom CSS";
108
+ readonly ai: {
109
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
110
+ };
111
+ };
90
112
  animation: {
91
113
  type: "radio";
92
114
  label: string;
93
- options: ({
94
- className: {
95
- readonly type: "text";
96
- readonly label: "Class Name";
97
- readonly ai: {
98
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
99
- };
100
- };
101
- style: {
102
- readonly type: "object";
103
- readonly label: "Style";
104
- readonly objectFields: {};
105
- readonly ai: {
106
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
107
- };
108
- };
109
- css: {
110
- readonly type: "textarea";
111
- readonly label: "Custom CSS";
112
- readonly ai: {
113
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
114
- };
115
- };
116
- label: string;
117
- value: string;
118
- } | {
115
+ options: {
119
116
  label: string;
120
117
  value: string;
121
- })[];
118
+ }[];
122
119
  };
123
120
  };
124
121
  };
@@ -23,10 +23,11 @@ const conf = {
23
23
  type: "radio",
24
24
  label: "Animation",
25
25
  options: [
26
- { label: "Sticky Stack", value: "sticky-stack", ...sectionWrapperFields },
26
+ { label: "Sticky Stack", value: "sticky-stack" },
27
27
  { label: "Scroll Fade", value: "scroll-fade" }
28
28
  ]
29
- }
29
+ },
30
+ ...sectionWrapperFields
30
31
  }
31
32
  }
32
33
  },
@@ -159,7 +159,7 @@ const defaultHoverLink = {
159
159
  tag: "Tag",
160
160
  image: {
161
161
  src: "https://picsum.photos/seed/interactive-port/800/800",
162
- alt: "Relume placeholder image"
162
+ alt: "Placeholder image"
163
163
  }
164
164
  };
165
165
  const InteractivePortfolioDefaults = {
@@ -24,7 +24,7 @@ declare const conf: {
24
24
  readonly action: {
25
25
  type: "custom";
26
26
  label: string;
27
- render: typeof import("../../../puck-core").ActionField;
27
+ render: typeof import("../../..").ActionField;
28
28
  };
29
29
  readonly variant: {
30
30
  readonly type: "select";
@@ -104,7 +104,7 @@ declare const conf: {
104
104
  readonly action: {
105
105
  type: "custom";
106
106
  label: string;
107
- render: typeof import("../../../puck-core").ActionField;
107
+ render: typeof import("../../..").ActionField;
108
108
  };
109
109
  readonly variant: {
110
110
  readonly type: "select";
@@ -129,7 +129,7 @@ const defaultProject = {
129
129
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.",
130
130
  image: {
131
131
  src: "https://picsum.photos/seed/portfolio-card/1200/800",
132
- alt: "Relume placeholder image"
132
+ alt: "Placeholder image"
133
133
  },
134
134
  url: "#",
135
135
  button: { label: "View project", variant: "link", size: "sm" },
@@ -24,7 +24,7 @@ declare const conf: {
24
24
  readonly action: {
25
25
  type: "custom";
26
26
  label: string;
27
- render: typeof import("../../../puck-core").ActionField;
27
+ render: typeof import("../../..").ActionField;
28
28
  };
29
29
  readonly variant: {
30
30
  readonly type: "select";
@@ -104,7 +104,7 @@ declare const conf: {
104
104
  readonly action: {
105
105
  type: "custom";
106
106
  label: string;
107
- render: typeof import("../../../puck-core").ActionField;
107
+ render: typeof import("../../..").ActionField;
108
108
  };
109
109
  readonly variant: {
110
110
  readonly type: "select";
@@ -10,81 +10,84 @@ const PortfolioDivider = (props) => {
10
10
  ...props
11
11
  };
12
12
  const { className: sectionClassName, style: sectionStyle, css, mediaPosition = "right" } = styles ?? {};
13
- const isMediaLeft = mediaPosition === "left";
13
+ const startsLeft = mediaPosition === "left";
14
14
  return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
15
15
  /* @__PURE__ */ jsxs("header", { className: "mb-12 max-w-lg md:mb-18 lg:mb-20", children: [
16
16
  /* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
17
17
  /* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
18
18
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
19
19
  ] }),
20
- /* @__PURE__ */ jsx("div", { children: projects.map((project, index) => /* @__PURE__ */ jsx(
21
- "article",
22
- {
23
- className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
24
- children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
25
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
26
- CompoundImage,
27
- {
28
- src: project.image.src,
29
- className: "w-full object-cover",
30
- alt: project.image.alt
31
- }
32
- ) }) }),
33
- /* @__PURE__ */ jsxs("div", { children: [
34
- /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
35
- /* @__PURE__ */ jsx("p", { children: project.description }),
36
- project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
37
- "a",
20
+ /* @__PURE__ */ jsx("div", { children: projects.map((project, index) => {
21
+ const isMediaLeft = startsLeft ? index % 2 === 0 : index % 2 !== 0;
22
+ return /* @__PURE__ */ jsx(
23
+ "article",
24
+ {
25
+ className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
26
+ children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
27
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
28
+ CompoundImage,
38
29
  {
39
- href: tag.url,
40
- className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
41
- children: tag.label
30
+ src: project.image.src,
31
+ className: "w-full object-cover",
32
+ alt: project.image.alt
42
33
  }
43
- ) }, tagIndex)) }),
44
- /* @__PURE__ */ jsx(
45
- Button,
34
+ ) }) }),
35
+ /* @__PURE__ */ jsxs("div", { children: [
36
+ /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
37
+ /* @__PURE__ */ jsx("p", { children: project.description }),
38
+ project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
39
+ "a",
40
+ {
41
+ href: tag.url,
42
+ className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
43
+ children: tag.label
44
+ }
45
+ ) }, tagIndex)) }),
46
+ /* @__PURE__ */ jsx(
47
+ Button,
48
+ {
49
+ variant: project.button.variant,
50
+ size: project.button.size,
51
+ className: "mt-6 md:mt-8",
52
+ children: project.button.label
53
+ }
54
+ )
55
+ ] })
56
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
57
+ /* @__PURE__ */ jsxs("div", { children: [
58
+ /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
59
+ /* @__PURE__ */ jsx("p", { children: project.description }),
60
+ project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
61
+ "a",
62
+ {
63
+ href: tag.url,
64
+ className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
65
+ children: tag.label
66
+ }
67
+ ) }, tagIndex)) }),
68
+ /* @__PURE__ */ jsx(
69
+ Button,
70
+ {
71
+ variant: project.button.variant,
72
+ size: project.button.size,
73
+ className: "mt-6 md:mt-8",
74
+ children: project.button.label
75
+ }
76
+ )
77
+ ] }),
78
+ /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
79
+ CompoundImage,
46
80
  {
47
- variant: project.button.variant,
48
- size: project.button.size,
49
- className: "mt-6 md:mt-8",
50
- children: project.button.label
81
+ src: project.image.src,
82
+ className: "w-full object-cover",
83
+ alt: project.image.alt
51
84
  }
52
- )
85
+ ) }) })
53
86
  ] })
54
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
55
- /* @__PURE__ */ jsxs("div", { children: [
56
- /* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
57
- /* @__PURE__ */ jsx("p", { children: project.description }),
58
- project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
59
- "a",
60
- {
61
- href: tag.url,
62
- className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
63
- children: tag.label
64
- }
65
- ) }, tagIndex)) }),
66
- /* @__PURE__ */ jsx(
67
- Button,
68
- {
69
- variant: project.button.variant,
70
- size: project.button.size,
71
- className: "mt-6 md:mt-8",
72
- children: project.button.label
73
- }
74
- )
75
- ] }),
76
- /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
77
- CompoundImage,
78
- {
79
- src: project.image.src,
80
- className: "w-full object-cover",
81
- alt: project.image.alt
82
- }
83
- ) }) })
84
- ] })
85
- },
86
- index
87
- )) }),
87
+ },
88
+ index
89
+ );
90
+ }) }),
88
91
  /* @__PURE__ */ jsx("footer", { className: "mt-12 flex justify-center md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }) })
89
92
  ] }) });
90
93
  };
@@ -93,7 +96,7 @@ const defaultProject = {
93
96
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.",
94
97
  image: {
95
98
  src: "https://picsum.photos/seed/portfolio-div/1200/800",
96
- alt: "Relume placeholder image"
99
+ alt: "Placeholder image"
97
100
  },
98
101
  url: "#",
99
102
  button: { label: "View project", variant: "link", size: "sm" },
@@ -144,8 +144,18 @@ export declare const galleryStyleFields: {
144
144
  }];
145
145
  };
146
146
  readonly slideBasis: {
147
- readonly type: "text";
147
+ readonly type: "select";
148
148
  readonly label: "Slide Basis";
149
+ readonly options: readonly [{
150
+ readonly label: "4/5";
151
+ readonly value: "4/5";
152
+ }, {
153
+ readonly label: "45%";
154
+ readonly value: "45%";
155
+ }, {
156
+ readonly label: "30%";
157
+ readonly value: "30%";
158
+ }];
149
159
  };
150
160
  readonly bordered: {
151
161
  readonly type: "radio";
@@ -64,8 +64,13 @@ const galleryStyleFields = {
64
64
  ]
65
65
  },
66
66
  slideBasis: {
67
- type: "text",
68
- label: "Slide Basis"
67
+ type: "select",
68
+ label: "Slide Basis",
69
+ options: [
70
+ { label: "4/5", value: "4/5" },
71
+ { label: "45%", value: "45%" },
72
+ { label: "30%", value: "30%" }
73
+ ]
69
74
  },
70
75
  bordered: {
71
76
  type: "radio",
@@ -5,6 +5,7 @@ import { useScroll, useTransform, motion } from "framer-motion";
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
7
7
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
8
+ import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
8
9
  import { CompoundImage } from "../../../puck-base/image.js";
9
10
  const ScrollParallax = (props) => {
10
11
  const { heading, description, images, styles } = {
@@ -12,6 +13,7 @@ const ScrollParallax = (props) => {
12
13
  ...props
13
14
  };
14
15
  const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
16
+ const { isEditor } = useEditorContext();
15
17
  const transformRef = useRef(null);
16
18
  const [scrollContainerRef] = useScrollContainer(transformRef);
17
19
  const { scrollYProgress } = useScroll({
@@ -19,6 +21,22 @@ const ScrollParallax = (props) => {
19
21
  ...scrollContainerRef.current ? { container: scrollContainerRef } : {}
20
22
  });
21
23
  const x = useTransform(scrollYProgress, [0, 1], ["0%", "-100%"]);
24
+ if (isEditor) {
25
+ return /* @__PURE__ */ jsxs(SectionWrapper, { ref: transformRef, className: cn(sectionClassName), style: sectionStyle, css, children: [
26
+ /* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsxs("div", { className: "container text-center", children: [
27
+ /* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
28
+ /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
29
+ ] }) }),
30
+ /* @__PURE__ */ jsx("div", { className: "px-[5%] py-12", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3", children: images.map((image, index) => /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
31
+ CompoundImage,
32
+ {
33
+ className: "aspect-video w-full object-cover",
34
+ src: image.src,
35
+ alt: image.alt
36
+ }
37
+ ) }, index)) }) })
38
+ ] });
39
+ }
22
40
  return /* @__PURE__ */ jsxs(SectionWrapper, { ref: transformRef, className: cn(sectionClassName), style: sectionStyle, css, children: [
23
41
  /* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsxs("div", { className: "container text-center", children: [
24
42
  /* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
@@ -59,38 +59,35 @@ declare const conf: {
59
59
  type: string;
60
60
  label: string;
61
61
  objectFields: {
62
+ className: {
63
+ readonly type: "text";
64
+ readonly label: "Class Name";
65
+ readonly ai: {
66
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
67
+ };
68
+ };
69
+ style: {
70
+ readonly type: "object";
71
+ readonly label: "Style";
72
+ readonly objectFields: {};
73
+ readonly ai: {
74
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
75
+ };
76
+ };
77
+ css: {
78
+ readonly type: "textarea";
79
+ readonly label: "Custom CSS";
80
+ readonly ai: {
81
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
82
+ };
83
+ };
62
84
  animation: {
63
85
  type: "radio";
64
86
  label: string;
65
- options: ({
66
- className: {
67
- readonly type: "text";
68
- readonly label: "Class Name";
69
- readonly ai: {
70
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
71
- };
72
- };
73
- style: {
74
- readonly type: "object";
75
- readonly label: "Style";
76
- readonly objectFields: {};
77
- readonly ai: {
78
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
79
- };
80
- };
81
- css: {
82
- readonly type: "textarea";
83
- readonly label: "Custom CSS";
84
- readonly ai: {
85
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
86
- };
87
- };
88
- label: string;
89
- value: string;
90
- } | {
87
+ options: {
91
88
  label: string;
92
89
  value: string;
93
- })[];
90
+ }[];
94
91
  };
95
92
  };
96
93
  };
@@ -24,10 +24,11 @@ const conf = {
24
24
  type: "radio",
25
25
  label: "Animation",
26
26
  options: [
27
- { label: "Three Image Parallax", value: "threeImageParallax", ...sectionWrapperFields },
27
+ { label: "Three Image Parallax", value: "threeImageParallax" },
28
28
  { label: "Scale Opacity", value: "scaleOpacity" }
29
29
  ]
30
- }
30
+ },
31
+ ...sectionWrapperFields
31
32
  }
32
33
  }
33
34
  },
@@ -5,6 +5,7 @@ import { useScroll, useTransform, motion, useSpring, easeOut, easeInOut } from "
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
7
7
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
8
+ import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
8
9
  import { CompoundImage } from "../../../puck-base/image.js";
9
10
  const ScrollParallaxPortfolio = (props) => {
10
11
  const { projects, styles } = {
@@ -23,6 +24,7 @@ const ThreeImageParallaxVariant = ({
23
24
  sectionStyle,
24
25
  css
25
26
  }) => {
27
+ const { isEditor } = useEditorContext();
26
28
  const transformRef = useRef(null);
27
29
  const [scrollContainerRef] = useScrollContainer(transformRef);
28
30
  const { scrollYProgress } = useScroll({
@@ -76,23 +78,23 @@ const ThreeImageParallaxVariant = ({
76
78
  return /* @__PURE__ */ jsxs(
77
79
  "div",
78
80
  {
79
- className: cn("relative flex h-[500vh] flex-col", {
80
- "mt-[-40vh]": index > 0
81
+ className: cn("relative flex flex-col", isEditor ? "h-auto mb-12" : "h-[500vh]", {
82
+ "mt-[-40vh]": !isEditor && index > 0
81
83
  }),
82
84
  children: [
83
85
  /* @__PURE__ */ jsx(
84
86
  motion.div,
85
87
  {
86
- className: "sticky top-0 flex h-[150vh] justify-center",
87
- style: computedStyles[index].headerStyles,
88
- children: /* @__PURE__ */ jsxs("div", { className: "absolute top-[50vh] -z-10 flex w-full max-w-lg flex-col items-center text-center", children: [
88
+ className: cn("flex justify-center", isEditor ? "relative h-auto py-8" : "sticky top-0 h-[150vh]"),
89
+ style: isEditor ? { opacity: 1, scale: 1 } : computedStyles[index].headerStyles,
90
+ children: /* @__PURE__ */ jsxs("div", { className: cn("-z-10 flex w-full max-w-lg flex-col items-center text-center", isEditor ? "relative" : "absolute top-[50vh]"), children: [
89
91
  /* @__PURE__ */ jsx("h3", { className: "text-5xl font-bold md:text-7xl lg:text-8xl", children: project.title }),
90
92
  project.tags && /* @__PURE__ */ jsx("div", { className: "mt-4 flex flex-wrap justify-center gap-2", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx("div", { className: "inline-flex border border-neutral-lightest bg-background-secondary px-2 py-1 text-sm font-semibold text-text-primary", children: tag.label }) }, tagIndex)) })
91
93
  ] })
92
94
  }
93
95
  ),
94
- /* @__PURE__ */ jsxs("div", { className: "sticky top-0 z-10 flex h-screen items-center justify-center overflow-hidden", children: [
95
- /* @__PURE__ */ jsx("a", { href: "#", className: "inline-block max-w-full", children: /* @__PURE__ */ jsx("div", { className: "flex h-screen w-full max-w-lg items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
96
+ /* @__PURE__ */ jsxs("div", { className: cn("z-10 flex items-center justify-center overflow-hidden", isEditor ? "relative h-auto" : "sticky top-0 h-screen"), children: [
97
+ /* @__PURE__ */ jsx("a", { href: "#", className: "inline-block max-w-full", children: /* @__PURE__ */ jsx("div", { className: cn("flex w-full max-w-lg items-center justify-center overflow-hidden", isEditor ? "h-auto" : "h-screen"), children: /* @__PURE__ */ jsx(
96
98
  CompoundImage,
97
99
  {
98
100
  src: ((_a = project.imageCenter) == null ? void 0 : _a.src) ?? project.image.src,
@@ -100,11 +102,11 @@ const ThreeImageParallaxVariant = ({
100
102
  className: "size-full object-contain"
101
103
  }
102
104
  ) }) }),
103
- /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 right-auto z-20 hidden h-screen w-full max-w-xxs lg:flex", children: /* @__PURE__ */ jsx(
105
+ /* @__PURE__ */ jsx("div", { className: cn("absolute inset-y-0 left-0 right-auto z-20 hidden w-full max-w-xxs lg:flex", isEditor ? "h-auto" : "h-screen"), children: /* @__PURE__ */ jsx(
104
106
  motion.div,
105
107
  {
106
- className: "relative w-full pt-[100vh]",
107
- style: computedStyles[index].imageLeftStyles,
108
+ className: cn("relative w-full", isEditor ? "pt-0" : "pt-[100vh]"),
109
+ style: isEditor ? { y: 0 } : computedStyles[index].imageLeftStyles,
108
110
  children: /* @__PURE__ */ jsx(
109
111
  CompoundImage,
110
112
  {
@@ -115,11 +117,11 @@ const ThreeImageParallaxVariant = ({
115
117
  )
116
118
  }
117
119
  ) }),
118
- /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-auto right-0 z-20 hidden h-screen w-full max-w-xxs lg:flex", children: /* @__PURE__ */ jsx(
120
+ /* @__PURE__ */ jsx("div", { className: cn("absolute inset-y-0 left-auto right-0 z-20 hidden w-full max-w-xxs lg:flex", isEditor ? "h-auto" : "h-screen"), children: /* @__PURE__ */ jsx(
119
121
  motion.div,
120
122
  {
121
- className: "relative w-full pt-[100vh]",
122
- style: computedStyles[index].imageRightStyles,
123
+ className: cn("relative w-full", isEditor ? "pt-0" : "pt-[100vh]"),
124
+ style: isEditor ? { y: 0 } : computedStyles[index].imageRightStyles,
123
125
  children: /* @__PURE__ */ jsx(
124
126
  CompoundImage,
125
127
  {
@@ -131,13 +133,13 @@ const ThreeImageParallaxVariant = ({
131
133
  }
132
134
  ) })
133
135
  ] }),
134
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
136
+ !isEditor && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
135
137
  ]
136
138
  },
137
139
  index
138
140
  );
139
141
  }) }) }),
140
- /* @__PURE__ */ jsx("div", { className: "h-screen" })
142
+ !isEditor && /* @__PURE__ */ jsx("div", { className: "h-screen" })
141
143
  ] });
142
144
  };
143
145
  const ScaleOpacityVariant = ({
@@ -146,13 +148,14 @@ const ScaleOpacityVariant = ({
146
148
  sectionStyle,
147
149
  css
148
150
  }) => {
151
+ const { isEditor } = useEditorContext();
149
152
  const containerRef = useRef(null);
150
153
  const [scrollContainerRef] = useScrollContainer(containerRef);
151
154
  const { scrollYProgress } = useScroll({
152
155
  target: containerRef,
153
156
  ...scrollContainerRef.current ? { container: scrollContainerRef } : {}
154
157
  });
155
- return /* @__PURE__ */ jsx(SectionWrapper, { ref: containerRef, className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "h-[300vh]", children: /* @__PURE__ */ jsx("div", { className: "sticky top-0 flex h-screen items-center justify-center", children: projects.map((project, index) => {
158
+ return /* @__PURE__ */ jsx(SectionWrapper, { ref: containerRef, className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: isEditor ? "h-auto" : "h-[300vh]", children: /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-center", isEditor ? "relative flex-col gap-8 py-12" : "sticky top-0 h-screen"), children: projects.map((project, index) => {
156
159
  const segmentSize = 1 / projects.length;
157
160
  const start = index * segmentSize;
158
161
  const end = start + segmentSize;
@@ -169,8 +172,8 @@ const ScaleOpacityVariant = ({
169
172
  return /* @__PURE__ */ jsx(
170
173
  motion.div,
171
174
  {
172
- style: { opacity, scale },
173
- className: "absolute inset-0 flex items-center justify-center",
175
+ style: isEditor ? { opacity: 1, scale: 1 } : { opacity, scale },
176
+ className: cn("flex items-center justify-center", isEditor ? "relative w-full" : "absolute inset-0"),
174
177
  children: /* @__PURE__ */ jsxs("div", { className: "container max-w-4xl border border-border-primary bg-background-primary p-8 md:p-12", children: [
175
178
  /* @__PURE__ */ jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsx(
176
179
  CompoundImage,
@@ -201,7 +204,7 @@ const defaultProject = {
201
204
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
202
205
  image: {
203
206
  src: "https://picsum.photos/seed/scroll-port/1200/800",
204
- alt: "Relume placeholder image"
207
+ alt: "Placeholder image"
205
208
  },
206
209
  url: "#",
207
210
  button: { label: "View project" },
@@ -212,15 +215,15 @@ const defaultProject = {
212
215
  ],
213
216
  imageCenter: {
214
217
  src: "https://picsum.photos/seed/scroll-port-center/800/1000",
215
- alt: "Relume placeholder center"
218
+ alt: "Placeholder center"
216
219
  },
217
220
  imageLeft: {
218
221
  src: "https://picsum.photos/seed/scroll-port-left/400/600",
219
- alt: "Relume placeholder left"
222
+ alt: "Placeholder left"
220
223
  },
221
224
  imageRight: {
222
225
  src: "https://picsum.photos/seed/scroll-port-right/400/600",
223
- alt: "Relume placeholder right"
226
+ alt: "Placeholder right"
224
227
  }
225
228
  };
226
229
  const ScrollParallaxPortfolioDefaults = {
@@ -56,8 +56,18 @@ declare const conf: {
56
56
  };
57
57
  };
58
58
  slideBasis: {
59
- readonly type: "text";
59
+ readonly type: "select";
60
60
  readonly label: "Slide Basis";
61
+ readonly options: readonly [{
62
+ readonly label: "4/5";
63
+ readonly value: "4/5";
64
+ }, {
65
+ readonly label: "45%";
66
+ readonly value: "45%";
67
+ }, {
68
+ readonly label: "30%";
69
+ readonly value: "30%";
70
+ }];
61
71
  };
62
72
  };
63
73
  };