dune-react 0.0.8 → 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/article-card.js +1 -1
- package/dist/components/puck-base/button.js +2 -1
- package/dist/components/puck-base/container.d.ts +7 -1
- package/dist/components/puck-base/container.js +2 -1
- package/dist/components/puck-base/content.d.ts +1 -4
- package/dist/components/puck-base/content.js +15 -17
- 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/types.d.ts +2 -2
- 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-base/editor-context.d.ts +8 -0
- package/dist/components/puck-base/fields/auto-field.d.ts +1 -0
- package/dist/components/puck-base/fields/auto-field.js +131 -49
- package/dist/components/puck-base/gradient-text.js +12 -3
- 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/api/form-leads.d.ts +16 -0
- package/dist/components/puck-block/contact-sections/api/form-leads.js +25 -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 +122 -121
- 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 +30 -0
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +234 -0
- package/dist/components/puck-block/contact-sections/contact-us-2/index.d.ts +5 -0
- package/dist/components/puck-block/contact-sections/contact-us-2/index.js +74 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +32 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +250 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/index.d.ts +5 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/index.js +114 -0
- 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 +28 -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 +36 -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 +94 -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 +18 -0
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +54 -0
- package/dist/components/puck-block/faq-sections/faq-2/index.d.ts +5 -0
- package/dist/components/puck-block/faq-sections/faq-2/index.js +61 -0
- 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 +8 -7
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +15 -7
- package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +37 -18
- 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 +4 -12
- 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 +7 -29
- 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 +49 -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 +16 -0
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +86 -0
- package/dist/components/puck-block/gallery-sections/gallery-2/index.d.ts +5 -0
- package/dist/components/puck-block/gallery-sections/gallery-2/index.js +42 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +19 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +119 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/index.d.ts +5 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/index.js +59 -0
- 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 +11 -4
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +60 -23
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +18 -6
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +9 -5
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +37 -24
- 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 +14 -8
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +64 -60
- 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/index.d.ts +15 -0
- package/dist/components/puck-block/location-sections/location-1/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-1/index.js +108 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +28 -0
- package/dist/components/puck-block/location-sections/location-1/location.js +137 -0
- package/dist/components/puck-block/location-sections/location-2/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-2/index.js +123 -0
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +30 -0
- package/dist/components/puck-block/location-sections/location-2/location.js +131 -0
- package/dist/components/puck-block/location-sections/location-3/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-3/index.js +84 -0
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +24 -0
- package/dist/components/puck-block/location-sections/location-3/location.js +127 -0
- 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.d.ts +5 -0
- package/dist/components/puck-block/metrics-sections/stats-2/index.js +76 -0
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +18 -0
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +57 -0
- package/dist/components/puck-block/metrics-sections/stats-3/index.d.ts +5 -0
- package/dist/components/puck-block/metrics-sections/stats-3/index.js +86 -0
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +18 -0
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +56 -0
- 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.d.ts +5 -0
- package/dist/components/puck-block/pricing-sections/pricing-2/index.js +151 -0
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +26 -0
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +71 -0
- 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 +22 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +71 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/index.d.ts +5 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/index.js +73 -0
- 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 +30 -28
- 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 +27 -41
- package/dist/components/puck-block/team-sections/team-grid-2/index.d.ts +5 -0
- package/dist/components/puck-block/team-sections/team-grid-2/index.js +62 -0
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +23 -0
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +44 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/index.d.ts +5 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/index.js +53 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +23 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +105 -0
- 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 +34 -24
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.d.ts +5 -0
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +51 -0
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +17 -0
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +55 -0
- 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 +25 -19
- 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 -4
- package/dist/components/puck-block/text-sections/articles-1/articles.js +42 -22
- package/dist/components/puck-block/text-sections/articles-1/index.js +31 -19
- 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 +11 -12
- 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 +6 -7
- 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/components/shadcn/navigation-menu.d.ts +1 -1
- package/dist/components/shadcn/navigation-menu.js +33 -0
- package/dist/index.js +106 -75
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
3
|
+
import { CompoundImage } from "../../../puck-base/image.js";
|
|
3
4
|
import { cn } from "../../../../utils/css-utils.js";
|
|
4
5
|
const columnClasses = {
|
|
5
6
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
@@ -7,27 +8,33 @@ const columnClasses = {
|
|
|
7
8
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
8
9
|
};
|
|
9
10
|
const TeamGrid = ({
|
|
10
|
-
padding,
|
|
11
|
-
sectionStyle,
|
|
12
|
-
backgroundColor,
|
|
13
11
|
heading,
|
|
14
12
|
description,
|
|
15
13
|
members = [],
|
|
16
14
|
columns = 3,
|
|
17
|
-
layout = "card"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
className:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
+
);
|
|
31
38
|
const MemberCard = ({
|
|
32
39
|
member,
|
|
33
40
|
layout
|
|
@@ -35,14 +42,7 @@ const MemberCard = ({
|
|
|
35
42
|
var _a, _b, _c;
|
|
36
43
|
if (layout === "round") {
|
|
37
44
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
38
|
-
/* @__PURE__ */ jsx("div", { className: "bg-muted w-full aspect-square overflow-hidden rounded-full", children: ((_a = member.image) == null ? void 0 : _a.src) && /* @__PURE__ */ jsx(
|
|
39
|
-
"img",
|
|
40
|
-
{
|
|
41
|
-
src: member.image.src,
|
|
42
|
-
alt: member.image.alt ?? member.name,
|
|
43
|
-
className: "h-full w-full object-cover"
|
|
44
|
-
}
|
|
45
|
-
) }),
|
|
45
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted w-full aspect-square overflow-hidden rounded-full [&>span]:h-full [&>span]:w-full", children: ((_a = member.image) == null ? void 0 : _a.src) && /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt ?? member.name, className: "h-full w-full object-cover" }) }),
|
|
46
46
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
47
47
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold", children: member.name }),
|
|
48
48
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: member.role }),
|
|
@@ -52,14 +52,7 @@ const MemberCard = ({
|
|
|
52
52
|
}
|
|
53
53
|
if (layout === "simple") {
|
|
54
54
|
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4", children: [
|
|
55
|
-
/* @__PURE__ */ jsx("div", { className: "bg-muted h-16 w-16 shrink-0 overflow-hidden rounded-full", children: ((_b = member.image) == null ? void 0 : _b.src) && /* @__PURE__ */ jsx(
|
|
56
|
-
"img",
|
|
57
|
-
{
|
|
58
|
-
src: member.image.src,
|
|
59
|
-
alt: member.image.alt ?? member.name,
|
|
60
|
-
className: "h-full w-full object-cover"
|
|
61
|
-
}
|
|
62
|
-
) }),
|
|
55
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted h-16 w-16 shrink-0 overflow-hidden rounded-full [&>span]:h-full [&>span]:w-full", children: ((_b = member.image) == null ? void 0 : _b.src) && /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt ?? member.name, className: "h-full w-full object-cover" }) }),
|
|
63
56
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
64
57
|
/* @__PURE__ */ jsx("h3", { className: "text-base font-semibold", children: member.name }),
|
|
65
58
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: member.role }),
|
|
@@ -68,14 +61,7 @@ const MemberCard = ({
|
|
|
68
61
|
] });
|
|
69
62
|
}
|
|
70
63
|
return /* @__PURE__ */ jsxs("div", { className: "bg-card text-card-foreground border-border overflow-hidden rounded-xl border", children: [
|
|
71
|
-
/* @__PURE__ */ jsx("div", { className: "bg-muted aspect-[4/3]", children: ((_c = member.image) == null ? void 0 : _c.src) && /* @__PURE__ */ jsx(
|
|
72
|
-
"img",
|
|
73
|
-
{
|
|
74
|
-
src: member.image.src,
|
|
75
|
-
alt: member.image.alt ?? member.name,
|
|
76
|
-
className: "h-full w-full object-cover"
|
|
77
|
-
}
|
|
78
|
-
) }),
|
|
64
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted aspect-[4/3] [&>span]:h-full [&>span]:w-full", children: ((_c = member.image) == null ? void 0 : _c.src) && /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt ?? member.name, className: "h-full w-full object-cover" }) }),
|
|
79
65
|
/* @__PURE__ */ jsxs("div", { className: "p-6", children: [
|
|
80
66
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold", children: member.name }),
|
|
81
67
|
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: member.role }),
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { image1x1Placeholder, image, buttons } from "../../../puck-base/core/fields.js";
|
|
2
|
+
import { TeamGrid2 } from "./team-grid-2.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
4
|
+
const defaultMember = {
|
|
5
|
+
name: "Jane Smith",
|
|
6
|
+
role: "Founder & Head Trainer",
|
|
7
|
+
image: image1x1Placeholder,
|
|
8
|
+
description: "Builds custom training programs tailored to your goals and fitness level. Direct feedback, real progress tracking, and support every step of the way."
|
|
9
|
+
};
|
|
10
|
+
const conf = {
|
|
11
|
+
fields: {
|
|
12
|
+
heading: { type: "text", contentEditable: true },
|
|
13
|
+
description: { type: "textarea", contentEditable: true },
|
|
14
|
+
buttons,
|
|
15
|
+
members: {
|
|
16
|
+
type: "array",
|
|
17
|
+
max: 8,
|
|
18
|
+
getItemSummary: (item, index = 0) => item.name || `Member ${index + 1}`,
|
|
19
|
+
arrayFields: {
|
|
20
|
+
name: { type: "text", contentEditable: true },
|
|
21
|
+
role: { type: "text", contentEditable: true },
|
|
22
|
+
image,
|
|
23
|
+
description: { type: "textarea", contentEditable: true }
|
|
24
|
+
},
|
|
25
|
+
defaultItemProps: defaultMember
|
|
26
|
+
},
|
|
27
|
+
styles: createStylesField()
|
|
28
|
+
},
|
|
29
|
+
defaultProps: {
|
|
30
|
+
heading: "Your personal\nfitness partner",
|
|
31
|
+
description: "We're here to guide you toward your health goals with personalized training and real accountability. Every session is built around what works for you.",
|
|
32
|
+
buttons: [
|
|
33
|
+
{
|
|
34
|
+
label: "Get started",
|
|
35
|
+
url: "#",
|
|
36
|
+
action: { type: "external", pageUrl: "", externalUrl: "#", openInNewTab: "false", email: "", subject: "", phone: "", sectionId: "", downloadUrl: "" },
|
|
37
|
+
variant: "default",
|
|
38
|
+
size: "default",
|
|
39
|
+
icon: "none"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "Schedule a consultation",
|
|
43
|
+
url: "#",
|
|
44
|
+
action: { type: "external", pageUrl: "", externalUrl: "#", openInNewTab: "false", email: "", subject: "", phone: "", sectionId: "", downloadUrl: "" },
|
|
45
|
+
variant: "secondary",
|
|
46
|
+
size: "default",
|
|
47
|
+
icon: "none"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
members: [
|
|
51
|
+
{ ...defaultMember, name: "Jane Smith", role: "Founder & Head Trainer" },
|
|
52
|
+
{ ...defaultMember, name: "Alex Johnson", role: "Fitness Specialist" },
|
|
53
|
+
{ ...defaultMember, name: "Sarah Williams", role: "Strength Coach" },
|
|
54
|
+
{ ...defaultMember, name: "Michael Chen", role: "Nutrition Coach" }
|
|
55
|
+
],
|
|
56
|
+
styles: createStylesDefaults()
|
|
57
|
+
},
|
|
58
|
+
render: TeamGrid2
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
conf
|
|
62
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
|
+
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
|
+
export interface TeamMember2 {
|
|
4
|
+
name: string;
|
|
5
|
+
role: string;
|
|
6
|
+
image?: {
|
|
7
|
+
src: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
};
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface TeamGrid2Props {
|
|
13
|
+
heading?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
buttons?: CompoundButtonProps[];
|
|
16
|
+
members?: TeamMember2[];
|
|
17
|
+
styles?: {
|
|
18
|
+
padding?: CompoundContainerProps["padding"];
|
|
19
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare const TeamGrid2: ({ heading, description, buttons, members, styles, }: TeamGrid2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
3
|
+
import { CompoundButton } from "../../../puck-base/button.js";
|
|
4
|
+
import { CompoundImage } from "../../../puck-base/image.js";
|
|
5
|
+
const TeamGrid2 = ({
|
|
6
|
+
heading,
|
|
7
|
+
description,
|
|
8
|
+
buttons = [],
|
|
9
|
+
members = [],
|
|
10
|
+
styles
|
|
11
|
+
}) => /* @__PURE__ */ jsx(
|
|
12
|
+
CompoundContainer,
|
|
13
|
+
{
|
|
14
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
15
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
16
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
17
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:gap-16", children: [
|
|
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: [
|
|
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 }) }),
|
|
20
|
+
(description || buttons.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-8 lg:basis-1/2", children: [
|
|
21
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-base leading-relaxed whitespace-pre-line", children: description }),
|
|
22
|
+
buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 sm:flex-row sm:flex-wrap", children: buttons.map((btn, i) => /* @__PURE__ */ jsx(CompoundButton, { ...btn }, i)) })
|
|
23
|
+
] })
|
|
24
|
+
] }) }),
|
|
25
|
+
members.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-10 md:grid-cols-2 md:gap-8 lg:grid-cols-4", children: members.map((member, index) => /* @__PURE__ */ jsx(MemberCard, { member }, index)) })
|
|
26
|
+
] })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
const MemberCard = ({ member }) => {
|
|
30
|
+
var _a;
|
|
31
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
32
|
+
/* @__PURE__ */ jsx("div", { className: "bg-muted relative w-full overflow-hidden rounded-3xl [&>span]:h-full [&>span]:w-full", style: { aspectRatio: "3/4" }, children: ((_a = member.image) == null ? void 0 : _a.src) && /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt ?? member.name, className: "h-full w-full object-cover" }) }),
|
|
33
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
|
|
34
|
+
/* @__PURE__ */ jsx("div", { className: "border-b border-border pb-3", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: member.role }) }),
|
|
35
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
36
|
+
/* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold leading-snug", children: member.name }),
|
|
37
|
+
member.description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-base leading-relaxed whitespace-pre-line", children: member.description })
|
|
38
|
+
] })
|
|
39
|
+
] })
|
|
40
|
+
] });
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
TeamGrid2
|
|
44
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { image1x1Placeholder, image } from "../../../puck-base/core/fields.js";
|
|
2
|
+
import { TeamProfiles } from "./team-profiles.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
4
|
+
const defaultMember = {
|
|
5
|
+
name: "Jane Smith",
|
|
6
|
+
role: "CEO & Co-founder",
|
|
7
|
+
image: image1x1Placeholder,
|
|
8
|
+
description: "Leads the team with a passion for innovation and a commitment to excellence.",
|
|
9
|
+
instagramUrl: "",
|
|
10
|
+
linkedinUrl: ""
|
|
11
|
+
};
|
|
12
|
+
const conf = {
|
|
13
|
+
fields: {
|
|
14
|
+
heading: { type: "text", contentEditable: true },
|
|
15
|
+
description: { type: "textarea", contentEditable: true },
|
|
16
|
+
members: {
|
|
17
|
+
type: "array",
|
|
18
|
+
max: 8,
|
|
19
|
+
getItemSummary: (item, index = 0) => item.name || `Member ${index + 1}`,
|
|
20
|
+
arrayFields: {
|
|
21
|
+
name: { type: "text", contentEditable: true },
|
|
22
|
+
role: { type: "text", contentEditable: true },
|
|
23
|
+
image,
|
|
24
|
+
description: { type: "textarea", contentEditable: true },
|
|
25
|
+
instagramUrl: { type: "text", label: "Instagram URL" },
|
|
26
|
+
linkedinUrl: { type: "text", label: "LinkedIn URL" }
|
|
27
|
+
},
|
|
28
|
+
defaultItemProps: defaultMember
|
|
29
|
+
},
|
|
30
|
+
styles: createStylesField()
|
|
31
|
+
},
|
|
32
|
+
defaultProps: {
|
|
33
|
+
heading: "Your Personal\ntraining partner",
|
|
34
|
+
description: "Our team brings focused expertise and personalized coaching to help you reach your goals.",
|
|
35
|
+
members: [
|
|
36
|
+
{
|
|
37
|
+
...defaultMember,
|
|
38
|
+
name: "Jane Smith",
|
|
39
|
+
role: "Founder & Head Coach"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
...defaultMember,
|
|
43
|
+
name: "Alex Johnson",
|
|
44
|
+
role: "Strength & Conditioning Coach"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
styles: createStylesDefaults()
|
|
48
|
+
},
|
|
49
|
+
render: TeamProfiles
|
|
50
|
+
};
|
|
51
|
+
export {
|
|
52
|
+
conf
|
|
53
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
|
+
export interface TeamMemberProfile {
|
|
3
|
+
name: string;
|
|
4
|
+
role: string;
|
|
5
|
+
image?: {
|
|
6
|
+
src: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
};
|
|
9
|
+
description?: string;
|
|
10
|
+
instagramUrl?: string;
|
|
11
|
+
linkedinUrl?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface TeamProfilesProps {
|
|
14
|
+
heading?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
members?: TeamMemberProfile[];
|
|
17
|
+
styles?: {
|
|
18
|
+
padding?: CompoundContainerProps["padding"];
|
|
19
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare const TeamProfiles: ({ heading, description, members, styles, }: TeamProfilesProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
3
|
+
import { CompoundImage } from "../../../puck-base/image.js";
|
|
4
|
+
const InstagramIcon = () => /* @__PURE__ */ jsx(
|
|
5
|
+
"svg",
|
|
6
|
+
{
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
fill: "none",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
width: "20",
|
|
11
|
+
height: "20",
|
|
12
|
+
className: "size-5",
|
|
13
|
+
children: /* @__PURE__ */ jsx(
|
|
14
|
+
"path",
|
|
15
|
+
{
|
|
16
|
+
fill: "currentColor",
|
|
17
|
+
fillRule: "evenodd",
|
|
18
|
+
d: "M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2m0 3.75c-1.697 0-1.91.007-2.577.038-.665.03-1.12.136-1.517.29-.411.16-.76.374-1.107.721a3.1 3.1 0 0 0-.72 1.107c-.155.398-.261.852-.291 1.517-.03.667-.038.88-.038 2.577s.007 1.91.038 2.577c.03.665.136 1.12.29 1.517.16.411.374.76.721 1.107.347.348.696.561 1.107.72.398.155.852.261 1.517.291.667.03.88.038 2.577.038s1.91-.007 2.577-.038c.665-.03 1.12-.136 1.517-.29.411-.16.76-.373 1.107-.721.348-.348.561-.696.72-1.107.155-.398.261-.852.291-1.517.03-.667.038-.88.038-2.577s-.007-1.91-.038-2.577c-.03-.665-.136-1.12-.29-1.517a3.1 3.1 0 0 0-.721-1.107 3.1 3.1 0 0 0-1.107-.72c-.398-.155-.852-.261-1.517-.291-.667-.03-.88-.038-2.577-.038m0 1.126c1.669 0 1.867.006 2.525.037.61.027.94.13 1.161.215.292.113.5.249.719.467s.354.427.467.719c.086.22.188.551.215 1.16.03.66.037.857.037 2.526s-.006 1.867-.037 2.525c-.027.61-.13.94-.215 1.161-.113.292-.249.5-.467.719a1.9 1.9 0 0 1-.719.467c-.22.086-.551.188-1.16.215-.66.03-.857.037-2.526.037s-1.867-.006-2.526-.037c-.609-.027-.94-.13-1.16-.215a1.9 1.9 0 0 1-.719-.467 1.9 1.9 0 0 1-.467-.719c-.086-.22-.188-.551-.215-1.16-.03-.66-.037-.857-.037-2.526s.006-1.867.037-2.526c.027-.609.13-.94.215-1.16.113-.292.249-.5.467-.719s.427-.354.719-.467c.22-.086.551-.188 1.16-.215.66-.03.857-.037 2.526-.037m0 1.915a3.21 3.21 0 1 0 0 6.419 3.21 3.21 0 0 0 0-6.42m0 5.292a2.083 2.083 0 1 1 0-4.166 2.083 2.083 0 0 1 0 4.166m4.086-5.42a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0",
|
|
19
|
+
clipRule: "evenodd"
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
const LinkedInIcon = () => /* @__PURE__ */ jsx(
|
|
25
|
+
"svg",
|
|
26
|
+
{
|
|
27
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
+
fill: "none",
|
|
29
|
+
viewBox: "0 0 24 24",
|
|
30
|
+
width: "20",
|
|
31
|
+
height: "20",
|
|
32
|
+
className: "size-5",
|
|
33
|
+
children: /* @__PURE__ */ jsx(
|
|
34
|
+
"path",
|
|
35
|
+
{
|
|
36
|
+
fill: "currentColor",
|
|
37
|
+
fillRule: "evenodd",
|
|
38
|
+
d: "M19.557 2A2.445 2.445 0 0 1 22 4.444v15.113A2.445 2.445 0 0 1 19.557 22H4.444A2.445 2.445 0 0 1 2 19.557V4.444A2.445 2.445 0 0 1 4.444 2zM8.268 18.534V9.717H5.337v8.817zm10.568 0v-5.056c0-2.708-1.446-3.968-3.374-3.968-1.555 0-2.252.855-2.642 1.456V9.717H9.89c.039.828 0 8.817 0 8.817h2.93V13.61c0-.263.02-.527.097-.715.212-.527.694-1.072 1.504-1.072 1.06 0 1.484.809 1.484 1.994v4.717zM6.822 5.466c-1.003 0-1.658.659-1.658 1.523 0 .846.635 1.524 1.62 1.524 1.021 0 1.677-.678 1.677-1.524-.02-.863-.635-1.521-1.639-1.523",
|
|
39
|
+
clipRule: "evenodd"
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
const TeamProfiles = ({
|
|
45
|
+
heading,
|
|
46
|
+
description,
|
|
47
|
+
members = [],
|
|
48
|
+
styles
|
|
49
|
+
}) => /* @__PURE__ */ jsx(
|
|
50
|
+
CompoundContainer,
|
|
51
|
+
{
|
|
52
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
53
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
54
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
55
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 md:gap-16", children: [
|
|
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: [
|
|
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 }) }),
|
|
58
|
+
description && /* @__PURE__ */ jsx("div", { className: "flex w-full flex-col gap-8 lg:basis-1/2", children: /* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-xl text-base leading-relaxed", children: description }) })
|
|
59
|
+
] }) }),
|
|
60
|
+
members.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-10 md:gap-8 lg:grid-cols-2", children: members.map((member, index) => /* @__PURE__ */ jsx(MemberProfileCard, { member }, index)) })
|
|
61
|
+
] })
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
const MemberProfileCard = ({ member }) => {
|
|
65
|
+
var _a;
|
|
66
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 md:flex-row md:gap-8", children: [
|
|
67
|
+
/* @__PURE__ */ jsx("div", { className: "shrink-0 md:w-48", children: /* @__PURE__ */ jsx("div", { className: "bg-muted relative h-72 w-full overflow-hidden rounded-3xl md:h-48 md:w-48 [&>span]:h-full [&>span]:w-full", children: ((_a = member.image) == null ? void 0 : _a.src) && /* @__PURE__ */ jsx(CompoundImage, { src: member.image.src, alt: member.image.alt ?? member.name, className: "h-full w-full object-cover" }) }) }),
|
|
68
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-4", children: [
|
|
69
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
70
|
+
/* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold leading-snug", children: member.name }),
|
|
71
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: member.role })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ jsxs("div", { className: "border-border flex flex-col gap-2 border-t pt-4", children: [
|
|
74
|
+
member.description && /* @__PURE__ */ jsx("p", { className: "text-foreground text-sm leading-relaxed whitespace-pre-line", children: member.description }),
|
|
75
|
+
(member.instagramUrl || member.linkedinUrl) && /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-3", children: [
|
|
76
|
+
member.instagramUrl && /* @__PURE__ */ jsx(
|
|
77
|
+
"a",
|
|
78
|
+
{
|
|
79
|
+
href: member.instagramUrl,
|
|
80
|
+
target: "_blank",
|
|
81
|
+
rel: "noopener noreferrer",
|
|
82
|
+
className: "text-foreground hover:text-muted-foreground transition-colors",
|
|
83
|
+
"aria-label": `${member.name} on Instagram`,
|
|
84
|
+
children: /* @__PURE__ */ jsx(InstagramIcon, {})
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
member.linkedinUrl && /* @__PURE__ */ jsx(
|
|
88
|
+
"a",
|
|
89
|
+
{
|
|
90
|
+
href: member.linkedinUrl,
|
|
91
|
+
target: "_blank",
|
|
92
|
+
rel: "noopener noreferrer",
|
|
93
|
+
className: "text-foreground hover:text-muted-foreground transition-colors",
|
|
94
|
+
"aria-label": `${member.name} on LinkedIn`,
|
|
95
|
+
children: /* @__PURE__ */ jsx(LinkedInIcon, {})
|
|
96
|
+
}
|
|
97
|
+
)
|
|
98
|
+
] })
|
|
99
|
+
] })
|
|
100
|
+
] })
|
|
101
|
+
] });
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
TeamProfiles
|
|
105
|
+
};
|
|
@@ -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;
|