dune-react 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/image.js +16 -16
- package/dist/components/puck-base/index.d.ts +1 -13
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +13 -13
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +8 -8
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +92 -63
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +80 -64
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +42 -1
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +38 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +55 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +42 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +55 -1
- package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +68 -65
- package/dist/components/puck-block/gallery-sections/props.d.ts +11 -1
- package/dist/components/puck-block/gallery-sections/props.js +7 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +18 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +25 -22
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +119 -17
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +162 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +143 -19
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/props.d.ts +3 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -3
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +93 -44
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +14 -6
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +96 -46
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +33 -10
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
- package/dist/components/puck-block/location-sections/props.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +39 -26
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
- package/dist/components/puck-block/registry.generated.d.ts +13408 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +2 -2
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
- package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
- package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +14 -5
- package/dist/components/puck-core/core/styles.d.ts +1 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
- package/dist/components/puck-core/fields/action-field.js +1 -1
- package/dist/components/puck-core/fields/array-field.d.ts +7 -0
- package/dist/components/puck-core/fields/array-field.js +229 -0
- package/dist/components/{puck-base → puck-core}/fields/auto-field.js +11 -0
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +5 -5
- package/dist/components/puck-core/fields/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/{puck-base → puck-core}/fields/object-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
- package/dist/index.js +121 -104
- package/dist/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.2.4/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +59 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@dnd-kit/core/dist/core.esm.js +3093 -0
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4__react@19.2.4/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +592 -0
- package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.4/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +301 -0
- package/package.json +4 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
|
@@ -26,11 +26,20 @@ const imageVariants = {
|
|
|
26
26
|
right: { x: -50, transition: { type: "spring", duration: 1, bounce: 0 } }
|
|
27
27
|
};
|
|
28
28
|
const MouseTrackCta = (props) => {
|
|
29
|
-
const {
|
|
29
|
+
const {
|
|
30
|
+
tagline,
|
|
31
|
+
hoverLinks = [],
|
|
32
|
+
styles
|
|
33
|
+
} = {
|
|
30
34
|
...MouseTrackCtaDefaults,
|
|
31
35
|
...props
|
|
32
36
|
};
|
|
33
|
-
const {
|
|
37
|
+
const {
|
|
38
|
+
className: sectionClassName,
|
|
39
|
+
style: sectionStyle,
|
|
40
|
+
css,
|
|
41
|
+
listStyle = "center"
|
|
42
|
+
} = styles ?? {};
|
|
34
43
|
const isNumbered = listStyle === "numbered";
|
|
35
44
|
const [cursorPosition, setCursorPosition] = useState({ x: 0, y: 0 });
|
|
36
45
|
const [hoveredIndex, setHoveredIndex] = useState(null);
|
|
@@ -47,7 +56,10 @@ const MouseTrackCta = (props) => {
|
|
|
47
56
|
const containerRect = container.getBoundingClientRect();
|
|
48
57
|
const leftBoundary = containerRect.left + containerRect.width / 2 - 100;
|
|
49
58
|
const rightBoundary = containerRect.right / 2 + 100;
|
|
50
|
-
const clampedX = Math.max(
|
|
59
|
+
const clampedX = Math.max(
|
|
60
|
+
leftBoundary,
|
|
61
|
+
Math.min(rightBoundary, e.clientX)
|
|
62
|
+
);
|
|
51
63
|
const smoothFactor = 0.1;
|
|
52
64
|
setCursorPosition((prev) => ({
|
|
53
65
|
x: prev.x + (clampedX - prev.x) * smoothFactor,
|
|
@@ -64,64 +76,81 @@ const MouseTrackCta = (props) => {
|
|
|
64
76
|
const translateBottomInverse = direction === "bottom" ? isNumbered ? 25 : 50 : 0;
|
|
65
77
|
const translateLeftInverse = direction === "left" ? isNumbered ? -25 : -50 : 0;
|
|
66
78
|
const translateRightInverse = direction === "right" ? isNumbered ? 25 : 50 : 0;
|
|
67
|
-
return /* @__PURE__ */ jsx(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
isNumbered ? "relative justify-start border-b border-border-primary py-5 md:py-6" : "justify-center",
|
|
79
|
+
return /* @__PURE__ */ jsx(
|
|
80
|
+
SectionWrapper,
|
|
81
|
+
{
|
|
82
|
+
className: cn("isolate px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
|
|
83
|
+
style: sectionStyle,
|
|
84
|
+
css,
|
|
85
|
+
onMouseMove: !isNumbered ? handleMouseMove : void 0,
|
|
86
|
+
children: /* @__PURE__ */ jsxs(
|
|
87
|
+
"div",
|
|
88
|
+
{
|
|
89
|
+
className: cn("container", { "max-w-xl text-center": !isNumbered }),
|
|
90
|
+
onMouseMove: isNumbered ? handleMouseMove : void 0,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx("p", { className: "mb-6 font-semibold md:mb-8", children: tagline }),
|
|
93
|
+
/* @__PURE__ */ jsx(
|
|
94
|
+
motion.div,
|
|
84
95
|
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
initial: "initial",
|
|
97
|
+
whileHover: direction,
|
|
98
|
+
onMouseEnter: handleMouseEnter,
|
|
99
|
+
onMouseLeave: handleMouseLeave,
|
|
100
|
+
children: hoverLinks.map((link, index) => /* @__PURE__ */ jsxs(
|
|
101
|
+
"a",
|
|
102
|
+
{
|
|
103
|
+
href: resolveActionUrl(link.action ?? { type: "none" }) ?? "#",
|
|
104
|
+
onMouseEnter: () => setHoveredIndex(index),
|
|
105
|
+
className: cn(
|
|
106
|
+
"flex items-center p-4 transition-colors duration-300",
|
|
107
|
+
isNumbered ? "relative justify-start border-b border-border-primary py-5 md:py-6" : "justify-center",
|
|
108
|
+
{
|
|
109
|
+
"lg:text-black/20": hoveredIndex !== index && hoveredIndex !== null,
|
|
110
|
+
"lg:text-black": hoveredIndex === index || hoveredIndex === null
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
children: [
|
|
114
|
+
isNumbered && link.listNumber && /* @__PURE__ */ jsx("p", { className: "mr-6 whitespace-nowrap text-xl font-bold md:mr-8 md:text-2xl", children: link.listNumber }),
|
|
115
|
+
/* @__PURE__ */ jsx("h3", { className: "text-5xl font-bold md:text-9xl lg:text-10xl", children: link.heading }),
|
|
116
|
+
/* @__PURE__ */ jsx(
|
|
117
|
+
motion.div,
|
|
118
|
+
{
|
|
119
|
+
className: cn(
|
|
120
|
+
"pointer-events-none fixed inset-0 hidden size-[600px] transition-opacity duration-300 lg:block",
|
|
121
|
+
isNumbered ? "-z-10 ml-[300px]" : "-z-10",
|
|
122
|
+
{
|
|
123
|
+
"opacity-70": hoveredIndex === index,
|
|
124
|
+
"opacity-0": hoveredIndex !== index
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
animate: {
|
|
128
|
+
x: cursorPosition.x - 300 + translateLeftInverse + translateRightInverse,
|
|
129
|
+
y: cursorPosition.y - 300 + translateTopInverse + translateBottomInverse
|
|
130
|
+
},
|
|
131
|
+
transition: { type: "spring", damping: 20, stiffness: 150, mass: 0.5 },
|
|
132
|
+
children: /* @__PURE__ */ jsx(
|
|
133
|
+
motion.img,
|
|
134
|
+
{
|
|
135
|
+
className: "size-full max-w-md",
|
|
136
|
+
variants: imageVariants,
|
|
137
|
+
src: link.image.src,
|
|
138
|
+
alt: link.image.alt
|
|
139
|
+
}
|
|
140
|
+
)
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
]
|
|
106
144
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
-
)
|
|
118
|
-
]
|
|
119
|
-
},
|
|
120
|
-
index
|
|
121
|
-
))
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
] }) });
|
|
145
|
+
index
|
|
146
|
+
))
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
}
|
|
153
|
+
);
|
|
125
154
|
};
|
|
126
155
|
const MouseTrackCtaDefaults = {
|
|
127
156
|
tagline: "Tagline",
|
|
@@ -132,7 +161,7 @@ const MouseTrackCtaDefaults = {
|
|
|
132
161
|
listNumber: "01",
|
|
133
162
|
image: {
|
|
134
163
|
src: "https://picsum.photos/seed/cta-hover1/600/600",
|
|
135
|
-
alt: "
|
|
164
|
+
alt: "Placeholder image 1"
|
|
136
165
|
}
|
|
137
166
|
},
|
|
138
167
|
{
|
|
@@ -141,7 +170,7 @@ const MouseTrackCtaDefaults = {
|
|
|
141
170
|
listNumber: "02",
|
|
142
171
|
image: {
|
|
143
172
|
src: "https://picsum.photos/seed/cta-hover2/600/600",
|
|
144
|
-
alt: "
|
|
173
|
+
alt: "Placeholder image 2"
|
|
145
174
|
}
|
|
146
175
|
},
|
|
147
176
|
{
|
|
@@ -150,7 +179,7 @@ const MouseTrackCtaDefaults = {
|
|
|
150
179
|
listNumber: "03",
|
|
151
180
|
image: {
|
|
152
181
|
src: "https://picsum.photos/seed/cta-hover3/600/600",
|
|
153
|
-
alt: "
|
|
182
|
+
alt: "Placeholder image 3"
|
|
154
183
|
}
|
|
155
184
|
},
|
|
156
185
|
{
|
|
@@ -159,7 +188,7 @@ const MouseTrackCtaDefaults = {
|
|
|
159
188
|
listNumber: "04",
|
|
160
189
|
image: {
|
|
161
190
|
src: "https://picsum.photos/seed/cta-hover4/600/600",
|
|
162
|
-
alt: "
|
|
191
|
+
alt: "Placeholder image 4"
|
|
163
192
|
}
|
|
164
193
|
}
|
|
165
194
|
],
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
const ctaStyleFields = {
|
|
2
|
+
textLayout: {
|
|
3
|
+
type: "select",
|
|
4
|
+
label: "Text Layout",
|
|
5
|
+
options: [
|
|
6
|
+
{ label: "Left", value: "left" },
|
|
7
|
+
{ label: "Center", value: "center" },
|
|
8
|
+
{ label: "Two Column", value: "twoColumn" },
|
|
9
|
+
{ label: "Inline Row", value: "inlineRow" }
|
|
10
|
+
]
|
|
11
|
+
},
|
|
2
12
|
textAlign: {
|
|
3
13
|
type: "radio",
|
|
4
14
|
label: "Text Align",
|
|
@@ -7,6 +17,42 @@ const ctaStyleFields = {
|
|
|
7
17
|
{ label: "Center", value: "center" }
|
|
8
18
|
]
|
|
9
19
|
},
|
|
20
|
+
mediaPosition: {
|
|
21
|
+
type: "radio",
|
|
22
|
+
label: "Media Position",
|
|
23
|
+
options: [
|
|
24
|
+
{ label: "Left", value: "left" },
|
|
25
|
+
{ label: "Right", value: "right" }
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
bgMedia: {
|
|
29
|
+
type: "select",
|
|
30
|
+
label: "Background Media",
|
|
31
|
+
options: [
|
|
32
|
+
{ label: "None", value: "none" },
|
|
33
|
+
{ label: "Fullscreen Image", value: "fullscreenImage" },
|
|
34
|
+
{ label: "Fullscreen Video", value: "fullscreenVideo" },
|
|
35
|
+
{ label: "Container Image", value: "containerImage" },
|
|
36
|
+
{ label: "Container Video", value: "containerVideo" }
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
bordered: {
|
|
40
|
+
type: "radio",
|
|
41
|
+
label: "Bordered",
|
|
42
|
+
options: [
|
|
43
|
+
{ label: "Yes", value: "true" },
|
|
44
|
+
{ label: "No", value: "false" }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
bottomContent: {
|
|
48
|
+
type: "select",
|
|
49
|
+
label: "Bottom Content",
|
|
50
|
+
options: [
|
|
51
|
+
{ label: "None", value: "none" },
|
|
52
|
+
{ label: "Image", value: "image" },
|
|
53
|
+
{ label: "Logos", value: "logos" }
|
|
54
|
+
]
|
|
55
|
+
},
|
|
10
56
|
listStyle: {
|
|
11
57
|
type: "radio",
|
|
12
58
|
label: "List Style",
|
|
@@ -25,7 +25,7 @@ declare const conf: {
|
|
|
25
25
|
readonly action: {
|
|
26
26
|
type: "custom";
|
|
27
27
|
label: string;
|
|
28
|
-
render: typeof import("
|
|
28
|
+
render: typeof import("../../..").ActionField;
|
|
29
29
|
};
|
|
30
30
|
readonly variant: {
|
|
31
31
|
readonly type: "select";
|
|
@@ -108,67 +108,6 @@ declare const conf: {
|
|
|
108
108
|
src: string;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
-
inputPlaceholder: {
|
|
112
|
-
type: string;
|
|
113
|
-
};
|
|
114
|
-
formButton: {
|
|
115
|
-
readonly type: "object";
|
|
116
|
-
readonly objectFields: {
|
|
117
|
-
readonly label: {
|
|
118
|
-
readonly type: "text";
|
|
119
|
-
};
|
|
120
|
-
readonly action: {
|
|
121
|
-
type: "custom";
|
|
122
|
-
label: string;
|
|
123
|
-
render: typeof import("../../../puck-core").ActionField;
|
|
124
|
-
};
|
|
125
|
-
readonly variant: {
|
|
126
|
-
readonly type: "select";
|
|
127
|
-
readonly options: readonly [{
|
|
128
|
-
readonly label: "primary";
|
|
129
|
-
readonly value: "default";
|
|
130
|
-
}, {
|
|
131
|
-
readonly label: "secondary";
|
|
132
|
-
readonly value: "secondary";
|
|
133
|
-
}, {
|
|
134
|
-
readonly label: "outline";
|
|
135
|
-
readonly value: "outline";
|
|
136
|
-
}, {
|
|
137
|
-
readonly label: "ghost";
|
|
138
|
-
readonly value: "ghost";
|
|
139
|
-
}, {
|
|
140
|
-
readonly label: "link";
|
|
141
|
-
readonly value: "link";
|
|
142
|
-
}, {
|
|
143
|
-
readonly label: "destructive";
|
|
144
|
-
readonly value: "destructive";
|
|
145
|
-
}];
|
|
146
|
-
};
|
|
147
|
-
readonly size: {
|
|
148
|
-
readonly type: "select";
|
|
149
|
-
readonly options: readonly [{
|
|
150
|
-
readonly label: "default";
|
|
151
|
-
readonly value: "default";
|
|
152
|
-
}, {
|
|
153
|
-
readonly label: "sm";
|
|
154
|
-
readonly value: "sm";
|
|
155
|
-
}, {
|
|
156
|
-
readonly label: "lg";
|
|
157
|
-
readonly value: "lg";
|
|
158
|
-
}, {
|
|
159
|
-
readonly label: "icon";
|
|
160
|
-
readonly value: "icon";
|
|
161
|
-
}];
|
|
162
|
-
};
|
|
163
|
-
readonly icon: {
|
|
164
|
-
type: "custom";
|
|
165
|
-
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
termsAndConditions: {
|
|
170
|
-
type: string;
|
|
171
|
-
};
|
|
172
111
|
styles: {
|
|
173
112
|
type: string;
|
|
174
113
|
label: string;
|
|
@@ -217,17 +156,6 @@ declare const conf: {
|
|
|
217
156
|
readonly value: "false";
|
|
218
157
|
}];
|
|
219
158
|
};
|
|
220
|
-
formType: {
|
|
221
|
-
readonly type: "radio";
|
|
222
|
-
readonly label: "Form Type";
|
|
223
|
-
readonly options: readonly [{
|
|
224
|
-
readonly label: "Buttons";
|
|
225
|
-
readonly value: "buttons";
|
|
226
|
-
}, {
|
|
227
|
-
readonly label: "Email";
|
|
228
|
-
readonly value: "email";
|
|
229
|
-
}];
|
|
230
|
-
};
|
|
231
159
|
};
|
|
232
160
|
};
|
|
233
161
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SideMediaCta, SideMediaCtaDefaults } from "./side-media-cta.js";
|
|
2
|
+
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
+
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
5
|
+
import { ctaStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
const conf = {
|
|
8
|
+
fields: {
|
|
9
|
+
heading: headingField,
|
|
10
|
+
description: descriptionField,
|
|
11
|
+
buttons: buttonsField,
|
|
12
|
+
images: imagesField,
|
|
13
|
+
// TODO: email form 字段待设计完成后启用
|
|
14
|
+
// inputPlaceholder: { type: "text" },
|
|
15
|
+
// formButton: buttonField,
|
|
16
|
+
// termsAndConditions: { type: "textarea" },
|
|
17
|
+
styles: {
|
|
18
|
+
type: "object",
|
|
19
|
+
label: "Styles",
|
|
20
|
+
objectFields: {
|
|
21
|
+
mediaPosition: ctaStyleFields.mediaPosition,
|
|
22
|
+
bordered: ctaStyleFields.bordered,
|
|
23
|
+
// formType: ctaStyleFields.formType,
|
|
24
|
+
...sectionWrapperFields
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultProps: SideMediaCtaDefaults,
|
|
29
|
+
render: SideMediaCta
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
SideMediaCta,
|
|
33
|
+
SideMediaCtaDefaults,
|
|
34
|
+
conf as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
+
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
6
|
+
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
const SideMediaCta = (props) => {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const {
|
|
10
|
+
heading,
|
|
11
|
+
description,
|
|
12
|
+
buttons,
|
|
13
|
+
images,
|
|
14
|
+
// inputPlaceholder,
|
|
15
|
+
// formButton,
|
|
16
|
+
// termsAndConditions,
|
|
17
|
+
styles
|
|
18
|
+
} = {
|
|
19
|
+
...SideMediaCtaDefaults,
|
|
20
|
+
...props
|
|
21
|
+
};
|
|
22
|
+
const {
|
|
23
|
+
className: sectionClassName,
|
|
24
|
+
style: sectionStyle,
|
|
25
|
+
css,
|
|
26
|
+
mediaPosition = "right",
|
|
27
|
+
bordered = false
|
|
28
|
+
// formType = "buttons",
|
|
29
|
+
} = styles ?? {};
|
|
30
|
+
const renderActions = () => {
|
|
31
|
+
return /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) });
|
|
32
|
+
};
|
|
33
|
+
const textContent = /* @__PURE__ */ jsxs("div", { className: cn({ "flex flex-col justify-center p-8 md:p-12": bordered }), children: [
|
|
34
|
+
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
35
|
+
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
36
|
+
renderActions()
|
|
37
|
+
] });
|
|
38
|
+
const mediaContent = /* @__PURE__ */ jsx("div", { className: cn({ "flex items-center justify-center": bordered }), children: /* @__PURE__ */ jsx(CompoundImage, { src: (_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src, className: "w-full object-cover", alt: (_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt }) });
|
|
39
|
+
const isLeftMedia = mediaPosition === "left";
|
|
40
|
+
if (bordered) {
|
|
41
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-6 md:py-8 lg:py-10", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx("div", { className: "grid auto-cols-fr grid-cols-1 border border-border-primary lg:grid-cols-2", children: isLeftMedia ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
|
+
mediaContent,
|
|
43
|
+
textContent
|
|
44
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45
|
+
textContent,
|
|
46
|
+
mediaContent
|
|
47
|
+
] }) }) }) });
|
|
48
|
+
}
|
|
49
|
+
const textOrder = isLeftMedia ? "order-1 lg:order-2" : "";
|
|
50
|
+
const mediaOrder = isLeftMedia ? "order-2 lg:order-1" : "";
|
|
51
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-x-20 gap-y-12 md:gap-y-16 lg:grid-cols-2 lg:items-center", children: [
|
|
52
|
+
/* @__PURE__ */ jsx("div", { className: textOrder, children: textContent }),
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: mediaOrder, children: mediaContent })
|
|
54
|
+
] }) }) });
|
|
55
|
+
};
|
|
56
|
+
const SideMediaCtaDefaults = {
|
|
57
|
+
heading: "Medium length heading goes here",
|
|
58
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
59
|
+
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
60
|
+
images: [
|
|
61
|
+
{
|
|
62
|
+
src: "https://picsum.photos/seed/cta-side/800/600",
|
|
63
|
+
alt: "Placeholder image"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
video: "",
|
|
67
|
+
inputPlaceholder: "Enter your email",
|
|
68
|
+
formButton: { label: "Sign up" },
|
|
69
|
+
termsAndConditions: `
|
|
70
|
+
<p class='text-xs'>
|
|
71
|
+
By clicking Sign Up you're confirming that you agree with our
|
|
72
|
+
<a href='#' class='underline'>Terms and Conditions</a>.
|
|
73
|
+
</p>
|
|
74
|
+
`,
|
|
75
|
+
styles: {
|
|
76
|
+
mediaPosition: "right",
|
|
77
|
+
bordered: false,
|
|
78
|
+
formType: "buttons"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
SideMediaCta,
|
|
83
|
+
SideMediaCtaDefaults
|
|
84
|
+
};
|
|
@@ -25,7 +25,7 @@ declare const conf: {
|
|
|
25
25
|
readonly action: {
|
|
26
26
|
type: "custom";
|
|
27
27
|
label: string;
|
|
28
|
-
render: typeof import("
|
|
28
|
+
render: typeof import("../../..").ActionField;
|
|
29
29
|
};
|
|
30
30
|
readonly variant: {
|
|
31
31
|
readonly type: "select";
|
|
@@ -111,67 +111,6 @@ declare const conf: {
|
|
|
111
111
|
video: {
|
|
112
112
|
type: string;
|
|
113
113
|
};
|
|
114
|
-
inputPlaceholder: {
|
|
115
|
-
type: string;
|
|
116
|
-
};
|
|
117
|
-
formButton: {
|
|
118
|
-
readonly type: "object";
|
|
119
|
-
readonly objectFields: {
|
|
120
|
-
readonly label: {
|
|
121
|
-
readonly type: "text";
|
|
122
|
-
};
|
|
123
|
-
readonly action: {
|
|
124
|
-
type: "custom";
|
|
125
|
-
label: string;
|
|
126
|
-
render: typeof import("../../../puck-core").ActionField;
|
|
127
|
-
};
|
|
128
|
-
readonly variant: {
|
|
129
|
-
readonly type: "select";
|
|
130
|
-
readonly options: readonly [{
|
|
131
|
-
readonly label: "primary";
|
|
132
|
-
readonly value: "default";
|
|
133
|
-
}, {
|
|
134
|
-
readonly label: "secondary";
|
|
135
|
-
readonly value: "secondary";
|
|
136
|
-
}, {
|
|
137
|
-
readonly label: "outline";
|
|
138
|
-
readonly value: "outline";
|
|
139
|
-
}, {
|
|
140
|
-
readonly label: "ghost";
|
|
141
|
-
readonly value: "ghost";
|
|
142
|
-
}, {
|
|
143
|
-
readonly label: "link";
|
|
144
|
-
readonly value: "link";
|
|
145
|
-
}, {
|
|
146
|
-
readonly label: "destructive";
|
|
147
|
-
readonly value: "destructive";
|
|
148
|
-
}];
|
|
149
|
-
};
|
|
150
|
-
readonly size: {
|
|
151
|
-
readonly type: "select";
|
|
152
|
-
readonly options: readonly [{
|
|
153
|
-
readonly label: "default";
|
|
154
|
-
readonly value: "default";
|
|
155
|
-
}, {
|
|
156
|
-
readonly label: "sm";
|
|
157
|
-
readonly value: "sm";
|
|
158
|
-
}, {
|
|
159
|
-
readonly label: "lg";
|
|
160
|
-
readonly value: "lg";
|
|
161
|
-
}, {
|
|
162
|
-
readonly label: "icon";
|
|
163
|
-
readonly value: "icon";
|
|
164
|
-
}];
|
|
165
|
-
};
|
|
166
|
-
readonly icon: {
|
|
167
|
-
type: "custom";
|
|
168
|
-
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
termsAndConditions: {
|
|
173
|
-
type: string;
|
|
174
|
-
};
|
|
175
114
|
logos: {
|
|
176
115
|
readonly type: "array";
|
|
177
116
|
readonly max: 10;
|
|
@@ -263,17 +202,6 @@ declare const conf: {
|
|
|
263
202
|
readonly value: "false";
|
|
264
203
|
}];
|
|
265
204
|
};
|
|
266
|
-
formType: {
|
|
267
|
-
readonly type: "radio";
|
|
268
|
-
readonly label: "Form Type";
|
|
269
|
-
readonly options: readonly [{
|
|
270
|
-
readonly label: "Buttons";
|
|
271
|
-
readonly value: "buttons";
|
|
272
|
-
}, {
|
|
273
|
-
readonly label: "Email";
|
|
274
|
-
readonly value: "email";
|
|
275
|
-
}];
|
|
276
|
-
};
|
|
277
205
|
bottomContent: {
|
|
278
206
|
readonly type: "select";
|
|
279
207
|
readonly label: "Bottom Content";
|
|
@@ -291,7 +219,7 @@ declare const conf: {
|
|
|
291
219
|
};
|
|
292
220
|
};
|
|
293
221
|
};
|
|
294
|
-
defaultProps: import("../props").CtaSectionBaseProps & {
|
|
222
|
+
defaultProps: Omit<import("../props").CtaSectionBaseProps, "inputPlaceholder" | "formButton" | "termsAndConditions"> & {
|
|
295
223
|
logos: import("@/components/puck-core/core/props/media").BaseImage[];
|
|
296
224
|
};
|
|
297
225
|
render: (props: TextBlockCtaProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { TextBlockCta, TextBlockCtaDefaults } from "./text-block-cta.js";
|
|
2
|
+
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
+
import { imagesField } from "../../../puck-core/core/props/media.js";
|
|
5
|
+
import { ctaStyleFields } from "../props.js";
|
|
6
|
+
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
|
+
const conf = {
|
|
8
|
+
fields: {
|
|
9
|
+
heading: headingField,
|
|
10
|
+
description: descriptionField,
|
|
11
|
+
buttons: buttonsField,
|
|
12
|
+
images: imagesField,
|
|
13
|
+
video: { type: "text" },
|
|
14
|
+
// inputPlaceholder: { type: "text" },
|
|
15
|
+
// formButton: buttonField,
|
|
16
|
+
// termsAndConditions: { type: "textarea" },
|
|
17
|
+
logos: imagesField,
|
|
18
|
+
styles: {
|
|
19
|
+
type: "object",
|
|
20
|
+
label: "Styles",
|
|
21
|
+
objectFields: {
|
|
22
|
+
textLayout: ctaStyleFields.textLayout,
|
|
23
|
+
bgMedia: ctaStyleFields.bgMedia,
|
|
24
|
+
bordered: ctaStyleFields.bordered,
|
|
25
|
+
// formType: ctaStyleFields.formType,
|
|
26
|
+
bottomContent: ctaStyleFields.bottomContent,
|
|
27
|
+
...sectionWrapperFields
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
defaultProps: TextBlockCtaDefaults,
|
|
32
|
+
render: TextBlockCta
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
TextBlockCta,
|
|
36
|
+
TextBlockCtaDefaults,
|
|
37
|
+
conf as default
|
|
38
|
+
};
|
|
@@ -3,6 +3,6 @@ export type TextBlockCtaProps = CtaComponentProps<{
|
|
|
3
3
|
logos: BaseImage[];
|
|
4
4
|
}>;
|
|
5
5
|
export declare const TextBlockCta: (props: TextBlockCtaProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const TextBlockCtaDefaults: CtaSectionBaseProps & {
|
|
6
|
+
export declare const TextBlockCtaDefaults: Omit<CtaSectionBaseProps, "inputPlaceholder" | "formButton" | "termsAndConditions"> & {
|
|
7
7
|
logos: BaseImage[];
|
|
8
8
|
};
|