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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* 4. 工厂函数 — createStylesField / createStylesDefaults
|
|
16
16
|
* 5. 各分类预设 — Banner / Hero / CTA … 每类导出 Interface + Field + Defaults 三件套
|
|
17
17
|
*/
|
|
18
|
-
import type { SectionStyle, OverlayStyle } from "
|
|
18
|
+
import type { SectionStyle, OverlayStyle } from "@/components/puck-base/container";
|
|
19
19
|
export type PaddingLevel = "none" | "small" | "medium" | "large";
|
|
20
20
|
export type { SectionStyle, OverlayStyle };
|
|
21
21
|
/** 所有 section 通用的基础样式 */
|
|
@@ -370,6 +370,28 @@ export declare function createStylesField<T extends Record<string, unknown> = Re
|
|
|
370
370
|
type: "object";
|
|
371
371
|
label: string;
|
|
372
372
|
objectFields: {
|
|
373
|
+
className: {
|
|
374
|
+
readonly type: "text";
|
|
375
|
+
readonly label: "Class Name";
|
|
376
|
+
readonly ai: {
|
|
377
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
style: {
|
|
381
|
+
readonly type: "object";
|
|
382
|
+
readonly label: "Style";
|
|
383
|
+
readonly objectFields: {};
|
|
384
|
+
readonly ai: {
|
|
385
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
css: {
|
|
389
|
+
readonly type: "textarea";
|
|
390
|
+
readonly label: "Custom CSS";
|
|
391
|
+
readonly ai: {
|
|
392
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
373
395
|
sectionStyle: {
|
|
374
396
|
readonly type: "select";
|
|
375
397
|
readonly label: "Section Style";
|
|
@@ -470,6 +492,28 @@ export declare const bannerStylesField: {
|
|
|
470
492
|
type: "object";
|
|
471
493
|
label: string;
|
|
472
494
|
objectFields: {
|
|
495
|
+
className: {
|
|
496
|
+
readonly type: "text";
|
|
497
|
+
readonly label: "Class Name";
|
|
498
|
+
readonly ai: {
|
|
499
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
style: {
|
|
503
|
+
readonly type: "object";
|
|
504
|
+
readonly label: "Style";
|
|
505
|
+
readonly objectFields: {};
|
|
506
|
+
readonly ai: {
|
|
507
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
css: {
|
|
511
|
+
readonly type: "textarea";
|
|
512
|
+
readonly label: "Custom CSS";
|
|
513
|
+
readonly ai: {
|
|
514
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
515
|
+
};
|
|
516
|
+
};
|
|
473
517
|
sectionStyle: {
|
|
474
518
|
readonly type: "select";
|
|
475
519
|
readonly label: "Section Style";
|
|
@@ -564,6 +608,28 @@ export declare const heroStylesField: {
|
|
|
564
608
|
type: "object";
|
|
565
609
|
label: string;
|
|
566
610
|
objectFields: {
|
|
611
|
+
className: {
|
|
612
|
+
readonly type: "text";
|
|
613
|
+
readonly label: "Class Name";
|
|
614
|
+
readonly ai: {
|
|
615
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
style: {
|
|
619
|
+
readonly type: "object";
|
|
620
|
+
readonly label: "Style";
|
|
621
|
+
readonly objectFields: {};
|
|
622
|
+
readonly ai: {
|
|
623
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
624
|
+
};
|
|
625
|
+
};
|
|
626
|
+
css: {
|
|
627
|
+
readonly type: "textarea";
|
|
628
|
+
readonly label: "Custom CSS";
|
|
629
|
+
readonly ai: {
|
|
630
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
631
|
+
};
|
|
632
|
+
};
|
|
567
633
|
sectionStyle: {
|
|
568
634
|
readonly type: "select";
|
|
569
635
|
readonly label: "Section Style";
|
|
@@ -657,6 +723,28 @@ export declare const ctaStylesField: {
|
|
|
657
723
|
type: "object";
|
|
658
724
|
label: string;
|
|
659
725
|
objectFields: {
|
|
726
|
+
className: {
|
|
727
|
+
readonly type: "text";
|
|
728
|
+
readonly label: "Class Name";
|
|
729
|
+
readonly ai: {
|
|
730
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
style: {
|
|
734
|
+
readonly type: "object";
|
|
735
|
+
readonly label: "Style";
|
|
736
|
+
readonly objectFields: {};
|
|
737
|
+
readonly ai: {
|
|
738
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
css: {
|
|
742
|
+
readonly type: "textarea";
|
|
743
|
+
readonly label: "Custom CSS";
|
|
744
|
+
readonly ai: {
|
|
745
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
746
|
+
};
|
|
747
|
+
};
|
|
660
748
|
sectionStyle: {
|
|
661
749
|
readonly type: "select";
|
|
662
750
|
readonly label: "Section Style";
|
|
@@ -750,6 +838,28 @@ export declare const featureStylesField: {
|
|
|
750
838
|
type: "object";
|
|
751
839
|
label: string;
|
|
752
840
|
objectFields: {
|
|
841
|
+
className: {
|
|
842
|
+
readonly type: "text";
|
|
843
|
+
readonly label: "Class Name";
|
|
844
|
+
readonly ai: {
|
|
845
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
style: {
|
|
849
|
+
readonly type: "object";
|
|
850
|
+
readonly label: "Style";
|
|
851
|
+
readonly objectFields: {};
|
|
852
|
+
readonly ai: {
|
|
853
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
css: {
|
|
857
|
+
readonly type: "textarea";
|
|
858
|
+
readonly label: "Custom CSS";
|
|
859
|
+
readonly ai: {
|
|
860
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
861
|
+
};
|
|
862
|
+
};
|
|
753
863
|
sectionStyle: {
|
|
754
864
|
readonly type: "select";
|
|
755
865
|
readonly label: "Section Style";
|
|
@@ -843,6 +953,28 @@ export declare const faqStylesField: {
|
|
|
843
953
|
type: "object";
|
|
844
954
|
label: string;
|
|
845
955
|
objectFields: {
|
|
956
|
+
className: {
|
|
957
|
+
readonly type: "text";
|
|
958
|
+
readonly label: "Class Name";
|
|
959
|
+
readonly ai: {
|
|
960
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
style: {
|
|
964
|
+
readonly type: "object";
|
|
965
|
+
readonly label: "Style";
|
|
966
|
+
readonly objectFields: {};
|
|
967
|
+
readonly ai: {
|
|
968
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
css: {
|
|
972
|
+
readonly type: "textarea";
|
|
973
|
+
readonly label: "Custom CSS";
|
|
974
|
+
readonly ai: {
|
|
975
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
976
|
+
};
|
|
977
|
+
};
|
|
846
978
|
sectionStyle: {
|
|
847
979
|
readonly type: "select";
|
|
848
980
|
readonly label: "Section Style";
|
|
@@ -936,6 +1068,28 @@ export declare const galleryStylesField: {
|
|
|
936
1068
|
type: "object";
|
|
937
1069
|
label: string;
|
|
938
1070
|
objectFields: {
|
|
1071
|
+
className: {
|
|
1072
|
+
readonly type: "text";
|
|
1073
|
+
readonly label: "Class Name";
|
|
1074
|
+
readonly ai: {
|
|
1075
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
style: {
|
|
1079
|
+
readonly type: "object";
|
|
1080
|
+
readonly label: "Style";
|
|
1081
|
+
readonly objectFields: {};
|
|
1082
|
+
readonly ai: {
|
|
1083
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1084
|
+
};
|
|
1085
|
+
};
|
|
1086
|
+
css: {
|
|
1087
|
+
readonly type: "textarea";
|
|
1088
|
+
readonly label: "Custom CSS";
|
|
1089
|
+
readonly ai: {
|
|
1090
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
939
1093
|
sectionStyle: {
|
|
940
1094
|
readonly type: "select";
|
|
941
1095
|
readonly label: "Section Style";
|
|
@@ -1029,6 +1183,28 @@ export declare const testimonialStylesField: {
|
|
|
1029
1183
|
type: "object";
|
|
1030
1184
|
label: string;
|
|
1031
1185
|
objectFields: {
|
|
1186
|
+
className: {
|
|
1187
|
+
readonly type: "text";
|
|
1188
|
+
readonly label: "Class Name";
|
|
1189
|
+
readonly ai: {
|
|
1190
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1191
|
+
};
|
|
1192
|
+
};
|
|
1193
|
+
style: {
|
|
1194
|
+
readonly type: "object";
|
|
1195
|
+
readonly label: "Style";
|
|
1196
|
+
readonly objectFields: {};
|
|
1197
|
+
readonly ai: {
|
|
1198
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
css: {
|
|
1202
|
+
readonly type: "textarea";
|
|
1203
|
+
readonly label: "Custom CSS";
|
|
1204
|
+
readonly ai: {
|
|
1205
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1032
1208
|
sectionStyle: {
|
|
1033
1209
|
readonly type: "select";
|
|
1034
1210
|
readonly label: "Section Style";
|
|
@@ -1122,6 +1298,28 @@ export declare const showcaseStylesField: {
|
|
|
1122
1298
|
type: "object";
|
|
1123
1299
|
label: string;
|
|
1124
1300
|
objectFields: {
|
|
1301
|
+
className: {
|
|
1302
|
+
readonly type: "text";
|
|
1303
|
+
readonly label: "Class Name";
|
|
1304
|
+
readonly ai: {
|
|
1305
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1306
|
+
};
|
|
1307
|
+
};
|
|
1308
|
+
style: {
|
|
1309
|
+
readonly type: "object";
|
|
1310
|
+
readonly label: "Style";
|
|
1311
|
+
readonly objectFields: {};
|
|
1312
|
+
readonly ai: {
|
|
1313
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
css: {
|
|
1317
|
+
readonly type: "textarea";
|
|
1318
|
+
readonly label: "Custom CSS";
|
|
1319
|
+
readonly ai: {
|
|
1320
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1125
1323
|
sectionStyle: {
|
|
1126
1324
|
readonly type: "select";
|
|
1127
1325
|
readonly label: "Section Style";
|
|
@@ -1215,6 +1413,28 @@ export declare const textStylesField: {
|
|
|
1215
1413
|
type: "object";
|
|
1216
1414
|
label: string;
|
|
1217
1415
|
objectFields: {
|
|
1416
|
+
className: {
|
|
1417
|
+
readonly type: "text";
|
|
1418
|
+
readonly label: "Class Name";
|
|
1419
|
+
readonly ai: {
|
|
1420
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
style: {
|
|
1424
|
+
readonly type: "object";
|
|
1425
|
+
readonly label: "Style";
|
|
1426
|
+
readonly objectFields: {};
|
|
1427
|
+
readonly ai: {
|
|
1428
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
css: {
|
|
1432
|
+
readonly type: "textarea";
|
|
1433
|
+
readonly label: "Custom CSS";
|
|
1434
|
+
readonly ai: {
|
|
1435
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1436
|
+
};
|
|
1437
|
+
};
|
|
1218
1438
|
sectionStyle: {
|
|
1219
1439
|
readonly type: "select";
|
|
1220
1440
|
readonly label: "Section Style";
|
|
@@ -1308,6 +1528,28 @@ export declare const contactStylesField: {
|
|
|
1308
1528
|
type: "object";
|
|
1309
1529
|
label: string;
|
|
1310
1530
|
objectFields: {
|
|
1531
|
+
className: {
|
|
1532
|
+
readonly type: "text";
|
|
1533
|
+
readonly label: "Class Name";
|
|
1534
|
+
readonly ai: {
|
|
1535
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
style: {
|
|
1539
|
+
readonly type: "object";
|
|
1540
|
+
readonly label: "Style";
|
|
1541
|
+
readonly objectFields: {};
|
|
1542
|
+
readonly ai: {
|
|
1543
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1544
|
+
};
|
|
1545
|
+
};
|
|
1546
|
+
css: {
|
|
1547
|
+
readonly type: "textarea";
|
|
1548
|
+
readonly label: "Custom CSS";
|
|
1549
|
+
readonly ai: {
|
|
1550
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1311
1553
|
sectionStyle: {
|
|
1312
1554
|
readonly type: "select";
|
|
1313
1555
|
readonly label: "Section Style";
|
|
@@ -1399,6 +1641,28 @@ export declare const locationStylesField: {
|
|
|
1399
1641
|
type: "object";
|
|
1400
1642
|
label: string;
|
|
1401
1643
|
objectFields: {
|
|
1644
|
+
className: {
|
|
1645
|
+
readonly type: "text";
|
|
1646
|
+
readonly label: "Class Name";
|
|
1647
|
+
readonly ai: {
|
|
1648
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
style: {
|
|
1652
|
+
readonly type: "object";
|
|
1653
|
+
readonly label: "Style";
|
|
1654
|
+
readonly objectFields: {};
|
|
1655
|
+
readonly ai: {
|
|
1656
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
css: {
|
|
1660
|
+
readonly type: "textarea";
|
|
1661
|
+
readonly label: "Custom CSS";
|
|
1662
|
+
readonly ai: {
|
|
1663
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1664
|
+
};
|
|
1665
|
+
};
|
|
1402
1666
|
sectionStyle: {
|
|
1403
1667
|
readonly type: "select";
|
|
1404
1668
|
readonly label: "Section Style";
|
|
@@ -1494,6 +1758,28 @@ export declare const footerStylesField: {
|
|
|
1494
1758
|
type: "object";
|
|
1495
1759
|
label: string;
|
|
1496
1760
|
objectFields: {
|
|
1761
|
+
className: {
|
|
1762
|
+
readonly type: "text";
|
|
1763
|
+
readonly label: "Class Name";
|
|
1764
|
+
readonly ai: {
|
|
1765
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1766
|
+
};
|
|
1767
|
+
};
|
|
1768
|
+
style: {
|
|
1769
|
+
readonly type: "object";
|
|
1770
|
+
readonly label: "Style";
|
|
1771
|
+
readonly objectFields: {};
|
|
1772
|
+
readonly ai: {
|
|
1773
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
css: {
|
|
1777
|
+
readonly type: "textarea";
|
|
1778
|
+
readonly label: "Custom CSS";
|
|
1779
|
+
readonly ai: {
|
|
1780
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1781
|
+
};
|
|
1782
|
+
};
|
|
1497
1783
|
sectionStyle: {
|
|
1498
1784
|
readonly type: "select";
|
|
1499
1785
|
readonly label: "Section Style";
|
|
@@ -1584,6 +1870,28 @@ export declare const headerStylesField: {
|
|
|
1584
1870
|
type: "object";
|
|
1585
1871
|
label: string;
|
|
1586
1872
|
objectFields: {
|
|
1873
|
+
className: {
|
|
1874
|
+
readonly type: "text";
|
|
1875
|
+
readonly label: "Class Name";
|
|
1876
|
+
readonly ai: {
|
|
1877
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
style: {
|
|
1881
|
+
readonly type: "object";
|
|
1882
|
+
readonly label: "Style";
|
|
1883
|
+
readonly objectFields: {};
|
|
1884
|
+
readonly ai: {
|
|
1885
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
css: {
|
|
1889
|
+
readonly type: "textarea";
|
|
1890
|
+
readonly label: "Custom CSS";
|
|
1891
|
+
readonly ai: {
|
|
1892
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
1893
|
+
};
|
|
1894
|
+
};
|
|
1587
1895
|
sectionStyle: {
|
|
1588
1896
|
readonly type: "select";
|
|
1589
1897
|
readonly label: "Section Style";
|
|
@@ -1674,6 +1982,28 @@ export declare const metricsStylesField: {
|
|
|
1674
1982
|
type: "object";
|
|
1675
1983
|
label: string;
|
|
1676
1984
|
objectFields: {
|
|
1985
|
+
className: {
|
|
1986
|
+
readonly type: "text";
|
|
1987
|
+
readonly label: "Class Name";
|
|
1988
|
+
readonly ai: {
|
|
1989
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
1990
|
+
};
|
|
1991
|
+
};
|
|
1992
|
+
style: {
|
|
1993
|
+
readonly type: "object";
|
|
1994
|
+
readonly label: "Style";
|
|
1995
|
+
readonly objectFields: {};
|
|
1996
|
+
readonly ai: {
|
|
1997
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
1998
|
+
};
|
|
1999
|
+
};
|
|
2000
|
+
css: {
|
|
2001
|
+
readonly type: "textarea";
|
|
2002
|
+
readonly label: "Custom CSS";
|
|
2003
|
+
readonly ai: {
|
|
2004
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
1677
2007
|
sectionStyle: {
|
|
1678
2008
|
readonly type: "select";
|
|
1679
2009
|
readonly label: "Section Style";
|
|
@@ -1764,6 +2094,28 @@ export declare const pricingStylesField: {
|
|
|
1764
2094
|
type: "object";
|
|
1765
2095
|
label: string;
|
|
1766
2096
|
objectFields: {
|
|
2097
|
+
className: {
|
|
2098
|
+
readonly type: "text";
|
|
2099
|
+
readonly label: "Class Name";
|
|
2100
|
+
readonly ai: {
|
|
2101
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
2104
|
+
style: {
|
|
2105
|
+
readonly type: "object";
|
|
2106
|
+
readonly label: "Style";
|
|
2107
|
+
readonly objectFields: {};
|
|
2108
|
+
readonly ai: {
|
|
2109
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
css: {
|
|
2113
|
+
readonly type: "textarea";
|
|
2114
|
+
readonly label: "Custom CSS";
|
|
2115
|
+
readonly ai: {
|
|
2116
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
2117
|
+
};
|
|
2118
|
+
};
|
|
1767
2119
|
sectionStyle: {
|
|
1768
2120
|
readonly type: "select";
|
|
1769
2121
|
readonly label: "Section Style";
|
|
@@ -1854,6 +2206,28 @@ export declare const teamStylesField: {
|
|
|
1854
2206
|
type: "object";
|
|
1855
2207
|
label: string;
|
|
1856
2208
|
objectFields: {
|
|
2209
|
+
className: {
|
|
2210
|
+
readonly type: "text";
|
|
2211
|
+
readonly label: "Class Name";
|
|
2212
|
+
readonly ai: {
|
|
2213
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
style: {
|
|
2217
|
+
readonly type: "object";
|
|
2218
|
+
readonly label: "Style";
|
|
2219
|
+
readonly objectFields: {};
|
|
2220
|
+
readonly ai: {
|
|
2221
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
css: {
|
|
2225
|
+
readonly type: "textarea";
|
|
2226
|
+
readonly label: "Custom CSS";
|
|
2227
|
+
readonly ai: {
|
|
2228
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
2229
|
+
};
|
|
2230
|
+
};
|
|
1857
2231
|
sectionStyle: {
|
|
1858
2232
|
readonly type: "select";
|
|
1859
2233
|
readonly label: "Section Style";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sectionWrapperFields } from "../section-wrapper.js";
|
|
1
2
|
const paddingLevel = {
|
|
2
3
|
type: "select",
|
|
3
4
|
options: [
|
|
@@ -72,7 +73,8 @@ function createStylesField(extraFields) {
|
|
|
72
73
|
label: "Styles",
|
|
73
74
|
objectFields: {
|
|
74
75
|
...sectionBaseStyleFields,
|
|
75
|
-
...extraFields
|
|
76
|
+
...extraFields,
|
|
77
|
+
...sectionWrapperFields
|
|
76
78
|
}
|
|
77
79
|
};
|
|
78
80
|
}
|
|
@@ -4,7 +4,7 @@ import { useRef, useEffect, useCallback } from "react";
|
|
|
4
4
|
import { registerOverlayPortal } from "@puckeditor/core";
|
|
5
5
|
import { usePuckDispatch, usePuckAppState } from "./hooks.js";
|
|
6
6
|
import { Pencil } from "lucide-react";
|
|
7
|
-
import { useEditorContext } from "
|
|
7
|
+
import { useEditorContext } from "./context/editor-context.js";
|
|
8
8
|
import set from "../../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
|
|
9
9
|
const BLOCK_LEVEL_TYPES = /* @__PURE__ */ new Set(["image"]);
|
|
10
10
|
function getComponentIdFromDOM(el) {
|
|
@@ -68,7 +68,18 @@ function withEditable(Component, config) {
|
|
|
68
68
|
[props, handleSave]
|
|
69
69
|
);
|
|
70
70
|
if (isBlock) {
|
|
71
|
-
|
|
71
|
+
const imgClass = String(props.className || "");
|
|
72
|
+
const isAbsoluteChild = /\babsolute\b/.test(imgClass);
|
|
73
|
+
const hasExplicitSize = /\bsize-\d/.test(imgClass) || /\b[wh]-\d+\b/.test(imgClass) && !/\b[wh]-full\b/.test(imgClass);
|
|
74
|
+
let wrapperClassName;
|
|
75
|
+
if (isAbsoluteChild) {
|
|
76
|
+
wrapperClassName = "group block h-full w-full";
|
|
77
|
+
} else if (hasExplicitSize) {
|
|
78
|
+
wrapperClassName = "group relative inline-block";
|
|
79
|
+
} else {
|
|
80
|
+
wrapperClassName = "group relative block";
|
|
81
|
+
}
|
|
82
|
+
return /* @__PURE__ */ jsxs("span", { ref: wrapperRef, className: wrapperClassName, children: [
|
|
72
83
|
/* @__PURE__ */ jsx(Component, { ...props }),
|
|
73
84
|
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-60 flex items-center justify-center", children: /* @__PURE__ */ jsx(
|
|
74
85
|
"span",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { memo, useCallback } from "react";
|
|
4
4
|
import { Input } from "../../shadcn/input.js";
|
|
5
5
|
import { Label } from "../../shadcn/label.js";
|
|
6
6
|
import { Tabs, TabsList, TabsTrigger } from "../../shadcn/tabs.js";
|
|
7
7
|
import { LinkIcon, XIcon, GlobeIcon } from "lucide-react";
|
|
8
|
-
import { useEditorContext } from "../editor-context.js";
|
|
8
|
+
import { useEditorContext } from "../core/context/editor-context.js";
|
|
9
9
|
const ACTION_TYPE_OPTIONS = [
|
|
10
10
|
{ label: "Page Link", value: "page" },
|
|
11
11
|
{ label: "External Link", value: "external" },
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useCallback } from "react";
|
|
4
4
|
import { X, Loader2, UploadCloud, ImageIcon } from "lucide-react";
|
|
5
|
-
import { cn } from "
|
|
6
|
-
import { Button } from "
|
|
7
|
-
import { Input } from "
|
|
8
|
-
import useUpload from "
|
|
5
|
+
import { cn } from "../../../utils/css-utils.js";
|
|
6
|
+
import { Button } from "../../shadcn/button.js";
|
|
7
|
+
import { Input } from "../../shadcn/input.js";
|
|
8
|
+
import useUpload from "../use-upload.js";
|
|
9
9
|
function ImageUploadField({
|
|
10
10
|
name,
|
|
11
11
|
value,
|
|
@@ -4,7 +4,7 @@ import { memo, useState, useRef, useEffect, useCallback } from "react";
|
|
|
4
4
|
import { Input } from "../../shadcn/input.js";
|
|
5
5
|
import { Label } from "../../shadcn/label.js";
|
|
6
6
|
import { Loader2, Search, X, MapPin } from "lucide-react";
|
|
7
|
-
import { useEditorContext } from "../editor-context.js";
|
|
7
|
+
import { useEditorContext } from "../core/context/editor-context.js";
|
|
8
8
|
let googleLoadPromise = null;
|
|
9
9
|
function loadGooglePlaces(apiKey) {
|
|
10
10
|
var _a, _b;
|
|
@@ -6,6 +6,8 @@ export { findComponentById, getRandomAdjective } from "./core/utils";
|
|
|
6
6
|
export { ErrorBoundary } from "./error-boundary";
|
|
7
7
|
export { InlineEditable } from "./inline-editable";
|
|
8
8
|
export { usePuckDispatch, usePuckAppState, usePuckHistory, usePuckConfig, usePuckGetSelectorForId, type PuckComponentInfo, } from "./core/hooks";
|
|
9
|
-
export {
|
|
9
|
+
export { SectionWrapper, type SectionWrapperProps } from "./section-wrapper";
|
|
10
|
+
export { EditorContextProvider, useEditorContext } from "./core/context/editor-context";
|
|
11
|
+
export { SectionIdProvider, useSectionId } from "./core/context/section-id-context";
|
|
10
12
|
export { default as useUpload, type UploadFileItem, type UploadStatus, type UseUploadOptions } from "./use-upload";
|
|
11
13
|
export { icon, action, actionDefaults, button, buttons, badge, image, images, padding, paddingDefaults, paddingLevel, heading, description, features, contentFields, contentFieldsWithFeatures, card, cards, field, fieldDefaults, form, formDefaults, getPlaceholderImageUrl, image16x9Placeholder, image1x1Placeholder, image9x16Placeholder, sectionStyle, sectionOverlay, backgroundColor, backgroundImage, } from "./core/fields";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createElement, useRef, useEffect, useCallback } from "react";
|
|
4
4
|
import { registerOverlayPortal } from "@puckeditor/core";
|
|
5
|
-
import { useEditorContext } from "./editor-context.js";
|
|
5
|
+
import { useEditorContext } from "./core/context/editor-context.js";
|
|
6
6
|
import { usePuckDispatch } from "./core/hooks.js";
|
|
7
7
|
import set from "../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/set.js";
|
|
8
8
|
import { findComponentById } from "./core/utils.js";
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
* SectionWrapper - 通用 Section 样式容器
|
|
4
|
-
*
|
|
5
|
-
* 包裹任意 section 组件,提供三层样式自定义能力:
|
|
6
|
-
*
|
|
7
|
-
* 1. className - Tailwind 快捷样式
|
|
8
|
-
* 2. style - 内联样式,适用于动态值、CSS 变量、backgroundImage 等
|
|
9
|
-
* 3. css - 原生 CSS 字符串,支持选择器、伪类、嵌套规则
|
|
10
|
-
* 用 & 代表当前 section,会自动替换为 scoped ID,样式不会污染其他区块
|
|
11
|
-
*/
|
|
12
|
-
interface SectionWrapperProps {
|
|
2
|
+
export interface SectionWrapperProps extends React.HTMLAttributes<HTMLElement> {
|
|
13
3
|
className?: string;
|
|
14
4
|
style?: CSSProperties;
|
|
15
5
|
css?: string;
|
|
16
6
|
children: ReactNode;
|
|
17
7
|
}
|
|
18
|
-
|
|
19
|
-
export {
|
|
8
|
+
/** Puck field definitions for SectionWrapper styling props */
|
|
9
|
+
export declare const sectionWrapperFields: {
|
|
10
|
+
readonly className: {
|
|
11
|
+
readonly type: "text";
|
|
12
|
+
readonly label: "Class Name";
|
|
13
|
+
readonly ai: {
|
|
14
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly style: {
|
|
18
|
+
readonly type: "object";
|
|
19
|
+
readonly label: "Style";
|
|
20
|
+
readonly objectFields: {};
|
|
21
|
+
readonly ai: {
|
|
22
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly css: {
|
|
26
|
+
readonly type: "textarea";
|
|
27
|
+
readonly label: "Custom CSS";
|
|
28
|
+
readonly ai: {
|
|
29
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const SectionWrapper: import("react").ForwardRefExoticComponent<SectionWrapperProps & import("react").RefAttributes<HTMLElement>>;
|