dune-react 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/puck-base/button.js +2 -1
- package/dist/components/puck-base/core/fields.d.ts +1 -127
- package/dist/components/puck-base/core/fields.js +1 -76
- package/dist/components/puck-base/core/styles.d.ts +1877 -0
- package/dist/components/puck-base/core/styles.js +286 -0
- package/dist/components/puck-base/core/with-editable.d.ts +4 -1
- package/dist/components/puck-base/core/with-editable.js +51 -27
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.d.ts +9 -7
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.js +11 -8
- package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +19 -37
- package/dist/components/puck-block/banner-sections/marquee-1/index.js +26 -24
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.d.ts +9 -9
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.js +28 -21
- package/dist/components/puck-block/banner-sections/props.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.d.ts +13 -4
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.js +114 -105
- package/dist/components/puck-block/contact-sections/contact-us-1/index.js +87 -7
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.d.ts +15 -11
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +27 -22
- package/dist/components/puck-block/contact-sections/contact-us-2/index.js +54 -52
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +15 -12
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +29 -24
- package/dist/components/puck-block/contact-sections/contact-us-3/index.js +73 -60
- package/dist/components/puck-block/contact-sections/props.d.ts +65 -0
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.d.ts +12 -9
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.js +27 -30
- package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +23 -25
- package/dist/components/puck-block/cta-sections/cta-1/cta.d.ts +6 -4
- package/dist/components/puck-block/cta-sections/cta-1/cta.js +5 -7
- package/dist/components/puck-block/cta-sections/cta-1/index.js +5 -9
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.d.ts +10 -10
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.js +24 -20
- package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +36 -29
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +13 -5
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.d.ts +7 -3
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.js +35 -32
- package/dist/components/puck-block/cta-sections/promo-section-1/index.js +4 -5
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.d.ts +6 -4
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.js +93 -79
- package/dist/components/puck-block/cta-sections/props.d.ts +47 -0
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.d.ts +6 -4
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.js +39 -33
- package/dist/components/puck-block/faq-sections/accordion-1/index.js +3 -5
- package/dist/components/puck-block/faq-sections/faq-1/faq.d.ts +9 -7
- package/dist/components/puck-block/faq-sections/faq-1/faq.js +50 -44
- package/dist/components/puck-block/faq-sections/faq-1/index.js +12 -14
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.d.ts +6 -4
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +4 -6
- package/dist/components/puck-block/faq-sections/faq-2/index.js +4 -5
- package/dist/components/puck-block/faq-sections/props.d.ts +30 -0
- package/dist/components/puck-block/feature-sections/bento-1/bento.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/bento-1/bento.js +2 -4
- package/dist/components/puck-block/feature-sections/bento-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +2 -4
- package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.js +2 -4
- package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.js +59 -53
- package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +7 -8
- package/dist/components/puck-block/feature-sections/product-features-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.js +2 -4
- package/dist/components/puck-block/feature-sections/props.d.ts +48 -0
- package/dist/components/puck-block/footer-sections/footer-1/footer.d.ts +5 -3
- package/dist/components/puck-block/footer-sections/footer-1/footer.js +6 -6
- package/dist/components/puck-block/footer-sections/footer-1/index.js +3 -5
- package/dist/components/puck-block/footer-sections/props.d.ts +31 -0
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.d.ts +9 -7
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.js +48 -40
- package/dist/components/puck-block/gallery-sections/gallery-1/index.js +32 -34
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.d.ts +6 -4
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +5 -7
- package/dist/components/puck-block/gallery-sections/gallery-2/index.js +3 -5
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +7 -5
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +5 -7
- package/dist/components/puck-block/gallery-sections/gallery-3/index.js +13 -14
- package/dist/components/puck-block/gallery-sections/props.d.ts +26 -0
- package/dist/components/puck-block/header-sections/header-1/header.d.ts +7 -5
- package/dist/components/puck-block/header-sections/header-1/header.js +8 -9
- package/dist/components/puck-block/header-sections/header-1/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/header-1/index.js +13 -12
- package/dist/components/puck-block/header-sections/props.d.ts +41 -0
- package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +12 -12
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.d.ts +8 -6
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.d.ts +7 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +5 -4
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +17 -16
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +8 -4
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +36 -26
- package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +18 -15
- package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.d.ts +7 -6
- package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.js +7 -10
- package/dist/components/puck-block/hero-sections/grid-hero-1/index.js +43 -11
- package/dist/components/puck-block/hero-sections/hero-1/hero.d.ts +6 -4
- package/dist/components/puck-block/hero-sections/hero-1/hero.js +5 -7
- package/dist/components/puck-block/hero-sections/hero-1/index.js +4 -4
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.d.ts +10 -7
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +65 -59
- package/dist/components/puck-block/hero-sections/image-hero-1/index.js +16 -34
- package/dist/components/puck-block/hero-sections/props.d.ts +71 -0
- package/dist/components/puck-block/hero-sections/split-hero-1/index.js +6 -5
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.d.ts +8 -8
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.js +48 -47
- package/dist/components/puck-block/hero-sections/video-hero-1/index.js +4 -3
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.d.ts +6 -2
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.js +30 -22
- package/dist/components/puck-block/location-sections/location-1/index.js +47 -42
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +7 -6
- package/dist/components/puck-block/location-sections/location-1/location.js +7 -13
- package/dist/components/puck-block/location-sections/location-2/index.js +69 -57
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +11 -6
- package/dist/components/puck-block/location-sections/location-2/location.js +7 -12
- package/dist/components/puck-block/location-sections/location-3/index.js +25 -24
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +8 -6
- package/dist/components/puck-block/location-sections/location-3/location.js +7 -9
- package/dist/components/puck-block/location-sections/props.d.ts +45 -0
- package/dist/components/puck-block/metrics-sections/props.d.ts +43 -0
- package/dist/components/puck-block/metrics-sections/stats-1/index.js +6 -7
- package/dist/components/puck-block/metrics-sections/stats-1/stats.d.ts +7 -5
- package/dist/components/puck-block/metrics-sections/stats-1/stats.js +61 -55
- package/dist/components/puck-block/metrics-sections/stats-2/index.js +4 -5
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +6 -4
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +4 -6
- package/dist/components/puck-block/metrics-sections/stats-3/index.js +21 -29
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +7 -6
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +9 -13
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.d.ts +7 -5
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.js +45 -39
- package/dist/components/puck-block/pricing-sections/comparison-1/index.js +5 -7
- package/dist/components/puck-block/pricing-sections/pricing-1/index.js +10 -11
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.d.ts +8 -6
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.js +47 -35
- package/dist/components/puck-block/pricing-sections/pricing-2/index.js +7 -8
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +6 -4
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +60 -57
- package/dist/components/puck-block/pricing-sections/props.d.ts +46 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.d.ts +7 -5
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +8 -10
- package/dist/components/puck-block/showcase-sections/before-after-1/index.js +6 -7
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.d.ts +6 -2
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.js +29 -21
- package/dist/components/puck-block/showcase-sections/case-study-1/index.js +4 -3
- package/dist/components/puck-block/showcase-sections/props.d.ts +48 -0
- package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +3 -5
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.d.ts +6 -4
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.js +38 -41
- package/dist/components/puck-block/team-sections/props.d.ts +39 -0
- package/dist/components/puck-block/team-sections/team-grid-1/index.js +4 -5
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.js +23 -17
- package/dist/components/puck-block/team-sections/team-grid-2/index.js +4 -5
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +5 -7
- package/dist/components/puck-block/team-sections/team-profiles-1/index.js +4 -5
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +5 -7
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.d.ts +9 -7
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.js +8 -11
- package/dist/components/puck-block/testimonial-sections/customers-1/index.js +17 -17
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +15 -12
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.d.ts +7 -3
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.js +33 -24
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +17 -16
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +6 -4
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +5 -7
- package/dist/components/puck-block/testimonial-sections/props.d.ts +34 -0
- package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +16 -15
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts +8 -6
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.js +22 -17
- package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +17 -17
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.d.ts +8 -6
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.js +76 -63
- package/dist/components/puck-block/text-sections/articles-1/articles.d.ts +7 -5
- package/dist/components/puck-block/text-sections/articles-1/articles.js +41 -34
- package/dist/components/puck-block/text-sections/articles-1/index.js +24 -24
- package/dist/components/puck-block/text-sections/content-section-1/content-section.d.ts +7 -5
- package/dist/components/puck-block/text-sections/content-section-1/content-section.js +6 -8
- package/dist/components/puck-block/text-sections/content-section-1/index.js +14 -14
- package/dist/components/puck-block/text-sections/props.d.ts +58 -0
- package/dist/components/puck-block/text-sections/rich-text-1/index.js +13 -15
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.d.ts +7 -5
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +11 -11
- package/dist/components/puck-block/text-sections/tab-section-1/index.js +4 -5
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.d.ts +6 -4
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.js +3 -5
- package/dist/components/puck-block/text-sections/timeline-1/index.js +3 -5
- package/dist/components/puck-block/text-sections/timeline-1/timeline.d.ts +6 -4
- package/dist/components/puck-block/text-sections/timeline-1/timeline.js +3 -5
- package/dist/components/puck-block/text-sections/two-column-1/index.js +4 -6
- package/dist/components/puck-block/text-sections/two-column-1/two-column.d.ts +6 -4
- package/dist/components/puck-block/text-sections/two-column-1/two-column.js +5 -7
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -1,53 +1,50 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
3
3
|
const StepByStep = ({
|
|
4
|
-
padding,
|
|
5
|
-
sectionStyle,
|
|
6
|
-
backgroundColor,
|
|
7
4
|
heading,
|
|
8
5
|
description,
|
|
9
6
|
layout = "horizontal",
|
|
10
|
-
steps = []
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ jsx("
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
33
|
-
/* @__PURE__ */ jsx("
|
|
34
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-2", children: step.description })
|
|
35
|
-
] })
|
|
36
|
-
] }, i)) })
|
|
37
|
-
) : (
|
|
38
|
-
// Horizontal (default) — cards in a row with connecting line
|
|
39
|
-
/* @__PURE__ */ jsxs("div", { className: "relative grid grid-cols-1 md:grid-cols-3 gap-8", children: [
|
|
40
|
-
/* @__PURE__ */ jsx("div", { className: "hidden md:block bg-border absolute top-6 left-[calc(16.66%+1rem)] right-[calc(16.66%+1rem)] h-px" }),
|
|
41
|
-
steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center gap-4 relative", children: [
|
|
42
|
-
/* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10 flex-shrink-0", children: step.stepNumber || String(i + 1) }),
|
|
7
|
+
steps = [],
|
|
8
|
+
styles
|
|
9
|
+
}) => /* @__PURE__ */ jsxs(
|
|
10
|
+
CompoundContainer,
|
|
11
|
+
{
|
|
12
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
13
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
14
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
15
|
+
children: [
|
|
16
|
+
(heading || description) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center max-w-2xl mx-auto", children: [
|
|
17
|
+
heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
|
|
18
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4 text-lg", children: description })
|
|
19
|
+
] }),
|
|
20
|
+
layout === "vertical" ? /* @__PURE__ */ jsxs("div", { className: "relative max-w-2xl mx-auto", children: [
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "bg-border absolute top-0 bottom-0 left-6 w-px" }),
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "space-y-10", children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "relative flex gap-8 pl-4", children: [
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground flex-shrink-0 w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10", children: step.stepNumber || String(i + 1) }),
|
|
24
|
+
/* @__PURE__ */ jsxs("div", { className: "pb-4", children: [
|
|
25
|
+
/* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
|
|
26
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1", children: step.description })
|
|
27
|
+
] })
|
|
28
|
+
] }, i)) })
|
|
29
|
+
] }) : layout === "numbered" ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8", children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "text-primary text-5xl font-black leading-none opacity-20 flex-shrink-0", children: step.stepNumber || String(i + 1).padStart(2, "0") }),
|
|
43
31
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
44
32
|
/* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
|
|
45
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-
|
|
33
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-2", children: step.description })
|
|
46
34
|
] })
|
|
47
|
-
] }, i))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
35
|
+
] }, i)) }) : /* @__PURE__ */ jsxs("div", { className: "relative grid grid-cols-1 md:grid-cols-3 gap-8", children: [
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: "hidden md:block bg-border absolute top-6 left-[calc(16.66%+1rem)] right-[calc(16.66%+1rem)] h-px" }),
|
|
37
|
+
steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center gap-4 relative", children: [
|
|
38
|
+
/* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10 flex-shrink-0", children: step.stepNumber || String(i + 1) }),
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
40
|
+
/* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
|
|
41
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 text-sm", children: step.description })
|
|
42
|
+
] })
|
|
43
|
+
] }, i))
|
|
44
|
+
] })
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
51
48
|
export {
|
|
52
49
|
StepByStep
|
|
53
50
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type TeamVariant = "team-grid-1" | "team-grid-2" | "team-profiles-1";
|
|
2
|
+
type TeamPadding = {
|
|
3
|
+
top?: "none" | "small" | "medium" | "large";
|
|
4
|
+
bottom?: "none" | "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
type TeamSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
|
|
7
|
+
type TeamButton = {
|
|
8
|
+
label: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
|
|
11
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
12
|
+
icon?: string;
|
|
13
|
+
};
|
|
14
|
+
type TeamImage = {
|
|
15
|
+
src: string;
|
|
16
|
+
alt?: string;
|
|
17
|
+
};
|
|
18
|
+
type TeamMember = {
|
|
19
|
+
name: string;
|
|
20
|
+
role: string;
|
|
21
|
+
image?: TeamImage;
|
|
22
|
+
description?: string;
|
|
23
|
+
instagramUrl?: string;
|
|
24
|
+
linkedinUrl?: string;
|
|
25
|
+
};
|
|
26
|
+
type TeamSectionProps = {
|
|
27
|
+
variant?: TeamVariant;
|
|
28
|
+
heading?: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
buttons?: TeamButton[];
|
|
31
|
+
members?: TeamMember[];
|
|
32
|
+
columns?: 2 | 3 | 4;
|
|
33
|
+
layout?: "card" | "simple" | "round";
|
|
34
|
+
styles?: {
|
|
35
|
+
padding?: TeamPadding;
|
|
36
|
+
sectionStyle?: TeamSectionStyle;
|
|
37
|
+
backgroundColor?: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image, description, heading } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { TeamGrid } from "./team-grid.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const defaultMember = {
|
|
4
5
|
name: "Jane Smith",
|
|
5
6
|
role: "CEO & Co-founder",
|
|
@@ -42,9 +43,7 @@ const conf = {
|
|
|
42
43
|
{ label: "Round Avatar", value: "round" }
|
|
43
44
|
]
|
|
44
45
|
},
|
|
45
|
-
|
|
46
|
-
sectionStyle,
|
|
47
|
-
backgroundColor
|
|
46
|
+
styles: createStylesField()
|
|
48
47
|
},
|
|
49
48
|
defaultProps: {
|
|
50
49
|
heading: "Meet Our Team",
|
|
@@ -57,7 +56,7 @@ const conf = {
|
|
|
57
56
|
{ ...defaultMember, name: "Sarah Williams", role: "Head of Design" },
|
|
58
57
|
{ ...defaultMember, name: "Michael Chen", role: "Lead Engineer" }
|
|
59
58
|
],
|
|
60
|
-
|
|
59
|
+
styles: createStylesDefaults()
|
|
61
60
|
},
|
|
62
61
|
render: TeamGrid
|
|
63
62
|
};
|
|
@@ -9,13 +9,15 @@ export interface TeamMember {
|
|
|
9
9
|
bio?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface TeamGridProps {
|
|
12
|
-
padding?: CompoundContainerProps["padding"];
|
|
13
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
14
|
-
backgroundColor?: string;
|
|
15
12
|
heading?: string;
|
|
16
13
|
description?: string;
|
|
17
14
|
members?: TeamMember[];
|
|
18
15
|
columns?: 2 | 3 | 4;
|
|
19
16
|
layout?: "card" | "simple" | "round";
|
|
17
|
+
styles?: {
|
|
18
|
+
padding?: CompoundContainerProps["padding"];
|
|
19
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
};
|
|
20
22
|
}
|
|
21
|
-
export declare const TeamGrid: ({
|
|
23
|
+
export declare const TeamGrid: ({ heading, description, members, columns, layout, styles, }: TeamGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,27 +8,33 @@ const columnClasses = {
|
|
|
8
8
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
9
9
|
};
|
|
10
10
|
const TeamGrid = ({
|
|
11
|
-
padding,
|
|
12
|
-
sectionStyle,
|
|
13
|
-
backgroundColor,
|
|
14
11
|
heading,
|
|
15
12
|
description,
|
|
16
13
|
members = [],
|
|
17
14
|
columns = 3,
|
|
18
|
-
layout = "card"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
className:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
layout = "card",
|
|
16
|
+
styles
|
|
17
|
+
}) => /* @__PURE__ */ jsx(
|
|
18
|
+
CompoundContainer,
|
|
19
|
+
{
|
|
20
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
21
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
22
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
23
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-12", children: [
|
|
24
|
+
(heading || description) && /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
25
|
+
heading && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
|
|
26
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mx-auto mt-4 max-w-2xl text-lg", children: description })
|
|
27
|
+
] }),
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: cn("grid gap-8", columnClasses[columns] ?? columnClasses[3]),
|
|
32
|
+
children: members.map((member, index) => /* @__PURE__ */ jsx(MemberCard, { member, layout }, index))
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] })
|
|
36
|
+
}
|
|
37
|
+
);
|
|
32
38
|
const MemberCard = ({
|
|
33
39
|
member,
|
|
34
40
|
layout
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image1x1Placeholder, image, buttons } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { TeamGrid2 } from "./team-grid-2.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const defaultMember = {
|
|
4
5
|
name: "Jane Smith",
|
|
5
6
|
role: "Founder & Head Trainer",
|
|
@@ -23,9 +24,7 @@ const conf = {
|
|
|
23
24
|
},
|
|
24
25
|
defaultItemProps: defaultMember
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
-
sectionStyle,
|
|
28
|
-
backgroundColor
|
|
27
|
+
styles: createStylesField()
|
|
29
28
|
},
|
|
30
29
|
defaultProps: {
|
|
31
30
|
heading: "Your personal\nfitness partner",
|
|
@@ -54,7 +53,7 @@ const conf = {
|
|
|
54
53
|
{ ...defaultMember, name: "Sarah Williams", role: "Strength Coach" },
|
|
55
54
|
{ ...defaultMember, name: "Michael Chen", role: "Nutrition Coach" }
|
|
56
55
|
],
|
|
57
|
-
|
|
56
|
+
styles: createStylesDefaults()
|
|
58
57
|
},
|
|
59
58
|
render: TeamGrid2
|
|
60
59
|
};
|
|
@@ -10,12 +10,14 @@ export interface TeamMember2 {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
}
|
|
12
12
|
export interface TeamGrid2Props {
|
|
13
|
-
padding?: CompoundContainerProps["padding"];
|
|
14
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
15
|
-
backgroundColor?: string;
|
|
16
13
|
heading?: string;
|
|
17
14
|
description?: string;
|
|
18
15
|
buttons?: CompoundButtonProps[];
|
|
19
16
|
members?: TeamMember2[];
|
|
17
|
+
styles?: {
|
|
18
|
+
padding?: CompoundContainerProps["padding"];
|
|
19
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
};
|
|
20
22
|
}
|
|
21
|
-
export declare const TeamGrid2: ({
|
|
23
|
+
export declare const TeamGrid2: ({ heading, description, buttons, members, styles, }: TeamGrid2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,19 +3,17 @@ import { CompoundContainer } from "../../../puck-base/container.js";
|
|
|
3
3
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
4
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
5
|
const TeamGrid2 = ({
|
|
6
|
-
padding,
|
|
7
|
-
sectionStyle,
|
|
8
|
-
backgroundColor,
|
|
9
6
|
heading,
|
|
10
7
|
description,
|
|
11
8
|
buttons = [],
|
|
12
|
-
members = []
|
|
9
|
+
members = [],
|
|
10
|
+
styles
|
|
13
11
|
}) => /* @__PURE__ */ jsx(
|
|
14
12
|
CompoundContainer,
|
|
15
13
|
{
|
|
16
|
-
padding,
|
|
17
|
-
sectionStyle,
|
|
18
|
-
backgroundColor,
|
|
14
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
15
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
16
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
19
17
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:gap-16", children: [
|
|
20
18
|
(heading || description || buttons.length > 0) && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 md:gap-8 lg:flex-row lg:justify-between", children: [
|
|
21
19
|
heading && /* @__PURE__ */ jsx("div", { className: "w-full lg:basis-1/2", children: /* @__PURE__ */ jsx("h2", { className: "text-foreground max-w-xl text-4xl font-bold leading-tight tracking-tight md:text-5xl whitespace-pre-line", children: heading }) }),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image1x1Placeholder, image } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { TeamProfiles } from "./team-profiles.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const defaultMember = {
|
|
4
5
|
name: "Jane Smith",
|
|
5
6
|
role: "CEO & Co-founder",
|
|
@@ -26,9 +27,7 @@ const conf = {
|
|
|
26
27
|
},
|
|
27
28
|
defaultItemProps: defaultMember
|
|
28
29
|
},
|
|
29
|
-
|
|
30
|
-
sectionStyle,
|
|
31
|
-
backgroundColor
|
|
30
|
+
styles: createStylesField()
|
|
32
31
|
},
|
|
33
32
|
defaultProps: {
|
|
34
33
|
heading: "Your Personal\ntraining partner",
|
|
@@ -45,7 +44,7 @@ const conf = {
|
|
|
45
44
|
role: "Strength & Conditioning Coach"
|
|
46
45
|
}
|
|
47
46
|
],
|
|
48
|
-
|
|
47
|
+
styles: createStylesDefaults()
|
|
49
48
|
},
|
|
50
49
|
render: TeamProfiles
|
|
51
50
|
};
|
|
@@ -11,11 +11,13 @@ export interface TeamMemberProfile {
|
|
|
11
11
|
linkedinUrl?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface TeamProfilesProps {
|
|
14
|
-
padding?: CompoundContainerProps["padding"];
|
|
15
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
16
|
-
backgroundColor?: string;
|
|
17
14
|
heading?: string;
|
|
18
15
|
description?: string;
|
|
19
16
|
members?: TeamMemberProfile[];
|
|
17
|
+
styles?: {
|
|
18
|
+
padding?: CompoundContainerProps["padding"];
|
|
19
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
};
|
|
20
22
|
}
|
|
21
|
-
export declare const TeamProfiles: ({
|
|
23
|
+
export declare const TeamProfiles: ({ heading, description, members, styles, }: TeamProfilesProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -42,18 +42,16 @@ const LinkedInIcon = () => /* @__PURE__ */ jsx(
|
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
const TeamProfiles = ({
|
|
45
|
-
padding,
|
|
46
|
-
sectionStyle,
|
|
47
|
-
backgroundColor,
|
|
48
45
|
heading,
|
|
49
46
|
description,
|
|
50
|
-
members = []
|
|
47
|
+
members = [],
|
|
48
|
+
styles
|
|
51
49
|
}) => /* @__PURE__ */ jsx(
|
|
52
50
|
CompoundContainer,
|
|
53
51
|
{
|
|
54
|
-
padding,
|
|
55
|
-
sectionStyle,
|
|
56
|
-
backgroundColor,
|
|
52
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
53
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
54
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
57
55
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:gap-16", children: [
|
|
58
56
|
(heading || description) && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 md:gap-8 lg:flex-row lg:justify-between", children: [
|
|
59
57
|
heading && /* @__PURE__ */ jsx("div", { className: "w-full lg:basis-1/2", children: /* @__PURE__ */ jsx("h2", { className: "text-foreground max-w-xl text-4xl font-bold leading-tight tracking-tight md:text-5xl", children: heading }) }),
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundImageProps } from "@/components/puck-base/image";
|
|
3
3
|
export interface CustomersProps {
|
|
4
|
-
padding?: CompoundContainerProps["padding"];
|
|
5
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
layout?: "section" | "inline";
|
|
8
4
|
heading: string;
|
|
9
|
-
|
|
10
|
-
name
|
|
5
|
+
items: {
|
|
6
|
+
name?: string;
|
|
11
7
|
image?: CompoundImageProps;
|
|
12
8
|
url?: string;
|
|
13
9
|
}[];
|
|
10
|
+
styles?: {
|
|
11
|
+
padding?: CompoundContainerProps["padding"];
|
|
12
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
layout?: "section" | "inline";
|
|
15
|
+
};
|
|
14
16
|
}
|
|
15
|
-
export declare const Customers: ({
|
|
17
|
+
export declare const Customers: ({ heading, items, styles, }: CustomersProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,19 +7,16 @@ import { Carousel, CarouselContent, CarouselItem } from "../../../shadcn/carouse
|
|
|
7
7
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
8
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
9
|
const Customers = ({
|
|
10
|
-
padding,
|
|
11
|
-
sectionStyle,
|
|
12
|
-
backgroundColor,
|
|
13
|
-
layout = "section",
|
|
14
10
|
heading,
|
|
15
|
-
|
|
11
|
+
items,
|
|
12
|
+
styles
|
|
16
13
|
}) => {
|
|
17
14
|
const [api, setApi] = useState();
|
|
18
15
|
const [currentIndex, setCurrentIndex] = useState(0);
|
|
19
16
|
const [isPaused, setIsPaused] = useState(false);
|
|
20
17
|
const prefersReducedMotion = usePrefersReducedMotion();
|
|
21
|
-
const isSectionLayout = layout === "section";
|
|
22
|
-
const isInlineLayout = layout === "inline";
|
|
18
|
+
const isSectionLayout = ((styles == null ? void 0 : styles.layout) ?? "section") === "section";
|
|
19
|
+
const isInlineLayout = (styles == null ? void 0 : styles.layout) === "inline";
|
|
23
20
|
useEffect(() => {
|
|
24
21
|
if (!api || prefersReducedMotion || isPaused) {
|
|
25
22
|
return;
|
|
@@ -38,9 +35,9 @@ const Customers = ({
|
|
|
38
35
|
return /* @__PURE__ */ jsx(
|
|
39
36
|
CompoundContainer,
|
|
40
37
|
{
|
|
41
|
-
padding,
|
|
42
|
-
sectionStyle,
|
|
43
|
-
backgroundColor,
|
|
38
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
39
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
40
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
44
41
|
children: /* @__PURE__ */ jsxs(
|
|
45
42
|
"div",
|
|
46
43
|
{
|
|
@@ -80,7 +77,7 @@ const Customers = ({
|
|
|
80
77
|
onMouseOut: () => {
|
|
81
78
|
setIsPaused(false);
|
|
82
79
|
},
|
|
83
|
-
children: /* @__PURE__ */ jsx(CarouselContent, { children:
|
|
80
|
+
children: /* @__PURE__ */ jsx(CarouselContent, { children: items.map((customer, index) => {
|
|
84
81
|
var _a;
|
|
85
82
|
return /* @__PURE__ */ jsx(CarouselItem, { className: "basis-1/4 lg:basis-1/6", children: /* @__PURE__ */ jsx("div", { className: "bg-muted flex aspect-square items-center justify-center rounded-md p-6", children: ((_a = customer.image) == null ? void 0 : _a.src) ? /* @__PURE__ */ jsx(
|
|
86
83
|
CompoundImage,
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image1x1Placeholder, image, heading, getPlaceholderImageUrl } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { Customers } from "./customers.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
4
|
+
const customersStylesField = createStylesField({
|
|
5
|
+
layout: {
|
|
6
|
+
type: "radio",
|
|
7
|
+
label: "Layout",
|
|
8
|
+
options: [
|
|
9
|
+
{ label: "Section", value: "section" },
|
|
10
|
+
{ label: "Inline", value: "inline" }
|
|
11
|
+
]
|
|
12
|
+
}
|
|
13
|
+
});
|
|
3
14
|
const conf = {
|
|
4
15
|
fields: {
|
|
5
16
|
heading,
|
|
6
|
-
|
|
17
|
+
items: {
|
|
7
18
|
type: "array",
|
|
8
19
|
max: 15,
|
|
9
20
|
getItemSummary: (item, index = 0) => item.name || `Customer ${index + 1}`,
|
|
@@ -16,29 +27,18 @@ const conf = {
|
|
|
16
27
|
image: image1x1Placeholder
|
|
17
28
|
}
|
|
18
29
|
},
|
|
19
|
-
|
|
20
|
-
type: "radio",
|
|
21
|
-
options: [
|
|
22
|
-
{
|
|
23
|
-
label: "section",
|
|
24
|
-
value: "section"
|
|
25
|
-
},
|
|
26
|
-
{ label: "inline", value: "inline" }
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
padding
|
|
30
|
+
styles: customersStylesField
|
|
30
31
|
},
|
|
31
32
|
defaultProps: {
|
|
32
|
-
padding: paddingDefaults,
|
|
33
|
-
layout: "section",
|
|
34
33
|
heading: "Trusted by hundreds of businesses worldwide",
|
|
35
|
-
|
|
34
|
+
items: Array.from({ length: 10 }).map((_, index) => ({
|
|
36
35
|
name: `Customer ${index + 1}`,
|
|
37
36
|
image: {
|
|
38
37
|
src: getPlaceholderImageUrl("1000x1000", `Customer ${index + 1}`),
|
|
39
38
|
alt: ""
|
|
40
39
|
}
|
|
41
|
-
}))
|
|
40
|
+
})),
|
|
41
|
+
styles: createStylesDefaults({ layout: "section" })
|
|
42
42
|
},
|
|
43
43
|
render: Customers
|
|
44
44
|
};
|
|
@@ -1,9 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getPlaceholderImageUrl } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { LogoMarquee } from "./logo-marquee.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const logoPlaceholder = (name) => ({
|
|
4
5
|
src: getPlaceholderImageUrl("200x60", name),
|
|
5
6
|
alt: name
|
|
6
7
|
});
|
|
8
|
+
const marqueeStylesField = createStylesField({
|
|
9
|
+
speed: {
|
|
10
|
+
type: "radio",
|
|
11
|
+
label: "Speed",
|
|
12
|
+
options: [
|
|
13
|
+
{ label: "Slow", value: "slow" },
|
|
14
|
+
{ label: "Normal", value: "normal" },
|
|
15
|
+
{ label: "Fast", value: "fast" }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
7
19
|
const conf = {
|
|
8
20
|
fields: {
|
|
9
21
|
heading: { type: "text", contentEditable: true },
|
|
@@ -17,15 +29,7 @@ const conf = {
|
|
|
17
29
|
},
|
|
18
30
|
defaultItemProps: logoPlaceholder("Brand")
|
|
19
31
|
},
|
|
20
|
-
|
|
21
|
-
type: "radio",
|
|
22
|
-
options: [
|
|
23
|
-
{ label: "Slow", value: "slow" },
|
|
24
|
-
{ label: "Normal", value: "normal" },
|
|
25
|
-
{ label: "Fast", value: "fast" }
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
padding
|
|
32
|
+
styles: marqueeStylesField
|
|
29
33
|
},
|
|
30
34
|
defaultProps: {
|
|
31
35
|
heading: "Trusted by industry leaders",
|
|
@@ -36,8 +40,7 @@ const conf = {
|
|
|
36
40
|
logoPlaceholder("DataFlow"),
|
|
37
41
|
logoPlaceholder("CloudNet")
|
|
38
42
|
],
|
|
39
|
-
speed: "normal"
|
|
40
|
-
padding: paddingDefaults
|
|
43
|
+
styles: createStylesDefaults({ speed: "normal" })
|
|
41
44
|
},
|
|
42
45
|
render: LogoMarquee
|
|
43
46
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
export interface LogoMarqueeProps {
|
|
3
|
-
padding?: CompoundContainerProps["padding"];
|
|
4
3
|
heading?: string;
|
|
5
4
|
logos?: Array<{
|
|
6
5
|
src: string;
|
|
7
6
|
alt: string;
|
|
8
7
|
}>;
|
|
9
|
-
|
|
8
|
+
styles?: {
|
|
9
|
+
padding?: CompoundContainerProps["padding"];
|
|
10
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
speed?: "slow" | "normal" | "fast";
|
|
13
|
+
};
|
|
10
14
|
}
|
|
11
|
-
export declare const LogoMarquee: ({
|
|
15
|
+
export declare const LogoMarquee: ({ heading, logos, styles, }: LogoMarqueeProps) => import("react/jsx-runtime").JSX.Element;
|