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
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs, Fragment, jsx } 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 TextBlockCta = (props) => {
|
|
8
|
+
const {
|
|
9
|
+
heading,
|
|
10
|
+
description,
|
|
11
|
+
buttons,
|
|
12
|
+
images,
|
|
13
|
+
video,
|
|
14
|
+
// inputPlaceholder,
|
|
15
|
+
// formButton,
|
|
16
|
+
// termsAndConditions,
|
|
17
|
+
styles,
|
|
18
|
+
logos
|
|
19
|
+
} = {
|
|
20
|
+
...TextBlockCtaDefaults,
|
|
21
|
+
...props
|
|
22
|
+
};
|
|
23
|
+
const {
|
|
24
|
+
className: sectionClassName,
|
|
25
|
+
style: sectionStyle,
|
|
26
|
+
css,
|
|
27
|
+
textLayout = "left",
|
|
28
|
+
bgMedia = "none",
|
|
29
|
+
bordered = false,
|
|
30
|
+
// formType = "buttons",
|
|
31
|
+
bottomContent = "none"
|
|
32
|
+
} = styles ?? {};
|
|
33
|
+
const hasBg = bgMedia !== "none";
|
|
34
|
+
const isFullscreenBg = bgMedia === "fullscreenImage" || bgMedia === "fullscreenVideo";
|
|
35
|
+
const isContainerBg = bgMedia === "containerImage" || bgMedia === "containerVideo";
|
|
36
|
+
const isBgImage = bgMedia === "fullscreenImage" || bgMedia === "containerImage";
|
|
37
|
+
const isBgVideo = bgMedia === "fullscreenVideo" || bgMedia === "containerVideo";
|
|
38
|
+
const isCenter = textLayout === "center";
|
|
39
|
+
const isTwoColumn = textLayout === "twoColumn";
|
|
40
|
+
const isInlineRow = textLayout === "inlineRow";
|
|
41
|
+
const renderActions = () => {
|
|
42
|
+
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)) });
|
|
43
|
+
};
|
|
44
|
+
const renderBottomContent = () => {
|
|
45
|
+
if (bottomContent === "image" && images && images.length > 0) {
|
|
46
|
+
return /* @__PURE__ */ jsx("div", { className: "mt-12 md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(
|
|
47
|
+
CompoundImage,
|
|
48
|
+
{
|
|
49
|
+
src: images[0].src,
|
|
50
|
+
alt: images[0].alt,
|
|
51
|
+
className: "w-full object-cover"
|
|
52
|
+
}
|
|
53
|
+
) });
|
|
54
|
+
}
|
|
55
|
+
if (bottomContent === "logos" && logos && logos.length > 0) {
|
|
56
|
+
return /* @__PURE__ */ jsx("div", { className: "mt-12 flex flex-wrap items-center justify-center gap-x-8 gap-y-6 md:mt-18 lg:mt-20", children: logos.map((logo, index) => /* @__PURE__ */ jsx(CompoundImage, { src: logo.src, alt: logo.alt, className: "max-h-12" }, index)) });
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
const renderBgMedia = () => {
|
|
61
|
+
var _a, _b;
|
|
62
|
+
if (!hasBg) return null;
|
|
63
|
+
if (isFullscreenBg) {
|
|
64
|
+
return /* @__PURE__ */ jsxs("div", { className: "absolute inset-0 z-0", children: [
|
|
65
|
+
isBgImage && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
+
/* @__PURE__ */ jsx(CompoundImage, { src: (_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src, className: "size-full object-cover", alt: (_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt }),
|
|
67
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
|
|
68
|
+
] }),
|
|
69
|
+
isBgVideo && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70
|
+
/* @__PURE__ */ jsx("video", { className: "size-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) }),
|
|
71
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-black/50" })
|
|
72
|
+
] })
|
|
73
|
+
] });
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
};
|
|
77
|
+
const renderContainerMedia = () => {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
if (!isContainerBg) return null;
|
|
80
|
+
return /* @__PURE__ */ jsxs("div", { className: "mt-12 md:mt-18 lg:mt-20", children: [
|
|
81
|
+
isBgImage && /* @__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 }),
|
|
82
|
+
isBgVideo && /* @__PURE__ */ jsx("video", { className: "w-full object-cover", autoPlay: true, loop: true, muted: true, children: /* @__PURE__ */ jsx("source", { src: video, type: "video/mp4" }) })
|
|
83
|
+
] });
|
|
84
|
+
};
|
|
85
|
+
const textColorClass = isFullscreenBg ? "text-text-alternative" : "";
|
|
86
|
+
const renderTextContent = () => {
|
|
87
|
+
if (isTwoColumn) {
|
|
88
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-y-5 md:grid-cols-2 md:gap-x-12 lg:gap-x-20", children: [
|
|
89
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("h2", { className: cn("mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", textColorClass), children: heading }) }),
|
|
90
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
91
|
+
/* @__PURE__ */ jsx("p", { className: cn("md:text-md", textColorClass), children: description }),
|
|
92
|
+
renderActions()
|
|
93
|
+
] })
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
if (isInlineRow) {
|
|
97
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-start gap-6 md:flex-row md:items-center md:justify-between", {
|
|
98
|
+
"border border-border-primary p-8 md:p-12": bordered && !isFullscreenBg
|
|
99
|
+
}), children: [
|
|
100
|
+
/* @__PURE__ */ jsx("h2", { className: cn("text-5xl font-bold md:text-7xl lg:text-8xl", textColorClass), children: heading }),
|
|
101
|
+
renderActions()
|
|
102
|
+
] });
|
|
103
|
+
}
|
|
104
|
+
if (isCenter) {
|
|
105
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("mx-auto max-w-lg text-center", textColorClass), children: [
|
|
106
|
+
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
107
|
+
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
108
|
+
renderActions()
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("w-full max-w-lg", textColorClass), children: [
|
|
112
|
+
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
113
|
+
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
114
|
+
renderActions()
|
|
115
|
+
] });
|
|
116
|
+
};
|
|
117
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", { relative: isFullscreenBg }, sectionClassName), style: sectionStyle, css, children: [
|
|
118
|
+
renderBgMedia(),
|
|
119
|
+
/* @__PURE__ */ jsxs("div", { className: cn("container", { "relative z-10": isFullscreenBg }), children: [
|
|
120
|
+
renderTextContent(),
|
|
121
|
+
renderContainerMedia(),
|
|
122
|
+
renderBottomContent()
|
|
123
|
+
] })
|
|
124
|
+
] });
|
|
125
|
+
};
|
|
126
|
+
const TextBlockCtaDefaults = {
|
|
127
|
+
heading: "Medium length heading goes here",
|
|
128
|
+
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
129
|
+
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
130
|
+
images: [
|
|
131
|
+
{
|
|
132
|
+
src: "https://picsum.photos/seed/cta-bg/1920/1080",
|
|
133
|
+
alt: "Placeholder image"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
src: "https://picsum.photos/seed/cta-bottom/1200/600",
|
|
137
|
+
alt: "Placeholder image"
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
video: "https://www.example.com/video.mp4",
|
|
141
|
+
// inputPlaceholder: "Enter your email",
|
|
142
|
+
// formButton: { label: "Sign up" },
|
|
143
|
+
// termsAndConditions: `
|
|
144
|
+
// <p class='text-xs'>
|
|
145
|
+
// By clicking Sign Up you're confirming that you agree with our
|
|
146
|
+
// <a href='#' class='underline'>Terms and Conditions</a>.
|
|
147
|
+
// </p>
|
|
148
|
+
// `,
|
|
149
|
+
logos: [
|
|
150
|
+
{ src: "https://picsum.photos/seed/logo1/120/40", alt: "Logo 1" },
|
|
151
|
+
{ src: "https://picsum.photos/seed/logo2/120/40", alt: "Logo 2" },
|
|
152
|
+
{ src: "https://picsum.photos/seed/logo3/120/40", alt: "Logo 3" }
|
|
153
|
+
],
|
|
154
|
+
styles: {
|
|
155
|
+
textLayout: "left",
|
|
156
|
+
bgMedia: "none",
|
|
157
|
+
bordered: false,
|
|
158
|
+
// formType: "buttons",
|
|
159
|
+
bottomContent: "none"
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
export {
|
|
163
|
+
TextBlockCta,
|
|
164
|
+
TextBlockCtaDefaults
|
|
165
|
+
};
|
|
@@ -96,7 +96,7 @@ const FeatureCardsGridDefaults = {
|
|
|
96
96
|
],
|
|
97
97
|
image: {
|
|
98
98
|
src: "https://picsum.photos/seed/feature-cards/800/600",
|
|
99
|
-
alt: "
|
|
99
|
+
alt: "Placeholder image"
|
|
100
100
|
},
|
|
101
101
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
102
102
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
@@ -38,7 +38,7 @@ declare const conf: {
|
|
|
38
38
|
readonly action: {
|
|
39
39
|
type: "custom";
|
|
40
40
|
label: string;
|
|
41
|
-
render: typeof import("
|
|
41
|
+
render: typeof import("../../..").ActionField;
|
|
42
42
|
};
|
|
43
43
|
readonly variant: {
|
|
44
44
|
readonly type: "select";
|
|
@@ -119,7 +119,7 @@ declare const conf: {
|
|
|
119
119
|
readonly action: {
|
|
120
120
|
type: "custom";
|
|
121
121
|
label: string;
|
|
122
|
-
render: typeof import("
|
|
122
|
+
render: typeof import("../../..").ActionField;
|
|
123
123
|
};
|
|
124
124
|
readonly variant: {
|
|
125
125
|
readonly type: "select";
|
|
@@ -93,7 +93,7 @@ const FeatureListSplitDefaults = {
|
|
|
93
93
|
],
|
|
94
94
|
image: {
|
|
95
95
|
src: "https://picsum.photos/seed/feature-list/800/600",
|
|
96
|
-
alt: "
|
|
96
|
+
alt: "Placeholder image"
|
|
97
97
|
},
|
|
98
98
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
99
99
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
@@ -38,7 +38,7 @@ declare const conf: {
|
|
|
38
38
|
readonly action: {
|
|
39
39
|
type: "custom";
|
|
40
40
|
label: string;
|
|
41
|
-
render: typeof import("
|
|
41
|
+
render: typeof import("../../..").ActionField;
|
|
42
42
|
};
|
|
43
43
|
readonly variant: {
|
|
44
44
|
readonly type: "select";
|
|
@@ -119,7 +119,7 @@ declare const conf: {
|
|
|
119
119
|
readonly action: {
|
|
120
120
|
type: "custom";
|
|
121
121
|
label: string;
|
|
122
|
-
render: typeof import("
|
|
122
|
+
render: typeof import("../../..").ActionField;
|
|
123
123
|
};
|
|
124
124
|
readonly variant: {
|
|
125
125
|
readonly type: "select";
|
|
@@ -9,47 +9,51 @@ import { CgSpinner } from "../../../../node_modules/.pnpm/react-icons@5.6.0_reac
|
|
|
9
9
|
import { cn } from "../../../../utils/css-utils.js";
|
|
10
10
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
11
11
|
const TabFeature = (props) => {
|
|
12
|
-
const {
|
|
12
|
+
const {
|
|
13
|
+
defaultTabValue,
|
|
14
|
+
tabs = [],
|
|
15
|
+
styles
|
|
16
|
+
} = {
|
|
13
17
|
...TabFeatureDefaults,
|
|
14
18
|
...props
|
|
15
19
|
};
|
|
16
|
-
const {
|
|
20
|
+
const {
|
|
21
|
+
className: sectionClassName,
|
|
22
|
+
style: sectionStyle,
|
|
23
|
+
css
|
|
24
|
+
} = styles ?? {};
|
|
17
25
|
const [isIframeLoaded, setIsIframeLoaded] = useState(false);
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
19
|
-
|
|
26
|
+
return /* @__PURE__ */ jsx(
|
|
27
|
+
SectionWrapper,
|
|
20
28
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
),
|
|
50
|
-
tab.videoUrl && tab.image && /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
51
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
52
|
-
/* @__PURE__ */ jsx(
|
|
29
|
+
className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
|
|
30
|
+
style: sectionStyle,
|
|
31
|
+
css,
|
|
32
|
+
children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs(
|
|
33
|
+
Tabs,
|
|
34
|
+
{
|
|
35
|
+
defaultValue: defaultTabValue,
|
|
36
|
+
className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20",
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ jsx(TabsList, { className: "col-start-1 col-end-2 row-start-1 row-end-2 h-full! w-full! grid grid-cols-1 items-center gap-x-4 gap-y-4", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
39
|
+
TabsTrigger,
|
|
40
|
+
{
|
|
41
|
+
value: tab.value,
|
|
42
|
+
className: "flex-col items-start justify-start whitespace-normal border-0 border-l-2 border-transparent py-2 px-2 pr-0 text-left data-[state=active]:border-black data-[state=active]:bg-transparent data-[state=active]:text-text-primary",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-3 text-2xl font-bold md:mb-2 md:text-3xl md:leading-[1.3] lg:text-4xl", children: tab.heading }),
|
|
45
|
+
/* @__PURE__ */ jsx("p", { children: tab.description })
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
tab.value
|
|
49
|
+
)) }),
|
|
50
|
+
/* @__PURE__ */ jsx("div", { className: "size-full flex items-center justify-center overflow-hidden", children: tabs.map((tab) => /* @__PURE__ */ jsxs(
|
|
51
|
+
TabsContent,
|
|
52
|
+
{
|
|
53
|
+
value: tab.value,
|
|
54
|
+
className: "data-[state=active]:animate-tabs",
|
|
55
|
+
children: [
|
|
56
|
+
tab.image && !tab.videoUrl && /* @__PURE__ */ jsx(
|
|
53
57
|
CompoundImage,
|
|
54
58
|
{
|
|
55
59
|
src: tab.image.src,
|
|
@@ -57,33 +61,45 @@ const TabFeature = (props) => {
|
|
|
57
61
|
className: "size-full object-cover"
|
|
58
62
|
}
|
|
59
63
|
),
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
"z-0 mx-auto aspect-video size-full md:w-[738px] lg:w-[940px]",
|
|
70
|
-
{ visible: isIframeLoaded, hidden: !isIframeLoaded }
|
|
64
|
+
tab.videoUrl && tab.image && /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
65
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs("button", { className: "relative flex w-full items-center justify-center", children: [
|
|
66
|
+
/* @__PURE__ */ jsx(
|
|
67
|
+
CompoundImage,
|
|
68
|
+
{
|
|
69
|
+
src: tab.image.src,
|
|
70
|
+
alt: tab.image.alt,
|
|
71
|
+
className: "size-full object-cover"
|
|
72
|
+
}
|
|
71
73
|
),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
74
|
+
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
|
|
75
|
+
/* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
|
|
76
|
+
] }) }),
|
|
77
|
+
/* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
78
|
+
!isIframeLoaded && /* @__PURE__ */ jsx(CgSpinner, { className: "mx-auto size-16 animate-spin text-white" }),
|
|
79
|
+
/* @__PURE__ */ jsx(
|
|
80
|
+
"iframe",
|
|
81
|
+
{
|
|
82
|
+
className: cn(
|
|
83
|
+
"z-0 mx-auto aspect-video size-full md:w-[738px] lg:w-[940px]",
|
|
84
|
+
{ visible: isIframeLoaded, hidden: !isIframeLoaded }
|
|
85
|
+
),
|
|
86
|
+
src: tab.videoUrl,
|
|
87
|
+
allow: "autoplay; encrypted-media; picture-in-picture",
|
|
88
|
+
allowFullScreen: true,
|
|
89
|
+
onLoad: () => setIsIframeLoaded(true)
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
] })
|
|
93
|
+
] })
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
tab.value
|
|
97
|
+
)) })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
) })
|
|
85
101
|
}
|
|
86
|
-
)
|
|
102
|
+
);
|
|
87
103
|
};
|
|
88
104
|
const TabFeatureDefaults = {
|
|
89
105
|
defaultTabValue: "tab-1",
|
|
@@ -94,7 +110,7 @@ const TabFeatureDefaults = {
|
|
|
94
110
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
95
111
|
image: {
|
|
96
112
|
src: "https://picsum.photos/seed/tab-feature1/800/600",
|
|
97
|
-
alt: "
|
|
113
|
+
alt: "Placeholder image 1"
|
|
98
114
|
}
|
|
99
115
|
},
|
|
100
116
|
{
|
|
@@ -103,7 +119,7 @@ const TabFeatureDefaults = {
|
|
|
103
119
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
104
120
|
image: {
|
|
105
121
|
src: "https://picsum.photos/seed/tab-feature2/800/600",
|
|
106
|
-
alt: "
|
|
122
|
+
alt: "Placeholder image 2"
|
|
107
123
|
}
|
|
108
124
|
},
|
|
109
125
|
{
|
|
@@ -112,7 +128,7 @@ const TabFeatureDefaults = {
|
|
|
112
128
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
113
129
|
image: {
|
|
114
130
|
src: "https://picsum.photos/seed/tab-feature3/800/600",
|
|
115
|
-
alt: "
|
|
131
|
+
alt: "Placeholder image 3"
|
|
116
132
|
}
|
|
117
133
|
}
|
|
118
134
|
]
|
|
@@ -78,7 +78,7 @@ const TextMediaSplitDefaults = {
|
|
|
78
78
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
79
79
|
image: {
|
|
80
80
|
src: "https://picsum.photos/seed/feature-split/800/600",
|
|
81
|
-
alt: "
|
|
81
|
+
alt: "Placeholder image"
|
|
82
82
|
},
|
|
83
83
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
84
84
|
styles: {
|
|
@@ -3,23 +3,64 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
3
3
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
4
4
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
5
|
const CenteredMinimalFooter = (props) => {
|
|
6
|
-
const {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
const {
|
|
7
|
+
logo,
|
|
8
|
+
columnLinks,
|
|
9
|
+
socialMediaLinks,
|
|
10
|
+
footerText,
|
|
11
|
+
footerLinks,
|
|
12
|
+
styles
|
|
13
|
+
} = { ...CenteredMinimalFooterDefaults, ...props };
|
|
14
|
+
const {
|
|
15
|
+
className: sectionClassName,
|
|
16
|
+
style: sectionStyle,
|
|
17
|
+
css
|
|
18
|
+
} = styles ?? {};
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
20
|
+
SectionWrapper,
|
|
21
|
+
{
|
|
22
|
+
className: cn("px-[5%] py-6 md:py-9 lg:py-10", sectionClassName),
|
|
23
|
+
style: sectionStyle,
|
|
24
|
+
css,
|
|
25
|
+
children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
26
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center justify-center justify-items-center gap-x-[4vw] gap-y-12 pb-12 md:pb-18 lg:grid-cols-[0.25fr_1fr_0.25fr] lg:justify-between lg:gap-y-4 lg:pb-20", children: [
|
|
27
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, className: "lg:justify-self-start", children: /* @__PURE__ */ jsx(
|
|
28
|
+
CompoundImage,
|
|
29
|
+
{
|
|
30
|
+
src: logo == null ? void 0 : logo.src,
|
|
31
|
+
alt: logo == null ? void 0 : logo.alt,
|
|
32
|
+
className: "inline-block"
|
|
33
|
+
}
|
|
34
|
+
) }),
|
|
35
|
+
columnLinks == null ? void 0 : columnLinks.map((col, i) => {
|
|
36
|
+
var _a;
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
"ul",
|
|
39
|
+
{
|
|
40
|
+
className: "grid grid-flow-row grid-cols-1 items-start justify-center justify-items-center gap-6 md:grid-flow-col md:grid-cols-[max-content] md:justify-center md:justify-items-start",
|
|
41
|
+
children: (_a = col.links) == null ? void 0 : _a.map((l, li) => /* @__PURE__ */ jsx("li", { className: "font-semibold", children: /* @__PURE__ */ jsx("a", { href: l.url, children: l.title }) }, li))
|
|
42
|
+
},
|
|
43
|
+
i
|
|
44
|
+
);
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-start justify-items-center gap-x-3 lg:justify-self-end", children: socialMediaLinks == null ? void 0 : socialMediaLinks.map((l, i) => /* @__PURE__ */ jsx("a", { href: l.url, children: l.icon }, i)) })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ jsx("div", { className: "h-px w-full bg-black" }),
|
|
49
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col-reverse items-center justify-center pb-4 pt-6 text-sm md:flex-row md:gap-x-6 md:pb-0 md:pt-8", children: [
|
|
50
|
+
/* @__PURE__ */ jsx("p", { className: "mt-8 md:mt-0", children: footerText }),
|
|
51
|
+
/* @__PURE__ */ jsx("ul", { className: "grid grid-flow-row grid-cols-[max-content] items-center justify-center gap-y-4 text-sm md:grid-flow-col md:gap-x-6 md:gap-y-0", children: footerLinks == null ? void 0 : footerLinks.map((l, i) => /* @__PURE__ */ jsx("li", { className: "underline", children: /* @__PURE__ */ jsx("a", { href: l.url, children: l.title }) }, i)) })
|
|
52
|
+
] })
|
|
53
|
+
] })
|
|
54
|
+
}
|
|
55
|
+
);
|
|
20
56
|
};
|
|
21
57
|
const CenteredMinimalFooterDefaults = {
|
|
22
|
-
|
|
58
|
+
__metadata: { type: "footer" },
|
|
59
|
+
logo: {
|
|
60
|
+
url: "#",
|
|
61
|
+
src: "https://file.springbrand.ai/web_assets/template-logo.svg",
|
|
62
|
+
alt: "Logo image"
|
|
63
|
+
},
|
|
23
64
|
heading: "",
|
|
24
65
|
description: "",
|
|
25
66
|
buttons: [],
|
|
@@ -28,9 +69,22 @@ const CenteredMinimalFooterDefaults = {
|
|
|
28
69
|
inputPlaceholder: "",
|
|
29
70
|
button: { label: "" },
|
|
30
71
|
termsAndConditions: "",
|
|
31
|
-
columnLinks: [
|
|
32
|
-
|
|
33
|
-
|
|
72
|
+
columnLinks: [
|
|
73
|
+
{
|
|
74
|
+
links: [
|
|
75
|
+
{ title: "Link One", url: "#" },
|
|
76
|
+
{ title: "Link Two", url: "#" },
|
|
77
|
+
{ title: "Link Three", url: "#" },
|
|
78
|
+
{ title: "Link Four", url: "#" },
|
|
79
|
+
{ title: "Link Five", url: "#" }
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
footerText: "© 2024 Company. All rights reserved.",
|
|
84
|
+
footerLinks: [
|
|
85
|
+
{ title: "Privacy Policy", url: "#" },
|
|
86
|
+
{ title: "Terms of Service", url: "#" }
|
|
87
|
+
],
|
|
34
88
|
socialMediaLinks: [],
|
|
35
89
|
address: { label: "", value: "" },
|
|
36
90
|
contact: { label: "", phone: "", email: "" },
|