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
|
@@ -7,35 +7,44 @@ const SPEED_DURATION = {
|
|
|
7
7
|
fast: "15s"
|
|
8
8
|
};
|
|
9
9
|
const LogoMarquee = ({
|
|
10
|
-
padding,
|
|
11
10
|
heading,
|
|
12
11
|
logos = [],
|
|
13
|
-
|
|
14
|
-
}) => /* @__PURE__ */ jsxs(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
styles
|
|
13
|
+
}) => /* @__PURE__ */ jsxs(
|
|
14
|
+
CompoundContainer,
|
|
15
|
+
{
|
|
16
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
17
|
+
sectionStyle: (styles == null ? void 0 : styles.sectionStyle) ?? "muted",
|
|
18
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
19
|
+
children: [
|
|
20
|
+
heading && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-8 text-center text-sm font-medium tracking-wider uppercase", children: heading }),
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "relative overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
22
22
|
"div",
|
|
23
23
|
{
|
|
24
|
-
className: "
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
className: "flex w-max animate-[marquee_var(--marquee-speed)_linear_infinite] items-center gap-12",
|
|
25
|
+
style: {
|
|
26
|
+
"--marquee-speed": SPEED_DURATION[(styles == null ? void 0 : styles.speed) ?? "normal"]
|
|
27
|
+
},
|
|
28
|
+
children: [...logos, ...logos].map((logo, i) => /* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
27
30
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
className: "h-8 flex-shrink-0 opacity-60 transition-opacity hover:opacity-100 md:h-10",
|
|
32
|
+
children: logo.src ? /* @__PURE__ */ jsx(
|
|
33
|
+
CompoundImage,
|
|
34
|
+
{
|
|
35
|
+
src: logo.src,
|
|
36
|
+
alt: logo.alt || "",
|
|
37
|
+
className: "h-full w-auto object-contain"
|
|
38
|
+
}
|
|
39
|
+
) : /* @__PURE__ */ jsx("div", { className: "bg-border/50 text-muted-foreground flex h-full w-24 items-center justify-center rounded text-xs", children: "Logo" })
|
|
40
|
+
},
|
|
41
|
+
i
|
|
42
|
+
))
|
|
43
|
+
}
|
|
44
|
+
) })
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
);
|
|
39
48
|
export {
|
|
40
49
|
LogoMarquee
|
|
41
50
|
};
|
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image, getPlaceholderImageUrl } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { LogoWall1 } from "./logo-wall.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const logoPlaceholder = (name) => ({
|
|
4
5
|
src: getPlaceholderImageUrl("200x200", name),
|
|
5
6
|
alt: name
|
|
6
7
|
});
|
|
8
|
+
const logoWallStylesField = createStylesField({
|
|
9
|
+
columns: {
|
|
10
|
+
type: "radio",
|
|
11
|
+
label: "Columns",
|
|
12
|
+
options: [
|
|
13
|
+
{ label: "3", value: 3 },
|
|
14
|
+
{ label: "4", value: 4 },
|
|
15
|
+
{ label: "5", value: 5 },
|
|
16
|
+
{ label: "6", value: 6 }
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
});
|
|
7
20
|
const conf = {
|
|
8
21
|
fields: {
|
|
9
22
|
heading: { type: "text", contentEditable: true },
|
|
@@ -17,31 +30,19 @@ const conf = {
|
|
|
17
30
|
},
|
|
18
31
|
defaultItemProps: logoPlaceholder("Brand")
|
|
19
32
|
},
|
|
20
|
-
|
|
21
|
-
type: "radio",
|
|
22
|
-
options: [
|
|
23
|
-
{ label: "3", value: 3 },
|
|
24
|
-
{ label: "4", value: 4 },
|
|
25
|
-
{ label: "5", value: 5 },
|
|
26
|
-
{ label: "6", value: 6 }
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
padding,
|
|
30
|
-
sectionStyle,
|
|
31
|
-
backgroundColor
|
|
33
|
+
styles: logoWallStylesField
|
|
32
34
|
},
|
|
33
35
|
defaultProps: {
|
|
34
|
-
padding: paddingDefaults,
|
|
35
36
|
heading: "Brands and tools we use",
|
|
36
37
|
description: "We partner with industry-leading platforms and manufacturers to deliver the best experience.",
|
|
37
|
-
columns: 5,
|
|
38
38
|
logos: [
|
|
39
39
|
logoPlaceholder("Partner 1"),
|
|
40
40
|
logoPlaceholder("Partner 2"),
|
|
41
41
|
logoPlaceholder("Partner 3"),
|
|
42
42
|
logoPlaceholder("Partner 4"),
|
|
43
43
|
logoPlaceholder("Partner 5")
|
|
44
|
-
]
|
|
44
|
+
],
|
|
45
|
+
styles: createStylesDefaults({ columns: 5 })
|
|
45
46
|
},
|
|
46
47
|
render: LogoWall1
|
|
47
48
|
};
|
|
@@ -3,13 +3,15 @@ import { PuckComponent } from "@puckeditor/core";
|
|
|
3
3
|
export interface LogoWall1Props {
|
|
4
4
|
heading?: string;
|
|
5
5
|
description?: string;
|
|
6
|
-
columns?: 3 | 4 | 5 | 6;
|
|
7
6
|
logos?: {
|
|
8
7
|
src: string;
|
|
9
8
|
alt: string;
|
|
10
9
|
}[];
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
styles?: {
|
|
11
|
+
padding?: CompoundContainerProps["padding"];
|
|
12
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
columns?: 3 | 4 | 5 | 6;
|
|
15
|
+
};
|
|
14
16
|
}
|
|
15
17
|
export declare const LogoWall1: PuckComponent<LogoWall1Props>;
|
|
@@ -5,18 +5,16 @@ import { cn } from "../../../../utils/css-utils.js";
|
|
|
5
5
|
const LogoWall1 = ({
|
|
6
6
|
heading,
|
|
7
7
|
description,
|
|
8
|
-
columns = 5,
|
|
9
8
|
logos = [],
|
|
10
|
-
|
|
11
|
-
sectionStyle,
|
|
12
|
-
backgroundColor
|
|
9
|
+
styles
|
|
13
10
|
}) => {
|
|
11
|
+
const columns = (styles == null ? void 0 : styles.columns) ?? 5;
|
|
14
12
|
return /* @__PURE__ */ jsx(
|
|
15
13
|
CompoundContainer,
|
|
16
14
|
{
|
|
17
|
-
padding,
|
|
18
|
-
sectionStyle,
|
|
19
|
-
backgroundColor,
|
|
15
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
16
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
17
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
20
18
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:gap-16", children: [
|
|
21
19
|
/* @__PURE__ */ jsx("div", { className: "flex max-w-3xl flex-col gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
22
20
|
heading && /* @__PURE__ */ jsx("h2", { className: "font-serif font-regular max-w-xl text-3xl tracking-tighter md:text-4xl", children: heading }),
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
type TestimonialVariant = "customers-1" | "logo-marquee-1" | "logo-wall-1" | "review-section-1" | "testimonials-1";
|
|
2
|
+
type TestimonialPadding = {
|
|
3
|
+
top?: "none" | "small" | "medium" | "large";
|
|
4
|
+
bottom?: "none" | "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
type TestimonialSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
|
|
7
|
+
type TestimonialImage = {
|
|
8
|
+
src: string;
|
|
9
|
+
alt?: string;
|
|
10
|
+
};
|
|
11
|
+
type TestimonialItem = {
|
|
12
|
+
title?: string;
|
|
13
|
+
quote?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
image?: TestimonialImage;
|
|
16
|
+
url?: string;
|
|
17
|
+
rating?: number;
|
|
18
|
+
company?: string;
|
|
19
|
+
};
|
|
20
|
+
type TestimonialSectionProps = {
|
|
21
|
+
variant?: TestimonialVariant;
|
|
22
|
+
heading?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
items?: TestimonialItem[];
|
|
25
|
+
logos?: TestimonialImage[];
|
|
26
|
+
styles?: {
|
|
27
|
+
padding?: TestimonialPadding;
|
|
28
|
+
sectionStyle?: TestimonialSectionStyle;
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
layout?: "section" | "inline" | "grid" | "list" | "cards" | "quote";
|
|
31
|
+
speed?: "slow" | "normal" | "fast";
|
|
32
|
+
columns?: 3 | 4 | 5 | 6;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image, heading } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { ReviewSection } from "./review-section.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const defaultReview = {
|
|
4
5
|
author: "Alex Johnson",
|
|
5
6
|
role: "Verified Buyer",
|
|
@@ -11,10 +12,20 @@ const defaultReview = {
|
|
|
11
12
|
content: "Absolutely love this product! The quality exceeded my expectations and the customer service was fantastic.",
|
|
12
13
|
date: "2 days ago"
|
|
13
14
|
};
|
|
15
|
+
const reviewStylesField = createStylesField({
|
|
16
|
+
layout: {
|
|
17
|
+
type: "select",
|
|
18
|
+
label: "Layout",
|
|
19
|
+
options: [
|
|
20
|
+
{ label: "Grid", value: "grid" },
|
|
21
|
+
{ label: "List", value: "list" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
});
|
|
14
25
|
const conf = {
|
|
15
26
|
fields: {
|
|
16
27
|
heading,
|
|
17
|
-
|
|
28
|
+
items: {
|
|
18
29
|
type: "array",
|
|
19
30
|
max: 12,
|
|
20
31
|
getItemSummary: (item, index = 0) => item.author || `Review ${index + 1}`,
|
|
@@ -28,21 +39,11 @@ const conf = {
|
|
|
28
39
|
},
|
|
29
40
|
defaultItemProps: defaultReview
|
|
30
41
|
},
|
|
31
|
-
|
|
32
|
-
type: "select",
|
|
33
|
-
options: [
|
|
34
|
-
{ label: "Grid", value: "grid" },
|
|
35
|
-
{ label: "List", value: "list" }
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
padding,
|
|
39
|
-
sectionStyle,
|
|
40
|
-
backgroundColor
|
|
42
|
+
styles: reviewStylesField
|
|
41
43
|
},
|
|
42
44
|
defaultProps: {
|
|
43
45
|
heading: "What Our Customers Say",
|
|
44
|
-
|
|
45
|
-
reviews: [
|
|
46
|
+
items: [
|
|
46
47
|
{
|
|
47
48
|
...defaultReview,
|
|
48
49
|
author: "Alex Johnson",
|
|
@@ -62,7 +63,7 @@ const conf = {
|
|
|
62
63
|
content: "Best purchase I've made this year. Highly recommend to everyone!"
|
|
63
64
|
}
|
|
64
65
|
],
|
|
65
|
-
|
|
66
|
+
styles: createStylesDefaults({ layout: "grid" })
|
|
66
67
|
},
|
|
67
68
|
render: ReviewSection
|
|
68
69
|
};
|
package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts
CHANGED
|
@@ -11,11 +11,13 @@ export interface Review {
|
|
|
11
11
|
date?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface ReviewSectionProps {
|
|
14
|
-
padding?: CompoundContainerProps["padding"];
|
|
15
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
16
|
-
backgroundColor?: string;
|
|
17
14
|
heading?: string;
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
items?: Review[];
|
|
16
|
+
styles?: {
|
|
17
|
+
padding?: CompoundContainerProps["padding"];
|
|
18
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
layout?: "grid" | "list";
|
|
21
|
+
};
|
|
20
22
|
}
|
|
21
|
-
export declare const ReviewSection: ({
|
|
23
|
+
export declare const ReviewSection: ({ heading, items, styles, }: ReviewSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,24 +4,29 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
4
4
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
5
|
import { Star } from "lucide-react";
|
|
6
6
|
const ReviewSection = ({
|
|
7
|
-
padding,
|
|
8
|
-
sectionStyle,
|
|
9
|
-
backgroundColor,
|
|
10
7
|
heading,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}) => /* @__PURE__ */ jsx(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
items = [],
|
|
9
|
+
styles
|
|
10
|
+
}) => /* @__PURE__ */ jsx(
|
|
11
|
+
CompoundContainer,
|
|
12
|
+
{
|
|
13
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
14
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
15
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
16
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-10", children: [
|
|
17
|
+
heading && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
className: cn(
|
|
22
|
+
((styles == null ? void 0 : styles.layout) ?? "grid") === "grid" ? "grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3" : "flex max-w-2xl flex-col gap-6"
|
|
23
|
+
),
|
|
24
|
+
children: items.map((review, index) => /* @__PURE__ */ jsx(ReviewCard, { review }, index))
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
25
30
|
const ReviewCard = ({ review }) => {
|
|
26
31
|
var _a;
|
|
27
32
|
return /* @__PURE__ */ jsxs("div", { className: "border-border bg-card text-card-foreground flex flex-col gap-4 rounded-xl border p-6", children: [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image, heading } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { Testimonials } from "./testimonials.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const defaultTestimonial = {
|
|
4
5
|
title: "Best decision ever",
|
|
5
6
|
quote: "Our goal was to streamline SMB trade, making it easier and faster than ever and we did it together.",
|
|
@@ -11,18 +12,20 @@ const defaultTestimonial = {
|
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
};
|
|
15
|
+
const testimonialStylesField = createStylesField({
|
|
16
|
+
layout: {
|
|
17
|
+
type: "radio",
|
|
18
|
+
label: "Layout",
|
|
19
|
+
options: [
|
|
20
|
+
{ label: "Cards", value: "cards" },
|
|
21
|
+
{ label: "Quote", value: "quote" }
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
});
|
|
14
25
|
const conf = {
|
|
15
26
|
fields: {
|
|
16
|
-
layout: {
|
|
17
|
-
label: "layout",
|
|
18
|
-
type: "radio",
|
|
19
|
-
options: [
|
|
20
|
-
{ label: "cards", value: "cards" },
|
|
21
|
-
{ label: "quote", value: "quote" }
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
27
|
heading,
|
|
25
|
-
|
|
28
|
+
items: {
|
|
26
29
|
type: "array",
|
|
27
30
|
max: 10,
|
|
28
31
|
getItemSummary: (item, index = 0) => item.author.name || `Testimonial ${index + 1}`,
|
|
@@ -42,18 +45,15 @@ const conf = {
|
|
|
42
45
|
instructions: "Generate at least 3 testimonials"
|
|
43
46
|
}
|
|
44
47
|
},
|
|
45
|
-
|
|
46
|
-
sectionStyle,
|
|
47
|
-
backgroundColor
|
|
48
|
+
styles: testimonialStylesField
|
|
48
49
|
},
|
|
49
50
|
defaultProps: {
|
|
50
|
-
layout: "cards",
|
|
51
|
-
padding: paddingDefaults,
|
|
52
51
|
heading: "Trusted by hundreds of businesses worldwide",
|
|
53
|
-
|
|
52
|
+
items: Array.from({ length: 5 }).map((_, index) => ({
|
|
54
53
|
...defaultTestimonial,
|
|
55
54
|
title: `Best decision ${index}`
|
|
56
|
-
}))
|
|
55
|
+
})),
|
|
56
|
+
styles: createStylesDefaults({ layout: "cards" })
|
|
57
57
|
},
|
|
58
58
|
render: Testimonials
|
|
59
59
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundImageProps } from "@/components/puck-base/image";
|
|
3
3
|
export interface TestimonialsProps {
|
|
4
|
-
layout?: "cards" | "quote";
|
|
5
|
-
padding?: CompoundContainerProps["padding"];
|
|
6
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
7
|
-
backgroundColor?: string;
|
|
8
4
|
heading: string;
|
|
9
|
-
|
|
5
|
+
items: {
|
|
10
6
|
title: string;
|
|
11
7
|
quote: string;
|
|
12
8
|
author: {
|
|
@@ -14,5 +10,11 @@ export interface TestimonialsProps {
|
|
|
14
10
|
image?: CompoundImageProps;
|
|
15
11
|
};
|
|
16
12
|
}[];
|
|
13
|
+
styles?: {
|
|
14
|
+
layout?: "cards" | "quote";
|
|
15
|
+
padding?: CompoundContainerProps["padding"];
|
|
16
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
};
|
|
17
19
|
}
|
|
18
|
-
export declare const Testimonials: ({
|
|
20
|
+
export declare const Testimonials: ({ heading, items: testimonials, styles, }: TestimonialsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,12 +7,9 @@ import { Avatar, AvatarImage, AvatarFallback } from "../../../shadcn/avatar.js";
|
|
|
7
7
|
import { usePrefersReducedMotion } from "../../../../hooks/use-prefers-reduced-motion.js";
|
|
8
8
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
9
9
|
const Testimonials = ({
|
|
10
|
-
layout,
|
|
11
|
-
padding,
|
|
12
|
-
sectionStyle,
|
|
13
|
-
backgroundColor,
|
|
14
10
|
heading,
|
|
15
|
-
testimonials
|
|
11
|
+
items: testimonials,
|
|
12
|
+
styles
|
|
16
13
|
}) => {
|
|
17
14
|
var _a;
|
|
18
15
|
const [api, setApi] = useState();
|
|
@@ -33,7 +30,7 @@ const Testimonials = ({
|
|
|
33
30
|
}, 4e3);
|
|
34
31
|
}, [api, currentIndex, prefersReducedMotion]);
|
|
35
32
|
const items = testimonials ?? [];
|
|
36
|
-
if (layout === "quote") {
|
|
33
|
+
if ((styles == null ? void 0 : styles.layout) === "quote") {
|
|
37
34
|
const safeIndex = items.length > 0 ? currentIndex % items.length : 0;
|
|
38
35
|
const testimonial = items[safeIndex];
|
|
39
36
|
const prev = () => {
|
|
@@ -42,66 +39,82 @@ const Testimonials = ({
|
|
|
42
39
|
const next = () => {
|
|
43
40
|
setCurrentIndex((i) => (i + 1) % items.length);
|
|
44
41
|
};
|
|
45
|
-
return /* @__PURE__ */ jsx(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
{
|
|
59
|
-
onClick: prev,
|
|
60
|
-
className: "rounded-full border border-current/30 p-2 hover:bg-white/10 transition-colors",
|
|
61
|
-
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-5 w-5" })
|
|
62
|
-
}
|
|
63
|
-
),
|
|
64
|
-
/* @__PURE__ */ jsx(
|
|
65
|
-
"button",
|
|
66
|
-
{
|
|
67
|
-
onClick: next,
|
|
68
|
-
className: "rounded-full border border-current/30 p-2 hover:bg-white/10 transition-colors",
|
|
69
|
-
children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-5 w-5" })
|
|
70
|
-
}
|
|
71
|
-
)
|
|
72
|
-
] })
|
|
73
|
-
] }) });
|
|
74
|
-
}
|
|
75
|
-
return /* @__PURE__ */ jsx(CompoundContainer, { padding, sectionStyle, backgroundColor, children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-10", children: [
|
|
76
|
-
/* @__PURE__ */ jsx("h2", { className: "font-regular text-start text-3xl tracking-tighter md:text-5xl lg:max-w-xl", children: heading }),
|
|
77
|
-
/* @__PURE__ */ jsx(Carousel, { setApi, className: "w-full", children: /* @__PURE__ */ jsx(CarouselContent, { children: items.map((testimonial, index) => {
|
|
78
|
-
var _a2, _b, _c, _d, _e, _f;
|
|
79
|
-
return /* @__PURE__ */ jsx(CarouselItem, { className: "me-4 lg:basis-1/2", children: /* @__PURE__ */ jsxs("div", { className: "bg-muted flex aspect-video h-full flex-col justify-between rounded-md p-6 lg:col-span-2", children: [
|
|
80
|
-
/* @__PURE__ */ jsx(User, { className: "h-8 w-8 stroke-1" }),
|
|
81
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
82
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
83
|
-
/* @__PURE__ */ jsx("h3", { className: "text-xl tracking-tight", children: testimonial.title }),
|
|
84
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-xs text-base", children: testimonial.quote })
|
|
85
|
-
] }),
|
|
86
|
-
/* @__PURE__ */ jsxs("p", { className: "flex flex-row items-center gap-2 text-sm", children: [
|
|
87
|
-
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "By" }),
|
|
88
|
-
" ",
|
|
89
|
-
/* @__PURE__ */ jsxs(Avatar, { className: "h-6 w-6", children: [
|
|
90
|
-
/* @__PURE__ */ jsx(
|
|
91
|
-
AvatarImage,
|
|
92
|
-
{
|
|
93
|
-
src: (_b = (_a2 = testimonial.author) == null ? void 0 : _a2.image) == null ? void 0 : _b.src,
|
|
94
|
-
alt: (_d = (_c = testimonial.author) == null ? void 0 : _c.image) == null ? void 0 : _d.alt
|
|
95
|
-
}
|
|
96
|
-
),
|
|
97
|
-
/* @__PURE__ */ jsx(AvatarFallback, { children: getInitials(((_e = testimonial.author) == null ? void 0 : _e.name) ?? "") })
|
|
42
|
+
return /* @__PURE__ */ jsx(
|
|
43
|
+
CompoundContainer,
|
|
44
|
+
{
|
|
45
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
46
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
47
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
48
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center py-12", children: [
|
|
49
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium uppercase tracking-widest text-muted-foreground", children: heading }),
|
|
50
|
+
testimonial && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51
|
+
/* @__PURE__ */ jsxs("h2", { className: "font-serif text-2xl font-bold italic md:text-4xl max-w-4xl mx-auto mt-6", children: [
|
|
52
|
+
"“",
|
|
53
|
+
testimonial.quote,
|
|
54
|
+
"”"
|
|
98
55
|
] }),
|
|
99
|
-
/* @__PURE__ */ jsx("
|
|
56
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4", children: (_a = testimonial.author) == null ? void 0 : _a.name })
|
|
57
|
+
] }),
|
|
58
|
+
items.length > 1 && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-4 mt-8", children: [
|
|
59
|
+
/* @__PURE__ */ jsx(
|
|
60
|
+
"button",
|
|
61
|
+
{
|
|
62
|
+
onClick: prev,
|
|
63
|
+
className: "rounded-full border border-current/30 p-2 hover:bg-white/10 transition-colors",
|
|
64
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-5 w-5" })
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
"button",
|
|
69
|
+
{
|
|
70
|
+
onClick: next,
|
|
71
|
+
className: "rounded-full border border-current/30 p-2 hover:bg-white/10 transition-colors",
|
|
72
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-5 w-5" })
|
|
73
|
+
}
|
|
74
|
+
)
|
|
100
75
|
] })
|
|
101
76
|
] })
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
return /* @__PURE__ */ jsx(
|
|
81
|
+
CompoundContainer,
|
|
82
|
+
{
|
|
83
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
84
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
85
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
86
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-10", children: [
|
|
87
|
+
/* @__PURE__ */ jsx("h2", { className: "font-regular text-start text-3xl tracking-tighter md:text-5xl lg:max-w-xl", children: heading }),
|
|
88
|
+
/* @__PURE__ */ jsx(Carousel, { setApi, className: "w-full", children: /* @__PURE__ */ jsx(CarouselContent, { children: items.map((testimonial, index) => {
|
|
89
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
90
|
+
return /* @__PURE__ */ jsx(CarouselItem, { className: "me-4 lg:basis-1/2", children: /* @__PURE__ */ jsxs("div", { className: "bg-muted flex aspect-video h-full flex-col justify-between rounded-md p-6 lg:col-span-2", children: [
|
|
91
|
+
/* @__PURE__ */ jsx(User, { className: "h-8 w-8 stroke-1" }),
|
|
92
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
93
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
94
|
+
/* @__PURE__ */ jsx("h3", { className: "text-xl tracking-tight", children: testimonial.title }),
|
|
95
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-xs text-base", children: testimonial.quote })
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ jsxs("p", { className: "flex flex-row items-center gap-2 text-sm", children: [
|
|
98
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "By" }),
|
|
99
|
+
" ",
|
|
100
|
+
/* @__PURE__ */ jsxs(Avatar, { className: "h-6 w-6", children: [
|
|
101
|
+
/* @__PURE__ */ jsx(
|
|
102
|
+
AvatarImage,
|
|
103
|
+
{
|
|
104
|
+
src: (_b = (_a2 = testimonial.author) == null ? void 0 : _a2.image) == null ? void 0 : _b.src,
|
|
105
|
+
alt: (_d = (_c = testimonial.author) == null ? void 0 : _c.image) == null ? void 0 : _d.alt
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ jsx(AvatarFallback, { children: getInitials(((_e = testimonial.author) == null ? void 0 : _e.name) ?? "") })
|
|
109
|
+
] }),
|
|
110
|
+
/* @__PURE__ */ jsx("span", { children: (_f = testimonial.author) == null ? void 0 : _f.name })
|
|
111
|
+
] })
|
|
112
|
+
] })
|
|
113
|
+
] }) }, index);
|
|
114
|
+
}) }) })
|
|
115
|
+
] })
|
|
116
|
+
}
|
|
117
|
+
);
|
|
105
118
|
};
|
|
106
119
|
function getInitials(name, maxInitials) {
|
|
107
120
|
if (!name) {
|
|
@@ -2,13 +2,15 @@ import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
|
2
2
|
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
3
|
import { PuckComponent, Slot } from "@puckeditor/core";
|
|
4
4
|
export interface ArticlesProps {
|
|
5
|
-
padding?: CompoundContainerProps["padding"];
|
|
6
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
7
|
-
backgroundColor?: string;
|
|
8
5
|
eyebrow?: string;
|
|
9
6
|
heading?: string;
|
|
10
|
-
|
|
11
|
-
columns?: 2 | 3 | 4;
|
|
7
|
+
buttons?: CompoundButtonProps[];
|
|
12
8
|
cards?: Slot;
|
|
9
|
+
styles?: {
|
|
10
|
+
padding?: CompoundContainerProps["padding"];
|
|
11
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
columns?: 2 | 3 | 4;
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
16
|
export declare const Articles: PuckComponent<ArticlesProps>;
|