dune-react 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/puck-base/article-card.d.ts +2 -2
- package/dist/components/puck-base/article-card.js +2 -2
- package/dist/components/puck-base/card.d.ts +2 -2
- package/dist/components/puck-base/card.js +2 -2
- package/dist/components/puck-base/index.d.ts +2 -1
- package/dist/components/puck-base/media.d.ts +12 -0
- package/dist/components/puck-base/media.js +576 -0
- package/dist/components/puck-base/social-links.d.ts +7 -0
- package/dist/components/puck-base/social-links.js +23 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +6 -6
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +1 -1
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +2 -2
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +42 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +10 -10
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.d.ts +2 -2
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.js +3 -3
- package/dist/components/puck-block/banner-sections/props.d.ts +9 -12
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -5
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -5
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +4 -8
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -5
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -8
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -8
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +10 -14
- package/dist/components/puck-block/contact-sections/props.d.ts +5 -16
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.d.ts +7 -2
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -2
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +57 -8
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +7 -7
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +40 -47
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +2 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +6 -6
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +2 -2
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +4 -4
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -2
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +10 -10
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.d.ts +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +2 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.js +2 -2
- package/dist/components/puck-block/faq-sections/props.d.ts +4 -4
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +7 -7
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -3
- package/dist/components/puck-block/feature-sections/feature-list-split/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +6 -6
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -3
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +12 -12
- package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/tab-feature/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -5
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +2 -2
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +2 -2
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +2 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.d.ts +7 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +50 -10
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +9 -9
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +50 -10
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +3 -3
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +50 -10
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +50 -10
- package/dist/components/puck-block/footer-sections/props.d.ts +17 -10
- package/dist/components/puck-block/footer-sections/props.js +8 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +12 -12
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +12 -12
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +14 -14
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +7 -7
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +6 -6
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +9 -9
- package/dist/components/puck-block/gallery-sections/props.d.ts +8 -8
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +11 -11
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +5 -5
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -26
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +6 -6
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +2 -2
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +7 -7
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +31 -24
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +81 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +8 -4
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +32 -25
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +81 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +5 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +27 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +80 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +23 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +80 -3
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +53 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +3 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +13 -6
- package/dist/components/puck-block/header-sections/props.d.ts +17 -5
- package/dist/components/puck-block/header-sections/props.js +8 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +53 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +5 -4
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +9 -5
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/carousel-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +14 -14
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +16 -16
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.d.ts +3 -3
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +7 -7
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +18 -18
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/props.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +9 -9
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +12 -12
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +13 -13
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +3 -3
- package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.d.ts +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +4 -4
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +11 -11
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +7 -7
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -5
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +4 -4
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +7 -7
- package/dist/components/puck-block/metrics-sections/props.d.ts +6 -6
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +4 -4
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +2 -2
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +3 -3
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +11 -11
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +4 -4
- package/dist/components/puck-block/pricing-sections/props.d.ts +3 -3
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +2 -2
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +4 -4
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.d.ts +2 -2
- package/dist/components/puck-block/registry.generated.d.ts +694 -118
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/props.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +8 -8
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +2 -2
- package/dist/components/puck-block/team-sections/props.d.ts +4 -5
- package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-grid/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-grid/component.js +6 -6
- package/dist/components/puck-block/team-sections/team-inline-card/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-two-column/component.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-two-column/component.js +7 -7
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +8 -8
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +4 -4
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +10 -10
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +7 -7
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -3
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +2 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +5 -5
- package/dist/components/puck-block/testimonial-sections/props.d.ts +6 -7
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +3 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +6 -3
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +5 -5
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts +4 -4
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +9 -9
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +3 -3
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +8 -8
- package/dist/components/puck-block/text-sections/blog-article/component.d.ts +4 -7
- package/dist/components/puck-block/text-sections/blog-article/component.js +9 -17
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +39 -14
- package/dist/components/puck-block/text-sections/blog-article/index.js +4 -10
- package/dist/components/puck-block/text-sections/props.d.ts +3 -3
- package/dist/components/puck-block/text-sections/prose-content/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-content/component.js +3 -3
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/prose-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -5
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/index.js +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +4 -4
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +2 -2
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +2 -2
- package/dist/components/puck-block/text-sections/text-header/component.d.ts +2 -2
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +1 -1
- package/dist/components/puck-core/core/context/editor-context.d.ts +2 -0
- package/dist/components/puck-core/core/fields.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.d.ts +3 -3
- package/dist/components/puck-core/core/props/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/index.js +7 -0
- package/dist/components/puck-core/core/props/interactive.d.ts +44 -1
- package/dist/components/puck-core/core/props/interactive.js +24 -1
- package/dist/components/puck-core/core/props/media.d.ts +8 -8
- package/dist/components/puck-core/core/props/media.js +21 -21
- package/dist/components/puck-core/core/social-icons.d.ts +5 -0
- package/dist/components/puck-core/core/social-icons.js +48 -0
- package/dist/components/puck-core/core/with-editable.js +9 -2
- package/dist/components/puck-core/fields/media-upload-field.d.ts +7 -0
- package/dist/components/puck-core/fields/{image-upload-field.js → media-upload-field.js} +71 -28
- package/dist/components/puck-core/index.d.ts +2 -2
- package/dist/components/shadcn/tabs.d.ts +2 -1
- package/dist/components/shadcn/tabs.js +21 -3
- package/dist/components/shadcn/video-iframe.d.ts +2 -1
- package/dist/components/shadcn/video-iframe.js +7 -6
- package/dist/index.js +15 -12
- package/package.json +2 -2
- package/dist/components/puck-base/image.d.ts +0 -6
- package/dist/components/puck-base/image.js +0 -360
- package/dist/components/puck-core/fields/image-upload-field.d.ts +0 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps,
|
|
1
|
+
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseMedia } from "../props";
|
|
2
2
|
type TimelineItem = {
|
|
3
3
|
date: string;
|
|
4
4
|
description: string;
|
|
5
|
-
|
|
5
|
+
media?: BaseMedia;
|
|
6
6
|
};
|
|
7
7
|
type CompactTimelineExtra = {
|
|
8
8
|
timelineItems: TimelineItem[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const CompactTimeline = (props) => {
|
|
7
7
|
const {
|
|
@@ -54,7 +54,7 @@ const CompactEntry = ({
|
|
|
54
54
|
const content = /* @__PURE__ */ jsxs("div", { className: cn("mb-8 flex flex-col items-start md:mb-0 md:mr-4", !isEven && "order-last md:order-none"), children: [
|
|
55
55
|
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-xl font-bold md:text-2xl", children: item.date }),
|
|
56
56
|
/* @__PURE__ */ jsx("p", { children: item.description }),
|
|
57
|
-
hasImage && item.
|
|
57
|
+
hasImage && item.media && /* @__PURE__ */ jsx("div", { className: "mt-4 w-full", children: /* @__PURE__ */ jsx(CompoundMedia, { src: item.media.src, alt: item.media.alt, className: "w-full object-cover" }) })
|
|
58
58
|
] });
|
|
59
59
|
const line = /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center md:w-full md:flex-row", children: [
|
|
60
60
|
/* @__PURE__ */ jsx("div", { className: "z-20 size-[0.9375rem] flex-none rounded-full bg-black shadow-[0_0_0_8px_white]" }),
|
|
@@ -80,7 +80,7 @@ const CompactEntry = ({
|
|
|
80
80
|
const defaultItem = {
|
|
81
81
|
date: "Date",
|
|
82
82
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
83
|
-
|
|
83
|
+
media: {
|
|
84
84
|
src: "https://picsum.photos/seed/compact-tl/400/300",
|
|
85
85
|
alt: "Timeline image"
|
|
86
86
|
}
|
|
@@ -106,7 +106,7 @@ declare const conf: {
|
|
|
106
106
|
description: {
|
|
107
107
|
type: string;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
media: {
|
|
110
110
|
type: "object";
|
|
111
111
|
objectFields: {
|
|
112
112
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -161,7 +161,7 @@ declare const conf: {
|
|
|
161
161
|
timelineItems: {
|
|
162
162
|
date: string;
|
|
163
163
|
description: string;
|
|
164
|
-
|
|
164
|
+
media?: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
165
165
|
}[];
|
|
166
166
|
};
|
|
167
167
|
render: (props: CompactTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompactTimeline, CompactTimelineDefaults } from "./component.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 { showcaseStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -16,7 +16,7 @@ const conf = {
|
|
|
16
16
|
arrayFields: {
|
|
17
17
|
date: { type: "text" },
|
|
18
18
|
description: { type: "textarea" },
|
|
19
|
-
|
|
19
|
+
media: mediaField
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
styles: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps,
|
|
1
|
+
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseMedia } from "../props";
|
|
2
2
|
type TimelineItem = {
|
|
3
3
|
date: string;
|
|
4
4
|
description: string;
|
|
5
|
-
|
|
5
|
+
media?: BaseMedia;
|
|
6
6
|
};
|
|
7
7
|
type HorizontalTimelineExtra = {
|
|
8
8
|
timelineItems: TimelineItem[];
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "../../../shadcn/carousel.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
9
|
const HorizontalTimeline = (props) => {
|
|
@@ -52,7 +52,7 @@ const HorizontalTimeline = (props) => {
|
|
|
52
52
|
/* @__PURE__ */ jsxs("div", { className: "px-8 text-center", children: [
|
|
53
53
|
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-xl font-bold md:text-2xl", children: item.date }),
|
|
54
54
|
/* @__PURE__ */ jsx("p", { children: item.description }),
|
|
55
|
-
hasImage && item.
|
|
55
|
+
hasImage && item.media && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(CompoundMedia, { src: item.media.src, alt: item.media.alt, className: "w-full object-cover" }) })
|
|
56
56
|
] })
|
|
57
57
|
] }) }, index)) }),
|
|
58
58
|
currentIndex > 0 && /* @__PURE__ */ jsx(CarouselPrevious, { className: "size-12" }),
|
|
@@ -64,7 +64,7 @@ const HorizontalTimeline = (props) => {
|
|
|
64
64
|
const defaultItem = {
|
|
65
65
|
date: "Date",
|
|
66
66
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
67
|
-
|
|
67
|
+
media: {
|
|
68
68
|
src: "https://picsum.photos/seed/h-timeline/400/300",
|
|
69
69
|
alt: "Timeline image"
|
|
70
70
|
}
|
|
@@ -106,7 +106,7 @@ declare const conf: {
|
|
|
106
106
|
description: {
|
|
107
107
|
type: string;
|
|
108
108
|
};
|
|
109
|
-
|
|
109
|
+
media: {
|
|
110
110
|
type: "object";
|
|
111
111
|
objectFields: {
|
|
112
112
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -161,7 +161,7 @@ declare const conf: {
|
|
|
161
161
|
timelineItems: {
|
|
162
162
|
date: string;
|
|
163
163
|
description: string;
|
|
164
|
-
|
|
164
|
+
media?: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
165
165
|
}[];
|
|
166
166
|
};
|
|
167
167
|
render: (props: HorizontalTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HorizontalTimeline, HorizontalTimelineDefaults } from "./component.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 { showcaseStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -16,7 +16,7 @@ const conf = {
|
|
|
16
16
|
arrayFields: {
|
|
17
17
|
date: { type: "text" },
|
|
18
18
|
description: { type: "textarea" },
|
|
19
|
-
|
|
19
|
+
media: mediaField
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
styles: {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* ShowcaseSectionStyles 为 showcase/timeline 特有的样式字段
|
|
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 ShowcaseSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseButton,
|
|
1
|
+
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseButton, BaseMedia } from "../props";
|
|
2
2
|
type TimelineItem = {
|
|
3
3
|
heading: string;
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons: BaseButton[];
|
|
7
|
-
|
|
7
|
+
media?: BaseMedia;
|
|
8
8
|
};
|
|
9
9
|
type SingleColumnTimelineExtra = {
|
|
10
10
|
timelineItems: TimelineItem[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { useScroll, useTransform, motion } from "motion/react";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -73,7 +73,7 @@ const TimelineEntry = ({
|
|
|
73
73
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-4xl font-bold leading-[1.2] md:mb-4 md:text-5xl lg:text-6xl", children: item.heading }),
|
|
74
74
|
/* @__PURE__ */ jsx("h4", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: item.title }),
|
|
75
75
|
/* @__PURE__ */ jsx("p", { children: item.description }),
|
|
76
|
-
hasImage && item.
|
|
76
|
+
hasImage && item.media && /* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(CompoundMedia, { src: item.media.src, alt: item.media.alt, className: "w-full object-cover" }) }),
|
|
77
77
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center gap-4 md:mt-8", children: item.buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
78
78
|
] })
|
|
79
79
|
] });
|
|
@@ -83,7 +83,7 @@ const defaultItem = {
|
|
|
83
83
|
title: "Short heading here",
|
|
84
84
|
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.",
|
|
85
85
|
buttons: [{ label: "Button", variant: "secondary" }, { label: "Button", variant: "link" }],
|
|
86
|
-
|
|
86
|
+
media: {
|
|
87
87
|
src: "https://picsum.photos/seed/timeline-single/600/400",
|
|
88
88
|
alt: "Timeline image"
|
|
89
89
|
}
|
|
@@ -188,7 +188,7 @@ declare const conf: {
|
|
|
188
188
|
readonly instructions: "Buttons must use the same size";
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
media: {
|
|
192
192
|
type: "object";
|
|
193
193
|
objectFields: {
|
|
194
194
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -256,7 +256,7 @@ declare const conf: {
|
|
|
256
256
|
title: string;
|
|
257
257
|
description: string;
|
|
258
258
|
buttons: import("@/components/puck-core/core/props/interactive").BaseButton[];
|
|
259
|
-
|
|
259
|
+
media?: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
260
260
|
}[];
|
|
261
261
|
};
|
|
262
262
|
render: (props: SingleColumnTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SingleColumnTimeline, SingleColumnTimelineDefaults } from "./component.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 { showcaseStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -18,7 +18,7 @@ const conf = {
|
|
|
18
18
|
title: { type: "text" },
|
|
19
19
|
description: { type: "textarea" },
|
|
20
20
|
buttons: buttonsField,
|
|
21
|
-
|
|
21
|
+
media: mediaField
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
styles: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseButton,
|
|
1
|
+
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseButton, BaseMedia } from "../props";
|
|
2
2
|
type TimelineItem = {
|
|
3
3
|
date: string;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons: BaseButton[];
|
|
7
|
-
|
|
7
|
+
media?: BaseMedia;
|
|
8
8
|
};
|
|
9
9
|
type StickyScrollTimelineExtra = {
|
|
10
10
|
timelines: TimelineItem[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { useScroll, useTransform, motion } from "motion/react";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -71,7 +71,7 @@ const TimelineEntry = ({
|
|
|
71
71
|
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-4xl font-bold leading-[1.2] md:mb-4 md:text-5xl lg:text-6xl", children: timeline.date }),
|
|
72
72
|
/* @__PURE__ */ jsx("h4", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: timeline.heading }),
|
|
73
73
|
/* @__PURE__ */ jsx("p", { children: timeline.description }),
|
|
74
|
-
hasImage && timeline.
|
|
74
|
+
hasImage && timeline.media && /* @__PURE__ */ jsx("div", { className: "mt-6", children: /* @__PURE__ */ jsx(CompoundMedia, { src: timeline.media.src, alt: timeline.media.alt, className: "w-full object-cover" }) }),
|
|
75
75
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center gap-4 md:mt-8", children: timeline.buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
76
76
|
] })
|
|
77
77
|
] });
|
|
@@ -81,7 +81,7 @@ const defaultTimelineItem = {
|
|
|
81
81
|
heading: "Short heading here",
|
|
82
82
|
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.",
|
|
83
83
|
buttons: [{ label: "Button", variant: "secondary" }, { label: "Button", variant: "link" }],
|
|
84
|
-
|
|
84
|
+
media: {
|
|
85
85
|
src: "https://picsum.photos/seed/timeline-sticky/600/400",
|
|
86
86
|
alt: "Timeline image"
|
|
87
87
|
}
|
|
@@ -188,7 +188,7 @@ declare const conf: {
|
|
|
188
188
|
readonly instructions: "Buttons must use the same size";
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
media: {
|
|
192
192
|
type: "object";
|
|
193
193
|
objectFields: {
|
|
194
194
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -256,7 +256,7 @@ declare const conf: {
|
|
|
256
256
|
heading: string;
|
|
257
257
|
description: string;
|
|
258
258
|
buttons: import("@/components/puck-core/core/props/interactive").BaseButton[];
|
|
259
|
-
|
|
259
|
+
media?: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
260
260
|
}[];
|
|
261
261
|
};
|
|
262
262
|
render: (props: StickyScrollTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StickyScrollTimeline, StickyScrollTimelineDefaults } from "./component.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 { showcaseStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -18,7 +18,7 @@ const conf = {
|
|
|
18
18
|
heading: { type: "text" },
|
|
19
19
|
description: { type: "textarea" },
|
|
20
20
|
buttons: buttonsField,
|
|
21
|
-
|
|
21
|
+
media: mediaField
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
styles: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ShowcaseComponentProps, BaseButton,
|
|
1
|
+
import type { ShowcaseComponentProps, BaseButton, BaseMedia } from "../props";
|
|
2
2
|
type TabTimelineContent = {
|
|
3
3
|
date: string;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons: BaseButton[];
|
|
7
|
-
|
|
7
|
+
media: BaseMedia;
|
|
8
8
|
};
|
|
9
9
|
type Tab = {
|
|
10
10
|
value: string;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "../../../shadcn/tabs.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
9
|
const TabTimeline = (props) => {
|
|
@@ -87,18 +87,18 @@ const TabTimeline = (props) => {
|
|
|
87
87
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: tab.content.buttons.map((button, bIndex) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, bIndex)) })
|
|
88
88
|
] }),
|
|
89
89
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
90
|
-
|
|
90
|
+
CompoundMedia,
|
|
91
91
|
{
|
|
92
|
-
src: tab.content.
|
|
93
|
-
alt: tab.content.
|
|
92
|
+
src: tab.content.media.src,
|
|
93
|
+
alt: tab.content.media.alt,
|
|
94
94
|
className: "w-full object-cover"
|
|
95
95
|
}
|
|
96
96
|
) })
|
|
97
97
|
] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(
|
|
98
|
-
|
|
98
|
+
CompoundMedia,
|
|
99
99
|
{
|
|
100
|
-
src: tab.content.
|
|
101
|
-
alt: tab.content.
|
|
100
|
+
src: tab.content.media.src,
|
|
101
|
+
alt: tab.content.media.alt,
|
|
102
102
|
className: "w-full max-w-2xl object-cover"
|
|
103
103
|
}
|
|
104
104
|
) })
|
|
@@ -118,7 +118,7 @@ const defaultTab = (value, index) => ({
|
|
|
118
118
|
heading: "Long heading is what you see here in this feature section",
|
|
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
|
buttons: [{ label: "Button", variant: "secondary" }, { label: "Button", variant: "link" }],
|
|
121
|
-
|
|
121
|
+
media: {
|
|
122
122
|
src: `https://picsum.photos/seed/tab-timeline${index}/800/600`,
|
|
123
123
|
alt: `Placeholder image ${index + 1}`
|
|
124
124
|
}
|
|
@@ -108,7 +108,7 @@ declare const conf: {
|
|
|
108
108
|
readonly instructions: "Buttons must use the same size";
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
|
|
111
|
+
media: {
|
|
112
112
|
type: "object";
|
|
113
113
|
objectFields: {
|
|
114
114
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -170,7 +170,7 @@ declare const conf: {
|
|
|
170
170
|
heading: string;
|
|
171
171
|
description: string;
|
|
172
172
|
buttons: import("@/components/puck-core/core/props/interactive").BaseButton[];
|
|
173
|
-
|
|
173
|
+
media: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
174
174
|
};
|
|
175
175
|
}[];
|
|
176
176
|
} & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TabTimeline, TabTimelineDefaults } 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 { showcaseStyleFields } from "../props.js";
|
|
5
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const conf = {
|
|
@@ -19,7 +19,7 @@ const conf = {
|
|
|
19
19
|
heading: { type: "text" },
|
|
20
20
|
description: { type: "textarea" },
|
|
21
21
|
buttons: buttonsField,
|
|
22
|
-
|
|
22
|
+
media: mediaField
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseButton,
|
|
1
|
+
import type { ShowcaseComponentProps, ShowcaseSectionBaseProps, BaseButton, BaseMedia } from "../props";
|
|
2
2
|
type TimelineItem = {
|
|
3
3
|
heading: string;
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons: BaseButton[];
|
|
7
|
-
|
|
7
|
+
media?: BaseMedia;
|
|
8
8
|
};
|
|
9
9
|
type ZigzagTimelineExtra = {
|
|
10
10
|
timelineItems: TimelineItem[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
-
import {
|
|
5
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
6
6
|
import { useScroll, useTransform, motion } from "motion/react";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
@@ -74,7 +74,7 @@ const ZigzagEntry = ({
|
|
|
74
74
|
/* @__PURE__ */ jsx("h3", { className: "mb-5 text-4xl font-bold leading-[1.2] md:mb-6 md:text-5xl lg:text-6xl", children: item.heading }),
|
|
75
75
|
/* @__PURE__ */ jsx("h4", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: item.title }),
|
|
76
76
|
/* @__PURE__ */ jsx("p", { children: item.description }),
|
|
77
|
-
hasImage && item.
|
|
77
|
+
hasImage && item.media && /* @__PURE__ */ jsx("div", { className: "mt-6 w-full", children: /* @__PURE__ */ jsx(CompoundMedia, { src: item.media.src, alt: item.media.alt, className: "w-full object-cover" }) }),
|
|
78
78
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center gap-4 md:mt-8", children: item.buttons.map((button, bIndex) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, bIndex)) })
|
|
79
79
|
]
|
|
80
80
|
}
|
|
@@ -102,7 +102,7 @@ const defaultItem = {
|
|
|
102
102
|
title: "Short heading here",
|
|
103
103
|
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.",
|
|
104
104
|
buttons: [{ label: "Button", variant: "secondary" }, { label: "Button", variant: "link" }],
|
|
105
|
-
|
|
105
|
+
media: {
|
|
106
106
|
src: "https://picsum.photos/seed/timeline-zigzag/600/400",
|
|
107
107
|
alt: "Timeline image"
|
|
108
108
|
}
|
|
@@ -188,7 +188,7 @@ declare const conf: {
|
|
|
188
188
|
readonly instructions: "Buttons must use the same size";
|
|
189
189
|
};
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
media: {
|
|
192
192
|
type: "object";
|
|
193
193
|
objectFields: {
|
|
194
194
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -256,7 +256,7 @@ declare const conf: {
|
|
|
256
256
|
title: string;
|
|
257
257
|
description: string;
|
|
258
258
|
buttons: import("@/components/puck-core/core/props/interactive").BaseButton[];
|
|
259
|
-
|
|
259
|
+
media?: import("@/components/puck-core/core/props/media").BaseMedia;
|
|
260
260
|
}[];
|
|
261
261
|
};
|
|
262
262
|
render: (props: ZigzagTimelineProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ZigzagTimeline, ZigzagTimelineDefaults } from "./component.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 { showcaseStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -18,7 +18,7 @@ const conf = {
|
|
|
18
18
|
title: { type: "text" },
|
|
19
19
|
description: { type: "textarea" },
|
|
20
20
|
buttons: buttonsField,
|
|
21
|
-
|
|
21
|
+
media: mediaField
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
styles: {
|
|
@@ -4,25 +4,24 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* TeamSectionStyles 为 team 特有的样式字段
|
|
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 TeamSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
css?: string;
|
|
14
14
|
textAlign?: "left" | "center";
|
|
15
|
-
gridColumns?: 2 | 3 | 4;
|
|
15
|
+
gridColumns?: "2" | "3" | "4";
|
|
16
16
|
imageShape?: "circle" | "square";
|
|
17
17
|
hasFooter?: boolean;
|
|
18
18
|
cardLayout?: "vertical" | "horizontal";
|
|
19
|
-
memberGridColumns?: 1 | 2;
|
|
19
|
+
memberGridColumns?: "1" | "2";
|
|
20
20
|
}
|
|
21
21
|
export interface TeamSectionBaseProps {
|
|
22
22
|
tagline: string;
|
|
23
23
|
heading: string;
|
|
24
24
|
description: string;
|
|
25
|
-
buttons: BaseButton[];
|
|
26
25
|
styles: TeamSectionStyles;
|
|
27
26
|
}
|
|
28
27
|
/** 各 styles 字段的 Puck field 选项 */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TeamComponentProps,
|
|
1
|
+
import type { TeamComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type SocialLink = {
|
|
3
3
|
href: string;
|
|
4
4
|
icon: React.ReactNode;
|
|
5
5
|
};
|
|
6
6
|
type TeamMember = {
|
|
7
|
-
|
|
7
|
+
media: BaseMedia;
|
|
8
8
|
name: string;
|
|
9
9
|
jobTitle: string;
|
|
10
10
|
description: string;
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "../../../shadcn/carousel.js";
|
|
6
|
-
import {
|
|
6
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
9
|
const TeamCarousel = (props) => {
|
|
@@ -44,7 +44,7 @@ const TeamCarousel = (props) => {
|
|
|
44
44
|
{
|
|
45
45
|
className: "basis-[95%] pl-0 pr-6 sm:basis-4/5 md:basis-1/2 md:pr-12 lg:basis-1/3",
|
|
46
46
|
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-start", children: [
|
|
47
|
-
/* @__PURE__ */ jsx("div", { className: "mb-5 md:mb-6", children: /* @__PURE__ */ jsx(
|
|
47
|
+
/* @__PURE__ */ jsx("div", { className: "mb-5 md:mb-6", children: /* @__PURE__ */ jsx(CompoundMedia, { src: member.media.src, alt: member.media.alt, className: imageClass }) }),
|
|
48
48
|
/* @__PURE__ */ jsxs("div", { className: "mb-3 md:mb-4", children: [
|
|
49
49
|
/* @__PURE__ */ jsx("h5", { className: "text-md font-semibold md:text-lg", children: member.name }),
|
|
50
50
|
/* @__PURE__ */ jsx("h6", { className: "md:text-md", children: member.jobTitle })
|
|
@@ -87,7 +87,7 @@ const TeamCarouselDefaults = {
|
|
|
87
87
|
heading: "Our team",
|
|
88
88
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
89
89
|
teamMembers: Array(6).fill(null).map((_, i) => ({
|
|
90
|
-
|
|
90
|
+
media: { src: `https://picsum.photos/seed/team-carousel-${i + 1}/200/200`, alt: `Team member ${i + 1}` },
|
|
91
91
|
name: "Full name",
|
|
92
92
|
jobTitle: "Job title",
|
|
93
93
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TeamComponentProps,
|
|
1
|
+
import type { TeamComponentProps, BaseMedia, BaseButton } from "../props";
|
|
2
2
|
type SocialLink = {
|
|
3
3
|
href: string;
|
|
4
4
|
icon: React.ReactNode;
|
|
5
5
|
};
|
|
6
6
|
type TeamMember = {
|
|
7
|
-
|
|
7
|
+
media: BaseMedia;
|
|
8
8
|
name: string;
|
|
9
9
|
jobTitle: string;
|
|
10
10
|
description: string;
|