dune-react 0.0.20 → 0.0.22
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/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/form.js +1 -1
- package/dist/components/puck-base/image.js +17 -17
- package/dist/components/puck-base/index.d.ts +1 -12
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +9 -4
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +22 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +3 -1
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +25 -3
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +16 -4
- package/dist/components/puck-block/banner-sections/props.d.ts +3 -0
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +13 -2
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +15 -4
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +3 -13
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/centered-form/index.js +3 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +5 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.js +3 -1
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +5 -23
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.js +3 -1
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +3 -13
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +3 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +4 -13
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.js +3 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +4 -2
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +3 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +3 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +4 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +3 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +5 -1
- package/dist/components/puck-block/contact-sections/props.d.ts +3 -0
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +23 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.js +3 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +4 -13
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +3 -1
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +4 -2
- package/dist/components/puck-block/contact-sections/use-contact-form.js +1 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +3 -2
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +23 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +3 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +23 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +3 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +89 -59
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -1
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +35 -77
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +24 -83
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/dual-column-accordion-faq.js +3 -2
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +6 -2
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/props.d.ts +3 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js +5 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +5 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +23 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.js +3 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.js +3 -2
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-static-faq/two-column-static-faq.js +6 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +5 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +24 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +3 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +5 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +24 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +3 -1
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -0
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +78 -60
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +5 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +23 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +3 -1
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +8 -3
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +23 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +3 -1
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +5 -2
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +22 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +2 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +2 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +3 -2
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +16 -6
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +23 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +6 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +4 -3
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +3 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +24 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +5 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +24 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +71 -66
- package/dist/components/puck-block/gallery-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +9 -3
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +26 -10
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +3 -2
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +22 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +3 -1
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +3 -2
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +5 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +120 -16
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +163 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +144 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +5 -2
- package/dist/components/puck-block/header-sections/props.d.ts +3 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +23 -1
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +2 -1
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +5 -2
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +54 -10
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +24 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +6 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +5 -2
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +19 -7
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +14 -6
- 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 +12 -4
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +8 -4
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +4 -2
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +9 -5
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +6 -4
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +6 -4
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +10 -3
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/props.d.ts +3 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +12 -4
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +16 -7
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +14 -6
- 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 +98 -42
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +36 -6
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +5 -3
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +15 -5
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +37 -14
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +36 -6
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +5 -3
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +6 -3
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +6 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +102 -44
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +3 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +32 -5
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +12 -4
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +4 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +4 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +5 -2
- package/dist/components/puck-block/location-sections/props.d.ts +4 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +5 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +22 -0
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +5 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +23 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +23 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +5 -1
- package/dist/components/puck-block/metrics-sections/props.d.ts +3 -0
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +23 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +5 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +22 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +38 -23
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +4 -2
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +5 -1
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/props.d.ts +3 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +4 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +5 -2
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +4 -2
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +5 -2
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.d.ts +22 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.js +3 -1
- package/dist/components/puck-block/registry.generated.d.ts +13141 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +5 -1
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +23 -1
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +6 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +23 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/props.d.ts +3 -0
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +8 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +24 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +8 -1
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +24 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +1 -3
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +5 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +24 -4
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +3 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +8 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +24 -2
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +3 -1
- package/dist/components/puck-block/team-sections/props.d.ts +3 -0
- package/dist/components/puck-block/team-sections/team-carousel/component.js +8 -2
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-carousel/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-grid/component.js +6 -1
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-grid/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +10 -2
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +9 -2
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.d.ts +22 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.js +3 -1
- package/dist/components/puck-block/team-sections/team-two-column/component.js +6 -1
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +23 -1
- package/dist/components/puck-block/team-sections/team-two-column/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +5 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +6 -1
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +5 -1
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +14 -6
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +35 -5
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +5 -3
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +8 -2
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/props.d.ts +3 -1
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +23 -1
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +9 -2
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +5 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/text-sections/aside-nav-content/component.js +5 -1
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +3 -1
- package/dist/components/puck-block/text-sections/blog-article/component.js +6 -1
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/blog-article/index.js +3 -1
- package/dist/components/puck-block/text-sections/props.d.ts +3 -0
- package/dist/components/puck-block/text-sections/prose-content/component.js +5 -1
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/prose-content/index.js +3 -1
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +23 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +5 -1
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/side-media-content/index.js +3 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +6 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +22 -0
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +3 -1
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +24 -2
- package/dist/components/puck-core/core/context/section-id-context.d.ts +6 -0
- package/dist/components/puck-core/core/context/section-id-context.js +12 -0
- package/dist/components/puck-core/core/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +8 -4
- package/dist/components/puck-core/core/styles.d.ts +375 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +13 -2
- package/dist/components/puck-core/fields/action-field.js +2 -2
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +3 -1
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
- package/dist/components/puck-core/section-wrapper.d.ts +27 -13
- package/dist/components/puck-core/section-wrapper.js +48 -0
- package/dist/hooks/use-scroll-container.d.ts +18 -0
- package/dist/hooks/use-scroll-container.js +25 -0
- package/dist/index.js +125 -105
- package/package.json +1 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- package/dist/components/puck-core/editor-context.d.ts +0 -25
- package/dist/components/puck-core/editor-context.js +0 -15
- /package/dist/components/{puck-base → puck-core/core/context}/editor-context.d.ts +0 -0
- /package/dist/components/{puck-base → puck-core/core/context}/editor-context.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BlogArticle, BlogArticleDefaults } from "./component.js";
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { textStyleFields } from "../props.js";
|
|
4
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
4
5
|
const conf = {
|
|
5
6
|
fields: {
|
|
6
7
|
prose: { type: "textarea" },
|
|
@@ -42,7 +43,8 @@ const conf = {
|
|
|
42
43
|
type: "object",
|
|
43
44
|
label: "Styles",
|
|
44
45
|
objectFields: {
|
|
45
|
-
hasBreadcrumbs: textStyleFields.hasBreadcrumbs
|
|
46
|
+
hasBreadcrumbs: textStyleFields.hasBreadcrumbs,
|
|
47
|
+
...sectionWrapperFields
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
},
|
|
@@ -8,6 +8,9 @@ import type { BaseImage } from "@/components/puck-core/core/props/media";
|
|
|
8
8
|
import type { BaseButton } from "@/components/puck-core/core/props/interactive";
|
|
9
9
|
export type { BaseImage, BaseButton };
|
|
10
10
|
export interface TextSectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
textLayout?: "singleLeft" | "singleCenter" | "twoColumn" | "single" | "twoColumnProse";
|
|
12
15
|
bgMedia?: "none" | "image" | "video";
|
|
13
16
|
formType?: "buttons" | "email" | "none";
|
|
@@ -6,6 +6,7 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
6
6
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
7
7
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
10
|
const ProseContent = (props) => {
|
|
10
11
|
const {
|
|
11
12
|
heading,
|
|
@@ -19,6 +20,9 @@ const ProseContent = (props) => {
|
|
|
19
20
|
...props
|
|
20
21
|
};
|
|
21
22
|
const {
|
|
23
|
+
className: sectionClassName,
|
|
24
|
+
style: sectionStyle,
|
|
25
|
+
css,
|
|
22
26
|
textLayout = "single",
|
|
23
27
|
mediaType = "none",
|
|
24
28
|
mediaPosition = "bottom",
|
|
@@ -56,7 +60,7 @@ const ProseContent = (props) => {
|
|
|
56
60
|
};
|
|
57
61
|
const mediaElement = renderMedia();
|
|
58
62
|
const isTwoColumn = textLayout === "twoColumnProse";
|
|
59
|
-
return /* @__PURE__ */ jsx(
|
|
63
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: cn("mx-auto w-full", isTwoColumn ? "max-w-4xl" : "max-w-lg"), children: [
|
|
60
64
|
hasMetatags && metatags && metatags.length > 0 && /* @__PURE__ */ jsx("div", { className: "mb-8 flex flex-wrap gap-x-8 gap-y-4 md:mb-12", children: metatags.map((tag, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
61
65
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-semibold", children: tag.label }),
|
|
62
66
|
/* @__PURE__ */ jsx("p", { className: "text-sm", children: tag.value })
|
|
@@ -41,6 +41,28 @@ declare const conf: {
|
|
|
41
41
|
type: string;
|
|
42
42
|
label: string;
|
|
43
43
|
objectFields: {
|
|
44
|
+
className: {
|
|
45
|
+
readonly type: "text";
|
|
46
|
+
readonly label: "Class Name";
|
|
47
|
+
readonly ai: {
|
|
48
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
style: {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly label: "Style";
|
|
54
|
+
readonly objectFields: {};
|
|
55
|
+
readonly ai: {
|
|
56
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
css: {
|
|
60
|
+
readonly type: "textarea";
|
|
61
|
+
readonly label: "Custom CSS";
|
|
62
|
+
readonly ai: {
|
|
63
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
44
66
|
textLayout: {
|
|
45
67
|
readonly type: "select";
|
|
46
68
|
readonly label: "Text Layout";
|
|
@@ -2,6 +2,7 @@ import { ProseContent, ProseContentDefaults } from "./component.js";
|
|
|
2
2
|
import { headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { textStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -23,7 +24,8 @@ const conf = {
|
|
|
23
24
|
textLayout: textStyleFields.textLayout,
|
|
24
25
|
mediaType: textStyleFields.mediaType,
|
|
25
26
|
mediaPosition: textStyleFields.mediaPosition,
|
|
26
|
-
hasMetatags: textStyleFields.hasMetatags
|
|
27
|
+
hasMetatags: textStyleFields.hasMetatags,
|
|
28
|
+
...sectionWrapperFields
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
},
|
|
@@ -29,7 +29,7 @@ declare const conf: {
|
|
|
29
29
|
readonly action: {
|
|
30
30
|
type: "custom";
|
|
31
31
|
label: string;
|
|
32
|
-
render: typeof import("
|
|
32
|
+
render: typeof import("../../..").ActionField;
|
|
33
33
|
};
|
|
34
34
|
readonly variant: {
|
|
35
35
|
readonly type: "select";
|
|
@@ -121,6 +121,28 @@ declare const conf: {
|
|
|
121
121
|
type: string;
|
|
122
122
|
label: string;
|
|
123
123
|
objectFields: {
|
|
124
|
+
className: {
|
|
125
|
+
readonly type: "text";
|
|
126
|
+
readonly label: "Class Name";
|
|
127
|
+
readonly ai: {
|
|
128
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
style: {
|
|
132
|
+
readonly type: "object";
|
|
133
|
+
readonly label: "Style";
|
|
134
|
+
readonly objectFields: {};
|
|
135
|
+
readonly ai: {
|
|
136
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
css: {
|
|
140
|
+
readonly type: "textarea";
|
|
141
|
+
readonly label: "Custom CSS";
|
|
142
|
+
readonly ai: {
|
|
143
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
124
146
|
sidebarType: {
|
|
125
147
|
readonly type: "radio";
|
|
126
148
|
readonly label: "Sidebar Type";
|
|
@@ -6,6 +6,7 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
6
6
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
7
7
|
import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js";
|
|
8
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
9
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
10
|
const SideMediaContent = (props) => {
|
|
10
11
|
const {
|
|
11
12
|
heading,
|
|
@@ -18,6 +19,9 @@ const SideMediaContent = (props) => {
|
|
|
18
19
|
...props
|
|
19
20
|
};
|
|
20
21
|
const {
|
|
22
|
+
className: sectionClassName,
|
|
23
|
+
style: sectionStyle,
|
|
24
|
+
css,
|
|
21
25
|
mediaType = "image",
|
|
22
26
|
mediaPosition = "right"
|
|
23
27
|
} = styles ?? {};
|
|
@@ -57,7 +61,7 @@ const SideMediaContent = (props) => {
|
|
|
57
61
|
const mediaContent = /* @__PURE__ */ jsx("div", { children: renderMedia() });
|
|
58
62
|
const textOrder = mediaPosition === "left" ? "order-2" : "";
|
|
59
63
|
const mediaOrder = mediaPosition === "left" ? "order-1" : "";
|
|
60
|
-
return /* @__PURE__ */ jsx(
|
|
64
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-start gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20", children: [
|
|
61
65
|
/* @__PURE__ */ jsx("div", { className: textOrder, children: textContent }),
|
|
62
66
|
/* @__PURE__ */ jsx("div", { className: mediaOrder, children: mediaContent })
|
|
63
67
|
] }) }) });
|
|
@@ -27,6 +27,28 @@ declare const conf: {
|
|
|
27
27
|
type: string;
|
|
28
28
|
label: string;
|
|
29
29
|
objectFields: {
|
|
30
|
+
className: {
|
|
31
|
+
readonly type: "text";
|
|
32
|
+
readonly label: "Class Name";
|
|
33
|
+
readonly ai: {
|
|
34
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
style: {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly label: "Style";
|
|
40
|
+
readonly objectFields: {};
|
|
41
|
+
readonly ai: {
|
|
42
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
css: {
|
|
46
|
+
readonly type: "textarea";
|
|
47
|
+
readonly label: "Custom CSS";
|
|
48
|
+
readonly ai: {
|
|
49
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
30
52
|
mediaType: {
|
|
31
53
|
readonly type: "radio";
|
|
32
54
|
readonly label: "Media Type";
|
|
@@ -2,6 +2,7 @@ import { SideMediaContent, SideMediaContentDefaults } from "./component.js";
|
|
|
2
2
|
import { headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { textStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -13,7 +14,8 @@ const conf = {
|
|
|
13
14
|
label: "Styles",
|
|
14
15
|
objectFields: {
|
|
15
16
|
mediaType: textStyleFields.mediaType,
|
|
16
|
-
mediaPosition: textStyleFields.mediaPosition
|
|
17
|
+
mediaPosition: textStyleFields.mediaPosition,
|
|
18
|
+
...sectionWrapperFields
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
},
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
3
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
3
5
|
const StickyTextMultiImage = (props) => {
|
|
4
6
|
const {
|
|
5
7
|
heading,
|
|
@@ -11,6 +13,9 @@ const StickyTextMultiImage = (props) => {
|
|
|
11
13
|
...props
|
|
12
14
|
};
|
|
13
15
|
const {
|
|
16
|
+
className: sectionClassName,
|
|
17
|
+
style: sectionStyle,
|
|
18
|
+
css,
|
|
14
19
|
contentPosition = "left"
|
|
15
20
|
} = styles ?? {};
|
|
16
21
|
const textContent = /* @__PURE__ */ jsxs("div", { className: "static top-20 lg:sticky", children: [
|
|
@@ -18,7 +23,7 @@ const StickyTextMultiImage = (props) => {
|
|
|
18
23
|
/* @__PURE__ */ jsx("div", { className: "prose", dangerouslySetInnerHTML: { __html: prose } })
|
|
19
24
|
] });
|
|
20
25
|
const imagesContent = /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 md:gap-8", children: images.map((img, index) => /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CompoundImage, { src: img.src, alt: img.alt, className: "w-full object-cover" }) }, index)) });
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
+
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 grid-cols-1 items-start gap-x-12 gap-y-16 md:gap-y-20 lg:grid-cols-[1fr_1.5fr] lg:gap-x-20", children: contentPosition === "left" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
27
|
textContent,
|
|
23
28
|
imagesContent
|
|
24
29
|
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -32,6 +32,28 @@ declare const conf: {
|
|
|
32
32
|
type: string;
|
|
33
33
|
label: string;
|
|
34
34
|
objectFields: {
|
|
35
|
+
className: {
|
|
36
|
+
readonly type: "text";
|
|
37
|
+
readonly label: "Class Name";
|
|
38
|
+
readonly ai: {
|
|
39
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
style: {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly label: "Style";
|
|
45
|
+
readonly objectFields: {};
|
|
46
|
+
readonly ai: {
|
|
47
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
css: {
|
|
51
|
+
readonly type: "textarea";
|
|
52
|
+
readonly label: "Custom CSS";
|
|
53
|
+
readonly ai: {
|
|
54
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
35
57
|
contentPosition: {
|
|
36
58
|
readonly type: "radio";
|
|
37
59
|
readonly label: "Content Position";
|
|
@@ -2,6 +2,7 @@ import { StickyTextMultiImage, StickyTextMultiImageDefaults } from "./component.
|
|
|
2
2
|
import { headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { textStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -11,7 +12,8 @@ const conf = {
|
|
|
11
12
|
type: "object",
|
|
12
13
|
label: "Styles",
|
|
13
14
|
objectFields: {
|
|
14
|
-
contentPosition: textStyleFields.contentPosition
|
|
15
|
+
contentPosition: textStyleFields.contentPosition,
|
|
16
|
+
...sectionWrapperFields
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
},
|
|
@@ -28,7 +28,7 @@ declare const conf: {
|
|
|
28
28
|
readonly action: {
|
|
29
29
|
type: "custom";
|
|
30
30
|
label: string;
|
|
31
|
-
render: typeof import("
|
|
31
|
+
render: typeof import("../../..").ActionField;
|
|
32
32
|
};
|
|
33
33
|
readonly variant: {
|
|
34
34
|
readonly type: "select";
|
|
@@ -106,7 +106,7 @@ declare const conf: {
|
|
|
106
106
|
readonly action: {
|
|
107
107
|
type: "custom";
|
|
108
108
|
label: string;
|
|
109
|
-
render: typeof import("
|
|
109
|
+
render: typeof import("../../..").ActionField;
|
|
110
110
|
};
|
|
111
111
|
readonly variant: {
|
|
112
112
|
readonly type: "select";
|
|
@@ -171,6 +171,28 @@ declare const conf: {
|
|
|
171
171
|
type: string;
|
|
172
172
|
label: string;
|
|
173
173
|
objectFields: {
|
|
174
|
+
className: {
|
|
175
|
+
readonly type: "text";
|
|
176
|
+
readonly label: "Class Name";
|
|
177
|
+
readonly ai: {
|
|
178
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
style: {
|
|
182
|
+
readonly type: "object";
|
|
183
|
+
readonly label: "Style";
|
|
184
|
+
readonly objectFields: {};
|
|
185
|
+
readonly ai: {
|
|
186
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
187
|
+
};
|
|
188
|
+
};
|
|
189
|
+
css: {
|
|
190
|
+
readonly type: "textarea";
|
|
191
|
+
readonly label: "Custom CSS";
|
|
192
|
+
readonly ai: {
|
|
193
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
174
196
|
textLayout: {
|
|
175
197
|
readonly type: "select";
|
|
176
198
|
readonly label: "Text Layout";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useContext, createContext } from "react";
|
|
3
|
+
const SectionIdContext = createContext(null);
|
|
4
|
+
const SectionIdProvider = ({
|
|
5
|
+
value,
|
|
6
|
+
children
|
|
7
|
+
}) => /* @__PURE__ */ jsx(SectionIdContext.Provider, { value, children });
|
|
8
|
+
const useSectionId = () => useContext(SectionIdContext);
|
|
9
|
+
export {
|
|
10
|
+
SectionIdProvider,
|
|
11
|
+
useSectionId
|
|
12
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./interactive.js";
|
|
1
|
+
import { buttonField, iconField, buttonDefaults } from "./interactive.js";
|
|
2
2
|
const headingField = {
|
|
3
3
|
type: "text",
|
|
4
4
|
contentEditable: true
|
|
@@ -7,7 +7,47 @@ const descriptionField = {
|
|
|
7
7
|
type: "textarea",
|
|
8
8
|
contentEditable: true
|
|
9
9
|
};
|
|
10
|
+
const featuresField = {
|
|
11
|
+
type: "array",
|
|
12
|
+
max: 5,
|
|
13
|
+
getItemSummary: (item, index = 0) => item.name || `Feature ${index + 1}`,
|
|
14
|
+
arrayFields: {
|
|
15
|
+
icon: iconField,
|
|
16
|
+
name: { type: "text", contentEditable: true },
|
|
17
|
+
description: { type: "textarea", contentEditable: true }
|
|
18
|
+
},
|
|
19
|
+
defaultItemProps: {
|
|
20
|
+
icon: "check",
|
|
21
|
+
name: "Feature name",
|
|
22
|
+
description: "Description of the feature"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const cardField = {
|
|
26
|
+
type: "object",
|
|
27
|
+
objectFields: {
|
|
28
|
+
icon: iconField,
|
|
29
|
+
heading: headingField,
|
|
30
|
+
description: descriptionField,
|
|
31
|
+
button: buttonField
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const cardsField = {
|
|
35
|
+
type: "array",
|
|
36
|
+
getItemSummary: (item, index = 0) => item.heading || `Card ${index + 1}`,
|
|
37
|
+
arrayFields: {
|
|
38
|
+
...cardField.objectFields
|
|
39
|
+
},
|
|
40
|
+
defaultItemProps: {
|
|
41
|
+
icon: "activity",
|
|
42
|
+
heading: "Heading",
|
|
43
|
+
description: "Description",
|
|
44
|
+
button: buttonDefaults
|
|
45
|
+
}
|
|
46
|
+
};
|
|
10
47
|
export {
|
|
48
|
+
cardField,
|
|
49
|
+
cardsField,
|
|
11
50
|
descriptionField,
|
|
51
|
+
featuresField,
|
|
12
52
|
headingField
|
|
13
53
|
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { buttonField } from "./interactive.js";
|
|
2
|
+
const fieldTypes = [
|
|
3
|
+
"text",
|
|
4
|
+
"number",
|
|
5
|
+
"password",
|
|
6
|
+
"date",
|
|
7
|
+
"file"
|
|
8
|
+
];
|
|
9
|
+
const formMethods = ["get", "post", "put", "patch", "delete"];
|
|
10
|
+
const formFieldField = {
|
|
11
|
+
type: "object",
|
|
12
|
+
objectFields: {
|
|
13
|
+
label: { type: "text", contentEditable: true },
|
|
14
|
+
name: { type: "text" },
|
|
15
|
+
type: {
|
|
16
|
+
type: "select",
|
|
17
|
+
options: fieldTypes.map((f) => ({ label: f, value: f }))
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const formFieldDefaults = {
|
|
22
|
+
label: "Field Label",
|
|
23
|
+
type: "text",
|
|
24
|
+
name: "field_name"
|
|
25
|
+
};
|
|
26
|
+
const { action: _buttonAction, ...formButtonConfig } = buttonField.objectFields;
|
|
27
|
+
const formField = {
|
|
28
|
+
type: "object",
|
|
29
|
+
objectFields: {
|
|
30
|
+
title: { type: "text", contentEditable: true },
|
|
31
|
+
fields: {
|
|
32
|
+
type: "array",
|
|
33
|
+
min: 1,
|
|
34
|
+
max: 10,
|
|
35
|
+
arrayFields: { ...formFieldField.objectFields },
|
|
36
|
+
getItemSummary: (item, index = 0) => item.label || `Field ${index + 1}`,
|
|
37
|
+
defaultItemProps: formFieldDefaults
|
|
38
|
+
},
|
|
39
|
+
action: { type: "text", label: "submit url" },
|
|
40
|
+
method: {
|
|
41
|
+
type: "select",
|
|
42
|
+
label: "submit method",
|
|
43
|
+
options: formMethods.map((method) => ({ label: method, value: method }))
|
|
44
|
+
},
|
|
45
|
+
button: {
|
|
46
|
+
...buttonField,
|
|
47
|
+
objectFields: {
|
|
48
|
+
...formButtonConfig
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const formDefaults = {
|
|
54
|
+
title: "Book a meeting",
|
|
55
|
+
fields: [
|
|
56
|
+
{ label: "First name", type: "text", name: "first_name" },
|
|
57
|
+
{ label: "Last name", type: "text", name: "last_name" },
|
|
58
|
+
{ label: "Resume", type: "file", name: "resume" }
|
|
59
|
+
],
|
|
60
|
+
action: "/submit-form",
|
|
61
|
+
method: "post",
|
|
62
|
+
button: {
|
|
63
|
+
label: "Book the meeting",
|
|
64
|
+
variant: "default",
|
|
65
|
+
size: "default",
|
|
66
|
+
icon: "move-right"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
fieldTypes,
|
|
71
|
+
formDefaults,
|
|
72
|
+
formField,
|
|
73
|
+
formFieldDefaults,
|
|
74
|
+
formFieldField,
|
|
75
|
+
formMethods
|
|
76
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { buttonsField, badgeField } from "./interactive.js";
|
|
2
|
+
import { actionDefaults, actionField, buttonDefaults, buttonField, iconField, resolveActionUrl } from "./interactive.js";
|
|
3
|
+
import { descriptionField, headingField, featuresField } from "./content.js";
|
|
4
|
+
import { cardField, cardsField } from "./content.js";
|
|
5
|
+
const contentFields = {
|
|
6
|
+
heading: headingField,
|
|
7
|
+
description: descriptionField,
|
|
8
|
+
badge: badgeField,
|
|
9
|
+
buttons: buttonsField
|
|
10
|
+
};
|
|
11
|
+
const contentFieldsWithFeatures = {
|
|
12
|
+
heading: headingField,
|
|
13
|
+
description: descriptionField,
|
|
14
|
+
badge: badgeField,
|
|
15
|
+
features: featuresField,
|
|
16
|
+
buttons: buttonsField
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
actionDefaults,
|
|
20
|
+
actionField,
|
|
21
|
+
badgeField,
|
|
22
|
+
buttonDefaults,
|
|
23
|
+
buttonField,
|
|
24
|
+
buttonsField,
|
|
25
|
+
cardField,
|
|
26
|
+
cardsField,
|
|
27
|
+
contentFields,
|
|
28
|
+
contentFieldsWithFeatures,
|
|
29
|
+
descriptionField,
|
|
30
|
+
featuresField,
|
|
31
|
+
headingField,
|
|
32
|
+
iconField,
|
|
33
|
+
resolveActionUrl
|
|
34
|
+
};
|
|
@@ -90,9 +90,26 @@ const buttonsField = {
|
|
|
90
90
|
instructions: "Buttons must use the same size"
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
+
const badgeField = {
|
|
94
|
+
type: "object",
|
|
95
|
+
objectFields: {
|
|
96
|
+
label: { type: "text" },
|
|
97
|
+
url: { type: "text" },
|
|
98
|
+
variant: {
|
|
99
|
+
type: "select",
|
|
100
|
+
options: [
|
|
101
|
+
{ label: "default", value: "default" },
|
|
102
|
+
{ label: "secondary", value: "secondary" },
|
|
103
|
+
{ label: "destructive", value: "destructive" },
|
|
104
|
+
{ label: "outline", value: "outline" }
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
93
109
|
export {
|
|
94
110
|
actionDefaults,
|
|
95
111
|
actionField,
|
|
112
|
+
badgeField,
|
|
96
113
|
buttonDefaults,
|
|
97
114
|
buttonField,
|
|
98
115
|
buttonsField,
|
|
@@ -13,12 +13,14 @@ const image16x9Placeholder = {
|
|
|
13
13
|
alt: "16/9 aspect ratio accessible description of the image",
|
|
14
14
|
src: getPlaceholderImageUrl("1920x1080")
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
const image1x1Placeholder = {
|
|
17
|
+
alt: "1/1 aspect ratio An accessible description of the image",
|
|
17
18
|
src: getPlaceholderImageUrl("1000x1000")
|
|
18
|
-
}
|
|
19
|
-
|
|
19
|
+
};
|
|
20
|
+
const image9x16Placeholder = {
|
|
21
|
+
alt: "9/16 accessible description of the image",
|
|
20
22
|
src: getPlaceholderImageUrl("1080x1920")
|
|
21
|
-
}
|
|
23
|
+
};
|
|
22
24
|
const imagesField = {
|
|
23
25
|
type: "array",
|
|
24
26
|
max: 10,
|
|
@@ -36,6 +38,8 @@ const imagesField = {
|
|
|
36
38
|
export {
|
|
37
39
|
getPlaceholderImageUrl,
|
|
38
40
|
image16x9Placeholder,
|
|
41
|
+
image1x1Placeholder,
|
|
42
|
+
image9x16Placeholder,
|
|
39
43
|
imageField,
|
|
40
44
|
imagesField
|
|
41
45
|
};
|