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
|
@@ -2,51 +2,57 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../../../../utils/css-utils.js";
|
|
3
3
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
4
4
|
const Comparison = ({
|
|
5
|
-
padding,
|
|
6
|
-
sectionStyle,
|
|
7
|
-
backgroundColor,
|
|
8
5
|
heading,
|
|
9
6
|
description,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
className:
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
),
|
|
23
|
-
|
|
7
|
+
plans = [],
|
|
8
|
+
styles
|
|
9
|
+
}) => /* @__PURE__ */ jsxs(
|
|
10
|
+
CompoundContainer,
|
|
11
|
+
{
|
|
12
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
13
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
14
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsxs("div", { className: "mx-auto mb-12 max-w-2xl text-center", children: [
|
|
17
|
+
heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
|
|
18
|
+
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4 text-lg", children: description })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ jsx(
|
|
24
21
|
"div",
|
|
25
22
|
{
|
|
26
23
|
className: cn(
|
|
27
|
-
"
|
|
28
|
-
|
|
24
|
+
"grid gap-6",
|
|
25
|
+
plans.length === 2 ? "grid-cols-1 md:grid-cols-2" : "grid-cols-1 md:grid-cols-3"
|
|
29
26
|
),
|
|
30
|
-
children:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
27
|
+
children: plans.map((col, i) => /* @__PURE__ */ jsxs(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: cn(
|
|
31
|
+
"rounded-xl border p-6",
|
|
32
|
+
col.highlighted ? "border-primary bg-primary/5 shadow-lg" : "border-border bg-card"
|
|
33
|
+
),
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ jsx("h3", { className: "text-foreground mb-4 text-xl font-bold", children: col.name }),
|
|
36
|
+
/* @__PURE__ */ jsx("ul", { className: "space-y-3", children: col.features.map((f, fi) => /* @__PURE__ */ jsxs(
|
|
37
|
+
"li",
|
|
38
|
+
{
|
|
39
|
+
className: "text-muted-foreground flex items-start gap-2",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ jsx("span", { className: "text-primary mt-0.5", children: "✓" }),
|
|
42
|
+
/* @__PURE__ */ jsx("span", { children: f })
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
fi
|
|
46
|
+
)) })
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
i
|
|
50
|
+
))
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
);
|
|
50
56
|
export {
|
|
51
57
|
Comparison
|
|
52
58
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { paddingDefaults, backgroundColor, sectionStyle, padding } from "../../../puck-base/core/fields.js";
|
|
2
1
|
import { Comparison } from "./comparison.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 },
|
|
6
6
|
description: { type: "textarea", contentEditable: true },
|
|
7
|
-
|
|
7
|
+
plans: {
|
|
8
8
|
type: "array",
|
|
9
9
|
max: 4,
|
|
10
10
|
getItemSummary: (item, i = 0) => item.name || `Column ${i + 1}`,
|
|
@@ -31,14 +31,12 @@ const conf = {
|
|
|
31
31
|
features: ["Feature 1"]
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
|
|
35
|
-
sectionStyle,
|
|
36
|
-
backgroundColor
|
|
34
|
+
styles: createStylesField()
|
|
37
35
|
},
|
|
38
36
|
defaultProps: {
|
|
39
37
|
heading: "Compare Plans",
|
|
40
38
|
description: "Choose the plan that best fits your needs.",
|
|
41
|
-
|
|
39
|
+
plans: [
|
|
42
40
|
{
|
|
43
41
|
name: "Starter",
|
|
44
42
|
highlighted: false,
|
|
@@ -60,7 +58,7 @@ const conf = {
|
|
|
60
58
|
features: ["Everything in Pro", "SLA", "Dedicated Manager", "SSO"]
|
|
61
59
|
}
|
|
62
60
|
],
|
|
63
|
-
|
|
61
|
+
styles: createStylesDefaults()
|
|
64
62
|
},
|
|
65
63
|
render: Comparison
|
|
66
64
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { Pricing } from "./pricing.js";
|
|
2
|
-
import {
|
|
2
|
+
import { features, button, contentFields } 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
|
...contentFields,
|
|
6
|
-
|
|
7
|
+
plans: {
|
|
7
8
|
type: "array",
|
|
8
9
|
getItemSummary: (item, index = 0) => item.name || `Tier ${index + 1}`,
|
|
9
10
|
arrayFields: {
|
|
10
11
|
name: { type: "text", contentEditable: true },
|
|
11
12
|
description: { type: "textarea", contentEditable: true },
|
|
12
|
-
|
|
13
|
+
price: { type: "text", contentEditable: true },
|
|
13
14
|
cycle: { type: "text", contentEditable: true },
|
|
14
15
|
features,
|
|
15
16
|
button
|
|
@@ -17,7 +18,7 @@ const conf = {
|
|
|
17
18
|
defaultItemProps: {
|
|
18
19
|
name: "Plan / product / pricing tier name",
|
|
19
20
|
description: "Product description",
|
|
20
|
-
|
|
21
|
+
price: "$50",
|
|
21
22
|
cycle: "month",
|
|
22
23
|
features: [features.defaultItemProps],
|
|
23
24
|
button: {
|
|
@@ -31,12 +32,9 @@ const conf = {
|
|
|
31
32
|
min: 1,
|
|
32
33
|
max: 3
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
-
sectionStyle,
|
|
36
|
-
backgroundColor
|
|
35
|
+
styles: createStylesField()
|
|
37
36
|
},
|
|
38
37
|
defaultProps: {
|
|
39
|
-
padding: paddingDefaults,
|
|
40
38
|
badge: {
|
|
41
39
|
label: "Platform",
|
|
42
40
|
url: "",
|
|
@@ -45,10 +43,10 @@ const conf = {
|
|
|
45
43
|
heading: "Something new!",
|
|
46
44
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt",
|
|
47
45
|
buttons: [],
|
|
48
|
-
|
|
46
|
+
plans: Array.from({ length: 3 }).map((_, index) => ({
|
|
49
47
|
name: `Plan ${index + 1}`,
|
|
50
48
|
description: "Our goal is to streamline SMB trade, making it easier and faster than ever for everyone and everywhere.",
|
|
51
|
-
|
|
49
|
+
price: "$40",
|
|
52
50
|
cycle: "month",
|
|
53
51
|
features: Array.from({ length: 3 }).map((_2, index2) => ({
|
|
54
52
|
icon: "check",
|
|
@@ -62,7 +60,8 @@ const conf = {
|
|
|
62
60
|
variant: "outline",
|
|
63
61
|
size: "default"
|
|
64
62
|
}
|
|
65
|
-
}))
|
|
63
|
+
})),
|
|
64
|
+
styles: createStylesDefaults()
|
|
66
65
|
},
|
|
67
66
|
render: Pricing
|
|
68
67
|
};
|
|
@@ -3,17 +3,19 @@ import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
|
3
3
|
import { CompoundContentProps } from "@/components/puck-base/content";
|
|
4
4
|
import { Feature } from "@/components/puck-base/core/types";
|
|
5
5
|
export interface PricingProps extends CompoundContentProps {
|
|
6
|
-
|
|
7
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
8
|
-
backgroundColor?: string;
|
|
9
|
-
tiers: {
|
|
6
|
+
plans: {
|
|
10
7
|
name: string;
|
|
11
8
|
description: string;
|
|
12
|
-
|
|
9
|
+
price: string;
|
|
13
10
|
cycle: string;
|
|
14
11
|
features: Feature[];
|
|
15
12
|
button: CompoundButtonProps;
|
|
16
13
|
}[];
|
|
17
|
-
|
|
14
|
+
styles?: {
|
|
15
|
+
padding?: CompoundContainerProps["padding"];
|
|
16
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
};
|
|
18
20
|
}
|
|
19
21
|
export declare const Pricing: (props: PricingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { Pricing2 } from "./pricing-2.js";
|
|
2
|
+
import { button } from "../../../puck-base/core/fields.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
4
|
+
const conf = {
|
|
5
|
+
fields: {
|
|
6
|
+
heading: { type: "text", contentEditable: true },
|
|
7
|
+
description: { type: "textarea", contentEditable: true },
|
|
8
|
+
plans: {
|
|
9
|
+
type: "array",
|
|
10
|
+
getItemSummary: (item, index = 0) => item.title || `Tier ${index + 1}`,
|
|
11
|
+
arrayFields: {
|
|
12
|
+
badgeLabel: {
|
|
13
|
+
type: "text",
|
|
14
|
+
label: "Badge (optional)",
|
|
15
|
+
contentEditable: true
|
|
16
|
+
},
|
|
17
|
+
title: { type: "text", contentEditable: true },
|
|
18
|
+
description: { type: "textarea", contentEditable: true },
|
|
19
|
+
price: { type: "text", label: "Price", contentEditable: true },
|
|
20
|
+
period: { type: "text", label: "Period", contentEditable: true },
|
|
21
|
+
button,
|
|
22
|
+
featuresLabel: {
|
|
23
|
+
type: "text",
|
|
24
|
+
label: "Features heading",
|
|
25
|
+
contentEditable: true
|
|
26
|
+
},
|
|
27
|
+
features: {
|
|
28
|
+
type: "array",
|
|
29
|
+
max: 8,
|
|
30
|
+
getItemSummary: (item, index = 0) => item.title || `Feature ${index + 1}`,
|
|
31
|
+
arrayFields: {
|
|
32
|
+
title: { type: "text", contentEditable: true }
|
|
33
|
+
},
|
|
34
|
+
defaultItemProps: { title: "Feature item" }
|
|
35
|
+
},
|
|
36
|
+
isFeatured: {
|
|
37
|
+
type: "radio",
|
|
38
|
+
label: "Card style",
|
|
39
|
+
options: [
|
|
40
|
+
{ label: "Featured (elevated)", value: true },
|
|
41
|
+
{ label: "Standard", value: false }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
defaultItemProps: {
|
|
46
|
+
badgeLabel: "",
|
|
47
|
+
title: "Plan Name",
|
|
48
|
+
description: "Brief description of this plan.",
|
|
49
|
+
price: "$50",
|
|
50
|
+
period: "per month",
|
|
51
|
+
button: {
|
|
52
|
+
label: "Get started",
|
|
53
|
+
url: "#",
|
|
54
|
+
variant: "outline",
|
|
55
|
+
size: "default",
|
|
56
|
+
icon: "none"
|
|
57
|
+
},
|
|
58
|
+
featuresLabel: "What's included:",
|
|
59
|
+
features: [
|
|
60
|
+
{ title: "Feature one" },
|
|
61
|
+
{ title: "Feature two" },
|
|
62
|
+
{ title: "Feature three" }
|
|
63
|
+
],
|
|
64
|
+
isFeatured: false
|
|
65
|
+
},
|
|
66
|
+
min: 1,
|
|
67
|
+
max: 4
|
|
68
|
+
},
|
|
69
|
+
styles: createStylesField()
|
|
70
|
+
},
|
|
71
|
+
defaultProps: {
|
|
72
|
+
heading: "Training plans tailored to you",
|
|
73
|
+
description: "Choose the package that fits your goals. Start with one session or commit to a program.",
|
|
74
|
+
plans: [
|
|
75
|
+
{
|
|
76
|
+
badgeLabel: "",
|
|
77
|
+
title: "Single Session",
|
|
78
|
+
description: "Try a one-on-one training session. Perfect for first-timers or testing your fit.",
|
|
79
|
+
price: "$75",
|
|
80
|
+
period: "per session",
|
|
81
|
+
button: {
|
|
82
|
+
label: "Schedule a session",
|
|
83
|
+
url: "#",
|
|
84
|
+
variant: "outline",
|
|
85
|
+
size: "default",
|
|
86
|
+
icon: "none"
|
|
87
|
+
},
|
|
88
|
+
featuresLabel: "What's included:",
|
|
89
|
+
features: [
|
|
90
|
+
{ title: "One 60-minute session" },
|
|
91
|
+
{ title: "Form and technique guidance" },
|
|
92
|
+
{ title: "Personalized exercise selection" },
|
|
93
|
+
{ title: "No commitment required" }
|
|
94
|
+
],
|
|
95
|
+
isFeatured: false
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
badgeLabel: "Most popular",
|
|
99
|
+
title: "4-Week Program",
|
|
100
|
+
description: "Four weekly sessions designed around your goals. Build momentum and see real progress in a month.",
|
|
101
|
+
price: "$260",
|
|
102
|
+
period: "per month",
|
|
103
|
+
button: {
|
|
104
|
+
label: "Start your program",
|
|
105
|
+
url: "#",
|
|
106
|
+
variant: "default",
|
|
107
|
+
size: "default",
|
|
108
|
+
icon: "none"
|
|
109
|
+
},
|
|
110
|
+
featuresLabel: "What's included:",
|
|
111
|
+
features: [
|
|
112
|
+
{ title: "Four 60-minute sessions" },
|
|
113
|
+
{ title: "Custom workout plan" },
|
|
114
|
+
{ title: "Monthly progress check-in" },
|
|
115
|
+
{ title: "Email support between sessions" },
|
|
116
|
+
{ title: "Form videos and tips" }
|
|
117
|
+
],
|
|
118
|
+
isFeatured: true
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
badgeLabel: "",
|
|
122
|
+
title: "8-Week Intensive",
|
|
123
|
+
description: "Two sessions per week for eight weeks. Get serious results with consistent training and close coaching.",
|
|
124
|
+
price: "$480",
|
|
125
|
+
period: "per month",
|
|
126
|
+
button: {
|
|
127
|
+
label: "Join the intensive",
|
|
128
|
+
url: "#",
|
|
129
|
+
variant: "outline",
|
|
130
|
+
size: "default",
|
|
131
|
+
icon: "none"
|
|
132
|
+
},
|
|
133
|
+
featuresLabel: "What's included:",
|
|
134
|
+
features: [
|
|
135
|
+
{ title: "Eight 60-minute sessions" },
|
|
136
|
+
{ title: "Detailed fitness assessment" },
|
|
137
|
+
{ title: "Progressive training plan" },
|
|
138
|
+
{ title: "Bi-weekly progress reviews" },
|
|
139
|
+
{ title: "Priority scheduling" },
|
|
140
|
+
{ title: "Direct phone and email support" }
|
|
141
|
+
],
|
|
142
|
+
isFeatured: false
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
styles: createStylesDefaults()
|
|
146
|
+
},
|
|
147
|
+
render: Pricing2
|
|
148
|
+
};
|
|
149
|
+
export {
|
|
150
|
+
conf
|
|
151
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
2
|
+
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
3
|
+
export interface PricingTierItem {
|
|
4
|
+
badgeLabel: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
price: string;
|
|
8
|
+
period: string;
|
|
9
|
+
button: CompoundButtonProps;
|
|
10
|
+
featuresLabel: string;
|
|
11
|
+
features: {
|
|
12
|
+
title: string;
|
|
13
|
+
}[];
|
|
14
|
+
isFeatured: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface Pricing2Props {
|
|
17
|
+
heading: string;
|
|
18
|
+
description: string;
|
|
19
|
+
plans: PricingTierItem[];
|
|
20
|
+
styles?: {
|
|
21
|
+
padding?: CompoundContainerProps["padding"];
|
|
22
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
23
|
+
backgroundColor?: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare const Pricing2: (props: Pricing2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check } from "lucide-react";
|
|
3
|
+
import { cn } from "../../../../utils/css-utils.js";
|
|
4
|
+
import { CompoundButton } from "../../../puck-base/button.js";
|
|
5
|
+
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
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
|
+
)
|
|
51
|
+
] }),
|
|
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
|
+
] })
|
|
60
|
+
] })
|
|
61
|
+
] })
|
|
62
|
+
},
|
|
63
|
+
index
|
|
64
|
+
)) })
|
|
65
|
+
] })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
Pricing2
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
|
+
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
|
+
export interface BeforeAfterItem {
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BeforeAfterProps {
|
|
7
|
+
eyebrow?: string;
|
|
8
|
+
heading?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
beforeLabel?: string;
|
|
11
|
+
beforeItems?: BeforeAfterItem[];
|
|
12
|
+
afterLabel?: string;
|
|
13
|
+
afterItems?: BeforeAfterItem[];
|
|
14
|
+
button?: CompoundButtonProps;
|
|
15
|
+
layout?: "side-by-side" | "stacked";
|
|
16
|
+
styles?: {
|
|
17
|
+
padding?: CompoundContainerProps["padding"];
|
|
18
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const BeforeAfter: ({ eyebrow, heading, description, beforeLabel, beforeItems, afterLabel, afterItems, button, layout, styles, }: BeforeAfterProps) => import("react/jsx-runtime").JSX.Element;
|