dune-react 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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.js +2 -2
- 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 +50 -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 +50 -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 +50 -10
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +50 -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 +81 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +8 -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 +81 -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 +80 -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 +80 -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 +53 -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 +53 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +5 -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 +6 -6
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -2
- 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/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 +2 -2
- 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 +694 -118
- 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/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 +2 -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 +15 -12
- package/package.json +1 -1
- 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
|
@@ -91,7 +91,7 @@ declare const conf: {
|
|
|
91
91
|
readonly instructions: "Buttons must use the same size";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
mediasPartOne: {
|
|
95
95
|
readonly type: "array";
|
|
96
96
|
readonly max: 10;
|
|
97
97
|
readonly getItemSummary: (item: {
|
|
@@ -108,7 +108,7 @@ declare const conf: {
|
|
|
108
108
|
src: string;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
|
|
111
|
+
mediasPartTwo: {
|
|
112
112
|
readonly type: "array";
|
|
113
113
|
readonly max: 10;
|
|
114
114
|
readonly getItemSummary: (item: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ColumnScrollHero, ColumnScrollHeroDefaults } 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
|
-
|
|
11
|
-
|
|
10
|
+
mediasPartOne: mediasField,
|
|
11
|
+
mediasPartTwo: mediasField
|
|
12
12
|
},
|
|
13
13
|
defaultProps: ColumnScrollHeroDefaults,
|
|
14
14
|
render: ColumnScrollHero
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } 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 DualMarqueeHero = (props) => {
|
|
8
|
-
const { heading, description, buttons = [],
|
|
8
|
+
const { heading, description, buttons = [], medias = [], styles } = {
|
|
9
9
|
...DualMarqueeHeroDefaults,
|
|
10
10
|
...props
|
|
11
11
|
};
|
|
@@ -17,31 +17,31 @@ const DualMarqueeHero = (props) => {
|
|
|
17
17
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-x-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
18
18
|
] }),
|
|
19
19
|
/* @__PURE__ */ jsx("div", { className: "flex w-screen justify-start overflow-hidden", children: /* @__PURE__ */ jsxs("div", { className: "grid shrink-0 grid-cols-1 gap-y-4", children: [
|
|
20
|
-
/* @__PURE__ */ jsx("div", { className: "grid w-full animate-marquee-top auto-cols-fr grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children:
|
|
20
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full animate-marquee-top auto-cols-fr grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children: medias.map((item, imageIndex) => /* @__PURE__ */ jsx(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
className: "relative w-[60vw] pt-[75%] sm:w-[18rem] md:w-[26rem]",
|
|
24
24
|
children: /* @__PURE__ */ jsx(
|
|
25
|
-
|
|
25
|
+
CompoundMedia,
|
|
26
26
|
{
|
|
27
27
|
className: "absolute inset-0 size-full object-cover",
|
|
28
|
-
src:
|
|
29
|
-
alt:
|
|
28
|
+
src: item.src,
|
|
29
|
+
alt: item.alt
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
},
|
|
33
33
|
imageIndex
|
|
34
34
|
)) }, index)) }),
|
|
35
|
-
/* @__PURE__ */ jsx("div", { className: "grid w-full animate-marquee-bottom grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children:
|
|
35
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full animate-marquee-bottom grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children: medias.map((item, imageIndex) => /* @__PURE__ */ jsx(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
className: "relative w-[60vw] pt-[75%] sm:w-[18rem] md:w-[26rem]",
|
|
39
39
|
children: /* @__PURE__ */ jsx(
|
|
40
|
-
|
|
40
|
+
CompoundMedia,
|
|
41
41
|
{
|
|
42
42
|
className: "absolute inset-0 size-full object-cover",
|
|
43
|
-
src:
|
|
44
|
-
alt:
|
|
43
|
+
src: item.src,
|
|
44
|
+
alt: item.alt
|
|
45
45
|
}
|
|
46
46
|
)
|
|
47
47
|
},
|
|
@@ -54,7 +54,7 @@ const DualMarqueeHeroDefaults = {
|
|
|
54
54
|
heading: "Medium length hero heading goes here",
|
|
55
55
|
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.",
|
|
56
56
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
57
|
-
|
|
57
|
+
medias: [
|
|
58
58
|
{
|
|
59
59
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
60
60
|
alt: "Placeholder image 1"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DualMarqueeHero, DualMarqueeHeroDefaults } 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: DualMarqueeHeroDefaults,
|
|
13
13
|
render: DualMarqueeHero
|
|
@@ -7,16 +7,16 @@ import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js"
|
|
|
7
7
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
8
8
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
9
9
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
10
|
-
import {
|
|
10
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
11
11
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
12
12
|
import { cn } from "../../../../utils/css-utils.js";
|
|
13
13
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
14
14
|
const FullscreenVideoHero = (props) => {
|
|
15
|
-
const { heading, description, buttons = [], video = "",
|
|
15
|
+
const { heading, description, buttons = [], video = "", medias = [{ src: "", alt: "" }], styles } = {
|
|
16
16
|
...FullscreenVideoHeroDefaults,
|
|
17
17
|
...props
|
|
18
18
|
};
|
|
19
|
-
const
|
|
19
|
+
const media = medias == null ? void 0 : medias[0];
|
|
20
20
|
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
21
21
|
const isMobile = useMediaQuery("(max-width: 767px)");
|
|
22
22
|
const isTablet = useMediaQuery("(min-width: 768px) and (max-width: 991px)");
|
|
@@ -48,7 +48,7 @@ const FullscreenVideoHero = (props) => {
|
|
|
48
48
|
style: videoDialogMotion,
|
|
49
49
|
className: "absolute flex cursor-pointer items-center justify-center",
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ jsx(
|
|
51
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }),
|
|
52
52
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
|
|
53
53
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
|
|
54
54
|
]
|
|
@@ -78,7 +78,7 @@ const FullscreenVideoHeroDefaults = {
|
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
80
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
81
|
-
|
|
81
|
+
medias: [{
|
|
82
82
|
src: "https://picsum.photos/seed/hero-video/1200/800",
|
|
83
83
|
alt: "Placeholder image"
|
|
84
84
|
}]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FullscreenVideoHero, FullscreenVideoHeroDefaults } 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
|
video: { type: "text" },
|
|
11
|
-
|
|
11
|
+
medias: mediasField
|
|
12
12
|
},
|
|
13
13
|
defaultProps: FullscreenVideoHeroDefaults,
|
|
14
14
|
render: FullscreenVideoHero
|
|
@@ -5,7 +5,7 @@ import { useScroll, motion, useTransform } 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
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
@@ -14,7 +14,7 @@ const GridExpandHero = (props) => {
|
|
|
14
14
|
heading,
|
|
15
15
|
description,
|
|
16
16
|
buttons = [],
|
|
17
|
-
|
|
17
|
+
medias = [],
|
|
18
18
|
styles
|
|
19
19
|
} = {
|
|
20
20
|
...GridExpandHeroDefaults,
|
|
@@ -87,15 +87,15 @@ const GridExpandHero = (props) => {
|
|
|
87
87
|
className: "grid grid-flow-col grid-cols-1 items-center justify-items-end gap-4 justify-self-end px-4",
|
|
88
88
|
style: isEditor ? editorCenterLeftImageGroup : centerLeftImageGroup,
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */ jsx("div", { className: "relative hidden md:block md:w-[25vw] lg:w-[20vw]", children: /* @__PURE__ */ jsx(
|
|
90
|
+
/* @__PURE__ */ jsx("div", { className: "relative hidden md:block md:w-[25vw] lg:w-[20vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[2/3] w-full object-cover", ...medias[0] }) }),
|
|
91
91
|
/* @__PURE__ */ jsxs("div", { className: "relative grid w-[40vw] grid-cols-1 grid-rows-[auto_auto] gap-4 self-center md:w-[18vw]", children: [
|
|
92
|
-
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
93
|
-
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
92
|
+
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-square w-full object-cover", ...medias[1] }) }),
|
|
93
|
+
/* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[3/4] w-full object-cover", ...medias[2] }) })
|
|
94
94
|
] })
|
|
95
95
|
]
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorCenterCenterImageContainer : centerCenterImageContainer, children: /* @__PURE__ */ jsx(
|
|
98
|
+
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorCenterCenterImageContainer : centerCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundMedia, { className: "size-full object-cover", ...medias[3] }) }),
|
|
99
99
|
/* @__PURE__ */ jsxs(
|
|
100
100
|
motion.div,
|
|
101
101
|
{
|
|
@@ -103,10 +103,10 @@ const GridExpandHero = (props) => {
|
|
|
103
103
|
style: isEditor ? editorCenterRightImageGroup : centerRightImageGroup,
|
|
104
104
|
children: [
|
|
105
105
|
/* @__PURE__ */ jsxs("div", { className: "relative grid w-[40vw] grid-cols-1 grid-rows-[auto_auto] gap-4 self-center md:w-[18vw]", children: [
|
|
106
|
-
/* @__PURE__ */ jsx("div", { className: "relative w-[40vw] sm:w-auto", children: /* @__PURE__ */ jsx(
|
|
107
|
-
/* @__PURE__ */ jsx("div", { className: "relative w-[40vw] sm:w-auto", children: /* @__PURE__ */ jsx(
|
|
106
|
+
/* @__PURE__ */ jsx("div", { className: "relative w-[40vw] sm:w-auto", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[3/4] w-full object-cover", ...medias[4] }) }),
|
|
107
|
+
/* @__PURE__ */ jsx("div", { className: "relative w-[40vw] sm:w-auto", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-square w-full object-cover", ...medias[5] }) })
|
|
108
108
|
] }),
|
|
109
|
-
|
|
109
|
+
medias[6] && /* @__PURE__ */ jsx("div", { className: "relative hidden md:block md:w-[25vw] lg:w-[20vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[2/3] w-full object-cover", ...medias[6] }) })
|
|
110
110
|
]
|
|
111
111
|
}
|
|
112
112
|
)
|
|
@@ -137,22 +137,22 @@ const GridExpandHero = (props) => {
|
|
|
137
137
|
className: "grid grid-flow-col grid-cols-1 justify-items-end gap-4 justify-self-end px-4",
|
|
138
138
|
style: isEditor ? editorLeftLeftImageGroup : leftLeftImageGroup,
|
|
139
139
|
children: [
|
|
140
|
-
/* @__PURE__ */ jsx("div", { className: "relative top-[5%] hidden w-[40vw] sm:w-[25vw] md:block lg:w-[22vw]", children: /* @__PURE__ */ jsx(
|
|
140
|
+
/* @__PURE__ */ jsx("div", { className: "relative top-[5%] hidden w-[40vw] sm:w-[25vw] md:block lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[2/3] w-full object-cover", ...medias[0] }) }),
|
|
141
141
|
/* @__PURE__ */ jsxs("div", { className: "relative top-[-5%] flex flex-col gap-4 self-center", children: [
|
|
142
|
-
/* @__PURE__ */ jsx("div", { className: "relative w-[30vw] flex-none md:w-[15vw]", children: /* @__PURE__ */ jsx(
|
|
143
|
-
/* @__PURE__ */ jsx("div", { className: "relative w-[30vw] flex-none md:w-[15vw]", children: /* @__PURE__ */ jsx(
|
|
142
|
+
/* @__PURE__ */ jsx("div", { className: "relative w-[30vw] flex-none md:w-[15vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-square w-full object-cover", ...medias[1] }) }),
|
|
143
|
+
/* @__PURE__ */ jsx("div", { className: "relative w-[30vw] flex-none md:w-[15vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[3/4] w-full object-cover", ...medias[2] }) })
|
|
144
144
|
] }),
|
|
145
|
-
/* @__PURE__ */ jsx("div", { className: "relative top-[15%] hidden w-[40vw] sm:w-[25vw] md:block lg:w-[22vw]", children: /* @__PURE__ */ jsx(
|
|
145
|
+
/* @__PURE__ */ jsx("div", { className: "relative top-[15%] hidden w-[40vw] sm:w-[25vw] md:block lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-square w-full object-cover", ...medias[3] }) })
|
|
146
146
|
]
|
|
147
147
|
}
|
|
148
148
|
),
|
|
149
|
-
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorLeftCenterImageContainer : leftCenterImageContainer, children: /* @__PURE__ */ jsx(
|
|
149
|
+
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorLeftCenterImageContainer : leftCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundMedia, { className: "size-full object-cover", ...medias[4] }) }),
|
|
150
150
|
/* @__PURE__ */ jsx(
|
|
151
151
|
motion.div,
|
|
152
152
|
{
|
|
153
153
|
className: "grid grid-flow-col grid-cols-1 gap-4 justify-self-start px-4",
|
|
154
154
|
style: isEditor ? editorLeftRightImage : leftRightImage,
|
|
155
|
-
children: /* @__PURE__ */ jsx("div", { className: "relative top-[5%] w-[40vw] md:w-[25vw] lg:w-[22vw]", children: /* @__PURE__ */ jsx(
|
|
155
|
+
children: /* @__PURE__ */ jsx("div", { className: "relative top-[5%] w-[40vw] md:w-[25vw] lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[3/4] w-full object-cover", ...medias[5] }) })
|
|
156
156
|
}
|
|
157
157
|
)
|
|
158
158
|
]
|
|
@@ -177,7 +177,7 @@ const GridExpandHeroDefaults = {
|
|
|
177
177
|
textAlign: "left",
|
|
178
178
|
gridRatio: "25%_50%_25%"
|
|
179
179
|
},
|
|
180
|
-
|
|
180
|
+
medias: [
|
|
181
181
|
{
|
|
182
182
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
183
183
|
alt: "Placeholder image 1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GridExpandHero, GridExpandHeroDefaults } 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
|
styles: {
|
|
14
14
|
type: "object",
|
|
15
15
|
objectFields: {
|
|
@@ -1,11 +1,11 @@
|
|
|
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 HorizontalMarqueeHero = (props) => {
|
|
8
|
-
const { heading, description, buttons = [],
|
|
8
|
+
const { heading, description, buttons = [], medias = [], styles } = {
|
|
9
9
|
...HorizontalMarqueeHeroDefaults,
|
|
10
10
|
...props
|
|
11
11
|
};
|
|
@@ -23,31 +23,31 @@ const HorizontalMarqueeHero = (props) => {
|
|
|
23
23
|
/* @__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)) })
|
|
24
24
|
] }),
|
|
25
25
|
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-4 overflow-hidden bg-background-secondary py-8 md:py-16 lg:h-screen", children: /* @__PURE__ */ jsxs("div", { className: "grid shrink-0 grid-cols-1 gap-y-4", children: [
|
|
26
|
-
/* @__PURE__ */ jsx("div", { className: "ml-[-8.5%] grid w-full animate-marquee-horizontally auto-cols-fr grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children:
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "ml-[-8.5%] grid w-full animate-marquee-horizontally auto-cols-fr grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children: medias.map((item, imageIndex) => /* @__PURE__ */ jsx(
|
|
27
27
|
"div",
|
|
28
28
|
{
|
|
29
29
|
className: "relative w-[60vw] pt-[75%] sm:w-[18rem] md:w-[26rem]",
|
|
30
30
|
children: /* @__PURE__ */ jsx(
|
|
31
|
-
|
|
31
|
+
CompoundMedia,
|
|
32
32
|
{
|
|
33
33
|
className: "absolute inset-0 size-full object-cover",
|
|
34
|
-
src:
|
|
35
|
-
alt:
|
|
34
|
+
src: item.src,
|
|
35
|
+
alt: item.alt
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
},
|
|
39
39
|
imageIndex
|
|
40
40
|
)) }, index)) }),
|
|
41
|
-
/* @__PURE__ */ jsx("div", { className: "grid w-full animate-marquee-horizontally grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children:
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full animate-marquee-horizontally grid-cols-2 gap-4 self-center", children: [...new Array(2)].map((_e, index) => /* @__PURE__ */ jsx("div", { className: "grid w-full grid-flow-col gap-4", children: medias.map((item, imageIndex) => /* @__PURE__ */ jsx(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
className: "relative w-[60vw] pt-[75%] sm:w-[18rem] md:w-[26rem]",
|
|
45
45
|
children: /* @__PURE__ */ jsx(
|
|
46
|
-
|
|
46
|
+
CompoundMedia,
|
|
47
47
|
{
|
|
48
48
|
className: "absolute inset-0 size-full object-cover",
|
|
49
|
-
src:
|
|
50
|
-
alt:
|
|
49
|
+
src: item.src,
|
|
50
|
+
alt: item.alt
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
},
|
|
@@ -62,7 +62,7 @@ const HorizontalMarqueeHeroDefaults = {
|
|
|
62
62
|
heading: "Medium length hero heading goes here",
|
|
63
63
|
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.",
|
|
64
64
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
65
|
-
|
|
65
|
+
medias: [
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
68
|
alt: "Placeholder image 1"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { HorizontalMarqueeHero, HorizontalMarqueeHeroDefaults } 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: HorizontalMarqueeHeroDefaults,
|
|
13
13
|
render: HorizontalMarqueeHero
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseMedia, HeroComponentProps } from "../props";
|
|
2
2
|
type MouseTrackHeroExtra = {
|
|
3
|
-
group1Images:
|
|
4
|
-
group2Images:
|
|
3
|
+
group1Images: BaseMedia[];
|
|
4
|
+
group2Images: BaseMedia[];
|
|
5
5
|
};
|
|
6
6
|
export type MouseTrackHeroProps = HeroComponentProps<MouseTrackHeroExtra>;
|
|
7
7
|
export declare const MouseTrackHero: (props: MouseTrackHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { motion, useMotionValue, useSpring, useTransform } from "motion/react";
|
|
@@ -86,16 +86,16 @@ const MouseTrackHero = (props) => {
|
|
|
86
86
|
["2%", "-2%"],
|
|
87
87
|
["2%", "-2%"]
|
|
88
88
|
);
|
|
89
|
-
const renderImages = (
|
|
89
|
+
const renderImages = (medias, positions, transformStyles) => /* @__PURE__ */ jsx(
|
|
90
90
|
Animate,
|
|
91
91
|
{
|
|
92
92
|
className: "absolute inset-0 flex origin-bottom items-center justify-center",
|
|
93
93
|
style: transformStyles,
|
|
94
|
-
children:
|
|
95
|
-
|
|
94
|
+
children: medias.map((item, index) => /* @__PURE__ */ jsx("div", { className: `absolute w-full ${positions[index]}`, children: /* @__PURE__ */ jsx(
|
|
95
|
+
CompoundMedia,
|
|
96
96
|
{
|
|
97
|
-
src:
|
|
98
|
-
alt:
|
|
97
|
+
src: item.src,
|
|
98
|
+
alt: item.alt,
|
|
99
99
|
className: "size-full"
|
|
100
100
|
}
|
|
101
101
|
) }, index))
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { MouseTrackHero, MouseTrackHeroDefaults } 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
|
-
group1Images:
|
|
11
|
-
group2Images:
|
|
10
|
+
group1Images: mediasField,
|
|
11
|
+
group2Images: mediasField
|
|
12
12
|
},
|
|
13
13
|
defaultProps: MouseTrackHeroDefaults,
|
|
14
14
|
render: MouseTrackHero
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MultiImageGridHero, MultiImageGridHeroDefaults } from "./multi-image-grid-hero.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
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
|
styles: {
|
|
14
14
|
type: "object",
|
|
15
15
|
label: "Styles",
|
package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
4
4
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
const MultiImageGridHero = (props) => {
|
|
7
|
-
const { heading, description, buttons,
|
|
7
|
+
const { heading, description, buttons, medias, styles: rawStyles } = {
|
|
8
8
|
...MultiImageGridHeroDefaults,
|
|
9
9
|
...props
|
|
10
10
|
};
|
|
@@ -14,16 +14,16 @@ const MultiImageGridHero = (props) => {
|
|
|
14
14
|
const renderButtons = () => /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) });
|
|
15
15
|
const renderImages = () => {
|
|
16
16
|
const gridStyle = { gridTemplateColumns: (imageGridRatio ?? "").replace(/_/g, " ") };
|
|
17
|
-
return /* @__PURE__ */ jsx("div", { className: "grid items-start gap-6 sm:gap-8 md:gap-16", style: gridStyle, children:
|
|
17
|
+
return /* @__PURE__ */ jsx("div", { className: "grid items-start gap-6 sm:gap-8 md:gap-16", style: gridStyle, children: medias.map((item, index) => /* @__PURE__ */ jsx(
|
|
18
18
|
"div",
|
|
19
19
|
{
|
|
20
20
|
className: `w-full ${imageMarginTops[index % imageMarginTops.length] || ""}`,
|
|
21
21
|
children: /* @__PURE__ */ jsx(
|
|
22
|
-
|
|
22
|
+
CompoundMedia,
|
|
23
23
|
{
|
|
24
24
|
className: `${imageAspectRatios[index % imageAspectRatios.length]} size-full object-cover`,
|
|
25
|
-
src:
|
|
26
|
-
alt:
|
|
25
|
+
src: item.src,
|
|
26
|
+
alt: item.alt
|
|
27
27
|
}
|
|
28
28
|
)
|
|
29
29
|
},
|
|
@@ -65,7 +65,7 @@ const MultiImageGridHeroDefaults = {
|
|
|
65
65
|
heading: "Medium length hero heading goes here",
|
|
66
66
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
67
67
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
68
|
-
|
|
68
|
+
medias: [
|
|
69
69
|
{
|
|
70
70
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
71
71
|
alt: "Placeholder image 1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OverlappingImageHero, OverlappingImageHeroDefaults } from "./overlapping-image-hero.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { heroStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -9,9 +9,9 @@ const conf = {
|
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
|
-
firstImage:
|
|
13
|
-
secondImage:
|
|
14
|
-
thirdImage:
|
|
12
|
+
firstImage: mediaField,
|
|
13
|
+
secondImage: mediaField,
|
|
14
|
+
thirdImage: mediaField,
|
|
15
15
|
styles: {
|
|
16
16
|
type: "object",
|
|
17
17
|
label: "Styles",
|
package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BaseMedia, HeroComponentProps } from "../props";
|
|
2
2
|
type OverlappingImageHeroExtra = {
|
|
3
|
-
firstImage:
|
|
4
|
-
secondImage:
|
|
5
|
-
thirdImage:
|
|
3
|
+
firstImage: BaseMedia;
|
|
4
|
+
secondImage: BaseMedia;
|
|
5
|
+
thirdImage: BaseMedia;
|
|
6
6
|
};
|
|
7
7
|
export type OverlappingImageHeroProps = HeroComponentProps<OverlappingImageHeroExtra>;
|
|
8
8
|
export declare const OverlappingImageHero: (props: OverlappingImageHeroProps) => import("react/jsx-runtime").JSX.Element;
|