dune-react 0.0.29 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +5 -0
- package/dist/components/puck-base/article-card.d.ts +10 -0
- package/dist/components/puck-base/badge.d.ts +10 -0
- package/dist/components/puck-base/button.d.ts +13 -0
- package/dist/components/puck-base/card.d.ts +13 -0
- package/dist/components/puck-base/container.d.ts +24 -0
- package/dist/components/puck-base/content.d.ts +14 -0
- package/dist/components/puck-base/field.d.ts +9 -0
- package/dist/components/puck-base/form.d.ts +12 -0
- package/dist/components/puck-base/gradient-text.d.ts +10 -0
- package/dist/components/puck-base/image.d.ts +6 -0
- package/dist/components/puck-base/index.d.ts +11 -0
- package/dist/components/puck-base/navigation-menu.d.ts +18 -0
- package/dist/components/puck-base/safe-dynamic-icon.d.ts +7 -0
- 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/index.d.ts +90 -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 +254 -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/index.d.ts +53 -0
- package/dist/components/puck-block/banner-sections/index.d.ts +4 -0
- package/dist/components/puck-block/banner-sections/props.d.ts +122 -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/scroll-driven-marquee.d.ts +4 -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/scroll-parallax-text.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/_template/contact-us.d.ts +38 -0
- package/dist/components/puck-block/contact-sections/_template/index.d.ts +5 -0
- package/dist/components/puck-block/contact-sections/api/form-leads.d.ts +16 -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/index.d.ts +127 -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/index.d.ts +112 -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/index.d.ts +127 -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/index.d.ts +136 -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/index.d.ts +134 -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/index.d.ts +88 -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 +88 -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/location-cards-grid/index.d.ts +165 -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/props.d.ts +155 -0
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +125 -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/tab-locations/index.d.ts +97 -0
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.d.ts +4 -0
- package/dist/components/puck-block/contact-sections/use-contact-form.d.ts +20 -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/index.d.ts +155 -0
- package/dist/components/puck-block/cta-sections/index.d.ts +4 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +83 -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/props.d.ts +143 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +165 -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 +227 -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/index.d.ts +138 -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/index.d.ts +108 -0
- package/dist/components/puck-block/faq-sections/index.d.ts +6 -0
- package/dist/components/puck-block/faq-sections/props.d.ts +87 -0
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +160 -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-static-faq/index.d.ts +163 -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/two-column-accordion-faq/index.d.ts +130 -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-static-faq/index.d.ts +91 -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/feature-sections/feature-cards-grid/component.d.ts +14 -0
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +246 -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/index.d.ts +246 -0
- package/dist/components/puck-block/feature-sections/index.d.ts +5 -0
- package/dist/components/puck-block/feature-sections/props.d.ts +150 -0
- package/dist/components/puck-block/feature-sections/tab-feature/component.d.ts +16 -0
- package/dist/components/puck-block/feature-sections/tab-feature/index.d.ts +43 -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/index.d.ts +209 -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/index.d.ts +209 -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/index.d.ts +102 -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 +164 -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/index.d.ts +159 -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/index.d.ts +186 -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 +184 -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 +179 -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 +195 -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 +100 -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/index.d.ts +75 -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/index.d.ts +126 -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/index.d.ts +136 -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 +83 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +84 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +249 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +198 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/props.d.ts +275 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +36 -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-portfolio/index.d.ts +98 -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/split-carousel/index.d.ts +78 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/split-carousel.d.ts +4 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +95 -0
- package/dist/components/puck-block/gallery-sections/static-grid/static-grid.d.ts +4 -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/index.d.ts +114 -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/index.d.ts +114 -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/index.d.ts +129 -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/index.d.ts +138 -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 +165 -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/props.d.ts +107 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +156 -0
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/carousel-hero/component.d.ts +9 -0
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +121 -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 +212 -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/index.d.ts +132 -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/index.d.ts +115 -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 +269 -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/index.d.ts +118 -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/index.d.ts +173 -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/index.d.ts +115 -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 +151 -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/media-text-hero/index.d.ts +243 -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/index.d.ts +132 -0
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +171 -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/overlapping-image-hero/index.d.ts +195 -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/parallax-images-hero/component.d.ts +4 -0
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +115 -0
- package/dist/components/puck-block/hero-sections/props.d.ts +237 -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/index.d.ts +115 -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/index.d.ts +118 -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/index.d.ts +160 -0
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +263 -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 +246 -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/index.d.ts +115 -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/index.d.ts +166 -0
- package/dist/components/puck-block/hero-sections/tab-hero/component.d.ts +24 -0
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +87 -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/index.d.ts +174 -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/index.d.ts +115 -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/index.d.ts +115 -0
- package/dist/components/puck-block/index.d.ts +18 -0
- package/dist/components/puck-block/location-sections/index.d.ts +3 -0
- package/dist/components/puck-block/location-sections/location-1/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +27 -0
- package/dist/components/puck-block/location-sections/location-2/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +29 -0
- package/dist/components/puck-block/location-sections/location-3/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +26 -0
- package/dist/components/puck-block/location-sections/props.d.ts +44 -0
- 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/index.d.ts +111 -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/index.d.ts +193 -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 +184 -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/props.d.ts +127 -0
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +193 -0
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.d.ts +4 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +113 -0
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.d.ts +19 -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/index.d.ts +101 -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/index.d.ts +158 -0
- package/dist/components/puck-block/pricing-sections/props.d.ts +91 -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/index.d.ts +88 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/component.d.ts +21 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +79 -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/index.d.ts +99 -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/index.d.ts +88 -0
- package/dist/components/puck-block/registry.generated.d.ts +13630 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.d.ts +13 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +169 -0
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.d.ts +13 -0
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +169 -0
- package/dist/components/puck-block/showcase-sections/index.d.ts +6 -0
- package/dist/components/puck-block/showcase-sections/props.d.ts +73 -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/index.d.ts +264 -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/index.d.ts +264 -0
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.d.ts +22 -0
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +181 -0
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.d.ts +15 -0
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +264 -0
- package/dist/components/puck-block/team-sections/index.d.ts +5 -0
- package/dist/components/puck-block/team-sections/props.d.ts +101 -0
- package/dist/components/puck-block/team-sections/team-carousel/component.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +147 -0
- package/dist/components/puck-block/team-sections/team-grid/component.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +183 -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/index.d.ts +158 -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/index.d.ts +78 -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/index.d.ts +155 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.d.ts +33 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.d.ts +84 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.d.ts +14 -0
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/index.d.ts +94 -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/index.d.ts +103 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.d.ts +13 -0
- package/dist/components/puck-block/testimonial-sections/image-testimonial/index.d.ts +88 -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/index.d.ts +91 -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/index.d.ts +42 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/component.d.ts +16 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.d.ts +81 -0
- package/dist/components/puck-block/testimonial-sections/props.d.ts +210 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/component.d.ts +16 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +160 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.d.ts +22 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.d.ts +69 -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/index.d.ts +119 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.d.ts +17 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.d.ts +133 -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/index.d.ts +85 -0
- package/dist/components/puck-block/text-sections/blog-article/component.d.ts +30 -0
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +139 -0
- package/dist/components/puck-block/text-sections/index.d.ts +5 -0
- package/dist/components/puck-block/text-sections/props.d.ts +186 -0
- package/dist/components/puck-block/text-sections/prose-content/component.d.ts +14 -0
- package/dist/components/puck-block/text-sections/prose-content/index.d.ts +141 -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 +181 -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/index.d.ts +91 -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/index.d.ts +77 -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 +264 -0
- package/dist/components/puck-block/type.d.ts +5 -0
- package/dist/components/puck-core/core/context/editor-context.d.ts +25 -0
- package/dist/components/puck-core/core/context/section-id-context.d.ts +6 -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/props/content.d.ts +224 -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/media.d.ts +51 -0
- package/dist/components/puck-core/core/props/section.d.ts +21 -0
- package/dist/components/puck-core/core/styles.d.ts +2316 -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/error-boundary.d.ts +4 -0
- package/dist/components/puck-core/fields/action-field.d.ts +30 -0
- package/dist/components/puck-core/fields/array-field.d.ts +7 -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/image-upload-field.d.ts +7 -0
- package/dist/components/puck-core/fields/index.d.ts +9 -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 +13 -0
- package/dist/components/puck-core/inline-editable.d.ts +14 -0
- package/dist/components/puck-core/section-wrapper.d.ts +33 -0
- package/dist/components/puck-core/use-upload.d.ts +42 -0
- package/dist/components/shadcn/accordion.d.ts +9 -0
- package/dist/components/shadcn/alert-dialog.d.ts +20 -0
- package/dist/components/shadcn/alert.d.ts +10 -0
- package/dist/components/shadcn/animated-theme-toggler.d.ts +4 -0
- package/dist/components/shadcn/aspect-ratio.d.ts +4 -0
- package/dist/components/shadcn/avatar.d.ts +13 -0
- package/dist/components/shadcn/badge-promo.d.ts +4 -0
- package/dist/components/shadcn/badge.d.ts +7 -0
- package/dist/components/shadcn/breadcrumb.d.ts +12 -0
- package/dist/components/shadcn/button-group.d.ts +10 -0
- package/dist/components/shadcn/button.d.ts +15 -0
- package/dist/components/shadcn/calendar.d.ts +10 -0
- package/dist/components/shadcn/card.d.ts +11 -0
- package/dist/components/shadcn/carousel.d.ts +28 -0
- package/dist/components/shadcn/chart.d.ts +40 -0
- package/dist/components/shadcn/checkbox.d.ts +3 -0
- package/dist/components/shadcn/collapsible.d.ts +12 -0
- package/dist/components/shadcn/combobox.d.ts +24 -0
- package/dist/components/shadcn/command.d.ts +19 -0
- package/dist/components/shadcn/context-menu.d.ts +31 -0
- package/dist/components/shadcn/dialog.d.ts +25 -0
- package/dist/components/shadcn/direction.d.ts +1 -0
- package/dist/components/shadcn/drawer.d.ts +13 -0
- package/dist/components/shadcn/dropdown-menu.d.ts +32 -0
- package/dist/components/shadcn/empty.d.ts +11 -0
- package/dist/components/shadcn/field.d.ts +24 -0
- package/dist/components/shadcn/form.d.ts +17 -0
- package/dist/components/shadcn/hover-card.d.ts +10 -0
- package/dist/components/shadcn/index.d.ts +63 -0
- package/dist/components/shadcn/input-group.d.ts +18 -0
- package/dist/components/shadcn/input-otp.d.ts +11 -0
- package/dist/components/shadcn/input.d.ts +3 -0
- package/dist/components/shadcn/item.d.ts +22 -0
- package/dist/components/shadcn/kbd.d.ts +3 -0
- package/dist/components/shadcn/label.d.ts +3 -0
- package/dist/components/shadcn/layout-text-flip.d.ts +4 -0
- package/dist/components/shadcn/menubar.d.ts +29 -0
- package/dist/components/shadcn/native-select.d.ts +8 -0
- package/dist/components/shadcn/navigation-menu.d.ts +14 -0
- package/dist/components/shadcn/pagination.d.ts +17 -0
- package/dist/components/shadcn/popover.d.ts +11 -0
- package/dist/components/shadcn/progress.d.ts +7 -0
- package/dist/components/shadcn/radio-group.d.ts +5 -0
- package/dist/components/shadcn/resizable-navbar.d.ts +52 -0
- package/dist/components/shadcn/resizable.d.ts +8 -0
- package/dist/components/shadcn/scroll-area.d.ts +4 -0
- package/dist/components/shadcn/select.d.ts +18 -0
- package/dist/components/shadcn/separator.d.ts +3 -0
- package/dist/components/shadcn/sheet.d.ts +14 -0
- package/dist/components/shadcn/sidebar.d.ts +66 -0
- package/dist/components/shadcn/skeleton.d.ts +2 -0
- package/dist/components/shadcn/slider.d.ts +3 -0
- package/dist/components/shadcn/sonner.d.ts +3 -0
- package/dist/components/shadcn/spinner.d.ts +2 -0
- package/dist/components/shadcn/switch.d.ts +5 -0
- package/dist/components/shadcn/table.d.ts +10 -0
- package/dist/components/shadcn/tabs.d.ts +10 -0
- package/dist/components/shadcn/textarea.d.ts +3 -0
- package/dist/components/shadcn/toast.d.ts +11 -0
- package/dist/components/shadcn/toggle-group.d.ts +9 -0
- package/dist/components/shadcn/toggle.d.ts +8 -0
- package/dist/components/shadcn/tooltip.d.ts +11 -0
- package/dist/components/shadcn/tweet-card-client.d.ts +4 -0
- package/dist/components/shadcn/tweet-card.d.ts +5 -0
- package/dist/components/shadcn/video-iframe.d.ts +6 -0
- package/dist/components/ui-block/background/index.d.ts +8 -0
- package/dist/components/ui-block/cover/index.d.ts +17 -0
- package/dist/components/ui-block/index.d.ts +4 -0
- package/dist/components/ui-block/sparkles/index.d.ts +13 -0
- package/dist/components/ui-block/spotlight/index.d.ts +13 -0
- package/dist/hooks/use-media-query.d.ts +1 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-prefers-reduced-motion.d.ts +1 -0
- package/dist/hooks/use-scroll-container.d.ts +18 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/utils/index.d.ts +2 -0
- package/dist/lib/utils/utils-css.d.ts +1 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/styles/relume-typography.d.ts +2 -0
- package/dist/utils/css-utils.d.ts +10 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/storage-qetag.d.ts +22 -0
- package/dist/utils/utils-api.d.ts +17 -0
- package/dist/utils/utils-canvas.d.ts +30 -0
- package/dist/utils/utils-common.d.ts +6 -0
- package/dist/utils/utils-image.d.ts +33 -0
- package/dist/utils/utils-random.d.ts +1 -0
- package/dist/utils/utils-time.d.ts +49 -0
- package/package.json +2 -2
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 表单与数据输入类 Props — 用户填写/结构化数据
|
|
3
|
+
*
|
|
4
|
+
* 包含:Form Field / Form / Location / Social
|
|
5
|
+
* 每个 prop 按 Type → Field → Defaults 顺序排列
|
|
6
|
+
*/
|
|
7
|
+
import { type BaseButton } from "./interactive";
|
|
8
|
+
export declare const fieldTypes: readonly ["text", "number", "password", "date", "file"];
|
|
9
|
+
export type FieldTypes = (typeof fieldTypes)[number];
|
|
10
|
+
export interface CompoundFieldProps {
|
|
11
|
+
id?: string;
|
|
12
|
+
name: string;
|
|
13
|
+
label: string;
|
|
14
|
+
type: FieldTypes;
|
|
15
|
+
}
|
|
16
|
+
export declare const formMethods: readonly ["get", "post", "put", "patch", "delete"];
|
|
17
|
+
export type FormMethods = (typeof formMethods)[number];
|
|
18
|
+
export interface CompoundFormProps {
|
|
19
|
+
title?: string;
|
|
20
|
+
fields: CompoundFieldProps[];
|
|
21
|
+
action: string;
|
|
22
|
+
method: FormMethods;
|
|
23
|
+
button: BaseButton;
|
|
24
|
+
}
|
|
25
|
+
export type BaseFormFieldType = "text" | "email" | "tel" | "number" | "date" | "url" | "file" | "textarea" | "select";
|
|
26
|
+
export interface BaseFormField {
|
|
27
|
+
label: string;
|
|
28
|
+
name: string;
|
|
29
|
+
type?: BaseFormFieldType;
|
|
30
|
+
options?: string[];
|
|
31
|
+
required?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare const formFieldField: {
|
|
34
|
+
type: string;
|
|
35
|
+
objectFields: {
|
|
36
|
+
label: {
|
|
37
|
+
type: string;
|
|
38
|
+
contentEditable: boolean;
|
|
39
|
+
};
|
|
40
|
+
name: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
type: {
|
|
44
|
+
type: string;
|
|
45
|
+
options: {
|
|
46
|
+
label: "number" | "text" | "date" | "file" | "password";
|
|
47
|
+
value: "number" | "text" | "date" | "file" | "password";
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const formFieldDefaults: CompoundFieldProps;
|
|
53
|
+
export declare const formField: {
|
|
54
|
+
type: string;
|
|
55
|
+
objectFields: {
|
|
56
|
+
title: {
|
|
57
|
+
type: string;
|
|
58
|
+
contentEditable: boolean;
|
|
59
|
+
};
|
|
60
|
+
fields: {
|
|
61
|
+
type: string;
|
|
62
|
+
min: number;
|
|
63
|
+
max: number;
|
|
64
|
+
arrayFields: {
|
|
65
|
+
label: {
|
|
66
|
+
type: string;
|
|
67
|
+
contentEditable: boolean;
|
|
68
|
+
};
|
|
69
|
+
name: {
|
|
70
|
+
type: string;
|
|
71
|
+
};
|
|
72
|
+
type: {
|
|
73
|
+
type: string;
|
|
74
|
+
options: {
|
|
75
|
+
label: "number" | "text" | "date" | "file" | "password";
|
|
76
|
+
value: "number" | "text" | "date" | "file" | "password";
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
getItemSummary: (item: {
|
|
81
|
+
label?: string;
|
|
82
|
+
}, index?: number) => string;
|
|
83
|
+
defaultItemProps: CompoundFieldProps;
|
|
84
|
+
};
|
|
85
|
+
action: {
|
|
86
|
+
type: string;
|
|
87
|
+
label: string;
|
|
88
|
+
};
|
|
89
|
+
method: {
|
|
90
|
+
type: string;
|
|
91
|
+
label: string;
|
|
92
|
+
options: {
|
|
93
|
+
label: "delete" | "get" | "post" | "put" | "patch";
|
|
94
|
+
value: "delete" | "get" | "post" | "put" | "patch";
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
button: {
|
|
98
|
+
objectFields: {
|
|
99
|
+
label: {
|
|
100
|
+
readonly type: "text";
|
|
101
|
+
};
|
|
102
|
+
variant: {
|
|
103
|
+
readonly type: "select";
|
|
104
|
+
readonly options: readonly [{
|
|
105
|
+
readonly label: "primary";
|
|
106
|
+
readonly value: "default";
|
|
107
|
+
}, {
|
|
108
|
+
readonly label: "secondary";
|
|
109
|
+
readonly value: "secondary";
|
|
110
|
+
}, {
|
|
111
|
+
readonly label: "outline";
|
|
112
|
+
readonly value: "outline";
|
|
113
|
+
}, {
|
|
114
|
+
readonly label: "ghost";
|
|
115
|
+
readonly value: "ghost";
|
|
116
|
+
}, {
|
|
117
|
+
readonly label: "link";
|
|
118
|
+
readonly value: "link";
|
|
119
|
+
}, {
|
|
120
|
+
readonly label: "destructive";
|
|
121
|
+
readonly value: "destructive";
|
|
122
|
+
}];
|
|
123
|
+
};
|
|
124
|
+
size: {
|
|
125
|
+
readonly type: "select";
|
|
126
|
+
readonly options: readonly [{
|
|
127
|
+
readonly label: "default";
|
|
128
|
+
readonly value: "default";
|
|
129
|
+
}, {
|
|
130
|
+
readonly label: "sm";
|
|
131
|
+
readonly value: "sm";
|
|
132
|
+
}, {
|
|
133
|
+
readonly label: "lg";
|
|
134
|
+
readonly value: "lg";
|
|
135
|
+
}, {
|
|
136
|
+
readonly label: "icon";
|
|
137
|
+
readonly value: "icon";
|
|
138
|
+
}];
|
|
139
|
+
};
|
|
140
|
+
icon: {
|
|
141
|
+
type: "custom";
|
|
142
|
+
render: typeof import("../../fields/icon-picker-field").IconPickerField;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
type: "object";
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export declare const formDefaults: CompoundFormProps;
|
|
150
|
+
/** 地图定位的核心数据:地址 + 坐标 */
|
|
151
|
+
export interface MapLocation {
|
|
152
|
+
/** 用户可读的完整地址(显示 & 搜索用) */
|
|
153
|
+
address: string;
|
|
154
|
+
/** 纬度 */
|
|
155
|
+
lat: number;
|
|
156
|
+
/** 经度 */
|
|
157
|
+
lng: number;
|
|
158
|
+
/** 地图缩放级别,默认 14 */
|
|
159
|
+
zoom?: number;
|
|
160
|
+
/** Google Place ID(可选,便于精确定位) */
|
|
161
|
+
placeId?: string;
|
|
162
|
+
}
|
|
163
|
+
/** 从 MapLocation 生成 Google Maps embed URL */
|
|
164
|
+
export declare function getMapEmbedUrl(loc: MapLocation): string;
|
|
165
|
+
/** 从 MapLocation 生成 Google Maps 导航 URL */
|
|
166
|
+
export declare function getDirectionsUrl(loc: MapLocation): string;
|
|
167
|
+
export declare const locationDefaults: MapLocation;
|
|
168
|
+
export declare const locationField: {
|
|
169
|
+
type: "custom";
|
|
170
|
+
label: string;
|
|
171
|
+
render: any;
|
|
172
|
+
};
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Props 统一出口
|
|
3
|
+
*
|
|
4
|
+
* 所有 prop 的 type / field / defaults 从这里导出。
|
|
5
|
+
* 使用方:import { BaseButton, buttonField, ... } from "@/components/puck-core/core/props"
|
|
6
|
+
*/
|
|
7
|
+
export { type IconName, iconField, type ActionType, type Action, resolveActionUrl, actionField, actionDefaults, type ButtonVariant, type ButtonSize, type BaseButton, buttonField, buttonDefaults, buttonsField, type BadgeVariant, type BaseBadge, badgeField, type BaseLink, type BaseSocialLink, } from "./interactive";
|
|
8
|
+
export { headingField, descriptionField, type BaseFeatureItem, type FeatureItemWithImage, type Feature, featuresField, cardField, cardsField, } from "./content";
|
|
9
|
+
export { type BaseImage, imageField, imagesField, getPlaceholderImageUrl, image16x9Placeholder, image1x1Placeholder, image9x16Placeholder, } from "./media";
|
|
10
|
+
export { fieldTypes, type FieldTypes, type CompoundFieldProps, formMethods, type FormMethods, type CompoundFormProps, type BaseFormFieldType, type BaseFormField, formFieldField, formFieldDefaults, formField, formDefaults, type MapLocation, getMapEmbedUrl, getDirectionsUrl, locationDefaults, locationField, } from "./form";
|
|
11
|
+
export { type PaddingLevel, type SectionPadding, type BaseSectionStyle, type BaseSectionStyles, } from "./section";
|
|
12
|
+
/** heading + description + badge + buttons */
|
|
13
|
+
export declare const contentFields: {
|
|
14
|
+
readonly heading: {
|
|
15
|
+
readonly type: "text";
|
|
16
|
+
readonly contentEditable: true;
|
|
17
|
+
};
|
|
18
|
+
readonly description: {
|
|
19
|
+
readonly type: "textarea";
|
|
20
|
+
readonly contentEditable: true;
|
|
21
|
+
};
|
|
22
|
+
readonly badge: {
|
|
23
|
+
readonly type: "object";
|
|
24
|
+
readonly objectFields: {
|
|
25
|
+
readonly label: {
|
|
26
|
+
readonly type: "text";
|
|
27
|
+
};
|
|
28
|
+
readonly url: {
|
|
29
|
+
readonly type: "text";
|
|
30
|
+
};
|
|
31
|
+
readonly variant: {
|
|
32
|
+
readonly type: "select";
|
|
33
|
+
readonly options: readonly [{
|
|
34
|
+
readonly label: "default";
|
|
35
|
+
readonly value: "default";
|
|
36
|
+
}, {
|
|
37
|
+
readonly label: "secondary";
|
|
38
|
+
readonly value: "secondary";
|
|
39
|
+
}, {
|
|
40
|
+
readonly label: "destructive";
|
|
41
|
+
readonly value: "destructive";
|
|
42
|
+
}, {
|
|
43
|
+
readonly label: "outline";
|
|
44
|
+
readonly value: "outline";
|
|
45
|
+
}];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly buttons: {
|
|
50
|
+
readonly type: "array";
|
|
51
|
+
readonly max: 3;
|
|
52
|
+
readonly getItemSummary: (item: {
|
|
53
|
+
label?: string;
|
|
54
|
+
}, index?: number) => string;
|
|
55
|
+
readonly arrayFields: {
|
|
56
|
+
readonly label: {
|
|
57
|
+
readonly type: "text";
|
|
58
|
+
};
|
|
59
|
+
readonly action: {
|
|
60
|
+
type: "custom";
|
|
61
|
+
label: string;
|
|
62
|
+
render: typeof import("../..").ActionField;
|
|
63
|
+
};
|
|
64
|
+
readonly variant: {
|
|
65
|
+
readonly type: "select";
|
|
66
|
+
readonly options: readonly [{
|
|
67
|
+
readonly label: "primary";
|
|
68
|
+
readonly value: "default";
|
|
69
|
+
}, {
|
|
70
|
+
readonly label: "secondary";
|
|
71
|
+
readonly value: "secondary";
|
|
72
|
+
}, {
|
|
73
|
+
readonly label: "outline";
|
|
74
|
+
readonly value: "outline";
|
|
75
|
+
}, {
|
|
76
|
+
readonly label: "ghost";
|
|
77
|
+
readonly value: "ghost";
|
|
78
|
+
}, {
|
|
79
|
+
readonly label: "link";
|
|
80
|
+
readonly value: "link";
|
|
81
|
+
}, {
|
|
82
|
+
readonly label: "destructive";
|
|
83
|
+
readonly value: "destructive";
|
|
84
|
+
}];
|
|
85
|
+
};
|
|
86
|
+
readonly size: {
|
|
87
|
+
readonly type: "select";
|
|
88
|
+
readonly options: readonly [{
|
|
89
|
+
readonly label: "default";
|
|
90
|
+
readonly value: "default";
|
|
91
|
+
}, {
|
|
92
|
+
readonly label: "sm";
|
|
93
|
+
readonly value: "sm";
|
|
94
|
+
}, {
|
|
95
|
+
readonly label: "lg";
|
|
96
|
+
readonly value: "lg";
|
|
97
|
+
}, {
|
|
98
|
+
readonly label: "icon";
|
|
99
|
+
readonly value: "icon";
|
|
100
|
+
}];
|
|
101
|
+
};
|
|
102
|
+
readonly icon: {
|
|
103
|
+
type: "custom";
|
|
104
|
+
render: typeof import("../../fields/icon-picker-field").IconPickerField;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
readonly defaultItemProps: {
|
|
108
|
+
readonly label: "Button";
|
|
109
|
+
readonly action: {
|
|
110
|
+
readonly type: "page";
|
|
111
|
+
readonly pageUrl: "";
|
|
112
|
+
readonly externalUrl: "";
|
|
113
|
+
readonly openInNewTab: "false";
|
|
114
|
+
readonly email: "";
|
|
115
|
+
readonly subject: "";
|
|
116
|
+
readonly phone: "";
|
|
117
|
+
readonly sectionId: "";
|
|
118
|
+
readonly downloadUrl: "";
|
|
119
|
+
};
|
|
120
|
+
readonly variant: "default";
|
|
121
|
+
readonly size: "default";
|
|
122
|
+
readonly icon: "none";
|
|
123
|
+
};
|
|
124
|
+
readonly ai: {
|
|
125
|
+
readonly instructions: "Buttons must use the same size";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
/** heading + description + badge + features + buttons */
|
|
130
|
+
export declare const contentFieldsWithFeatures: {
|
|
131
|
+
readonly heading: {
|
|
132
|
+
readonly type: "text";
|
|
133
|
+
readonly contentEditable: true;
|
|
134
|
+
};
|
|
135
|
+
readonly description: {
|
|
136
|
+
readonly type: "textarea";
|
|
137
|
+
readonly contentEditable: true;
|
|
138
|
+
};
|
|
139
|
+
readonly badge: {
|
|
140
|
+
readonly type: "object";
|
|
141
|
+
readonly objectFields: {
|
|
142
|
+
readonly label: {
|
|
143
|
+
readonly type: "text";
|
|
144
|
+
};
|
|
145
|
+
readonly url: {
|
|
146
|
+
readonly type: "text";
|
|
147
|
+
};
|
|
148
|
+
readonly variant: {
|
|
149
|
+
readonly type: "select";
|
|
150
|
+
readonly options: readonly [{
|
|
151
|
+
readonly label: "default";
|
|
152
|
+
readonly value: "default";
|
|
153
|
+
}, {
|
|
154
|
+
readonly label: "secondary";
|
|
155
|
+
readonly value: "secondary";
|
|
156
|
+
}, {
|
|
157
|
+
readonly label: "destructive";
|
|
158
|
+
readonly value: "destructive";
|
|
159
|
+
}, {
|
|
160
|
+
readonly label: "outline";
|
|
161
|
+
readonly value: "outline";
|
|
162
|
+
}];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly features: {
|
|
167
|
+
readonly type: "array";
|
|
168
|
+
readonly max: 5;
|
|
169
|
+
readonly getItemSummary: (item: {
|
|
170
|
+
name?: string;
|
|
171
|
+
}, index?: number) => string;
|
|
172
|
+
readonly arrayFields: {
|
|
173
|
+
readonly icon: {
|
|
174
|
+
type: "custom";
|
|
175
|
+
render: typeof import("../../fields/icon-picker-field").IconPickerField;
|
|
176
|
+
};
|
|
177
|
+
readonly name: {
|
|
178
|
+
readonly type: "text";
|
|
179
|
+
readonly contentEditable: true;
|
|
180
|
+
};
|
|
181
|
+
readonly description: {
|
|
182
|
+
readonly type: "textarea";
|
|
183
|
+
readonly contentEditable: true;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
readonly defaultItemProps: {
|
|
187
|
+
readonly icon: "check";
|
|
188
|
+
readonly name: "Feature name";
|
|
189
|
+
readonly description: "Description of the feature";
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
readonly buttons: {
|
|
193
|
+
readonly type: "array";
|
|
194
|
+
readonly max: 3;
|
|
195
|
+
readonly getItemSummary: (item: {
|
|
196
|
+
label?: string;
|
|
197
|
+
}, index?: number) => string;
|
|
198
|
+
readonly arrayFields: {
|
|
199
|
+
readonly label: {
|
|
200
|
+
readonly type: "text";
|
|
201
|
+
};
|
|
202
|
+
readonly action: {
|
|
203
|
+
type: "custom";
|
|
204
|
+
label: string;
|
|
205
|
+
render: typeof import("../..").ActionField;
|
|
206
|
+
};
|
|
207
|
+
readonly variant: {
|
|
208
|
+
readonly type: "select";
|
|
209
|
+
readonly options: readonly [{
|
|
210
|
+
readonly label: "primary";
|
|
211
|
+
readonly value: "default";
|
|
212
|
+
}, {
|
|
213
|
+
readonly label: "secondary";
|
|
214
|
+
readonly value: "secondary";
|
|
215
|
+
}, {
|
|
216
|
+
readonly label: "outline";
|
|
217
|
+
readonly value: "outline";
|
|
218
|
+
}, {
|
|
219
|
+
readonly label: "ghost";
|
|
220
|
+
readonly value: "ghost";
|
|
221
|
+
}, {
|
|
222
|
+
readonly label: "link";
|
|
223
|
+
readonly value: "link";
|
|
224
|
+
}, {
|
|
225
|
+
readonly label: "destructive";
|
|
226
|
+
readonly value: "destructive";
|
|
227
|
+
}];
|
|
228
|
+
};
|
|
229
|
+
readonly size: {
|
|
230
|
+
readonly type: "select";
|
|
231
|
+
readonly options: readonly [{
|
|
232
|
+
readonly label: "default";
|
|
233
|
+
readonly value: "default";
|
|
234
|
+
}, {
|
|
235
|
+
readonly label: "sm";
|
|
236
|
+
readonly value: "sm";
|
|
237
|
+
}, {
|
|
238
|
+
readonly label: "lg";
|
|
239
|
+
readonly value: "lg";
|
|
240
|
+
}, {
|
|
241
|
+
readonly label: "icon";
|
|
242
|
+
readonly value: "icon";
|
|
243
|
+
}];
|
|
244
|
+
};
|
|
245
|
+
readonly icon: {
|
|
246
|
+
type: "custom";
|
|
247
|
+
render: typeof import("../../fields/icon-picker-field").IconPickerField;
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly defaultItemProps: {
|
|
251
|
+
readonly label: "Button";
|
|
252
|
+
readonly action: {
|
|
253
|
+
readonly type: "page";
|
|
254
|
+
readonly pageUrl: "";
|
|
255
|
+
readonly externalUrl: "";
|
|
256
|
+
readonly openInNewTab: "false";
|
|
257
|
+
readonly email: "";
|
|
258
|
+
readonly subject: "";
|
|
259
|
+
readonly phone: "";
|
|
260
|
+
readonly sectionId: "";
|
|
261
|
+
readonly downloadUrl: "";
|
|
262
|
+
};
|
|
263
|
+
readonly variant: "default";
|
|
264
|
+
readonly size: "default";
|
|
265
|
+
readonly icon: "none";
|
|
266
|
+
};
|
|
267
|
+
readonly ai: {
|
|
268
|
+
readonly instructions: "Buttons must use the same size";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 交互类 Props — 用户可点击/触发的元素
|
|
3
|
+
*
|
|
4
|
+
* 包含:Action / Button / Badge / Link / Icon
|
|
5
|
+
* 每个 prop 按 Type → Field → Defaults 顺序排列
|
|
6
|
+
*/
|
|
7
|
+
import { iconNames } from "lucide-react/dynamic";
|
|
8
|
+
import { ActionField } from "../../fields/action-field";
|
|
9
|
+
import { IconPickerField } from "../../fields/icon-picker-field";
|
|
10
|
+
export type IconName = "none" | (typeof iconNames)[number];
|
|
11
|
+
export declare const iconField: {
|
|
12
|
+
type: "custom";
|
|
13
|
+
render: typeof IconPickerField;
|
|
14
|
+
};
|
|
15
|
+
export type ActionType = "page" | "external" | "scroll" | "email" | "phone" | "section" | "download" | "none";
|
|
16
|
+
export type Action = {
|
|
17
|
+
type: ActionType;
|
|
18
|
+
pageUrl?: string;
|
|
19
|
+
externalUrl?: string;
|
|
20
|
+
openInNewTab?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
subject?: string;
|
|
23
|
+
phone?: string;
|
|
24
|
+
sectionId?: string;
|
|
25
|
+
downloadUrl?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function resolveActionUrl(action: Action): string | undefined;
|
|
28
|
+
export declare const actionField: {
|
|
29
|
+
type: "custom";
|
|
30
|
+
label: string;
|
|
31
|
+
render: typeof ActionField;
|
|
32
|
+
};
|
|
33
|
+
export declare const actionDefaults: {
|
|
34
|
+
readonly type: "page";
|
|
35
|
+
readonly pageUrl: "";
|
|
36
|
+
readonly externalUrl: "";
|
|
37
|
+
readonly openInNewTab: "false";
|
|
38
|
+
readonly email: "";
|
|
39
|
+
readonly subject: "";
|
|
40
|
+
readonly phone: "";
|
|
41
|
+
readonly sectionId: "";
|
|
42
|
+
readonly downloadUrl: "";
|
|
43
|
+
};
|
|
44
|
+
export type ButtonVariant = "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
|
|
45
|
+
export type ButtonSize = "default" | "sm" | "lg" | "icon";
|
|
46
|
+
export interface BaseButton {
|
|
47
|
+
label: string;
|
|
48
|
+
action?: Action;
|
|
49
|
+
variant?: ButtonVariant;
|
|
50
|
+
size?: ButtonSize;
|
|
51
|
+
icon?: IconName;
|
|
52
|
+
}
|
|
53
|
+
export declare const buttonField: {
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly objectFields: {
|
|
56
|
+
readonly label: {
|
|
57
|
+
readonly type: "text";
|
|
58
|
+
};
|
|
59
|
+
readonly action: {
|
|
60
|
+
type: "custom";
|
|
61
|
+
label: string;
|
|
62
|
+
render: typeof ActionField;
|
|
63
|
+
};
|
|
64
|
+
readonly variant: {
|
|
65
|
+
readonly type: "select";
|
|
66
|
+
readonly options: readonly [{
|
|
67
|
+
readonly label: "primary";
|
|
68
|
+
readonly value: "default";
|
|
69
|
+
}, {
|
|
70
|
+
readonly label: "secondary";
|
|
71
|
+
readonly value: "secondary";
|
|
72
|
+
}, {
|
|
73
|
+
readonly label: "outline";
|
|
74
|
+
readonly value: "outline";
|
|
75
|
+
}, {
|
|
76
|
+
readonly label: "ghost";
|
|
77
|
+
readonly value: "ghost";
|
|
78
|
+
}, {
|
|
79
|
+
readonly label: "link";
|
|
80
|
+
readonly value: "link";
|
|
81
|
+
}, {
|
|
82
|
+
readonly label: "destructive";
|
|
83
|
+
readonly value: "destructive";
|
|
84
|
+
}];
|
|
85
|
+
};
|
|
86
|
+
readonly size: {
|
|
87
|
+
readonly type: "select";
|
|
88
|
+
readonly options: readonly [{
|
|
89
|
+
readonly label: "default";
|
|
90
|
+
readonly value: "default";
|
|
91
|
+
}, {
|
|
92
|
+
readonly label: "sm";
|
|
93
|
+
readonly value: "sm";
|
|
94
|
+
}, {
|
|
95
|
+
readonly label: "lg";
|
|
96
|
+
readonly value: "lg";
|
|
97
|
+
}, {
|
|
98
|
+
readonly label: "icon";
|
|
99
|
+
readonly value: "icon";
|
|
100
|
+
}];
|
|
101
|
+
};
|
|
102
|
+
readonly icon: {
|
|
103
|
+
type: "custom";
|
|
104
|
+
render: typeof IconPickerField;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export declare const buttonDefaults: {
|
|
109
|
+
readonly label: "Button";
|
|
110
|
+
readonly action: {
|
|
111
|
+
readonly type: "page";
|
|
112
|
+
readonly pageUrl: "";
|
|
113
|
+
readonly externalUrl: "";
|
|
114
|
+
readonly openInNewTab: "false";
|
|
115
|
+
readonly email: "";
|
|
116
|
+
readonly subject: "";
|
|
117
|
+
readonly phone: "";
|
|
118
|
+
readonly sectionId: "";
|
|
119
|
+
readonly downloadUrl: "";
|
|
120
|
+
};
|
|
121
|
+
readonly variant: "default";
|
|
122
|
+
readonly size: "default";
|
|
123
|
+
readonly icon: "none";
|
|
124
|
+
};
|
|
125
|
+
export declare const buttonsField: {
|
|
126
|
+
readonly type: "array";
|
|
127
|
+
readonly max: 3;
|
|
128
|
+
readonly getItemSummary: (item: {
|
|
129
|
+
label?: string;
|
|
130
|
+
}, index?: number) => string;
|
|
131
|
+
readonly arrayFields: {
|
|
132
|
+
readonly label: {
|
|
133
|
+
readonly type: "text";
|
|
134
|
+
};
|
|
135
|
+
readonly action: {
|
|
136
|
+
type: "custom";
|
|
137
|
+
label: string;
|
|
138
|
+
render: typeof ActionField;
|
|
139
|
+
};
|
|
140
|
+
readonly variant: {
|
|
141
|
+
readonly type: "select";
|
|
142
|
+
readonly options: readonly [{
|
|
143
|
+
readonly label: "primary";
|
|
144
|
+
readonly value: "default";
|
|
145
|
+
}, {
|
|
146
|
+
readonly label: "secondary";
|
|
147
|
+
readonly value: "secondary";
|
|
148
|
+
}, {
|
|
149
|
+
readonly label: "outline";
|
|
150
|
+
readonly value: "outline";
|
|
151
|
+
}, {
|
|
152
|
+
readonly label: "ghost";
|
|
153
|
+
readonly value: "ghost";
|
|
154
|
+
}, {
|
|
155
|
+
readonly label: "link";
|
|
156
|
+
readonly value: "link";
|
|
157
|
+
}, {
|
|
158
|
+
readonly label: "destructive";
|
|
159
|
+
readonly value: "destructive";
|
|
160
|
+
}];
|
|
161
|
+
};
|
|
162
|
+
readonly size: {
|
|
163
|
+
readonly type: "select";
|
|
164
|
+
readonly options: readonly [{
|
|
165
|
+
readonly label: "default";
|
|
166
|
+
readonly value: "default";
|
|
167
|
+
}, {
|
|
168
|
+
readonly label: "sm";
|
|
169
|
+
readonly value: "sm";
|
|
170
|
+
}, {
|
|
171
|
+
readonly label: "lg";
|
|
172
|
+
readonly value: "lg";
|
|
173
|
+
}, {
|
|
174
|
+
readonly label: "icon";
|
|
175
|
+
readonly value: "icon";
|
|
176
|
+
}];
|
|
177
|
+
};
|
|
178
|
+
readonly icon: {
|
|
179
|
+
type: "custom";
|
|
180
|
+
render: typeof IconPickerField;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly defaultItemProps: {
|
|
184
|
+
readonly label: "Button";
|
|
185
|
+
readonly action: {
|
|
186
|
+
readonly type: "page";
|
|
187
|
+
readonly pageUrl: "";
|
|
188
|
+
readonly externalUrl: "";
|
|
189
|
+
readonly openInNewTab: "false";
|
|
190
|
+
readonly email: "";
|
|
191
|
+
readonly subject: "";
|
|
192
|
+
readonly phone: "";
|
|
193
|
+
readonly sectionId: "";
|
|
194
|
+
readonly downloadUrl: "";
|
|
195
|
+
};
|
|
196
|
+
readonly variant: "default";
|
|
197
|
+
readonly size: "default";
|
|
198
|
+
readonly icon: "none";
|
|
199
|
+
};
|
|
200
|
+
readonly ai: {
|
|
201
|
+
readonly instructions: "Buttons must use the same size";
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
export type BadgeVariant = "default" | "secondary" | "destructive" | "outline";
|
|
205
|
+
export interface BaseBadge {
|
|
206
|
+
label: string;
|
|
207
|
+
action?: Action;
|
|
208
|
+
variant?: BadgeVariant;
|
|
209
|
+
}
|
|
210
|
+
export declare const badgeField: {
|
|
211
|
+
readonly type: "object";
|
|
212
|
+
readonly objectFields: {
|
|
213
|
+
readonly label: {
|
|
214
|
+
readonly type: "text";
|
|
215
|
+
};
|
|
216
|
+
readonly url: {
|
|
217
|
+
readonly type: "text";
|
|
218
|
+
};
|
|
219
|
+
readonly variant: {
|
|
220
|
+
readonly type: "select";
|
|
221
|
+
readonly options: readonly [{
|
|
222
|
+
readonly label: "default";
|
|
223
|
+
readonly value: "default";
|
|
224
|
+
}, {
|
|
225
|
+
readonly label: "secondary";
|
|
226
|
+
readonly value: "secondary";
|
|
227
|
+
}, {
|
|
228
|
+
readonly label: "destructive";
|
|
229
|
+
readonly value: "destructive";
|
|
230
|
+
}, {
|
|
231
|
+
readonly label: "outline";
|
|
232
|
+
readonly value: "outline";
|
|
233
|
+
}];
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export interface BaseLink {
|
|
238
|
+
label: string;
|
|
239
|
+
action?: Action;
|
|
240
|
+
}
|
|
241
|
+
export interface BaseSocialLink {
|
|
242
|
+
platform: string;
|
|
243
|
+
url: string;
|
|
244
|
+
}
|