dune-react 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/puck-base/core/fields.js +1 -25
- package/dist/components/puck-base/core/styles.js +3 -6
- package/dist/components/puck-base/fields/location-field.js +1 -4
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +111 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.d.ts +68 -0
- package/dist/components/puck-block/banner-sections/css-marquee-banner/index.js +39 -0
- package/dist/components/puck-block/banner-sections/dismissible-banner/dismissible-banner.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +232 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +78 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.d.ts +53 -0
- package/dist/components/puck-block/banner-sections/dual-row-marquee/index.js +31 -0
- package/dist/components/puck-block/banner-sections/index.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/props.d.ts +117 -20
- package/dist/components/puck-block/banner-sections/props.js +21 -0
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/index.d.ts +19 -0
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/index.js +20 -0
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +40 -0
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/index.d.ts +19 -0
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/index.js +20 -0
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +49 -0
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/centered-form/centered-form.js +173 -0
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +105 -0
- package/dist/components/puck-block/contact-sections/centered-form/index.js +27 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +106 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.d.ts +90 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.js +37 -0
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +196 -0
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +105 -0
- package/dist/components/puck-block/contact-sections/contact-modal/index.js +26 -0
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +123 -0
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +114 -0
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +29 -0
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +190 -0
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +112 -0
- package/dist/components/puck-block/contact-sections/header-form-cards/index.js +36 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +78 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +66 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +36 -0
- package/dist/components/puck-block/contact-sections/index.d.ts +10 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +66 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +36 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +77 -0
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +143 -0
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +40 -0
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/location-cards-grid/location-cards-grid.js +108 -0
- package/dist/components/puck-block/contact-sections/props.d.ts +150 -63
- package/dist/components/puck-block/contact-sections/props.js +70 -0
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +103 -0
- package/dist/components/puck-block/contact-sections/split-info-form/index.js +29 -0
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +171 -0
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +75 -0
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +39 -0
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +125 -0
- package/dist/components/puck-block/contact-sections/use-contact-form.d.ts +20 -0
- package/dist/components/puck-block/contact-sections/use-contact-form.js +41 -0
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.d.ts +13 -0
- package/dist/components/puck-block/cta-sections/feature-card-cta/feature-card-cta.js +54 -0
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +133 -0
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.js +34 -0
- 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 +61 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.d.ts +15 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +172 -0
- package/dist/components/puck-block/cta-sections/props.d.ts +139 -45
- package/dist/components/puck-block/cta-sections/props.js +21 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +207 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.d.ts +4 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +286 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +8 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/dual-column-accordion-faq.d.ts +4 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/dual-column-accordion-faq.js +80 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +116 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.js +36 -0
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.d.ts +12 -0
- package/dist/components/puck-block/faq-sections/icon-card-faq/icon-card-faq.js +76 -0
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +108 -0
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.js +30 -0
- package/dist/components/puck-block/faq-sections/index.d.ts +6 -0
- package/dist/components/puck-block/faq-sections/props.d.ts +80 -26
- package/dist/components/puck-block/faq-sections/props.js +38 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +138 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.js +38 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.d.ts +4 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js +80 -0
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +141 -0
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.js +38 -0
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.d.ts +4 -0
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +68 -0
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +108 -0
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.js +34 -0
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.d.ts +4 -0
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.js +59 -0
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +91 -0
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.js +26 -0
- package/dist/components/puck-block/faq-sections/two-column-static-faq/two-column-static-faq.d.ts +4 -0
- package/dist/components/puck-block/faq-sections/two-column-static-faq/two-column-static-faq.js +43 -0
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.d.ts +14 -0
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +106 -0
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +224 -0
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.js +35 -0
- package/dist/components/puck-block/feature-sections/feature-list-split/component.d.ts +14 -0
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +103 -0
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +224 -0
- package/dist/components/puck-block/feature-sections/feature-list-split/index.js +35 -0
- package/dist/components/puck-block/feature-sections/index.d.ts +5 -0
- package/dist/components/puck-block/feature-sections/props.d.ts +145 -46
- package/dist/components/puck-block/feature-sections/props.js +62 -0
- package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +16 -0
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +121 -0
- package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +43 -0
- package/dist/components/puck-block/feature-sections/tab-feature/index.js +25 -0
- package/dist/components/puck-block/feature-sections/text-media-split/component.d.ts +4 -0
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +90 -0
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +187 -0
- package/dist/components/puck-block/feature-sections/text-media-split/index.js +32 -0
- package/dist/components/puck-block/feature-sections/text-only-section/component.d.ts +14 -0
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +90 -0
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +187 -0
- package/dist/components/puck-block/feature-sections/text-only-section/index.js +40 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +40 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +23 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +8 -0
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/compact-newsletter-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +101 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +60 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +51 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +9 -0
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +51 -0
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +127 -0
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +11 -0
- package/dist/components/puck-block/footer-sections/index.d.ts +3 -0
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +108 -0
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/links-newsletter-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +116 -0
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/newsletter-links-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +119 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/newsletter-top-links-footer.d.ts +4 -0
- package/dist/components/puck-block/footer-sections/props.d.ts +89 -26
- package/dist/components/puck-block/footer-sections/props.js +21 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/asymmetric-grid.js +75 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +53 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +25 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +130 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +104 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +39 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +173 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +101 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +30 -0
- package/dist/components/puck-block/gallery-sections/index.d.ts +11 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +61 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +33 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +187 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +46 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +25 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +65 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +211 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +42 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +156 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +176 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +39 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +120 -0
- package/dist/components/puck-block/gallery-sections/props.d.ts +231 -24
- package/dist/components/puck-block/gallery-sections/props.js +117 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +36 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +17 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +56 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +76 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +40 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +240 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +46 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +25 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.js +98 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +57 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +26 -0
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.js +65 -0
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.d.ts +4 -0
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +32 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +114 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +17 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.d.ts +4 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +34 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +114 -0
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +13 -0
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.d.ts +4 -0
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +46 -0
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +107 -0
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +14 -0
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.d.ts +4 -0
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +36 -0
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +116 -0
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +14 -0
- package/dist/components/puck-block/header-sections/index.d.ts +6 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +143 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +14 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.d.ts +4 -0
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +35 -0
- package/dist/components/puck-block/header-sections/props.d.ts +98 -38
- package/dist/components/puck-block/header-sections/props.js +45 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +134 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +19 -0
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.d.ts +4 -0
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +59 -0
- package/dist/components/puck-block/hero-sections/carousel-hero/component.d.ts +9 -0
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +86 -0
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +121 -0
- package/dist/components/puck-block/hero-sections/carousel-hero/index.js +21 -0
- package/dist/components/puck-block/hero-sections/centered-hero/centered-hero.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +190 -0
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.d.ts +9 -0
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +98 -0
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +132 -0
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.js +20 -0
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +84 -0
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.js +19 -0
- package/dist/components/puck-block/hero-sections/fullscreen-hero/fullscreen-hero.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +239 -0
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +77 -0
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +110 -0
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.js +20 -0
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +193 -0
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +135 -0
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.js +27 -0
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +79 -0
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.js +19 -0
- package/dist/components/puck-block/hero-sections/index.d.ts +20 -0
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +129 -0
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.js +36 -0
- package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.d.ts +12 -0
- package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +71 -0
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +213 -0
- package/dist/components/puck-block/hero-sections/media-text-hero/media-text-hero.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.d.ts +9 -0
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +144 -0
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +132 -0
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.js +20 -0
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +133 -0
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +36 -0
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +84 -0
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +173 -0
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.js +31 -0
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.d.ts +10 -0
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +219 -0
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +116 -0
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.js +19 -0
- package/dist/components/puck-block/hero-sections/props.d.ts +201 -56
- package/dist/components/puck-block/hero-sections/props.js +73 -0
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +100 -0
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.js +19 -0
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +88 -0
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +110 -0
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.js +20 -0
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +71 -0
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +130 -0
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.js +28 -0
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +233 -0
- package/dist/components/puck-block/hero-sections/split-hero/split-hero.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +216 -0
- package/dist/components/puck-block/hero-sections/stacked-hero/stacked-hero.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +58 -0
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +107 -0
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +19 -0
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.d.ts +8 -0
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +199 -0
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +136 -0
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.js +29 -0
- package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +24 -0
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +147 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +59 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +43 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.d.ts +10 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +122 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +152 -0
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.js +29 -0
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +77 -0
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.js +19 -0
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +111 -0
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.js +19 -0
- package/dist/components/puck-block/index.d.ts +15 -57
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.d.ts +4 -0
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +115 -0
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +89 -0
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +37 -0
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.d.ts +4 -0
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +104 -0
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +171 -0
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.js +39 -0
- package/dist/components/puck-block/metrics-sections/index.d.ts +5 -0
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +162 -0
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.js +39 -0
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.d.ts +13 -0
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +113 -0
- package/dist/components/puck-block/metrics-sections/props.d.ts +119 -38
- package/dist/components/puck-block/metrics-sections/props.js +55 -0
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +171 -0
- package/dist/components/puck-block/metrics-sections/split-stats/index.js +39 -0
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.d.ts +4 -0
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +98 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +91 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +45 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +19 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +137 -0
- package/dist/components/puck-block/pricing-sections/index.d.ts +6 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.d.ts +15 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/component.js +69 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.d.ts +79 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.js +38 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.d.ts +31 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +127 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +89 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +42 -0
- package/dist/components/puck-block/pricing-sections/props.d.ts +86 -44
- package/dist/components/puck-block/pricing-sections/props.js +47 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.d.ts +17 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/component.js +142 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +66 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +37 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +21 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +79 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +51 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +33 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.d.ts +24 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +89 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.d.ts +77 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.js +40 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.d.ts +23 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +81 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.d.ts +66 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.js +39 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +13 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +97 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +147 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.js +36 -0
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +13 -0
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +80 -0
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +147 -0
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.js +36 -0
- package/dist/components/puck-block/showcase-sections/index.d.ts +6 -0
- package/dist/components/puck-block/showcase-sections/props.d.ts +68 -46
- package/dist/components/puck-block/showcase-sections/props.js +29 -0
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.d.ts +15 -0
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +98 -0
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +242 -0
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.js +39 -0
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.d.ts +15 -0
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +96 -0
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +242 -0
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.js +39 -0
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +24 -0
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +138 -0
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +161 -0
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +41 -0
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +15 -0
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +117 -0
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +242 -0
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.js +39 -0
- package/dist/components/puck-block/team-sections/index.d.ts +5 -0
- package/dist/components/puck-block/team-sections/props.d.ts +96 -37
- package/dist/components/puck-block/team-sections/props.js +54 -0
- package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-carousel/component.js +102 -0
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +125 -0
- package/dist/components/puck-block/team-sections/team-carousel/index.js +43 -0
- package/dist/components/puck-block/team-sections/team-grid/component.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-grid/component.js +65 -0
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +161 -0
- package/dist/components/puck-block/team-sections/team-grid/index.js +46 -0
- package/dist/components/puck-block/team-sections/team-inline-card/component.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-inline-card/component.js +66 -0
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +136 -0
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +44 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.d.ts +20 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/component.js +61 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.d.ts +56 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.js +33 -0
- package/dist/components/puck-block/team-sections/team-two-column/component.d.ts +20 -0
- package/dist/components/puck-block/team-sections/team-two-column/component.js +64 -0
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +133 -0
- package/dist/components/puck-block/team-sections/team-two-column/index.js +37 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +33 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +178 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.d.ts +62 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.js +38 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +14 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +69 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.d.ts +72 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.js +29 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.d.ts +18 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +114 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.d.ts +81 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.js +36 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +13 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +51 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +58 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.js +27 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.d.ts +17 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +98 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.d.ts +69 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/index.js +34 -0
- package/dist/components/puck-block/testimonial-sections/index.d.ts +11 -0
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.d.ts +16 -0
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/component.js +65 -0
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/index.d.ts +42 -0
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/index.js +26 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +16 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.js +71 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.d.ts +59 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.js +34 -0
- package/dist/components/puck-block/testimonial-sections/props.d.ts +206 -32
- package/dist/components/puck-block/testimonial-sections/props.js +126 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +16 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.js +86 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +138 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.js +36 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +100 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.d.ts +47 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.js +30 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.d.ts +18 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +90 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.d.ts +97 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.js +36 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +17 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +118 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.d.ts +111 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.js +37 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/component.d.ts +17 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/component.js +61 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +63 -0
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +36 -0
- package/dist/components/puck-block/text-sections/blog-article/component.d.ts +30 -0
- package/dist/components/puck-block/text-sections/blog-article/component.js +91 -0
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +117 -0
- package/dist/components/puck-block/text-sections/blog-article/index.js +56 -0
- package/dist/components/puck-block/text-sections/index.d.ts +5 -0
- package/dist/components/puck-block/text-sections/props.d.ts +180 -55
- package/dist/components/puck-block/text-sections/props.js +67 -0
- package/dist/components/puck-block/text-sections/prose-content/component.d.ts +14 -0
- package/dist/components/puck-block/text-sections/prose-content/component.js +93 -0
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +119 -0
- package/dist/components/puck-block/text-sections/prose-content/index.js +37 -0
- package/dist/components/puck-block/text-sections/prose-sidebar/component.d.ts +27 -0
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +159 -0
- package/dist/components/puck-block/text-sections/side-media-content/component.d.ts +8 -0
- package/dist/components/puck-block/text-sections/side-media-content/component.js +81 -0
- package/dist/components/puck-block/text-sections/side-media-content/index.d.ts +69 -0
- package/dist/components/puck-block/text-sections/side-media-content/index.js +27 -0
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.d.ts +9 -0
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +44 -0
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.d.ts +55 -0
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/index.js +25 -0
- package/dist/components/puck-block/text-sections/text-header/component.d.ts +9 -0
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +242 -0
- package/dist/components/puck-core/core/fields.d.ts +19 -0
- package/dist/components/puck-core/core/hooks.d.ts +19 -0
- package/dist/components/puck-core/core/icon-catalog.d.ts +14 -0
- package/dist/components/puck-core/core/icon-catalog.js +193 -0
- package/dist/components/puck-core/core/props/content.d.ts +224 -0
- package/dist/components/puck-core/core/props/content.js +13 -0
- package/dist/components/puck-core/core/props/form.d.ts +172 -0
- package/dist/components/puck-core/core/props/index.d.ts +271 -0
- package/dist/components/puck-core/core/props/interactive.d.ts +244 -0
- package/dist/components/puck-core/core/props/interactive.js +101 -0
- package/dist/components/puck-core/core/props/media.d.ts +51 -0
- package/dist/components/puck-core/core/props/media.js +41 -0
- package/dist/components/puck-core/core/props/section.d.ts +21 -0
- package/dist/components/puck-core/core/styles.d.ts +1942 -0
- package/dist/components/puck-core/core/types.d.ts +8 -0
- package/dist/components/puck-core/core/utils.d.ts +5 -0
- package/dist/components/puck-core/core/with-editable.d.ts +16 -0
- package/dist/components/puck-core/editor-context.d.ts +25 -0
- package/dist/components/puck-core/editor-context.js +15 -0
- package/dist/components/puck-core/error-boundary.d.ts +4 -0
- package/dist/components/puck-core/fields/action-field.d.ts +30 -0
- package/dist/components/puck-core/fields/action-field.js +265 -0
- package/dist/components/puck-core/fields/auto-field.d.ts +2 -0
- package/dist/components/puck-core/fields/color-field.d.ts +6 -0
- package/dist/components/puck-core/fields/icon-picker-field.d.ts +8 -0
- package/dist/components/puck-core/fields/icon-picker-field.js +153 -0
- package/dist/components/puck-core/fields/image-upload-field.d.ts +7 -0
- package/dist/components/puck-core/fields/index.d.ts +8 -0
- package/dist/components/puck-core/fields/location-field.d.ts +44 -0
- package/dist/components/puck-core/fields/object-field.d.ts +8 -0
- package/dist/components/puck-core/fields/radio-toggle-field.d.ts +10 -0
- package/dist/components/puck-core/fields/types.d.ts +29 -0
- package/dist/components/puck-core/fields/virtualized-select-field.d.ts +13 -0
- package/dist/components/puck-core/index.d.ts +11 -0
- package/dist/components/puck-core/inline-editable.d.ts +14 -0
- package/dist/components/puck-core/section-wrapper.d.ts +19 -0
- package/dist/components/puck-core/use-upload.d.ts +42 -0
- package/dist/components/shadcn/video-iframe.d.ts +6 -0
- package/dist/components/shadcn/video-iframe.js +33 -0
- package/dist/hooks/use-media-query.d.ts +1 -0
- package/dist/hooks/use-media-query.js +15 -0
- package/dist/index.js +216 -118
- package/dist/node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/bi/index.js +24 -0
- package/dist/node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/cg/index.js +8 -0
- package/dist/node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js +8 -0
- package/dist/node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/lib/iconBase.js +109 -0
- package/dist/node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/lib/iconContext.js +13 -0
- package/dist/node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/rx/index.js +8 -0
- package/dist/styles/relume-typography.d.ts +2 -0
- package/package.json +5 -1
- package/dist/components/puck-base/navigation-menu.js +0 -202
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.d.ts +0 -12
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.js +0 -57
- package/dist/components/puck-block/banner-sections/announcement-banner-1/index.d.ts +0 -5
- package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +0 -32
- package/dist/components/puck-block/banner-sections/marquee-1/index.d.ts +0 -5
- package/dist/components/puck-block/banner-sections/marquee-1/index.js +0 -51
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.d.ts +0 -12
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.js +0 -45
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.js +0 -169
- package/dist/components/puck-block/contact-sections/contact-us-1/index.js +0 -124
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.d.ts +0 -30
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +0 -234
- package/dist/components/puck-block/contact-sections/contact-us-2/index.d.ts +0 -5
- package/dist/components/puck-block/contact-sections/contact-us-2/index.js +0 -74
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +0 -32
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +0 -250
- package/dist/components/puck-block/contact-sections/contact-us-3/index.d.ts +0 -5
- package/dist/components/puck-block/contact-sections/contact-us-3/index.js +0 -114
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.d.ts +0 -18
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.js +0 -42
- package/dist/components/puck-block/cta-sections/banner-cta-1/index.d.ts +0 -5
- package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +0 -36
- package/dist/components/puck-block/cta-sections/cta-1/cta.d.ts +0 -12
- package/dist/components/puck-block/cta-sections/cta-1/cta.js +0 -38
- package/dist/components/puck-block/cta-sections/cta-1/index.d.ts +0 -5
- package/dist/components/puck-block/cta-sections/cta-1/index.js +0 -44
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.d.ts +0 -14
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.js +0 -65
- package/dist/components/puck-block/cta-sections/gradient-cta-1/index.d.ts +0 -5
- package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +0 -53
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.d.ts +0 -5
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +0 -30
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.d.ts +0 -13
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.js +0 -44
- package/dist/components/puck-block/cta-sections/promo-section-1/index.d.ts +0 -5
- package/dist/components/puck-block/cta-sections/promo-section-1/index.js +0 -44
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.d.ts +0 -20
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.js +0 -117
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.d.ts +0 -15
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.js +0 -58
- package/dist/components/puck-block/faq-sections/accordion-1/index.d.ts +0 -5
- package/dist/components/puck-block/faq-sections/accordion-1/index.js +0 -43
- package/dist/components/puck-block/faq-sections/faq-1/faq.d.ts +0 -17
- package/dist/components/puck-block/faq-sections/faq-1/faq.js +0 -68
- package/dist/components/puck-block/faq-sections/faq-1/index.d.ts +0 -5
- package/dist/components/puck-block/faq-sections/faq-1/index.js +0 -99
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.d.ts +0 -18
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +0 -54
- package/dist/components/puck-block/faq-sections/faq-2/index.d.ts +0 -5
- package/dist/components/puck-block/faq-sections/faq-2/index.js +0 -61
- package/dist/components/puck-block/feature-sections/bento-1/bento.d.ts +0 -12
- package/dist/components/puck-block/feature-sections/bento-1/bento.js +0 -56
- package/dist/components/puck-block/feature-sections/bento-1/index.d.ts +0 -5
- package/dist/components/puck-block/feature-sections/bento-1/index.js +0 -46
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.d.ts +0 -13
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +0 -46
- package/dist/components/puck-block/feature-sections/feature-cards-1/index.d.ts +0 -5
- package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +0 -78
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.d.ts +0 -21
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.js +0 -36
- package/dist/components/puck-block/feature-sections/feature-showcase-1/index.d.ts +0 -5
- package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +0 -56
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.d.ts +0 -19
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.js +0 -86
- package/dist/components/puck-block/feature-sections/icon-grid-1/index.d.ts +0 -5
- package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +0 -64
- package/dist/components/puck-block/feature-sections/product-features-1/index.d.ts +0 -5
- package/dist/components/puck-block/feature-sections/product-features-1/index.js +0 -86
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.d.ts +0 -27
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.js +0 -118
- package/dist/components/puck-block/footer-sections/footer-1/footer.d.ts +0 -24
- package/dist/components/puck-block/footer-sections/footer-1/footer.js +0 -58
- package/dist/components/puck-block/footer-sections/footer-1/index.d.ts +0 -5
- package/dist/components/puck-block/footer-sections/footer-1/index.js +0 -130
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.d.ts +0 -20
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.js +0 -77
- package/dist/components/puck-block/gallery-sections/gallery-1/index.d.ts +0 -5
- package/dist/components/puck-block/gallery-sections/gallery-1/index.js +0 -71
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.d.ts +0 -16
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +0 -94
- package/dist/components/puck-block/gallery-sections/gallery-2/index.d.ts +0 -5
- package/dist/components/puck-block/gallery-sections/gallery-2/index.js +0 -43
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +0 -19
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +0 -119
- package/dist/components/puck-block/gallery-sections/gallery-3/index.d.ts +0 -5
- package/dist/components/puck-block/gallery-sections/gallery-3/index.js +0 -62
- package/dist/components/puck-block/header-sections/header-1/header.d.ts +0 -38
- package/dist/components/puck-block/header-sections/header-1/header.js +0 -168
- package/dist/components/puck-block/header-sections/header-1/index.d.ts +0 -33
- package/dist/components/puck-block/header-sections/header-1/index.js +0 -210
- package/dist/components/puck-block/header-sections/sticky-nav-1/index.d.ts +0 -5
- package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +0 -30
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.d.ts +0 -14
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.js +0 -49
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.d.ts +0 -23
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +0 -128
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.d.ts +0 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +0 -50
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +0 -12
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +0 -50
- package/dist/components/puck-block/hero-sections/gradient-hero-1/index.d.ts +0 -5
- package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +0 -37
- package/dist/components/puck-block/hero-sections/hero-1/hero.d.ts +0 -23
- package/dist/components/puck-block/hero-sections/hero-1/hero.js +0 -222
- package/dist/components/puck-block/hero-sections/hero-1/index.d.ts +0 -12
- package/dist/components/puck-block/hero-sections/hero-1/index.js +0 -79
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.d.ts +0 -22
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +0 -97
- package/dist/components/puck-block/hero-sections/image-hero-1/index.d.ts +0 -5
- package/dist/components/puck-block/hero-sections/image-hero-1/index.js +0 -61
- package/dist/components/puck-block/hero-sections/split-hero-1/index.d.ts +0 -5
- package/dist/components/puck-block/hero-sections/split-hero-1/index.js +0 -34
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.d.ts +0 -14
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.js +0 -62
- package/dist/components/puck-block/hero-sections/video-hero-1/index.d.ts +0 -5
- package/dist/components/puck-block/hero-sections/video-hero-1/index.js +0 -26
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.d.ts +0 -15
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.js +0 -45
- package/dist/components/puck-block/location-sections/location-1/index.js +0 -100
- package/dist/components/puck-block/location-sections/location-1/location.js +0 -139
- package/dist/components/puck-block/location-sections/location-2/index.js +0 -124
- package/dist/components/puck-block/location-sections/location-2/location.js +0 -133
- package/dist/components/puck-block/location-sections/location-3/index.js +0 -108
- package/dist/components/puck-block/location-sections/location-3/location.js +0 -140
- package/dist/components/puck-block/metrics-sections/stats-1/index.d.ts +0 -5
- package/dist/components/puck-block/metrics-sections/stats-1/index.js +0 -129
- package/dist/components/puck-block/metrics-sections/stats-1/stats.d.ts +0 -18
- package/dist/components/puck-block/metrics-sections/stats-1/stats.js +0 -103
- package/dist/components/puck-block/metrics-sections/stats-2/index.d.ts +0 -5
- package/dist/components/puck-block/metrics-sections/stats-2/index.js +0 -74
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +0 -18
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +0 -56
- package/dist/components/puck-block/metrics-sections/stats-3/index.d.ts +0 -5
- package/dist/components/puck-block/metrics-sections/stats-3/index.js +0 -84
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +0 -18
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +0 -69
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.d.ts +0 -16
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.js +0 -58
- package/dist/components/puck-block/pricing-sections/comparison-1/index.d.ts +0 -5
- package/dist/components/puck-block/pricing-sections/comparison-1/index.js +0 -67
- package/dist/components/puck-block/pricing-sections/pricing-1/index.d.ts +0 -5
- package/dist/components/puck-block/pricing-sections/pricing-1/index.js +0 -88
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.d.ts +0 -21
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.js +0 -58
- package/dist/components/puck-block/pricing-sections/pricing-2/index.d.ts +0 -5
- package/dist/components/puck-block/pricing-sections/pricing-2/index.js +0 -147
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +0 -26
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +0 -71
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.d.ts +0 -22
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +0 -71
- package/dist/components/puck-block/showcase-sections/before-after-1/index.d.ts +0 -5
- package/dist/components/puck-block/showcase-sections/before-after-1/index.js +0 -72
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.d.ts +0 -21
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.js +0 -42
- package/dist/components/puck-block/showcase-sections/case-study-1/index.d.ts +0 -5
- package/dist/components/puck-block/showcase-sections/case-study-1/index.js +0 -36
- package/dist/components/puck-block/showcase-sections/step-by-step-1/index.d.ts +0 -5
- package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +0 -60
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.d.ts +0 -19
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.js +0 -50
- package/dist/components/puck-block/team-sections/team-grid-1/index.d.ts +0 -5
- package/dist/components/puck-block/team-sections/team-grid-1/index.js +0 -65
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.d.ts +0 -23
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.js +0 -74
- package/dist/components/puck-block/team-sections/team-grid-2/index.d.ts +0 -5
- package/dist/components/puck-block/team-sections/team-grid-2/index.js +0 -60
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +0 -23
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +0 -44
- package/dist/components/puck-block/team-sections/team-profiles-1/index.d.ts +0 -5
- package/dist/components/puck-block/team-sections/team-profiles-1/index.js +0 -55
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +0 -23
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +0 -105
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.d.ts +0 -17
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.js +0 -103
- package/dist/components/puck-block/testimonial-sections/customers-1/index.d.ts +0 -5
- package/dist/components/puck-block/testimonial-sections/customers-1/index.js +0 -58
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.d.ts +0 -5
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +0 -49
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.d.ts +0 -15
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.js +0 -50
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.d.ts +0 -5
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +0 -51
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +0 -17
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +0 -55
- package/dist/components/puck-block/testimonial-sections/review-section-1/index.d.ts +0 -5
- package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +0 -87
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts +0 -23
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.js +0 -63
- package/dist/components/puck-block/testimonial-sections/testimonials-1/index.d.ts +0 -5
- package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +0 -72
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.d.ts +0 -20
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.js +0 -148
- package/dist/components/puck-block/text-sections/articles-1/articles.d.ts +0 -17
- package/dist/components/puck-block/text-sections/articles-1/articles.js +0 -55
- package/dist/components/puck-block/text-sections/articles-1/index.d.ts +0 -5
- package/dist/components/puck-block/text-sections/articles-1/index.js +0 -83
- package/dist/components/puck-block/text-sections/content-section-1/content-section.d.ts +0 -22
- package/dist/components/puck-block/text-sections/content-section-1/content-section.js +0 -119
- package/dist/components/puck-block/text-sections/content-section-1/index.d.ts +0 -5
- package/dist/components/puck-block/text-sections/content-section-1/index.js +0 -69
- package/dist/components/puck-block/text-sections/rich-text-1/index.d.ts +0 -5
- package/dist/components/puck-block/text-sections/rich-text-1/index.js +0 -32
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.d.ts +0 -11
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +0 -30
- package/dist/components/puck-block/text-sections/tab-section-1/index.d.ts +0 -5
- package/dist/components/puck-block/text-sections/tab-section-1/index.js +0 -51
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.d.ts +0 -19
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.js +0 -53
- package/dist/components/puck-block/text-sections/timeline-1/index.d.ts +0 -5
- package/dist/components/puck-block/text-sections/timeline-1/index.js +0 -60
- package/dist/components/puck-block/text-sections/timeline-1/timeline.d.ts +0 -16
- package/dist/components/puck-block/text-sections/timeline-1/timeline.js +0 -34
- package/dist/components/puck-block/text-sections/two-column-1/index.d.ts +0 -5
- package/dist/components/puck-block/text-sections/two-column-1/index.js +0 -88
- package/dist/components/puck-block/text-sections/two-column-1/two-column.d.ts +0 -18
- package/dist/components/puck-block/text-sections/two-column-1/two-column.js +0 -95
- package/dist/hooks/use-prefers-reduced-motion.js +0 -23
- /package/dist/components/puck-block/contact-sections/{contact-us-1 → _template}/contact-us.d.ts +0 -0
- /package/dist/components/puck-block/contact-sections/{contact-us-1 → _template}/index.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ⚠️ 兼容转发层 — 真正的定义已迁移到 ./props/ 目录
|
|
3
|
+
*
|
|
4
|
+
* 本文件保留所有原有导出名称,确保现有 import 不需要修改。
|
|
5
|
+
* 新代码请直接从 "./props" 导入。
|
|
6
|
+
*/
|
|
7
|
+
export { type IconName, type ActionType, type Action, resolveActionUrl, } from "./props/interactive";
|
|
8
|
+
export { type Feature } from "./props/content";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ComponentType } from "react";
|
|
2
|
+
interface EditableConfig {
|
|
3
|
+
type: string;
|
|
4
|
+
fields: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* HOC: wraps any component to be inline-editable in Puck editor mode.
|
|
8
|
+
*
|
|
9
|
+
* Location strategy:
|
|
10
|
+
* 1. componentId — read from the nearest `[data-puck-component]` ancestor in the DOM.
|
|
11
|
+
* 2. propPath — search only within that single component's props (narrow scope).
|
|
12
|
+
*/
|
|
13
|
+
export declare function withEditable<P extends Record<string, any>>(Component: ComponentType<P>, config: EditableConfig): (props: P & {
|
|
14
|
+
onEdit?: (props: P, onSave: (updated: Partial<P>) => void) => void;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
export type SitePage = {
|
|
3
|
+
/** 页面 slug,如 "about"、"pricing",用作路由值 */
|
|
4
|
+
slug: string;
|
|
5
|
+
/** 页面显示名,如 "关于我们"、"定价" */
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
type EditorContextValue = {
|
|
9
|
+
openFieldsPanel: (componentId: string, componentType: string) => void;
|
|
10
|
+
openAddSection: (index: number, zone: string) => void;
|
|
11
|
+
isEditor: boolean;
|
|
12
|
+
toolbarPortalRef: RefObject<HTMLDivElement | null> | null;
|
|
13
|
+
fetchLibraryImages?: () => Promise<string[]>;
|
|
14
|
+
/** 站点 ID,用于表单提交等业务接口 */
|
|
15
|
+
siteId?: string;
|
|
16
|
+
/** 后台 API 域名,如 https://api.example.com */
|
|
17
|
+
domain?: string;
|
|
18
|
+
/** 站内可选页面列表,用于 url 字段快捷选择 */
|
|
19
|
+
sitePages?: SitePage[];
|
|
20
|
+
/** Google Maps API Key,用于 LocationField 地址搜索 */
|
|
21
|
+
googleMapsApiKey?: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const EditorContextProvider: import("react").Provider<EditorContextValue>;
|
|
24
|
+
export declare const useEditorContext: () => EditorContextValue;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useContext, createContext } from "react";
|
|
3
|
+
const EditorContext = createContext({
|
|
4
|
+
openFieldsPanel: () => {
|
|
5
|
+
},
|
|
6
|
+
openAddSection: () => {
|
|
7
|
+
},
|
|
8
|
+
isEditor: false,
|
|
9
|
+
toolbarPortalRef: null
|
|
10
|
+
});
|
|
11
|
+
EditorContext.Provider;
|
|
12
|
+
const useEditorContext = () => useContext(EditorContext);
|
|
13
|
+
export {
|
|
14
|
+
useEditorContext
|
|
15
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Action, ActionType } from "../core/types";
|
|
2
|
+
export interface ActionTypeFieldProps {
|
|
3
|
+
/** 表单字段名前缀,会拼到各子 input 的 name 上 */
|
|
4
|
+
name: string;
|
|
5
|
+
/** 当前完整的 Action 对象(子组件只读写与自己 type 相关的字段) */
|
|
6
|
+
value: Action;
|
|
7
|
+
/** 合并局部 patch 到 Action,由父组件负责与完整 state 合并 */
|
|
8
|
+
onChange: (patch: Partial<Action>) => void;
|
|
9
|
+
}
|
|
10
|
+
/** 完整 Action 编辑器(含类型切换 + 子字段) */
|
|
11
|
+
interface ActionFieldProps {
|
|
12
|
+
name: string;
|
|
13
|
+
value: Action | undefined;
|
|
14
|
+
/** 传出合并后的完整 Action */
|
|
15
|
+
onChange: (value: Action) => void;
|
|
16
|
+
}
|
|
17
|
+
/** 类型 Tab 的展示文案与值(可在外部自定义 UI 时复用) */
|
|
18
|
+
export declare const ACTION_TYPE_OPTIONS: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: ActionType;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const PageActionFields: import("react").NamedExoticComponent<ActionTypeFieldProps>;
|
|
23
|
+
export declare const ExternalActionFields: import("react").NamedExoticComponent<ActionTypeFieldProps>;
|
|
24
|
+
export declare const EmailActionFields: import("react").NamedExoticComponent<ActionTypeFieldProps>;
|
|
25
|
+
export declare const PhoneActionFields: import("react").NamedExoticComponent<ActionTypeFieldProps>;
|
|
26
|
+
export declare const SectionActionFields: import("react").NamedExoticComponent<ActionTypeFieldProps>;
|
|
27
|
+
export declare const DownloadActionFields: import("react").NamedExoticComponent<ActionTypeFieldProps>;
|
|
28
|
+
export declare const ACTION_TYPE_FIELD_MAP: Partial<Record<ActionType, React.ComponentType<ActionTypeFieldProps>>>;
|
|
29
|
+
export declare function ActionField({ name, value, onChange }: ActionFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, memo } from "react";
|
|
4
|
+
import { Input } from "../../shadcn/input.js";
|
|
5
|
+
import { Label } from "../../shadcn/label.js";
|
|
6
|
+
import { Tabs, TabsList, TabsTrigger } from "../../shadcn/tabs.js";
|
|
7
|
+
import { LinkIcon, XIcon, GlobeIcon } from "lucide-react";
|
|
8
|
+
import { useEditorContext } from "../editor-context.js";
|
|
9
|
+
const ACTION_TYPE_OPTIONS = [
|
|
10
|
+
{ label: "Page Link", value: "page" },
|
|
11
|
+
{ label: "External Link", value: "external" },
|
|
12
|
+
{ label: "Email", value: "email" },
|
|
13
|
+
{ label: "Phone", value: "phone" },
|
|
14
|
+
{ label: "Page Section", value: "section" },
|
|
15
|
+
{ label: "Download", value: "download" },
|
|
16
|
+
{ label: "None", value: "none" }
|
|
17
|
+
];
|
|
18
|
+
const PageActionFields = memo(function PageActionFields2({
|
|
19
|
+
name,
|
|
20
|
+
value,
|
|
21
|
+
onChange
|
|
22
|
+
}) {
|
|
23
|
+
const { sitePages } = useEditorContext();
|
|
24
|
+
const pages = sitePages ?? [];
|
|
25
|
+
const pageUrl = value.pageUrl ?? "";
|
|
26
|
+
const selectedSlug = pageUrl.startsWith("/") ? pageUrl.slice(1) : null;
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Label, { children: "Page URL" }),
|
|
29
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-2 rounded-lg border px-3 py-2", children: [
|
|
30
|
+
/* @__PURE__ */ jsx(LinkIcon, { className: "text-muted-foreground size-4 shrink-0" }),
|
|
31
|
+
/* @__PURE__ */ jsx(
|
|
32
|
+
"input",
|
|
33
|
+
{
|
|
34
|
+
name: `${name}.pageUrl`,
|
|
35
|
+
className: "w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground",
|
|
36
|
+
placeholder: "/about",
|
|
37
|
+
value: pageUrl,
|
|
38
|
+
onChange: (e) => onChange({ pageUrl: e.target.value })
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
pageUrl && /* @__PURE__ */ jsx(
|
|
42
|
+
"button",
|
|
43
|
+
{
|
|
44
|
+
type: "button",
|
|
45
|
+
className: "text-muted-foreground hover:text-foreground shrink-0",
|
|
46
|
+
onClick: () => onChange({ pageUrl: "" }),
|
|
47
|
+
children: /* @__PURE__ */ jsx(XIcon, { className: "size-3.5" })
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
] }) }),
|
|
51
|
+
pages.length > 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Site pages" }),
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: pages.map((page) => {
|
|
54
|
+
const isSelected = selectedSlug === page.slug;
|
|
55
|
+
return /* @__PURE__ */ jsxs(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
className: `inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition-colors ${isSelected ? "border-primary bg-primary text-primary-foreground" : "border-border bg-background text-foreground hover:bg-accent"}`,
|
|
60
|
+
onClick: () => onChange({ pageUrl: isSelected ? "" : `${page.slug}` }),
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ jsx(GlobeIcon, { className: "size-3" }),
|
|
63
|
+
page.label
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
page.slug
|
|
67
|
+
);
|
|
68
|
+
}) })
|
|
69
|
+
] })
|
|
70
|
+
] });
|
|
71
|
+
});
|
|
72
|
+
const ExternalActionFields = memo(function ExternalActionFields2({
|
|
73
|
+
name,
|
|
74
|
+
value,
|
|
75
|
+
onChange
|
|
76
|
+
}) {
|
|
77
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Label, { children: "External URL" }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
Input,
|
|
82
|
+
{
|
|
83
|
+
name: `${name}.externalUrl`,
|
|
84
|
+
className: "h-8 text-sm",
|
|
85
|
+
value: value.externalUrl ?? "",
|
|
86
|
+
onChange: (e) => onChange({ externalUrl: e.target.value }),
|
|
87
|
+
placeholder: "https://example.com"
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ jsxs("fieldset", { className: "flex flex-col gap-1.5", children: [
|
|
92
|
+
/* @__PURE__ */ jsx(Label, { children: "Open in new tab" }),
|
|
93
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-3", children: [
|
|
94
|
+
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-1.5 text-sm", children: [
|
|
95
|
+
/* @__PURE__ */ jsx(
|
|
96
|
+
"input",
|
|
97
|
+
{
|
|
98
|
+
type: "radio",
|
|
99
|
+
name: `${name}.openInNewTab`,
|
|
100
|
+
value: "true",
|
|
101
|
+
checked: value.openInNewTab === "true",
|
|
102
|
+
onChange: () => onChange({ openInNewTab: "true" })
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
"Yes"
|
|
106
|
+
] }),
|
|
107
|
+
/* @__PURE__ */ jsxs("label", { className: "flex items-center gap-1.5 text-sm", children: [
|
|
108
|
+
/* @__PURE__ */ jsx(
|
|
109
|
+
"input",
|
|
110
|
+
{
|
|
111
|
+
type: "radio",
|
|
112
|
+
name: `${name}.openInNewTab`,
|
|
113
|
+
value: "false",
|
|
114
|
+
checked: value.openInNewTab !== "true",
|
|
115
|
+
onChange: () => onChange({ openInNewTab: "false" })
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
"No"
|
|
119
|
+
] })
|
|
120
|
+
] })
|
|
121
|
+
] })
|
|
122
|
+
] });
|
|
123
|
+
});
|
|
124
|
+
const EmailActionFields = memo(function EmailActionFields2({
|
|
125
|
+
name,
|
|
126
|
+
value,
|
|
127
|
+
onChange
|
|
128
|
+
}) {
|
|
129
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
130
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
131
|
+
/* @__PURE__ */ jsx(Label, { children: "Email" }),
|
|
132
|
+
/* @__PURE__ */ jsx(
|
|
133
|
+
Input,
|
|
134
|
+
{
|
|
135
|
+
name: `${name}.email`,
|
|
136
|
+
className: "h-8 text-sm",
|
|
137
|
+
value: value.email ?? "",
|
|
138
|
+
onChange: (e) => onChange({ email: e.target.value }),
|
|
139
|
+
placeholder: "hello@example.com"
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
] }),
|
|
143
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
144
|
+
/* @__PURE__ */ jsx(Label, { children: "Subject" }),
|
|
145
|
+
/* @__PURE__ */ jsx(
|
|
146
|
+
Input,
|
|
147
|
+
{
|
|
148
|
+
name: `${name}.subject`,
|
|
149
|
+
className: "h-8 text-sm",
|
|
150
|
+
value: value.subject ?? "",
|
|
151
|
+
onChange: (e) => onChange({ subject: e.target.value }),
|
|
152
|
+
placeholder: "Optional email subject"
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
] })
|
|
156
|
+
] });
|
|
157
|
+
});
|
|
158
|
+
const PhoneActionFields = memo(function PhoneActionFields2({
|
|
159
|
+
name,
|
|
160
|
+
value,
|
|
161
|
+
onChange
|
|
162
|
+
}) {
|
|
163
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
164
|
+
/* @__PURE__ */ jsx(Label, { children: "Phone" }),
|
|
165
|
+
/* @__PURE__ */ jsx(
|
|
166
|
+
Input,
|
|
167
|
+
{
|
|
168
|
+
name: `${name}.phone`,
|
|
169
|
+
className: "h-8 text-sm",
|
|
170
|
+
value: value.phone ?? "",
|
|
171
|
+
onChange: (e) => onChange({ phone: e.target.value }),
|
|
172
|
+
placeholder: "+1 234 567 890"
|
|
173
|
+
}
|
|
174
|
+
)
|
|
175
|
+
] });
|
|
176
|
+
});
|
|
177
|
+
const SectionActionFields = memo(function SectionActionFields2({
|
|
178
|
+
name,
|
|
179
|
+
value,
|
|
180
|
+
onChange
|
|
181
|
+
}) {
|
|
182
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
183
|
+
/* @__PURE__ */ jsx(Label, { children: "Section ID" }),
|
|
184
|
+
/* @__PURE__ */ jsx(
|
|
185
|
+
Input,
|
|
186
|
+
{
|
|
187
|
+
name: `${name}.sectionId`,
|
|
188
|
+
className: "h-8 text-sm",
|
|
189
|
+
value: value.sectionId ?? "",
|
|
190
|
+
onChange: (e) => onChange({ sectionId: e.target.value }),
|
|
191
|
+
placeholder: "#section-id"
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
] });
|
|
195
|
+
});
|
|
196
|
+
const DownloadActionFields = memo(function DownloadActionFields2({
|
|
197
|
+
name,
|
|
198
|
+
value,
|
|
199
|
+
onChange
|
|
200
|
+
}) {
|
|
201
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
202
|
+
/* @__PURE__ */ jsx(Label, { children: "Download URL" }),
|
|
203
|
+
/* @__PURE__ */ jsx(
|
|
204
|
+
Input,
|
|
205
|
+
{
|
|
206
|
+
name: `${name}.downloadUrl`,
|
|
207
|
+
className: "h-8 text-sm",
|
|
208
|
+
value: value.downloadUrl ?? "",
|
|
209
|
+
onChange: (e) => onChange({ downloadUrl: e.target.value }),
|
|
210
|
+
placeholder: "https://example.com/file.pdf"
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
] });
|
|
214
|
+
});
|
|
215
|
+
const ACTION_TYPE_FIELD_MAP = {
|
|
216
|
+
page: PageActionFields,
|
|
217
|
+
external: ExternalActionFields,
|
|
218
|
+
email: EmailActionFields,
|
|
219
|
+
phone: PhoneActionFields,
|
|
220
|
+
section: SectionActionFields,
|
|
221
|
+
download: DownloadActionFields
|
|
222
|
+
};
|
|
223
|
+
function ActionField({ name, value, onChange }) {
|
|
224
|
+
const current = value ?? { type: "none" };
|
|
225
|
+
const update = useCallback(
|
|
226
|
+
(patch) => {
|
|
227
|
+
onChange({ ...current, ...patch });
|
|
228
|
+
},
|
|
229
|
+
[current, onChange]
|
|
230
|
+
);
|
|
231
|
+
const TypeFields = ACTION_TYPE_FIELD_MAP[current.type];
|
|
232
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
233
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
234
|
+
/* @__PURE__ */ jsx(Label, { children: "Action Type" }),
|
|
235
|
+
/* @__PURE__ */ jsx(
|
|
236
|
+
Tabs,
|
|
237
|
+
{
|
|
238
|
+
value: current.type,
|
|
239
|
+
onValueChange: (val) => update({ type: val }),
|
|
240
|
+
children: /* @__PURE__ */ jsx(TabsList, { className: "h-auto w-full flex-wrap justify-start gap-1 p-1 group-data-[orientation=horizontal]/tabs:h-auto", children: ACTION_TYPE_OPTIONS.map((opt) => /* @__PURE__ */ jsx(
|
|
241
|
+
TabsTrigger,
|
|
242
|
+
{
|
|
243
|
+
value: opt.value,
|
|
244
|
+
className: "h-7 flex-none text-xs",
|
|
245
|
+
children: opt.label
|
|
246
|
+
},
|
|
247
|
+
opt.value
|
|
248
|
+
)) })
|
|
249
|
+
}
|
|
250
|
+
)
|
|
251
|
+
] }),
|
|
252
|
+
TypeFields && /* @__PURE__ */ jsx(TypeFields, { name, value: current, onChange: update })
|
|
253
|
+
] });
|
|
254
|
+
}
|
|
255
|
+
export {
|
|
256
|
+
ACTION_TYPE_FIELD_MAP,
|
|
257
|
+
ACTION_TYPE_OPTIONS,
|
|
258
|
+
ActionField,
|
|
259
|
+
DownloadActionFields,
|
|
260
|
+
EmailActionFields,
|
|
261
|
+
ExternalActionFields,
|
|
262
|
+
PageActionFields,
|
|
263
|
+
PhoneActionFields,
|
|
264
|
+
SectionActionFields
|
|
265
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useMemo } from "react";
|
|
4
|
+
import { cn } from "../../../utils/css-utils.js";
|
|
5
|
+
import { Popover, PopoverTrigger, PopoverContent } from "../../shadcn/popover.js";
|
|
6
|
+
import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from "../../shadcn/command.js";
|
|
7
|
+
import { ScrollArea } from "../../shadcn/scroll-area.js";
|
|
8
|
+
import { Input } from "../../shadcn/input.js";
|
|
9
|
+
import { Label } from "../../shadcn/label.js";
|
|
10
|
+
import { ICON_MAP, ICON_CATALOG } from "../core/icon-catalog.js";
|
|
11
|
+
import { ChevronDown } from "lucide-react";
|
|
12
|
+
function IconPickerField({
|
|
13
|
+
value,
|
|
14
|
+
onChange
|
|
15
|
+
}) {
|
|
16
|
+
const [open, setOpen] = useState(false);
|
|
17
|
+
const current = value ?? "none";
|
|
18
|
+
const [search, setSearch] = useState("");
|
|
19
|
+
const [manualInput, setManualInput] = useState("");
|
|
20
|
+
const CurrentIcon = ICON_MAP.get(current);
|
|
21
|
+
const filteredCatalog = useMemo(() => {
|
|
22
|
+
const q = search.trim().toLowerCase();
|
|
23
|
+
if (!q) return ICON_CATALOG;
|
|
24
|
+
return ICON_CATALOG.map((cat) => ({
|
|
25
|
+
...cat,
|
|
26
|
+
icons: cat.icons.filter((e) => e.name.toLowerCase().includes(q))
|
|
27
|
+
})).filter((cat) => cat.icons.length > 0);
|
|
28
|
+
}, [search]);
|
|
29
|
+
const handleSelect = (name) => {
|
|
30
|
+
onChange(name);
|
|
31
|
+
setSearch("");
|
|
32
|
+
setOpen(false);
|
|
33
|
+
};
|
|
34
|
+
const handleManualSubmit = () => {
|
|
35
|
+
const v = manualInput.trim();
|
|
36
|
+
if (v) {
|
|
37
|
+
onChange(v);
|
|
38
|
+
setManualInput("");
|
|
39
|
+
setOpen(false);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
43
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
44
|
+
"button",
|
|
45
|
+
{
|
|
46
|
+
type: "button",
|
|
47
|
+
className: cn(
|
|
48
|
+
"inline-flex h-8 w-full items-center gap-2 rounded-md border bg-background px-2.5 text-sm",
|
|
49
|
+
"text-foreground transition-colors hover:bg-accent/50",
|
|
50
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50"
|
|
51
|
+
),
|
|
52
|
+
children: [
|
|
53
|
+
CurrentIcon ? /* @__PURE__ */ jsx(CurrentIcon, { className: "size-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ jsx("span", { className: "size-4 shrink-0 rounded-sm border border-dashed" }),
|
|
54
|
+
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate text-left", children: current === "none" ? /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "None" }) : current }),
|
|
55
|
+
/* @__PURE__ */ jsx(ChevronDown, { className: "size-3.5 shrink-0 text-muted-foreground" })
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
) }),
|
|
59
|
+
/* @__PURE__ */ jsx(
|
|
60
|
+
PopoverContent,
|
|
61
|
+
{
|
|
62
|
+
className: "w-72 p-0",
|
|
63
|
+
align: "start",
|
|
64
|
+
side: "bottom",
|
|
65
|
+
sideOffset: 4,
|
|
66
|
+
children: /* @__PURE__ */ jsxs(Command, { shouldFilter: false, children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
CommandInput,
|
|
69
|
+
{
|
|
70
|
+
placeholder: "Search icons...",
|
|
71
|
+
value: search,
|
|
72
|
+
onValueChange: setSearch
|
|
73
|
+
}
|
|
74
|
+
),
|
|
75
|
+
/* @__PURE__ */ jsxs(CommandList, { className: "max-h-none overflow-visible", children: [
|
|
76
|
+
/* @__PURE__ */ jsx(CommandEmpty, { children: "No icons found." }),
|
|
77
|
+
/* @__PURE__ */ jsxs(ScrollArea, { className: "h-72", children: [
|
|
78
|
+
/* @__PURE__ */ jsx(CommandGroup, { children: /* @__PURE__ */ jsxs(
|
|
79
|
+
CommandItem,
|
|
80
|
+
{
|
|
81
|
+
value: "none",
|
|
82
|
+
onSelect: () => handleSelect("none"),
|
|
83
|
+
"data-checked": current === "none" ? "true" : void 0,
|
|
84
|
+
className: "gap-2",
|
|
85
|
+
children: [
|
|
86
|
+
/* @__PURE__ */ jsx("span", { className: "size-4 shrink-0 rounded-sm border border-dashed" }),
|
|
87
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "None" })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
) }),
|
|
91
|
+
filteredCatalog.map((cat) => /* @__PURE__ */ jsx(CommandGroup, { heading: cat.label, children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-6 gap-0.5 px-1 py-0.5", children: cat.icons.map((entry) => {
|
|
92
|
+
const IconComp = entry.component;
|
|
93
|
+
const isSelected = current === entry.name;
|
|
94
|
+
return /* @__PURE__ */ jsx(
|
|
95
|
+
"button",
|
|
96
|
+
{
|
|
97
|
+
type: "button",
|
|
98
|
+
title: entry.name,
|
|
99
|
+
onClick: () => handleSelect(entry.name),
|
|
100
|
+
className: cn(
|
|
101
|
+
"flex size-8 items-center justify-center rounded-md transition-colors",
|
|
102
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
103
|
+
isSelected && "bg-primary text-primary-foreground hover:bg-primary/90"
|
|
104
|
+
),
|
|
105
|
+
"aria-label": entry.name,
|
|
106
|
+
"aria-pressed": isSelected,
|
|
107
|
+
children: /* @__PURE__ */ jsx(IconComp, { className: "size-4" })
|
|
108
|
+
},
|
|
109
|
+
entry.name
|
|
110
|
+
);
|
|
111
|
+
}) }) }, cat.label))
|
|
112
|
+
] }),
|
|
113
|
+
/* @__PURE__ */ jsxs("div", { className: "border-t p-2", children: [
|
|
114
|
+
/* @__PURE__ */ jsx(Label, { className: "mb-1 block text-xs text-muted-foreground", children: "Or type any Lucide icon name" }),
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { className: "flex gap-1.5", children: [
|
|
116
|
+
/* @__PURE__ */ jsx(
|
|
117
|
+
Input,
|
|
118
|
+
{
|
|
119
|
+
className: "h-7 flex-1 text-xs",
|
|
120
|
+
placeholder: "e.g. arrow-right",
|
|
121
|
+
value: manualInput,
|
|
122
|
+
onChange: (e) => setManualInput(e.target.value),
|
|
123
|
+
onKeyDown: (e) => {
|
|
124
|
+
if (e.key === "Enter") {
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
handleManualSubmit();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
"button",
|
|
133
|
+
{
|
|
134
|
+
type: "button",
|
|
135
|
+
onClick: handleManualSubmit,
|
|
136
|
+
className: cn(
|
|
137
|
+
"inline-flex h-7 items-center rounded-md border bg-secondary px-2.5 text-xs font-medium",
|
|
138
|
+
"text-secondary-foreground transition-colors hover:bg-secondary/80"
|
|
139
|
+
),
|
|
140
|
+
children: "Set"
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
] })
|
|
144
|
+
] })
|
|
145
|
+
] })
|
|
146
|
+
] })
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] });
|
|
150
|
+
}
|
|
151
|
+
export {
|
|
152
|
+
IconPickerField
|
|
153
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { FieldDef, AutoFieldProps, FieldsPanelProps } from "./types";
|
|
2
|
+
export { AutoField } from "./auto-field";
|
|
3
|
+
export { ColorField } from "./color-field";
|
|
4
|
+
export { RadioToggleField } from "./radio-toggle-field";
|
|
5
|
+
export { ObjectField } from "./object-field";
|
|
6
|
+
export { VirtualizedSelectField, LARGE_SELECT_THRESHOLD, } from "./virtualized-select-field";
|
|
7
|
+
export { LocationField } from "./location-field";
|
|
8
|
+
export { ActionField, ACTION_TYPE_FIELD_MAP, ACTION_TYPE_OPTIONS, PageActionFields, ExternalActionFields, EmailActionFields, PhoneActionFields, SectionActionFields, DownloadActionFields, type ActionTypeFieldProps, } from "./action-field";
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { MapLocation } from "../core/fields";
|
|
2
|
+
interface GLatLng {
|
|
3
|
+
lat(): number;
|
|
4
|
+
lng(): number;
|
|
5
|
+
}
|
|
6
|
+
interface GGeometry {
|
|
7
|
+
location?: GLatLng;
|
|
8
|
+
}
|
|
9
|
+
interface GPlaceResult {
|
|
10
|
+
formatted_address?: string;
|
|
11
|
+
geometry?: GGeometry;
|
|
12
|
+
place_id?: string;
|
|
13
|
+
address_components?: unknown[];
|
|
14
|
+
}
|
|
15
|
+
interface GAutocomplete {
|
|
16
|
+
getPlace(): GPlaceResult;
|
|
17
|
+
addListener(event: string, handler: () => void): void;
|
|
18
|
+
}
|
|
19
|
+
interface GAutocompleteConstructor {
|
|
20
|
+
new (input: HTMLInputElement, opts?: Record<string, unknown>): GAutocomplete;
|
|
21
|
+
}
|
|
22
|
+
interface GGoogleMaps {
|
|
23
|
+
places: {
|
|
24
|
+
Autocomplete: GAutocompleteConstructor;
|
|
25
|
+
};
|
|
26
|
+
event: {
|
|
27
|
+
clearInstanceListeners(instance: unknown): void;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
interface GGoogle {
|
|
31
|
+
maps: GGoogleMaps;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface Window {
|
|
35
|
+
google?: GGoogle;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export interface LocationFieldProps {
|
|
39
|
+
name: string;
|
|
40
|
+
value: MapLocation | undefined;
|
|
41
|
+
onChange: (value: MapLocation) => void;
|
|
42
|
+
}
|
|
43
|
+
export declare const LocationField: import("react").NamedExoticComponent<LocationFieldProps>;
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FieldDef } from "./types";
|
|
2
|
+
/** 嵌套对象字段:按 objectFields 递归渲染子 AutoField,onChange 合并回对象 */
|
|
3
|
+
export declare const ObjectField: import("react").NamedExoticComponent<{
|
|
4
|
+
field: FieldDef;
|
|
5
|
+
name: string;
|
|
6
|
+
value: any;
|
|
7
|
+
onChange: (value: any) => void;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export type FieldDef = {
|
|
3
|
+
type: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
options?: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: any;
|
|
8
|
+
}[];
|
|
9
|
+
arrayFields?: Record<string, FieldDef>;
|
|
10
|
+
objectFields?: Record<string, FieldDef>;
|
|
11
|
+
getItemSummary?: (item: any, index: number) => string;
|
|
12
|
+
defaultItemProps?: Record<string, any>;
|
|
13
|
+
min?: number;
|
|
14
|
+
max?: number;
|
|
15
|
+
render?: React.FC<any>;
|
|
16
|
+
};
|
|
17
|
+
export type AutoFieldProps = {
|
|
18
|
+
field: FieldDef;
|
|
19
|
+
name: string;
|
|
20
|
+
value: any;
|
|
21
|
+
onChange: (value: any) => void;
|
|
22
|
+
};
|
|
23
|
+
export interface FieldsPanelProps {
|
|
24
|
+
open: boolean;
|
|
25
|
+
componentType: string | null;
|
|
26
|
+
componentData: Record<string, any> | null;
|
|
27
|
+
onSave: (updatedProps: Record<string, any>) => void;
|
|
28
|
+
onClose: () => void;
|
|
29
|
+
}
|