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
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.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
|
const PortfolioCards = (props) => {
|
|
8
8
|
const { tagline, heading, description, projects, button, styles } = {
|
|
@@ -43,14 +43,14 @@ const PortfolioCards = (props) => {
|
|
|
43
43
|
const isZigzag = cardLayout === "zigzag";
|
|
44
44
|
const isMasonry = cardLayout === "masonry";
|
|
45
45
|
const imageElement = /* @__PURE__ */ jsx("a", { href: project.url, className: cn({ block: true }), children: /* @__PURE__ */ jsx(
|
|
46
|
-
|
|
46
|
+
CompoundMedia,
|
|
47
47
|
{
|
|
48
|
-
src: project.
|
|
48
|
+
src: project.media.src,
|
|
49
49
|
className: cn("w-full object-cover", {
|
|
50
50
|
"aspect-video": !isMasonry,
|
|
51
51
|
"aspect-auto": isMasonry && index % 2 === 0
|
|
52
52
|
}),
|
|
53
|
-
alt: project.
|
|
53
|
+
alt: project.media.alt
|
|
54
54
|
}
|
|
55
55
|
) });
|
|
56
56
|
const textElement = /* @__PURE__ */ jsxs("div", { className: cn({ "p-6": isBordered }), children: [
|
|
@@ -151,7 +151,7 @@ const PortfolioCards = (props) => {
|
|
|
151
151
|
const defaultProject = {
|
|
152
152
|
title: "Project name here",
|
|
153
153
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.",
|
|
154
|
-
|
|
154
|
+
media: {
|
|
155
155
|
src: "https://picsum.photos/seed/portfolio-card/1200/800",
|
|
156
156
|
alt: "Placeholder image"
|
|
157
157
|
},
|
|
@@ -172,7 +172,7 @@ const PortfolioCardsDefaults = {
|
|
|
172
172
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
173
173
|
button: { label: "View all", variant: "secondary" },
|
|
174
174
|
buttons: [],
|
|
175
|
-
|
|
175
|
+
medias: [],
|
|
176
176
|
projects: [defaultProject, defaultProject],
|
|
177
177
|
hoverLinks: [],
|
|
178
178
|
styles: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PortfolioDivider, PortfolioDividerDefaults } from "./portfolio-divider.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
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../../../shadcn/button.js";
|
|
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 PortfolioDivider = (props) => {
|
|
@@ -25,11 +25,11 @@ const PortfolioDivider = (props) => {
|
|
|
25
25
|
className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
|
|
26
26
|
children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
27
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
28
|
-
|
|
28
|
+
CompoundMedia,
|
|
29
29
|
{
|
|
30
|
-
src: project.
|
|
30
|
+
src: project.media.src,
|
|
31
31
|
className: "w-full object-cover",
|
|
32
|
-
alt: project.
|
|
32
|
+
alt: project.media.alt
|
|
33
33
|
}
|
|
34
34
|
) }) }),
|
|
35
35
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -76,11 +76,11 @@ const PortfolioDivider = (props) => {
|
|
|
76
76
|
)
|
|
77
77
|
] }),
|
|
78
78
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
79
|
-
|
|
79
|
+
CompoundMedia,
|
|
80
80
|
{
|
|
81
|
-
src: project.
|
|
81
|
+
src: project.media.src,
|
|
82
82
|
className: "w-full object-cover",
|
|
83
|
-
alt: project.
|
|
83
|
+
alt: project.media.alt
|
|
84
84
|
}
|
|
85
85
|
) }) })
|
|
86
86
|
] })
|
|
@@ -94,7 +94,7 @@ const PortfolioDivider = (props) => {
|
|
|
94
94
|
const defaultProject = {
|
|
95
95
|
title: "Project name here",
|
|
96
96
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.",
|
|
97
|
-
|
|
97
|
+
media: {
|
|
98
98
|
src: "https://picsum.photos/seed/portfolio-div/1200/800",
|
|
99
99
|
alt: "Placeholder image"
|
|
100
100
|
},
|
|
@@ -112,7 +112,7 @@ const PortfolioDividerDefaults = {
|
|
|
112
112
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
113
113
|
button: { label: "View all", variant: "secondary" },
|
|
114
114
|
buttons: [],
|
|
115
|
-
|
|
115
|
+
medias: [],
|
|
116
116
|
projects: [defaultProject, defaultProject, defaultProject],
|
|
117
117
|
hoverLinks: [],
|
|
118
118
|
styles: {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* GallerySectionStyles 为 gallery 特有的样式字段
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { BaseMedia } from "@/components/puck-core/core/props/media";
|
|
8
8
|
import type { BaseButton } from "@/components/puck-core/core/props/interactive";
|
|
9
|
-
export type {
|
|
9
|
+
export type { BaseMedia, BaseButton };
|
|
10
10
|
export interface GallerySectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -34,26 +34,26 @@ export interface GallerySectionBaseProps {
|
|
|
34
34
|
description: string;
|
|
35
35
|
button: BaseButton;
|
|
36
36
|
buttons: BaseButton[];
|
|
37
|
-
|
|
37
|
+
medias: BaseMedia[];
|
|
38
38
|
projects: {
|
|
39
39
|
title: string;
|
|
40
40
|
description: string;
|
|
41
|
-
|
|
41
|
+
media: BaseMedia;
|
|
42
42
|
url: string;
|
|
43
43
|
button: BaseButton;
|
|
44
44
|
tags?: {
|
|
45
45
|
label: string;
|
|
46
46
|
url: string;
|
|
47
47
|
}[];
|
|
48
|
-
imageCenter?:
|
|
49
|
-
imageLeft?:
|
|
50
|
-
imageRight?:
|
|
48
|
+
imageCenter?: BaseMedia;
|
|
49
|
+
imageLeft?: BaseMedia;
|
|
50
|
+
imageRight?: BaseMedia;
|
|
51
51
|
}[];
|
|
52
52
|
hoverLinks: {
|
|
53
53
|
url: string;
|
|
54
54
|
heading: string;
|
|
55
55
|
tag: string;
|
|
56
|
-
|
|
56
|
+
media: BaseMedia;
|
|
57
57
|
}[];
|
|
58
58
|
styles: GallerySectionStyles;
|
|
59
59
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ScrollParallax, ScrollParallaxDefaults } from "./scroll-parallax.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
|
const conf = {
|
|
5
5
|
fields: {
|
|
6
6
|
heading: headingField,
|
|
7
7
|
description: descriptionField,
|
|
8
|
-
|
|
8
|
+
medias: mediasField
|
|
9
9
|
},
|
|
10
10
|
defaultProps: ScrollParallaxDefaults,
|
|
11
11
|
render: ScrollParallax
|
|
@@ -6,9 +6,9 @@ import { cn } from "../../../../utils/css-utils.js";
|
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
8
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
9
|
-
import {
|
|
9
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
10
10
|
const ScrollParallax = (props) => {
|
|
11
|
-
const { heading, description,
|
|
11
|
+
const { heading, description, medias, styles } = {
|
|
12
12
|
...ScrollParallaxDefaults,
|
|
13
13
|
...props
|
|
14
14
|
};
|
|
@@ -38,12 +38,12 @@ const ScrollParallax = (props) => {
|
|
|
38
38
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
39
39
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
40
40
|
] }) }),
|
|
41
|
-
/* @__PURE__ */ jsx("div", { className: "px-[5%] py-12", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3", children:
|
|
42
|
-
|
|
41
|
+
/* @__PURE__ */ jsx("div", { className: "px-[5%] py-12", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3", children: medias.map((media, index) => /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
42
|
+
CompoundMedia,
|
|
43
43
|
{
|
|
44
44
|
className: "aspect-video w-full object-cover",
|
|
45
|
-
src:
|
|
46
|
-
alt:
|
|
45
|
+
src: media.src,
|
|
46
|
+
alt: media.alt
|
|
47
47
|
}
|
|
48
48
|
) }, index)) }) })
|
|
49
49
|
]
|
|
@@ -67,12 +67,12 @@ const ScrollParallax = (props) => {
|
|
|
67
67
|
{
|
|
68
68
|
style: { x },
|
|
69
69
|
className: "flex w-[150vh] items-center gap-x-6 sm:w-[200vh] md:gap-x-8 lg:w-[400vh]",
|
|
70
|
-
children:
|
|
71
|
-
|
|
70
|
+
children: medias.map((media, index) => /* @__PURE__ */ jsx("a", { className: "inline-block max-w-full", children: /* @__PURE__ */ jsx("div", { className: "relative size-full max-w-full overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
71
|
+
CompoundMedia,
|
|
72
72
|
{
|
|
73
73
|
className: "h-[80vh] max-h-[25rem] object-cover sm:max-h-[30rem] sm:w-[90vw] md:max-h-[40rem] md:w-[80vw] lg:max-h-none",
|
|
74
|
-
src:
|
|
75
|
-
alt:
|
|
74
|
+
src: media.src,
|
|
75
|
+
alt: media.alt
|
|
76
76
|
}
|
|
77
77
|
) }) }, index))
|
|
78
78
|
}
|
|
@@ -87,7 +87,7 @@ const ScrollParallaxDefaults = {
|
|
|
87
87
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
88
88
|
button: { label: "View all" },
|
|
89
89
|
buttons: [],
|
|
90
|
-
|
|
90
|
+
medias: [
|
|
91
91
|
{
|
|
92
92
|
src: "https://picsum.photos/seed/scroll-1/1200/800",
|
|
93
93
|
alt: "Gallery image 1"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollParallaxPortfolio, ScrollParallaxPortfolioDefaults } from "./scroll-parallax-portfolio.js";
|
|
2
|
-
import {
|
|
2
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
4
4
|
const conf = {
|
|
5
5
|
fields: {
|
|
@@ -10,10 +10,10 @@ const conf = {
|
|
|
10
10
|
arrayFields: {
|
|
11
11
|
title: { type: "text" },
|
|
12
12
|
description: { type: "textarea" },
|
|
13
|
-
|
|
14
|
-
imageCenter:
|
|
15
|
-
imageLeft:
|
|
16
|
-
imageRight:
|
|
13
|
+
media: mediaField,
|
|
14
|
+
imageCenter: mediaField,
|
|
15
|
+
imageLeft: mediaField,
|
|
16
|
+
imageRight: mediaField
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
styles: {
|
|
@@ -6,7 +6,7 @@ import { cn } from "../../../../utils/css-utils.js";
|
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
8
|
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
9
|
-
import {
|
|
9
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
10
10
|
const ScrollParallaxPortfolio = (props) => {
|
|
11
11
|
const { projects: projects2, styles } = {
|
|
12
12
|
...ScrollParallaxPortfolioDefaults,
|
|
@@ -119,26 +119,26 @@ const ThreeImageParallaxVariant = ({
|
|
|
119
119
|
] }),
|
|
120
120
|
/* @__PURE__ */ jsxs("div", { className: "relative flex w-full items-start justify-center", children: [
|
|
121
121
|
/* @__PURE__ */ jsx("div", { className: "hidden w-full max-w-xs shrink-0 lg:block", children: /* @__PURE__ */ jsx(
|
|
122
|
-
|
|
122
|
+
CompoundMedia,
|
|
123
123
|
{
|
|
124
|
-
src: ((_a = project.imageLeft) == null ? void 0 : _a.src) ?? project.
|
|
125
|
-
alt: ((_b = project.imageLeft) == null ? void 0 : _b.alt) ?? project.
|
|
124
|
+
src: ((_a = project.imageLeft) == null ? void 0 : _a.src) ?? project.media.src,
|
|
125
|
+
alt: ((_b = project.imageLeft) == null ? void 0 : _b.alt) ?? project.media.alt,
|
|
126
126
|
className: "w-full object-contain"
|
|
127
127
|
}
|
|
128
128
|
) }),
|
|
129
129
|
/* @__PURE__ */ jsx("div", { className: "w-full max-w-lg", children: /* @__PURE__ */ jsx(
|
|
130
|
-
|
|
130
|
+
CompoundMedia,
|
|
131
131
|
{
|
|
132
|
-
src: ((_c = project.imageCenter) == null ? void 0 : _c.src) ?? project.
|
|
133
|
-
alt: ((_d = project.imageCenter) == null ? void 0 : _d.alt) ?? project.
|
|
132
|
+
src: ((_c = project.imageCenter) == null ? void 0 : _c.src) ?? project.media.src,
|
|
133
|
+
alt: ((_d = project.imageCenter) == null ? void 0 : _d.alt) ?? project.media.alt,
|
|
134
134
|
className: "w-full object-contain"
|
|
135
135
|
}
|
|
136
136
|
) }),
|
|
137
137
|
/* @__PURE__ */ jsx("div", { className: "hidden w-full max-w-xs shrink-0 lg:block", children: /* @__PURE__ */ jsx(
|
|
138
|
-
|
|
138
|
+
CompoundMedia,
|
|
139
139
|
{
|
|
140
|
-
src: ((_e = project.imageRight) == null ? void 0 : _e.src) ?? project.
|
|
141
|
-
alt: ((_f = project.imageRight) == null ? void 0 : _f.alt) ?? project.
|
|
140
|
+
src: ((_e = project.imageRight) == null ? void 0 : _e.src) ?? project.media.src,
|
|
141
|
+
alt: ((_f = project.imageRight) == null ? void 0 : _f.alt) ?? project.media.alt,
|
|
142
142
|
className: "w-full object-contain"
|
|
143
143
|
}
|
|
144
144
|
) })
|
|
@@ -177,10 +177,10 @@ const ThreeImageParallaxVariant = ({
|
|
|
177
177
|
),
|
|
178
178
|
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 z-10 flex h-screen items-center justify-center overflow-hidden", children: [
|
|
179
179
|
/* @__PURE__ */ jsx("a", { href: "#", className: "inline-block max-w-full", children: /* @__PURE__ */ jsx("div", { className: "flex h-screen w-full max-w-5xl items-center justify-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
180
|
-
|
|
180
|
+
CompoundMedia,
|
|
181
181
|
{
|
|
182
|
-
src: ((_a = project.imageCenter) == null ? void 0 : _a.src) ?? project.
|
|
183
|
-
alt: ((_b = project.imageCenter) == null ? void 0 : _b.alt) ?? project.
|
|
182
|
+
src: ((_a = project.imageCenter) == null ? void 0 : _a.src) ?? project.media.src,
|
|
183
|
+
alt: ((_b = project.imageCenter) == null ? void 0 : _b.alt) ?? project.media.alt,
|
|
184
184
|
className: "size-full object-contain"
|
|
185
185
|
}
|
|
186
186
|
) }) }),
|
|
@@ -190,10 +190,10 @@ const ThreeImageParallaxVariant = ({
|
|
|
190
190
|
className: "relative w-full pt-[100vh]",
|
|
191
191
|
style: computedStyles[index].imageLeftStyles,
|
|
192
192
|
children: /* @__PURE__ */ jsx(
|
|
193
|
-
|
|
193
|
+
CompoundMedia,
|
|
194
194
|
{
|
|
195
|
-
src: ((_c = project.imageLeft) == null ? void 0 : _c.src) ?? project.
|
|
196
|
-
alt: ((_d = project.imageLeft) == null ? void 0 : _d.alt) ?? project.
|
|
195
|
+
src: ((_c = project.imageLeft) == null ? void 0 : _c.src) ?? project.media.src,
|
|
196
|
+
alt: ((_d = project.imageLeft) == null ? void 0 : _d.alt) ?? project.media.alt,
|
|
197
197
|
className: "h-auto w-full object-contain"
|
|
198
198
|
}
|
|
199
199
|
)
|
|
@@ -205,10 +205,10 @@ const ThreeImageParallaxVariant = ({
|
|
|
205
205
|
className: "relative w-full pt-[100vh]",
|
|
206
206
|
style: computedStyles[index].imageRightStyles,
|
|
207
207
|
children: /* @__PURE__ */ jsx(
|
|
208
|
-
|
|
208
|
+
CompoundMedia,
|
|
209
209
|
{
|
|
210
|
-
src: ((_e = project.imageRight) == null ? void 0 : _e.src) ?? project.
|
|
211
|
-
alt: ((_f = project.imageRight) == null ? void 0 : _f.alt) ?? project.
|
|
210
|
+
src: ((_e = project.imageRight) == null ? void 0 : _e.src) ?? project.media.src,
|
|
211
|
+
alt: ((_f = project.imageRight) == null ? void 0 : _f.alt) ?? project.media.alt,
|
|
212
212
|
className: "h-auto w-full object-contain"
|
|
213
213
|
}
|
|
214
214
|
)
|
|
@@ -287,10 +287,10 @@ const ScaleOpacityVariant = ({
|
|
|
287
287
|
),
|
|
288
288
|
children: /* @__PURE__ */ jsxs("div", { className: "container max-w-4xl border border-border-primary bg-background-primary p-8 md:p-12", children: [
|
|
289
289
|
/* @__PURE__ */ jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsx(
|
|
290
|
-
|
|
290
|
+
CompoundMedia,
|
|
291
291
|
{
|
|
292
|
-
src: project.
|
|
293
|
-
alt: project.
|
|
292
|
+
src: project.media.src,
|
|
293
|
+
alt: project.media.alt,
|
|
294
294
|
className: "aspect-video w-full object-cover"
|
|
295
295
|
}
|
|
296
296
|
) }),
|
|
@@ -318,7 +318,7 @@ const projects = [
|
|
|
318
318
|
{
|
|
319
319
|
title: "Project name",
|
|
320
320
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
321
|
-
|
|
321
|
+
media: {
|
|
322
322
|
src: "https://images.unsplash.com/photo-1547658719-da2b51169166?w=1200&h=800&fit=crop",
|
|
323
323
|
alt: "Web design workspace"
|
|
324
324
|
},
|
|
@@ -345,7 +345,7 @@ const projects = [
|
|
|
345
345
|
{
|
|
346
346
|
title: "Project name",
|
|
347
347
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
348
|
-
|
|
348
|
+
media: {
|
|
349
349
|
src: "https://images.unsplash.com/photo-1626785774573-4b799315345d?w=1200&h=800&fit=crop",
|
|
350
350
|
alt: "Design studio"
|
|
351
351
|
},
|
|
@@ -372,7 +372,7 @@ const projects = [
|
|
|
372
372
|
{
|
|
373
373
|
title: "Project name",
|
|
374
374
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
375
|
-
|
|
375
|
+
media: {
|
|
376
376
|
src: "https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?w=1200&h=800&fit=crop",
|
|
377
377
|
alt: "Mobile device"
|
|
378
378
|
},
|
|
@@ -403,7 +403,7 @@ const ScrollParallaxPortfolioDefaults = {
|
|
|
403
403
|
description: "",
|
|
404
404
|
button: { label: "View all" },
|
|
405
405
|
buttons: [],
|
|
406
|
-
|
|
406
|
+
medias: [],
|
|
407
407
|
projects,
|
|
408
408
|
hoverLinks: [],
|
|
409
409
|
styles: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { SplitCarousel, SplitCarouselDefaults } from "./split-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",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { jsx, jsxs } 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 SplitCarousel = (props) => {
|
|
9
|
-
const { heading, description,
|
|
9
|
+
const { heading, description, medias, styles } = {
|
|
10
10
|
...SplitCarouselDefaults,
|
|
11
11
|
...props
|
|
12
12
|
};
|
|
@@ -44,11 +44,11 @@ const SplitCarousel = (props) => {
|
|
|
44
44
|
opts: { loop: true, align: "start" },
|
|
45
45
|
className: "overflow-hidden px-[5%] lg:px-0",
|
|
46
46
|
children: [
|
|
47
|
-
/* @__PURE__ */ jsx(CarouselContent, { className: "ml-0", children:
|
|
47
|
+
/* @__PURE__ */ jsx(CarouselContent, { className: "ml-0", children: medias.map((media, index) => /* @__PURE__ */ jsx(
|
|
48
48
|
CarouselItem,
|
|
49
49
|
{
|
|
50
50
|
className: cn("pl-0 pr-6 md:pr-8", getBasisClass()),
|
|
51
|
-
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
51
|
+
children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }) })
|
|
52
52
|
},
|
|
53
53
|
index
|
|
54
54
|
)) }),
|
|
@@ -57,7 +57,7 @@ const SplitCarousel = (props) => {
|
|
|
57
57
|
/* @__PURE__ */ jsx(CarouselPrevious, { className: "static left-0 top-0 size-12 -translate-y-0" }),
|
|
58
58
|
/* @__PURE__ */ jsx(CarouselNext, { className: "static left-0 top-0 size-12 -translate-y-0" })
|
|
59
59
|
] }),
|
|
60
|
-
/* @__PURE__ */ jsx("div", { className: "absolute right-[5%] mt-5 flex items-center justify-end md:right-8 lg:right-16", children:
|
|
60
|
+
/* @__PURE__ */ jsx("div", { className: "absolute right-[5%] mt-5 flex items-center justify-end md:right-8 lg:right-16", children: medias.map((_, index) => /* @__PURE__ */ jsx(
|
|
61
61
|
"button",
|
|
62
62
|
{
|
|
63
63
|
onClick: () => api == null ? void 0 : api.scrollTo(index),
|
|
@@ -80,7 +80,7 @@ const SplitCarouselDefaults = {
|
|
|
80
80
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
81
81
|
button: { label: "View all" },
|
|
82
82
|
buttons: [],
|
|
83
|
-
|
|
83
|
+
medias: [
|
|
84
84
|
{ src: "https://picsum.photos/seed/split-car-1/800/600", alt: "Gallery image 1" },
|
|
85
85
|
{ src: "https://picsum.photos/seed/split-car-2/800/600", alt: "Gallery image 2" },
|
|
86
86
|
{ src: "https://picsum.photos/seed/split-car-3/800/600", alt: "Gallery image 3" },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { StaticGrid, StaticGridDefaults } from "./static-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,7 +1,7 @@
|
|
|
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 columnsMap = {
|
|
6
6
|
"1": "grid-cols-1",
|
|
7
7
|
"2": "grid-cols-1 md:grid-cols-2",
|
|
@@ -10,7 +10,7 @@ const columnsMap = {
|
|
|
10
10
|
"2-lg4": "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
11
11
|
};
|
|
12
12
|
const StaticGrid = (props) => {
|
|
13
|
-
const { heading, description,
|
|
13
|
+
const { heading, description, medias, styles } = {
|
|
14
14
|
...StaticGridDefaults,
|
|
15
15
|
...props
|
|
16
16
|
};
|
|
@@ -29,11 +29,11 @@ const StaticGrid = (props) => {
|
|
|
29
29
|
"gap-8": hasGap,
|
|
30
30
|
"gap-0": !hasGap
|
|
31
31
|
}),
|
|
32
|
-
children:
|
|
33
|
-
|
|
32
|
+
children: medias.map((media, index) => /* @__PURE__ */ jsx("a", { href: "#", className: "size-full", children: /* @__PURE__ */ jsx("div", { className: "w-full overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
33
|
+
CompoundMedia,
|
|
34
34
|
{
|
|
35
|
-
src:
|
|
36
|
-
alt:
|
|
35
|
+
src: media.src,
|
|
36
|
+
alt: media.alt,
|
|
37
37
|
className: "aspect-video size-full object-cover"
|
|
38
38
|
}
|
|
39
39
|
) }) }, index))
|
|
@@ -47,7 +47,7 @@ const StaticGridDefaults = {
|
|
|
47
47
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
48
48
|
button: { label: "View all" },
|
|
49
49
|
buttons: [],
|
|
50
|
-
|
|
50
|
+
medias: [
|
|
51
51
|
{ src: "https://picsum.photos/seed/gallery-1/800/450", alt: "Gallery image 1" },
|
|
52
52
|
{ src: "https://picsum.photos/seed/gallery-2/800/450", alt: "Gallery image 2" },
|
|
53
53
|
{ src: "https://picsum.photos/seed/gallery-3/800/450", alt: "Gallery image 3" },
|