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,67 +4,73 @@ import { CompoundContainer } from "../../../puck-base/container.js";
|
|
|
4
4
|
import { cn } from "../../../../utils/css-utils.js";
|
|
5
5
|
import { CompoundContent } from "../../../puck-base/content.js";
|
|
6
6
|
const Stats = ({
|
|
7
|
-
padding,
|
|
8
|
-
sectionStyle,
|
|
9
|
-
backgroundColor,
|
|
10
7
|
layout = "section",
|
|
11
8
|
badge,
|
|
12
9
|
heading,
|
|
13
10
|
description,
|
|
14
11
|
buttons,
|
|
15
|
-
|
|
12
|
+
items,
|
|
13
|
+
styles
|
|
16
14
|
}) => {
|
|
17
|
-
return /* @__PURE__ */ jsxs(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
15
|
+
return /* @__PURE__ */ jsxs(
|
|
16
|
+
CompoundContainer,
|
|
17
|
+
{
|
|
18
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
19
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
20
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
21
|
+
children: [
|
|
22
|
+
layout === "inline" ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4 text-start sm:grid-cols-2 lg:grid-cols-4 lg:gap-8", children: (items ?? []).map((stat, index) => /* @__PURE__ */ jsx(
|
|
23
|
+
Stat,
|
|
24
|
+
{
|
|
25
|
+
value: stat.value,
|
|
26
|
+
label: stat.label,
|
|
27
|
+
direction: stat.direction,
|
|
28
|
+
polarity: stat.polarity,
|
|
29
|
+
percentage: stat.percentage
|
|
30
|
+
},
|
|
31
|
+
index
|
|
32
|
+
)) }) : null,
|
|
33
|
+
layout === "section" ? /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-10 lg:grid-cols-2", children: [
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
CompoundContent,
|
|
36
|
+
{
|
|
37
|
+
badge,
|
|
38
|
+
heading,
|
|
39
|
+
description,
|
|
40
|
+
buttons
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "grid w-full grid-cols-1 gap-2 text-start sm:grid-cols-2 lg:grid-cols-2", children: (items ?? []).map((stat, index) => /* @__PURE__ */ jsx(
|
|
44
|
+
Stat,
|
|
45
|
+
{
|
|
46
|
+
value: stat.value,
|
|
47
|
+
label: stat.label,
|
|
48
|
+
direction: stat.direction,
|
|
49
|
+
polarity: stat.polarity,
|
|
50
|
+
percentage: stat.percentage
|
|
51
|
+
},
|
|
52
|
+
index
|
|
53
|
+
)) }) })
|
|
54
|
+
] }) : null,
|
|
55
|
+
layout === "centered" ? /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
56
|
+
/* @__PURE__ */ jsx(
|
|
57
|
+
CompoundContent,
|
|
58
|
+
{
|
|
59
|
+
badge,
|
|
60
|
+
heading,
|
|
61
|
+
description,
|
|
62
|
+
buttons,
|
|
63
|
+
alignContent: "center"
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-12 mt-16", children: (items ?? []).map((stat, index) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
|
|
67
|
+
/* @__PURE__ */ jsx("h2", { className: "font-serif text-5xl md:text-6xl font-medium text-foreground", children: stat.value }),
|
|
68
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm leading-relaxed", children: stat.label })
|
|
69
|
+
] }, index)) })
|
|
70
|
+
] }) : null
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
);
|
|
68
74
|
};
|
|
69
75
|
const Stat = ({
|
|
70
76
|
value,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { buttons } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { Stats2 } from "./stats-2.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
heading: {
|
|
@@ -40,9 +41,7 @@ const conf = {
|
|
|
40
41
|
variant: "light"
|
|
41
42
|
}
|
|
42
43
|
},
|
|
43
|
-
|
|
44
|
-
sectionStyle,
|
|
45
|
-
backgroundColor
|
|
44
|
+
styles: createStylesField()
|
|
46
45
|
},
|
|
47
46
|
defaultProps: {
|
|
48
47
|
heading: "Real results from dedicated training",
|
|
@@ -68,7 +67,7 @@ const conf = {
|
|
|
68
67
|
{ metric: "1:1", title: "Personalized attention", variant: "light" },
|
|
69
68
|
{ metric: "LA", title: "Local Los Angeles training", variant: "light" }
|
|
70
69
|
],
|
|
71
|
-
|
|
70
|
+
styles: createStylesDefaults()
|
|
72
71
|
},
|
|
73
72
|
render: Stats2
|
|
74
73
|
};
|
|
@@ -9,8 +9,10 @@ export interface Stats2Props {
|
|
|
9
9
|
title: string;
|
|
10
10
|
variant: "dark" | "light";
|
|
11
11
|
}[];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
styles?: {
|
|
13
|
+
padding?: CompoundContainerProps["padding"];
|
|
14
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
};
|
|
15
17
|
}
|
|
16
|
-
export declare const Stats2: ({ heading, description, buttons, items,
|
|
18
|
+
export declare const Stats2: ({ heading, description, buttons, items, styles, }: Stats2Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -7,16 +7,14 @@ const Stats2 = ({
|
|
|
7
7
|
description,
|
|
8
8
|
buttons,
|
|
9
9
|
items = [],
|
|
10
|
-
|
|
11
|
-
sectionStyle,
|
|
12
|
-
backgroundColor
|
|
10
|
+
styles
|
|
13
11
|
}) => {
|
|
14
12
|
return /* @__PURE__ */ jsx(
|
|
15
13
|
CompoundContainer,
|
|
16
14
|
{
|
|
17
|
-
padding,
|
|
18
|
-
sectionStyle,
|
|
19
|
-
backgroundColor,
|
|
15
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
16
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
17
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
20
18
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8", children: [
|
|
21
19
|
/* @__PURE__ */ jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 md:flex-row md:justify-between", children: [
|
|
22
20
|
/* @__PURE__ */ jsx("div", { className: "w-full md:w-1/2", children: heading && /* @__PURE__ */ jsx("h2", { className: "max-w-xl text-4xl font-semibold tracking-tight text-foreground", children: heading }) }),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { buttons } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { Stats3 } from "./stats-3.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
heading: {
|
|
@@ -10,14 +11,7 @@ const conf = {
|
|
|
10
11
|
type: "textarea",
|
|
11
12
|
contentEditable: true
|
|
12
13
|
},
|
|
13
|
-
|
|
14
|
-
type: "object",
|
|
15
|
-
objectFields: { ...button.objectFields }
|
|
16
|
-
},
|
|
17
|
-
secondaryButton: {
|
|
18
|
-
type: "object",
|
|
19
|
-
objectFields: { ...button.objectFields }
|
|
20
|
-
},
|
|
14
|
+
buttons,
|
|
21
15
|
items: {
|
|
22
16
|
type: "array",
|
|
23
17
|
max: 6,
|
|
@@ -45,29 +39,27 @@ const conf = {
|
|
|
45
39
|
description: "A brief description of what this statistic means."
|
|
46
40
|
}
|
|
47
41
|
},
|
|
48
|
-
|
|
49
|
-
sectionStyle,
|
|
50
|
-
backgroundColor
|
|
42
|
+
styles: createStylesField()
|
|
51
43
|
},
|
|
52
44
|
defaultProps: {
|
|
53
45
|
heading: "Real progress from personalized training",
|
|
54
46
|
description: "We focus on measurable improvements and sustainable habits that fit your life.",
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
47
|
+
buttons: [
|
|
48
|
+
{
|
|
49
|
+
label: "Get started",
|
|
50
|
+
url: "#",
|
|
51
|
+
variant: "default",
|
|
52
|
+
size: "default",
|
|
53
|
+
icon: "none"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: "Learn more",
|
|
57
|
+
url: "#",
|
|
58
|
+
variant: "outline",
|
|
59
|
+
size: "default",
|
|
60
|
+
icon: "none"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
71
63
|
items: [
|
|
72
64
|
{
|
|
73
65
|
metric: "100%",
|
|
@@ -85,7 +77,7 @@ const conf = {
|
|
|
85
77
|
description: "Most clients see measurable strength and endurance improvements within the first month."
|
|
86
78
|
}
|
|
87
79
|
],
|
|
88
|
-
|
|
80
|
+
styles: createStylesDefaults()
|
|
89
81
|
},
|
|
90
82
|
render: Stats3
|
|
91
83
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
3
|
export interface Stats3Props {
|
|
4
|
-
padding?: CompoundContainerProps["padding"];
|
|
5
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
6
|
-
backgroundColor?: string;
|
|
7
4
|
heading?: string;
|
|
8
5
|
description?: string;
|
|
9
|
-
|
|
10
|
-
secondaryButton?: CompoundButtonProps;
|
|
6
|
+
buttons?: CompoundButtonProps[];
|
|
11
7
|
items: {
|
|
12
8
|
metric: string;
|
|
13
9
|
title: string;
|
|
14
10
|
description: string;
|
|
15
11
|
}[];
|
|
12
|
+
styles?: {
|
|
13
|
+
padding?: CompoundContainerProps["padding"];
|
|
14
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
};
|
|
16
17
|
}
|
|
17
|
-
export declare const Stats3: ({
|
|
18
|
+
export declare const Stats3: ({ heading, description, buttons, items, styles, }: Stats3Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,30 +8,26 @@ const ITEM_STAGGER = {
|
|
|
8
8
|
2: "lg:pt-8"
|
|
9
9
|
};
|
|
10
10
|
const Stats3 = ({
|
|
11
|
-
padding,
|
|
12
|
-
sectionStyle,
|
|
13
|
-
backgroundColor,
|
|
14
11
|
heading,
|
|
15
12
|
description,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
buttons = [],
|
|
14
|
+
items = [],
|
|
15
|
+
styles
|
|
19
16
|
}) => {
|
|
20
17
|
return /* @__PURE__ */ jsx(
|
|
21
18
|
CompoundContainer,
|
|
22
19
|
{
|
|
23
|
-
padding,
|
|
24
|
-
sectionStyle,
|
|
25
|
-
backgroundColor,
|
|
20
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
21
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
22
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
26
23
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8", children: [
|
|
27
24
|
/* @__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: [
|
|
28
25
|
/* @__PURE__ */ jsx("div", { className: "w-full lg:basis-1/2", children: heading && /* @__PURE__ */ jsx("h2", { className: "max-w-xl text-4xl font-semibold tracking-tight text-foreground", children: heading }) }),
|
|
29
26
|
/* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-8 lg:basis-1/2", children: [
|
|
30
27
|
description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description }),
|
|
31
|
-
((
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
] })
|
|
28
|
+
buttons.some((button) => button == null ? void 0 : button.label) && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-3 sm:flex-row", children: buttons.map(
|
|
29
|
+
(button, index) => (button == null ? void 0 : button.label) ? /* @__PURE__ */ jsx(CompoundButton, { ...button }, index) : null
|
|
30
|
+
) })
|
|
35
31
|
] })
|
|
36
32
|
] }) }),
|
|
37
33
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-y-6 sm:grid-cols-2 lg:grid-cols-3", children: items.map((item, index) => /* @__PURE__ */ jsx(
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
export interface ComparisonProps {
|
|
3
|
-
padding?: CompoundContainerProps["padding"];
|
|
4
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
5
|
-
backgroundColor?: string;
|
|
6
3
|
heading?: string;
|
|
7
4
|
description?: string;
|
|
8
|
-
|
|
5
|
+
plans?: Array<{
|
|
9
6
|
name: string;
|
|
10
7
|
highlighted?: boolean;
|
|
11
8
|
features: string[];
|
|
12
9
|
}>;
|
|
10
|
+
styles?: {
|
|
11
|
+
padding?: CompoundContainerProps["padding"];
|
|
12
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
|
-
export declare const Comparison: ({
|
|
16
|
+
export declare const Comparison: ({ heading, description, plans, styles, }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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;
|