dune-react 0.0.31 → 0.0.33
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.
- package/dist/components/puck-base/article-card.d.ts +2 -2
- package/dist/components/puck-base/article-card.js +2 -2
- package/dist/components/puck-base/card.d.ts +2 -2
- package/dist/components/puck-base/card.js +2 -2
- package/dist/components/puck-base/index.d.ts +2 -1
- package/dist/components/puck-base/media.d.ts +12 -0
- package/dist/components/puck-base/media.js +576 -0
- package/dist/components/puck-base/social-links.d.ts +7 -0
- package/dist/components/puck-base/social-links.js +23 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +6 -6
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +1 -1
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +2 -2
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +42 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +10 -10
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.d.ts +2 -2
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.js +3 -3
- package/dist/components/puck-block/banner-sections/props.d.ts +9 -12
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -5
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +4 -8
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -5
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -8
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -8
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +10 -14
- package/dist/components/puck-block/contact-sections/props.d.ts +5 -16
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.d.ts +7 -2
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -2
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +57 -8
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +7 -7
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +40 -47
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +6 -6
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +4 -4
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +10 -10
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.d.ts +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.js +2 -2
- package/dist/components/puck-block/faq-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -3
- package/dist/components/puck-block/feature-sections/feature-list-split/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -3
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +12 -12
- package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/tab-feature/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -5
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +2 -2
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.d.ts +7 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +3 -3
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/props.d.ts +17 -10
- package/dist/components/puck-block/footer-sections/props.js +8 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +12 -12
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +12 -12
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +14 -14
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +6 -6
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +9 -9
- package/dist/components/puck-block/gallery-sections/props.d.ts +8 -8
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +11 -11
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +5 -5
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -26
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +6 -6
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +7 -7
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +31 -24
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +92 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +9 -4
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +32 -25
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +92 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +5 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +27 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +91 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +23 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +91 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +64 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +13 -6
- package/dist/components/puck-block/header-sections/props.d.ts +17 -5
- package/dist/components/puck-block/header-sections/props.js +8 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +64 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +6 -4
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +9 -5
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/carousel-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +14 -14
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +16 -16
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +7 -7
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +16 -16
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/props.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +9 -9
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +13 -13
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +7 -6
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +4 -7
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -7
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +7 -7
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -5
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +4 -4
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +7 -7
- package/dist/components/puck-block/metrics-sections/props.d.ts +6 -6
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +4 -4
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +11 -11
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +13 -0
- package/dist/components/puck-block/pricing-sections/props.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +4 -3
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/registry.generated.d.ts +796 -124
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/props.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +8 -8
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +2 -2
- package/dist/components/puck-block/team-sections/props.d.ts +2 -3
- package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-grid/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-grid/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-inline-card/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-two-column/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-two-column/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +8 -8
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +4 -4
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +10 -10
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +7 -7
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -4
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +3 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +6 -3
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +5 -5
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -6
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/text-sections/blog-article/component.d.ts +4 -7
- package/dist/components/puck-block/text-sections/blog-article/component.js +9 -17
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +39 -14
- package/dist/components/puck-block/text-sections/blog-article/index.js +4 -10
- package/dist/components/puck-block/text-sections/props.d.ts +3 -3
- package/dist/components/puck-block/text-sections/prose-content/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-content/component.js +3 -3
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/prose-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -5
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +4 -4
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +2 -2
- package/dist/components/puck-block/text-sections/text-header/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +1 -1
- package/dist/components/puck-core/core/context/editor-context.d.ts +2 -0
- package/dist/components/puck-core/core/fields.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.d.ts +3 -3
- package/dist/components/puck-core/core/props/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/index.js +7 -0
- package/dist/components/puck-core/core/props/interactive.d.ts +44 -1
- package/dist/components/puck-core/core/props/interactive.js +24 -1
- package/dist/components/puck-core/core/props/media.d.ts +8 -8
- package/dist/components/puck-core/core/props/media.js +21 -21
- package/dist/components/puck-core/core/puck-fields-to-zod.d.ts +40 -0
- package/dist/components/puck-core/core/puck-fields-to-zod.js +113 -0
- package/dist/components/puck-core/core/social-icons.d.ts +5 -0
- package/dist/components/puck-core/core/social-icons.js +48 -0
- package/dist/components/puck-core/core/with-editable.js +9 -2
- package/dist/components/puck-core/fields/media-upload-field.d.ts +7 -0
- package/dist/components/puck-core/fields/{image-upload-field.js → media-upload-field.js} +71 -28
- package/dist/components/puck-core/index.d.ts +3 -2
- package/dist/components/shadcn/tabs.d.ts +2 -1
- package/dist/components/shadcn/tabs.js +21 -3
- package/dist/components/shadcn/video-iframe.d.ts +2 -1
- package/dist/components/shadcn/video-iframe.js +7 -6
- package/dist/index.js +18 -12
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js +44 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js +43 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js +29 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js +665 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js +569 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js +410 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js +74 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js +37 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js +72 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js +314 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js +95 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js +81 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js +1345 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js +362 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js +430 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js +8 -0
- package/package.json +3 -2
- package/dist/components/puck-base/image.d.ts +0 -6
- package/dist/components/puck-base/image.js +0 -360
- package/dist/components/puck-core/fields/image-upload-field.d.ts +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ScrollZoomHero, ScrollZoomHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { heroStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -9,7 +9,7 @@ const conf = {
|
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
|
-
|
|
12
|
+
medias: mediasField,
|
|
13
13
|
video: { type: "text" },
|
|
14
14
|
styles: {
|
|
15
15
|
type: "object",
|
|
@@ -4,17 +4,17 @@ import { useScroll, useSpring, useTransform, motion } from "motion/react";
|
|
|
4
4
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
5
5
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
6
6
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
7
|
-
import {
|
|
7
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
10
|
import { useRef } from "react";
|
|
11
11
|
const StickyExpandHero = (props) => {
|
|
12
|
-
const { heading, description, buttons = [],
|
|
12
|
+
const { heading, description, buttons = [], medias, styles } = {
|
|
13
13
|
...StickyExpandHeroDefaults,
|
|
14
14
|
...props
|
|
15
15
|
};
|
|
16
16
|
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
17
|
-
const
|
|
17
|
+
const media = (medias == null ? void 0 : medias[0]) ?? { src: "", alt: "" };
|
|
18
18
|
const headerRef = useRef(null);
|
|
19
19
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
20
20
|
const [scrollContainerRef] = useScrollContainer(headerRef);
|
|
@@ -31,25 +31,25 @@ const StickyExpandHero = (props) => {
|
|
|
31
31
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
32
32
|
/* @__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)) })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */ jsx(MotionImage, {
|
|
34
|
+
/* @__PURE__ */ jsx(MotionImage, { media, isMobile, width })
|
|
35
35
|
] }) });
|
|
36
36
|
};
|
|
37
37
|
const MotionImage = ({
|
|
38
|
-
|
|
38
|
+
media,
|
|
39
39
|
isMobile,
|
|
40
40
|
width
|
|
41
41
|
}) => /* @__PURE__ */ jsx("div", { children: isMobile ? /* @__PURE__ */ jsx("div", { className: "static w-full", children: /* @__PURE__ */ jsx("div", { className: "relative size-full pt-[100%] lg:pt-0", children: /* @__PURE__ */ jsx(
|
|
42
|
-
|
|
42
|
+
CompoundMedia,
|
|
43
43
|
{
|
|
44
|
-
src:
|
|
45
|
-
alt:
|
|
44
|
+
src: media.src,
|
|
45
|
+
alt: media.alt,
|
|
46
46
|
className: "absolute inset-0 size-full object-cover"
|
|
47
47
|
}
|
|
48
48
|
) }) }) : /* @__PURE__ */ jsx(motion.div, { style: { width }, className: "absolute inset-0 left-auto w-auto", children: /* @__PURE__ */ jsx("div", { className: "relative size-full pt-[100%] lg:pt-0", children: /* @__PURE__ */ jsx(
|
|
49
|
-
|
|
49
|
+
CompoundMedia,
|
|
50
50
|
{
|
|
51
|
-
src:
|
|
52
|
-
alt:
|
|
51
|
+
src: media.src,
|
|
52
|
+
alt: media.alt,
|
|
53
53
|
className: "absolute inset-0 size-full object-cover"
|
|
54
54
|
}
|
|
55
55
|
) }) }) });
|
|
@@ -57,7 +57,7 @@ const StickyExpandHeroDefaults = {
|
|
|
57
57
|
heading: "Medium length hero heading goes here",
|
|
58
58
|
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.",
|
|
59
59
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
60
|
-
|
|
60
|
+
medias: [{
|
|
61
61
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
62
62
|
alt: "Placeholder image"
|
|
63
63
|
}]
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StickyExpandHero, StickyExpandHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
const conf = {
|
|
6
6
|
fields: {
|
|
7
7
|
heading: headingField,
|
|
8
8
|
description: descriptionField,
|
|
9
9
|
buttons: buttonsField,
|
|
10
|
-
|
|
10
|
+
medias: mediasField
|
|
11
11
|
},
|
|
12
12
|
defaultProps: StickyExpandHeroDefaults,
|
|
13
13
|
render: StickyExpandHero
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseMedia, HeroComponentProps } from "../props";
|
|
2
2
|
type StickyVideoHeroExtra = {
|
|
3
|
-
videoImage:
|
|
3
|
+
videoImage: BaseMedia;
|
|
4
4
|
};
|
|
5
5
|
export type StickyVideoHeroProps = HeroComponentProps<StickyVideoHeroExtra>;
|
|
6
6
|
export declare const StickyVideoHero: (props: StickyVideoHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useRef } from "react";
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { useScroll, useTransform, motion } from "motion/react";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
9
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
@@ -16,14 +16,14 @@ const StickyVideoHero = (props) => {
|
|
|
16
16
|
description = "",
|
|
17
17
|
buttons = [],
|
|
18
18
|
video = "",
|
|
19
|
-
|
|
19
|
+
medias = [{ src: "", alt: "" }],
|
|
20
20
|
videoImage = { src: "", alt: "" },
|
|
21
21
|
styles
|
|
22
22
|
} = {
|
|
23
23
|
...StickyVideoHeroDefaults,
|
|
24
24
|
...props
|
|
25
25
|
};
|
|
26
|
-
const
|
|
26
|
+
const media = medias == null ? void 0 : medias[0];
|
|
27
27
|
const { className: sectionClassName, style: sectionStyle, css, variant = "centered" } = styles ?? {};
|
|
28
28
|
if (variant === "parallax-bg") {
|
|
29
29
|
return /* @__PURE__ */ jsx(
|
|
@@ -33,7 +33,7 @@ const StickyVideoHero = (props) => {
|
|
|
33
33
|
description,
|
|
34
34
|
buttons,
|
|
35
35
|
video,
|
|
36
|
-
|
|
36
|
+
media,
|
|
37
37
|
videoImage,
|
|
38
38
|
sectionClassName,
|
|
39
39
|
sectionStyle,
|
|
@@ -48,7 +48,7 @@ const StickyVideoHero = (props) => {
|
|
|
48
48
|
description,
|
|
49
49
|
buttons,
|
|
50
50
|
video,
|
|
51
|
-
|
|
51
|
+
media,
|
|
52
52
|
sectionClassName,
|
|
53
53
|
sectionStyle,
|
|
54
54
|
css
|
|
@@ -60,7 +60,7 @@ const CenteredVariant = ({
|
|
|
60
60
|
description,
|
|
61
61
|
buttons,
|
|
62
62
|
video,
|
|
63
|
-
|
|
63
|
+
media,
|
|
64
64
|
sectionClassName,
|
|
65
65
|
sectionStyle,
|
|
66
66
|
css
|
|
@@ -92,10 +92,10 @@ const CenteredVariant = ({
|
|
|
92
92
|
/* @__PURE__ */ jsx("div", { className: "sticky top-0 z-10 flex h-screen flex-col justify-center lg:top-[10vh] lg:justify-start", children: /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
93
93
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
94
94
|
/* @__PURE__ */ jsx(
|
|
95
|
-
|
|
95
|
+
CompoundMedia,
|
|
96
96
|
{
|
|
97
|
-
src:
|
|
98
|
-
alt:
|
|
97
|
+
src: media.src,
|
|
98
|
+
alt: media.alt,
|
|
99
99
|
className: "h-[80vh] max-h-[25rem] w-full object-cover sm:max-h-[30rem] md:max-h-[40rem] lg:max-h-none"
|
|
100
100
|
}
|
|
101
101
|
),
|
|
@@ -127,7 +127,7 @@ const ParallaxBgVariant = ({
|
|
|
127
127
|
description,
|
|
128
128
|
buttons,
|
|
129
129
|
video,
|
|
130
|
-
|
|
130
|
+
media,
|
|
131
131
|
videoImage,
|
|
132
132
|
sectionClassName,
|
|
133
133
|
sectionStyle,
|
|
@@ -163,7 +163,7 @@ const ParallaxBgVariant = ({
|
|
|
163
163
|
/* @__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)) })
|
|
164
164
|
] }) }),
|
|
165
165
|
/* @__PURE__ */ jsxs(motion.div, { className: "absolute inset-0 z-0", style: imageTranslate, children: [
|
|
166
|
-
/* @__PURE__ */ jsx(
|
|
166
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }),
|
|
167
167
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
|
|
168
168
|
] }),
|
|
169
169
|
/* @__PURE__ */ jsxs(Dialog, { children: [
|
|
@@ -173,7 +173,7 @@ const ParallaxBgVariant = ({
|
|
|
173
173
|
className: "absolute bottom-[5%] right-[5%] flex w-full items-center justify-center md:max-w-[14rem] lg:max-w-xxs",
|
|
174
174
|
style: videoDialogTranslate,
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ jsx(
|
|
176
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: videoImage.src, alt: videoImage.alt, className: "size-full object-cover" }),
|
|
177
177
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" })
|
|
178
178
|
]
|
|
179
179
|
}
|
|
@@ -206,7 +206,7 @@ const StickyVideoHeroDefaults = {
|
|
|
206
206
|
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.",
|
|
207
207
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
208
208
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
209
|
-
|
|
209
|
+
medias: [{
|
|
210
210
|
src: "https://picsum.photos/seed/hero-video/1200/800",
|
|
211
211
|
alt: "Placeholder image"
|
|
212
212
|
}],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StickyVideoHero, StickyVideoHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField, mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { heroStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -10,8 +10,8 @@ const conf = {
|
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
12
|
video: { type: "text" },
|
|
13
|
-
|
|
14
|
-
videoImage:
|
|
13
|
+
medias: mediasField,
|
|
14
|
+
videoImage: mediaField,
|
|
15
15
|
styles: {
|
|
16
16
|
type: "object",
|
|
17
17
|
label: "Styles",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseMedia, BaseButton, HeroComponentProps } from "../props";
|
|
2
2
|
type TabContent = {
|
|
3
3
|
value: string;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons: BaseButton[];
|
|
7
|
-
|
|
7
|
+
media: BaseMedia;
|
|
8
8
|
};
|
|
9
9
|
type TabTrigger = {
|
|
10
10
|
value: string;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../shadcn/tabs.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { AnimatePresence, motion } from "motion/react";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -75,12 +75,13 @@ const TabContentBlock = ({ ...content }) => {
|
|
|
75
75
|
) }),
|
|
76
76
|
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0 z-0", children: [
|
|
77
77
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 z-10 bg-black/50" }),
|
|
78
|
-
/* @__PURE__ */ jsx(
|
|
78
|
+
/* @__PURE__ */ jsx(CompoundMedia, { className: "size-full object-cover", src: content.media.src, alt: content.media.alt })
|
|
79
79
|
] })
|
|
80
80
|
] });
|
|
81
81
|
};
|
|
82
82
|
const TabHeroDefaults = {
|
|
83
83
|
defaultTabValue: "tab-one",
|
|
84
|
+
styles: {},
|
|
84
85
|
tabs: {
|
|
85
86
|
trigger: [
|
|
86
87
|
{
|
|
@@ -106,7 +107,7 @@ const TabHeroDefaults = {
|
|
|
106
107
|
heading: "Medium length hero heading goes here",
|
|
107
108
|
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.",
|
|
108
109
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
109
|
-
|
|
110
|
+
media: {
|
|
110
111
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
111
112
|
alt: "Placeholder image 1"
|
|
112
113
|
}
|
|
@@ -116,7 +117,7 @@ const TabHeroDefaults = {
|
|
|
116
117
|
heading: "Medium length hero heading goes here",
|
|
117
118
|
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.",
|
|
118
119
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
119
|
-
|
|
120
|
+
media: {
|
|
120
121
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
121
122
|
alt: "Placeholder image 2"
|
|
122
123
|
}
|
|
@@ -126,7 +127,7 @@ const TabHeroDefaults = {
|
|
|
126
127
|
heading: "Medium length hero heading goes here",
|
|
127
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.",
|
|
128
129
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
129
|
-
|
|
130
|
+
media: {
|
|
130
131
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
131
132
|
alt: "Placeholder image 3"
|
|
132
133
|
}
|
|
@@ -136,7 +137,7 @@ const TabHeroDefaults = {
|
|
|
136
137
|
heading: "Medium length hero heading goes here",
|
|
137
138
|
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.",
|
|
138
139
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
139
|
-
|
|
140
|
+
media: {
|
|
140
141
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
141
142
|
alt: "Placeholder image 4"
|
|
142
143
|
}
|
|
@@ -36,15 +36,12 @@ declare const conf: {
|
|
|
36
36
|
description: {
|
|
37
37
|
type: string;
|
|
38
38
|
};
|
|
39
|
-
|
|
40
|
-
type:
|
|
39
|
+
media: {
|
|
40
|
+
type: "object";
|
|
41
41
|
objectFields: {
|
|
42
|
-
src:
|
|
43
|
-
type: string;
|
|
44
|
-
label: string;
|
|
45
|
-
};
|
|
42
|
+
src: import("@puckeditor/core").Field<string>;
|
|
46
43
|
alt: {
|
|
47
|
-
type:
|
|
44
|
+
type: "text";
|
|
48
45
|
};
|
|
49
46
|
};
|
|
50
47
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TabHero, TabHeroDefaults } from "./component.js";
|
|
2
2
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
defaultTabValue: { type: "text" },
|
|
@@ -22,13 +23,7 @@ const conf = {
|
|
|
22
23
|
value: { type: "text" },
|
|
23
24
|
heading: { type: "text" },
|
|
24
25
|
description: { type: "textarea" },
|
|
25
|
-
|
|
26
|
-
type: "object",
|
|
27
|
-
objectFields: {
|
|
28
|
-
src: { type: "image", label: "Image" },
|
|
29
|
-
alt: { type: "text" }
|
|
30
|
-
}
|
|
31
|
-
}
|
|
26
|
+
media: mediaField
|
|
32
27
|
}
|
|
33
28
|
}
|
|
34
29
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseMedia, HeroComponentProps } from "../props";
|
|
2
2
|
type ThreeImageParallaxHeroExtra = {
|
|
3
|
-
imageLeft:
|
|
4
|
-
imageCenter:
|
|
5
|
-
imageRight:
|
|
3
|
+
imageLeft: BaseMedia;
|
|
4
|
+
imageCenter: BaseMedia;
|
|
5
|
+
imageRight: BaseMedia;
|
|
6
6
|
};
|
|
7
7
|
export type ThreeImageParallaxHeroProps = HeroComponentProps<ThreeImageParallaxHeroExtra>;
|
|
8
8
|
export declare const ThreeImageParallaxHero: (props: ThreeImageParallaxHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,7 +5,7 @@ import { useScroll, useTransform, motion } from "motion/react";
|
|
|
5
5
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
6
6
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
7
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
8
|
-
import {
|
|
8
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
9
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
11
11
|
const ThreeImageParallaxHero = (props) => {
|
|
@@ -109,7 +109,7 @@ const ThreeImageParallaxHero = (props) => {
|
|
|
109
109
|
className: "absolute bottom-0 left-0 z-10 w-2/5 overflow-hidden rounded-lg shadow-xl",
|
|
110
110
|
style: leftImageTranslate,
|
|
111
111
|
children: /* @__PURE__ */ jsx(
|
|
112
|
-
|
|
112
|
+
CompoundMedia,
|
|
113
113
|
{
|
|
114
114
|
src: imageLeft.src,
|
|
115
115
|
alt: imageLeft.alt,
|
|
@@ -124,7 +124,7 @@ const ThreeImageParallaxHero = (props) => {
|
|
|
124
124
|
className: "mx-[10%] mb-[10%] w-1/2 overflow-hidden rounded-lg shadow-xl",
|
|
125
125
|
style: centerImageTranslate,
|
|
126
126
|
children: /* @__PURE__ */ jsx(
|
|
127
|
-
|
|
127
|
+
CompoundMedia,
|
|
128
128
|
{
|
|
129
129
|
src: imageCenter.src,
|
|
130
130
|
alt: imageCenter.alt,
|
|
@@ -139,7 +139,7 @@ const ThreeImageParallaxHero = (props) => {
|
|
|
139
139
|
className: "absolute right-0 top-[10%] w-2/5 overflow-hidden rounded-lg shadow-xl",
|
|
140
140
|
style: rightImageTranslate,
|
|
141
141
|
children: /* @__PURE__ */ jsx(
|
|
142
|
-
|
|
142
|
+
CompoundMedia,
|
|
143
143
|
{
|
|
144
144
|
src: imageRight.src,
|
|
145
145
|
alt: imageRight.alt,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThreeImageParallaxHero, ThreeImageParallaxHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { heroStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -9,9 +9,9 @@ const conf = {
|
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
|
-
imageLeft:
|
|
13
|
-
imageCenter:
|
|
14
|
-
imageRight:
|
|
12
|
+
imageLeft: mediaField,
|
|
13
|
+
imageCenter: mediaField,
|
|
14
|
+
imageRight: mediaField,
|
|
15
15
|
styles: {
|
|
16
16
|
type: "object",
|
|
17
17
|
objectFields: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
7
|
const VerticalGalleryHero = (props) => {
|
|
@@ -9,7 +9,7 @@ const VerticalGalleryHero = (props) => {
|
|
|
9
9
|
heading,
|
|
10
10
|
description,
|
|
11
11
|
buttons = [],
|
|
12
|
-
|
|
12
|
+
medias = [],
|
|
13
13
|
styles
|
|
14
14
|
} = {
|
|
15
15
|
...VerticalGalleryHeroDefaults,
|
|
@@ -46,20 +46,20 @@ const VerticalGalleryHero = (props) => {
|
|
|
46
46
|
)) })
|
|
47
47
|
] }),
|
|
48
48
|
/* @__PURE__ */ jsx("div", { className: "h-[30rem] overflow-hidden pl-[5vw] pr-[5vw] md:h-[40rem] lg:h-screen lg:pl-0", children: /* @__PURE__ */ jsxs("div", { className: "grid w-full grid-cols-2 gap-x-4", children: [
|
|
49
|
-
/* @__PURE__ */ jsx("div", { className: "-mt-[120%] grid size-full animate-loop-vertically columns-2 grid-cols-1 gap-4 self-center", children:
|
|
50
|
-
|
|
49
|
+
/* @__PURE__ */ jsx("div", { className: "-mt-[120%] grid size-full animate-loop-vertically columns-2 grid-cols-1 gap-4 self-center", children: medias.map((item, index) => /* @__PURE__ */ jsx("div", { className: "grid size-full grid-cols-1 gap-4", children: /* @__PURE__ */ jsx("div", { className: "relative w-full pt-[120%]", children: /* @__PURE__ */ jsx(
|
|
50
|
+
CompoundMedia,
|
|
51
51
|
{
|
|
52
52
|
className: "absolute inset-0 size-full object-cover",
|
|
53
|
-
src:
|
|
54
|
-
alt:
|
|
53
|
+
src: item.src,
|
|
54
|
+
alt: item.alt
|
|
55
55
|
}
|
|
56
56
|
) }) }, index)) }),
|
|
57
|
-
/* @__PURE__ */ jsx("div", { className: "grid size-full animate-loop-vertically grid-cols-1 gap-4", children:
|
|
58
|
-
|
|
57
|
+
/* @__PURE__ */ jsx("div", { className: "grid size-full animate-loop-vertically grid-cols-1 gap-4", children: medias.map((item, index) => /* @__PURE__ */ jsx("div", { className: "grid size-full grid-cols-1 gap-4", children: /* @__PURE__ */ jsx("div", { className: "relative w-full pt-[120%]", children: /* @__PURE__ */ jsx(
|
|
58
|
+
CompoundMedia,
|
|
59
59
|
{
|
|
60
60
|
className: "absolute inset-0 size-full object-cover",
|
|
61
|
-
src:
|
|
62
|
-
alt:
|
|
61
|
+
src: item.src,
|
|
62
|
+
alt: item.alt
|
|
63
63
|
}
|
|
64
64
|
) }) }, index)) })
|
|
65
65
|
] }) })
|
|
@@ -71,7 +71,7 @@ const VerticalGalleryHeroDefaults = {
|
|
|
71
71
|
heading: "Medium length hero heading goes here",
|
|
72
72
|
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.",
|
|
73
73
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
74
|
-
|
|
74
|
+
medias: [
|
|
75
75
|
{
|
|
76
76
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
77
77
|
alt: "Placeholder image 1"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { VerticalGalleryHero, VerticalGalleryHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
const conf = {
|
|
6
6
|
fields: {
|
|
7
7
|
heading: headingField,
|
|
8
8
|
description: descriptionField,
|
|
9
9
|
buttons: buttonsField,
|
|
10
|
-
|
|
10
|
+
medias: mediasField
|
|
11
11
|
},
|
|
12
12
|
defaultProps: VerticalGalleryHeroDefaults,
|
|
13
13
|
render: VerticalGalleryHero
|
|
@@ -3,13 +3,13 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
8
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
9
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
10
10
|
import { useScroll, useTransform, motion } from "motion/react";
|
|
11
11
|
const ZoomGridHero = (props) => {
|
|
12
|
-
const { heading, description, buttons = [],
|
|
12
|
+
const { heading, description, buttons = [], medias = [], styles } = {
|
|
13
13
|
...ZoomGridHeroDefaults,
|
|
14
14
|
...props
|
|
15
15
|
};
|
|
@@ -49,7 +49,7 @@ const ZoomGridHero = (props) => {
|
|
|
49
49
|
{
|
|
50
50
|
style: { scale: isEditor ? 1 : scale },
|
|
51
51
|
className: "grid size-full auto-cols-fr grid-cols-1 gap-x-4 gap-y-4 md:grid-cols-3",
|
|
52
|
-
children:
|
|
52
|
+
children: medias.map((item, index) => /* @__PURE__ */ jsx(
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
className: cn(
|
|
@@ -57,10 +57,10 @@ const ZoomGridHero = (props) => {
|
|
|
57
57
|
[0, 2, 3, 5, 6, 8].indexOf(index) !== -1 && "hidden md:block"
|
|
58
58
|
),
|
|
59
59
|
children: /* @__PURE__ */ jsx(
|
|
60
|
-
|
|
60
|
+
CompoundMedia,
|
|
61
61
|
{
|
|
62
|
-
src:
|
|
63
|
-
alt:
|
|
62
|
+
src: item.src,
|
|
63
|
+
alt: item.alt,
|
|
64
64
|
className: "absolute inset-0 size-full object-cover"
|
|
65
65
|
}
|
|
66
66
|
)
|
|
@@ -76,7 +76,7 @@ const ZoomGridHeroDefaults = {
|
|
|
76
76
|
heading: "Medium length hero heading goes here",
|
|
77
77
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
78
78
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
79
|
-
|
|
79
|
+
medias: [
|
|
80
80
|
{
|
|
81
81
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
82
82
|
alt: "Placeholder image 1"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ZoomGridHero, ZoomGridHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
const conf = {
|
|
6
6
|
fields: {
|
|
7
7
|
heading: headingField,
|
|
8
8
|
description: descriptionField,
|
|
9
9
|
buttons: buttonsField,
|
|
10
|
-
|
|
10
|
+
medias: mediasField
|
|
11
11
|
},
|
|
12
12
|
defaultProps: ZoomGridHeroDefaults,
|
|
13
13
|
render: ZoomGridHero
|