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
|
@@ -156,6 +156,28 @@ declare const conf: {
|
|
|
156
156
|
type: string;
|
|
157
157
|
label: string;
|
|
158
158
|
objectFields: {
|
|
159
|
+
className: {
|
|
160
|
+
readonly type: "text";
|
|
161
|
+
readonly label: "Class Name";
|
|
162
|
+
readonly ai: {
|
|
163
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
style: {
|
|
167
|
+
readonly type: "object";
|
|
168
|
+
readonly label: "Style";
|
|
169
|
+
readonly objectFields: {};
|
|
170
|
+
readonly ai: {
|
|
171
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
css: {
|
|
175
|
+
readonly type: "textarea";
|
|
176
|
+
readonly label: "Custom CSS";
|
|
177
|
+
readonly ai: {
|
|
178
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
159
181
|
bordered: {
|
|
160
182
|
readonly type: "radio";
|
|
161
183
|
readonly label: "Bordered";
|
|
@@ -3,6 +3,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import React__default from "react";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
8
|
const imageColumns = [
|
|
7
9
|
{ className: "-mt-[20%] animate-loop-vertically-top" },
|
|
8
10
|
{ className: "-mt-[50%] animate-loop-vertically-bottom" },
|
|
@@ -11,12 +13,13 @@ const imageColumns = [
|
|
|
11
13
|
{ className: "mt-[-20%] animate-loop-vertically-top" }
|
|
12
14
|
];
|
|
13
15
|
const ColumnScrollHero = (props) => {
|
|
14
|
-
const { heading, description, buttons = [], imagesPartOne = [], imagesPartTwo = [] } = {
|
|
16
|
+
const { heading, description, buttons = [], imagesPartOne = [], imagesPartTwo = [], styles } = {
|
|
15
17
|
...ColumnScrollHeroDefaults,
|
|
16
18
|
...props
|
|
17
19
|
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
21
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "flex max-h-[60rem] min-h-svh items-center", children: [
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "container py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 mx-auto max-w-lg text-center", children: [
|
|
20
23
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold text-text-alternative md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
21
24
|
/* @__PURE__ */ jsx("p", { className: "text-text-alternative md:text-md", children: description }),
|
|
22
25
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-x-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
5
7
|
const DualMarqueeHero = (props) => {
|
|
6
|
-
const { heading, description, buttons = [], images = [] } = {
|
|
8
|
+
const { heading, description, buttons = [], images = [], styles } = {
|
|
7
9
|
...DualMarqueeHeroDefaults,
|
|
8
10
|
...props
|
|
9
11
|
};
|
|
10
|
-
|
|
12
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
13
|
+
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 flex flex-col items-center", children: [
|
|
11
14
|
/* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 max-w-lg text-center md:mb-18 lg:mb-20", children: [
|
|
12
15
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
13
16
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
@@ -91,14 +91,22 @@ declare const conf: {
|
|
|
91
91
|
readonly instructions: "Buttons must use the same size";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
|
|
95
|
-
type: "
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
alt
|
|
94
|
+
images: {
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly max: 10;
|
|
97
|
+
readonly getItemSummary: (item: {
|
|
98
|
+
alt?: string;
|
|
99
|
+
}, index?: number) => string;
|
|
100
|
+
readonly arrayFields: {
|
|
101
|
+
readonly src: import("@puckeditor/core").Field<string>;
|
|
102
|
+
readonly alt: {
|
|
99
103
|
type: "text";
|
|
100
104
|
};
|
|
101
105
|
};
|
|
106
|
+
readonly defaultItemProps: {
|
|
107
|
+
alt: string;
|
|
108
|
+
src: string;
|
|
109
|
+
};
|
|
102
110
|
};
|
|
103
111
|
video: {
|
|
104
112
|
type: string;
|
|
@@ -168,6 +176,28 @@ declare const conf: {
|
|
|
168
176
|
type: string;
|
|
169
177
|
label: string;
|
|
170
178
|
objectFields: {
|
|
179
|
+
className: {
|
|
180
|
+
readonly type: "text";
|
|
181
|
+
readonly label: "Class Name";
|
|
182
|
+
readonly ai: {
|
|
183
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
style: {
|
|
187
|
+
readonly type: "object";
|
|
188
|
+
readonly label: "Style";
|
|
189
|
+
readonly objectFields: {};
|
|
190
|
+
readonly ai: {
|
|
191
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
css: {
|
|
195
|
+
readonly type: "textarea";
|
|
196
|
+
readonly label: "Custom CSS";
|
|
197
|
+
readonly ai: {
|
|
198
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
171
201
|
textLayout: {
|
|
172
202
|
readonly type: "select";
|
|
173
203
|
readonly label: "Text Layout";
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useRef } from "react";
|
|
3
4
|
import { useScroll, useTransform, motion } from "framer-motion";
|
|
4
5
|
import { VideoIframe } from "../../../shadcn/video-iframe.js";
|
|
5
6
|
import { Dialog, DialogTrigger, DialogContent } from "../../../shadcn/dialog.js";
|
|
6
7
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
8
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
7
9
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
8
10
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
11
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
12
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
9
13
|
import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
|
|
10
14
|
const FullscreenVideoHero = (props) => {
|
|
11
|
-
const { heading, description, buttons = [], video = "",
|
|
15
|
+
const { heading, description, buttons = [], video = "", images = [{ src: "", alt: "" }], styles } = {
|
|
12
16
|
...FullscreenVideoHeroDefaults,
|
|
13
17
|
...props
|
|
14
18
|
};
|
|
19
|
+
const image = images == null ? void 0 : images[0];
|
|
20
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
15
21
|
const isMobile = useMediaQuery("(max-width: 767px)");
|
|
16
22
|
const isTablet = useMediaQuery("(min-width: 768px) and (max-width: 991px)");
|
|
17
|
-
const
|
|
23
|
+
const sectionRef = useRef(null);
|
|
24
|
+
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
25
|
+
const { scrollYProgress } = useScroll(
|
|
26
|
+
scrollContainerRef.current ? { container: scrollContainerRef } : void 0
|
|
27
|
+
);
|
|
18
28
|
const createTransform = (mobileValues, tabletValues, desktopValues) => useTransform(
|
|
19
29
|
scrollYProgress,
|
|
20
30
|
[0, 1],
|
|
@@ -27,7 +37,7 @@ const FullscreenVideoHero = (props) => {
|
|
|
27
37
|
top: createTransform(["0%", "37.5%"], ["0%", "35%"], ["0%", "40%"]),
|
|
28
38
|
left: createTransform(["0%", "25%"], ["0%", "37.5%"], ["0%", "45%"])
|
|
29
39
|
};
|
|
30
|
-
return /* @__PURE__ */ jsxs(
|
|
40
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative flex h-[300vh] flex-col items-center", sectionClassName), style: sectionStyle, css, children: [
|
|
31
41
|
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 flex w-full flex-col items-center justify-center", children: [
|
|
32
42
|
/* @__PURE__ */ jsx("div", { className: "relative z-10 flex h-screen w-full items-center justify-center", children: /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
33
43
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
@@ -66,10 +76,10 @@ const FullscreenVideoHeroDefaults = {
|
|
|
66
76
|
}
|
|
67
77
|
],
|
|
68
78
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
69
|
-
|
|
79
|
+
images: [{
|
|
70
80
|
src: "https://picsum.photos/seed/hero-video/1200/800",
|
|
71
81
|
alt: "Relume placeholder image"
|
|
72
|
-
}
|
|
82
|
+
}]
|
|
73
83
|
};
|
|
74
84
|
export {
|
|
75
85
|
FullscreenVideoHero,
|
|
@@ -94,14 +94,22 @@ declare const conf: {
|
|
|
94
94
|
video: {
|
|
95
95
|
type: string;
|
|
96
96
|
};
|
|
97
|
-
|
|
98
|
-
type: "
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
alt
|
|
97
|
+
images: {
|
|
98
|
+
readonly type: "array";
|
|
99
|
+
readonly max: 10;
|
|
100
|
+
readonly getItemSummary: (item: {
|
|
101
|
+
alt?: string;
|
|
102
|
+
}, index?: number) => string;
|
|
103
|
+
readonly arrayFields: {
|
|
104
|
+
readonly src: import("@puckeditor/core").Field<string>;
|
|
105
|
+
readonly alt: {
|
|
102
106
|
type: "text";
|
|
103
107
|
};
|
|
104
108
|
};
|
|
109
|
+
readonly defaultItemProps: {
|
|
110
|
+
alt: string;
|
|
111
|
+
src: string;
|
|
112
|
+
};
|
|
105
113
|
};
|
|
106
114
|
};
|
|
107
115
|
defaultProps: FullscreenVideoHeroProps;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { FullscreenVideoHero, FullscreenVideoHeroDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
-
import {
|
|
4
|
+
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
const conf = {
|
|
6
6
|
fields: {
|
|
7
7
|
heading: headingField,
|
|
8
8
|
description: descriptionField,
|
|
9
9
|
buttons: buttonsField,
|
|
10
10
|
video: { type: "text" },
|
|
11
|
-
|
|
11
|
+
images: imagesField
|
|
12
12
|
},
|
|
13
13
|
defaultProps: FullscreenVideoHeroDefaults,
|
|
14
14
|
render: FullscreenVideoHero
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useRef } from "react";
|
|
3
4
|
import { useScroll, motion, useTransform } from "framer-motion";
|
|
4
5
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
6
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
5
7
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
7
11
|
const GridExpandHero = (props) => {
|
|
8
12
|
const {
|
|
9
13
|
heading,
|
|
@@ -15,9 +19,13 @@ const GridExpandHero = (props) => {
|
|
|
15
19
|
...GridExpandHeroDefaults,
|
|
16
20
|
...props
|
|
17
21
|
};
|
|
18
|
-
const { textAlign = "left", gridRatio } = { ...GridExpandHeroDefaults.styles, ...styles };
|
|
22
|
+
const { className: sectionClassName, style: sectionStyle, css, textAlign = "left", gridRatio } = { ...GridExpandHeroDefaults.styles, ...styles };
|
|
19
23
|
const isMobile = useMediaQuery("(max-width: 767px)");
|
|
20
|
-
const
|
|
24
|
+
const sectionRef = useRef(null);
|
|
25
|
+
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
26
|
+
const { scrollYProgress } = useScroll(
|
|
27
|
+
scrollContainerRef.current ? { container: scrollContainerRef } : void 0
|
|
28
|
+
);
|
|
21
29
|
const createTransform = (mobileValues, desktopValues) => useTransform(scrollYProgress, [0, 1], isMobile ? mobileValues : desktopValues);
|
|
22
30
|
const isCenter = textAlign === "center";
|
|
23
31
|
const resolvedGridRatio = gridRatio ?? (isCenter ? "32%_36%_32%" : "25%_50%_25%");
|
|
@@ -49,7 +57,7 @@ const GridExpandHero = (props) => {
|
|
|
49
57
|
x: createTransform(["0vw", "25vw"], ["0vw", "32vw"])
|
|
50
58
|
};
|
|
51
59
|
if (isCenter) {
|
|
52
|
-
return /* @__PURE__ */ jsxs(
|
|
60
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
53
61
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full max-w-lg text-center", children: [
|
|
54
62
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
55
63
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
@@ -99,7 +107,7 @@ const GridExpandHero = (props) => {
|
|
|
99
107
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
|
|
100
108
|
] });
|
|
101
109
|
}
|
|
102
|
-
return /* @__PURE__ */ jsxs(
|
|
110
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
103
111
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg", children: [
|
|
104
112
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
105
113
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
@@ -111,6 +111,28 @@ declare const conf: {
|
|
|
111
111
|
styles: {
|
|
112
112
|
type: "object";
|
|
113
113
|
objectFields: {
|
|
114
|
+
className: {
|
|
115
|
+
readonly type: "text";
|
|
116
|
+
readonly label: "Class Name";
|
|
117
|
+
readonly ai: {
|
|
118
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
style: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly label: "Style";
|
|
124
|
+
readonly objectFields: {};
|
|
125
|
+
readonly ai: {
|
|
126
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
css: {
|
|
130
|
+
readonly type: "textarea";
|
|
131
|
+
readonly label: "Custom CSS";
|
|
132
|
+
readonly ai: {
|
|
133
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
114
136
|
textAlign: {
|
|
115
137
|
readonly type: "radio";
|
|
116
138
|
readonly label: "Text Align";
|
|
@@ -3,6 +3,7 @@ import { descriptionField, headingField } from "../../../puck-core/core/props/co
|
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { heroStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
8
9
|
heading: headingField,
|
|
@@ -13,7 +14,8 @@ const conf = {
|
|
|
13
14
|
type: "object",
|
|
14
15
|
objectFields: {
|
|
15
16
|
textAlign: heroStyleFields.textAlign,
|
|
16
|
-
gridRatio: heroStyleFields.gridRatio
|
|
17
|
+
gridRatio: heroStyleFields.gridRatio,
|
|
18
|
+
...sectionWrapperFields
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
},
|
|
@@ -2,16 +2,20 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
5
7
|
const HorizontalMarqueeHero = (props) => {
|
|
6
|
-
const { heading, description, buttons = [], images = [] } = {
|
|
8
|
+
const { heading, description, buttons = [], images = [], styles } = {
|
|
7
9
|
...HorizontalMarqueeHeroDefaults,
|
|
8
10
|
...props
|
|
9
11
|
};
|
|
12
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
10
13
|
return /* @__PURE__ */ jsxs(
|
|
11
|
-
|
|
14
|
+
SectionWrapper,
|
|
12
15
|
{
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
className: cn("grid grid-cols-1 items-center gap-y-16 pt-16 md:pt-24 lg:grid-cols-2 lg:pt-0", sectionClassName),
|
|
17
|
+
style: sectionStyle,
|
|
18
|
+
css,
|
|
15
19
|
children: [
|
|
16
20
|
/* @__PURE__ */ jsxs("div", { className: "mx-[5%] sm:max-w-md md:justify-self-start lg:ml-[5vw] lg:mr-20 lg:justify-self-end", children: [
|
|
17
21
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
@@ -109,6 +109,28 @@ declare const conf: {
|
|
|
109
109
|
type: string;
|
|
110
110
|
label: string;
|
|
111
111
|
objectFields: {
|
|
112
|
+
className: {
|
|
113
|
+
readonly type: "text";
|
|
114
|
+
readonly label: "Class Name";
|
|
115
|
+
readonly ai: {
|
|
116
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
style: {
|
|
120
|
+
readonly type: "object";
|
|
121
|
+
readonly label: "Style";
|
|
122
|
+
readonly objectFields: {};
|
|
123
|
+
readonly ai: {
|
|
124
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
css: {
|
|
128
|
+
readonly type: "textarea";
|
|
129
|
+
readonly label: "Custom CSS";
|
|
130
|
+
readonly ai: {
|
|
131
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
112
134
|
textAlign: {
|
|
113
135
|
readonly type: "radio";
|
|
114
136
|
readonly label: "Text Align";
|
|
@@ -2,6 +2,7 @@ import { InlineImageHero, InlineImageHeroDefaults } from "./inline-image-hero.js
|
|
|
2
2
|
import { descriptionField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { heroStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
headers: {
|
|
@@ -22,7 +23,8 @@ const conf = {
|
|
|
22
23
|
type: "object",
|
|
23
24
|
label: "Styles",
|
|
24
25
|
objectFields: {
|
|
25
|
-
textAlign: heroStyleFields.textAlign
|
|
26
|
+
textAlign: heroStyleFields.textAlign,
|
|
27
|
+
...sectionWrapperFields
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
},
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
3
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
3
5
|
const InlineImageHero = (props) => {
|
|
4
6
|
const { headers = [], description, buttons = [], styles: rawStyles } = {
|
|
5
7
|
...InlineImageHeroDefaults,
|
|
6
8
|
...props
|
|
7
9
|
};
|
|
8
|
-
const { textAlign } = rawStyles ?? {};
|
|
10
|
+
const { className: sectionClassName, style: sectionStyle, css, textAlign } = rawStyles ?? {};
|
|
9
11
|
const isCenter = textAlign === "center";
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("relative px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs(
|
|
11
13
|
"div",
|
|
12
14
|
{
|
|
13
15
|
className: `container max-w-xl overflow-hidden${isCenter ? " text-center" : ""}`,
|
|
@@ -91,14 +91,22 @@ declare const conf: {
|
|
|
91
91
|
readonly instructions: "Buttons must use the same size";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
|
|
95
|
-
type: "
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
alt
|
|
94
|
+
images: {
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly max: 10;
|
|
97
|
+
readonly getItemSummary: (item: {
|
|
98
|
+
alt?: string;
|
|
99
|
+
}, index?: number) => string;
|
|
100
|
+
readonly arrayFields: {
|
|
101
|
+
readonly src: import("@puckeditor/core").Field<string>;
|
|
102
|
+
readonly alt: {
|
|
99
103
|
type: "text";
|
|
100
104
|
};
|
|
101
105
|
};
|
|
106
|
+
readonly defaultItemProps: {
|
|
107
|
+
alt: string;
|
|
108
|
+
src: string;
|
|
109
|
+
};
|
|
102
110
|
};
|
|
103
111
|
video: {
|
|
104
112
|
type: string;
|
|
@@ -171,10 +179,35 @@ declare const conf: {
|
|
|
171
179
|
mediaPosition: {
|
|
172
180
|
type: "radio";
|
|
173
181
|
label: string;
|
|
174
|
-
options: {
|
|
182
|
+
options: ({
|
|
183
|
+
className: {
|
|
184
|
+
readonly type: "text";
|
|
185
|
+
readonly label: "Class Name";
|
|
186
|
+
readonly ai: {
|
|
187
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
style: {
|
|
191
|
+
readonly type: "object";
|
|
192
|
+
readonly label: "Style";
|
|
193
|
+
readonly objectFields: {};
|
|
194
|
+
readonly ai: {
|
|
195
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
css: {
|
|
199
|
+
readonly type: "textarea";
|
|
200
|
+
readonly label: "Custom CSS";
|
|
201
|
+
readonly ai: {
|
|
202
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
label: string;
|
|
206
|
+
value: string;
|
|
207
|
+
} | {
|
|
175
208
|
label: string;
|
|
176
209
|
value: string;
|
|
177
|
-
}[];
|
|
210
|
+
})[];
|
|
178
211
|
};
|
|
179
212
|
mediaType: {
|
|
180
213
|
readonly type: "radio";
|
|
@@ -3,6 +3,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
8
|
import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
|
|
7
9
|
import { useCallback } from "react";
|
|
8
10
|
const imagePositions = {
|
|
@@ -44,10 +46,11 @@ const getTransformStyles = (smoothMouseX, smoothMouseY, xRange, yRange) => {
|
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
48
|
const MouseTrackHero = (props) => {
|
|
47
|
-
const { heading, description, buttons = [], group1Images = [], group2Images = [] } = {
|
|
49
|
+
const { heading, description, buttons = [], group1Images = [], group2Images = [], styles } = {
|
|
48
50
|
...MouseTrackHeroDefaults,
|
|
49
51
|
...props
|
|
50
52
|
};
|
|
53
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
51
54
|
const { smoothMouseX, smoothMouseY, handleMouseMove } = useMouseMove();
|
|
52
55
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
53
56
|
const Animate = isMobile ? "div" : motion.div;
|
|
@@ -78,13 +81,14 @@ const MouseTrackHero = (props) => {
|
|
|
78
81
|
}
|
|
79
82
|
);
|
|
80
83
|
return /* @__PURE__ */ jsxs(
|
|
81
|
-
|
|
84
|
+
SectionWrapper,
|
|
82
85
|
{
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
className: cn("relative flex h-svh items-center justify-center overflow-hidden lg:h-screen", sectionClassName),
|
|
87
|
+
style: sectionStyle,
|
|
88
|
+
css,
|
|
85
89
|
onMouseMove: handleMouseMove,
|
|
86
90
|
children: [
|
|
87
|
-
/* @__PURE__ */ jsx("div", { className: "px-[5%] py-
|
|
91
|
+
/* @__PURE__ */ jsx("div", { className: "px-[5%] py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsx("div", { className: "container max-w-lg", children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 text-center", children: [
|
|
88
92
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
89
93
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
90
94
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
@@ -115,10 +115,35 @@ declare const conf: {
|
|
|
115
115
|
textLayout: {
|
|
116
116
|
type: "select";
|
|
117
117
|
label: string;
|
|
118
|
-
options: {
|
|
118
|
+
options: ({
|
|
119
|
+
className: {
|
|
120
|
+
readonly type: "text";
|
|
121
|
+
readonly label: "Class Name";
|
|
122
|
+
readonly ai: {
|
|
123
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
style: {
|
|
127
|
+
readonly type: "object";
|
|
128
|
+
readonly label: "Style";
|
|
129
|
+
readonly objectFields: {};
|
|
130
|
+
readonly ai: {
|
|
131
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
css: {
|
|
135
|
+
readonly type: "textarea";
|
|
136
|
+
readonly label: "Custom CSS";
|
|
137
|
+
readonly ai: {
|
|
138
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
119
141
|
label: string;
|
|
120
142
|
value: string;
|
|
121
|
-
}
|
|
143
|
+
} | {
|
|
144
|
+
label: string;
|
|
145
|
+
value: string;
|
|
146
|
+
})[];
|
|
122
147
|
};
|
|
123
148
|
imageGridRatio: {
|
|
124
149
|
readonly type: "text";
|
|
@@ -3,6 +3,7 @@ import { descriptionField, headingField } from "../../../puck-core/core/props/co
|
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { heroStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
8
9
|
heading: headingField,
|
|
@@ -17,7 +18,7 @@ const conf = {
|
|
|
17
18
|
type: "select",
|
|
18
19
|
label: "Text Layout",
|
|
19
20
|
options: [
|
|
20
|
-
{ label: "Two Column Top", value: "two-column-top" },
|
|
21
|
+
{ label: "Two Column Top", value: "two-column-top", ...sectionWrapperFields },
|
|
21
22
|
{ label: "Left Block", value: "left-block" },
|
|
22
23
|
{ label: "Centered", value: "centered" }
|
|
23
24
|
]
|