dune-react 0.0.20 → 0.0.22
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/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/form.js +1 -1
- package/dist/components/puck-base/image.js +17 -17
- package/dist/components/puck-base/index.d.ts +1 -12
- 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 +25 -3
- 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 +23 -1
- 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 +5 -23
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +3 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +23 -1
- 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 +89 -59
- package/dist/components/puck-block/cta-sections/props.d.ts +3 -1
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +35 -77
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +24 -83
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- 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 +23 -1
- 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/icon-card-faq/index.d.ts +1 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- 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/index.d.ts +1 -1
- 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 +24 -2
- 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 +24 -2
- 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 +78 -60
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +23 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +23 -1
- 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 +23 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -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 +24 -2
- 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 +24 -2
- 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 +71 -66
- 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 +22 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -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/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +120 -16
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +163 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +23 -1
- 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 +144 -18
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +54 -10
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +24 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +6 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +5 -2
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +19 -7
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +14 -6
- 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 +23 -1
- 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/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +23 -1
- 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 +37 -7
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +9 -5
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +23 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -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 +23 -1
- 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/parallax-images-hero/index.d.ts +1 -1
- 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/scatter-parallax-hero/index.d.ts +1 -1
- 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 +14 -6
- 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 +98 -42
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +36 -6
- 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 +37 -7
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +37 -7
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +15 -5
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- 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 +36 -6
- 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 +28 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +6 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +102 -44
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +23 -1
- 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 +32 -5
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +12 -4
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +4 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +4 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +5 -2
- package/dist/components/puck-block/location-sections/props.d.ts +4 -1
- 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 +23 -1
- 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 +23 -1
- 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 +23 -1
- 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 +22 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +3 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +38 -23
- 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 +22 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +3 -1
- 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 +28 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -0
- 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/registry.generated.d.ts +13141 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- 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 +23 -1
- 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 +23 -1
- 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 +24 -2
- 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 +24 -2
- 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 +24 -4
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +3 -1
- 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 +24 -2
- 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 +23 -1
- package/dist/components/puck-block/team-sections/team-carousel/index.js +3 -1
- 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 +23 -1
- package/dist/components/puck-block/team-sections/team-grid/index.js +3 -1
- 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 +23 -1
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +3 -1
- 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 +23 -1
- 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 +23 -1
- 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 +22 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +3 -1
- 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 +22 -0
- package/dist/components/puck-block/text-sections/blog-article/index.js +3 -1
- 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 +23 -1
- 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 +24 -2
- 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/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +8 -4
- package/dist/components/puck-core/core/styles.d.ts +375 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +13 -2
- package/dist/components/puck-core/fields/action-field.js +2 -2
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +3 -1
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -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 +125 -105
- package/package.json +1 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- 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
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
|
@@ -2,87 +2,92 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import { Button } from "../../../shadcn/button.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";
|
|
6
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
5
7
|
const PortfolioDivider = (props) => {
|
|
6
8
|
const { tagline, heading, description, projects, button, styles } = {
|
|
7
9
|
...PortfolioDividerDefaults,
|
|
8
10
|
...props
|
|
9
11
|
};
|
|
10
|
-
const { mediaPosition = "right" } = styles ?? {};
|
|
11
|
-
const
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
+
const { className: sectionClassName, style: sectionStyle, css, mediaPosition = "right" } = styles ?? {};
|
|
13
|
+
const startsLeft = mediaPosition === "left";
|
|
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("header", { className: "mb-12 max-w-lg 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 }),
|
|
16
18
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
17
19
|
] }),
|
|
18
|
-
/* @__PURE__ */ jsx("div", { children: projects.map((project, index) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
className: "w-full object-cover",
|
|
28
|
-
alt: project.image.alt
|
|
29
|
-
}
|
|
30
|
-
) }) }),
|
|
31
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
32
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
|
|
33
|
-
/* @__PURE__ */ jsx("p", { children: project.description }),
|
|
34
|
-
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
35
|
-
"a",
|
|
20
|
+
/* @__PURE__ */ jsx("div", { children: projects.map((project, index) => {
|
|
21
|
+
const isMediaLeft = startsLeft ? index % 2 === 0 : index % 2 !== 0;
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
"article",
|
|
24
|
+
{
|
|
25
|
+
className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
|
|
26
|
+
children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
28
|
+
CompoundImage,
|
|
36
29
|
{
|
|
37
|
-
|
|
38
|
-
className: "
|
|
39
|
-
|
|
30
|
+
src: project.image.src,
|
|
31
|
+
className: "w-full object-cover",
|
|
32
|
+
alt: project.image.alt
|
|
40
33
|
}
|
|
41
|
-
) }
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
34
|
+
) }) }),
|
|
35
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
36
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
|
|
37
|
+
/* @__PURE__ */ jsx("p", { children: project.description }),
|
|
38
|
+
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
39
|
+
"a",
|
|
40
|
+
{
|
|
41
|
+
href: tag.url,
|
|
42
|
+
className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
|
|
43
|
+
children: tag.label
|
|
44
|
+
}
|
|
45
|
+
) }, tagIndex)) }),
|
|
46
|
+
/* @__PURE__ */ jsx(
|
|
47
|
+
Button,
|
|
48
|
+
{
|
|
49
|
+
variant: project.button.variant,
|
|
50
|
+
size: project.button.size,
|
|
51
|
+
className: "mt-6 md:mt-8",
|
|
52
|
+
children: project.button.label
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
58
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
|
|
59
|
+
/* @__PURE__ */ jsx("p", { children: project.description }),
|
|
60
|
+
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
61
|
+
"a",
|
|
62
|
+
{
|
|
63
|
+
href: tag.url,
|
|
64
|
+
className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
|
|
65
|
+
children: tag.label
|
|
66
|
+
}
|
|
67
|
+
) }, tagIndex)) }),
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
Button,
|
|
70
|
+
{
|
|
71
|
+
variant: project.button.variant,
|
|
72
|
+
size: project.button.size,
|
|
73
|
+
className: "mt-6 md:mt-8",
|
|
74
|
+
children: project.button.label
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
79
|
+
CompoundImage,
|
|
44
80
|
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
children: project.button.label
|
|
81
|
+
src: project.image.src,
|
|
82
|
+
className: "w-full object-cover",
|
|
83
|
+
alt: project.image.alt
|
|
49
84
|
}
|
|
50
|
-
)
|
|
85
|
+
) }) })
|
|
51
86
|
] })
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
57
|
-
"a",
|
|
58
|
-
{
|
|
59
|
-
href: tag.url,
|
|
60
|
-
className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
|
|
61
|
-
children: tag.label
|
|
62
|
-
}
|
|
63
|
-
) }, tagIndex)) }),
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
65
|
-
Button,
|
|
66
|
-
{
|
|
67
|
-
variant: project.button.variant,
|
|
68
|
-
size: project.button.size,
|
|
69
|
-
className: "mt-6 md:mt-8",
|
|
70
|
-
children: project.button.label
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
] }),
|
|
74
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
75
|
-
CompoundImage,
|
|
76
|
-
{
|
|
77
|
-
src: project.image.src,
|
|
78
|
-
className: "w-full object-cover",
|
|
79
|
-
alt: project.image.alt
|
|
80
|
-
}
|
|
81
|
-
) }) })
|
|
82
|
-
] })
|
|
83
|
-
},
|
|
84
|
-
index
|
|
85
|
-
)) }),
|
|
87
|
+
},
|
|
88
|
+
index
|
|
89
|
+
);
|
|
90
|
+
}) }),
|
|
86
91
|
/* @__PURE__ */ jsx("footer", { className: "mt-12 flex justify-center md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }) })
|
|
87
92
|
] }) });
|
|
88
93
|
};
|
|
@@ -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 GallerySectionStyles {
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
css?: string;
|
|
11
14
|
columns?: string;
|
|
12
15
|
gap?: "with" | "without";
|
|
13
16
|
gridPattern?: "1large-2small" | "1large-4small";
|
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useRef } from "react";
|
|
4
4
|
import { useScroll, useTransform, motion } from "framer-motion";
|
|
5
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
5
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
9
|
const ScrollParallax = (props) => {
|
|
7
|
-
const { heading, description, images } = {
|
|
10
|
+
const { heading, description, images, styles } = {
|
|
8
11
|
...ScrollParallaxDefaults,
|
|
9
12
|
...props
|
|
10
13
|
};
|
|
14
|
+
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
11
15
|
const transformRef = useRef(null);
|
|
16
|
+
const [scrollContainerRef] = useScrollContainer(transformRef);
|
|
12
17
|
const { scrollYProgress } = useScroll({
|
|
13
|
-
target: transformRef
|
|
18
|
+
target: transformRef,
|
|
19
|
+
...scrollContainerRef.current ? { container: scrollContainerRef } : {}
|
|
14
20
|
});
|
|
15
21
|
const x = useTransform(scrollYProgress, [0, 1], ["0%", "-100%"]);
|
|
16
|
-
return /* @__PURE__ */ jsxs(
|
|
22
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: transformRef, className: cn(sectionClassName), style: sectionStyle, css, children: [
|
|
17
23
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsxs("div", { className: "container text-center", children: [
|
|
18
24
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
19
25
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
@@ -59,6 +59,28 @@ declare const conf: {
|
|
|
59
59
|
type: string;
|
|
60
60
|
label: string;
|
|
61
61
|
objectFields: {
|
|
62
|
+
className: {
|
|
63
|
+
readonly type: "text";
|
|
64
|
+
readonly label: "Class Name";
|
|
65
|
+
readonly ai: {
|
|
66
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
style: {
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly label: "Style";
|
|
72
|
+
readonly objectFields: {};
|
|
73
|
+
readonly ai: {
|
|
74
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
css: {
|
|
78
|
+
readonly type: "textarea";
|
|
79
|
+
readonly label: "Custom CSS";
|
|
80
|
+
readonly ai: {
|
|
81
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
62
84
|
animation: {
|
|
63
85
|
type: "radio";
|
|
64
86
|
label: string;
|
|
@@ -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: {
|
|
@@ -26,7 +27,8 @@ const conf = {
|
|
|
26
27
|
{ label: "Three Image Parallax", value: "threeImageParallax" },
|
|
27
28
|
{ label: "Scale Opacity", value: "scaleOpacity" }
|
|
28
29
|
]
|
|
29
|
-
}
|
|
30
|
+
},
|
|
31
|
+
...sectionWrapperFields
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
},
|
|
@@ -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: [
|