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
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TestimonialComponentProps,
|
|
1
|
+
import type { TestimonialComponentProps, BaseMedia } from "../props";
|
|
2
2
|
type Testimonial = {
|
|
3
3
|
quote: string;
|
|
4
|
-
avatar:
|
|
4
|
+
avatar: BaseMedia;
|
|
5
5
|
name: string;
|
|
6
6
|
position: string;
|
|
7
7
|
companyName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiSolidStar } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
4
4
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
const MasonryTestimonial = (props) => {
|
|
@@ -17,9 +17,9 @@ const MasonryTestimonial = (props) => {
|
|
|
17
17
|
className: sectionClassName,
|
|
18
18
|
style: sectionStyle,
|
|
19
19
|
css,
|
|
20
|
-
masonryColumns = 3
|
|
20
|
+
masonryColumns = "3"
|
|
21
21
|
} = styles ?? {};
|
|
22
|
-
const columnsClass = masonryColumns === 2 ? "md:columns-2" : "md:columns-2 lg:columns-3";
|
|
22
|
+
const columnsClass = masonryColumns === "2" ? "md:columns-2" : "md:columns-2 lg:columns-3";
|
|
23
23
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
24
24
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 w-full max-w-lg text-center md:mb-18 lg:mb-20", children: [
|
|
25
25
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -34,7 +34,7 @@ const MasonryTestimonial = (props) => {
|
|
|
34
34
|
/* @__PURE__ */ jsx("blockquote", { className: "md:text-md", children: testimonial2.quote }),
|
|
35
35
|
/* @__PURE__ */ jsxs("div", { className: "mt-5 flex w-full flex-col items-start gap-4 md:mt-6 md:w-fit md:flex-row md:items-center", children: [
|
|
36
36
|
/* @__PURE__ */ jsx(
|
|
37
|
-
|
|
37
|
+
CompoundMedia,
|
|
38
38
|
{
|
|
39
39
|
src: testimonial2.avatar.src,
|
|
40
40
|
alt: testimonial2.avatar.alt,
|
|
@@ -69,7 +69,7 @@ const MasonryTestimonialDefaults = {
|
|
|
69
69
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
70
70
|
testimonials: [testimonial, testimonial, testimonial, testimonial, testimonial, testimonial],
|
|
71
71
|
styles: {
|
|
72
|
-
masonryColumns: 3
|
|
72
|
+
masonryColumns: "3"
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* TestimonialSectionStyles 为 testimonial 特有的样式字段
|
|
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 TestimonialSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -14,9 +14,9 @@ export interface TestimonialSectionStyles {
|
|
|
14
14
|
ratingType?: "logo" | "stars";
|
|
15
15
|
attributionLayout?: "stacked" | "inline";
|
|
16
16
|
textAlign?: "left" | "center";
|
|
17
|
-
gridColumns?: 2 | 3;
|
|
18
|
-
carouselColumns?: 1 | 2 | 3;
|
|
19
|
-
masonryColumns?: 2 | 3;
|
|
17
|
+
gridColumns?: "2" | "3";
|
|
18
|
+
carouselColumns?: "1" | "2" | "3";
|
|
19
|
+
masonryColumns?: "2" | "3";
|
|
20
20
|
bordered?: boolean;
|
|
21
21
|
hasHeading?: boolean;
|
|
22
22
|
hasButton?: boolean;
|
|
@@ -31,8 +31,7 @@ export interface TestimonialSectionStyles {
|
|
|
31
31
|
export interface TestimonialSectionBaseProps {
|
|
32
32
|
heading: string;
|
|
33
33
|
description: string;
|
|
34
|
-
|
|
35
|
-
images: BaseImage[];
|
|
34
|
+
medias: BaseMedia[];
|
|
36
35
|
styles: TestimonialSectionStyles;
|
|
37
36
|
}
|
|
38
37
|
/** 各 styles 字段的 Puck field 选项 */
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type { TestimonialComponentProps,
|
|
1
|
+
import type { TestimonialComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type Testimonial = {
|
|
3
3
|
numberOfStars: number;
|
|
4
4
|
quote: string;
|
|
5
|
-
avatar:
|
|
5
|
+
avatar: BaseMedia;
|
|
6
6
|
name: string;
|
|
7
7
|
position: string;
|
|
8
8
|
companyName: string;
|
|
9
9
|
};
|
|
10
10
|
type StickyTestimonialExtra = {
|
|
11
|
+
buttons: BaseButton[];
|
|
11
12
|
testimonials: Testimonial[];
|
|
12
13
|
};
|
|
13
14
|
export type StickyTestimonialProps = TestimonialComponentProps<StickyTestimonialExtra>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { BiSolidStar } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -53,7 +53,7 @@ const TestimonialCard = ({ testimonial: testimonial2 }) => /* @__PURE__ */ jsxs(
|
|
|
53
53
|
] }),
|
|
54
54
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-4 md:flex-row md:items-center", children: [
|
|
55
55
|
/* @__PURE__ */ jsx(
|
|
56
|
-
|
|
56
|
+
CompoundMedia,
|
|
57
57
|
{
|
|
58
58
|
src: testimonial2.avatar.src,
|
|
59
59
|
alt: testimonial2.avatar.alt,
|
|
@@ -81,7 +81,10 @@ const testimonial = {
|
|
|
81
81
|
const StickyTestimonialDefaults = {
|
|
82
82
|
heading: "Customer testimonials",
|
|
83
83
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
84
|
-
buttons: [
|
|
84
|
+
buttons: [
|
|
85
|
+
{ label: "Button", variant: "secondary" },
|
|
86
|
+
{ label: "Button", variant: "link" }
|
|
87
|
+
],
|
|
85
88
|
testimonials: [testimonial, testimonial, testimonial, testimonial],
|
|
86
89
|
styles: {
|
|
87
90
|
animation: "stickyStack"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { TestimonialComponentProps,
|
|
1
|
+
import type { TestimonialComponentProps, BaseMedia } from "../props";
|
|
2
2
|
type Testimonial = {
|
|
3
3
|
numberOfStars: number;
|
|
4
4
|
quote: string;
|
|
5
|
-
avatar:
|
|
5
|
+
avatar: BaseMedia;
|
|
6
6
|
name: string;
|
|
7
7
|
position: string;
|
|
8
8
|
companyName: string;
|
|
9
9
|
};
|
|
10
10
|
type Tab = {
|
|
11
11
|
value: string;
|
|
12
|
-
trigger:
|
|
12
|
+
trigger: BaseMedia;
|
|
13
13
|
content: Testimonial;
|
|
14
|
-
|
|
14
|
+
media?: BaseMedia;
|
|
15
15
|
};
|
|
16
16
|
type TabTestimonialExtra = {
|
|
17
17
|
tabs: Tab[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiSolidStar } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
3
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "../../../shadcn/tabs.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 TabTestimonial = (props) => {
|
|
@@ -27,7 +27,7 @@ const TabTestimonial = (props) => {
|
|
|
27
27
|
value: tab2.value,
|
|
28
28
|
className: "animate-tabs",
|
|
29
29
|
children: /* @__PURE__ */ jsxs("div", { className: `flex w-full items-center ${hasImage ? "flex-col md:flex-row" : "justify-center"} px-6 pb-10 pt-6 md:p-8 lg:px-12 lg:py-16`, children: [
|
|
30
|
-
hasImage && tab2.
|
|
30
|
+
hasImage && tab2.media && /* @__PURE__ */ jsx("div", { className: "mb-6 w-full md:mb-0 md:w-1/2 md:pr-8", children: /* @__PURE__ */ jsx(CompoundMedia, { src: tab2.media.src, alt: tab2.media.alt, className: "aspect-square w-full object-cover" }) }),
|
|
31
31
|
/* @__PURE__ */ jsxs("div", { className: `${hasImage ? "w-full md:w-1/2" : "mx-auto w-full max-w-lg text-center"}`, children: [
|
|
32
32
|
/* @__PURE__ */ jsxs("div", { className: "rb-5 mb-5 md:mb-6", children: [
|
|
33
33
|
/* @__PURE__ */ jsx("div", { className: `mb-6 flex items-center md:mb-8 ${hasImage ? "" : "justify-center"}`, children: Array(tab2.content.numberOfStars).fill(null).map((_, starIndex) => /* @__PURE__ */ jsx(BiSolidStar, { className: "mr-1 size-6" }, starIndex)) }),
|
|
@@ -35,7 +35,7 @@ const TabTestimonial = (props) => {
|
|
|
35
35
|
] }),
|
|
36
36
|
/* @__PURE__ */ jsxs("div", { className: `mt-6 flex flex-col flex-nowrap gap-4 md:mt-8 ${hasImage ? "items-start" : "items-center"}`, children: [
|
|
37
37
|
/* @__PURE__ */ jsx(
|
|
38
|
-
|
|
38
|
+
CompoundMedia,
|
|
39
39
|
{
|
|
40
40
|
src: tab2.content.avatar.src,
|
|
41
41
|
alt: tab2.content.avatar.alt,
|
|
@@ -62,7 +62,7 @@ const TabTestimonial = (props) => {
|
|
|
62
62
|
value: tab2.value,
|
|
63
63
|
className: "flex h-auto w-full items-center justify-center gap-4 rounded-none border-0 border-t px-6 py-4 duration-0 data-active:bg-background-primary md:border-r md:px-8 md:py-6 md:last-of-type:border-r-0 md:data-active:[border-top:1px_solid_#fff]",
|
|
64
64
|
children: /* @__PURE__ */ jsx(
|
|
65
|
-
|
|
65
|
+
CompoundMedia,
|
|
66
66
|
{
|
|
67
67
|
src: tab2.trigger.src,
|
|
68
68
|
alt: tab2.trigger.alt,
|
|
@@ -86,7 +86,7 @@ const tab = {
|
|
|
86
86
|
position: "Position",
|
|
87
87
|
companyName: "Company name"
|
|
88
88
|
},
|
|
89
|
-
|
|
89
|
+
media: { src: "https://picsum.photos/seed/tab-testimonial-img/800/800", alt: "Testimonial image" }
|
|
90
90
|
};
|
|
91
91
|
const TabTestimonialDefaults = {
|
|
92
92
|
heading: "Customer testimonials",
|
package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { TestimonialComponentProps,
|
|
1
|
+
import type { TestimonialComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type Testimonial = {
|
|
3
|
-
|
|
3
|
+
media: BaseMedia;
|
|
4
4
|
quote: string;
|
|
5
|
-
avatar:
|
|
5
|
+
avatar: BaseMedia;
|
|
6
6
|
name: string;
|
|
7
7
|
position: string;
|
|
8
8
|
numberOfStars: number;
|
|
9
|
-
logo?:
|
|
9
|
+
logo?: BaseMedia;
|
|
10
10
|
button?: BaseButton;
|
|
11
11
|
};
|
|
12
12
|
type TestimonialCardGridExtra = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiSolidStar } 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 { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
7
|
const TestimonialCardGrid = (props) => {
|
|
@@ -19,12 +19,12 @@ const TestimonialCardGrid = (props) => {
|
|
|
19
19
|
style: sectionStyle,
|
|
20
20
|
css,
|
|
21
21
|
textAlign = "center",
|
|
22
|
-
gridColumns = 2,
|
|
22
|
+
gridColumns = "2",
|
|
23
23
|
ratingType = "logo",
|
|
24
24
|
bordered = false,
|
|
25
25
|
hasButton = false
|
|
26
26
|
} = styles ?? {};
|
|
27
|
-
const gridColsClass = gridColumns === 3 ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
27
|
+
const gridColsClass = gridColumns === "3" ? "md:grid-cols-2 lg:grid-cols-3" : "md:grid-cols-2";
|
|
28
28
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
29
29
|
/* @__PURE__ */ jsxs("div", { className: `mx-auto mb-12 w-full max-w-lg md:mb-18 lg:mb-20 ${textAlign === "center" ? "text-center" : "text-left"}`, children: [
|
|
30
30
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -35,12 +35,12 @@ const TestimonialCardGrid = (props) => {
|
|
|
35
35
|
{
|
|
36
36
|
className: `flex flex-col items-center justify-center text-center ${bordered ? "border border-border-primary p-6 md:p-8" : ""}`,
|
|
37
37
|
children: [
|
|
38
|
-
ratingType === "logo" && testimonial.
|
|
38
|
+
ratingType === "logo" && testimonial.media && /* @__PURE__ */ jsx("div", { className: "mb-6 md:mb-8", children: /* @__PURE__ */ jsx(CompoundMedia, { src: testimonial.media.src, alt: testimonial.media.alt, className: "max-h-14" }) }),
|
|
39
39
|
ratingType === "stars" && /* @__PURE__ */ jsx("div", { className: "mb-5 flex md:mb-6", children: Array(testimonial.numberOfStars).fill(null).map((_, starIndex) => /* @__PURE__ */ jsx(BiSolidStar, { className: "mr-1 size-6" }, starIndex)) }),
|
|
40
40
|
/* @__PURE__ */ jsx("blockquote", { className: "text-md font-bold leading-[1.4] md:text-xl", children: testimonial.quote }),
|
|
41
41
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex flex-col items-center justify-center md:mt-8", children: [
|
|
42
42
|
/* @__PURE__ */ jsx("div", { className: "mb-3 md:mb-4", children: /* @__PURE__ */ jsx(
|
|
43
|
-
|
|
43
|
+
CompoundMedia,
|
|
44
44
|
{
|
|
45
45
|
src: testimonial.avatar.src,
|
|
46
46
|
alt: testimonial.avatar.alt,
|
|
@@ -51,7 +51,7 @@ const TestimonialCardGrid = (props) => {
|
|
|
51
51
|
/* @__PURE__ */ jsx("p", { children: testimonial.position })
|
|
52
52
|
] }),
|
|
53
53
|
hasButton && testimonial.logo && /* @__PURE__ */ jsxs("div", { className: "mt-5 flex items-center gap-4 md:mt-6", children: [
|
|
54
|
-
/* @__PURE__ */ jsx(
|
|
54
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: testimonial.logo.src, alt: testimonial.logo.alt, className: "max-h-12" }),
|
|
55
55
|
testimonial.button && /* @__PURE__ */ jsx(Button, { variant: testimonial.button.variant, size: testimonial.button.size, children: testimonial.button.label })
|
|
56
56
|
] })
|
|
57
57
|
]
|
|
@@ -65,7 +65,7 @@ const TestimonialCardGridDefaults = {
|
|
|
65
65
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
66
66
|
testimonials: [
|
|
67
67
|
{
|
|
68
|
-
|
|
68
|
+
media: { src: "https://cdn.jsdelivr.net/gh/gilbarbara/logos/logos/discord.svg", alt: "Webflow logo 1" },
|
|
69
69
|
quote: '"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat."',
|
|
70
70
|
avatar: { src: "https://picsum.photos/seed/testimonial-1/100/100", alt: "Testimonial avatar 1" },
|
|
71
71
|
name: "Name Surname",
|
|
@@ -73,7 +73,7 @@ const TestimonialCardGridDefaults = {
|
|
|
73
73
|
numberOfStars: 5
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
|
|
76
|
+
media: { src: "https://cdn.jsdelivr.net/gh/gilbarbara/logos/logos/discord.svg", alt: "Webflow logo 2" },
|
|
77
77
|
quote: '"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat."',
|
|
78
78
|
avatar: { src: "https://picsum.photos/seed/testimonial-2/100/100", alt: "Testimonial avatar 2" },
|
|
79
79
|
name: "Name Surname",
|
|
@@ -83,7 +83,7 @@ const TestimonialCardGridDefaults = {
|
|
|
83
83
|
],
|
|
84
84
|
styles: {
|
|
85
85
|
textAlign: "center",
|
|
86
|
-
gridColumns: 2,
|
|
86
|
+
gridColumns: "2",
|
|
87
87
|
ratingType: "logo",
|
|
88
88
|
bordered: false,
|
|
89
89
|
hasButton: false
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { TestimonialComponentProps,
|
|
1
|
+
import type { TestimonialComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type Testimonial = {
|
|
3
3
|
quote: string;
|
|
4
|
-
logo?:
|
|
5
|
-
avatar:
|
|
4
|
+
logo?: BaseMedia;
|
|
5
|
+
avatar: BaseMedia;
|
|
6
6
|
name: string;
|
|
7
7
|
position: string;
|
|
8
8
|
numberOfStars: number;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "../../../shadcn/carousel.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { BiSolidStar } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
9
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
@@ -24,7 +24,7 @@ const TestimonialCarousel = (props) => {
|
|
|
24
24
|
ratingType = "logo",
|
|
25
25
|
hasHeading = false,
|
|
26
26
|
textAlign = "center",
|
|
27
|
-
carouselColumns = 1,
|
|
27
|
+
carouselColumns = "1",
|
|
28
28
|
bordered = false,
|
|
29
29
|
hasButton = false
|
|
30
30
|
} = styles ?? {};
|
|
@@ -37,7 +37,7 @@ const TestimonialCarousel = (props) => {
|
|
|
37
37
|
setCurrent(api.selectedScrollSnap() + 1);
|
|
38
38
|
});
|
|
39
39
|
}, [api]);
|
|
40
|
-
const basisClass = carouselColumns === 3 ? "md:basis-1/2 lg:basis-1/3" : carouselColumns === 2 ? "md:basis-1/2" : "md:basis-full";
|
|
40
|
+
const basisClass = carouselColumns === "3" ? "md:basis-1/2 lg:basis-1/3" : carouselColumns === "2" ? "md:basis-1/2" : "md:basis-full";
|
|
41
41
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("overflow-hidden px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
42
42
|
hasHeading && /* @__PURE__ */ jsxs("div", { className: `mb-12 w-full max-w-lg md:mb-18 lg:mb-20 ${textAlign === "center" ? "mx-auto text-center" : ""}`, children: [
|
|
43
43
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -54,14 +54,14 @@ const TestimonialCarousel = (props) => {
|
|
|
54
54
|
/* @__PURE__ */ jsx(CarouselContent, { className: "ml-0 md:mx-3", children: testimonials.map((testimonial2, index) => /* @__PURE__ */ jsx(
|
|
55
55
|
CarouselItem,
|
|
56
56
|
{
|
|
57
|
-
className: `pl-0 ${carouselColumns === 1 ? "md:px-16" : "pr-6 md:pr-8"} ${basisClass}`,
|
|
57
|
+
className: `pl-0 ${carouselColumns === "1" ? "md:px-16" : "pr-6 md:pr-8"} ${basisClass}`,
|
|
58
58
|
children: /* @__PURE__ */ jsxs("div", { className: `mx-auto flex w-full max-w-lg flex-col items-center text-center ${bordered ? "border border-border-primary p-6 md:p-8" : ""}`, children: [
|
|
59
|
-
ratingType === "logo" && testimonial2.logo && /* @__PURE__ */ jsx("div", { className: "mb-6 md:mb-8", children: /* @__PURE__ */ jsx(
|
|
59
|
+
ratingType === "logo" && testimonial2.logo && /* @__PURE__ */ jsx("div", { className: "mb-6 md:mb-8", children: /* @__PURE__ */ jsx(CompoundMedia, { src: testimonial2.logo.src, alt: testimonial2.logo.alt, className: "max-h-14" }) }),
|
|
60
60
|
ratingType === "stars" && /* @__PURE__ */ jsx("div", { className: "mb-5 flex md:mb-6", children: Array(testimonial2.numberOfStars).fill(null).map((_, starIndex) => /* @__PURE__ */ jsx(BiSolidStar, { className: "mr-1 size-6" }, starIndex)) }),
|
|
61
|
-
/* @__PURE__ */ jsx("blockquote", { className: `font-bold ${carouselColumns === 1 ? "text-xl md:text-2xl" : "text-md leading-[1.4] md:text-xl"}`, children: testimonial2.quote }),
|
|
61
|
+
/* @__PURE__ */ jsx("blockquote", { className: `font-bold ${carouselColumns === "1" ? "text-xl md:text-2xl" : "text-md leading-[1.4] md:text-xl"}`, children: testimonial2.quote }),
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { className: "mt-6 flex flex-col items-center justify-center md:mt-8", children: [
|
|
63
63
|
/* @__PURE__ */ jsx("div", { className: "mb-3 md:mb-4", children: /* @__PURE__ */ jsx(
|
|
64
|
-
|
|
64
|
+
CompoundMedia,
|
|
65
65
|
{
|
|
66
66
|
src: testimonial2.avatar.src,
|
|
67
67
|
alt: testimonial2.avatar.alt,
|
|
@@ -111,7 +111,7 @@ const TestimonialCarouselDefaults = {
|
|
|
111
111
|
ratingType: "logo",
|
|
112
112
|
hasHeading: false,
|
|
113
113
|
textAlign: "center",
|
|
114
|
-
carouselColumns: 1,
|
|
114
|
+
carouselColumns: "1",
|
|
115
115
|
bordered: false,
|
|
116
116
|
hasButton: false
|
|
117
117
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type { TextComponentProps, TextSectionBaseProps,
|
|
2
|
-
type
|
|
3
|
-
platform: string;
|
|
4
|
-
url: string;
|
|
5
|
-
};
|
|
1
|
+
import type { TextComponentProps, TextSectionBaseProps, BaseMedia } from "../props";
|
|
2
|
+
import type { BaseSocialLink } from "@/components/puck-core/core/props/interactive";
|
|
6
3
|
type Tag = {
|
|
7
4
|
label: string;
|
|
8
5
|
url: string;
|
|
@@ -10,7 +7,7 @@ type Tag = {
|
|
|
10
7
|
type Author = {
|
|
11
8
|
name: string;
|
|
12
9
|
titleAndCompany: string;
|
|
13
|
-
avatar:
|
|
10
|
+
avatar: BaseMedia;
|
|
14
11
|
};
|
|
15
12
|
type Breadcrumb = {
|
|
16
13
|
label: string;
|
|
@@ -18,7 +15,7 @@ type Breadcrumb = {
|
|
|
18
15
|
};
|
|
19
16
|
type BlogArticleExtra = {
|
|
20
17
|
prose: string;
|
|
21
|
-
|
|
18
|
+
socialLinks: BaseSocialLink[];
|
|
22
19
|
tags: Tag[];
|
|
23
20
|
shareTitle: string;
|
|
24
21
|
author: Author;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
3
3
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
|
+
import { CompoundSocialLinks } from "../../../puck-base/social-links.js";
|
|
4
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
6
|
const BlogArticle = (props) => {
|
|
6
7
|
const {
|
|
7
8
|
prose,
|
|
8
|
-
|
|
9
|
+
socialLinks = [],
|
|
9
10
|
tags = [],
|
|
10
11
|
shareTitle,
|
|
11
12
|
author,
|
|
@@ -30,22 +31,14 @@ const BlogArticle = (props) => {
|
|
|
30
31
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 sm:flex-row sm:items-end sm:justify-between", children: [
|
|
31
32
|
/* @__PURE__ */ jsxs("div", { className: "sm:max-w-1/2", children: [
|
|
32
33
|
/* @__PURE__ */ jsx("p", { className: "font-semibold md:text-md", children: shareTitle }),
|
|
33
|
-
/* @__PURE__ */ jsx("
|
|
34
|
-
"a",
|
|
35
|
-
{
|
|
36
|
-
href: link.url,
|
|
37
|
-
className: "size-8 rounded-[1.25rem] bg-background-secondary p-1 flex items-center justify-center text-sm font-bold",
|
|
38
|
-
children: link.platform.charAt(0)
|
|
39
|
-
},
|
|
40
|
-
index
|
|
41
|
-
)) })
|
|
34
|
+
/* @__PURE__ */ jsx(CompoundSocialLinks, { links: socialLinks, iconClassName: "size-4", className: "mt-3 gap-2 md:mt-4" })
|
|
42
35
|
] }),
|
|
43
36
|
/* @__PURE__ */ jsx("div", { className: "sm:max-w-1/2", children: /* @__PURE__ */ jsx("ul", { className: "flex flex-wrap gap-2 sm:justify-end", children: tags.map((tag, index) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx("a", { href: tag.url, className: "bg-background-secondary px-2 py-1 text-sm font-semibold", children: tag.label }) }, index)) }) })
|
|
44
37
|
] }),
|
|
45
38
|
/* @__PURE__ */ jsx("div", { className: "my-8 h-px bg-border-primary md:my-12" }),
|
|
46
39
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
47
40
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
48
|
-
|
|
41
|
+
CompoundMedia,
|
|
49
42
|
{
|
|
50
43
|
src: author.avatar.src,
|
|
51
44
|
alt: author.avatar.alt,
|
|
@@ -62,11 +55,10 @@ const BlogArticle = (props) => {
|
|
|
62
55
|
const BlogArticleDefaults = {
|
|
63
56
|
prose: `<h3>Introduction</h3><p>Mi tincidunt elit, id quisque ligula ac diam, amet. Vel etiam suspendisse morbi eleifend faucibus eget vestibulum felis. Dictum quis montes, sit sit. Tellus aliquam enim urna, etiam. Mauris posuere vulputate arcu amet, vitae nisi, tellus tincidunt.</p><p>Eget quis mi enim, leo lacinia pharetra, semper. Eget in volutpat mollis at volutpat lectus velit, sed auctor.</p><h4>Conclusion</h4><p>Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id scelerisque est ultricies ultricies. Duis est sit sed leo nisl, blandit elit sagittis.</p>`,
|
|
64
57
|
shareTitle: "Share this post",
|
|
65
|
-
|
|
66
|
-
{ platform: "
|
|
67
|
-
{ platform: "
|
|
68
|
-
{ platform: "
|
|
69
|
-
{ platform: "Facebook", url: "#" }
|
|
58
|
+
socialLinks: [
|
|
59
|
+
{ platform: "linkedin", url: "#" },
|
|
60
|
+
{ platform: "twitter", url: "#" },
|
|
61
|
+
{ platform: "facebook", url: "#" }
|
|
70
62
|
],
|
|
71
63
|
tags: [
|
|
72
64
|
{ label: "Tag one", url: "#" },
|
|
@@ -10,17 +10,45 @@ declare const conf: {
|
|
|
10
10
|
shareTitle: {
|
|
11
11
|
type: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
type:
|
|
15
|
-
|
|
13
|
+
socialLinks: {
|
|
14
|
+
readonly type: "array";
|
|
15
|
+
readonly label: "Social Links";
|
|
16
|
+
readonly getItemSummary: (item: {
|
|
16
17
|
platform?: string;
|
|
17
|
-
},
|
|
18
|
-
arrayFields: {
|
|
19
|
-
platform: {
|
|
20
|
-
type:
|
|
18
|
+
}, i?: number) => string;
|
|
19
|
+
readonly arrayFields: {
|
|
20
|
+
readonly platform: {
|
|
21
|
+
readonly type: "select";
|
|
22
|
+
readonly label: "Platform";
|
|
23
|
+
readonly options: readonly [{
|
|
24
|
+
readonly label: "Twitter / X";
|
|
25
|
+
readonly value: "twitter";
|
|
26
|
+
}, {
|
|
27
|
+
readonly label: "Facebook";
|
|
28
|
+
readonly value: "facebook";
|
|
29
|
+
}, {
|
|
30
|
+
readonly label: "Instagram";
|
|
31
|
+
readonly value: "instagram";
|
|
32
|
+
}, {
|
|
33
|
+
readonly label: "LinkedIn";
|
|
34
|
+
readonly value: "linkedin";
|
|
35
|
+
}, {
|
|
36
|
+
readonly label: "YouTube";
|
|
37
|
+
readonly value: "youtube";
|
|
38
|
+
}, {
|
|
39
|
+
readonly label: "GitHub";
|
|
40
|
+
readonly value: "github";
|
|
41
|
+
}, {
|
|
42
|
+
readonly label: "TikTok";
|
|
43
|
+
readonly value: "tiktok";
|
|
44
|
+
}, {
|
|
45
|
+
readonly label: "Discord";
|
|
46
|
+
readonly value: "discord";
|
|
47
|
+
}];
|
|
21
48
|
};
|
|
22
|
-
url: {
|
|
23
|
-
type:
|
|
49
|
+
readonly url: {
|
|
50
|
+
readonly type: "text";
|
|
51
|
+
readonly label: "URL";
|
|
24
52
|
};
|
|
25
53
|
};
|
|
26
54
|
};
|
|
@@ -115,10 +143,7 @@ declare const conf: {
|
|
|
115
143
|
};
|
|
116
144
|
defaultProps: Partial<import("../props").TextSectionBaseProps> & {
|
|
117
145
|
prose: string;
|
|
118
|
-
|
|
119
|
-
platform: string;
|
|
120
|
-
url: string;
|
|
121
|
-
}[];
|
|
146
|
+
socialLinks: import("@/components/puck-core/core/props/interactive").BaseSocialLink[];
|
|
122
147
|
tags: {
|
|
123
148
|
label: string;
|
|
124
149
|
url: string;
|
|
@@ -127,7 +152,7 @@ declare const conf: {
|
|
|
127
152
|
author: {
|
|
128
153
|
name: string;
|
|
129
154
|
titleAndCompany: string;
|
|
130
|
-
avatar: import("@/components/puck-core/core/props/media").
|
|
155
|
+
avatar: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
131
156
|
};
|
|
132
157
|
breadcrumbs?: {
|
|
133
158
|
label: string;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { BlogArticle, BlogArticleDefaults } from "./component.js";
|
|
2
|
-
import {
|
|
2
|
+
import { socialLinksField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
4
|
import { textStyleFields } from "../props.js";
|
|
4
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
prose: { type: "textarea" },
|
|
8
9
|
shareTitle: { type: "text" },
|
|
9
|
-
|
|
10
|
-
type: "array",
|
|
11
|
-
getItemSummary: (item, index = 0) => item.platform || `Link ${index + 1}`,
|
|
12
|
-
arrayFields: {
|
|
13
|
-
platform: { type: "text" },
|
|
14
|
-
url: { type: "text" }
|
|
15
|
-
}
|
|
16
|
-
},
|
|
10
|
+
socialLinks: socialLinksField,
|
|
17
11
|
tags: {
|
|
18
12
|
type: "array",
|
|
19
13
|
getItemSummary: (item, index = 0) => item.label || `Tag ${index + 1}`,
|
|
@@ -28,7 +22,7 @@ const conf = {
|
|
|
28
22
|
objectFields: {
|
|
29
23
|
name: { type: "text" },
|
|
30
24
|
titleAndCompany: { type: "text" },
|
|
31
|
-
avatar:
|
|
25
|
+
avatar: mediaField
|
|
32
26
|
}
|
|
33
27
|
},
|
|
34
28
|
breadcrumbs: {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* TextSectionStyles 为 text-section 特有的样式字段
|
|
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 TextSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -28,7 +28,7 @@ export interface TextSectionBaseProps {
|
|
|
28
28
|
heading: string;
|
|
29
29
|
description: string;
|
|
30
30
|
buttons: BaseButton[];
|
|
31
|
-
|
|
31
|
+
media: BaseMedia;
|
|
32
32
|
video: string;
|
|
33
33
|
inputPlaceholder: string;
|
|
34
34
|
formButton: BaseButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TextComponentProps, TextSectionBaseProps,
|
|
1
|
+
import type { TextComponentProps, TextSectionBaseProps, BaseMedia } from "../props";
|
|
2
2
|
type Metatag = {
|
|
3
3
|
label: string;
|
|
4
4
|
value: string;
|
|
@@ -6,7 +6,7 @@ type Metatag = {
|
|
|
6
6
|
type ProseContentExtra = {
|
|
7
7
|
prose: string;
|
|
8
8
|
metatags?: Metatag[];
|
|
9
|
-
mediaImage?:
|
|
9
|
+
mediaImage?: BaseMedia;
|
|
10
10
|
};
|
|
11
11
|
export type ProseContentProps = TextComponentProps<ProseContentExtra>;
|
|
12
12
|
export declare const ProseContent: (props: ProseContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
7
7
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -34,7 +34,7 @@ const ProseContent = (props) => {
|
|
|
34
34
|
if (mediaType === "video") {
|
|
35
35
|
return /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
36
36
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
37
|
-
/* @__PURE__ */ jsx(
|
|
37
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: (mediaImage == null ? void 0 : mediaImage.src) ?? "", alt: mediaImage == null ? void 0 : mediaImage.alt, className: "size-full object-cover" }),
|
|
38
38
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" }),
|
|
39
39
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" })
|
|
40
40
|
] }) }),
|
|
@@ -56,7 +56,7 @@ const ProseContent = (props) => {
|
|
|
56
56
|
] })
|
|
57
57
|
] });
|
|
58
58
|
}
|
|
59
|
-
return mediaImage ? /* @__PURE__ */ jsx(
|
|
59
|
+
return mediaImage ? /* @__PURE__ */ jsx(CompoundMedia, { src: mediaImage.src, className: "w-full object-cover", alt: mediaImage.alt }) : null;
|
|
60
60
|
};
|
|
61
61
|
const mediaElement = renderMedia();
|
|
62
62
|
const isTwoColumn = textLayout === "twoColumnProse";
|
|
@@ -134,7 +134,7 @@ declare const conf: {
|
|
|
134
134
|
label: string;
|
|
135
135
|
value: string;
|
|
136
136
|
}[];
|
|
137
|
-
mediaImage?: import("@/components/puck-core/core/props/media").
|
|
137
|
+
mediaImage?: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
138
138
|
};
|
|
139
139
|
render: (props: ProseContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
140
140
|
};
|