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
|
@@ -62,10 +62,35 @@ declare const conf: {
|
|
|
62
62
|
animation: {
|
|
63
63
|
type: "radio";
|
|
64
64
|
label: string;
|
|
65
|
-
options: {
|
|
65
|
+
options: ({
|
|
66
|
+
className: {
|
|
67
|
+
readonly type: "text";
|
|
68
|
+
readonly label: "Class Name";
|
|
69
|
+
readonly ai: {
|
|
70
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
style: {
|
|
74
|
+
readonly type: "object";
|
|
75
|
+
readonly label: "Style";
|
|
76
|
+
readonly objectFields: {};
|
|
77
|
+
readonly ai: {
|
|
78
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
css: {
|
|
82
|
+
readonly type: "textarea";
|
|
83
|
+
readonly label: "Custom CSS";
|
|
84
|
+
readonly ai: {
|
|
85
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
label: string;
|
|
89
|
+
value: string;
|
|
90
|
+
} | {
|
|
66
91
|
label: string;
|
|
67
92
|
value: string;
|
|
68
|
-
}[];
|
|
93
|
+
})[];
|
|
69
94
|
};
|
|
70
95
|
};
|
|
71
96
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ScrollParallaxPortfolio, ScrollParallaxPortfolioDefaults } from "./scroll-parallax-portfolio.js";
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
projects: {
|
|
@@ -23,7 +24,7 @@ const conf = {
|
|
|
23
24
|
type: "radio",
|
|
24
25
|
label: "Animation",
|
|
25
26
|
options: [
|
|
26
|
-
{ label: "Three Image Parallax", value: "threeImageParallax" },
|
|
27
|
+
{ label: "Three Image Parallax", value: "threeImageParallax", ...sectionWrapperFields },
|
|
27
28
|
{ label: "Scale Opacity", value: "scaleOpacity" }
|
|
28
29
|
]
|
|
29
30
|
}
|
|
@@ -3,23 +3,32 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { useScroll, useTransform, motion, useSpring, easeOut, easeInOut } from "framer-motion";
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
6
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
9
|
const ScrollParallaxPortfolio = (props) => {
|
|
8
10
|
const { projects, styles } = {
|
|
9
11
|
...ScrollParallaxPortfolioDefaults,
|
|
10
12
|
...props
|
|
11
13
|
};
|
|
12
|
-
const { animation = "threeImageParallax" } = styles ?? {};
|
|
14
|
+
const { className: sectionClassName, style: sectionStyle, css, animation = "threeImageParallax" } = styles ?? {};
|
|
13
15
|
if (animation === "scaleOpacity") {
|
|
14
|
-
return /* @__PURE__ */ jsx(ScaleOpacityVariant, { projects });
|
|
16
|
+
return /* @__PURE__ */ jsx(ScaleOpacityVariant, { projects, sectionClassName, sectionStyle, css });
|
|
15
17
|
}
|
|
16
|
-
return /* @__PURE__ */ jsx(ThreeImageParallaxVariant, { projects });
|
|
18
|
+
return /* @__PURE__ */ jsx(ThreeImageParallaxVariant, { projects, sectionClassName, sectionStyle, css });
|
|
17
19
|
};
|
|
18
20
|
const ThreeImageParallaxVariant = ({
|
|
19
|
-
projects
|
|
21
|
+
projects,
|
|
22
|
+
sectionClassName,
|
|
23
|
+
sectionStyle,
|
|
24
|
+
css
|
|
20
25
|
}) => {
|
|
21
26
|
const transformRef = useRef(null);
|
|
22
|
-
const
|
|
27
|
+
const [scrollContainerRef] = useScrollContainer(transformRef);
|
|
28
|
+
const { scrollYProgress } = useScroll({
|
|
29
|
+
target: transformRef,
|
|
30
|
+
...scrollContainerRef.current ? { container: scrollContainerRef } : {}
|
|
31
|
+
});
|
|
23
32
|
const smoothProgress = useSpring(scrollYProgress, {
|
|
24
33
|
stiffness: 200,
|
|
25
34
|
damping: 25,
|
|
@@ -61,8 +70,8 @@ const ThreeImageParallaxVariant = ({
|
|
|
61
70
|
}
|
|
62
71
|
};
|
|
63
72
|
});
|
|
64
|
-
return /* @__PURE__ */ jsxs(
|
|
65
|
-
/* @__PURE__ */ jsx("div", { ref: transformRef, className: "container", children: /* @__PURE__ */ jsx("div", { className: "py-
|
|
73
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: [
|
|
74
|
+
/* @__PURE__ */ jsx("div", { ref: transformRef, className: "container", children: /* @__PURE__ */ jsx("div", { className: "py-6 md:py-8 lg:py-10", children: projects.map((project, index) => {
|
|
66
75
|
var _a, _b, _c, _d, _e, _f;
|
|
67
76
|
return /* @__PURE__ */ jsxs(
|
|
68
77
|
"div",
|
|
@@ -132,11 +141,18 @@ const ThreeImageParallaxVariant = ({
|
|
|
132
141
|
] });
|
|
133
142
|
};
|
|
134
143
|
const ScaleOpacityVariant = ({
|
|
135
|
-
projects
|
|
144
|
+
projects,
|
|
145
|
+
sectionClassName,
|
|
146
|
+
sectionStyle,
|
|
147
|
+
css
|
|
136
148
|
}) => {
|
|
137
149
|
const containerRef = useRef(null);
|
|
138
|
-
const
|
|
139
|
-
|
|
150
|
+
const [scrollContainerRef] = useScrollContainer(containerRef);
|
|
151
|
+
const { scrollYProgress } = useScroll({
|
|
152
|
+
target: containerRef,
|
|
153
|
+
...scrollContainerRef.current ? { container: scrollContainerRef } : {}
|
|
154
|
+
});
|
|
155
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { ref: containerRef, className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "h-[300vh]", children: /* @__PURE__ */ jsx("div", { className: "sticky top-0 flex h-screen items-center justify-center", children: projects.map((project, index) => {
|
|
140
156
|
const segmentSize = 1 / projects.length;
|
|
141
157
|
const start = index * segmentSize;
|
|
142
158
|
const end = start + segmentSize;
|
|
@@ -33,6 +33,28 @@ declare const conf: {
|
|
|
33
33
|
type: string;
|
|
34
34
|
label: string;
|
|
35
35
|
objectFields: {
|
|
36
|
+
className: {
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
readonly label: "Class Name";
|
|
39
|
+
readonly ai: {
|
|
40
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
style: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly label: "Style";
|
|
46
|
+
readonly objectFields: {};
|
|
47
|
+
readonly ai: {
|
|
48
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
css: {
|
|
52
|
+
readonly type: "textarea";
|
|
53
|
+
readonly label: "Custom CSS";
|
|
54
|
+
readonly ai: {
|
|
55
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
36
58
|
slideBasis: {
|
|
37
59
|
readonly type: "text";
|
|
38
60
|
readonly label: "Slide Basis";
|
|
@@ -2,6 +2,7 @@ import { SplitCarousel, SplitCarouselDefaults } from "./split-carousel.js";
|
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { galleryStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
heading: headingField,
|
|
@@ -11,7 +12,8 @@ const conf = {
|
|
|
11
12
|
type: "object",
|
|
12
13
|
label: "Styles",
|
|
13
14
|
objectFields: {
|
|
14
|
-
slideBasis: galleryStyleFields.slideBasis
|
|
15
|
+
slideBasis: galleryStyleFields.slideBasis,
|
|
16
|
+
...sectionWrapperFields
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
},
|
|
@@ -4,12 +4,13 @@ import { useState, useEffect } from "react";
|
|
|
4
4
|
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "../../../shadcn/carousel.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
6
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
8
|
const SplitCarousel = (props) => {
|
|
8
9
|
const { heading, description, images, styles } = {
|
|
9
10
|
...SplitCarouselDefaults,
|
|
10
11
|
...props
|
|
11
12
|
};
|
|
12
|
-
const { slideBasis = "4/5" } = styles ?? {};
|
|
13
|
+
const { className: sectionClassName, style: sectionStyle, css, slideBasis = "4/5" } = styles ?? {};
|
|
13
14
|
const [api, setApi] = useState();
|
|
14
15
|
const [current, setCurrent] = useState(0);
|
|
15
16
|
useEffect(() => {
|
|
@@ -31,7 +32,7 @@ const SplitCarousel = (props) => {
|
|
|
31
32
|
return "basis-[95%] sm:basis-4/5 md:basis-1/2 lg:basis-4/5";
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
|
-
return /* @__PURE__ */ jsx(
|
|
35
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("overflow-hidden py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "grid auto-cols-fr grid-cols-1 items-center gap-12 md:gap-16 lg:grid-cols-2 lg:gap-0", children: [
|
|
35
36
|
/* @__PURE__ */ jsx("div", { className: "flex lg:justify-self-end", children: /* @__PURE__ */ jsxs("div", { className: "mx-[5%] w-full max-w-md lg:mb-24 lg:ml-[5vw] lg:mr-20", children: [
|
|
36
37
|
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
37
38
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -33,6 +33,28 @@ declare const conf: {
|
|
|
33
33
|
type: string;
|
|
34
34
|
label: string;
|
|
35
35
|
objectFields: {
|
|
36
|
+
className: {
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
readonly label: "Class Name";
|
|
39
|
+
readonly ai: {
|
|
40
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
style: {
|
|
44
|
+
readonly type: "object";
|
|
45
|
+
readonly label: "Style";
|
|
46
|
+
readonly objectFields: {};
|
|
47
|
+
readonly ai: {
|
|
48
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
css: {
|
|
52
|
+
readonly type: "textarea";
|
|
53
|
+
readonly label: "Custom CSS";
|
|
54
|
+
readonly ai: {
|
|
55
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
36
58
|
columns: {
|
|
37
59
|
readonly type: "text";
|
|
38
60
|
readonly label: "Columns";
|
|
@@ -2,6 +2,7 @@ import { StaticGrid, StaticGridDefaults } from "./static-grid.js";
|
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
3
|
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
4
4
|
import { galleryStyleFields } 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
|
columns: galleryStyleFields.columns,
|
|
15
|
-
gap: galleryStyleFields.gap
|
|
16
|
+
gap: galleryStyleFields.gap,
|
|
17
|
+
...sectionWrapperFields
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
3
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
4
5
|
const columnsMap = {
|
|
5
6
|
"1": "grid-cols-1",
|
|
@@ -13,10 +14,10 @@ const StaticGrid = (props) => {
|
|
|
13
14
|
...StaticGridDefaults,
|
|
14
15
|
...props
|
|
15
16
|
};
|
|
16
|
-
const { columns = "2", gap = "with" } = styles ?? {};
|
|
17
|
+
const { className: sectionClassName, style: sectionStyle, css, columns = "2", gap = "with" } = styles ?? {};
|
|
17
18
|
const gridCols = columnsMap[columns] ?? columnsMap["2"];
|
|
18
19
|
const hasGap = gap === "with";
|
|
19
|
-
return /* @__PURE__ */ jsx(
|
|
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: [
|
|
20
21
|
/* @__PURE__ */ jsxs("div", { className: "mb-12 text-center md:mb-18 lg:mb-20", children: [
|
|
21
22
|
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
22
23
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -4,10 +4,13 @@ import { useState } from "react";
|
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
6
|
import { motion } from "framer-motion";
|
|
7
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
8
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
9
|
const CenteredNavbar = (props) => {
|
|
8
|
-
const { logo, navLinks, buttons } = { ...CenteredNavbarDefaults, ...props };
|
|
10
|
+
const { logo, navLinks, buttons, styles } = { ...CenteredNavbarDefaults, ...props };
|
|
11
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
9
12
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("z-[999] flex w-full items-center border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto size-full lg:grid lg:grid-cols-[0.375fr_1fr_0.375fr] lg:items-center lg:justify-between lg:gap-4", children: [
|
|
11
14
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
12
15
|
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
13
16
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 lg:hidden", children: [
|
|
@@ -4,10 +4,13 @@ import { useState } from "react";
|
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
6
|
import { AnimatePresence, motion } from "framer-motion";
|
|
7
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
8
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
9
|
const DrawerNavbar = (props) => {
|
|
8
|
-
const { logo, navLinks, buttons } = { ...DrawerNavbarDefaults, ...props };
|
|
10
|
+
const { logo, navLinks, buttons, styles } = { ...DrawerNavbarDefaults, ...props };
|
|
11
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
9
12
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
10
|
-
return /* @__PURE__ */ jsxs(
|
|
13
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("z-[999] grid w-full grid-cols-[1fr_max-content_1fr] items-center justify-between border-b border-border-primary bg-background-primary px-[5%] md:min-h-18", sectionClassName), style: sectionStyle, css, children: [
|
|
11
14
|
/* @__PURE__ */ jsx("button", { className: "flex size-12 flex-col justify-center lg:hidden", onClick: () => setIsMobileMenuOpen((prev) => !prev), children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("span", { className: "my-[3px] h-0.5 w-6 bg-black lg:hidden" }, i)) }),
|
|
12
15
|
/* @__PURE__ */ jsxs(AnimatePresence, { children: [
|
|
13
16
|
/* @__PURE__ */ jsxs(motion.div, { initial: "closed", animate: isMobileMenuOpen ? "open" : "closed", exit: "closed", variants: { closed: { x: "-100%", opacity: 1, transition: { type: "spring", duration: 0.6, bounce: 0 }, transitionEnd: { opacity: "var(--opacity-closed, 0%)", x: "var(--x-closed, -100%)" } }, open: { x: 0, opacity: 1, transition: { type: "spring", duration: 0.4, bounce: 0 } } }, className: "absolute left-0 top-0 z-50 flex h-dvh w-[90%] flex-col border-r border-border-primary bg-white px-[5%] pb-4 md:w-[80%] lg:visible lg:static lg:-ml-4 lg:flex lg:h-auto lg:w-auto lg:flex-row lg:border-none lg:px-0 lg:pb-0 lg:[--opacity-closed:100%] lg:[--x-closed:0%]", children: [
|
|
@@ -6,12 +6,14 @@ import { CompoundButton } from "../../../puck-base/button.js";
|
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
7
|
import { motion, AnimatePresence } from "framer-motion";
|
|
8
8
|
import { RxChevronDown } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/rx/index.js";
|
|
9
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
10
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
11
|
const FloatingBorderedNavbar = (props) => {
|
|
10
12
|
const { logo, navLinks, button, styles } = { ...FloatingBorderedNavbarDefaults, ...props };
|
|
11
|
-
const { position = "relative" } = styles ?? {};
|
|
13
|
+
const { className: sectionClassName, style: sectionStyle, css, position = "relative" } = styles ?? {};
|
|
12
14
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
13
15
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn(`${position === "fixed" ? "fixed" : "relative"} z-[999] mx-auto mt-5 flex w-full items-start justify-center bg-background-primary px-[5%] md:mt-6 lg:mx-[5%] lg:w-auto lg:px-0`, sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-16 w-full items-center justify-between gap-4 border border-border-primary px-5 md:min-h-18 md:px-8 lg:w-auto", children: [
|
|
15
17
|
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
16
18
|
/* @__PURE__ */ jsx(motion.div, { variants: { open: { height: "var(--height, 100vh)" }, close: { height: "auto" } }, initial: "close", exit: "close", animate: isMobileMenuOpen ? "open" : "close", className: "absolute left-0 right-0 top-full w-full overflow-hidden lg:static lg:left-auto lg:right-auto lg:top-auto lg:w-auto lg:overflow-visible lg:[--height:auto]", children: /* @__PURE__ */ jsx(motion.div, { variants: { open: { y: 0 }, close: { y: "var(--translate-y, -100%)" } }, animate: isMobileMenuOpen ? "open" : "close", initial: "close", exit: "close", transition: { duration: 0.3 }, className: "absolute left-0 right-0 top-0 mx-auto min-w-[200px] justify-self-center bg-background-primary px-[5%] text-center lg:static lg:inset-auto lg:mx-0 lg:px-0 lg:text-left lg:[--translate-y:0%]", children: /* @__PURE__ */ jsx("div", { className: "flex w-full flex-col border border-t-0 border-border-primary bg-background-primary p-5 md:p-8 lg:w-auto lg:flex-row lg:border-none lg:bg-none lg:p-0", children: navLinks == null ? void 0 : navLinks.map(
|
|
17
19
|
(navLink, index) => navLink.subMenuLinks && navLink.subMenuLinks.length > 0 ? /* @__PURE__ */ jsx(SubMenu, { navLink, isMobile }, index) : /* @__PURE__ */ jsx("a", { href: navLink.url, className: "relative block py-3 text-center text-md lg:px-4 lg:py-2 lg:text-left lg:text-base", children: navLink.title }, index)
|
|
@@ -87,6 +87,28 @@ declare const conf: {
|
|
|
87
87
|
type: string;
|
|
88
88
|
label: string;
|
|
89
89
|
objectFields: {
|
|
90
|
+
className: {
|
|
91
|
+
readonly type: "text";
|
|
92
|
+
readonly label: "Class Name";
|
|
93
|
+
readonly ai: {
|
|
94
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
style: {
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly label: "Style";
|
|
100
|
+
readonly objectFields: {};
|
|
101
|
+
readonly ai: {
|
|
102
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
css: {
|
|
106
|
+
readonly type: "textarea";
|
|
107
|
+
readonly label: "Custom CSS";
|
|
108
|
+
readonly ai: {
|
|
109
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
90
112
|
position: {
|
|
91
113
|
readonly type: "radio";
|
|
92
114
|
readonly label: "Position";
|
|
@@ -2,8 +2,9 @@ import { FloatingBorderedNavbar, FloatingBorderedNavbarDefaults } from "./floati
|
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { headerStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
|
-
fields: { logo: imageField, navLinks: { type: "array", max: 6, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } }, button: buttonField, styles: { type: "object", label: "Styles", objectFields: { position: headerStyleFields.position } } },
|
|
7
|
+
fields: { logo: imageField, navLinks: { type: "array", max: 6, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } }, button: buttonField, styles: { type: "object", label: "Styles", objectFields: { position: headerStyleFields.position, ...sectionWrapperFields } } },
|
|
7
8
|
defaultProps: FloatingBorderedNavbarDefaults,
|
|
8
9
|
render: FloatingBorderedNavbar
|
|
9
10
|
};
|
|
@@ -4,10 +4,13 @@ import { useState } from "react";
|
|
|
4
4
|
import { Button } from "../../../shadcn/button.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
6
|
import { motion, AnimatePresence } from "framer-motion";
|
|
7
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
8
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
9
|
const FullscreenOverlayNavbar = (props) => {
|
|
8
|
-
const { logo, navLinks, button } = { ...FullscreenOverlayNavbarDefaults, ...props };
|
|
10
|
+
const { logo, navLinks, button, styles } = { ...FullscreenOverlayNavbarDefaults, ...props };
|
|
11
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
9
12
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
10
|
-
return /* @__PURE__ */ jsxs(
|
|
13
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("relative z-[999] flex min-h-16 w-full items-center border-b border-b-border-primary bg-background-primary px-[5%] md:min-h-18", sectionClassName), style: sectionStyle, css, children: [
|
|
11
14
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto flex size-full items-center justify-between", children: [
|
|
12
15
|
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
13
16
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 lg:gap-4", children: [
|
|
@@ -87,6 +87,28 @@ declare const conf: {
|
|
|
87
87
|
type: string;
|
|
88
88
|
label: string;
|
|
89
89
|
objectFields: {
|
|
90
|
+
className: {
|
|
91
|
+
readonly type: "text";
|
|
92
|
+
readonly label: "Class Name";
|
|
93
|
+
readonly ai: {
|
|
94
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
style: {
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly label: "Style";
|
|
100
|
+
readonly objectFields: {};
|
|
101
|
+
readonly ai: {
|
|
102
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
css: {
|
|
106
|
+
readonly type: "textarea";
|
|
107
|
+
readonly label: "Custom CSS";
|
|
108
|
+
readonly ai: {
|
|
109
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
90
112
|
overlayContent: {
|
|
91
113
|
readonly type: "select";
|
|
92
114
|
readonly label: "Overlay Content";
|
|
@@ -2,8 +2,9 @@ import { FullscreenOverlayNavbar, FullscreenOverlayNavbarDefaults } from "./full
|
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { headerStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
|
-
fields: { logo: imageField, navLinks: { type: "array", max: 8, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } }, button: buttonField, styles: { type: "object", label: "Styles", objectFields: { overlayContent: headerStyleFields.overlayContent } } },
|
|
7
|
+
fields: { logo: imageField, navLinks: { type: "array", max: 8, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } }, button: buttonField, styles: { type: "object", label: "Styles", objectFields: { overlayContent: headerStyleFields.overlayContent, ...sectionWrapperFields } } },
|
|
7
8
|
defaultProps: FullscreenOverlayNavbarDefaults,
|
|
8
9
|
render: FullscreenOverlayNavbar
|
|
9
10
|
};
|
|
@@ -111,6 +111,28 @@ declare const conf: {
|
|
|
111
111
|
type: string;
|
|
112
112
|
label: string;
|
|
113
113
|
objectFields: {
|
|
114
|
+
className: {
|
|
115
|
+
readonly type: "text";
|
|
116
|
+
readonly label: "Class Name";
|
|
117
|
+
readonly ai: {
|
|
118
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
style: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly label: "Style";
|
|
124
|
+
readonly objectFields: {};
|
|
125
|
+
readonly ai: {
|
|
126
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
css: {
|
|
130
|
+
readonly type: "textarea";
|
|
131
|
+
readonly label: "Custom CSS";
|
|
132
|
+
readonly ai: {
|
|
133
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
114
136
|
megaMenuLayout: {
|
|
115
137
|
readonly type: "select";
|
|
116
138
|
readonly label: "Mega Menu Layout";
|
|
@@ -2,8 +2,9 @@ import { MegaMenuNavbar, MegaMenuNavbarDefaults } from "./mega-menu-navbar.js";
|
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { headerStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
|
-
fields: { logo: imageField, navLinks: { type: "array", max: 6, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } }, buttons: buttonsField, styles: { type: "object", label: "Styles", objectFields: { megaMenuLayout: headerStyleFields.megaMenuLayout } } },
|
|
7
|
+
fields: { logo: imageField, navLinks: { type: "array", max: 6, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } }, buttons: buttonsField, styles: { type: "object", label: "Styles", objectFields: { megaMenuLayout: headerStyleFields.megaMenuLayout, ...sectionWrapperFields } } },
|
|
7
8
|
defaultProps: MegaMenuNavbarDefaults,
|
|
8
9
|
render: MegaMenuNavbar
|
|
9
10
|
};
|
|
@@ -5,10 +5,13 @@ import { Button } from "../../../shadcn/button.js";
|
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
7
|
import { motion } from "framer-motion";
|
|
8
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
9
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
8
10
|
const MegaMenuNavbar = (props) => {
|
|
9
|
-
const { logo, navLinks, buttons } = { ...MegaMenuNavbarDefaults, ...props };
|
|
11
|
+
const { logo, navLinks, buttons, styles } = { ...MegaMenuNavbarDefaults, ...props };
|
|
12
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
10
13
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("relative z-[999] flex w-full items-center justify-between border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "size-full lg:flex lg:items-center lg:justify-between", children: [
|
|
12
15
|
/* @__PURE__ */ jsxs("div", { className: "lg:flex", children: [
|
|
13
16
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
14
17
|
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
@@ -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 HeaderSectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
dropdownType?: "simple" | "richIcon" | "richGrouped";
|
|
12
15
|
overlayContent?: "linksOnly" | "withSocial" | "withContact" | "withArticles" | "withForm";
|
|
13
16
|
megaMenuLayout?: "2colGrid" | "3colGrid" | "4colGrid" | "3colSidebar" | "4colFooter" | "linksBlog";
|
|
@@ -111,6 +111,28 @@ declare const conf: {
|
|
|
111
111
|
type: string;
|
|
112
112
|
label: string;
|
|
113
113
|
objectFields: {
|
|
114
|
+
className: {
|
|
115
|
+
readonly type: "text";
|
|
116
|
+
readonly label: "Class Name";
|
|
117
|
+
readonly ai: {
|
|
118
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
style: {
|
|
122
|
+
readonly type: "object";
|
|
123
|
+
readonly label: "Style";
|
|
124
|
+
readonly objectFields: {};
|
|
125
|
+
readonly ai: {
|
|
126
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
css: {
|
|
130
|
+
readonly type: "textarea";
|
|
131
|
+
readonly label: "Custom CSS";
|
|
132
|
+
readonly ai: {
|
|
133
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
114
136
|
dropdownType: {
|
|
115
137
|
readonly type: "radio";
|
|
116
138
|
readonly label: "Dropdown Type";
|
|
@@ -2,12 +2,13 @@ import { StandardNavbar, StandardNavbarDefaults } from "./standard-navbar.js";
|
|
|
2
2
|
import { imageField } from "../../../puck-core/core/props/media.js";
|
|
3
3
|
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { headerStyleFields } from "../props.js";
|
|
5
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
6
7
|
fields: {
|
|
7
8
|
logo: imageField,
|
|
8
9
|
navLinks: { type: "array", max: 6, getItemSummary: (item, i = 0) => item.title || `Link ${i + 1}`, arrayFields: { title: { type: "text" }, url: { type: "text" } } },
|
|
9
10
|
buttons: buttonsField,
|
|
10
|
-
styles: { type: "object", label: "Styles", objectFields: { dropdownType: headerStyleFields.dropdownType } }
|
|
11
|
+
styles: { type: "object", label: "Styles", objectFields: { dropdownType: headerStyleFields.dropdownType, ...sectionWrapperFields } }
|
|
11
12
|
},
|
|
12
13
|
defaultProps: StandardNavbarDefaults,
|
|
13
14
|
render: StandardNavbar
|
|
@@ -6,11 +6,14 @@ import { useMediaQuery } from "../../../../hooks/use-media-query.js";
|
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
7
|
import { motion, AnimatePresence } from "framer-motion";
|
|
8
8
|
import { RxChevronDown } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/rx/index.js";
|
|
9
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
10
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
11
|
const StandardNavbar = (props) => {
|
|
10
|
-
const { logo, navLinks, buttons } = { ...StandardNavbarDefaults, ...props };
|
|
12
|
+
const { logo, navLinks, buttons, styles } = { ...StandardNavbarDefaults, ...props };
|
|
13
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
11
14
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
12
15
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
16
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("z-[999] flex w-full items-center border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "size-full lg:flex lg:items-center lg:justify-between", children: [
|
|
14
17
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
15
18
|
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
16
19
|
/* @__PURE__ */ jsxs("button", { className: "-mr-2 flex size-12 flex-col items-center justify-center lg:hidden", onClick: () => setIsMobileMenuOpen((prev) => !prev), children: [
|
|
@@ -4,15 +4,17 @@ import { useState, useEffect } from "react";
|
|
|
4
4
|
import { Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext } from "../../../shadcn/carousel.js";
|
|
5
5
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
6
6
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
7
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
8
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
9
|
import Autoplay from "embla-carousel-autoplay";
|
|
9
10
|
const CarouselHero = (props) => {
|
|
10
11
|
const [api, setApi] = useState();
|
|
11
12
|
const [current, setCurrent] = useState(0);
|
|
12
|
-
const { heading, description, buttons, images, carouselHeading, carouselDescription } = {
|
|
13
|
+
const { heading, description, buttons, images, carouselHeading, carouselDescription, styles } = {
|
|
13
14
|
...CarouselHeroDefaults,
|
|
14
15
|
...props
|
|
15
16
|
};
|
|
17
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
16
18
|
useEffect(() => {
|
|
17
19
|
if (!api) return;
|
|
18
20
|
setCurrent(api.selectedScrollSnap() + 1);
|
|
@@ -21,10 +23,11 @@ const CarouselHero = (props) => {
|
|
|
21
23
|
});
|
|
22
24
|
}, [api]);
|
|
23
25
|
return /* @__PURE__ */ jsxs(
|
|
24
|
-
|
|
26
|
+
SectionWrapper,
|
|
25
27
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
className: cn("grid grid-cols-1 items-center gap-y-16 overflow-hidden pt-16 sm:overflow-auto md:pt-24 lg:grid-cols-[50%_50%] lg:gap-y-0 lg:pt-0", sectionClassName),
|
|
29
|
+
style: sectionStyle,
|
|
30
|
+
css,
|
|
28
31
|
children: [
|
|
29
32
|
/* @__PURE__ */ jsxs("div", { className: "mx-[5%] max-w-md justify-self-start lg:ml-[5vw] lg:mr-20 lg:justify-self-end", children: [
|
|
30
33
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|