dune-react 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/puck-base/article-card.d.ts +2 -2
- package/dist/components/puck-base/article-card.js +2 -2
- package/dist/components/puck-base/card.d.ts +2 -2
- package/dist/components/puck-base/card.js +2 -2
- package/dist/components/puck-base/index.d.ts +2 -1
- package/dist/components/puck-base/media.d.ts +12 -0
- package/dist/components/puck-base/media.js +576 -0
- package/dist/components/puck-base/social-links.d.ts +7 -0
- package/dist/components/puck-base/social-links.js +23 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +6 -6
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +1 -1
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +2 -2
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +42 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +10 -10
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.d.ts +2 -2
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.js +3 -3
- package/dist/components/puck-block/banner-sections/props.d.ts +9 -12
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -5
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +4 -8
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -5
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -8
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -8
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +10 -14
- package/dist/components/puck-block/contact-sections/props.d.ts +5 -16
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.d.ts +7 -2
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -2
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +57 -8
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +7 -7
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +40 -47
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +6 -6
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +4 -4
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +10 -10
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.d.ts +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.js +2 -2
- package/dist/components/puck-block/faq-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -3
- package/dist/components/puck-block/feature-sections/feature-list-split/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -3
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +12 -12
- package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/tab-feature/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -5
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +2 -2
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.d.ts +7 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +3 -3
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +11 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +61 -10
- package/dist/components/puck-block/footer-sections/props.d.ts +17 -10
- package/dist/components/puck-block/footer-sections/props.js +8 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +12 -12
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +12 -12
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +14 -14
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +6 -6
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +9 -9
- package/dist/components/puck-block/gallery-sections/props.d.ts +8 -8
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +11 -11
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +5 -5
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -26
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +6 -6
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +7 -7
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +31 -24
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +92 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +9 -4
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +32 -25
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +92 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +5 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +27 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +91 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +23 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +91 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +64 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +13 -6
- package/dist/components/puck-block/header-sections/props.d.ts +17 -5
- package/dist/components/puck-block/header-sections/props.js +8 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +64 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +6 -4
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +9 -5
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/carousel-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +14 -14
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +16 -16
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +7 -7
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +16 -16
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/props.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +9 -9
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +13 -13
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +7 -6
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +4 -7
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -7
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +7 -7
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -5
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +4 -4
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +7 -7
- package/dist/components/puck-block/metrics-sections/props.d.ts +6 -6
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +4 -4
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +11 -11
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +13 -0
- package/dist/components/puck-block/pricing-sections/props.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +4 -3
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/registry.generated.d.ts +796 -124
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/props.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +8 -8
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +2 -2
- package/dist/components/puck-block/team-sections/props.d.ts +2 -3
- package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-grid/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-grid/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-inline-card/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-two-column/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-two-column/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +8 -8
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +4 -4
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +10 -10
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +7 -7
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -4
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +3 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +6 -3
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +5 -5
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -6
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/text-sections/blog-article/component.d.ts +4 -7
- package/dist/components/puck-block/text-sections/blog-article/component.js +9 -17
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +39 -14
- package/dist/components/puck-block/text-sections/blog-article/index.js +4 -10
- package/dist/components/puck-block/text-sections/props.d.ts +3 -3
- package/dist/components/puck-block/text-sections/prose-content/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-content/component.js +3 -3
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/prose-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -5
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +4 -4
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +2 -2
- package/dist/components/puck-block/text-sections/text-header/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +1 -1
- package/dist/components/puck-core/core/context/editor-context.d.ts +2 -0
- package/dist/components/puck-core/core/fields.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.d.ts +3 -3
- package/dist/components/puck-core/core/props/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/index.js +7 -0
- package/dist/components/puck-core/core/props/interactive.d.ts +44 -1
- package/dist/components/puck-core/core/props/interactive.js +24 -1
- package/dist/components/puck-core/core/props/media.d.ts +8 -8
- package/dist/components/puck-core/core/props/media.js +21 -21
- package/dist/components/puck-core/core/puck-fields-to-zod.d.ts +40 -0
- package/dist/components/puck-core/core/puck-fields-to-zod.js +113 -0
- package/dist/components/puck-core/core/social-icons.d.ts +5 -0
- package/dist/components/puck-core/core/social-icons.js +48 -0
- package/dist/components/puck-core/core/with-editable.js +9 -2
- package/dist/components/puck-core/fields/media-upload-field.d.ts +7 -0
- package/dist/components/puck-core/fields/{image-upload-field.js → media-upload-field.js} +71 -28
- package/dist/components/puck-core/index.d.ts +3 -2
- package/dist/components/shadcn/tabs.d.ts +2 -1
- package/dist/components/shadcn/tabs.js +21 -3
- package/dist/components/shadcn/video-iframe.d.ts +2 -1
- package/dist/components/shadcn/video-iframe.js +7 -6
- package/dist/index.js +18 -12
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js +44 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js +43 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js +29 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js +665 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js +569 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js +410 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js +74 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js +37 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js +72 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js +314 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js +95 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js +81 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js +1345 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js +362 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js +430 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js +8 -0
- package/package.json +3 -2
- package/dist/components/puck-base/image.d.ts +0 -6
- package/dist/components/puck-base/image.js +0 -360
- package/dist/components/puck-core/fields/image-upload-field.d.ts +0 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SocialIcon } from "../puck-core/core/social-icons.js";
|
|
3
|
+
import { cn } from "../../utils/css-utils.js";
|
|
4
|
+
const CompoundSocialLinks = ({
|
|
5
|
+
links,
|
|
6
|
+
iconClassName = "size-6",
|
|
7
|
+
className
|
|
8
|
+
}) => {
|
|
9
|
+
if (!links || links.length === 0) return null;
|
|
10
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center gap-3", className), children: links.map((link, i) => /* @__PURE__ */ jsx(
|
|
11
|
+
"a",
|
|
12
|
+
{
|
|
13
|
+
href: link.url,
|
|
14
|
+
target: "_blank",
|
|
15
|
+
rel: "noopener noreferrer",
|
|
16
|
+
children: /* @__PURE__ */ jsx(SocialIcon, { platform: link.platform, className: iconClassName })
|
|
17
|
+
},
|
|
18
|
+
i
|
|
19
|
+
)) });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
CompoundSocialLinks
|
|
23
|
+
};
|
|
@@ -29,8 +29,8 @@ const CssMarqueeBanner = (props) => {
|
|
|
29
29
|
/* @__PURE__ */ jsx("div", { className: "relative aspect-[3/2] w-full overflow-hidden object-cover", children: /* @__PURE__ */ jsx(
|
|
30
30
|
"img",
|
|
31
31
|
{
|
|
32
|
-
src: section.
|
|
33
|
-
alt: section.
|
|
32
|
+
src: section.media.src,
|
|
33
|
+
alt: section.media.alt,
|
|
34
34
|
className: "aspect-[3/2] size-full h-16 max-h-24 object-cover md:h-auto"
|
|
35
35
|
}
|
|
36
36
|
) })
|
|
@@ -78,28 +78,28 @@ const CssMarqueeBannerDefaults = {
|
|
|
78
78
|
sections: [
|
|
79
79
|
{
|
|
80
80
|
title: "Brand Name",
|
|
81
|
-
|
|
81
|
+
media: {
|
|
82
82
|
src: "https://picsum.photos/seed/banner-marquee-1/400/267",
|
|
83
83
|
alt: "Brand Name"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
title: "Brand Name",
|
|
88
|
-
|
|
88
|
+
media: {
|
|
89
89
|
src: "https://picsum.photos/seed/banner-marquee-2/400/267",
|
|
90
90
|
alt: "Brand Name"
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
title: "Brand Name",
|
|
95
|
-
|
|
95
|
+
media: {
|
|
96
96
|
src: "https://picsum.photos/seed/banner-marquee-3/400/267",
|
|
97
97
|
alt: "Brand Name"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
title: "Brand Name",
|
|
102
|
-
|
|
102
|
+
media: {
|
|
103
103
|
src: "https://picsum.photos/seed/banner-marquee-4/400/267",
|
|
104
104
|
alt: "Brand Name"
|
|
105
105
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CssMarqueeBanner, CssMarqueeBannerDefaults } from "./css-marquee-banner.js";
|
|
2
|
-
import {
|
|
2
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { bannerStyleFields } from "../props.js";
|
|
4
4
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
const conf = {
|
|
@@ -18,7 +18,7 @@ const conf = {
|
|
|
18
18
|
getItemSummary: (item, index = 0) => item.title || `Section ${index + 1}`,
|
|
19
19
|
arrayFields: {
|
|
20
20
|
title: { type: "text" },
|
|
21
|
-
|
|
21
|
+
media: mediaField
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
styles: {
|
|
@@ -177,6 +177,48 @@ declare const conf: {
|
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
|
+
socialLinks: {
|
|
181
|
+
readonly type: "array";
|
|
182
|
+
readonly label: "Social Links";
|
|
183
|
+
readonly getItemSummary: (item: {
|
|
184
|
+
platform?: string;
|
|
185
|
+
}, i?: number) => string;
|
|
186
|
+
readonly arrayFields: {
|
|
187
|
+
readonly platform: {
|
|
188
|
+
readonly type: "select";
|
|
189
|
+
readonly label: "Platform";
|
|
190
|
+
readonly options: readonly [{
|
|
191
|
+
readonly label: "Twitter / X";
|
|
192
|
+
readonly value: "twitter";
|
|
193
|
+
}, {
|
|
194
|
+
readonly label: "Facebook";
|
|
195
|
+
readonly value: "facebook";
|
|
196
|
+
}, {
|
|
197
|
+
readonly label: "Instagram";
|
|
198
|
+
readonly value: "instagram";
|
|
199
|
+
}, {
|
|
200
|
+
readonly label: "LinkedIn";
|
|
201
|
+
readonly value: "linkedin";
|
|
202
|
+
}, {
|
|
203
|
+
readonly label: "YouTube";
|
|
204
|
+
readonly value: "youtube";
|
|
205
|
+
}, {
|
|
206
|
+
readonly label: "GitHub";
|
|
207
|
+
readonly value: "github";
|
|
208
|
+
}, {
|
|
209
|
+
readonly label: "TikTok";
|
|
210
|
+
readonly value: "tiktok";
|
|
211
|
+
}, {
|
|
212
|
+
readonly label: "Discord";
|
|
213
|
+
readonly value: "discord";
|
|
214
|
+
}];
|
|
215
|
+
};
|
|
216
|
+
readonly url: {
|
|
217
|
+
readonly type: "text";
|
|
218
|
+
readonly label: "URL";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
180
222
|
styles: {
|
|
181
223
|
type: string;
|
|
182
224
|
label: string;
|
|
@@ -23,8 +23,8 @@ const DualRowMarquee = (props) => {
|
|
|
23
23
|
/* @__PURE__ */ jsx("div", { className: "relative shrink-0 overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
24
24
|
"img",
|
|
25
25
|
{
|
|
26
|
-
src: heading.
|
|
27
|
-
alt: heading.
|
|
26
|
+
src: heading.media.src,
|
|
27
|
+
alt: heading.media.alt,
|
|
28
28
|
className: "h-8 object-contain"
|
|
29
29
|
}
|
|
30
30
|
) })
|
|
@@ -50,28 +50,28 @@ const DualRowMarqueeDefaults = {
|
|
|
50
50
|
headingsTop: [
|
|
51
51
|
{
|
|
52
52
|
title: "Brand Name",
|
|
53
|
-
|
|
53
|
+
media: {
|
|
54
54
|
src: "https://picsum.photos/seed/banner-dual-1/100/100",
|
|
55
55
|
alt: "Brand Name 1"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
title: "Brand Name",
|
|
60
|
-
|
|
60
|
+
media: {
|
|
61
61
|
src: "https://picsum.photos/seed/banner-dual-2/100/100",
|
|
62
62
|
alt: "Brand Name 2"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
title: "Brand Name",
|
|
67
|
-
|
|
67
|
+
media: {
|
|
68
68
|
src: "https://picsum.photos/seed/banner-dual-3/100/100",
|
|
69
69
|
alt: "Brand Name 3"
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
title: "Brand Name",
|
|
74
|
-
|
|
74
|
+
media: {
|
|
75
75
|
src: "https://picsum.photos/seed/banner-dual-4/100/100",
|
|
76
76
|
alt: "Brand Name 4"
|
|
77
77
|
}
|
|
@@ -80,28 +80,28 @@ const DualRowMarqueeDefaults = {
|
|
|
80
80
|
headingsBottom: [
|
|
81
81
|
{
|
|
82
82
|
title: "Brand Name",
|
|
83
|
-
|
|
83
|
+
media: {
|
|
84
84
|
src: "https://picsum.photos/seed/banner-dual-5/100/100",
|
|
85
85
|
alt: "Brand Name 5"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
title: "Brand Name",
|
|
90
|
-
|
|
90
|
+
media: {
|
|
91
91
|
src: "https://picsum.photos/seed/banner-dual-6/100/100",
|
|
92
92
|
alt: "Brand Name 6"
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
96
|
title: "Brand Name",
|
|
97
|
-
|
|
97
|
+
media: {
|
|
98
98
|
src: "https://picsum.photos/seed/banner-dual-7/100/100",
|
|
99
99
|
alt: "Brand Name 7"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
title: "Brand Name",
|
|
104
|
-
|
|
104
|
+
media: {
|
|
105
105
|
src: "https://picsum.photos/seed/banner-dual-8/100/100",
|
|
106
106
|
alt: "Brand Name 8"
|
|
107
107
|
}
|
|
@@ -14,7 +14,7 @@ declare const conf: {
|
|
|
14
14
|
title: {
|
|
15
15
|
type: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
media: {
|
|
18
18
|
type: "object";
|
|
19
19
|
objectFields: {
|
|
20
20
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -35,7 +35,7 @@ declare const conf: {
|
|
|
35
35
|
title: {
|
|
36
36
|
type: string;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
media: {
|
|
39
39
|
type: "object";
|
|
40
40
|
objectFields: {
|
|
41
41
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DualRowMarquee, DualRowMarqueeDefaults } from "./dual-row-marquee.js";
|
|
2
|
-
import {
|
|
2
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
const conf = {
|
|
4
4
|
fields: {
|
|
5
5
|
headingsTop: {
|
|
@@ -8,7 +8,7 @@ const conf = {
|
|
|
8
8
|
getItemSummary: (item, index = 0) => item.title || `Item ${index + 1}`,
|
|
9
9
|
arrayFields: {
|
|
10
10
|
title: { type: "text" },
|
|
11
|
-
|
|
11
|
+
media: mediaField
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
headingsBottom: {
|
|
@@ -17,7 +17,7 @@ const conf = {
|
|
|
17
17
|
getItemSummary: (item, index = 0) => item.title || `Item ${index + 1}`,
|
|
18
18
|
arrayFields: {
|
|
19
19
|
title: { type: "text" },
|
|
20
|
-
|
|
20
|
+
media: mediaField
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* BannerSectionStyles 为 banner 特有的样式字段
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
import type { BaseButton, Action } 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, Action, BaseSocialLink } from "@/components/puck-core/core/props/interactive";
|
|
9
|
+
export type { BaseMedia, BaseButton, Action, BaseSocialLink };
|
|
10
10
|
export interface BannerSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -22,7 +22,7 @@ export interface BannerSectionBaseProps {
|
|
|
22
22
|
description: string;
|
|
23
23
|
headings: string[];
|
|
24
24
|
buttons: BaseButton[];
|
|
25
|
-
logo:
|
|
25
|
+
logo: BaseMedia & {
|
|
26
26
|
url?: string;
|
|
27
27
|
};
|
|
28
28
|
inputPlaceholder: string;
|
|
@@ -33,23 +33,20 @@ export interface BannerSectionBaseProps {
|
|
|
33
33
|
action?: Action;
|
|
34
34
|
title: string;
|
|
35
35
|
};
|
|
36
|
-
|
|
37
|
-
platform: string;
|
|
38
|
-
url: string;
|
|
39
|
-
}[];
|
|
36
|
+
socialLinks: BaseSocialLink[];
|
|
40
37
|
sections: {
|
|
41
38
|
title: string;
|
|
42
|
-
|
|
39
|
+
media: BaseMedia;
|
|
43
40
|
}[];
|
|
44
41
|
headingsTop: {
|
|
45
42
|
title: string;
|
|
46
|
-
|
|
43
|
+
media: BaseMedia;
|
|
47
44
|
}[];
|
|
48
45
|
headingsBottom: {
|
|
49
46
|
title: string;
|
|
50
|
-
|
|
47
|
+
media: BaseMedia;
|
|
51
48
|
}[];
|
|
52
|
-
|
|
49
|
+
medias: BaseMedia[];
|
|
53
50
|
styles: BannerSectionStyles;
|
|
54
51
|
}
|
|
55
52
|
export declare const bannerStyleFields: {
|
|
@@ -145,13 +145,9 @@ const CenteredFormDefaults = {
|
|
|
145
145
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
146
146
|
button: { label: "Submit" },
|
|
147
147
|
buttons: [],
|
|
148
|
-
|
|
149
|
-
email: "",
|
|
150
|
-
phone: "",
|
|
151
|
-
address: "",
|
|
148
|
+
media: { src: "https://picsum.photos/seed/contact-form/800/600", alt: "Placeholder" },
|
|
152
149
|
contacts: [],
|
|
153
150
|
locations: [],
|
|
154
|
-
tabs: [],
|
|
155
151
|
styles: {
|
|
156
152
|
formType: "simple",
|
|
157
153
|
textAlign: "center"
|
package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js
CHANGED
|
@@ -71,10 +71,7 @@ const ContactCardsGridDefaults = {
|
|
|
71
71
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
72
72
|
button: { label: "Submit" },
|
|
73
73
|
buttons: [],
|
|
74
|
-
|
|
75
|
-
email: "",
|
|
76
|
-
phone: "",
|
|
77
|
-
address: "",
|
|
74
|
+
media: { src: "https://picsum.photos/seed/contact-grid/800/600", alt: "Placeholder" },
|
|
78
75
|
contacts: [
|
|
79
76
|
{
|
|
80
77
|
icon: "email",
|
|
@@ -96,7 +93,6 @@ const ContactCardsGridDefaults = {
|
|
|
96
93
|
}
|
|
97
94
|
],
|
|
98
95
|
locations: [],
|
|
99
|
-
tabs: [],
|
|
100
96
|
styles: {
|
|
101
97
|
columns: 3,
|
|
102
98
|
textAlign: "left",
|
|
@@ -160,13 +160,9 @@ const ContactModalDefaults = {
|
|
|
160
160
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
161
161
|
button: { label: "Submit" },
|
|
162
162
|
buttons: [],
|
|
163
|
-
|
|
164
|
-
email: "",
|
|
165
|
-
phone: "",
|
|
166
|
-
address: "",
|
|
163
|
+
media: { src: "https://picsum.photos/seed/contact-modal/800/600", alt: "Placeholder" },
|
|
167
164
|
contacts: [],
|
|
168
165
|
locations: [],
|
|
169
|
-
tabs: [],
|
|
170
166
|
styles: {
|
|
171
167
|
formType: "simple",
|
|
172
168
|
modalType: "dialog"
|
|
@@ -5,12 +5,12 @@ import { Input } from "../../../shadcn/input.js";
|
|
|
5
5
|
import { Label } from "../../../shadcn/label.js";
|
|
6
6
|
import { Textarea } from "../../../shadcn/textarea.js";
|
|
7
7
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
8
|
-
import {
|
|
8
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
9
9
|
import { useContactForm } from "../use-contact-form.js";
|
|
10
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
11
11
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
12
12
|
const FormWithMedia = (props) => {
|
|
13
|
-
const { tagline, heading, description, button,
|
|
13
|
+
const { tagline, heading, description, button, media, styles } = {
|
|
14
14
|
...FormWithMediaDefaults,
|
|
15
15
|
...props
|
|
16
16
|
};
|
|
@@ -69,7 +69,7 @@ const FormWithMedia = (props) => {
|
|
|
69
69
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CompoundButton, { label: submitting ? "Submitting..." : button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon, disabled: submitting }) })
|
|
70
70
|
] })
|
|
71
71
|
] });
|
|
72
|
-
const mediaContent = /* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(
|
|
72
|
+
const mediaContent = /* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }) }) : /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }) });
|
|
73
73
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
@@ -92,16 +92,12 @@ const FormWithMediaDefaults = {
|
|
|
92
92
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
93
93
|
button: { label: "Submit" },
|
|
94
94
|
buttons: [],
|
|
95
|
-
|
|
95
|
+
media: {
|
|
96
96
|
src: "https://picsum.photos/seed/contact-media/800/800",
|
|
97
97
|
alt: "Placeholder image"
|
|
98
98
|
},
|
|
99
|
-
email: "",
|
|
100
|
-
phone: "",
|
|
101
|
-
address: "",
|
|
102
99
|
contacts: [],
|
|
103
100
|
locations: [],
|
|
104
|
-
tabs: [],
|
|
105
101
|
styles: {
|
|
106
102
|
mediaPosition: "right",
|
|
107
103
|
mediaType: "image"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormWithMedia, FormWithMediaDefaults } from "./form-with-media.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 { contactStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -10,7 +10,7 @@ const conf = {
|
|
|
10
10
|
heading: headingField,
|
|
11
11
|
description: descriptionField,
|
|
12
12
|
button: buttonField,
|
|
13
|
-
|
|
13
|
+
media: mediaField,
|
|
14
14
|
styles: {
|
|
15
15
|
type: "object",
|
|
16
16
|
label: "Styles",
|
|
@@ -145,10 +145,7 @@ const HeaderFormCardsDefaults = {
|
|
|
145
145
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
146
146
|
button: { label: "Submit" },
|
|
147
147
|
buttons: [],
|
|
148
|
-
|
|
149
|
-
email: "",
|
|
150
|
-
phone: "",
|
|
151
|
-
address: "",
|
|
148
|
+
media: { src: "https://picsum.photos/seed/contact-cards/800/600", alt: "Placeholder" },
|
|
152
149
|
contacts: [
|
|
153
150
|
{
|
|
154
151
|
icon: "email",
|
|
@@ -170,7 +167,6 @@ const HeaderFormCardsDefaults = {
|
|
|
170
167
|
}
|
|
171
168
|
],
|
|
172
169
|
locations: [],
|
|
173
|
-
tabs: [],
|
|
174
170
|
styles: {
|
|
175
171
|
formType: "simple"
|
|
176
172
|
}
|
package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiMap, BiPhone, BiEnvelope } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
@@ -11,7 +11,7 @@ const iconMap = {
|
|
|
11
11
|
office: /* @__PURE__ */ jsx(BiMap, { className: "size-6" })
|
|
12
12
|
};
|
|
13
13
|
const HeaderInfoFullwidth = (props) => {
|
|
14
|
-
const { tagline, heading, description, contacts,
|
|
14
|
+
const { tagline, heading, description, contacts, media, styles } = {
|
|
15
15
|
...HeaderInfoFullwidthDefaults,
|
|
16
16
|
...props
|
|
17
17
|
};
|
|
@@ -33,7 +33,7 @@ const HeaderInfoFullwidth = (props) => {
|
|
|
33
33
|
] })
|
|
34
34
|
] }, index)) }) })
|
|
35
35
|
] }),
|
|
36
|
-
/* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(
|
|
36
|
+
/* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "w-full object-cover", alt: media.alt }) }) : /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "w-full object-cover", alt: media.alt }) })
|
|
37
37
|
] }) });
|
|
38
38
|
};
|
|
39
39
|
const HeaderInfoFullwidthDefaults = {
|
|
@@ -42,13 +42,10 @@ const HeaderInfoFullwidthDefaults = {
|
|
|
42
42
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
43
43
|
button: { label: "Submit" },
|
|
44
44
|
buttons: [],
|
|
45
|
-
|
|
45
|
+
media: {
|
|
46
46
|
src: "https://picsum.photos/seed/contact-fullwidth/1920/600",
|
|
47
47
|
alt: "Placeholder image"
|
|
48
48
|
},
|
|
49
|
-
email: "",
|
|
50
|
-
phone: "",
|
|
51
|
-
address: "",
|
|
52
49
|
contacts: [
|
|
53
50
|
{
|
|
54
51
|
icon: "email",
|
|
@@ -69,7 +66,6 @@ const HeaderInfoFullwidthDefaults = {
|
|
|
69
66
|
}
|
|
70
67
|
],
|
|
71
68
|
locations: [],
|
|
72
|
-
tabs: [],
|
|
73
69
|
styles: {
|
|
74
70
|
mediaType: "image"
|
|
75
71
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HeaderInfoFullwidth, HeaderInfoFullwidthDefaults } from "./header-info-fullwidth.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { contactStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -8,7 +8,7 @@ const conf = {
|
|
|
8
8
|
tagline: { type: "text" },
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
|
-
|
|
11
|
+
media: mediaField,
|
|
12
12
|
contacts: {
|
|
13
13
|
type: "array",
|
|
14
14
|
max: 6,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InfoCardsMedia, InfoCardsMediaDefaults } from "./info-cards-media.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { contactStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -8,7 +8,7 @@ const conf = {
|
|
|
8
8
|
tagline: { type: "text" },
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
|
-
|
|
11
|
+
media: mediaField,
|
|
12
12
|
contacts: {
|
|
13
13
|
type: "array",
|
|
14
14
|
max: 6,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiMap, BiPhone, BiEnvelope } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
@@ -11,7 +11,7 @@ const iconMap = {
|
|
|
11
11
|
office: /* @__PURE__ */ jsx(BiMap, { className: "size-8" })
|
|
12
12
|
};
|
|
13
13
|
const InfoCardsMedia = (props) => {
|
|
14
|
-
const { tagline, heading, description, contacts,
|
|
14
|
+
const { tagline, heading, description, contacts, media, styles } = {
|
|
15
15
|
...InfoCardsMediaDefaults,
|
|
16
16
|
...props
|
|
17
17
|
};
|
|
@@ -30,7 +30,7 @@ const InfoCardsMedia = (props) => {
|
|
|
30
30
|
contact.link && /* @__PURE__ */ jsx("a", { className: "underline", href: resolveActionUrl(contact.link.action ?? { type: "none" }) ?? "#", children: contact.link.label }),
|
|
31
31
|
contact.button && /* @__PURE__ */ jsx("div", { className: "mt-5 md:mt-6", children: /* @__PURE__ */ jsx(Button, { variant: contact.button.variant, size: contact.button.size, children: contact.button.label }) })
|
|
32
32
|
] }, index)) }),
|
|
33
|
-
/* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(
|
|
33
|
+
/* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }) }) : /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }) })
|
|
34
34
|
] })
|
|
35
35
|
] }) });
|
|
36
36
|
};
|
|
@@ -40,13 +40,10 @@ const InfoCardsMediaDefaults = {
|
|
|
40
40
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
41
41
|
button: { label: "Submit" },
|
|
42
42
|
buttons: [],
|
|
43
|
-
|
|
43
|
+
media: {
|
|
44
44
|
src: "https://picsum.photos/seed/contact-info/1200/800",
|
|
45
45
|
alt: "Placeholder image"
|
|
46
46
|
},
|
|
47
|
-
email: "",
|
|
48
|
-
phone: "",
|
|
49
|
-
address: "",
|
|
50
47
|
contacts: [
|
|
51
48
|
{
|
|
52
49
|
icon: "email",
|
|
@@ -68,7 +65,6 @@ const InfoCardsMediaDefaults = {
|
|
|
68
65
|
}
|
|
69
66
|
],
|
|
70
67
|
locations: [],
|
|
71
|
-
tabs: [],
|
|
72
68
|
styles: {
|
|
73
69
|
mediaType: "image"
|
|
74
70
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocationCardsGrid, LocationCardsGridDefaults } from "./location-cards-grid.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 { contactStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -14,7 +14,7 @@ const conf = {
|
|
|
14
14
|
max: 6,
|
|
15
15
|
getItemSummary: (item, index = 0) => item.title || `Location ${index + 1}`,
|
|
16
16
|
arrayFields: {
|
|
17
|
-
|
|
17
|
+
media: mediaField,
|
|
18
18
|
mapUrl: { type: "text" },
|
|
19
19
|
title: { type: "text" },
|
|
20
20
|
address: { type: "text" },
|