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
|
@@ -2,6 +2,7 @@ import { TabLocations, TabLocationsDefaults } from "./tab-locations.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" },
|
|
@@ -25,7 +26,8 @@ const conf = {
|
|
|
25
26
|
type: "object",
|
|
26
27
|
label: "Styles",
|
|
27
28
|
objectFields: {
|
|
28
|
-
mediaType: contactStyleFields.mediaType
|
|
29
|
+
mediaType: contactStyleFields.mediaType,
|
|
30
|
+
...sectionWrapperFields
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
},
|
|
@@ -2,14 +2,16 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Tabs, TabsList, TabsTrigger, TabsContent } from "../../../shadcn/tabs.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
|
const TabLocations = (props) => {
|
|
6
8
|
var _a;
|
|
7
9
|
const { tagline, heading, description, tabs, styles } = {
|
|
8
10
|
...TabLocationsDefaults,
|
|
9
11
|
...props
|
|
10
12
|
};
|
|
11
|
-
const { mediaType = "map" } = styles ?? {};
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
+
const { className: sectionClassName, style: sectionStyle, css, mediaType = "map" } = styles ?? {};
|
|
14
|
+
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: [
|
|
13
15
|
/* @__PURE__ */ jsxs("div", { className: "mb-12 flex max-w-lg flex-col justify-start md:mb-18 lg:mb-20", children: [
|
|
14
16
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
15
17
|
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { toast } from "sonner";
|
|
4
|
-
import { useEditorContext } from "../../puck-core/editor-context.js";
|
|
4
|
+
import { useEditorContext } from "../../puck-core/core/context/editor-context.js";
|
|
5
5
|
import { submitFormLead } from "./api/form-leads.js";
|
|
6
6
|
const EMPTY = { name: "", email: "", phone: "", message: "" };
|
|
7
7
|
function useContactForm() {
|
|
@@ -2,14 +2,15 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const FeatureCardCta = (props) => {
|
|
6
7
|
const { featureSections = [], styles } = {
|
|
7
8
|
...FeatureCardCtaDefaults,
|
|
8
9
|
...props
|
|
9
10
|
};
|
|
10
|
-
const { textAlign = "left" } = styles ?? {};
|
|
11
|
+
const { className: sectionClassName, style: sectionStyle, css, textAlign = "left" } = styles ?? {};
|
|
11
12
|
const isCenter = textAlign === "center";
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx("div", { className: "grid auto-cols-fr grid-cols-1 gap-x-8 gap-y-12 md:grid-cols-2 lg:gap-x-16", children: featureSections.map((feature, index) => /* @__PURE__ */ jsxs("div", { className: cn({ "text-center": isCenter }), children: [
|
|
13
14
|
/* @__PURE__ */ jsx(
|
|
14
15
|
CompoundImage,
|
|
15
16
|
{
|
|
@@ -113,6 +113,28 @@ declare const conf: {
|
|
|
113
113
|
type: string;
|
|
114
114
|
label: string;
|
|
115
115
|
objectFields: {
|
|
116
|
+
className: {
|
|
117
|
+
readonly type: "text";
|
|
118
|
+
readonly label: "Class Name";
|
|
119
|
+
readonly ai: {
|
|
120
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
style: {
|
|
124
|
+
readonly type: "object";
|
|
125
|
+
readonly label: "Style";
|
|
126
|
+
readonly objectFields: {};
|
|
127
|
+
readonly ai: {
|
|
128
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
css: {
|
|
132
|
+
readonly type: "textarea";
|
|
133
|
+
readonly label: "Custom CSS";
|
|
134
|
+
readonly ai: {
|
|
135
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
136
|
+
};
|
|
137
|
+
};
|
|
116
138
|
textAlign: {
|
|
117
139
|
readonly type: "radio";
|
|
118
140
|
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 { imageField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
8
9
|
featureSections: {
|
|
@@ -20,7 +21,8 @@ const conf = {
|
|
|
20
21
|
type: "object",
|
|
21
22
|
label: "Styles",
|
|
22
23
|
objectFields: {
|
|
23
|
-
textAlign: ctaStyleFields.textAlign
|
|
24
|
+
textAlign: ctaStyleFields.textAlign,
|
|
25
|
+
...sectionWrapperFields
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
},
|
|
@@ -41,6 +41,28 @@ declare const conf: {
|
|
|
41
41
|
type: string;
|
|
42
42
|
label: string;
|
|
43
43
|
objectFields: {
|
|
44
|
+
className: {
|
|
45
|
+
readonly type: "text";
|
|
46
|
+
readonly label: "Class Name";
|
|
47
|
+
readonly ai: {
|
|
48
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
style: {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly label: "Style";
|
|
54
|
+
readonly objectFields: {};
|
|
55
|
+
readonly ai: {
|
|
56
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
css: {
|
|
60
|
+
readonly type: "textarea";
|
|
61
|
+
readonly label: "Custom CSS";
|
|
62
|
+
readonly ai: {
|
|
63
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
44
66
|
listStyle: {
|
|
45
67
|
readonly type: "radio";
|
|
46
68
|
readonly label: "List Style";
|
|
@@ -3,6 +3,7 @@ import { headingField } from "../../../puck-core/core/props/content.js";
|
|
|
3
3
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { actionField } from "../../../puck-core/core/props/interactive.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
8
9
|
tagline: { type: "text" },
|
|
@@ -21,7 +22,8 @@ const conf = {
|
|
|
21
22
|
type: "object",
|
|
22
23
|
label: "Styles",
|
|
23
24
|
objectFields: {
|
|
24
|
-
listStyle: ctaStyleFields.listStyle
|
|
25
|
+
listStyle: ctaStyleFields.listStyle,
|
|
26
|
+
...sectionWrapperFields
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
},
|
|
@@ -3,6 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { motion } from "framer-motion";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
import { resolveActionUrl } from "../../../puck-core/core/props/interactive.js";
|
|
7
8
|
const getDirection = (ev, obj) => {
|
|
8
9
|
const { width: w, height: h, left, top } = obj.getBoundingClientRect();
|
|
@@ -29,7 +30,7 @@ const MouseTrackCta = (props) => {
|
|
|
29
30
|
...MouseTrackCtaDefaults,
|
|
30
31
|
...props
|
|
31
32
|
};
|
|
32
|
-
const { listStyle = "center" } = styles ?? {};
|
|
33
|
+
const { className: sectionClassName, style: sectionStyle, css, listStyle = "center" } = styles ?? {};
|
|
33
34
|
const isNumbered = listStyle === "numbered";
|
|
34
35
|
const [cursorPosition, setCursorPosition] = useState({ x: 0, y: 0 });
|
|
35
36
|
const [hoveredIndex, setHoveredIndex] = useState(null);
|
|
@@ -63,7 +64,7 @@ const MouseTrackCta = (props) => {
|
|
|
63
64
|
const translateBottomInverse = direction === "bottom" ? isNumbered ? 25 : 50 : 0;
|
|
64
65
|
const translateLeftInverse = direction === "left" ? isNumbered ? -25 : -50 : 0;
|
|
65
66
|
const translateRightInverse = direction === "right" ? isNumbered ? 25 : 50 : 0;
|
|
66
|
-
return /* @__PURE__ */ jsx(
|
|
67
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, onMouseMove: !isNumbered ? handleMouseMove : void 0, children: /* @__PURE__ */ jsxs("div", { className: cn("container", { "max-w-xl text-center": !isNumbered }), onMouseMove: isNumbered ? handleMouseMove : void 0, children: [
|
|
67
68
|
/* @__PURE__ */ jsx("p", { className: "mb-6 font-semibold md:mb-8", children: tagline }),
|
|
68
69
|
/* @__PURE__ */ jsx(
|
|
69
70
|
motion.div,
|
|
@@ -8,6 +8,9 @@ import type { BaseImage } from "@/components/puck-core/core/props/media";
|
|
|
8
8
|
import type { BaseButton } from "@/components/puck-core/core/props/interactive";
|
|
9
9
|
export type { BaseImage, BaseButton };
|
|
10
10
|
export interface CtaSectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
textLayout?: "left" | "center" | "twoColumn" | "inlineRow";
|
|
12
15
|
textAlign?: "left" | "center";
|
|
13
16
|
mediaPosition?: "left" | "right";
|
|
@@ -21,7 +24,6 @@ export interface CtaSectionBaseProps {
|
|
|
21
24
|
heading: string;
|
|
22
25
|
description: string;
|
|
23
26
|
buttons: BaseButton[];
|
|
24
|
-
image: BaseImage;
|
|
25
27
|
images: BaseImage[];
|
|
26
28
|
video: string;
|
|
27
29
|
inputPlaceholder: string;
|
|
@@ -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
|
inputPlaceholder: {
|
|
104
112
|
type: string;
|
|
@@ -165,6 +173,28 @@ declare const conf: {
|
|
|
165
173
|
type: string;
|
|
166
174
|
label: string;
|
|
167
175
|
objectFields: {
|
|
176
|
+
className: {
|
|
177
|
+
readonly type: "text";
|
|
178
|
+
readonly label: "Class Name";
|
|
179
|
+
readonly ai: {
|
|
180
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
style: {
|
|
184
|
+
readonly type: "object";
|
|
185
|
+
readonly label: "Style";
|
|
186
|
+
readonly objectFields: {};
|
|
187
|
+
readonly ai: {
|
|
188
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
css: {
|
|
192
|
+
readonly type: "textarea";
|
|
193
|
+
readonly label: "Custom CSS";
|
|
194
|
+
readonly ai: {
|
|
195
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
168
198
|
mediaPosition: {
|
|
169
199
|
readonly type: "radio";
|
|
170
200
|
readonly label: "Media Position";
|
|
@@ -91,15 +91,6 @@ declare const conf: {
|
|
|
91
91
|
readonly instructions: "Buttons must use the same size";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
-
image: {
|
|
95
|
-
type: "object";
|
|
96
|
-
objectFields: {
|
|
97
|
-
src: import("@puckeditor/core").Field<string>;
|
|
98
|
-
alt: {
|
|
99
|
-
type: "text";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
94
|
images: {
|
|
104
95
|
readonly type: "array";
|
|
105
96
|
readonly max: 10;
|
|
@@ -202,6 +193,28 @@ declare const conf: {
|
|
|
202
193
|
type: string;
|
|
203
194
|
label: string;
|
|
204
195
|
objectFields: {
|
|
196
|
+
className: {
|
|
197
|
+
readonly type: "text";
|
|
198
|
+
readonly label: "Class Name";
|
|
199
|
+
readonly ai: {
|
|
200
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
style: {
|
|
204
|
+
readonly type: "object";
|
|
205
|
+
readonly label: "Style";
|
|
206
|
+
readonly objectFields: {};
|
|
207
|
+
readonly ai: {
|
|
208
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
css: {
|
|
212
|
+
readonly type: "textarea";
|
|
213
|
+
readonly label: "Custom CSS";
|
|
214
|
+
readonly ai: {
|
|
215
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
205
218
|
textLayout: {
|
|
206
219
|
readonly type: "select";
|
|
207
220
|
readonly label: "Text Layout";
|
|
@@ -2,6 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "../../../shadcn/accordion.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const DualColumnAccordionFaq = (props) => {
|
|
6
7
|
const {
|
|
7
8
|
heading,
|
|
@@ -15,14 +16,14 @@ const DualColumnAccordionFaq = (props) => {
|
|
|
15
16
|
...DualColumnAccordionFaqDefaults,
|
|
16
17
|
...props
|
|
17
18
|
};
|
|
18
|
-
const { bordered = false } = styles ?? {};
|
|
19
|
+
const { className: sectionClassName, style: sectionStyle, css, bordered = false } = styles ?? {};
|
|
19
20
|
const halfLength = Math.ceil(questions.length / 2);
|
|
20
21
|
const firstColumnQuestions = questions.slice(0, halfLength);
|
|
21
22
|
const secondColumnQuestions = questions.slice(halfLength);
|
|
22
23
|
const itemClass = cn({
|
|
23
24
|
"border border-border-primary px-5 md:px-6 first:rounded-t last:rounded-b": bordered
|
|
24
25
|
});
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
26
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
26
27
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 w-full max-w-lg text-center md:mb-18 lg:mb-20", children: [
|
|
27
28
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
28
29
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -96,6 +96,28 @@ declare const conf: {
|
|
|
96
96
|
type: string;
|
|
97
97
|
label: string;
|
|
98
98
|
objectFields: {
|
|
99
|
+
className: {
|
|
100
|
+
readonly type: "text";
|
|
101
|
+
readonly label: "Class Name";
|
|
102
|
+
readonly ai: {
|
|
103
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
style: {
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly label: "Style";
|
|
109
|
+
readonly objectFields: {};
|
|
110
|
+
readonly ai: {
|
|
111
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
css: {
|
|
115
|
+
readonly type: "textarea";
|
|
116
|
+
readonly label: "Custom CSS";
|
|
117
|
+
readonly ai: {
|
|
118
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
99
121
|
bordered: {
|
|
100
122
|
readonly type: "radio";
|
|
101
123
|
readonly label: "Bordered";
|
|
@@ -2,6 +2,7 @@ import { DualColumnAccordionFaq, DualColumnAccordionFaqDefaults } from "./dual-c
|
|
|
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 { faqStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -22,7 +23,8 @@ const conf = {
|
|
|
22
23
|
type: "object",
|
|
23
24
|
label: "Styles",
|
|
24
25
|
objectFields: {
|
|
25
|
-
bordered: faqStyleFields.bordered
|
|
26
|
+
bordered: faqStyleFields.bordered,
|
|
27
|
+
...sectionWrapperFields
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
},
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../../../shadcn/button.js";
|
|
3
3
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
4
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
4
6
|
const IconCardFaq = (props) => {
|
|
5
7
|
const {
|
|
6
8
|
heading,
|
|
@@ -8,12 +10,14 @@ const IconCardFaq = (props) => {
|
|
|
8
10
|
iconQuestions,
|
|
9
11
|
footerHeading,
|
|
10
12
|
footerDescription,
|
|
11
|
-
button
|
|
13
|
+
button,
|
|
14
|
+
styles
|
|
12
15
|
} = {
|
|
13
16
|
...IconCardFaqDefaults,
|
|
14
17
|
...props
|
|
15
18
|
};
|
|
16
|
-
|
|
19
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
20
|
+
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: [
|
|
17
21
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 w-full max-w-lg text-center md:mb-18 lg:mb-20", children: [
|
|
18
22
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
19
23
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -8,6 +8,9 @@ import type { BaseImage } from "@/components/puck-core/core/props/media";
|
|
|
8
8
|
import type { BaseButton } from "@/components/puck-core/core/props/interactive";
|
|
9
9
|
export type { BaseImage, BaseButton };
|
|
10
10
|
export interface FaqSectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
textAlign?: "left" | "center";
|
|
12
15
|
gridColumns?: 1 | 2 | 3;
|
|
13
16
|
bordered?: boolean;
|
|
@@ -96,6 +96,28 @@ declare const conf: {
|
|
|
96
96
|
type: string;
|
|
97
97
|
label: string;
|
|
98
98
|
objectFields: {
|
|
99
|
+
className: {
|
|
100
|
+
readonly type: "text";
|
|
101
|
+
readonly label: "Class Name";
|
|
102
|
+
readonly ai: {
|
|
103
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
style: {
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly label: "Style";
|
|
109
|
+
readonly objectFields: {};
|
|
110
|
+
readonly ai: {
|
|
111
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
css: {
|
|
115
|
+
readonly type: "textarea";
|
|
116
|
+
readonly label: "Custom CSS";
|
|
117
|
+
readonly ai: {
|
|
118
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
99
121
|
textAlign: {
|
|
100
122
|
readonly type: "radio";
|
|
101
123
|
readonly label: "Text Align";
|
|
@@ -2,6 +2,7 @@ import { StackedAccordionFaq, StackedAccordionFaqDefaults } from "./stacked-acco
|
|
|
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 { faqStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -24,7 +25,8 @@ const conf = {
|
|
|
24
25
|
objectFields: {
|
|
25
26
|
textAlign: faqStyleFields.textAlign,
|
|
26
27
|
hasFooter: faqStyleFields.hasFooter,
|
|
27
|
-
bordered: faqStyleFields.bordered
|
|
28
|
+
bordered: faqStyleFields.bordered,
|
|
29
|
+
...sectionWrapperFields
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
},
|
package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js
CHANGED
|
@@ -2,6 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from "../../../shadcn/accordion.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const StackedAccordionFaq = (props) => {
|
|
6
7
|
const {
|
|
7
8
|
heading,
|
|
@@ -16,12 +17,15 @@ const StackedAccordionFaq = (props) => {
|
|
|
16
17
|
...props
|
|
17
18
|
};
|
|
18
19
|
const {
|
|
20
|
+
className: sectionClassName,
|
|
21
|
+
style: sectionStyle,
|
|
22
|
+
css,
|
|
19
23
|
textAlign = "center",
|
|
20
24
|
hasFooter = true,
|
|
21
25
|
bordered = false
|
|
22
26
|
} = styles ?? {};
|
|
23
27
|
const isCenter = textAlign === "center";
|
|
24
|
-
return /* @__PURE__ */ jsx(
|
|
28
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container max-w-lg", children: [
|
|
25
29
|
/* @__PURE__ */ jsxs("div", { className: cn("rb-12 mb-12 md:mb-18 lg:mb-20", { "text-center": isCenter }), children: [
|
|
26
30
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
27
31
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -96,6 +96,28 @@ declare const conf: {
|
|
|
96
96
|
type: string;
|
|
97
97
|
label: string;
|
|
98
98
|
objectFields: {
|
|
99
|
+
className: {
|
|
100
|
+
readonly type: "text";
|
|
101
|
+
readonly label: "Class Name";
|
|
102
|
+
readonly ai: {
|
|
103
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
style: {
|
|
107
|
+
readonly type: "object";
|
|
108
|
+
readonly label: "Style";
|
|
109
|
+
readonly objectFields: {};
|
|
110
|
+
readonly ai: {
|
|
111
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
css: {
|
|
115
|
+
readonly type: "textarea";
|
|
116
|
+
readonly label: "Custom CSS";
|
|
117
|
+
readonly ai: {
|
|
118
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
99
121
|
textAlign: {
|
|
100
122
|
readonly type: "radio";
|
|
101
123
|
readonly label: "Text Align";
|
|
@@ -2,6 +2,7 @@ import { StackedStaticFaq, StackedStaticFaqDefaults } from "./stacked-static-faq
|
|
|
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 { faqStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -24,7 +25,8 @@ const conf = {
|
|
|
24
25
|
objectFields: {
|
|
25
26
|
textAlign: faqStyleFields.textAlign,
|
|
26
27
|
gridColumns: faqStyleFields.gridColumns,
|
|
27
|
-
hasFooter: faqStyleFields.hasFooter
|
|
28
|
+
hasFooter: faqStyleFields.hasFooter,
|
|
29
|
+
...sectionWrapperFields
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
5
|
const StackedStaticFaq = (props) => {
|
|
5
6
|
const {
|
|
6
7
|
heading,
|
|
@@ -15,6 +16,9 @@ const StackedStaticFaq = (props) => {
|
|
|
15
16
|
...props
|
|
16
17
|
};
|
|
17
18
|
const {
|
|
19
|
+
className: sectionClassName,
|
|
20
|
+
style: sectionStyle,
|
|
21
|
+
css,
|
|
18
22
|
textAlign = "center",
|
|
19
23
|
gridColumns = 1,
|
|
20
24
|
hasFooter = true
|
|
@@ -27,7 +31,7 @@ const StackedStaticFaq = (props) => {
|
|
|
27
31
|
"grid-cols-1 md:grid-cols-2 lg:grid-cols-3": gridColumns === 3,
|
|
28
32
|
"md:grid-cols-[0.75fr_1fr]": isInline
|
|
29
33
|
});
|
|
30
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
+
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: cn("container", { "w-full max-w-lg": gridColumns === 1 && isCenter }), children: [
|
|
31
35
|
/* @__PURE__ */ jsxs("div", { className: cn("rb-12 mb-12 md:mb-18 lg:mb-20", { "text-center": isCenter }), children: [
|
|
32
36
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
33
37
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -88,6 +88,28 @@ declare const conf: {
|
|
|
88
88
|
type: string;
|
|
89
89
|
label: string;
|
|
90
90
|
objectFields: {
|
|
91
|
+
className: {
|
|
92
|
+
readonly type: "text";
|
|
93
|
+
readonly label: "Class Name";
|
|
94
|
+
readonly ai: {
|
|
95
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
style: {
|
|
99
|
+
readonly type: "object";
|
|
100
|
+
readonly label: "Style";
|
|
101
|
+
readonly objectFields: {};
|
|
102
|
+
readonly ai: {
|
|
103
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
css: {
|
|
107
|
+
readonly type: "textarea";
|
|
108
|
+
readonly label: "Custom CSS";
|
|
109
|
+
readonly ai: {
|
|
110
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
111
|
+
};
|
|
112
|
+
};
|
|
91
113
|
bordered: {
|
|
92
114
|
readonly type: "radio";
|
|
93
115
|
readonly label: "Bordered";
|
|
@@ -2,6 +2,7 @@ import { TwoColumnAccordionFaq, TwoColumnAccordionFaqDefaults } from "./two-colu
|
|
|
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 { faqStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -20,7 +21,8 @@ const conf = {
|
|
|
20
21
|
type: "object",
|
|
21
22
|
label: "Styles",
|
|
22
23
|
objectFields: {
|
|
23
|
-
bordered: faqStyleFields.bordered
|
|
24
|
+
bordered: faqStyleFields.bordered,
|
|
25
|
+
...sectionWrapperFields
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
},
|