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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const SideMediaCta = (props) => {
|
|
@@ -10,7 +10,7 @@ const SideMediaCta = (props) => {
|
|
|
10
10
|
heading,
|
|
11
11
|
description,
|
|
12
12
|
buttons,
|
|
13
|
-
|
|
13
|
+
medias,
|
|
14
14
|
// inputPlaceholder,
|
|
15
15
|
// formButton,
|
|
16
16
|
// termsAndConditions,
|
|
@@ -35,7 +35,7 @@ const SideMediaCta = (props) => {
|
|
|
35
35
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
36
36
|
renderActions()
|
|
37
37
|
] });
|
|
38
|
-
const mediaContent = /* @__PURE__ */ jsx("div", { className: cn({ "flex items-center justify-center": bordered }), children: /* @__PURE__ */ jsx(
|
|
38
|
+
const mediaContent = /* @__PURE__ */ jsx("div", { className: cn({ "flex items-center justify-center": bordered }), children: /* @__PURE__ */ jsx(CompoundMedia, { src: (_a = medias == null ? void 0 : medias[0]) == null ? void 0 : _a.src, className: "w-full object-cover", alt: (_b = medias == null ? void 0 : medias[0]) == null ? void 0 : _b.alt }) });
|
|
39
39
|
const isLeftMedia = mediaPosition === "left";
|
|
40
40
|
if (bordered) {
|
|
41
41
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-6 md:py-8 lg:py-10", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx("div", { className: "grid auto-cols-fr grid-cols-1 border border-border-primary lg:grid-cols-2", children: isLeftMedia ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -57,7 +57,7 @@ const SideMediaCtaDefaults = {
|
|
|
57
57
|
heading: "Medium length heading goes here",
|
|
58
58
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
59
59
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
60
|
-
|
|
60
|
+
medias: [
|
|
61
61
|
{
|
|
62
62
|
src: "https://picsum.photos/seed/cta-side/800/600",
|
|
63
63
|
alt: "Placeholder image"
|
|
@@ -91,7 +91,7 @@ declare const conf: {
|
|
|
91
91
|
readonly instructions: "Buttons must use the same size";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
medias: {
|
|
95
95
|
readonly type: "array";
|
|
96
96
|
readonly max: 10;
|
|
97
97
|
readonly getItemSummary: (item: {
|
|
@@ -220,7 +220,7 @@ declare const conf: {
|
|
|
220
220
|
};
|
|
221
221
|
};
|
|
222
222
|
defaultProps: Omit<import("../props").CtaSectionBaseProps, "inputPlaceholder" | "formButton" | "termsAndConditions"> & {
|
|
223
|
-
logos: import("@/components/puck-core/core/props/media").
|
|
223
|
+
logos: import("@/components/puck-core/core/props/media").BaseMedia[];
|
|
224
224
|
};
|
|
225
225
|
render: (props: TextBlockCtaProps) => import("react/jsx-runtime").JSX.Element;
|
|
226
226
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextBlockCta, TextBlockCtaDefaults } from "./text-block-cta.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -9,12 +9,12 @@ const conf = {
|
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
|
-
|
|
12
|
+
medias: mediasField,
|
|
13
13
|
video: { type: "text" },
|
|
14
14
|
// inputPlaceholder: { type: "text" },
|
|
15
15
|
// formButton: buttonField,
|
|
16
16
|
// termsAndConditions: { type: "textarea" },
|
|
17
|
-
logos:
|
|
17
|
+
logos: mediasField,
|
|
18
18
|
styles: {
|
|
19
19
|
type: "object",
|
|
20
20
|
label: "Styles",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { CtaComponentProps, CtaSectionBaseProps,
|
|
1
|
+
import type { CtaComponentProps, CtaSectionBaseProps, BaseMedia } from "../props";
|
|
2
2
|
export type TextBlockCtaProps = CtaComponentProps<{
|
|
3
|
-
logos:
|
|
3
|
+
logos: BaseMedia[];
|
|
4
4
|
}>;
|
|
5
5
|
export declare const TextBlockCta: (props: TextBlockCtaProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const TextBlockCtaDefaults: Omit<CtaSectionBaseProps, "inputPlaceholder" | "formButton" | "termsAndConditions"> & {
|
|
7
|
-
logos:
|
|
7
|
+
logos: BaseMedia[];
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const TextBlockCta = (props) => {
|
|
@@ -9,7 +9,7 @@ const TextBlockCta = (props) => {
|
|
|
9
9
|
heading,
|
|
10
10
|
description,
|
|
11
11
|
buttons,
|
|
12
|
-
|
|
12
|
+
medias,
|
|
13
13
|
video,
|
|
14
14
|
// inputPlaceholder,
|
|
15
15
|
// formButton,
|
|
@@ -42,18 +42,18 @@ const TextBlockCta = (props) => {
|
|
|
42
42
|
return /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) });
|
|
43
43
|
};
|
|
44
44
|
const renderBottomContent = () => {
|
|
45
|
-
if (bottomContent === "image" &&
|
|
45
|
+
if (bottomContent === "image" && medias && medias.length > 0) {
|
|
46
46
|
return /* @__PURE__ */ jsx("div", { className: "mt-12 md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(
|
|
47
|
-
|
|
47
|
+
CompoundMedia,
|
|
48
48
|
{
|
|
49
|
-
src:
|
|
50
|
-
alt:
|
|
49
|
+
src: medias[0].src,
|
|
50
|
+
alt: medias[0].alt,
|
|
51
51
|
className: "w-full object-cover"
|
|
52
52
|
}
|
|
53
53
|
) });
|
|
54
54
|
}
|
|
55
55
|
if (bottomContent === "logos" && logos && logos.length > 0) {
|
|
56
|
-
return /* @__PURE__ */ jsx("div", { className: "mt-12 flex flex-wrap items-center justify-center gap-x-8 gap-y-6 md:mt-18 lg:mt-20", children: logos.map((logo, index) => /* @__PURE__ */ jsx(
|
|
56
|
+
return /* @__PURE__ */ jsx("div", { className: "mt-12 flex flex-wrap items-center justify-center gap-x-8 gap-y-6 md:mt-18 lg:mt-20", children: logos.map((logo, index) => /* @__PURE__ */ jsx(CompoundMedia, { src: logo.src, alt: logo.alt, className: "max-h-12" }, index)) });
|
|
57
57
|
}
|
|
58
58
|
return null;
|
|
59
59
|
};
|
|
@@ -63,7 +63,7 @@ const TextBlockCta = (props) => {
|
|
|
63
63
|
if (isFullscreenBg) {
|
|
64
64
|
return /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 z-0", children: [
|
|
65
65
|
isBgImage && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
66
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: (_a = medias == null ? void 0 : medias[0]) == null ? void 0 : _a.src, className: "size-full object-cover", alt: (_b = medias == null ? void 0 : medias[0]) == null ? void 0 : _b.alt }),
|
|
67
67
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
|
|
68
68
|
] }),
|
|
69
69
|
isBgVideo && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -78,7 +78,7 @@ const TextBlockCta = (props) => {
|
|
|
78
78
|
var _a, _b;
|
|
79
79
|
if (!isContainerBg) return null;
|
|
80
80
|
return /* @__PURE__ */ jsxs("div", { className: "mt-12 md:mt-18 lg:mt-20", children: [
|
|
81
|
-
isBgImage && /* @__PURE__ */ jsx(
|
|
81
|
+
isBgImage && /* @__PURE__ */ jsx(CompoundMedia, { src: (_a = medias == null ? void 0 : medias[0]) == null ? void 0 : _a.src, className: "w-full object-cover", alt: (_b = medias == null ? void 0 : medias[0]) == null ? void 0 : _b.alt }),
|
|
82
82
|
isBgVideo && /* @__PURE__ */ jsx("video", { className: "w-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) })
|
|
83
83
|
] });
|
|
84
84
|
};
|
|
@@ -127,7 +127,7 @@ const TextBlockCtaDefaults = {
|
|
|
127
127
|
heading: "Medium length heading goes here",
|
|
128
128
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
129
129
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
130
|
-
|
|
130
|
+
medias: [
|
|
131
131
|
{
|
|
132
132
|
src: "https://picsum.photos/seed/cta-bg/1920/1080",
|
|
133
133
|
alt: "Placeholder image"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../../../shadcn/button.js";
|
|
3
|
-
import {
|
|
3
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
4
4
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
const IconCardFaq = (props) => {
|
|
@@ -23,7 +23,7 @@ const IconCardFaq = (props) => {
|
|
|
23
23
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
24
24
|
] }),
|
|
25
25
|
/* @__PURE__ */ jsx("div", { className: "container grid grid-cols-1 items-start justify-center gap-y-12 md:grid-cols-3 md:gap-x-8 md:gap-y-16 lg:gap-x-12 lg:gap-y-16", children: (iconQuestions ?? []).map((q, index) => /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col items-center text-center", children: [
|
|
26
|
-
/* @__PURE__ */ jsx("div", { className: "rb-5 mb-5 md:mb-6", children: /* @__PURE__ */ jsx(
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "rb-5 mb-5 md:mb-6", children: /* @__PURE__ */ jsx(CompoundMedia, { src: q.icon.src, alt: q.icon.alt, className: "size-12" }) }),
|
|
27
27
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 font-bold md:mb-4 md:text-md", children: q.question }),
|
|
28
28
|
/* @__PURE__ */ jsx("p", { children: q.answer })
|
|
29
29
|
] }, index)) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconCardFaq, IconCardFaqDefaults } from "./icon-card-faq.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
|
const conf = {
|
|
6
6
|
fields: {
|
|
7
7
|
heading: headingField,
|
|
@@ -11,7 +11,7 @@ const conf = {
|
|
|
11
11
|
max: 12,
|
|
12
12
|
getItemSummary: (item, index = 0) => item.question || `Question ${index + 1}`,
|
|
13
13
|
arrayFields: {
|
|
14
|
-
icon:
|
|
14
|
+
icon: mediaField,
|
|
15
15
|
question: { type: "text", contentEditable: true },
|
|
16
16
|
answer: { type: "textarea", contentEditable: true }
|
|
17
17
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* FaqSectionStyles 为 FAQ 特有的样式字段
|
|
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 FaqSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -21,7 +21,7 @@ export interface FaqQuestion {
|
|
|
21
21
|
answer: string;
|
|
22
22
|
}
|
|
23
23
|
export interface FaqQuestionWithIcon {
|
|
24
|
-
icon:
|
|
24
|
+
icon: BaseMedia;
|
|
25
25
|
question: string;
|
|
26
26
|
answer: string;
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FeatureComponentProps,
|
|
1
|
+
import type { FeatureComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type FeatureCard = {
|
|
3
|
-
icon:
|
|
3
|
+
icon: BaseMedia;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons?: BaseButton[];
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
8
8
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -11,7 +11,7 @@ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
|
11
11
|
const FeatureCardsGrid = (props) => {
|
|
12
12
|
const {
|
|
13
13
|
features = [],
|
|
14
|
-
|
|
14
|
+
media = { src: "", alt: "" },
|
|
15
15
|
video,
|
|
16
16
|
buttons = [],
|
|
17
17
|
styles
|
|
@@ -31,7 +31,7 @@ const FeatureCardsGrid = (props) => {
|
|
|
31
31
|
if (mediaType === "play") {
|
|
32
32
|
return /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
33
33
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
34
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }),
|
|
35
35
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" }),
|
|
36
36
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" })
|
|
37
37
|
] }) }),
|
|
@@ -56,12 +56,12 @@ const FeatureCardsGrid = (props) => {
|
|
|
56
56
|
if (mediaType === "video") {
|
|
57
57
|
return /* @__PURE__ */ jsx("video", { className: "w-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) });
|
|
58
58
|
}
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
59
|
+
return /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "size-full object-cover", alt: media.alt });
|
|
60
60
|
};
|
|
61
61
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20", children: [
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
63
63
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-x-6 gap-y-8 py-2 sm:grid-cols-2", children: features.map((feature, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
64
|
-
/* @__PURE__ */ jsx("div", { className: "mb-3 md:mb-4", children: /* @__PURE__ */ jsx(
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "mb-3 md:mb-4", children: /* @__PURE__ */ jsx(CompoundMedia, { src: feature.icon.src, className: "size-12", alt: feature.icon.alt }) }),
|
|
65
65
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: feature.heading }),
|
|
66
66
|
/* @__PURE__ */ jsx("p", { children: feature.description }),
|
|
67
67
|
feature.buttons && feature.buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4 flex flex-wrap items-center gap-4", children: feature.buttons.map((button, bIndex) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, bIndex)) })
|
|
@@ -94,7 +94,7 @@ const FeatureCardsGridDefaults = {
|
|
|
94
94
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros."
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
|
-
|
|
97
|
+
media: {
|
|
98
98
|
src: "https://picsum.photos/seed/feature-cards/800/600",
|
|
99
99
|
alt: "Placeholder image"
|
|
100
100
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeatureCardsGrid, FeatureCardsGridDefaults } from "./component.js";
|
|
2
2
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { featureStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -9,14 +9,14 @@ const conf = {
|
|
|
9
9
|
type: "array",
|
|
10
10
|
getItemSummary: (item, index = 0) => item.heading || `Feature ${index + 1}`,
|
|
11
11
|
arrayFields: {
|
|
12
|
-
icon:
|
|
12
|
+
icon: mediaField,
|
|
13
13
|
heading: { type: "text" },
|
|
14
14
|
description: { type: "textarea" },
|
|
15
15
|
buttons: buttonsField
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
buttons: buttonsField,
|
|
19
|
-
|
|
19
|
+
media: mediaField,
|
|
20
20
|
video: { type: "text" },
|
|
21
21
|
styles: {
|
|
22
22
|
type: "object",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { FeatureComponentProps,
|
|
1
|
+
import type { FeatureComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type FeatureListItem = {
|
|
3
|
-
icon:
|
|
3
|
+
icon: BaseMedia;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons?: BaseButton[];
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
8
8
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -11,7 +11,7 @@ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
|
11
11
|
const FeatureListSplit = (props) => {
|
|
12
12
|
const {
|
|
13
13
|
featureSections = [],
|
|
14
|
-
|
|
14
|
+
media = { src: "", alt: "" },
|
|
15
15
|
video,
|
|
16
16
|
buttons = [],
|
|
17
17
|
styles
|
|
@@ -31,7 +31,7 @@ const FeatureListSplit = (props) => {
|
|
|
31
31
|
if (mediaType === "play") {
|
|
32
32
|
return /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
33
33
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
34
|
-
/* @__PURE__ */ jsx(
|
|
34
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "size-full object-cover" }),
|
|
35
35
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" }),
|
|
36
36
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" })
|
|
37
37
|
] }) }),
|
|
@@ -56,12 +56,12 @@ const FeatureListSplit = (props) => {
|
|
|
56
56
|
if (mediaType === "video") {
|
|
57
57
|
return /* @__PURE__ */ jsx("video", { className: "w-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) });
|
|
58
58
|
}
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
59
|
+
return /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "w-full object-cover", alt: media.alt });
|
|
60
60
|
};
|
|
61
61
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20", children: [
|
|
62
62
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
63
63
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-x-6 gap-y-8 py-2", children: featureSections.map((section, index) => /* @__PURE__ */ jsxs("div", { className: "flex self-start", children: [
|
|
64
|
-
/* @__PURE__ */ jsx("div", { className: "mr-6 flex-none self-start", children: /* @__PURE__ */ jsx(
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "mr-6 flex-none self-start", children: /* @__PURE__ */ jsx(CompoundMedia, { src: section.icon.src, className: "size-12", alt: section.icon.alt }) }),
|
|
65
65
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
66
66
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: section.heading }),
|
|
67
67
|
/* @__PURE__ */ jsx("p", { children: section.description }),
|
|
@@ -91,7 +91,7 @@ const FeatureListSplitDefaults = {
|
|
|
91
91
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique."
|
|
92
92
|
}
|
|
93
93
|
],
|
|
94
|
-
|
|
94
|
+
media: {
|
|
95
95
|
src: "https://picsum.photos/seed/feature-list/800/600",
|
|
96
96
|
alt: "Placeholder image"
|
|
97
97
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FeatureListSplit, FeatureListSplitDefaults } from "./component.js";
|
|
2
2
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { featureStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -9,14 +9,14 @@ const conf = {
|
|
|
9
9
|
type: "array",
|
|
10
10
|
getItemSummary: (item, index = 0) => item.heading || `Feature ${index + 1}`,
|
|
11
11
|
arrayFields: {
|
|
12
|
-
icon:
|
|
12
|
+
icon: mediaField,
|
|
13
13
|
heading: { type: "text" },
|
|
14
14
|
description: { type: "textarea" },
|
|
15
15
|
buttons: buttonsField
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
buttons: buttonsField,
|
|
19
|
-
|
|
19
|
+
media: mediaField,
|
|
20
20
|
video: { type: "text" },
|
|
21
21
|
styles: {
|
|
22
22
|
type: "object",
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* FeatureSectionStyles 为 feature 特有的样式字段
|
|
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 FeatureSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -25,7 +25,7 @@ export interface FeatureSectionBaseProps {
|
|
|
25
25
|
heading: string;
|
|
26
26
|
description: string;
|
|
27
27
|
buttons: BaseButton[];
|
|
28
|
-
|
|
28
|
+
media: BaseMedia;
|
|
29
29
|
video: string;
|
|
30
30
|
styles: FeatureSectionStyles;
|
|
31
31
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { FeatureComponentProps,
|
|
1
|
+
import type { FeatureComponentProps, BaseMedia } from "../props";
|
|
2
2
|
type TabItem = {
|
|
3
3
|
value: string;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
|
-
|
|
6
|
+
media?: BaseMedia;
|
|
7
7
|
videoUrl?: string;
|
|
8
8
|
};
|
|
9
9
|
type TabFeatureExtra = {
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "../../../shadcn/tabs.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
8
8
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -53,21 +53,21 @@ const TabFeature = (props) => {
|
|
|
53
53
|
value: tab.value,
|
|
54
54
|
className: "animate-tabs",
|
|
55
55
|
children: [
|
|
56
|
-
tab.
|
|
57
|
-
|
|
56
|
+
tab.media && !tab.videoUrl && /* @__PURE__ */ jsx(
|
|
57
|
+
CompoundMedia,
|
|
58
58
|
{
|
|
59
|
-
src: tab.
|
|
60
|
-
alt: tab.
|
|
59
|
+
src: tab.media.src,
|
|
60
|
+
alt: tab.media.alt,
|
|
61
61
|
className: "size-full object-cover"
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
|
-
tab.videoUrl && tab.
|
|
64
|
+
tab.videoUrl && tab.media && /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
65
65
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
66
66
|
/* @__PURE__ */ jsx(
|
|
67
|
-
|
|
67
|
+
CompoundMedia,
|
|
68
68
|
{
|
|
69
|
-
src: tab.
|
|
70
|
-
alt: tab.
|
|
69
|
+
src: tab.media.src,
|
|
70
|
+
alt: tab.media.alt,
|
|
71
71
|
className: "size-full object-cover"
|
|
72
72
|
}
|
|
73
73
|
),
|
|
@@ -108,7 +108,7 @@ const TabFeatureDefaults = {
|
|
|
108
108
|
value: "tab-1",
|
|
109
109
|
heading: "Short heading goes here",
|
|
110
110
|
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.",
|
|
111
|
-
|
|
111
|
+
media: {
|
|
112
112
|
src: "https://picsum.photos/seed/tab-feature1/800/600",
|
|
113
113
|
alt: "Placeholder image 1"
|
|
114
114
|
}
|
|
@@ -117,7 +117,7 @@ const TabFeatureDefaults = {
|
|
|
117
117
|
value: "tab-2",
|
|
118
118
|
heading: "Short heading goes here",
|
|
119
119
|
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.",
|
|
120
|
-
|
|
120
|
+
media: {
|
|
121
121
|
src: "https://picsum.photos/seed/tab-feature2/800/600",
|
|
122
122
|
alt: "Placeholder image 2"
|
|
123
123
|
}
|
|
@@ -126,7 +126,7 @@ const TabFeatureDefaults = {
|
|
|
126
126
|
value: "tab-3",
|
|
127
127
|
heading: "Short heading goes here",
|
|
128
128
|
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.",
|
|
129
|
-
|
|
129
|
+
media: {
|
|
130
130
|
src: "https://picsum.photos/seed/tab-feature3/800/600",
|
|
131
131
|
alt: "Placeholder image 3"
|
|
132
132
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabFeature, TabFeatureDefaults } from "./component.js";
|
|
2
|
-
import {
|
|
2
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
const conf = {
|
|
4
4
|
fields: {
|
|
5
5
|
defaultTabValue: { type: "text" },
|
|
@@ -10,7 +10,7 @@ const conf = {
|
|
|
10
10
|
value: { type: "text" },
|
|
11
11
|
heading: { type: "text" },
|
|
12
12
|
description: { type: "textarea" },
|
|
13
|
-
|
|
13
|
+
media: mediaField,
|
|
14
14
|
videoUrl: { type: "text" }
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
8
8
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -14,7 +14,7 @@ const TextMediaSplit = (props) => {
|
|
|
14
14
|
heading,
|
|
15
15
|
description,
|
|
16
16
|
buttons = [],
|
|
17
|
-
|
|
17
|
+
media = { src: "", alt: "" },
|
|
18
18
|
video,
|
|
19
19
|
styles
|
|
20
20
|
} = {
|
|
@@ -34,7 +34,7 @@ const TextMediaSplit = (props) => {
|
|
|
34
34
|
if (mediaType === "play") {
|
|
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: media.src, alt: media.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
|
] }) }),
|
|
@@ -59,7 +59,7 @@ const TextMediaSplit = (props) => {
|
|
|
59
59
|
if (mediaType === "video") {
|
|
60
60
|
return /* @__PURE__ */ jsx("video", { className: "w-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) });
|
|
61
61
|
}
|
|
62
|
-
return /* @__PURE__ */ jsx(
|
|
62
|
+
return /* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "w-full object-cover", alt: media.alt });
|
|
63
63
|
};
|
|
64
64
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-y-12 md:grid-cols-2 md:items-center md:gap-x-12 lg:gap-x-20", children: [
|
|
65
65
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -76,7 +76,7 @@ const TextMediaSplitDefaults = {
|
|
|
76
76
|
heading: "Medium length section heading goes here",
|
|
77
77
|
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.",
|
|
78
78
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
79
|
-
|
|
79
|
+
media: {
|
|
80
80
|
src: "https://picsum.photos/seed/feature-split/800/600",
|
|
81
81
|
alt: "Placeholder image"
|
|
82
82
|
},
|