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
|
@@ -4,43 +4,55 @@ import { CompoundButton } from "../../../puck-base/button.js";
|
|
|
4
4
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
5
5
|
import { CompoundContent } from "../../../puck-base/content.js";
|
|
6
6
|
import DynamicIcon from "../../../../node_modules/.pnpm/lucide-react@0.540.0_react@19.2.4/node_modules/lucide-react/dist/esm/DynamicIcon.js";
|
|
7
|
-
const Pricing = (props) =>
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
const Pricing = (props) => {
|
|
8
|
+
var _a, _b, _c, _d;
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
CompoundContainer,
|
|
10
11
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
padding: (_a = props.styles) == null ? void 0 : _a.padding,
|
|
13
|
+
sectionStyle: (_b = props.styles) == null ? void 0 : _b.sectionStyle,
|
|
14
|
+
backgroundColor: (_c = props.styles) == null ? void 0 : _c.backgroundColor,
|
|
15
|
+
className: (_d = props.styles) == null ? void 0 : _d.className,
|
|
16
|
+
children: /* @__PURE__ */ jsxs("div", { children: [
|
|
17
|
+
/* @__PURE__ */ jsx(
|
|
18
|
+
CompoundContent,
|
|
19
|
+
{
|
|
20
|
+
badge: props.badge,
|
|
21
|
+
heading: props.heading,
|
|
22
|
+
description: props.description,
|
|
23
|
+
buttons: props.buttons,
|
|
24
|
+
alignContent: "center",
|
|
25
|
+
spacing: "tight"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full grid-cols-1 gap-8 pt-20 text-left lg:grid-cols-3", children: (props.plans ?? []).map((tier, index) => /* @__PURE__ */ jsxs(Card, { className: "w-full rounded-md shadow", children: [
|
|
29
|
+
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
30
|
+
/* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx("span", { className: "flex flex-row items-center gap-4 font-normal", children: tier.name }) }),
|
|
31
|
+
/* @__PURE__ */ jsx(CardDescription, { children: tier.description })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-start gap-8", children: [
|
|
34
|
+
/* @__PURE__ */ jsxs("p", { className: "flex flex-row items-center gap-2 text-xl", children: [
|
|
35
|
+
/* @__PURE__ */ jsx("span", { className: "text-4xl", children: tier.price }),
|
|
36
|
+
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-sm", children: [
|
|
37
|
+
" ",
|
|
38
|
+
"/ ",
|
|
39
|
+
tier.cycle
|
|
40
|
+
] })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col justify-start gap-4", children: (tier.features ?? []).map((feature, index2) => /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4", children: [
|
|
43
|
+
feature.icon && feature.icon !== "none" ? /* @__PURE__ */ jsx(DynamicIcon, { name: feature.icon }) : null,
|
|
44
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
45
|
+
/* @__PURE__ */ jsx("p", { children: feature.name }),
|
|
46
|
+
feature.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: feature.description }) : null
|
|
47
|
+
] })
|
|
48
|
+
] }, index2)) }),
|
|
49
|
+
/* @__PURE__ */ jsx(CompoundButton, { ...tier.button })
|
|
50
|
+
] }) })
|
|
51
|
+
] }, index)) })
|
|
52
|
+
] })
|
|
17
53
|
}
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
/* @__PURE__ */ jsxs(CardHeader, { children: [
|
|
21
|
-
/* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx("span", { className: "flex flex-row items-center gap-4 font-normal", children: tier.name }) }),
|
|
22
|
-
/* @__PURE__ */ jsx(CardDescription, { children: tier.description })
|
|
23
|
-
] }),
|
|
24
|
-
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-start gap-8", children: [
|
|
25
|
-
/* @__PURE__ */ jsxs("p", { className: "flex flex-row items-center gap-2 text-xl", children: [
|
|
26
|
-
/* @__PURE__ */ jsx("span", { className: "text-4xl", children: tier.cost }),
|
|
27
|
-
/* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-sm", children: [
|
|
28
|
-
" ",
|
|
29
|
-
"/ ",
|
|
30
|
-
tier.cycle
|
|
31
|
-
] })
|
|
32
|
-
] }),
|
|
33
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col justify-start gap-4", children: (tier.features ?? []).map((feature, index2) => /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4", children: [
|
|
34
|
-
feature.icon && feature.icon !== "none" ? /* @__PURE__ */ jsx(DynamicIcon, { name: feature.icon }) : null,
|
|
35
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
36
|
-
/* @__PURE__ */ jsx("p", { children: feature.name }),
|
|
37
|
-
feature.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: feature.description }) : null
|
|
38
|
-
] })
|
|
39
|
-
] }, index2)) }),
|
|
40
|
-
/* @__PURE__ */ jsx(CompoundButton, { ...tier.button })
|
|
41
|
-
] }) })
|
|
42
|
-
] }, index)) })
|
|
43
|
-
] }) });
|
|
54
|
+
);
|
|
55
|
+
};
|
|
44
56
|
export {
|
|
45
57
|
Pricing
|
|
46
58
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Pricing2 } from "./pricing-2.js";
|
|
2
|
-
import {
|
|
2
|
+
import { button } from "../../../puck-base/core/fields.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
heading: { type: "text", contentEditable: true },
|
|
6
7
|
description: { type: "textarea", contentEditable: true },
|
|
7
|
-
|
|
8
|
+
plans: {
|
|
8
9
|
type: "array",
|
|
9
10
|
getItemSummary: (item, index = 0) => item.title || `Tier ${index + 1}`,
|
|
10
11
|
arrayFields: {
|
|
@@ -65,15 +66,12 @@ const conf = {
|
|
|
65
66
|
min: 1,
|
|
66
67
|
max: 4
|
|
67
68
|
},
|
|
68
|
-
|
|
69
|
-
sectionStyle,
|
|
70
|
-
backgroundColor
|
|
69
|
+
styles: createStylesField()
|
|
71
70
|
},
|
|
72
71
|
defaultProps: {
|
|
73
|
-
padding: paddingDefaults,
|
|
74
72
|
heading: "Training plans tailored to you",
|
|
75
73
|
description: "Choose the package that fits your goals. Start with one session or commit to a program.",
|
|
76
|
-
|
|
74
|
+
plans: [
|
|
77
75
|
{
|
|
78
76
|
badgeLabel: "",
|
|
79
77
|
title: "Single Session",
|
|
@@ -143,7 +141,8 @@ const conf = {
|
|
|
143
141
|
],
|
|
144
142
|
isFeatured: false
|
|
145
143
|
}
|
|
146
|
-
]
|
|
144
|
+
],
|
|
145
|
+
styles: createStylesDefaults()
|
|
147
146
|
},
|
|
148
147
|
render: Pricing2
|
|
149
148
|
};
|
|
@@ -16,9 +16,11 @@ export interface PricingTierItem {
|
|
|
16
16
|
export interface Pricing2Props {
|
|
17
17
|
heading: string;
|
|
18
18
|
description: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
plans: PricingTierItem[];
|
|
20
|
+
styles?: {
|
|
21
|
+
padding?: CompoundContainerProps["padding"];
|
|
22
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
};
|
|
23
25
|
}
|
|
24
26
|
export declare const Pricing2: (props: Pricing2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,66 +3,69 @@ import { Check } from "lucide-react";
|
|
|
3
3
|
import { cn } from "../../../../utils/css-utils.js";
|
|
4
4
|
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
5
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
6
|
-
const Pricing2 = (props) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/* @__PURE__ */
|
|
6
|
+
const Pricing2 = (props) => {
|
|
7
|
+
var _a, _b, _c;
|
|
8
|
+
return /* @__PURE__ */ jsx(
|
|
9
|
+
CompoundContainer,
|
|
10
|
+
{
|
|
11
|
+
padding: (_a = props.styles) == null ? void 0 : _a.padding,
|
|
12
|
+
sectionStyle: (_b = props.styles) == null ? void 0 : _b.sectionStyle,
|
|
13
|
+
backgroundColor: (_c = props.styles) == null ? void 0 : _c.backgroundColor,
|
|
14
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-14", children: [
|
|
15
|
+
/* @__PURE__ */ jsxs("div", { className: "flex max-w-2xl flex-col items-center gap-4 text-center", children: [
|
|
16
|
+
/* @__PURE__ */ jsx("h2", { className: "text-foreground text-balance text-4xl font-bold tracking-tight", children: props.heading }),
|
|
17
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-base leading-relaxed", children: props.description })
|
|
18
|
+
] }),
|
|
19
|
+
/* @__PURE__ */ jsx("div", { className: "grid w-full max-w-7xl grid-cols-1 gap-6 lg:grid-cols-3", children: (props.plans ?? []).map((tier, index) => /* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: cn("flex flex-col", tier.isFeatured && "lg:-mt-8"),
|
|
23
|
+
children: /* @__PURE__ */ jsxs("div", { className: "bg-foreground/5 flex h-full flex-col gap-6 overflow-hidden rounded-3xl px-1 pt-1 pb-8", children: [
|
|
24
|
+
/* @__PURE__ */ jsxs(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
className: cn(
|
|
28
|
+
"bg-foreground/5 flex w-full flex-col gap-2 rounded-3xl px-8 py-7",
|
|
29
|
+
tier.isFeatured ? "min-h-44" : "min-h-36"
|
|
30
|
+
),
|
|
31
|
+
children: [
|
|
32
|
+
tier.badgeLabel && /* @__PURE__ */ jsx("div", { className: "w-fit rounded-full bg-foreground px-2.5 py-1", children: /* @__PURE__ */ jsx("span", { className: "text-background text-xs font-medium", children: tier.badgeLabel }) }),
|
|
33
|
+
/* @__PURE__ */ jsx("h3", { className: "text-foreground text-xl font-semibold", children: tier.title }),
|
|
34
|
+
/* @__PURE__ */ jsx("p", { className: "text-foreground/70 text-sm", children: tier.description })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 px-8", children: [
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
40
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-1", children: [
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground text-4xl font-bold", children: tier.price }),
|
|
42
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm", children: tier.period })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ jsx(
|
|
45
|
+
CompoundButton,
|
|
46
|
+
{
|
|
47
|
+
...tier.button,
|
|
48
|
+
className: cn("w-full", tier.button.className)
|
|
49
|
+
}
|
|
50
|
+
)
|
|
41
51
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
className:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
51
|
-
/* @__PURE__ */ jsx("div", { className: "bg-border h-px w-full" }),
|
|
52
|
-
tier.featuresLabel && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wider", children: tier.featuresLabel }),
|
|
53
|
-
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: (tier.features ?? []).map((feature, fi) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
54
|
-
/* @__PURE__ */ jsx(Check, { className: "text-foreground h-4 w-4 shrink-0" }),
|
|
55
|
-
/* @__PURE__ */ jsx("span", { className: "text-foreground text-sm", children: feature.title })
|
|
56
|
-
] }, fi)) })
|
|
52
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
53
|
+
/* @__PURE__ */ jsx("div", { className: "bg-border h-px w-full" }),
|
|
54
|
+
tier.featuresLabel && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wider", children: tier.featuresLabel }),
|
|
55
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: (tier.features ?? []).map((feature, fi) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Check, { className: "text-foreground h-4 w-4 shrink-0" }),
|
|
57
|
+
/* @__PURE__ */ jsx("span", { className: "text-foreground text-sm", children: feature.title })
|
|
58
|
+
] }, fi)) })
|
|
59
|
+
] })
|
|
57
60
|
] })
|
|
58
61
|
] })
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
},
|
|
63
|
+
index
|
|
64
|
+
)) })
|
|
65
|
+
] })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
};
|
|
66
69
|
export {
|
|
67
70
|
Pricing2
|
|
68
71
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type PricingVariant = "comparison-1" | "pricing-1" | "pricing-2";
|
|
2
|
+
type PricingPadding = {
|
|
3
|
+
top?: "none" | "small" | "medium" | "large";
|
|
4
|
+
bottom?: "none" | "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
type PricingSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
|
|
7
|
+
type PricingBadge = {
|
|
8
|
+
label: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
variant?: "default" | "secondary" | "destructive" | "outline";
|
|
11
|
+
};
|
|
12
|
+
type PricingButton = {
|
|
13
|
+
label: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
|
|
16
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
17
|
+
icon?: string;
|
|
18
|
+
};
|
|
19
|
+
type PricingFeature = string | {
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
};
|
|
24
|
+
type PricingPlan = {
|
|
25
|
+
name: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
price?: string;
|
|
28
|
+
cycle?: string;
|
|
29
|
+
features?: PricingFeature[];
|
|
30
|
+
button?: PricingButton;
|
|
31
|
+
highlighted?: boolean;
|
|
32
|
+
};
|
|
33
|
+
type PricingSectionProps = {
|
|
34
|
+
variant?: PricingVariant;
|
|
35
|
+
badge?: PricingBadge;
|
|
36
|
+
heading?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
buttons?: PricingButton[];
|
|
39
|
+
plans?: PricingPlan[];
|
|
40
|
+
styles?: {
|
|
41
|
+
padding?: PricingPadding;
|
|
42
|
+
sectionStyle?: PricingSectionStyle;
|
|
43
|
+
backgroundColor?: string;
|
|
44
|
+
className?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -4,10 +4,7 @@ export interface BeforeAfterItem {
|
|
|
4
4
|
text: string;
|
|
5
5
|
}
|
|
6
6
|
export interface BeforeAfterProps {
|
|
7
|
-
|
|
8
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
kicker?: string;
|
|
7
|
+
eyebrow?: string;
|
|
11
8
|
heading?: string;
|
|
12
9
|
description?: string;
|
|
13
10
|
beforeLabel?: string;
|
|
@@ -16,5 +13,10 @@ export interface BeforeAfterProps {
|
|
|
16
13
|
afterItems?: BeforeAfterItem[];
|
|
17
14
|
button?: CompoundButtonProps;
|
|
18
15
|
layout?: "side-by-side" | "stacked";
|
|
16
|
+
styles?: {
|
|
17
|
+
padding?: CompoundContainerProps["padding"];
|
|
18
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
};
|
|
19
21
|
}
|
|
20
|
-
export declare const BeforeAfter: ({
|
|
22
|
+
export declare const BeforeAfter: ({ eyebrow, heading, description, beforeLabel, beforeItems, afterLabel, afterItems, button, layout, styles, }: BeforeAfterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,10 +5,7 @@ import { CompoundButton } from "../../../puck-base/button.js";
|
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { X, Check } from "lucide-react";
|
|
7
7
|
const BeforeAfter = ({
|
|
8
|
-
|
|
9
|
-
sectionStyle,
|
|
10
|
-
backgroundColor,
|
|
11
|
-
kicker,
|
|
8
|
+
eyebrow,
|
|
12
9
|
heading,
|
|
13
10
|
description,
|
|
14
11
|
beforeLabel = "Before",
|
|
@@ -16,16 +13,17 @@ const BeforeAfter = ({
|
|
|
16
13
|
afterLabel = "After",
|
|
17
14
|
afterItems = [],
|
|
18
15
|
button,
|
|
19
|
-
layout = "side-by-side"
|
|
16
|
+
layout = "side-by-side",
|
|
17
|
+
styles
|
|
20
18
|
}) => /* @__PURE__ */ jsxs(
|
|
21
19
|
CompoundContainer,
|
|
22
20
|
{
|
|
23
|
-
padding,
|
|
24
|
-
sectionStyle,
|
|
25
|
-
backgroundColor,
|
|
21
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
22
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
23
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
26
24
|
children: [
|
|
27
|
-
(
|
|
28
|
-
|
|
25
|
+
(eyebrow || heading || description) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center max-w-2xl mx-auto", children: [
|
|
26
|
+
eyebrow && /* @__PURE__ */ jsx("p", { className: "text-primary text-sm font-semibold uppercase tracking-widest mb-3", children: eyebrow }),
|
|
29
27
|
heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
|
|
30
28
|
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4 text-lg", children: description })
|
|
31
29
|
] }),
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { actionDefaults, button } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { BeforeAfter } from "./before-after.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
|
-
|
|
6
|
+
eyebrow: { type: "text", contentEditable: true },
|
|
6
7
|
heading: { type: "text", contentEditable: true },
|
|
7
8
|
description: { type: "textarea", contentEditable: true },
|
|
8
9
|
layout: {
|
|
@@ -34,12 +35,10 @@ const conf = {
|
|
|
34
35
|
defaultItemProps: { text: "Benefit or new way of doing things" }
|
|
35
36
|
},
|
|
36
37
|
button,
|
|
37
|
-
|
|
38
|
-
sectionStyle,
|
|
39
|
-
backgroundColor
|
|
38
|
+
styles: createStylesField()
|
|
40
39
|
},
|
|
41
40
|
defaultProps: {
|
|
42
|
-
|
|
41
|
+
eyebrow: "Why choose us",
|
|
43
42
|
heading: "The old way vs. the better way",
|
|
44
43
|
description: "See exactly what changes when you switch to a smarter solution.",
|
|
45
44
|
layout: "side-by-side",
|
|
@@ -65,7 +64,7 @@ const conf = {
|
|
|
65
64
|
size: "lg",
|
|
66
65
|
icon: "arrow-right"
|
|
67
66
|
},
|
|
68
|
-
|
|
67
|
+
styles: createStylesDefaults()
|
|
69
68
|
},
|
|
70
69
|
render: BeforeAfter
|
|
71
70
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
export interface CaseStudyProps {
|
|
3
|
-
padding?: CompoundContainerProps["padding"];
|
|
4
3
|
heading?: string;
|
|
5
4
|
description?: string;
|
|
6
5
|
stats?: Array<{
|
|
@@ -13,5 +12,10 @@ export interface CaseStudyProps {
|
|
|
13
12
|
src: string;
|
|
14
13
|
alt: string;
|
|
15
14
|
};
|
|
15
|
+
styles?: {
|
|
16
|
+
padding?: CompoundContainerProps["padding"];
|
|
17
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
};
|
|
16
20
|
}
|
|
17
|
-
export declare const CaseStudy: ({
|
|
21
|
+
export declare const CaseStudy: ({ heading, description, stats, quote, author, logo, styles, }: CaseStudyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,33 +2,41 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
3
3
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
4
4
|
const CaseStudy = ({
|
|
5
|
-
padding,
|
|
6
5
|
heading,
|
|
7
6
|
description,
|
|
8
7
|
stats = [],
|
|
9
8
|
quote,
|
|
10
9
|
author,
|
|
11
|
-
logo
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
10
|
+
logo,
|
|
11
|
+
styles
|
|
12
|
+
}) => /* @__PURE__ */ jsx(
|
|
13
|
+
CompoundContainer,
|
|
14
|
+
{
|
|
15
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
16
|
+
sectionStyle: (styles == null ? void 0 : styles.sectionStyle) ?? "muted",
|
|
17
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
18
|
+
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-4xl", children: [
|
|
19
|
+
(logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx("span", { className: "mb-8 inline-block opacity-60", children: /* @__PURE__ */ jsx(CompoundImage, { src: logo.src, alt: logo.alt || "", className: "h-8 w-auto" }) }),
|
|
20
|
+
heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground mb-4 text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
|
|
21
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-8 text-lg", children: description }),
|
|
22
|
+
stats.length > 0 && /* @__PURE__ */ jsx("div", { className: "mb-10 grid grid-cols-2 gap-6 md:grid-cols-4", children: stats.map((s, i) => /* @__PURE__ */ jsxs("div", { children: [
|
|
23
|
+
/* @__PURE__ */ jsx("p", { className: "text-primary text-3xl font-bold", children: s.value }),
|
|
24
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 text-sm", children: s.label })
|
|
25
|
+
] }, i)) }),
|
|
26
|
+
quote && /* @__PURE__ */ jsxs("blockquote", { className: "border-primary border-l-4 py-2 pl-6", children: [
|
|
27
|
+
/* @__PURE__ */ jsxs("p", { className: "text-foreground text-lg italic", children: [
|
|
28
|
+
"“",
|
|
29
|
+
quote,
|
|
30
|
+
"”"
|
|
31
|
+
] }),
|
|
32
|
+
author && /* @__PURE__ */ jsxs("cite", { className: "text-muted-foreground mt-2 block text-sm not-italic", children: [
|
|
33
|
+
"— ",
|
|
34
|
+
author
|
|
35
|
+
] })
|
|
36
|
+
] })
|
|
29
37
|
] })
|
|
30
|
-
|
|
31
|
-
|
|
38
|
+
}
|
|
39
|
+
);
|
|
32
40
|
export {
|
|
33
41
|
CaseStudy
|
|
34
42
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { CaseStudy } from "./case-study.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
heading: { type: "text", contentEditable: true },
|
|
@@ -14,7 +15,7 @@ const conf = {
|
|
|
14
15
|
},
|
|
15
16
|
quote: { type: "textarea", contentEditable: true },
|
|
16
17
|
author: { type: "text" },
|
|
17
|
-
|
|
18
|
+
styles: createStylesField()
|
|
18
19
|
},
|
|
19
20
|
defaultProps: {
|
|
20
21
|
heading: "How Acme Corp grew 3x in 6 months",
|
|
@@ -26,7 +27,7 @@ const conf = {
|
|
|
26
27
|
],
|
|
27
28
|
quote: "This product changed everything for our team. We can't imagine going back.",
|
|
28
29
|
author: "Jane Doe, CEO at Acme",
|
|
29
|
-
|
|
30
|
+
styles: createStylesDefaults()
|
|
30
31
|
},
|
|
31
32
|
render: CaseStudy
|
|
32
33
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type ShowcaseVariant = "before-after-1" | "case-study-1" | "step-by-step-1";
|
|
2
|
+
type ShowcasePadding = {
|
|
3
|
+
top?: "none" | "small" | "medium" | "large";
|
|
4
|
+
bottom?: "none" | "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
type ShowcaseSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
|
|
7
|
+
type ShowcaseButton = {
|
|
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 ShowcaseImage = {
|
|
15
|
+
src: string;
|
|
16
|
+
alt?: string;
|
|
17
|
+
};
|
|
18
|
+
type ShowcaseItem = {
|
|
19
|
+
title?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
label?: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
};
|
|
24
|
+
type ShowcaseSectionProps = {
|
|
25
|
+
variant?: ShowcaseVariant;
|
|
26
|
+
eyebrow?: string;
|
|
27
|
+
heading?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
beforeLabel?: string;
|
|
30
|
+
beforeItems?: ShowcaseItem[];
|
|
31
|
+
afterLabel?: string;
|
|
32
|
+
afterItems?: ShowcaseItem[];
|
|
33
|
+
layout?: "side-by-side" | "stacked" | "vertical" | "horizontal" | "numbered";
|
|
34
|
+
button?: ShowcaseButton;
|
|
35
|
+
steps?: ShowcaseItem[];
|
|
36
|
+
stats?: Array<{
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}>;
|
|
40
|
+
quote?: string;
|
|
41
|
+
author?: string;
|
|
42
|
+
logo?: ShowcaseImage;
|
|
43
|
+
styles?: {
|
|
44
|
+
padding?: ShowcasePadding;
|
|
45
|
+
sectionStyle?: ShowcaseSectionStyle;
|
|
46
|
+
backgroundColor?: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { paddingDefaults, backgroundColor, sectionStyle, padding } from "../../../puck-base/core/fields.js";
|
|
2
1
|
import { StepByStep } from "./step-by-step.js";
|
|
2
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
3
|
const conf = {
|
|
4
4
|
fields: {
|
|
5
5
|
heading: { type: "text", contentEditable: true },
|
|
@@ -28,9 +28,7 @@ const conf = {
|
|
|
28
28
|
description: "Describe what happens in this step."
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
|
-
|
|
32
|
-
sectionStyle,
|
|
33
|
-
backgroundColor
|
|
31
|
+
styles: createStylesField()
|
|
34
32
|
},
|
|
35
33
|
defaultProps: {
|
|
36
34
|
heading: "How it works",
|
|
@@ -53,7 +51,7 @@ const conf = {
|
|
|
53
51
|
description: "Launch your first project and see results immediately."
|
|
54
52
|
}
|
|
55
53
|
],
|
|
56
|
-
|
|
54
|
+
styles: createStylesDefaults()
|
|
57
55
|
},
|
|
58
56
|
render: StepByStep
|
|
59
57
|
};
|
|
@@ -6,12 +6,14 @@ export interface StepByStepItem {
|
|
|
6
6
|
iconUrl?: string;
|
|
7
7
|
}
|
|
8
8
|
export interface StepByStepProps {
|
|
9
|
-
padding?: CompoundContainerProps["padding"];
|
|
10
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
11
|
-
backgroundColor?: string;
|
|
12
9
|
heading?: string;
|
|
13
10
|
description?: string;
|
|
14
11
|
layout?: "vertical" | "horizontal" | "numbered";
|
|
15
12
|
steps?: StepByStepItem[];
|
|
13
|
+
styles?: {
|
|
14
|
+
padding?: CompoundContainerProps["padding"];
|
|
15
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
16
|
+
backgroundColor?: string;
|
|
17
|
+
};
|
|
16
18
|
}
|
|
17
|
-
export declare const StepByStep: ({
|
|
19
|
+
export declare const StepByStep: ({ heading, description, layout, steps, styles, }: StepByStepProps) => import("react/jsx-runtime").JSX.Element;
|