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
|
@@ -71,6 +71,28 @@ declare const conf: {
|
|
|
71
71
|
type: string;
|
|
72
72
|
label: string;
|
|
73
73
|
objectFields: {
|
|
74
|
+
className: {
|
|
75
|
+
readonly type: "text";
|
|
76
|
+
readonly label: "Class Name";
|
|
77
|
+
readonly ai: {
|
|
78
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
style: {
|
|
82
|
+
readonly type: "object";
|
|
83
|
+
readonly label: "Style";
|
|
84
|
+
readonly objectFields: {};
|
|
85
|
+
readonly ai: {
|
|
86
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
css: {
|
|
90
|
+
readonly type: "textarea";
|
|
91
|
+
readonly label: "Custom CSS";
|
|
92
|
+
readonly ai: {
|
|
93
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
74
96
|
formType: {
|
|
75
97
|
readonly type: "radio";
|
|
76
98
|
readonly label: "Form Type";
|
|
@@ -2,6 +2,7 @@ import { ContactModal, ContactModalDefaults } from "./contact-modal.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
|
heading: headingField,
|
|
@@ -12,7 +13,8 @@ const conf = {
|
|
|
12
13
|
label: "Styles",
|
|
13
14
|
objectFields: {
|
|
14
15
|
formType: contactStyleFields.formType,
|
|
15
|
-
modalType: contactStyleFields.modalType
|
|
16
|
+
modalType: contactStyleFields.modalType,
|
|
17
|
+
...sectionWrapperFields
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
},
|
|
@@ -2,25 +2,24 @@
|
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { Input } from "../../../shadcn/input.js";
|
|
5
|
-
import { Checkbox } from "../../../shadcn/checkbox.js";
|
|
6
5
|
import { Label } from "../../../shadcn/label.js";
|
|
7
6
|
import { Textarea } from "../../../shadcn/textarea.js";
|
|
8
7
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
9
8
|
import { CompoundImage } from "../../../puck-base/image.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 FormWithMedia = (props) => {
|
|
13
13
|
const { tagline, heading, description, button, image, styles } = {
|
|
14
14
|
...FormWithMediaDefaults,
|
|
15
15
|
...props
|
|
16
16
|
};
|
|
17
|
-
const { mediaPosition = "right", mediaType = "image" } = styles ?? {};
|
|
17
|
+
const { className: sectionClassName, style: sectionStyle, css, mediaPosition = "right", mediaType = "image" } = styles ?? {};
|
|
18
18
|
const { createSubmitHandler, submitting } = useContactForm();
|
|
19
19
|
const [name, setName] = useState("");
|
|
20
20
|
const [email, setEmail] = useState("");
|
|
21
21
|
const [phone, setPhone] = useState("");
|
|
22
22
|
const [message, setMessage] = useState("");
|
|
23
|
-
const [acceptTerms, setAcceptTerms] = useState(false);
|
|
24
23
|
const handleSubmit = createSubmitHandler(
|
|
25
24
|
() => ({
|
|
26
25
|
name: name || "",
|
|
@@ -33,7 +32,6 @@ const FormWithMedia = (props) => {
|
|
|
33
32
|
setEmail("");
|
|
34
33
|
setPhone("");
|
|
35
34
|
setMessage("");
|
|
36
|
-
setAcceptTerms(false);
|
|
37
35
|
}
|
|
38
36
|
);
|
|
39
37
|
const formContent = /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -68,19 +66,11 @@ const FormWithMedia = (props) => {
|
|
|
68
66
|
}
|
|
69
67
|
)
|
|
70
68
|
] }),
|
|
71
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center space-x-2 text-sm md:mb-4", children: [
|
|
72
|
-
/* @__PURE__ */ jsx(Checkbox, { id: "terms", checked: acceptTerms, onCheckedChange: setAcceptTerms }),
|
|
73
|
-
/* @__PURE__ */ jsxs(Label, { htmlFor: "terms", className: "cursor-pointer", children: [
|
|
74
|
-
"I accept the",
|
|
75
|
-
" ",
|
|
76
|
-
/* @__PURE__ */ jsx("a", { className: "text-link-primary underline", href: "#", children: "Terms" })
|
|
77
|
-
] })
|
|
78
|
-
] }),
|
|
79
69
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CompoundButton, { label: submitting ? "Submitting..." : button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon, disabled: submitting }) })
|
|
80
70
|
] })
|
|
81
71
|
] });
|
|
82
72
|
const mediaContent = /* @__PURE__ */ jsx("div", { children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: "#map", className: "block", children: /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" }) }) : /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" }) });
|
|
83
|
-
return /* @__PURE__ */ jsx(
|
|
73
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx(
|
|
84
74
|
"div",
|
|
85
75
|
{
|
|
86
76
|
className: cn(
|
|
@@ -83,6 +83,28 @@ declare const conf: {
|
|
|
83
83
|
type: string;
|
|
84
84
|
label: string;
|
|
85
85
|
objectFields: {
|
|
86
|
+
className: {
|
|
87
|
+
readonly type: "text";
|
|
88
|
+
readonly label: "Class Name";
|
|
89
|
+
readonly ai: {
|
|
90
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
style: {
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly label: "Style";
|
|
96
|
+
readonly objectFields: {};
|
|
97
|
+
readonly ai: {
|
|
98
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
css: {
|
|
102
|
+
readonly type: "textarea";
|
|
103
|
+
readonly label: "Custom CSS";
|
|
104
|
+
readonly ai: {
|
|
105
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
86
108
|
mediaPosition: {
|
|
87
109
|
readonly type: "radio";
|
|
88
110
|
readonly label: "Media Position";
|
|
@@ -3,6 +3,7 @@ import { descriptionField, headingField } from "../../../puck-core/core/props/co
|
|
|
3
3
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { contactStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
8
9
|
tagline: { type: "text" },
|
|
@@ -15,7 +16,8 @@ const conf = {
|
|
|
15
16
|
label: "Styles",
|
|
16
17
|
objectFields: {
|
|
17
18
|
mediaPosition: contactStyleFields.mediaPosition,
|
|
18
|
-
mediaType: contactStyleFields.mediaType
|
|
19
|
+
mediaType: contactStyleFields.mediaType,
|
|
20
|
+
...sectionWrapperFields
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
},
|
|
@@ -4,12 +4,13 @@ import { useState } from "react";
|
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "../../../shadcn/select.js";
|
|
6
6
|
import { Input } from "../../../shadcn/input.js";
|
|
7
|
-
import { Checkbox } from "../../../shadcn/checkbox.js";
|
|
8
7
|
import { Label } from "../../../shadcn/label.js";
|
|
9
8
|
import { Textarea } from "../../../shadcn/textarea.js";
|
|
10
9
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
11
10
|
import { useContactForm } from "../use-contact-form.js";
|
|
12
11
|
import { BiMap, BiPhone, BiEnvelope } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
12
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
13
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
13
14
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
14
15
|
const iconMap = {
|
|
15
16
|
email: /* @__PURE__ */ jsx(BiEnvelope, { className: "size-8" }),
|
|
@@ -21,7 +22,7 @@ const HeaderFormCards = (props) => {
|
|
|
21
22
|
...HeaderFormCardsDefaults,
|
|
22
23
|
...props
|
|
23
24
|
};
|
|
24
|
-
const { formType = "simple" } = styles ?? {};
|
|
25
|
+
const { className: sectionClassName, style: sectionStyle, css, formType = "simple" } = styles ?? {};
|
|
25
26
|
const { createSubmitHandler, submitting } = useContactForm();
|
|
26
27
|
const [name, setName] = useState("");
|
|
27
28
|
const [firstName, setFirstName] = useState("");
|
|
@@ -30,7 +31,6 @@ const HeaderFormCards = (props) => {
|
|
|
30
31
|
const [phone, setPhone] = useState("");
|
|
31
32
|
const [message, setMessage] = useState("");
|
|
32
33
|
const [topic, setTopic] = useState("");
|
|
33
|
-
const [acceptTerms, setAcceptTerms] = useState(false);
|
|
34
34
|
const handleSubmit = createSubmitHandler(
|
|
35
35
|
() => ({
|
|
36
36
|
name: name || `${firstName} ${lastName}`.trim() || "",
|
|
@@ -46,7 +46,6 @@ const HeaderFormCards = (props) => {
|
|
|
46
46
|
setPhone("");
|
|
47
47
|
setMessage("");
|
|
48
48
|
setTopic("");
|
|
49
|
-
setAcceptTerms(false);
|
|
50
49
|
}
|
|
51
50
|
);
|
|
52
51
|
const renderSimpleFields = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -119,7 +118,7 @@ const HeaderFormCards = (props) => {
|
|
|
119
118
|
)
|
|
120
119
|
] })
|
|
121
120
|
] });
|
|
122
|
-
return /* @__PURE__ */ jsx(
|
|
121
|
+
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: [
|
|
123
122
|
/* @__PURE__ */ jsxs("div", { className: "rb-12 mb-8 max-w-lg md:mb-12", children: [
|
|
124
123
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
125
124
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -128,14 +127,6 @@ const HeaderFormCards = (props) => {
|
|
|
128
127
|
/* @__PURE__ */ jsxs("div", { className: "grid auto-cols-fr grid-cols-1 gap-x-12 gap-y-12 md:grid-cols-[1fr_1fr] md:gap-x-20 md:gap-y-16", children: [
|
|
129
128
|
/* @__PURE__ */ jsxs("form", { className: "grid grid-cols-1 gap-6", onSubmit: handleSubmit, children: [
|
|
130
129
|
formType === "advanced" ? renderAdvancedFields() : renderSimpleFields(),
|
|
131
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center space-x-2 text-sm md:mb-4", children: [
|
|
132
|
-
/* @__PURE__ */ jsx(Checkbox, { id: "terms", checked: acceptTerms, onCheckedChange: setAcceptTerms }),
|
|
133
|
-
/* @__PURE__ */ jsxs(Label, { htmlFor: "terms", className: "cursor-pointer", children: [
|
|
134
|
-
"I accept the",
|
|
135
|
-
" ",
|
|
136
|
-
/* @__PURE__ */ jsx("a", { className: "text-link-primary underline", href: "#", children: "Terms" })
|
|
137
|
-
] })
|
|
138
|
-
] }),
|
|
139
130
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CompoundButton, { label: submitting ? "Submitting..." : button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon, disabled: submitting }) })
|
|
140
131
|
] }),
|
|
141
132
|
/* @__PURE__ */ jsx("div", { className: "mb-auto grid gap-x-4 gap-y-10 py-2 sm:grid-cols-2", children: contacts.map((contact, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -92,6 +92,28 @@ declare const conf: {
|
|
|
92
92
|
type: string;
|
|
93
93
|
label: string;
|
|
94
94
|
objectFields: {
|
|
95
|
+
className: {
|
|
96
|
+
readonly type: "text";
|
|
97
|
+
readonly label: "Class Name";
|
|
98
|
+
readonly ai: {
|
|
99
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
style: {
|
|
103
|
+
readonly type: "object";
|
|
104
|
+
readonly label: "Style";
|
|
105
|
+
readonly objectFields: {};
|
|
106
|
+
readonly ai: {
|
|
107
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
css: {
|
|
111
|
+
readonly type: "textarea";
|
|
112
|
+
readonly label: "Custom CSS";
|
|
113
|
+
readonly ai: {
|
|
114
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
95
117
|
formType: {
|
|
96
118
|
readonly type: "radio";
|
|
97
119
|
readonly label: "Form Type";
|
|
@@ -2,6 +2,7 @@ import { HeaderFormCards, HeaderFormCardsDefaults } from "./header-form-cards.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" },
|
|
@@ -22,7 +23,8 @@ const conf = {
|
|
|
22
23
|
type: "object",
|
|
23
24
|
label: "Styles",
|
|
24
25
|
objectFields: {
|
|
25
|
-
formType: contactStyleFields.formType
|
|
26
|
+
formType: contactStyleFields.formType,
|
|
27
|
+
...sectionWrapperFields
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
},
|
package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js
CHANGED
|
@@ -2,6 +2,8 @@ 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 { Button } from "../../../shadcn/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
7
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
6
8
|
const iconMap = {
|
|
7
9
|
email: /* @__PURE__ */ jsx(BiEnvelope, { className: "size-6" }),
|
|
@@ -13,8 +15,8 @@ const HeaderInfoFullwidth = (props) => {
|
|
|
13
15
|
...HeaderInfoFullwidthDefaults,
|
|
14
16
|
...props
|
|
15
17
|
};
|
|
16
|
-
const { mediaType = "image" } = styles ?? {};
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
+
const { className: sectionClassName, style: sectionStyle, css, mediaType = "image" } = styles ?? {};
|
|
19
|
+
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: [
|
|
18
20
|
/* @__PURE__ */ jsxs("div", { className: "mb-12 grid auto-cols-fr grid-cols-1 gap-x-12 gap-y-12 md:mb-20 md:grid-cols-[1fr_.75fr] md:gap-x-20 md:gap-y-16", children: [
|
|
19
21
|
/* @__PURE__ */ jsxs("div", { className: "rb-12 max-w-lg", children: [
|
|
20
22
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
@@ -46,6 +46,28 @@ declare const conf: {
|
|
|
46
46
|
type: string;
|
|
47
47
|
label: string;
|
|
48
48
|
objectFields: {
|
|
49
|
+
className: {
|
|
50
|
+
readonly type: "text";
|
|
51
|
+
readonly label: "Class Name";
|
|
52
|
+
readonly ai: {
|
|
53
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
style: {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly label: "Style";
|
|
59
|
+
readonly objectFields: {};
|
|
60
|
+
readonly ai: {
|
|
61
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
css: {
|
|
65
|
+
readonly type: "textarea";
|
|
66
|
+
readonly label: "Custom CSS";
|
|
67
|
+
readonly ai: {
|
|
68
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
49
71
|
mediaType: {
|
|
50
72
|
readonly type: "radio";
|
|
51
73
|
readonly label: "Media Type";
|
|
@@ -2,6 +2,7 @@ import { HeaderInfoFullwidth, HeaderInfoFullwidthDefaults } from "./header-info-
|
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imageField } from "../../../puck-core/core/props/media.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" },
|
|
@@ -22,7 +23,8 @@ const conf = {
|
|
|
22
23
|
type: "object",
|
|
23
24
|
label: "Styles",
|
|
24
25
|
objectFields: {
|
|
25
|
-
mediaType: contactStyleFields.mediaType
|
|
26
|
+
mediaType: contactStyleFields.mediaType,
|
|
27
|
+
...sectionWrapperFields
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
},
|
|
@@ -46,6 +46,28 @@ declare const conf: {
|
|
|
46
46
|
type: string;
|
|
47
47
|
label: string;
|
|
48
48
|
objectFields: {
|
|
49
|
+
className: {
|
|
50
|
+
readonly type: "text";
|
|
51
|
+
readonly label: "Class Name";
|
|
52
|
+
readonly ai: {
|
|
53
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
style: {
|
|
57
|
+
readonly type: "object";
|
|
58
|
+
readonly label: "Style";
|
|
59
|
+
readonly objectFields: {};
|
|
60
|
+
readonly ai: {
|
|
61
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
css: {
|
|
65
|
+
readonly type: "textarea";
|
|
66
|
+
readonly label: "Custom CSS";
|
|
67
|
+
readonly ai: {
|
|
68
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
49
71
|
mediaType: {
|
|
50
72
|
readonly type: "radio";
|
|
51
73
|
readonly label: "Media Type";
|
|
@@ -2,6 +2,7 @@ import { InfoCardsMedia, InfoCardsMediaDefaults } from "./info-cards-media.js";
|
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imageField } from "../../../puck-core/core/props/media.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" },
|
|
@@ -22,7 +23,8 @@ const conf = {
|
|
|
22
23
|
type: "object",
|
|
23
24
|
label: "Styles",
|
|
24
25
|
objectFields: {
|
|
25
|
-
mediaType: contactStyleFields.mediaType
|
|
26
|
+
mediaType: contactStyleFields.mediaType,
|
|
27
|
+
...sectionWrapperFields
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
},
|
|
@@ -2,6 +2,8 @@ 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 { Button } from "../../../shadcn/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
7
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
6
8
|
const iconMap = {
|
|
7
9
|
email: /* @__PURE__ */ jsx(BiEnvelope, { className: "size-8" }),
|
|
@@ -13,8 +15,8 @@ const InfoCardsMedia = (props) => {
|
|
|
13
15
|
...InfoCardsMediaDefaults,
|
|
14
16
|
...props
|
|
15
17
|
};
|
|
16
|
-
const { mediaType = "image" } = styles ?? {};
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
18
|
+
const { className: sectionClassName, style: sectionStyle, css, mediaType = "image" } = styles ?? {};
|
|
19
|
+
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: [
|
|
18
20
|
/* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 max-w-lg md:mb-18 lg:mb-20", children: [
|
|
19
21
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
20
22
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -101,6 +101,28 @@ declare const conf: {
|
|
|
101
101
|
type: string;
|
|
102
102
|
label: string;
|
|
103
103
|
objectFields: {
|
|
104
|
+
className: {
|
|
105
|
+
readonly type: "text";
|
|
106
|
+
readonly label: "Class Name";
|
|
107
|
+
readonly ai: {
|
|
108
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
style: {
|
|
112
|
+
readonly type: "object";
|
|
113
|
+
readonly label: "Style";
|
|
114
|
+
readonly objectFields: {};
|
|
115
|
+
readonly ai: {
|
|
116
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
css: {
|
|
120
|
+
readonly type: "textarea";
|
|
121
|
+
readonly label: "Custom CSS";
|
|
122
|
+
readonly ai: {
|
|
123
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
104
126
|
mediaType: {
|
|
105
127
|
readonly type: "radio";
|
|
106
128
|
readonly label: "Media Type";
|
|
@@ -3,6 +3,7 @@ import { descriptionField, headingField } from "../../../puck-core/core/props/co
|
|
|
3
3
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { contactStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
8
9
|
tagline: { type: "text" },
|
|
@@ -26,7 +27,8 @@ const conf = {
|
|
|
26
27
|
objectFields: {
|
|
27
28
|
mediaType: contactStyleFields.mediaType,
|
|
28
29
|
textAlign: contactStyleFields.textAlign,
|
|
29
|
-
headerAlign: contactStyleFields.headerAlign
|
|
30
|
+
headerAlign: contactStyleFields.headerAlign,
|
|
31
|
+
...sectionWrapperFields
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
},
|
package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js
CHANGED
|
@@ -2,19 +2,23 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { Button } from "../../../shadcn/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const LocationCardsGrid = (props) => {
|
|
6
7
|
const { tagline, heading, description, locations, styles } = {
|
|
7
8
|
...LocationCardsGridDefaults,
|
|
8
9
|
...props
|
|
9
10
|
};
|
|
10
11
|
const {
|
|
12
|
+
className: sectionClassName,
|
|
13
|
+
style: sectionStyle,
|
|
14
|
+
css,
|
|
11
15
|
mediaType = "map",
|
|
12
16
|
textAlign = "center",
|
|
13
17
|
headerAlign = "center"
|
|
14
18
|
} = styles ?? {};
|
|
15
19
|
const isCardCenter = textAlign === "center";
|
|
16
20
|
const isHeaderCenter = headerAlign === "center";
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
21
|
+
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: [
|
|
18
22
|
/* @__PURE__ */ jsxs(
|
|
19
23
|
"div",
|
|
20
24
|
{
|
|
@@ -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 ContactSectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
formType?: "simple" | "advanced";
|
|
12
15
|
textAlign?: "left" | "center";
|
|
13
16
|
mediaPosition?: "left" | "right";
|
|
@@ -83,6 +83,28 @@ declare const conf: {
|
|
|
83
83
|
type: string;
|
|
84
84
|
label: string;
|
|
85
85
|
objectFields: {
|
|
86
|
+
className: {
|
|
87
|
+
readonly type: "text";
|
|
88
|
+
readonly label: "Class Name";
|
|
89
|
+
readonly ai: {
|
|
90
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
style: {
|
|
94
|
+
readonly type: "object";
|
|
95
|
+
readonly label: "Style";
|
|
96
|
+
readonly objectFields: {};
|
|
97
|
+
readonly ai: {
|
|
98
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
css: {
|
|
102
|
+
readonly type: "textarea";
|
|
103
|
+
readonly label: "Custom CSS";
|
|
104
|
+
readonly ai: {
|
|
105
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
106
|
+
};
|
|
107
|
+
};
|
|
86
108
|
formType: {
|
|
87
109
|
readonly type: "radio";
|
|
88
110
|
readonly label: "Form Type";
|
|
@@ -2,6 +2,7 @@ import { SplitInfoForm, SplitInfoFormDefaults } from "./split-info-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" },
|
|
@@ -15,7 +16,8 @@ const conf = {
|
|
|
15
16
|
type: "object",
|
|
16
17
|
label: "Styles",
|
|
17
18
|
objectFields: {
|
|
18
|
-
formType: contactStyleFields.formType
|
|
19
|
+
formType: contactStyleFields.formType,
|
|
20
|
+
...sectionWrapperFields
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
},
|
|
@@ -3,18 +3,19 @@ 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 { BiEnvelope, BiPhone, BiMap } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js";
|
|
11
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
12
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
12
13
|
const SplitInfoForm = (props) => {
|
|
13
14
|
const { tagline, heading, description, email, phone, address, button, styles } = {
|
|
14
15
|
...SplitInfoFormDefaults,
|
|
15
16
|
...props
|
|
16
17
|
};
|
|
17
|
-
const { formType = "simple" } = styles ?? {};
|
|
18
|
+
const { className: sectionClassName, style: sectionStyle, css, formType = "simple" } = styles ?? {};
|
|
18
19
|
const { createSubmitHandler, submitting } = useContactForm();
|
|
19
20
|
const [nameInput, setNameInput] = useState("");
|
|
20
21
|
const [firstName, setFirstName] = useState("");
|
|
@@ -23,7 +24,6 @@ const SplitInfoForm = (props) => {
|
|
|
23
24
|
const [phoneInput, setPhoneInput] = useState("");
|
|
24
25
|
const [messageInput, setMessageInput] = useState("");
|
|
25
26
|
const [topic, setTopic] = useState("");
|
|
26
|
-
const [acceptTerms, setAcceptTerms] = useState(false);
|
|
27
27
|
const handleSubmit = createSubmitHandler(
|
|
28
28
|
() => ({
|
|
29
29
|
name: nameInput || `${firstName} ${lastName}`.trim() || "",
|
|
@@ -39,7 +39,6 @@ const SplitInfoForm = (props) => {
|
|
|
39
39
|
setPhoneInput("");
|
|
40
40
|
setMessageInput("");
|
|
41
41
|
setTopic("");
|
|
42
|
-
setAcceptTerms(false);
|
|
43
42
|
}
|
|
44
43
|
);
|
|
45
44
|
const renderSimpleFields = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -112,7 +111,7 @@ const SplitInfoForm = (props) => {
|
|
|
112
111
|
)
|
|
113
112
|
] })
|
|
114
113
|
] });
|
|
115
|
-
return /* @__PURE__ */ jsx(
|
|
114
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-start gap-y-12 md:grid-flow-row md:grid-cols-2 md:gap-x-12 lg:grid-flow-col lg:gap-x-20 lg:gap-y-16", children: [
|
|
116
115
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
117
116
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
118
117
|
/* @__PURE__ */ jsxs("div", { className: "mb-6 md:mb-8", children: [
|
|
@@ -136,14 +135,6 @@ const SplitInfoForm = (props) => {
|
|
|
136
135
|
] }),
|
|
137
136
|
/* @__PURE__ */ jsxs("form", { className: "grid grid-cols-1 grid-rows-[auto_auto] gap-6", onSubmit: handleSubmit, children: [
|
|
138
137
|
formType === "advanced" ? renderAdvancedFields() : renderSimpleFields(),
|
|
139
|
-
/* @__PURE__ */ jsxs("div", { className: "mb-3 flex items-center space-x-2 text-sm md:mb-4", children: [
|
|
140
|
-
/* @__PURE__ */ jsx(Checkbox, { id: "terms", checked: acceptTerms, onCheckedChange: setAcceptTerms }),
|
|
141
|
-
/* @__PURE__ */ jsxs(Label, { htmlFor: "terms", className: "cursor-pointer", children: [
|
|
142
|
-
"I accept the",
|
|
143
|
-
" ",
|
|
144
|
-
/* @__PURE__ */ jsx("a", { className: "text-link-primary underline", href: "#", children: "Terms" })
|
|
145
|
-
] })
|
|
146
|
-
] }),
|
|
147
138
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(CompoundButton, { label: submitting ? "Submitting..." : button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon, disabled: submitting }) })
|
|
148
139
|
] })
|
|
149
140
|
] }) }) });
|
|
@@ -55,6 +55,28 @@ declare const conf: {
|
|
|
55
55
|
type: string;
|
|
56
56
|
label: string;
|
|
57
57
|
objectFields: {
|
|
58
|
+
className: {
|
|
59
|
+
readonly type: "text";
|
|
60
|
+
readonly label: "Class Name";
|
|
61
|
+
readonly ai: {
|
|
62
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
style: {
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly label: "Style";
|
|
68
|
+
readonly objectFields: {};
|
|
69
|
+
readonly ai: {
|
|
70
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
css: {
|
|
74
|
+
readonly type: "textarea";
|
|
75
|
+
readonly label: "Custom CSS";
|
|
76
|
+
readonly ai: {
|
|
77
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
78
|
+
};
|
|
79
|
+
};
|
|
58
80
|
mediaType: {
|
|
59
81
|
readonly type: "radio";
|
|
60
82
|
readonly label: "Media Type";
|