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
package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } 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";
|
|
@@ -13,7 +13,7 @@ const CenterMediaStats = (props) => {
|
|
|
13
13
|
heading,
|
|
14
14
|
description,
|
|
15
15
|
stats,
|
|
16
|
-
|
|
16
|
+
media,
|
|
17
17
|
styles
|
|
18
18
|
} = {
|
|
19
19
|
...CenterMediaStatsDefaults,
|
|
@@ -52,7 +52,7 @@ const CenterMediaStats = (props) => {
|
|
|
52
52
|
if (isPlayButton) {
|
|
53
53
|
return /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
54
54
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
55
|
-
/* @__PURE__ */ jsx(
|
|
55
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, alt: media.alt, className: "aspect-[3/2] size-full object-cover" }),
|
|
56
56
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" }),
|
|
57
57
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" })
|
|
58
58
|
] }) }),
|
|
@@ -74,7 +74,7 @@ const CenterMediaStats = (props) => {
|
|
|
74
74
|
] })
|
|
75
75
|
] });
|
|
76
76
|
}
|
|
77
|
-
return /* @__PURE__ */ jsx(
|
|
77
|
+
return /* @__PURE__ */ jsx(CompoundMedia, { className: "aspect-[3/2] size-full object-cover", src: media.src, alt: media.alt });
|
|
78
78
|
};
|
|
79
79
|
const mediaBlock = /* @__PURE__ */ jsx("div", { children: renderMedia() });
|
|
80
80
|
const statsBlock = /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-y-8 md:grid-cols-3 md:gap-x-8 md:gap-y-12 md:p-8 lg:grid-cols-1 lg:gap-x-0 lg:p-12", children: stats.map((stat, index) => renderStat(stat, index)) });
|
|
@@ -103,7 +103,7 @@ const CenterMediaStatsDefaults = {
|
|
|
103
103
|
{ percentage: "30%", heading: "Short heading goes here" },
|
|
104
104
|
{ percentage: "30%", heading: "Short heading goes here" }
|
|
105
105
|
],
|
|
106
|
-
|
|
106
|
+
media: {
|
|
107
107
|
src: "https://picsum.photos/seed/stats-media/1200/800",
|
|
108
108
|
alt: "Placeholder image"
|
|
109
109
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CenterMediaStats, CenterMediaStatsDefaults } from "./center-media-stats.js";
|
|
2
2
|
import { headingField, descriptionField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { metricsStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -17,7 +17,7 @@ const conf = {
|
|
|
17
17
|
heading: headingField
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
media: mediaField,
|
|
21
21
|
styles: {
|
|
22
22
|
type: "object",
|
|
23
23
|
label: "Styles",
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
const HeaderStatsRow = (props) => {
|
|
7
7
|
const {
|
|
8
8
|
tagline,
|
|
@@ -10,7 +10,7 @@ const HeaderStatsRow = (props) => {
|
|
|
10
10
|
description,
|
|
11
11
|
buttons,
|
|
12
12
|
stats,
|
|
13
|
-
|
|
13
|
+
media,
|
|
14
14
|
styles
|
|
15
15
|
} = {
|
|
16
16
|
...HeaderStatsRowDefaults,
|
|
@@ -50,7 +50,7 @@ const HeaderStatsRow = (props) => {
|
|
|
50
50
|
return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", { relative: hasBg }, sectionClassName), style: sectionStyle, css, children: [
|
|
51
51
|
hasBg && /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 z-0", children: [
|
|
52
52
|
isBgImage && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
53
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "size-full object-cover", alt: media.alt }),
|
|
54
54
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
|
|
55
55
|
] }),
|
|
56
56
|
isBgVideo && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -92,7 +92,7 @@ const HeaderStatsRowDefaults = {
|
|
|
92
92
|
{ percentage: "30%", heading: "Short heading goes here" },
|
|
93
93
|
{ percentage: "30%", heading: "Short heading goes here" }
|
|
94
94
|
],
|
|
95
|
-
|
|
95
|
+
media: {
|
|
96
96
|
src: "https://picsum.photos/seed/stats-bg/1920/1080",
|
|
97
97
|
alt: "Placeholder image"
|
|
98
98
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeaderStatsRow, HeaderStatsRowDefaults } from "./header-stats-row.js";
|
|
2
2
|
import { headingField, descriptionField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { metricsStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -19,7 +19,7 @@ const conf = {
|
|
|
19
19
|
heading: headingField
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
media: mediaField,
|
|
23
23
|
styles: {
|
|
24
24
|
type: "object",
|
|
25
25
|
label: "Styles",
|
|
@@ -99,7 +99,7 @@ declare const conf: {
|
|
|
99
99
|
max: number;
|
|
100
100
|
getItemSummary: (item: {
|
|
101
101
|
heading?: string;
|
|
102
|
-
|
|
102
|
+
media?: any;
|
|
103
103
|
}, index?: number) => string;
|
|
104
104
|
arrayFields: {
|
|
105
105
|
percentage: {
|
|
@@ -113,7 +113,7 @@ declare const conf: {
|
|
|
113
113
|
readonly type: "textarea";
|
|
114
114
|
readonly contentEditable: true;
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
media: {
|
|
117
117
|
type: "object";
|
|
118
118
|
objectFields: {
|
|
119
119
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MixedGridStats, MixedGridStatsDefaults } from "./mixed-grid-stats.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 { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { metricsStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -13,12 +13,12 @@ const conf = {
|
|
|
13
13
|
cards: {
|
|
14
14
|
type: "array",
|
|
15
15
|
max: 8,
|
|
16
|
-
getItemSummary: (item, index = 0) => item.heading || (item.
|
|
16
|
+
getItemSummary: (item, index = 0) => item.heading || (item.media ? "Media Card" : `Card ${index + 1}`),
|
|
17
17
|
arrayFields: {
|
|
18
18
|
percentage: { type: "text" },
|
|
19
19
|
heading: headingField,
|
|
20
20
|
description: descriptionField,
|
|
21
|
-
|
|
21
|
+
media: mediaField
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
styles: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { MetricsComponentProps,
|
|
1
|
+
import type { MetricsComponentProps, BaseMedia } from "../props";
|
|
2
2
|
type MixedCard = {
|
|
3
3
|
percentage?: string;
|
|
4
4
|
heading?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
|
|
6
|
+
media?: BaseMedia;
|
|
7
7
|
};
|
|
8
8
|
export type MixedGridStatsProps = MetricsComponentProps<{
|
|
9
9
|
cards: MixedCard[];
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import React__default from "react";
|
|
7
7
|
const MixedGridStats = (props) => {
|
|
8
8
|
const {
|
|
@@ -42,12 +42,12 @@ const MixedGridStats = (props) => {
|
|
|
42
42
|
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
43
43
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
44
44
|
] }) }),
|
|
45
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3", children: cards.map((card, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: card.
|
|
46
|
-
|
|
45
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3", children: cards.map((card, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: card.media ? /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
46
|
+
CompoundMedia,
|
|
47
47
|
{
|
|
48
48
|
className: "aspect-[3/2] size-full object-cover",
|
|
49
|
-
src: card.
|
|
50
|
-
alt: card.
|
|
49
|
+
src: card.media.src,
|
|
50
|
+
alt: card.media.alt
|
|
51
51
|
}
|
|
52
52
|
) }) : /* @__PURE__ */ jsx("div", { className: cn(
|
|
53
53
|
"border border-border-primary p-8",
|
|
@@ -84,7 +84,7 @@ const MixedGridStatsDefaults = {
|
|
|
84
84
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
|
|
87
|
+
media: {
|
|
88
88
|
src: "https://picsum.photos/seed/stats-card1/800/600",
|
|
89
89
|
alt: "Placeholder image"
|
|
90
90
|
}
|
|
@@ -100,7 +100,7 @@ const MixedGridStatsDefaults = {
|
|
|
100
100
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
|
|
103
|
+
media: {
|
|
104
104
|
src: "https://picsum.photos/seed/stats-card2/800/600",
|
|
105
105
|
alt: "Placeholder image"
|
|
106
106
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* MetricsSectionStyles 为 Metrics 特有的样式字段
|
|
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 MetricsSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -27,16 +27,16 @@ export interface StatCard {
|
|
|
27
27
|
percentage?: string;
|
|
28
28
|
heading?: string;
|
|
29
29
|
description?: string;
|
|
30
|
-
|
|
30
|
+
media?: BaseMedia;
|
|
31
31
|
}
|
|
32
32
|
export interface TabStat {
|
|
33
33
|
value: string;
|
|
34
34
|
percentage: string;
|
|
35
35
|
heading: string;
|
|
36
36
|
description: string;
|
|
37
|
-
|
|
37
|
+
media?: BaseMedia;
|
|
38
38
|
video?: {
|
|
39
|
-
|
|
39
|
+
media: BaseMedia;
|
|
40
40
|
url: string;
|
|
41
41
|
};
|
|
42
42
|
}
|
|
@@ -46,7 +46,7 @@ export interface MetricsSectionBaseProps {
|
|
|
46
46
|
description: string;
|
|
47
47
|
buttons: BaseButton[];
|
|
48
48
|
stats: StatItem[];
|
|
49
|
-
|
|
49
|
+
media: BaseMedia;
|
|
50
50
|
styles: MetricsSectionStyles;
|
|
51
51
|
}
|
|
52
52
|
export declare const metricsStyleFields: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SplitStats, SplitStatsDefaults } from "./split-stats.js";
|
|
2
2
|
import { headingField, descriptionField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { metricsStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -19,7 +19,7 @@ const conf = {
|
|
|
19
19
|
heading: headingField
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
media: mediaField,
|
|
23
23
|
styles: {
|
|
24
24
|
type: "object",
|
|
25
25
|
label: "Styles",
|
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
const SplitStats = (props) => {
|
|
7
7
|
const {
|
|
8
8
|
tagline,
|
|
@@ -10,7 +10,7 @@ const SplitStats = (props) => {
|
|
|
10
10
|
description,
|
|
11
11
|
buttons,
|
|
12
12
|
stats,
|
|
13
|
-
|
|
13
|
+
media,
|
|
14
14
|
styles
|
|
15
15
|
} = {
|
|
16
16
|
...SplitStatsDefaults,
|
|
@@ -50,7 +50,7 @@ const SplitStats = (props) => {
|
|
|
50
50
|
return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", { relative: hasBg }, sectionClassName), style: sectionStyle, css, children: [
|
|
51
51
|
hasBg && /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 z-0", children: [
|
|
52
52
|
isBgImage && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
53
|
-
/* @__PURE__ */ jsx(
|
|
53
|
+
/* @__PURE__ */ jsx(CompoundMedia, { src: media.src, className: "size-full object-cover", alt: media.alt }),
|
|
54
54
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
|
|
55
55
|
] }),
|
|
56
56
|
isBgVideo && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -86,7 +86,7 @@ const SplitStatsDefaults = {
|
|
|
86
86
|
{ percentage: "50%", heading: "Short heading goes here" },
|
|
87
87
|
{ percentage: "50%", heading: "Short heading goes here" }
|
|
88
88
|
],
|
|
89
|
-
|
|
89
|
+
media: {
|
|
90
90
|
src: "https://picsum.photos/seed/stats-split-bg/1920/1080",
|
|
91
91
|
alt: "Placeholder image"
|
|
92
92
|
},
|
|
@@ -39,7 +39,7 @@ declare const conf: {
|
|
|
39
39
|
readonly type: "textarea";
|
|
40
40
|
readonly contentEditable: true;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
media: {
|
|
43
43
|
type: "object";
|
|
44
44
|
objectFields: {
|
|
45
45
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -51,7 +51,7 @@ declare const conf: {
|
|
|
51
51
|
video: {
|
|
52
52
|
type: string;
|
|
53
53
|
objectFields: {
|
|
54
|
-
|
|
54
|
+
media: {
|
|
55
55
|
type: "object";
|
|
56
56
|
objectFields: {
|
|
57
57
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TabStats, TabStatsDefaults } from "./tab-stats.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { metricsStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -18,11 +18,11 @@ const conf = {
|
|
|
18
18
|
percentage: { type: "text" },
|
|
19
19
|
heading: headingField,
|
|
20
20
|
description: descriptionField,
|
|
21
|
-
|
|
21
|
+
media: mediaField,
|
|
22
22
|
video: {
|
|
23
23
|
type: "object",
|
|
24
24
|
objectFields: {
|
|
25
|
-
|
|
25
|
+
media: mediaField,
|
|
26
26
|
url: { type: "text" }
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { MetricsComponentProps,
|
|
1
|
+
import type { MetricsComponentProps, BaseMedia } from "../props";
|
|
2
2
|
type TabStatItem = {
|
|
3
3
|
value: string;
|
|
4
4
|
percentage: string;
|
|
5
5
|
heading: string;
|
|
6
6
|
description: string;
|
|
7
|
-
|
|
7
|
+
media?: BaseMedia;
|
|
8
8
|
video?: {
|
|
9
|
-
|
|
9
|
+
media: BaseMedia;
|
|
10
10
|
url: string;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -4,7 +4,7 @@ import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_r
|
|
|
4
4
|
import { VideoIframe } from "../../../shadcn/video-iframe.js";
|
|
5
5
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
6
6
|
import { TabsContent, TabsList, TabsTrigger, Tabs } from "../../../shadcn/tabs.js";
|
|
7
|
-
import {
|
|
7
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
10
|
const TabStats = (props) => {
|
|
@@ -32,21 +32,21 @@ const TabStats = (props) => {
|
|
|
32
32
|
value: tab.value,
|
|
33
33
|
className: "animate-tabs",
|
|
34
34
|
children: /* @__PURE__ */ jsxs("div", { className: "relative size-full", children: [
|
|
35
|
-
tab.
|
|
36
|
-
|
|
35
|
+
tab.media && /* @__PURE__ */ jsx(
|
|
36
|
+
CompoundMedia,
|
|
37
37
|
{
|
|
38
|
-
src: tab.
|
|
39
|
-
alt: tab.
|
|
38
|
+
src: tab.media.src,
|
|
39
|
+
alt: tab.media.alt,
|
|
40
40
|
className: "size-full object-cover"
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
43
|
tab.video && /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
44
44
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
45
45
|
/* @__PURE__ */ jsx(
|
|
46
|
-
|
|
46
|
+
CompoundMedia,
|
|
47
47
|
{
|
|
48
|
-
src: tab.video.
|
|
49
|
-
alt: tab.video.
|
|
48
|
+
src: tab.video.media.src,
|
|
49
|
+
alt: tab.video.media.alt,
|
|
50
50
|
className: "size-full object-cover"
|
|
51
51
|
}
|
|
52
52
|
),
|
|
@@ -113,7 +113,7 @@ const TabStatsDefaults = {
|
|
|
113
113
|
percentage: "50%",
|
|
114
114
|
heading: "Short heading goes here",
|
|
115
115
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
116
|
-
|
|
116
|
+
media: {
|
|
117
117
|
src: "https://picsum.photos/seed/stats-tab1/800/600",
|
|
118
118
|
alt: "Placeholder image 1"
|
|
119
119
|
}
|
|
@@ -124,7 +124,7 @@ const TabStatsDefaults = {
|
|
|
124
124
|
heading: "Short heading goes here",
|
|
125
125
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
126
126
|
video: {
|
|
127
|
-
|
|
127
|
+
media: {
|
|
128
128
|
src: "https://picsum.photos/seed/stats-tab2/800/600",
|
|
129
129
|
alt: "Placeholder image 2"
|
|
130
130
|
},
|
|
@@ -136,7 +136,7 @@ const TabStatsDefaults = {
|
|
|
136
136
|
percentage: "50%",
|
|
137
137
|
heading: "Short heading goes here",
|
|
138
138
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
139
|
-
|
|
139
|
+
media: {
|
|
140
140
|
src: "https://picsum.photos/seed/stats-tab3/800/600",
|
|
141
141
|
alt: "Placeholder image 3"
|
|
142
142
|
}
|
|
@@ -220,6 +220,19 @@ const PricingComparisonTableDefaults = {
|
|
|
220
220
|
defaultFeatureCategory,
|
|
221
221
|
defaultFeatureCategory
|
|
222
222
|
],
|
|
223
|
+
defaultTabValue: "monthly",
|
|
224
|
+
tabs: [
|
|
225
|
+
{
|
|
226
|
+
value: "monthly",
|
|
227
|
+
tabName: "Monthly",
|
|
228
|
+
pricingPlans: defaultPlans
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
value: "yearly",
|
|
232
|
+
tabName: "Yearly",
|
|
233
|
+
pricingPlans: defaultPlans
|
|
234
|
+
}
|
|
235
|
+
],
|
|
223
236
|
styles: {
|
|
224
237
|
tabSwitching: false,
|
|
225
238
|
tableStyle: "border-separated",
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* PricingSectionStyles 为 pricing 特有的样式字段
|
|
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 PricingSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PricingComponentProps,
|
|
1
|
+
import type { PricingComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type PricingPlan = {
|
|
3
|
-
icon?:
|
|
3
|
+
icon?: BaseMedia;
|
|
4
4
|
planName: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
monthlyPrice: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiCheck } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const SinglePricingCard = (props) => {
|
|
@@ -25,7 +25,7 @@ const PricingPlanCard = ({ plan, cardLayout }) => {
|
|
|
25
25
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
26
26
|
/* @__PURE__ */ jsxs("div", { className: "mb-6 flex items-start justify-between md:mb-8", children: [
|
|
27
27
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
28
|
-
plan.icon && /* @__PURE__ */ jsx(
|
|
28
|
+
plan.icon && /* @__PURE__ */ jsx(CompoundMedia, { src: plan.icon.src, alt: plan.icon.alt, className: "size-8" }),
|
|
29
29
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
30
30
|
/* @__PURE__ */ jsx("h6", { className: "text-md font-bold md:text-xl", children: plan.planName }),
|
|
31
31
|
plan.description && /* @__PURE__ */ jsx("p", { className: "text-sm", children: plan.description })
|
|
@@ -87,7 +87,7 @@ const PricingPlanCard = ({ plan, cardLayout }) => {
|
|
|
87
87
|
" yearly"
|
|
88
88
|
] })
|
|
89
89
|
] }),
|
|
90
|
-
plan.icon && /* @__PURE__ */ jsx(
|
|
90
|
+
plan.icon && /* @__PURE__ */ jsx(CompoundMedia, { src: plan.icon.src, alt: plan.icon.alt, className: "size-8" })
|
|
91
91
|
] }),
|
|
92
92
|
/* @__PURE__ */ jsx("div", { className: "mb-8 grid grid-cols-1 gap-4 py-2", children: plan.features.map((feature, index) => /* @__PURE__ */ jsxs("div", { className: "flex self-start", children: [
|
|
93
93
|
/* @__PURE__ */ jsx("div", { className: "mr-4 flex-none self-start", children: /* @__PURE__ */ jsx(BiCheck, { className: "size-6" }) }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PricingComponentProps,
|
|
1
|
+
import type { PricingComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type FeatureSection = {
|
|
3
|
-
icon:
|
|
3
|
+
icon: BaseMedia;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiCheck } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const SplitPricing = (props) => {
|
|
@@ -18,7 +18,7 @@ const SplitPricing = (props) => {
|
|
|
18
18
|
] }),
|
|
19
19
|
/* @__PURE__ */ jsxs("div", { className: "grid w-full grid-cols-1 items-center gap-y-12 md:gap-x-12 md:gap-y-16 lg:grid-cols-2 lg:gap-x-20", children: [
|
|
20
20
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-x-6 gap-y-8 py-2", children: featureSections.map((featureSection, index) => /* @__PURE__ */ jsxs("div", { className: "flex self-start", children: [
|
|
21
|
-
/* @__PURE__ */ jsx("div", { className: "mr-6 flex-none self-start", children: /* @__PURE__ */ jsx(
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "mr-6 flex-none self-start", children: /* @__PURE__ */ jsx(CompoundMedia, { src: featureSection.icon.src, className: "size-8", alt: featureSection.icon.alt }) }),
|
|
22
22
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
23
23
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-md font-bold leading-[1.4] md:mb-4 md:text-xl", children: featureSection.heading }),
|
|
24
24
|
/* @__PURE__ */ jsx("p", { children: featureSection.description })
|
|
@@ -74,7 +74,8 @@ const SplitPricingDefaults = {
|
|
|
74
74
|
monthlyPrice: "$19",
|
|
75
75
|
features: Array(10).fill("Feature text goes here"),
|
|
76
76
|
button: { label: "Get started" }
|
|
77
|
-
}
|
|
77
|
+
},
|
|
78
|
+
styles: {}
|
|
78
79
|
};
|
|
79
80
|
export {
|
|
80
81
|
SplitPricing,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PricingComponentProps,
|
|
1
|
+
import type { PricingComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type Billing = "monthly" | "yearly";
|
|
3
3
|
type PricingPlan = {
|
|
4
|
-
icon?:
|
|
4
|
+
icon?: BaseMedia;
|
|
5
5
|
planName: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
price: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PricingComponentProps,
|
|
1
|
+
import type { PricingComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type Billing = "monthly" | "yearly";
|
|
3
3
|
type PricingPlan = {
|
|
4
|
-
icon?:
|
|
4
|
+
icon?: BaseMedia;
|
|
5
5
|
planName: string;
|
|
6
6
|
price: string;
|
|
7
7
|
discount?: string;
|