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/contact-sections/location-cards-grid/location-cards-grid.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.js";
|
|
4
|
-
import {
|
|
4
|
+
import { CompoundMedia } from "../../../puck-base/media.js";
|
|
5
5
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
const LocationCardsGrid = (props) => {
|
|
7
7
|
const { tagline, heading, description, locations, styles } = {
|
|
@@ -43,17 +43,17 @@ const LocationCardsGrid = (props) => {
|
|
|
43
43
|
}),
|
|
44
44
|
children: [
|
|
45
45
|
/* @__PURE__ */ jsx("div", { className: "mb-6 w-full md:mb-8", children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: location.mapUrl, className: "justify-self-end", children: /* @__PURE__ */ jsx(
|
|
46
|
-
|
|
46
|
+
CompoundMedia,
|
|
47
47
|
{
|
|
48
|
-
src: location.
|
|
49
|
-
alt: location.
|
|
48
|
+
src: location.media.src,
|
|
49
|
+
alt: location.media.alt,
|
|
50
50
|
className: "h-[320px] w-full object-cover md:h-[384px]"
|
|
51
51
|
}
|
|
52
52
|
) }) : /* @__PURE__ */ jsx(
|
|
53
|
-
|
|
53
|
+
CompoundMedia,
|
|
54
54
|
{
|
|
55
|
-
src: location.
|
|
56
|
-
alt: location.
|
|
55
|
+
src: location.media.src,
|
|
56
|
+
alt: location.media.alt,
|
|
57
57
|
className: "h-[320px] w-full object-cover md:h-[384px]"
|
|
58
58
|
}
|
|
59
59
|
) }),
|
|
@@ -72,14 +72,11 @@ const LocationCardsGridDefaults = {
|
|
|
72
72
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
73
73
|
button: { label: "Submit" },
|
|
74
74
|
buttons: [],
|
|
75
|
-
|
|
76
|
-
email: "",
|
|
77
|
-
phone: "",
|
|
78
|
-
address: "",
|
|
75
|
+
media: { src: "https://picsum.photos/seed/contact-loc/800/600", alt: "Placeholder" },
|
|
79
76
|
contacts: [],
|
|
80
77
|
locations: [
|
|
81
78
|
{
|
|
82
|
-
|
|
79
|
+
media: {
|
|
83
80
|
src: "https://picsum.photos/seed/location-sydney/800/400",
|
|
84
81
|
alt: "Sydney map"
|
|
85
82
|
},
|
|
@@ -89,7 +86,7 @@ const LocationCardsGridDefaults = {
|
|
|
89
86
|
button: { label: "Get Directions", variant: "link", size: "sm" }
|
|
90
87
|
},
|
|
91
88
|
{
|
|
92
|
-
|
|
89
|
+
media: {
|
|
93
90
|
src: "https://picsum.photos/seed/location-newyork/800/400",
|
|
94
91
|
alt: "New York map"
|
|
95
92
|
},
|
|
@@ -99,7 +96,6 @@ const LocationCardsGridDefaults = {
|
|
|
99
96
|
button: { label: "Get Directions", variant: "link", size: "sm" }
|
|
100
97
|
}
|
|
101
98
|
],
|
|
102
|
-
tabs: [],
|
|
103
99
|
styles: {
|
|
104
100
|
mediaType: "map",
|
|
105
101
|
textAlign: "center",
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* ContactSectionStyles 为 contact 特有的样式字段
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { BaseMedia } from "@/components/puck-core/core/props/media";
|
|
8
8
|
import type { BaseButton, Action } from "@/components/puck-core/core/props/interactive";
|
|
9
|
-
export type {
|
|
9
|
+
export type { BaseMedia, BaseButton, Action };
|
|
10
10
|
export interface ContactSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -26,10 +26,7 @@ export interface ContactSectionBaseProps {
|
|
|
26
26
|
description: string;
|
|
27
27
|
button: BaseButton;
|
|
28
28
|
buttons: BaseButton[];
|
|
29
|
-
|
|
30
|
-
email: string;
|
|
31
|
-
phone: string;
|
|
32
|
-
address: string;
|
|
29
|
+
media: BaseMedia;
|
|
33
30
|
contacts: {
|
|
34
31
|
icon: string;
|
|
35
32
|
title: string;
|
|
@@ -41,21 +38,13 @@ export interface ContactSectionBaseProps {
|
|
|
41
38
|
button?: BaseButton;
|
|
42
39
|
}[];
|
|
43
40
|
locations: {
|
|
44
|
-
|
|
41
|
+
value?: string;
|
|
42
|
+
media: BaseMedia;
|
|
45
43
|
mapUrl: string;
|
|
46
44
|
title: string;
|
|
47
45
|
address: string;
|
|
48
46
|
button: BaseButton;
|
|
49
47
|
}[];
|
|
50
|
-
tabs: {
|
|
51
|
-
value: string;
|
|
52
|
-
title: string;
|
|
53
|
-
addressLine1: string;
|
|
54
|
-
addressLine2: string;
|
|
55
|
-
image: BaseImage;
|
|
56
|
-
mapUrl: string;
|
|
57
|
-
buttonLabel: string;
|
|
58
|
-
}[];
|
|
59
48
|
styles: ContactSectionStyles;
|
|
60
49
|
}
|
|
61
50
|
export declare const contactStyleFields: {
|
|
@@ -119,7 +119,7 @@ declare const conf: {
|
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
};
|
|
122
|
-
defaultProps: import("../props").ContactSectionBaseProps;
|
|
122
|
+
defaultProps: import("../props").ContactSectionBaseProps & import("./split-info-form").SplitInfoFormOwnProps;
|
|
123
123
|
render: (props: SplitInfoFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
124
124
|
};
|
|
125
125
|
export default conf;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ContactComponentProps, ContactSectionBaseProps } from "../props";
|
|
2
|
-
export
|
|
2
|
+
export interface SplitInfoFormOwnProps {
|
|
3
|
+
email: string;
|
|
4
|
+
phone: string;
|
|
5
|
+
address: string;
|
|
6
|
+
}
|
|
7
|
+
export type SplitInfoFormProps = ContactComponentProps<SplitInfoFormOwnProps>;
|
|
3
8
|
export declare const SplitInfoForm: (props: SplitInfoFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare const SplitInfoFormDefaults: ContactSectionBaseProps;
|
|
9
|
+
export declare const SplitInfoFormDefaults: ContactSectionBaseProps & SplitInfoFormOwnProps;
|
|
@@ -145,13 +145,12 @@ const SplitInfoFormDefaults = {
|
|
|
145
145
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
146
146
|
button: { label: "Submit" },
|
|
147
147
|
buttons: [],
|
|
148
|
-
|
|
148
|
+
media: { src: "https://picsum.photos/seed/contact-split/800/600", alt: "Placeholder" },
|
|
149
149
|
email: "hello@example.com",
|
|
150
150
|
phone: "+1 (555) 000-0000",
|
|
151
151
|
address: "123 Sample St, Sydney NSW 2000 AU",
|
|
152
152
|
contacts: [],
|
|
153
153
|
locations: [],
|
|
154
|
-
tabs: [],
|
|
155
154
|
styles: {
|
|
156
155
|
formType: "simple"
|
|
157
156
|
}
|
|
@@ -15,7 +15,7 @@ declare const conf: {
|
|
|
15
15
|
readonly type: "textarea";
|
|
16
16
|
readonly contentEditable: true;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
locations: {
|
|
19
19
|
type: string;
|
|
20
20
|
max: number;
|
|
21
21
|
getItemSummary: (item: {
|
|
@@ -28,13 +28,10 @@ declare const conf: {
|
|
|
28
28
|
title: {
|
|
29
29
|
type: string;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
address: {
|
|
32
32
|
type: string;
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
type: string;
|
|
36
|
-
};
|
|
37
|
-
image: {
|
|
34
|
+
media: {
|
|
38
35
|
type: "object";
|
|
39
36
|
objectFields: {
|
|
40
37
|
src: import("@puckeditor/core").Field<string>;
|
|
@@ -46,8 +43,60 @@ declare const conf: {
|
|
|
46
43
|
mapUrl: {
|
|
47
44
|
type: string;
|
|
48
45
|
};
|
|
49
|
-
|
|
50
|
-
type:
|
|
46
|
+
button: {
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly objectFields: {
|
|
49
|
+
readonly label: {
|
|
50
|
+
readonly type: "text";
|
|
51
|
+
};
|
|
52
|
+
readonly action: {
|
|
53
|
+
type: "custom";
|
|
54
|
+
label: string;
|
|
55
|
+
render: typeof import("../../..").ActionField;
|
|
56
|
+
};
|
|
57
|
+
readonly variant: {
|
|
58
|
+
readonly type: "select";
|
|
59
|
+
readonly options: readonly [{
|
|
60
|
+
readonly label: "primary";
|
|
61
|
+
readonly value: "default";
|
|
62
|
+
}, {
|
|
63
|
+
readonly label: "secondary";
|
|
64
|
+
readonly value: "secondary";
|
|
65
|
+
}, {
|
|
66
|
+
readonly label: "outline";
|
|
67
|
+
readonly value: "outline";
|
|
68
|
+
}, {
|
|
69
|
+
readonly label: "ghost";
|
|
70
|
+
readonly value: "ghost";
|
|
71
|
+
}, {
|
|
72
|
+
readonly label: "link";
|
|
73
|
+
readonly value: "link";
|
|
74
|
+
}, {
|
|
75
|
+
readonly label: "destructive";
|
|
76
|
+
readonly value: "destructive";
|
|
77
|
+
}];
|
|
78
|
+
};
|
|
79
|
+
readonly size: {
|
|
80
|
+
readonly type: "select";
|
|
81
|
+
readonly options: readonly [{
|
|
82
|
+
readonly label: "default";
|
|
83
|
+
readonly value: "default";
|
|
84
|
+
}, {
|
|
85
|
+
readonly label: "sm";
|
|
86
|
+
readonly value: "sm";
|
|
87
|
+
}, {
|
|
88
|
+
readonly label: "lg";
|
|
89
|
+
readonly value: "lg";
|
|
90
|
+
}, {
|
|
91
|
+
readonly label: "icon";
|
|
92
|
+
readonly value: "icon";
|
|
93
|
+
}];
|
|
94
|
+
};
|
|
95
|
+
readonly icon: {
|
|
96
|
+
type: "custom";
|
|
97
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
51
100
|
};
|
|
52
101
|
};
|
|
53
102
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TabLocations, TabLocationsDefaults } from "./tab-locations.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
|
+
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
5
|
import { contactStyleFields } from "../props.js";
|
|
5
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
@@ -8,18 +9,17 @@ const conf = {
|
|
|
8
9
|
tagline: { type: "text" },
|
|
9
10
|
heading: headingField,
|
|
10
11
|
description: descriptionField,
|
|
11
|
-
|
|
12
|
+
locations: {
|
|
12
13
|
type: "array",
|
|
13
14
|
max: 6,
|
|
14
|
-
getItemSummary: (item, index = 0) => item.title || `
|
|
15
|
+
getItemSummary: (item, index = 0) => item.title || `Location ${index + 1}`,
|
|
15
16
|
arrayFields: {
|
|
16
17
|
value: { type: "text" },
|
|
17
18
|
title: { type: "text" },
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
image: imageField,
|
|
19
|
+
address: { type: "text" },
|
|
20
|
+
media: mediaField,
|
|
21
21
|
mapUrl: { type: "text" },
|
|
22
|
-
|
|
22
|
+
button: buttonField
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
styles: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "../../../shadcn/tabs.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 TabLocations = (props) => {
|
|
8
8
|
var _a;
|
|
9
|
-
const { tagline, heading, description,
|
|
9
|
+
const { tagline, heading, description, locations, styles } = {
|
|
10
10
|
...TabLocationsDefaults,
|
|
11
11
|
...props
|
|
12
12
|
};
|
|
@@ -31,47 +31,47 @@ const TabLocations = (props) => {
|
|
|
31
31
|
/* @__PURE__ */ jsxs(
|
|
32
32
|
Tabs,
|
|
33
33
|
{
|
|
34
|
-
defaultValue: (_a =
|
|
34
|
+
defaultValue: ((_a = locations[0]) == null ? void 0 : _a.value) ?? "loc-0",
|
|
35
35
|
className: "relative grid auto-cols-fr grid-cols-1 gap-12 md:grid-cols-[.5fr_1fr] md:gap-y-16 lg:gap-x-20 lg:gap-y-16",
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */ jsx(TabsList, { className: "relative grid h-full auto-cols-fr grid-cols-1 gap-x-4 gap-y-10", children:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ jsxs("
|
|
45
|
-
/* @__PURE__ */ jsx("
|
|
46
|
-
/* @__PURE__ */ jsx("
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
)
|
|
53
|
-
/* @__PURE__ */ jsx("div", { children:
|
|
37
|
+
/* @__PURE__ */ jsx(TabsList, { className: "relative grid h-full auto-cols-fr grid-cols-1 gap-x-4 gap-y-10", children: locations.map((location, index) => {
|
|
38
|
+
var _a2;
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
40
|
+
TabsTrigger,
|
|
41
|
+
{
|
|
42
|
+
value: location.value ?? `loc-${index}`,
|
|
43
|
+
className: "items-start justify-start border-0 border-l-2 border-border-primary border-transparent px-0 py-0 pl-8 data-[state=active]:border-black data-[state=active]:bg-background-primary data-[state=active]:text-text-primary",
|
|
44
|
+
children: /* @__PURE__ */ jsxs("div", { className: "text-left", children: [
|
|
45
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: location.title }),
|
|
46
|
+
/* @__PURE__ */ jsx("p", { className: "inline-block whitespace-normal", children: location.address }),
|
|
47
|
+
/* @__PURE__ */ jsx("div", { className: "mt-5 font-semibold md:mt-6", children: /* @__PURE__ */ jsx("p", { children: (_a2 = location.button) == null ? void 0 : _a2.label }) })
|
|
48
|
+
] })
|
|
49
|
+
},
|
|
50
|
+
index
|
|
51
|
+
);
|
|
52
|
+
}) }),
|
|
53
|
+
/* @__PURE__ */ jsx("div", { children: locations.map((location, index) => /* @__PURE__ */ jsx(
|
|
54
54
|
TabsContent,
|
|
55
55
|
{
|
|
56
|
-
value:
|
|
56
|
+
value: location.value ?? `loc-${index}`,
|
|
57
57
|
className: "animate-tabs",
|
|
58
|
-
children: /* @__PURE__ */ jsx("div", { className: "relative size-full", children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href:
|
|
59
|
-
|
|
58
|
+
children: /* @__PURE__ */ jsx("div", { className: "relative size-full", children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: location.mapUrl, className: "block", children: /* @__PURE__ */ jsx(
|
|
59
|
+
CompoundMedia,
|
|
60
60
|
{
|
|
61
|
-
src:
|
|
62
|
-
alt:
|
|
61
|
+
src: location.media.src,
|
|
62
|
+
alt: location.media.alt,
|
|
63
63
|
className: "size-full object-cover"
|
|
64
64
|
}
|
|
65
65
|
) }) : /* @__PURE__ */ jsx(
|
|
66
|
-
|
|
66
|
+
CompoundMedia,
|
|
67
67
|
{
|
|
68
|
-
src:
|
|
69
|
-
alt:
|
|
68
|
+
src: location.media.src,
|
|
69
|
+
alt: location.media.alt,
|
|
70
70
|
className: "size-full object-cover"
|
|
71
71
|
}
|
|
72
72
|
) })
|
|
73
73
|
},
|
|
74
|
-
|
|
74
|
+
location.value ?? `loc-${index}`
|
|
75
75
|
)) })
|
|
76
76
|
]
|
|
77
77
|
}
|
|
@@ -86,51 +86,44 @@ const TabLocationsDefaults = {
|
|
|
86
86
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
87
87
|
button: { label: "Submit" },
|
|
88
88
|
buttons: [],
|
|
89
|
-
|
|
89
|
+
media: {
|
|
90
90
|
src: "https://picsum.photos/seed/contact-tab/800/600",
|
|
91
91
|
alt: "Placeholder"
|
|
92
92
|
},
|
|
93
|
-
email: "",
|
|
94
|
-
phone: "",
|
|
95
|
-
address: "",
|
|
96
93
|
contacts: [],
|
|
97
|
-
locations: [
|
|
98
|
-
tabs: [
|
|
94
|
+
locations: [
|
|
99
95
|
{
|
|
100
96
|
value: "tab-1",
|
|
101
97
|
title: "Sydney",
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
image: {
|
|
98
|
+
address: "123 Sample St, Sydney NSW 2000 AU",
|
|
99
|
+
media: {
|
|
105
100
|
src: "https://picsum.photos/seed/tab-sydney/1200/800",
|
|
106
101
|
alt: "Sydney map"
|
|
107
102
|
},
|
|
108
103
|
mapUrl: "#",
|
|
109
|
-
|
|
104
|
+
button: { label: "View Map", variant: "link", size: "sm" }
|
|
110
105
|
},
|
|
111
106
|
{
|
|
112
107
|
value: "tab-2",
|
|
113
108
|
title: "New York",
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
image: {
|
|
109
|
+
address: "123 Sample St, New York NY 10000 USA",
|
|
110
|
+
media: {
|
|
117
111
|
src: "https://picsum.photos/seed/tab-newyork/1200/800",
|
|
118
112
|
alt: "New York map"
|
|
119
113
|
},
|
|
120
114
|
mapUrl: "#",
|
|
121
|
-
|
|
115
|
+
button: { label: "View Map", variant: "link", size: "sm" }
|
|
122
116
|
},
|
|
123
117
|
{
|
|
124
118
|
value: "tab-3",
|
|
125
119
|
title: "London",
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
image: {
|
|
120
|
+
address: "123 Sample St, London W1C 1DE, United Kingdom",
|
|
121
|
+
media: {
|
|
129
122
|
src: "https://picsum.photos/seed/tab-london/1200/800",
|
|
130
123
|
alt: "London map"
|
|
131
124
|
},
|
|
132
125
|
mapUrl: "#",
|
|
133
|
-
|
|
126
|
+
button: { label: "View Map", variant: "link", size: "sm" }
|
|
134
127
|
}
|
|
135
128
|
],
|
|
136
129
|
styles: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CtaComponentProps, BaseButton,
|
|
1
|
+
import type { CtaComponentProps, BaseButton, BaseMedia } from "../props";
|
|
2
2
|
type FeatureCard = {
|
|
3
|
-
icon:
|
|
3
|
+
icon: BaseMedia;
|
|
4
4
|
heading: string;
|
|
5
5
|
description: string;
|
|
6
6
|
buttons: BaseButton[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } 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 FeatureCardCta = (props) => {
|
|
7
7
|
const { featureSections = [], styles } = {
|
|
@@ -12,7 +12,7 @@ const FeatureCardCta = (props) => {
|
|
|
12
12
|
const isCenter = textAlign === "center";
|
|
13
13
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx("div", { className: "grid auto-cols-fr grid-cols-1 gap-x-8 gap-y-12 md:grid-cols-2 lg:gap-x-16", children: featureSections.map((feature, index) => /* @__PURE__ */ jsxs("div", { className: cn({ "text-center": isCenter }), children: [
|
|
14
14
|
/* @__PURE__ */ jsx(
|
|
15
|
-
|
|
15
|
+
CompoundMedia,
|
|
16
16
|
{
|
|
17
17
|
src: feature.icon.src,
|
|
18
18
|
className: cn("mb-5 size-12 md:mb-6", { "mx-auto": isCenter }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FeatureCardCta, FeatureCardCtaDefaults } from "./feature-card-cta.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -11,7 +11,7 @@ const conf = {
|
|
|
11
11
|
max: 4,
|
|
12
12
|
getItemSummary: (item, index = 0) => item.heading || `Feature ${index + 1}`,
|
|
13
13
|
arrayFields: {
|
|
14
|
-
icon:
|
|
14
|
+
icon: mediaField,
|
|
15
15
|
heading: headingField,
|
|
16
16
|
description: descriptionField,
|
|
17
17
|
buttons: buttonsField
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MouseTrackCta, MouseTrackCtaDefaults } from "./mouse-track-cta.js";
|
|
2
2
|
import { headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import {
|
|
3
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { actionField } from "../../../puck-core/core/props/interactive.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
@@ -15,7 +15,7 @@ const conf = {
|
|
|
15
15
|
action: actionField,
|
|
16
16
|
heading: headingField,
|
|
17
17
|
listNumber: { type: "text" },
|
|
18
|
-
|
|
18
|
+
media: mediaField
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
styles: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { CtaComponentProps,
|
|
1
|
+
import type { CtaComponentProps, BaseMedia } from "../props";
|
|
2
2
|
import type { Action } from "@/components/puck-core/core/props/interactive";
|
|
3
3
|
type HoverLink = {
|
|
4
4
|
action?: Action;
|
|
5
5
|
heading: string;
|
|
6
6
|
listNumber?: string;
|
|
7
|
-
|
|
7
|
+
media: BaseMedia;
|
|
8
8
|
};
|
|
9
9
|
export type MouseTrackCtaProps = CtaComponentProps<{
|
|
10
10
|
tagline: string;
|
|
@@ -134,8 +134,8 @@ const MouseTrackCta = (props) => {
|
|
|
134
134
|
{
|
|
135
135
|
className: "size-full max-w-md",
|
|
136
136
|
variants: imageVariants,
|
|
137
|
-
src: link.
|
|
138
|
-
alt: link.
|
|
137
|
+
src: link.media.src,
|
|
138
|
+
alt: link.media.alt
|
|
139
139
|
}
|
|
140
140
|
)
|
|
141
141
|
}
|
|
@@ -159,7 +159,7 @@ const MouseTrackCtaDefaults = {
|
|
|
159
159
|
action: { type: "page", pageUrl: "#" },
|
|
160
160
|
heading: "Hover over link one",
|
|
161
161
|
listNumber: "01",
|
|
162
|
-
|
|
162
|
+
media: {
|
|
163
163
|
src: "https://picsum.photos/seed/cta-hover1/600/600",
|
|
164
164
|
alt: "Placeholder image 1"
|
|
165
165
|
}
|
|
@@ -168,7 +168,7 @@ const MouseTrackCtaDefaults = {
|
|
|
168
168
|
action: { type: "page", pageUrl: "#" },
|
|
169
169
|
heading: "Hover over link two",
|
|
170
170
|
listNumber: "02",
|
|
171
|
-
|
|
171
|
+
media: {
|
|
172
172
|
src: "https://picsum.photos/seed/cta-hover2/600/600",
|
|
173
173
|
alt: "Placeholder image 2"
|
|
174
174
|
}
|
|
@@ -177,7 +177,7 @@ const MouseTrackCtaDefaults = {
|
|
|
177
177
|
action: { type: "page", pageUrl: "#" },
|
|
178
178
|
heading: "Hover over link three",
|
|
179
179
|
listNumber: "03",
|
|
180
|
-
|
|
180
|
+
media: {
|
|
181
181
|
src: "https://picsum.photos/seed/cta-hover3/600/600",
|
|
182
182
|
alt: "Placeholder image 3"
|
|
183
183
|
}
|
|
@@ -186,7 +186,7 @@ const MouseTrackCtaDefaults = {
|
|
|
186
186
|
action: { type: "page", pageUrl: "#" },
|
|
187
187
|
heading: "Hover over link four",
|
|
188
188
|
listNumber: "04",
|
|
189
|
-
|
|
189
|
+
media: {
|
|
190
190
|
src: "https://picsum.photos/seed/cta-hover4/600/600",
|
|
191
191
|
alt: "Placeholder image 4"
|
|
192
192
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 基础类型引用自 ../props/(全局共享)
|
|
5
5
|
* CtaSectionStyles 为 CTA 特有的样式字段
|
|
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 CtaSectionStyles {
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
@@ -24,7 +24,7 @@ export interface CtaSectionBaseProps {
|
|
|
24
24
|
heading: string;
|
|
25
25
|
description: string;
|
|
26
26
|
buttons: BaseButton[];
|
|
27
|
-
|
|
27
|
+
medias: BaseMedia[];
|
|
28
28
|
video: string;
|
|
29
29
|
inputPlaceholder: string;
|
|
30
30
|
formButton: BaseButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SideMediaCta, SideMediaCtaDefaults } from "./side-media-cta.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -9,7 +9,7 @@ const conf = {
|
|
|
9
9
|
heading: headingField,
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
|
-
|
|
12
|
+
medias: mediasField,
|
|
13
13
|
// TODO: email form 字段待设计完成后启用
|
|
14
14
|
// inputPlaceholder: { type: "text" },
|
|
15
15
|
// formButton: buttonField,
|