dune-react 0.0.20 → 0.0.21
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/core/with-editable.js +13 -2
- package/dist/components/puck-base/fields/action-field.js +1 -1
- package/dist/components/puck-base/fields/location-field.js +1 -1
- package/dist/components/puck-base/form.js +1 -1
- package/dist/components/puck-base/image.js +1 -1
- package/dist/components/puck-base/index.d.ts +2 -1
- package/dist/components/puck-base/inline-editable.js +1 -1
- 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 +44 -0
- 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 +22 -0
- 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 +4 -22
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +3 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +22 -0
- 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 +3 -2
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -1
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +35 -5
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +22 -9
- 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 +22 -0
- 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/props.d.ts +3 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +22 -0
- 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 +22 -0
- 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 +22 -0
- 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/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 +22 -0
- 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 +22 -0
- 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 +4 -2
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +22 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +22 -0
- 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 +27 -2
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +2 -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 +22 -0
- 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 +22 -0
- 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 +4 -2
- 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 +27 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +2 -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/drawer-navbar/drawer-navbar.js +5 -2
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +4 -2
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +22 -0
- 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 +5 -2
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +7 -4
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +22 -0
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +6 -3
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +5 -2
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +35 -5
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +15 -5
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +13 -5
- 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 +22 -0
- 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/inline-image-hero/index.d.ts +22 -0
- 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 +40 -7
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +9 -5
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +27 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +2 -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 +22 -0
- 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/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/scroll-expand-video-hero/component.js +16 -7
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +13 -5
- 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 +17 -8
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +35 -5
- 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 +35 -5
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +35 -5
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +15 -5
- 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 +35 -5
- 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 +44 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +3 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +11 -3
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +22 -0
- 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 +8 -4
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +12 -4
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +3 -0
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +3 -0
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +3 -0
- package/dist/components/puck-block/location-sections/props.d.ts +3 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +44 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +4 -2
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +4 -2
- 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 +44 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +4 -2
- 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 +22 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +2 -1
- 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/showcase-sections/compact-timeline/component.js +5 -1
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +22 -0
- 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 +45 -3
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +4 -2
- 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 +22 -0
- 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 +44 -0
- package/dist/components/puck-block/team-sections/team-carousel/index.js +5 -2
- 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 +44 -0
- package/dist/components/puck-block/team-sections/team-grid/index.js +5 -2
- 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 +44 -0
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +5 -2
- 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 +22 -0
- 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 +22 -0
- 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 +44 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +4 -2
- 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 +44 -0
- package/dist/components/puck-block/text-sections/blog-article/index.js +4 -2
- 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 +44 -0
- 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 +22 -0
- 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/styles.d.ts +374 -0
- package/dist/components/puck-core/fields/action-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +2 -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 +4 -1
- package/package.json +1 -1
- 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
|
@@ -4,7 +4,7 @@ import { useRef, useEffect, useCallback } from "react";
|
|
|
4
4
|
import { registerOverlayPortal } from "@puckeditor/core";
|
|
5
5
|
import { usePuckDispatch, usePuckAppState } from "./hooks.js";
|
|
6
6
|
import { Pencil } from "lucide-react";
|
|
7
|
-
import { useEditorContext } from "
|
|
7
|
+
import { useEditorContext } from "../../puck-core/core/context/editor-context.js";
|
|
8
8
|
import set from "../../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
|
|
9
9
|
const BLOCK_LEVEL_TYPES = /* @__PURE__ */ new Set(["image"]);
|
|
10
10
|
function getComponentIdFromDOM(el) {
|
|
@@ -68,7 +68,18 @@ function withEditable(Component, config) {
|
|
|
68
68
|
[props, handleSave]
|
|
69
69
|
);
|
|
70
70
|
if (isBlock) {
|
|
71
|
-
|
|
71
|
+
const imgClass = String(props.className || "");
|
|
72
|
+
const isAbsoluteChild = /\babsolute\b/.test(imgClass);
|
|
73
|
+
const hasExplicitSize = /\bsize-\d/.test(imgClass) || /\b[wh]-\d+\b/.test(imgClass) && !/\b[wh]-full\b/.test(imgClass);
|
|
74
|
+
let wrapperClassName;
|
|
75
|
+
if (isAbsoluteChild) {
|
|
76
|
+
wrapperClassName = "group block h-full w-full";
|
|
77
|
+
} else if (hasExplicitSize) {
|
|
78
|
+
wrapperClassName = "group relative inline-block";
|
|
79
|
+
} else {
|
|
80
|
+
wrapperClassName = "group relative block";
|
|
81
|
+
}
|
|
82
|
+
return /* @__PURE__ */ jsxs("span", { ref: wrapperRef, className: wrapperClassName, children: [
|
|
72
83
|
/* @__PURE__ */ jsx(Component, { ...props }),
|
|
73
84
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-60 flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74
85
|
"span",
|
|
@@ -5,7 +5,7 @@ import { Input } from "../../shadcn/input.js";
|
|
|
5
5
|
import { Label } from "../../shadcn/label.js";
|
|
6
6
|
import { Tabs, TabsList, TabsTrigger } from "../../shadcn/tabs.js";
|
|
7
7
|
import { LinkIcon, XIcon, GlobeIcon } from "lucide-react";
|
|
8
|
-
import { useEditorContext } from "
|
|
8
|
+
import { useEditorContext } from "../../puck-core/core/context/editor-context.js";
|
|
9
9
|
const ACTION_TYPE_OPTIONS = [
|
|
10
10
|
{ label: "Page Link", value: "page" },
|
|
11
11
|
{ label: "External Link", value: "external" },
|
|
@@ -4,7 +4,7 @@ import { memo, useState, useRef, useEffect, useCallback } from "react";
|
|
|
4
4
|
import { Input } from "../../shadcn/input.js";
|
|
5
5
|
import { Label } from "../../shadcn/label.js";
|
|
6
6
|
import { Loader2, Search, X, MapPin } from "lucide-react";
|
|
7
|
-
import { useEditorContext } from "
|
|
7
|
+
import { useEditorContext } from "../../puck-core/core/context/editor-context.js";
|
|
8
8
|
let googleLoadPromise = null;
|
|
9
9
|
function loadGooglePlaces(apiKey) {
|
|
10
10
|
var _a, _b;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CompoundButton } from "./button.js";
|
|
3
3
|
import { CompoundField } from "./field.js";
|
|
4
|
-
import { useEditorContext } from "
|
|
4
|
+
import { useEditorContext } from "../puck-core/core/context/editor-context.js";
|
|
5
5
|
const formMethods = ["get", "post", "put", "patch", "delete"];
|
|
6
6
|
const CompoundForm = (props) => {
|
|
7
7
|
const { isEditor: isEditorMode } = useEditorContext();
|
|
@@ -14,7 +14,7 @@ import { ScrollArea } from "../shadcn/scroll-area.js";
|
|
|
14
14
|
import { Slider } from "../shadcn/slider.js";
|
|
15
15
|
import { Tabs, TabsList, TabsTrigger } from "../shadcn/tabs.js";
|
|
16
16
|
import useUpload from "./use-upload.js";
|
|
17
|
-
import { useEditorContext } from "
|
|
17
|
+
import { useEditorContext } from "../puck-core/core/context/editor-context.js";
|
|
18
18
|
const createImage = (url) => new Promise((resolve, reject) => {
|
|
19
19
|
const image2 = new Image();
|
|
20
20
|
image2.addEventListener("load", () => resolve(image2));
|
|
@@ -17,6 +17,7 @@ export { withEditable } from "./core/with-editable";
|
|
|
17
17
|
export { usePuckDispatch, usePuckAppState, usePuckHistory, usePuckConfig, usePuckGetSelectorForId, type PuckComponentInfo, } from "./core/hooks";
|
|
18
18
|
export { findComponentById, getRandomAdjective } from "./core/utils";
|
|
19
19
|
export { icon, action, actionDefaults, button, buttons, badge, image, images, padding, paddingDefaults, paddingLevel, heading, description, features, contentFields, contentFieldsWithFeatures, card, cards, field, fieldDefaults, form, formDefaults, getPlaceholderImageUrl, image16x9Placeholder, image1x1Placeholder, image9x16Placeholder, sectionStyle, sectionOverlay, backgroundColor, backgroundImage, } from "./core/fields";
|
|
20
|
-
export { EditorContextProvider, useEditorContext } from "
|
|
20
|
+
export { EditorContextProvider, useEditorContext } from "@/components/puck-core/core/context/editor-context";
|
|
21
|
+
export { SectionIdProvider, useSectionId } from "@/components/puck-core/core/context/section-id-context";
|
|
21
22
|
export { AutoField, type FieldDef, type AutoFieldProps, type FieldsPanelProps } from "./fields";
|
|
22
23
|
export { default as useUpload, type UploadFileItem, type UploadStatus, type UseUploadOptions } from "./use-upload";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createElement, useRef, useEffect, useCallback } from "react";
|
|
4
4
|
import { registerOverlayPortal } from "@puckeditor/core";
|
|
5
|
-
import { useEditorContext } from "
|
|
5
|
+
import { useEditorContext } from "../puck-core/core/context/editor-context.js";
|
|
6
6
|
import { usePuckDispatch } from "./core/hooks.js";
|
|
7
7
|
import set from "../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
|
|
8
8
|
import { findComponentById } from "./core/utils.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import { cn } from "../../../../utils/css-utils.js";
|
|
4
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
5
|
const CssMarqueeBanner = (props) => {
|
|
5
6
|
const {
|
|
6
7
|
headings = [],
|
|
@@ -11,12 +12,15 @@ const CssMarqueeBanner = (props) => {
|
|
|
11
12
|
...props
|
|
12
13
|
};
|
|
13
14
|
const {
|
|
15
|
+
className: sectionClassName,
|
|
16
|
+
style: sectionStyle,
|
|
17
|
+
css,
|
|
14
18
|
direction = "left",
|
|
15
19
|
contentType = "text"
|
|
16
20
|
} = styles ?? {};
|
|
17
21
|
const animationClass = direction === "left" ? "animate-marquee-left" : "animate-marquee-right";
|
|
18
22
|
if (contentType === "textWithImage") {
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("flex w-screen max-w-full justify-end overflow-hidden", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(
|
|
20
24
|
"div",
|
|
21
25
|
{
|
|
22
26
|
className: `grid ${animationClass} auto-cols-max grid-flow-col grid-cols-[max-content] items-center justify-around py-4`,
|
|
@@ -36,10 +40,11 @@ const CssMarqueeBanner = (props) => {
|
|
|
36
40
|
)) }) });
|
|
37
41
|
}
|
|
38
42
|
return /* @__PURE__ */ jsx(
|
|
39
|
-
|
|
43
|
+
SectionWrapper,
|
|
40
44
|
{
|
|
41
|
-
|
|
42
|
-
|
|
45
|
+
className: cn("flex w-screen max-w-full justify-end overflow-hidden border-b border-border-primary", sectionClassName),
|
|
46
|
+
style: sectionStyle,
|
|
47
|
+
css,
|
|
43
48
|
children: /* @__PURE__ */ jsx("div", { className: "flex w-[200vw]", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(
|
|
44
49
|
"div",
|
|
45
50
|
{
|
|
@@ -37,6 +37,28 @@ declare const conf: {
|
|
|
37
37
|
type: string;
|
|
38
38
|
label: string;
|
|
39
39
|
objectFields: {
|
|
40
|
+
className: {
|
|
41
|
+
readonly type: "text";
|
|
42
|
+
readonly label: "Class Name";
|
|
43
|
+
readonly ai: {
|
|
44
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
style: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly label: "Style";
|
|
50
|
+
readonly objectFields: {};
|
|
51
|
+
readonly ai: {
|
|
52
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
css: {
|
|
56
|
+
readonly type: "textarea";
|
|
57
|
+
readonly label: "Custom CSS";
|
|
58
|
+
readonly ai: {
|
|
59
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
40
62
|
direction: {
|
|
41
63
|
readonly type: "radio";
|
|
42
64
|
readonly label: "Direction";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CssMarqueeBanner, CssMarqueeBannerDefaults } from "./css-marquee-banner.js";
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { bannerStyleFields } from "../props.js";
|
|
4
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
4
5
|
const conf = {
|
|
5
6
|
fields: {
|
|
6
7
|
headings: {
|
|
@@ -25,7 +26,8 @@ const conf = {
|
|
|
25
26
|
label: "Styles",
|
|
26
27
|
objectFields: {
|
|
27
28
|
direction: bannerStyleFields.direction,
|
|
28
|
-
contentType: bannerStyleFields.contentType
|
|
29
|
+
contentType: bannerStyleFields.contentType,
|
|
30
|
+
...sectionWrapperFields
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
},
|
|
@@ -173,6 +173,28 @@ declare const conf: {
|
|
|
173
173
|
render: typeof import("../../../puck-core").ActionField;
|
|
174
174
|
};
|
|
175
175
|
title: {
|
|
176
|
+
className: {
|
|
177
|
+
readonly type: "text";
|
|
178
|
+
readonly label: "Class Name";
|
|
179
|
+
readonly ai: {
|
|
180
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
style: {
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly label: "Style";
|
|
186
|
+
readonly objectFields: {};
|
|
187
|
+
readonly ai: {
|
|
188
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
css: {
|
|
192
|
+
readonly type: "textarea";
|
|
193
|
+
readonly label: "Custom CSS";
|
|
194
|
+
readonly ai: {
|
|
195
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
176
198
|
type: string;
|
|
177
199
|
};
|
|
178
200
|
};
|
|
@@ -181,6 +203,28 @@ declare const conf: {
|
|
|
181
203
|
type: string;
|
|
182
204
|
label: string;
|
|
183
205
|
objectFields: {
|
|
206
|
+
className: {
|
|
207
|
+
readonly type: "text";
|
|
208
|
+
readonly label: "Class Name";
|
|
209
|
+
readonly ai: {
|
|
210
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
style: {
|
|
214
|
+
readonly type: "object";
|
|
215
|
+
readonly label: "Style";
|
|
216
|
+
readonly objectFields: {};
|
|
217
|
+
readonly ai: {
|
|
218
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
css: {
|
|
222
|
+
readonly type: "textarea";
|
|
223
|
+
readonly label: "Custom CSS";
|
|
224
|
+
readonly ai: {
|
|
225
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
226
|
+
};
|
|
227
|
+
};
|
|
184
228
|
containerStyle: {
|
|
185
229
|
readonly type: "radio";
|
|
186
230
|
readonly label: "Container Style";
|
|
@@ -3,17 +3,28 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
4
4
|
import { useScroll, useTransform, motion } from "framer-motion";
|
|
5
5
|
import React__default, { useRef } from "react";
|
|
6
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
7
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
6
9
|
const DualRowMarquee = (props) => {
|
|
7
10
|
const {
|
|
8
11
|
headingsTop = [],
|
|
9
|
-
headingsBottom = []
|
|
12
|
+
headingsBottom = [],
|
|
13
|
+
styles
|
|
10
14
|
} = {
|
|
11
15
|
...DualRowMarqueeDefaults,
|
|
12
16
|
...props
|
|
13
17
|
};
|
|
18
|
+
const {
|
|
19
|
+
className: sectionClassName,
|
|
20
|
+
style: sectionStyle,
|
|
21
|
+
css
|
|
22
|
+
} = styles ?? {};
|
|
14
23
|
const sectionRef = useRef(null);
|
|
24
|
+
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
15
25
|
const { scrollYProgress } = useScroll({
|
|
16
26
|
target: sectionRef,
|
|
27
|
+
...scrollContainerRef.current ? { container: scrollContainerRef } : {},
|
|
17
28
|
offset: ["start end", "end start"]
|
|
18
29
|
});
|
|
19
30
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
@@ -46,11 +57,12 @@ const DualRowMarquee = (props) => {
|
|
|
46
57
|
}
|
|
47
58
|
);
|
|
48
59
|
return /* @__PURE__ */ jsxs(
|
|
49
|
-
|
|
60
|
+
SectionWrapper,
|
|
50
61
|
{
|
|
51
|
-
id: "relume",
|
|
52
62
|
ref: sectionRef,
|
|
53
|
-
className: "flex w-screen max-w-full flex-col justify-end overflow-hidden",
|
|
63
|
+
className: cn("flex w-screen max-w-full flex-col justify-end overflow-hidden", sectionClassName),
|
|
64
|
+
style: sectionStyle,
|
|
65
|
+
css,
|
|
54
66
|
children: [
|
|
55
67
|
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: renderHeadings(headingsTop, headingTopTranslate) }, index)) }),
|
|
56
68
|
/* @__PURE__ */ jsx("div", { className: "flex justify-start", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: renderHeadings(headingsBottom, headingBottomTranslate) }, index)) })
|
|
@@ -8,6 +8,9 @@ import type { BaseImage } from "@/components/puck-core/core/props/media";
|
|
|
8
8
|
import type { BaseButton, Action } from "@/components/puck-core/core/props/interactive";
|
|
9
9
|
export type { BaseImage, BaseButton, Action };
|
|
10
10
|
export interface BannerSectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
containerStyle?: "boxed" | "fullWidth";
|
|
12
15
|
textLayout?: "default" | "centered" | "inlineLink";
|
|
13
16
|
ctaType?: "email" | "button" | "buttons" | "socialLinks";
|
package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js
CHANGED
|
@@ -2,20 +2,31 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useScroll, useTransform, motion } from "framer-motion";
|
|
4
4
|
import { useRef } from "react";
|
|
5
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
5
8
|
const ScrollDrivenMarquee = (props) => {
|
|
6
9
|
const {
|
|
7
|
-
headings = []
|
|
10
|
+
headings = [],
|
|
11
|
+
styles
|
|
8
12
|
} = {
|
|
9
13
|
...ScrollDrivenMarqueeDefaults,
|
|
10
14
|
...props
|
|
11
15
|
};
|
|
16
|
+
const {
|
|
17
|
+
className: sectionClassName,
|
|
18
|
+
style: sectionStyle,
|
|
19
|
+
css
|
|
20
|
+
} = styles ?? {};
|
|
12
21
|
const sectionRef = useRef(null);
|
|
22
|
+
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
13
23
|
const { scrollYProgress } = useScroll({
|
|
14
24
|
target: sectionRef,
|
|
25
|
+
...scrollContainerRef.current ? { container: scrollContainerRef } : {},
|
|
15
26
|
offset: ["start end", "end start"]
|
|
16
27
|
});
|
|
17
28
|
const headingTranslate = useTransform(scrollYProgress, [0, 1], ["-50%", "0%"]);
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { ref: sectionRef, className: cn("overflow-hidden", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "flex whitespace-nowrap border-b border-t border-border-primary", children: /* @__PURE__ */ jsx("div", { className: "flex w-full items-center overflow-hidden whitespace-nowrap py-4", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(
|
|
19
30
|
motion.div,
|
|
20
31
|
{
|
|
21
32
|
className: "ml-12 grid auto-cols-max grid-flow-col grid-cols-[max-content] gap-12",
|
package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js
CHANGED
|
@@ -3,26 +3,37 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { useScroll, useTransform, motion } from "framer-motion";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
6
8
|
const ScrollParallaxText = (props) => {
|
|
7
9
|
const {
|
|
8
|
-
headings = []
|
|
10
|
+
headings = [],
|
|
11
|
+
styles
|
|
9
12
|
} = {
|
|
10
13
|
...ScrollParallaxTextDefaults,
|
|
11
14
|
...props
|
|
12
15
|
};
|
|
16
|
+
const {
|
|
17
|
+
className: sectionClassName,
|
|
18
|
+
style: sectionStyle,
|
|
19
|
+
css
|
|
20
|
+
} = styles ?? {};
|
|
13
21
|
const sectionRef = useRef(null);
|
|
22
|
+
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
14
23
|
const { scrollYProgress } = useScroll({
|
|
15
24
|
target: sectionRef,
|
|
25
|
+
...scrollContainerRef.current ? { container: scrollContainerRef } : {},
|
|
16
26
|
offset: ["start start", "end start"]
|
|
17
27
|
});
|
|
18
28
|
const xPartOne = useTransform(scrollYProgress, [0, 1], ["-10%", "0%"]);
|
|
19
29
|
const xPartTwo = useTransform(scrollYProgress, [0, 1], ["10%", "0%"]);
|
|
20
30
|
return /* @__PURE__ */ jsx(
|
|
21
|
-
|
|
31
|
+
SectionWrapper,
|
|
22
32
|
{
|
|
23
|
-
id: "relume",
|
|
24
33
|
ref: sectionRef,
|
|
25
|
-
className: "overflow-hidden px-[5%] py-
|
|
34
|
+
className: cn("overflow-hidden px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
|
|
35
|
+
style: sectionStyle,
|
|
36
|
+
css,
|
|
26
37
|
children: /* @__PURE__ */ jsx("div", { className: "flex flex-col whitespace-nowrap", children: headings.map((heading, index) => /* @__PURE__ */ jsx(
|
|
27
38
|
motion.h1,
|
|
28
39
|
{
|
|
@@ -3,18 +3,18 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "../../../shadcn/select.js";
|
|
5
5
|
import { Input } from "../../../shadcn/input.js";
|
|
6
|
-
import { Checkbox } from "../../../shadcn/checkbox.js";
|
|
7
6
|
import { Label } from "../../../shadcn/label.js";
|
|
8
7
|
import { Textarea } from "../../../shadcn/textarea.js";
|
|
9
8
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
10
9
|
import { useContactForm } from "../use-contact-form.js";
|
|
11
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
11
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
12
12
|
const CenteredForm = (props) => {
|
|
13
13
|
const { tagline, heading, description, button, styles } = {
|
|
14
14
|
...CenteredFormDefaults,
|
|
15
15
|
...props
|
|
16
16
|
};
|
|
17
|
-
const { formType = "simple", textAlign = "center" } = styles ?? {};
|
|
17
|
+
const { className: sectionClassName, style: sectionStyle, css, formType = "simple", textAlign = "center" } = styles ?? {};
|
|
18
18
|
const { createSubmitHandler, submitting } = useContactForm();
|
|
19
19
|
const [name, setName] = useState("");
|
|
20
20
|
const [firstName, setFirstName] = useState("");
|
|
@@ -23,7 +23,6 @@ const CenteredForm = (props) => {
|
|
|
23
23
|
const [phone, setPhone] = useState("");
|
|
24
24
|
const [message, setMessage] = useState("");
|
|
25
25
|
const [topic, setTopic] = useState("");
|
|
26
|
-
const [acceptTerms, setAcceptTerms] = useState(false);
|
|
27
26
|
const handleSubmit = createSubmitHandler(
|
|
28
27
|
() => ({
|
|
29
28
|
name: name || `${firstName} ${lastName}`.trim() || "",
|
|
@@ -39,7 +38,6 @@ const CenteredForm = (props) => {
|
|
|
39
38
|
setPhone("");
|
|
40
39
|
setMessage("");
|
|
41
40
|
setTopic("");
|
|
42
|
-
setAcceptTerms(false);
|
|
43
41
|
}
|
|
44
42
|
);
|
|
45
43
|
const isCenter = textAlign === "center";
|
|
@@ -114,7 +112,7 @@ const CenteredForm = (props) => {
|
|
|
114
112
|
)
|
|
115
113
|
] })
|
|
116
114
|
] });
|
|
117
|
-
return /* @__PURE__ */ jsx(
|
|
115
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container max-w-lg", children: [
|
|
118
116
|
/* @__PURE__ */ jsxs(
|
|
119
117
|
"div",
|
|
120
118
|
{
|
|
@@ -135,14 +133,6 @@ const CenteredForm = (props) => {
|
|
|
135
133
|
onSubmit: handleSubmit,
|
|
136
134
|
children: [
|
|
137
135
|
formType === "advanced" ? renderAdvancedForm() : renderSimpleForm(),
|
|
138
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center space-x-2 text-sm md:mb-4", children: [
|
|
139
|
-
/* @__PURE__ */ jsx(Checkbox, { id: "terms", checked: acceptTerms, onCheckedChange: setAcceptTerms }),
|
|
140
|
-
/* @__PURE__ */ jsxs(Label, { htmlFor: "terms", className: "cursor-pointer", children: [
|
|
141
|
-
"I accept the",
|
|
142
|
-
" ",
|
|
143
|
-
/* @__PURE__ */ jsx("a", { className: "text-link-primary underline", href: "#", children: "Terms" })
|
|
144
|
-
] })
|
|
145
|
-
] }),
|
|
146
136
|
/* @__PURE__ */ jsx("div", { className: cn({ "text-center": isCenter }), children: /* @__PURE__ */ jsx(CompoundButton, { label: submitting ? "Submitting..." : button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon, disabled: submitting }) })
|
|
147
137
|
]
|
|
148
138
|
}
|
|
@@ -74,6 +74,28 @@ declare const conf: {
|
|
|
74
74
|
type: string;
|
|
75
75
|
label: string;
|
|
76
76
|
objectFields: {
|
|
77
|
+
className: {
|
|
78
|
+
readonly type: "text";
|
|
79
|
+
readonly label: "Class Name";
|
|
80
|
+
readonly ai: {
|
|
81
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
style: {
|
|
85
|
+
readonly type: "object";
|
|
86
|
+
readonly label: "Style";
|
|
87
|
+
readonly objectFields: {};
|
|
88
|
+
readonly ai: {
|
|
89
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
css: {
|
|
93
|
+
readonly type: "textarea";
|
|
94
|
+
readonly label: "Custom CSS";
|
|
95
|
+
readonly ai: {
|
|
96
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
77
99
|
formType: {
|
|
78
100
|
readonly type: "radio";
|
|
79
101
|
readonly label: "Form Type";
|
|
@@ -2,6 +2,7 @@ import { CenteredForm, CenteredFormDefaults } from "./centered-form.js";
|
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { contactStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
tagline: { type: "text" },
|
|
@@ -13,7 +14,8 @@ const conf = {
|
|
|
13
14
|
label: "Styles",
|
|
14
15
|
objectFields: {
|
|
15
16
|
formType: contactStyleFields.formType,
|
|
16
|
-
textAlign: contactStyleFields.textAlign
|
|
17
|
+
textAlign: contactStyleFields.textAlign,
|
|
18
|
+
...sectionWrapperFields
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
},
|
package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { BiMap, BiPhone, BiEnvelope } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
3
3
|
import { cn } from "../../../../utils/css-utils.js";
|
|
4
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
5
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
5
6
|
const iconMap = {
|
|
6
7
|
email: /* @__PURE__ */ jsx(BiEnvelope, { className: "size-12" }),
|
|
@@ -13,6 +14,9 @@ const ContactCardsGrid = (props) => {
|
|
|
13
14
|
...props
|
|
14
15
|
};
|
|
15
16
|
const {
|
|
17
|
+
className: sectionClassName,
|
|
18
|
+
style: sectionStyle,
|
|
19
|
+
css,
|
|
16
20
|
columns = 3,
|
|
17
21
|
textAlign = "left",
|
|
18
22
|
hasHeader = false,
|
|
@@ -22,7 +26,7 @@ const ContactCardsGrid = (props) => {
|
|
|
22
26
|
const isCardCenter = textAlign === "center";
|
|
23
27
|
const isHeaderCenter = headerAlign === "center";
|
|
24
28
|
const gridColsClass = columns === 4 ? "md:grid-cols-2 lg:grid-cols-4" : "md:grid-cols-3";
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
29
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
26
30
|
showHeader && /* @__PURE__ */ jsxs(
|
|
27
31
|
"div",
|
|
28
32
|
{
|
|
@@ -37,6 +37,28 @@ declare const conf: {
|
|
|
37
37
|
type: string;
|
|
38
38
|
label: string;
|
|
39
39
|
objectFields: {
|
|
40
|
+
className: {
|
|
41
|
+
readonly type: "text";
|
|
42
|
+
readonly label: "Class Name";
|
|
43
|
+
readonly ai: {
|
|
44
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
style: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly label: "Style";
|
|
50
|
+
readonly objectFields: {};
|
|
51
|
+
readonly ai: {
|
|
52
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
css: {
|
|
56
|
+
readonly type: "textarea";
|
|
57
|
+
readonly label: "Custom CSS";
|
|
58
|
+
readonly ai: {
|
|
59
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
40
62
|
columns: {
|
|
41
63
|
readonly type: "radio";
|
|
42
64
|
readonly label: "Columns";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ContactCardsGrid, ContactCardsGridDefaults } from "./contact-cards-grid.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { contactStyleFields } from "../props.js";
|
|
4
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
4
5
|
const conf = {
|
|
5
6
|
fields: {
|
|
6
7
|
tagline: { type: "text" },
|
|
@@ -23,7 +24,8 @@ const conf = {
|
|
|
23
24
|
columns: contactStyleFields.columns,
|
|
24
25
|
textAlign: contactStyleFields.textAlign,
|
|
25
26
|
hasHeader: contactStyleFields.hasHeader,
|
|
26
|
-
headerAlign: contactStyleFields.headerAlign
|
|
27
|
+
headerAlign: contactStyleFields.headerAlign,
|
|
28
|
+
...sectionWrapperFields
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
},
|
|
@@ -6,18 +6,18 @@ import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from ".
|
|
|
6
6
|
import { Sheet, SheetTrigger, SheetContent } from "../../../shadcn/sheet.js";
|
|
7
7
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
8
8
|
import { Input } from "../../../shadcn/input.js";
|
|
9
|
-
import { Checkbox } from "../../../shadcn/checkbox.js";
|
|
10
9
|
import { Label } from "../../../shadcn/label.js";
|
|
11
10
|
import { Textarea } from "../../../shadcn/textarea.js";
|
|
12
11
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
13
12
|
import { useContactForm } from "../use-contact-form.js";
|
|
14
13
|
import { cn } from "../../../../utils/css-utils.js";
|
|
14
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
15
15
|
const ContactModal = (props) => {
|
|
16
16
|
const { heading, description, button, styles } = {
|
|
17
17
|
...ContactModalDefaults,
|
|
18
18
|
...props
|
|
19
19
|
};
|
|
20
|
-
const { formType = "simple", modalType = "dialog" } = styles ?? {};
|
|
20
|
+
const { className: sectionClassName, style: sectionStyle, css, formType = "simple", modalType = "dialog" } = styles ?? {};
|
|
21
21
|
const { createSubmitHandler, submitting } = useContactForm();
|
|
22
22
|
const [name, setName] = useState("");
|
|
23
23
|
const [firstName, setFirstName] = useState("");
|
|
@@ -26,7 +26,6 @@ const ContactModal = (props) => {
|
|
|
26
26
|
const [phone, setPhone] = useState("");
|
|
27
27
|
const [message, setMessage] = useState("");
|
|
28
28
|
const [topic, setTopic] = useState("");
|
|
29
|
-
const [acceptTerms, setAcceptTerms] = useState(false);
|
|
30
29
|
const handleSubmit = createSubmitHandler(
|
|
31
30
|
() => ({
|
|
32
31
|
name: name || `${firstName} ${lastName}`.trim() || "",
|
|
@@ -42,7 +41,6 @@ const ContactModal = (props) => {
|
|
|
42
41
|
setPhone("");
|
|
43
42
|
setMessage("");
|
|
44
43
|
setTopic("");
|
|
45
|
-
setAcceptTerms(false);
|
|
46
44
|
}
|
|
47
45
|
);
|
|
48
46
|
const renderSimpleFields = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -122,28 +120,12 @@ const ContactModal = (props) => {
|
|
|
122
120
|
] }),
|
|
123
121
|
/* @__PURE__ */ jsxs("form", { className: "grid gap-6", onSubmit: handleSubmit, children: [
|
|
124
122
|
formType === "advanced" ? renderAdvancedFields() : renderSimpleFields(),
|
|
125
|
-
/* @__PURE__ */ jsxs("div", { className: "rb-4 mb-4 flex items-center", children: [
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
127
|
-
Checkbox,
|
|
128
|
-
{
|
|
129
|
-
id: "terms",
|
|
130
|
-
checked: acceptTerms,
|
|
131
|
-
onCheckedChange: setAcceptTerms,
|
|
132
|
-
className: "mr-2"
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
/* @__PURE__ */ jsxs(Label, { htmlFor: "terms", className: "cursor-pointer text-sm", children: [
|
|
136
|
-
"I accept the",
|
|
137
|
-
" ",
|
|
138
|
-
/* @__PURE__ */ jsx("a", { className: "text-link-primary underline", href: "#", children: "Terms" })
|
|
139
|
-
] })
|
|
140
|
-
] }),
|
|
141
123
|
/* @__PURE__ */ jsx("div", { className: "text-center", children: /* @__PURE__ */ jsx(CompoundButton, { label: submitting ? "Submitting..." : button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon, disabled: submitting }) })
|
|
142
124
|
] })
|
|
143
125
|
] });
|
|
144
126
|
if (modalType === "sheet-right" || modalType === "sheet-bottom") {
|
|
145
127
|
const side = modalType === "sheet-right" ? "right" : "bottom";
|
|
146
|
-
return /* @__PURE__ */ jsx(
|
|
128
|
+
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 max-w-lg text-center", children: /* @__PURE__ */ jsxs(Sheet, { children: [
|
|
147
129
|
/* @__PURE__ */ jsx(SheetTrigger, { render: /* @__PURE__ */ jsx(Button, {}), children: "Open contact form" }),
|
|
148
130
|
/* @__PURE__ */ jsx(
|
|
149
131
|
SheetContent,
|
|
@@ -161,7 +143,7 @@ const ContactModal = (props) => {
|
|
|
161
143
|
)
|
|
162
144
|
] }) }) });
|
|
163
145
|
}
|
|
164
|
-
return /* @__PURE__ */ jsx(
|
|
146
|
+
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 max-w-lg text-center", children: /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
165
147
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { children: "Open modal" }) }),
|
|
166
148
|
/* @__PURE__ */ jsx(
|
|
167
149
|
DialogContent,
|