dune-react 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +4 -4
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +7 -7
- 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 +18 -18
- 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 +4 -4
- 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/pricing-card-grid/component.js +4 -4
- package/dist/components/puck-block/pricing-sections/props.d.ts +3 -3
- 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-pricing-grid/component.js +4 -4
- 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 +4 -5
- 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 +6 -6
- 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 +7 -7
- 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 +5 -5
- package/dist/components/puck-block/testimonial-sections/props.d.ts +6 -7
- 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 +9 -9
- 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 +8 -8
- 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 +2 -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
|
@@ -122,16 +122,45 @@ declare const conf: {
|
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
-
|
|
126
|
-
type:
|
|
127
|
-
label:
|
|
128
|
-
getItemSummary: (item: {
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
arrayFields: {
|
|
132
|
-
|
|
133
|
-
type:
|
|
134
|
-
label:
|
|
125
|
+
socialLinks: {
|
|
126
|
+
readonly type: "array";
|
|
127
|
+
readonly label: "Social Links";
|
|
128
|
+
readonly getItemSummary: (item: {
|
|
129
|
+
platform?: string;
|
|
130
|
+
}, i?: number) => string;
|
|
131
|
+
readonly arrayFields: {
|
|
132
|
+
readonly platform: {
|
|
133
|
+
readonly type: "select";
|
|
134
|
+
readonly label: "Platform";
|
|
135
|
+
readonly options: readonly [{
|
|
136
|
+
readonly label: "Twitter / X";
|
|
137
|
+
readonly value: "twitter";
|
|
138
|
+
}, {
|
|
139
|
+
readonly label: "Facebook";
|
|
140
|
+
readonly value: "facebook";
|
|
141
|
+
}, {
|
|
142
|
+
readonly label: "Instagram";
|
|
143
|
+
readonly value: "instagram";
|
|
144
|
+
}, {
|
|
145
|
+
readonly label: "LinkedIn";
|
|
146
|
+
readonly value: "linkedin";
|
|
147
|
+
}, {
|
|
148
|
+
readonly label: "YouTube";
|
|
149
|
+
readonly value: "youtube";
|
|
150
|
+
}, {
|
|
151
|
+
readonly label: "GitHub";
|
|
152
|
+
readonly value: "github";
|
|
153
|
+
}, {
|
|
154
|
+
readonly label: "TikTok";
|
|
155
|
+
readonly value: "tiktok";
|
|
156
|
+
}, {
|
|
157
|
+
readonly label: "Discord";
|
|
158
|
+
readonly value: "discord";
|
|
159
|
+
}];
|
|
160
|
+
};
|
|
161
|
+
readonly url: {
|
|
162
|
+
readonly type: "text";
|
|
163
|
+
readonly label: "URL";
|
|
135
164
|
};
|
|
136
165
|
};
|
|
137
166
|
};
|
|
@@ -186,6 +215,17 @@ declare const conf: {
|
|
|
186
215
|
readonly value: "cta";
|
|
187
216
|
}];
|
|
188
217
|
};
|
|
218
|
+
showSocialLinks: {
|
|
219
|
+
readonly type: "radio";
|
|
220
|
+
readonly label: "Display Social Links";
|
|
221
|
+
readonly options: readonly [{
|
|
222
|
+
readonly label: "Yes";
|
|
223
|
+
readonly value: "true";
|
|
224
|
+
}, {
|
|
225
|
+
readonly label: "No";
|
|
226
|
+
readonly value: "false";
|
|
227
|
+
}];
|
|
228
|
+
};
|
|
189
229
|
};
|
|
190
230
|
};
|
|
191
231
|
};
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* FooterSectionStyles 为 footer 特有的样式字段
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
import type { BaseButton } from "@/components/puck-core/core/props/interactive";
|
|
9
|
-
export type {
|
|
7
|
+
import type { BaseMedia } from "@/components/puck-core/core/props/media";
|
|
8
|
+
import type { BaseButton, BaseSocialLink } from "@/components/puck-core/core/props/interactive";
|
|
9
|
+
export type { BaseMedia, BaseButton, BaseSocialLink };
|
|
10
10
|
export interface FooterSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -14,6 +14,7 @@ export interface FooterSectionStyles {
|
|
|
14
14
|
bordered?: boolean;
|
|
15
15
|
hasCompanyImage?: boolean;
|
|
16
16
|
topContentType?: "newsletter" | "cta";
|
|
17
|
+
showSocialLinks?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface FooterLink {
|
|
19
20
|
title: string;
|
|
@@ -24,10 +25,6 @@ export interface ColumnLinks {
|
|
|
24
25
|
title?: string;
|
|
25
26
|
links: FooterLink[];
|
|
26
27
|
}
|
|
27
|
-
export interface SocialMediaLink {
|
|
28
|
-
url: string;
|
|
29
|
-
icon: React.ReactNode;
|
|
30
|
-
}
|
|
31
28
|
export interface FooterAddress {
|
|
32
29
|
label: string;
|
|
33
30
|
value: string;
|
|
@@ -38,7 +35,7 @@ export interface FooterContact {
|
|
|
38
35
|
email: string;
|
|
39
36
|
}
|
|
40
37
|
export interface FooterSectionBaseProps {
|
|
41
|
-
logo:
|
|
38
|
+
logo: BaseMedia & {
|
|
42
39
|
url?: string;
|
|
43
40
|
};
|
|
44
41
|
heading: string;
|
|
@@ -52,10 +49,9 @@ export interface FooterSectionBaseProps {
|
|
|
52
49
|
columnLinks: ColumnLinks[];
|
|
53
50
|
footerText: string;
|
|
54
51
|
footerLinks: FooterLink[];
|
|
55
|
-
|
|
52
|
+
socialLinks: BaseSocialLink[];
|
|
56
53
|
address: FooterAddress;
|
|
57
54
|
contact: FooterContact;
|
|
58
|
-
companyImages: BaseImage[];
|
|
59
55
|
styles: FooterSectionStyles;
|
|
60
56
|
__metadata?: {
|
|
61
57
|
type: "footer";
|
|
@@ -95,6 +91,17 @@ export declare const footerStyleFields: {
|
|
|
95
91
|
readonly value: "cta";
|
|
96
92
|
}];
|
|
97
93
|
};
|
|
94
|
+
readonly showSocialLinks: {
|
|
95
|
+
readonly type: "radio";
|
|
96
|
+
readonly label: "Display Social Links";
|
|
97
|
+
readonly options: readonly [{
|
|
98
|
+
readonly label: "Yes";
|
|
99
|
+
readonly value: "true";
|
|
100
|
+
}, {
|
|
101
|
+
readonly label: "No";
|
|
102
|
+
readonly value: "false";
|
|
103
|
+
}];
|
|
104
|
+
};
|
|
98
105
|
};
|
|
99
106
|
/** 将 FooterSectionBaseProps 与组件特有字段合并,生成最终 Props */
|
|
100
107
|
export type FooterComponentProps<T extends object = object> = React.ComponentPropsWithoutRef<"section"> & Partial<FooterSectionBaseProps> & Partial<T>;
|
|
@@ -14,6 +14,14 @@ const footerStyleFields = {
|
|
|
14
14
|
{ label: "Yes", value: "true" },
|
|
15
15
|
{ label: "No", value: "false" }
|
|
16
16
|
]
|
|
17
|
+
},
|
|
18
|
+
showSocialLinks: {
|
|
19
|
+
type: "radio",
|
|
20
|
+
label: "Display Social Links",
|
|
21
|
+
options: [
|
|
22
|
+
{ label: "Yes", value: "true" },
|
|
23
|
+
{ label: "No", value: "false" }
|
|
24
|
+
]
|
|
17
25
|
}
|
|
18
26
|
};
|
|
19
27
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
4
4
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
const AsymmetricGrid = (props) => {
|
|
6
|
-
const { heading, description,
|
|
6
|
+
const { heading, description, medias, styles } = {
|
|
7
7
|
...AsymmetricGridDefaults,
|
|
8
8
|
...props
|
|
9
9
|
};
|
|
@@ -21,7 +21,7 @@ const AsymmetricGrid = (props) => {
|
|
|
21
21
|
"md:grid-cols-2": !is4Small,
|
|
22
22
|
"md:grid-cols-2 lg:grid-cols-3": is4Small
|
|
23
23
|
}),
|
|
24
|
-
children:
|
|
24
|
+
children: medias.map((media, index) => /* @__PURE__ */ jsx(
|
|
25
25
|
"a",
|
|
26
26
|
{
|
|
27
27
|
href: "#",
|
|
@@ -37,10 +37,10 @@ const AsymmetricGrid = (props) => {
|
|
|
37
37
|
"pt-[56.25%]": index !== 0
|
|
38
38
|
}),
|
|
39
39
|
children: /* @__PURE__ */ jsx(
|
|
40
|
-
|
|
40
|
+
CompoundMedia,
|
|
41
41
|
{
|
|
42
|
-
src:
|
|
43
|
-
alt:
|
|
42
|
+
src: media.src,
|
|
43
|
+
alt: media.alt,
|
|
44
44
|
className: "absolute inset-0 size-full object-cover"
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -59,7 +59,7 @@ const AsymmetricGridDefaults = {
|
|
|
59
59
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
60
60
|
button: { label: "View all" },
|
|
61
61
|
buttons: [],
|
|
62
|
-
|
|
62
|
+
medias: [
|
|
63
63
|
{ src: "https://picsum.photos/seed/asym-1/800/800", alt: "Gallery image 1" },
|
|
64
64
|
{ src: "https://picsum.photos/seed/asym-2/800/450", alt: "Gallery image 2" },
|
|
65
65
|
{ src: "https://picsum.photos/seed/asym-3/800/450", alt: "Gallery image 3" }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { AsymmetricGrid, AsymmetricGridDefaults } from "./asymmetric-grid.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { galleryStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
7
7
|
fields: {
|
|
8
8
|
heading: headingField,
|
|
9
9
|
description: descriptionField,
|
|
10
|
-
|
|
10
|
+
medias: mediasField,
|
|
11
11
|
styles: {
|
|
12
12
|
type: "object",
|
|
13
13
|
label: "Styles",
|
package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { useScroll, useTransform, motion } from "motion/react";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
@@ -23,10 +23,10 @@ const FullscreenPortfolio = (props) => {
|
|
|
23
23
|
children: [
|
|
24
24
|
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0", children: [
|
|
25
25
|
/* @__PURE__ */ jsx(
|
|
26
|
-
|
|
26
|
+
CompoundMedia,
|
|
27
27
|
{
|
|
28
|
-
src: project.
|
|
29
|
-
alt: project.
|
|
28
|
+
src: project.media.src,
|
|
29
|
+
alt: project.media.alt,
|
|
30
30
|
className: "size-full object-cover"
|
|
31
31
|
}
|
|
32
32
|
),
|
|
@@ -79,10 +79,10 @@ const ScrollFadeVariant = ({
|
|
|
79
79
|
children: [
|
|
80
80
|
/* @__PURE__ */ jsxs("div", { className: "absolute inset-0", children: [
|
|
81
81
|
/* @__PURE__ */ jsx(
|
|
82
|
-
|
|
82
|
+
CompoundMedia,
|
|
83
83
|
{
|
|
84
|
-
src: project.
|
|
85
|
-
alt: project.
|
|
84
|
+
src: project.media.src,
|
|
85
|
+
alt: project.media.alt,
|
|
86
86
|
className: "size-full object-cover"
|
|
87
87
|
}
|
|
88
88
|
),
|
|
@@ -110,7 +110,7 @@ const ScrollFadeVariant = ({
|
|
|
110
110
|
const defaultProject = {
|
|
111
111
|
title: "Project name here",
|
|
112
112
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
113
|
-
|
|
113
|
+
media: {
|
|
114
114
|
src: "https://picsum.photos/seed/fullscreen-port/1920/1080",
|
|
115
115
|
alt: "Placeholder image"
|
|
116
116
|
},
|
|
@@ -123,11 +123,11 @@ const FullscreenPortfolioDefaults = {
|
|
|
123
123
|
description: "",
|
|
124
124
|
button: { label: "View all" },
|
|
125
125
|
buttons: [],
|
|
126
|
-
|
|
126
|
+
medias: [],
|
|
127
127
|
projects: [
|
|
128
|
-
{ ...defaultProject,
|
|
129
|
-
{ ...defaultProject,
|
|
130
|
-
{ ...defaultProject,
|
|
128
|
+
{ ...defaultProject, media: { src: "https://picsum.photos/seed/fs-port-1/1920/1080", alt: "Project 1" } },
|
|
129
|
+
{ ...defaultProject, media: { src: "https://picsum.photos/seed/fs-port-2/1920/1080", alt: "Project 2" } },
|
|
130
|
+
{ ...defaultProject, media: { src: "https://picsum.photos/seed/fs-port-3/1920/1080", alt: "Project 3" } }
|
|
131
131
|
],
|
|
132
132
|
hoverLinks: [],
|
|
133
133
|
styles: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FullscreenPortfolio, FullscreenPortfolioDefaults } from "./fullscreen-portfolio.js";
|
|
2
2
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
const conf = {
|
|
6
6
|
fields: {
|
|
@@ -11,7 +11,7 @@ const conf = {
|
|
|
11
11
|
arrayFields: {
|
|
12
12
|
title: { type: "text" },
|
|
13
13
|
description: { type: "textarea" },
|
|
14
|
-
|
|
14
|
+
media: mediaField,
|
|
15
15
|
button: buttonField
|
|
16
16
|
}
|
|
17
17
|
},
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "../../../shadcn/carousel.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
7
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
8
|
const ImageCarousel = (props) => {
|
|
9
|
-
const { heading, description,
|
|
9
|
+
const { heading, description, medias, styles } = {
|
|
10
10
|
...ImageCarouselDefaults,
|
|
11
11
|
...props
|
|
12
12
|
};
|
|
@@ -69,7 +69,7 @@ const ImageCarousel = (props) => {
|
|
|
69
69
|
opts: { loop: true, align: "start" },
|
|
70
70
|
className: cn({ "overflow-hidden": slideOverflow === "hidden" }),
|
|
71
71
|
children: [
|
|
72
|
-
/* @__PURE__ */ jsx(CarouselContent, { className: "ml-0", children:
|
|
72
|
+
/* @__PURE__ */ jsx(CarouselContent, { className: "ml-0", children: medias.map((media, index) => /* @__PURE__ */ jsx(
|
|
73
73
|
CarouselItem,
|
|
74
74
|
{
|
|
75
75
|
className: cn(
|
|
@@ -88,10 +88,10 @@ const ImageCarousel = (props) => {
|
|
|
88
88
|
"opacity-40": current !== index + 1
|
|
89
89
|
}),
|
|
90
90
|
children: /* @__PURE__ */ jsx(
|
|
91
|
-
|
|
91
|
+
CompoundMedia,
|
|
92
92
|
{
|
|
93
|
-
src:
|
|
94
|
-
alt:
|
|
93
|
+
src: media.src,
|
|
94
|
+
alt: media.alt,
|
|
95
95
|
className: cn("size-full object-cover", {
|
|
96
96
|
"absolute inset-0": isFullscreen
|
|
97
97
|
})
|
|
@@ -99,10 +99,10 @@ const ImageCarousel = (props) => {
|
|
|
99
99
|
)
|
|
100
100
|
}
|
|
101
101
|
) : /* @__PURE__ */ jsx(
|
|
102
|
-
|
|
102
|
+
CompoundMedia,
|
|
103
103
|
{
|
|
104
|
-
src:
|
|
105
|
-
alt:
|
|
104
|
+
src: media.src,
|
|
105
|
+
alt: media.alt,
|
|
106
106
|
className: cn("size-full object-cover", {
|
|
107
107
|
"absolute inset-0": isFullscreen
|
|
108
108
|
})
|
|
@@ -120,7 +120,7 @@ const ImageCarousel = (props) => {
|
|
|
120
120
|
/* @__PURE__ */ jsx(CarouselPrevious, { className: "static left-0 top-0 size-12 -translate-y-0" }),
|
|
121
121
|
/* @__PURE__ */ jsx(CarouselNext, { className: "static left-0 top-0 size-12 -translate-y-0" })
|
|
122
122
|
] }),
|
|
123
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center", children:
|
|
123
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: medias.map((_, index) => /* @__PURE__ */ jsx(
|
|
124
124
|
"button",
|
|
125
125
|
{
|
|
126
126
|
onClick: () => api == null ? void 0 : api.scrollTo(index),
|
|
@@ -131,7 +131,7 @@ const ImageCarousel = (props) => {
|
|
|
131
131
|
},
|
|
132
132
|
index
|
|
133
133
|
)) })
|
|
134
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "absolute bottom-8 left-1/2 -translate-x-1/2 transform", children:
|
|
134
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "absolute bottom-8 left-1/2 -translate-x-1/2 transform", children: medias.map((_, index) => /* @__PURE__ */ jsx(
|
|
135
135
|
"button",
|
|
136
136
|
{
|
|
137
137
|
onClick: () => api == null ? void 0 : api.scrollTo(index),
|
|
@@ -155,7 +155,7 @@ const ImageCarouselDefaults = {
|
|
|
155
155
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
156
156
|
button: { label: "View all" },
|
|
157
157
|
buttons: [],
|
|
158
|
-
|
|
158
|
+
medias: [
|
|
159
159
|
{ src: "https://picsum.photos/seed/carousel-1/1920/1080", alt: "Gallery image 1" },
|
|
160
160
|
{ src: "https://picsum.photos/seed/carousel-2/1920/1080", alt: "Gallery image 2" },
|
|
161
161
|
{ src: "https://picsum.photos/seed/carousel-3/1920/1080", alt: "Gallery image 3" }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ImageCarousel, ImageCarouselDefaults } from "./image-carousel.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { galleryStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
7
7
|
fields: {
|
|
8
8
|
heading: headingField,
|
|
9
9
|
description: descriptionField,
|
|
10
|
-
|
|
10
|
+
medias: mediasField,
|
|
11
11
|
styles: {
|
|
12
12
|
type: "object",
|
|
13
13
|
label: "Styles",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InteractivePortfolio, InteractivePortfolioDefaults } from "./interactive-portfolio.js";
|
|
2
|
-
import {
|
|
2
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { galleryStyleFields } from "../props.js";
|
|
4
4
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
const conf = {
|
|
@@ -13,7 +13,7 @@ const conf = {
|
|
|
13
13
|
url: { type: "text" },
|
|
14
14
|
heading: { type: "text" },
|
|
15
15
|
tag: { type: "text" },
|
|
16
|
-
|
|
16
|
+
media: mediaField
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
styles: {
|
package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js
CHANGED
|
@@ -4,7 +4,7 @@ import { useRef, useState } from "react";
|
|
|
4
4
|
import { motion } from "motion/react";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
-
import {
|
|
7
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
8
8
|
const getDirection = (ev, obj) => {
|
|
9
9
|
const { width: w, height: h, left, top } = obj.getBoundingClientRect();
|
|
10
10
|
const centerX = left + w / 2;
|
|
@@ -64,10 +64,10 @@ const InteractivePortfolio = (props) => {
|
|
|
64
64
|
/* @__PURE__ */ jsx("p", { className: "mb-6 font-semibold md:mb-8", children: tagline }),
|
|
65
65
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-12 lg:grid-cols-2 lg:gap-16", children: [
|
|
66
66
|
/* @__PURE__ */ jsx("div", { className: "lg:sticky lg:top-20 lg:self-start", children: /* @__PURE__ */ jsx("div", { className: "aspect-square w-full overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
67
|
-
|
|
67
|
+
CompoundMedia,
|
|
68
68
|
{
|
|
69
|
-
src: hoveredIndex !== null ? hoverLinks[hoveredIndex].
|
|
70
|
-
alt: hoveredIndex !== null ? hoverLinks[hoveredIndex].
|
|
69
|
+
src: hoveredIndex !== null ? hoverLinks[hoveredIndex].media.src : (_a = hoverLinks[0]) == null ? void 0 : _a.media.src,
|
|
70
|
+
alt: hoveredIndex !== null ? hoverLinks[hoveredIndex].media.alt : (_b = hoverLinks[0]) == null ? void 0 : _b.media.alt,
|
|
71
71
|
className: "size-full object-cover transition-all duration-500"
|
|
72
72
|
}
|
|
73
73
|
) }) }),
|
|
@@ -160,8 +160,8 @@ const InteractivePortfolio = (props) => {
|
|
|
160
160
|
{
|
|
161
161
|
className: "size-full max-w-md",
|
|
162
162
|
variants: imageVariants,
|
|
163
|
-
src: link.
|
|
164
|
-
alt: link.
|
|
163
|
+
src: link.media.src,
|
|
164
|
+
alt: link.media.alt
|
|
165
165
|
}
|
|
166
166
|
)
|
|
167
167
|
}
|
|
@@ -182,7 +182,7 @@ const defaultHoverLink = {
|
|
|
182
182
|
url: "#",
|
|
183
183
|
heading: "Project name",
|
|
184
184
|
tag: "Tag",
|
|
185
|
-
|
|
185
|
+
media: {
|
|
186
186
|
src: "https://picsum.photos/seed/interactive-port/800/800",
|
|
187
187
|
alt: "Placeholder image"
|
|
188
188
|
}
|
|
@@ -193,47 +193,47 @@ const InteractivePortfolioDefaults = {
|
|
|
193
193
|
description: "",
|
|
194
194
|
button: { label: "View all" },
|
|
195
195
|
buttons: [],
|
|
196
|
-
|
|
196
|
+
medias: [],
|
|
197
197
|
projects: [],
|
|
198
198
|
hoverLinks: [
|
|
199
199
|
{
|
|
200
200
|
...defaultHoverLink,
|
|
201
|
-
|
|
201
|
+
media: {
|
|
202
202
|
src: "https://picsum.photos/seed/ip-1/800/800",
|
|
203
203
|
alt: "Project 1"
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
...defaultHoverLink,
|
|
208
|
-
|
|
208
|
+
media: {
|
|
209
209
|
src: "https://picsum.photos/seed/ip-2/800/800",
|
|
210
210
|
alt: "Project 2"
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
...defaultHoverLink,
|
|
215
|
-
|
|
215
|
+
media: {
|
|
216
216
|
src: "https://picsum.photos/seed/ip-3/800/800",
|
|
217
217
|
alt: "Project 3"
|
|
218
218
|
}
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
...defaultHoverLink,
|
|
222
|
-
|
|
222
|
+
media: {
|
|
223
223
|
src: "https://picsum.photos/seed/ip-4/800/800",
|
|
224
224
|
alt: "Project 4"
|
|
225
225
|
}
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
...defaultHoverLink,
|
|
229
|
-
|
|
229
|
+
media: {
|
|
230
230
|
src: "https://picsum.photos/seed/ip-5/800/800",
|
|
231
231
|
alt: "Project 5"
|
|
232
232
|
}
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
...defaultHoverLink,
|
|
236
|
-
|
|
236
|
+
media: {
|
|
237
237
|
src: "https://picsum.photos/seed/ip-6/800/800",
|
|
238
238
|
alt: "Project 6"
|
|
239
239
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { MasonryGrid, MasonryGridDefaults } from "./masonry-grid.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { galleryStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
7
7
|
fields: {
|
|
8
8
|
heading: headingField,
|
|
9
9
|
description: descriptionField,
|
|
10
|
-
|
|
10
|
+
medias: mediasField,
|
|
11
11
|
styles: {
|
|
12
12
|
type: "object",
|
|
13
13
|
label: "Styles",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
const MasonryGrid = (props) => {
|
|
6
|
-
const { heading, description,
|
|
6
|
+
const { heading, description, medias, styles } = {
|
|
7
7
|
...MasonryGridDefaults,
|
|
8
8
|
...props
|
|
9
9
|
};
|
|
@@ -32,7 +32,7 @@ const MasonryGrid = (props) => {
|
|
|
32
32
|
"md:columns-2": cols === 2,
|
|
33
33
|
"md:columns-2 lg:columns-3": cols === 3
|
|
34
34
|
}),
|
|
35
|
-
children:
|
|
35
|
+
children: medias.map((media, index) => /* @__PURE__ */ jsx("a", { href: "#", className: "mb-8 inline-block w-full", children: /* @__PURE__ */ jsx(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
className: cn("relative inline-block w-full", {
|
|
@@ -40,10 +40,10 @@ const MasonryGrid = (props) => {
|
|
|
40
40
|
"pt-[66.66%]": index % 3 !== 0
|
|
41
41
|
}),
|
|
42
42
|
children: /* @__PURE__ */ jsx(
|
|
43
|
-
|
|
43
|
+
CompoundMedia,
|
|
44
44
|
{
|
|
45
|
-
src:
|
|
46
|
-
alt:
|
|
45
|
+
src: media.src,
|
|
46
|
+
alt: media.alt,
|
|
47
47
|
className: "absolute inset-0 size-full object-cover"
|
|
48
48
|
}
|
|
49
49
|
)
|
|
@@ -61,7 +61,7 @@ const MasonryGridDefaults = {
|
|
|
61
61
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
62
62
|
button: { label: "View all" },
|
|
63
63
|
buttons: [],
|
|
64
|
-
|
|
64
|
+
medias: [
|
|
65
65
|
{
|
|
66
66
|
src: "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=800&h=800&fit=crop",
|
|
67
67
|
alt: "Gallery image 1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PortfolioCards, PortfolioCardsDefaults } from "./portfolio-cards.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { galleryStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -17,7 +17,7 @@ const conf = {
|
|
|
17
17
|
arrayFields: {
|
|
18
18
|
title: { type: "text" },
|
|
19
19
|
description: { type: "textarea" },
|
|
20
|
-
|
|
20
|
+
media: mediaField,
|
|
21
21
|
url: { type: "text" },
|
|
22
22
|
button: buttonField
|
|
23
23
|
}
|