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.
Files changed (227) hide show
  1. package/dist/components/puck-base/article-card.js +1 -1
  2. package/dist/components/puck-base/button.js +2 -1
  3. package/dist/components/puck-base/container.d.ts +7 -1
  4. package/dist/components/puck-base/container.js +2 -1
  5. package/dist/components/puck-base/content.d.ts +1 -4
  6. package/dist/components/puck-base/content.js +15 -17
  7. package/dist/components/puck-base/core/fields.d.ts +1 -127
  8. package/dist/components/puck-base/core/fields.js +1 -76
  9. package/dist/components/puck-base/core/styles.d.ts +1877 -0
  10. package/dist/components/puck-base/core/styles.js +286 -0
  11. package/dist/components/puck-base/core/types.d.ts +2 -2
  12. package/dist/components/puck-base/core/with-editable.d.ts +4 -1
  13. package/dist/components/puck-base/core/with-editable.js +51 -27
  14. package/dist/components/puck-base/editor-context.d.ts +8 -0
  15. package/dist/components/puck-base/fields/auto-field.d.ts +1 -0
  16. package/dist/components/puck-base/fields/auto-field.js +131 -49
  17. package/dist/components/puck-base/gradient-text.js +12 -3
  18. package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.d.ts +9 -7
  19. package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.js +11 -8
  20. package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +19 -37
  21. package/dist/components/puck-block/banner-sections/marquee-1/index.js +26 -24
  22. package/dist/components/puck-block/banner-sections/marquee-1/marquee.d.ts +9 -9
  23. package/dist/components/puck-block/banner-sections/marquee-1/marquee.js +28 -21
  24. package/dist/components/puck-block/banner-sections/props.d.ts +22 -0
  25. package/dist/components/puck-block/contact-sections/api/form-leads.d.ts +16 -0
  26. package/dist/components/puck-block/contact-sections/api/form-leads.js +25 -0
  27. package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.d.ts +13 -4
  28. package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.js +122 -121
  29. package/dist/components/puck-block/contact-sections/contact-us-1/index.js +87 -7
  30. package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.d.ts +30 -0
  31. package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +234 -0
  32. package/dist/components/puck-block/contact-sections/contact-us-2/index.d.ts +5 -0
  33. package/dist/components/puck-block/contact-sections/contact-us-2/index.js +74 -0
  34. package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +32 -0
  35. package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +250 -0
  36. package/dist/components/puck-block/contact-sections/contact-us-3/index.d.ts +5 -0
  37. package/dist/components/puck-block/contact-sections/contact-us-3/index.js +114 -0
  38. package/dist/components/puck-block/contact-sections/props.d.ts +65 -0
  39. package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.d.ts +12 -9
  40. package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.js +28 -30
  41. package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +23 -25
  42. package/dist/components/puck-block/cta-sections/cta-1/cta.d.ts +6 -4
  43. package/dist/components/puck-block/cta-sections/cta-1/cta.js +5 -7
  44. package/dist/components/puck-block/cta-sections/cta-1/index.js +5 -9
  45. package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.d.ts +10 -10
  46. package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.js +24 -20
  47. package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +36 -29
  48. package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +13 -5
  49. package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.d.ts +7 -3
  50. package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.js +36 -32
  51. package/dist/components/puck-block/cta-sections/promo-section-1/index.js +4 -5
  52. package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.d.ts +6 -4
  53. package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.js +94 -79
  54. package/dist/components/puck-block/cta-sections/props.d.ts +47 -0
  55. package/dist/components/puck-block/faq-sections/accordion-1/accordion.d.ts +6 -4
  56. package/dist/components/puck-block/faq-sections/accordion-1/accordion.js +39 -33
  57. package/dist/components/puck-block/faq-sections/accordion-1/index.js +3 -5
  58. package/dist/components/puck-block/faq-sections/faq-1/faq.d.ts +9 -7
  59. package/dist/components/puck-block/faq-sections/faq-1/faq.js +50 -44
  60. package/dist/components/puck-block/faq-sections/faq-1/index.js +12 -14
  61. package/dist/components/puck-block/faq-sections/faq-2/faq-2.d.ts +18 -0
  62. package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +54 -0
  63. package/dist/components/puck-block/faq-sections/faq-2/index.d.ts +5 -0
  64. package/dist/components/puck-block/faq-sections/faq-2/index.js +61 -0
  65. package/dist/components/puck-block/faq-sections/props.d.ts +30 -0
  66. package/dist/components/puck-block/feature-sections/bento-1/bento.d.ts +6 -4
  67. package/dist/components/puck-block/feature-sections/bento-1/bento.js +2 -4
  68. package/dist/components/puck-block/feature-sections/bento-1/index.js +4 -5
  69. package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.d.ts +8 -7
  70. package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +15 -7
  71. package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +37 -18
  72. package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.d.ts +6 -4
  73. package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.js +4 -12
  74. package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +4 -5
  75. package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.d.ts +6 -4
  76. package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.js +59 -53
  77. package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +7 -8
  78. package/dist/components/puck-block/feature-sections/product-features-1/index.js +4 -5
  79. package/dist/components/puck-block/feature-sections/product-features-1/product-features.d.ts +6 -4
  80. package/dist/components/puck-block/feature-sections/product-features-1/product-features.js +7 -29
  81. package/dist/components/puck-block/feature-sections/props.d.ts +48 -0
  82. package/dist/components/puck-block/footer-sections/footer-1/footer.d.ts +5 -3
  83. package/dist/components/puck-block/footer-sections/footer-1/footer.js +6 -6
  84. package/dist/components/puck-block/footer-sections/footer-1/index.js +3 -5
  85. package/dist/components/puck-block/footer-sections/props.d.ts +31 -0
  86. package/dist/components/puck-block/gallery-sections/gallery-1/gallery.d.ts +9 -7
  87. package/dist/components/puck-block/gallery-sections/gallery-1/gallery.js +49 -40
  88. package/dist/components/puck-block/gallery-sections/gallery-1/index.js +32 -34
  89. package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.d.ts +16 -0
  90. package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +86 -0
  91. package/dist/components/puck-block/gallery-sections/gallery-2/index.d.ts +5 -0
  92. package/dist/components/puck-block/gallery-sections/gallery-2/index.js +42 -0
  93. package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +19 -0
  94. package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +119 -0
  95. package/dist/components/puck-block/gallery-sections/gallery-3/index.d.ts +5 -0
  96. package/dist/components/puck-block/gallery-sections/gallery-3/index.js +59 -0
  97. package/dist/components/puck-block/gallery-sections/props.d.ts +26 -0
  98. package/dist/components/puck-block/header-sections/header-1/header.d.ts +7 -5
  99. package/dist/components/puck-block/header-sections/header-1/header.js +8 -9
  100. package/dist/components/puck-block/header-sections/header-1/index.d.ts +1 -1
  101. package/dist/components/puck-block/header-sections/header-1/index.js +13 -12
  102. package/dist/components/puck-block/header-sections/props.d.ts +41 -0
  103. package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +12 -12
  104. package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.d.ts +8 -6
  105. package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.js +5 -5
  106. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.d.ts +11 -4
  107. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +60 -23
  108. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +18 -6
  109. package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +9 -5
  110. package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +37 -24
  111. package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +18 -15
  112. package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.d.ts +7 -6
  113. package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.js +7 -10
  114. package/dist/components/puck-block/hero-sections/grid-hero-1/index.js +43 -11
  115. package/dist/components/puck-block/hero-sections/hero-1/hero.d.ts +6 -4
  116. package/dist/components/puck-block/hero-sections/hero-1/hero.js +5 -7
  117. package/dist/components/puck-block/hero-sections/hero-1/index.js +4 -4
  118. package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.d.ts +14 -8
  119. package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +64 -60
  120. package/dist/components/puck-block/hero-sections/image-hero-1/index.js +16 -34
  121. package/dist/components/puck-block/hero-sections/props.d.ts +71 -0
  122. package/dist/components/puck-block/hero-sections/split-hero-1/index.js +6 -5
  123. package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.d.ts +8 -8
  124. package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.js +48 -47
  125. package/dist/components/puck-block/hero-sections/video-hero-1/index.js +4 -3
  126. package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.d.ts +6 -2
  127. package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.js +30 -22
  128. package/dist/components/puck-block/index.d.ts +15 -0
  129. package/dist/components/puck-block/location-sections/location-1/index.d.ts +5 -0
  130. package/dist/components/puck-block/location-sections/location-1/index.js +108 -0
  131. package/dist/components/puck-block/location-sections/location-1/location.d.ts +28 -0
  132. package/dist/components/puck-block/location-sections/location-1/location.js +137 -0
  133. package/dist/components/puck-block/location-sections/location-2/index.d.ts +5 -0
  134. package/dist/components/puck-block/location-sections/location-2/index.js +123 -0
  135. package/dist/components/puck-block/location-sections/location-2/location.d.ts +30 -0
  136. package/dist/components/puck-block/location-sections/location-2/location.js +131 -0
  137. package/dist/components/puck-block/location-sections/location-3/index.d.ts +5 -0
  138. package/dist/components/puck-block/location-sections/location-3/index.js +84 -0
  139. package/dist/components/puck-block/location-sections/location-3/location.d.ts +24 -0
  140. package/dist/components/puck-block/location-sections/location-3/location.js +127 -0
  141. package/dist/components/puck-block/location-sections/props.d.ts +45 -0
  142. package/dist/components/puck-block/metrics-sections/props.d.ts +43 -0
  143. package/dist/components/puck-block/metrics-sections/stats-1/index.js +6 -7
  144. package/dist/components/puck-block/metrics-sections/stats-1/stats.d.ts +7 -5
  145. package/dist/components/puck-block/metrics-sections/stats-1/stats.js +61 -55
  146. package/dist/components/puck-block/metrics-sections/stats-2/index.d.ts +5 -0
  147. package/dist/components/puck-block/metrics-sections/stats-2/index.js +76 -0
  148. package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +18 -0
  149. package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +57 -0
  150. package/dist/components/puck-block/metrics-sections/stats-3/index.d.ts +5 -0
  151. package/dist/components/puck-block/metrics-sections/stats-3/index.js +86 -0
  152. package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +18 -0
  153. package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +56 -0
  154. package/dist/components/puck-block/pricing-sections/comparison-1/comparison.d.ts +7 -5
  155. package/dist/components/puck-block/pricing-sections/comparison-1/comparison.js +45 -39
  156. package/dist/components/puck-block/pricing-sections/comparison-1/index.js +5 -7
  157. package/dist/components/puck-block/pricing-sections/pricing-1/index.js +10 -11
  158. package/dist/components/puck-block/pricing-sections/pricing-1/pricing.d.ts +8 -6
  159. package/dist/components/puck-block/pricing-sections/pricing-1/pricing.js +47 -35
  160. package/dist/components/puck-block/pricing-sections/pricing-2/index.d.ts +5 -0
  161. package/dist/components/puck-block/pricing-sections/pricing-2/index.js +151 -0
  162. package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +26 -0
  163. package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +71 -0
  164. package/dist/components/puck-block/pricing-sections/props.d.ts +46 -0
  165. package/dist/components/puck-block/showcase-sections/before-after-1/before-after.d.ts +22 -0
  166. package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +71 -0
  167. package/dist/components/puck-block/showcase-sections/before-after-1/index.d.ts +5 -0
  168. package/dist/components/puck-block/showcase-sections/before-after-1/index.js +73 -0
  169. package/dist/components/puck-block/showcase-sections/case-study-1/case-study.d.ts +6 -2
  170. package/dist/components/puck-block/showcase-sections/case-study-1/case-study.js +30 -28
  171. package/dist/components/puck-block/showcase-sections/case-study-1/index.js +4 -3
  172. package/dist/components/puck-block/showcase-sections/props.d.ts +48 -0
  173. package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +3 -5
  174. package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.d.ts +6 -4
  175. package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.js +38 -41
  176. package/dist/components/puck-block/team-sections/props.d.ts +39 -0
  177. package/dist/components/puck-block/team-sections/team-grid-1/index.js +4 -5
  178. package/dist/components/puck-block/team-sections/team-grid-1/team-grid.d.ts +6 -4
  179. package/dist/components/puck-block/team-sections/team-grid-1/team-grid.js +27 -41
  180. package/dist/components/puck-block/team-sections/team-grid-2/index.d.ts +5 -0
  181. package/dist/components/puck-block/team-sections/team-grid-2/index.js +62 -0
  182. package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +23 -0
  183. package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +44 -0
  184. package/dist/components/puck-block/team-sections/team-profiles-1/index.d.ts +5 -0
  185. package/dist/components/puck-block/team-sections/team-profiles-1/index.js +53 -0
  186. package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +23 -0
  187. package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +105 -0
  188. package/dist/components/puck-block/testimonial-sections/customers-1/customers.d.ts +9 -7
  189. package/dist/components/puck-block/testimonial-sections/customers-1/customers.js +8 -11
  190. package/dist/components/puck-block/testimonial-sections/customers-1/index.js +17 -17
  191. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +15 -12
  192. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.d.ts +7 -3
  193. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.js +34 -24
  194. package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.d.ts +5 -0
  195. package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +51 -0
  196. package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +17 -0
  197. package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +55 -0
  198. package/dist/components/puck-block/testimonial-sections/props.d.ts +34 -0
  199. package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +16 -15
  200. package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts +8 -6
  201. package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.js +25 -19
  202. package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +17 -17
  203. package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.d.ts +8 -6
  204. package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.js +76 -63
  205. package/dist/components/puck-block/text-sections/articles-1/articles.d.ts +7 -4
  206. package/dist/components/puck-block/text-sections/articles-1/articles.js +42 -22
  207. package/dist/components/puck-block/text-sections/articles-1/index.js +31 -19
  208. package/dist/components/puck-block/text-sections/content-section-1/content-section.d.ts +7 -5
  209. package/dist/components/puck-block/text-sections/content-section-1/content-section.js +11 -12
  210. package/dist/components/puck-block/text-sections/content-section-1/index.js +14 -14
  211. package/dist/components/puck-block/text-sections/props.d.ts +58 -0
  212. package/dist/components/puck-block/text-sections/rich-text-1/index.js +13 -15
  213. package/dist/components/puck-block/text-sections/rich-text-1/rich-text.d.ts +7 -5
  214. package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +11 -11
  215. package/dist/components/puck-block/text-sections/tab-section-1/index.js +4 -5
  216. package/dist/components/puck-block/text-sections/tab-section-1/tab-section.d.ts +6 -4
  217. package/dist/components/puck-block/text-sections/tab-section-1/tab-section.js +6 -7
  218. package/dist/components/puck-block/text-sections/timeline-1/index.js +3 -5
  219. package/dist/components/puck-block/text-sections/timeline-1/timeline.d.ts +6 -4
  220. package/dist/components/puck-block/text-sections/timeline-1/timeline.js +3 -5
  221. package/dist/components/puck-block/text-sections/two-column-1/index.js +4 -6
  222. package/dist/components/puck-block/text-sections/two-column-1/two-column.d.ts +6 -4
  223. package/dist/components/puck-block/text-sections/two-column-1/two-column.js +5 -7
  224. package/dist/components/shadcn/navigation-menu.d.ts +1 -1
  225. package/dist/components/shadcn/navigation-menu.js +33 -0
  226. package/dist/index.js +106 -75
  227. package/package.json +1 -1
@@ -0,0 +1,71 @@
1
+ "use client";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
+ import { CompoundContainer } from "../../../puck-base/container.js";
4
+ import { CompoundButton } from "../../../puck-base/button.js";
5
+ import { cn } from "../../../../utils/css-utils.js";
6
+ import { X, Check } from "lucide-react";
7
+ const BeforeAfter = ({
8
+ eyebrow,
9
+ heading,
10
+ description,
11
+ beforeLabel = "Before",
12
+ beforeItems = [],
13
+ afterLabel = "After",
14
+ afterItems = [],
15
+ button,
16
+ layout = "side-by-side",
17
+ styles
18
+ }) => /* @__PURE__ */ jsxs(
19
+ CompoundContainer,
20
+ {
21
+ padding: styles == null ? void 0 : styles.padding,
22
+ sectionStyle: styles == null ? void 0 : styles.sectionStyle,
23
+ backgroundColor: styles == null ? void 0 : styles.backgroundColor,
24
+ children: [
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 }),
27
+ heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
28
+ description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4 text-lg", children: description })
29
+ ] }),
30
+ /* @__PURE__ */ jsxs(
31
+ "div",
32
+ {
33
+ className: cn(
34
+ "relative mx-auto max-w-4xl",
35
+ layout === "side-by-side" ? "grid grid-cols-1 md:grid-cols-[1fr_auto_1fr] gap-0" : "flex flex-col gap-6"
36
+ ),
37
+ children: [
38
+ /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-border bg-muted/40 p-8 md:rounded-r-none md:border-r-0", children: [
39
+ /* @__PURE__ */ jsxs("div", { className: "mb-6 flex items-center gap-3", children: [
40
+ /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-destructive" }) }),
41
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm font-semibold uppercase tracking-wider", children: beforeLabel })
42
+ ] }),
43
+ /* @__PURE__ */ jsx("ul", { className: "space-y-4", children: beforeItems.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-3", children: [
44
+ /* @__PURE__ */ jsx("span", { className: "mt-0.5 flex-shrink-0 flex h-5 w-5 items-center justify-center rounded-full bg-destructive/10", children: /* @__PURE__ */ jsx(X, { className: "h-3 w-3 text-destructive" }) }),
45
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm leading-relaxed", children: item.text })
46
+ ] }, i)) })
47
+ ] }),
48
+ layout === "side-by-side" && /* @__PURE__ */ jsxs("div", { className: "hidden md:flex flex-col items-center justify-center relative", children: [
49
+ /* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-1/2 -translate-x-1/2 w-px bg-border" }),
50
+ /* @__PURE__ */ jsx("div", { className: "relative z-10 flex h-10 w-10 items-center justify-center rounded-full bg-background border border-border shadow-sm", children: /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-bold", children: "VS" }) })
51
+ ] }),
52
+ /* @__PURE__ */ jsxs("div", { className: "rounded-2xl border border-primary/20 bg-primary/5 p-8 md:rounded-l-none md:border-l-0", children: [
53
+ /* @__PURE__ */ jsxs("div", { className: "mb-6 flex items-center gap-3", children: [
54
+ /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-primary" }) }),
55
+ /* @__PURE__ */ jsx("span", { className: "text-primary text-sm font-semibold uppercase tracking-wider", children: afterLabel })
56
+ ] }),
57
+ /* @__PURE__ */ jsx("ul", { className: "space-y-4", children: afterItems.map((item, i) => /* @__PURE__ */ jsxs("li", { className: "flex items-start gap-3", children: [
58
+ /* @__PURE__ */ jsx("span", { className: "mt-0.5 flex-shrink-0 flex h-5 w-5 items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 text-primary" }) }),
59
+ /* @__PURE__ */ jsx("span", { className: "text-foreground text-sm leading-relaxed font-medium", children: item.text })
60
+ ] }, i)) })
61
+ ] })
62
+ ]
63
+ }
64
+ ),
65
+ (button == null ? void 0 : button.label) && /* @__PURE__ */ jsx("div", { className: "mt-10 flex justify-center", children: /* @__PURE__ */ jsx(CompoundButton, { ...button }) })
66
+ ]
67
+ }
68
+ );
69
+ export {
70
+ BeforeAfter
71
+ };
@@ -0,0 +1,5 @@
1
+ import { ComponentConfig } from "@puckeditor/core";
2
+ import { BeforeAfterProps } from "./before-after";
3
+ export type { BeforeAfterProps };
4
+ export declare const conf: ComponentConfig<BeforeAfterProps>;
5
+ export default conf;
@@ -0,0 +1,73 @@
1
+ import { actionDefaults, button } from "../../../puck-base/core/fields.js";
2
+ import { BeforeAfter } from "./before-after.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
4
+ const conf = {
5
+ fields: {
6
+ eyebrow: { type: "text", contentEditable: true },
7
+ heading: { type: "text", contentEditable: true },
8
+ description: { type: "textarea", contentEditable: true },
9
+ layout: {
10
+ type: "radio",
11
+ label: "Layout",
12
+ options: [
13
+ { label: "Side by Side", value: "side-by-side" },
14
+ { label: "Stacked", value: "stacked" }
15
+ ]
16
+ },
17
+ beforeLabel: { type: "text" },
18
+ beforeItems: {
19
+ type: "array",
20
+ max: 8,
21
+ getItemSummary: (item, i = 0) => item.text || `Item ${i + 1}`,
22
+ arrayFields: {
23
+ text: { type: "text", contentEditable: true }
24
+ },
25
+ defaultItemProps: { text: "Pain point or old way of doing things" }
26
+ },
27
+ afterLabel: { type: "text" },
28
+ afterItems: {
29
+ type: "array",
30
+ max: 8,
31
+ getItemSummary: (item, i = 0) => item.text || `Item ${i + 1}`,
32
+ arrayFields: {
33
+ text: { type: "text", contentEditable: true }
34
+ },
35
+ defaultItemProps: { text: "Benefit or new way of doing things" }
36
+ },
37
+ button,
38
+ styles: createStylesField()
39
+ },
40
+ defaultProps: {
41
+ eyebrow: "Why choose us",
42
+ heading: "The old way vs. the better way",
43
+ description: "See exactly what changes when you switch to a smarter solution.",
44
+ layout: "side-by-side",
45
+ beforeLabel: "Without us",
46
+ beforeItems: [
47
+ { text: "Hours wasted on manual data entry every week" },
48
+ { text: "Siloed tools that don't talk to each other" },
49
+ { text: "Guessing what your customers actually want" },
50
+ { text: "Scaling requires hiring more people" }
51
+ ],
52
+ afterLabel: "With us",
53
+ afterItems: [
54
+ { text: "Data syncs automatically in real time" },
55
+ { text: "All your tools connected in one place" },
56
+ { text: "AI-powered insights at your fingertips" },
57
+ { text: "Scale effortlessly with smart automation" }
58
+ ],
59
+ button: {
60
+ label: "Get started free",
61
+ url: "#",
62
+ action: actionDefaults,
63
+ variant: "default",
64
+ size: "lg",
65
+ icon: "arrow-right"
66
+ },
67
+ styles: createStylesDefaults()
68
+ },
69
+ render: BeforeAfter
70
+ };
71
+ export {
72
+ conf
73
+ };
@@ -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: ({ padding, heading, description, stats, quote, author, logo, }: CaseStudyProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const CaseStudy: ({ heading, description, stats, quote, author, logo, styles, }: CaseStudyProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,40 +1,42 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { CompoundContainer } from "../../../puck-base/container.js";
3
+ import { CompoundImage } from "../../../puck-base/image.js";
3
4
  const CaseStudy = ({
4
- padding,
5
5
  heading,
6
6
  description,
7
7
  stats = [],
8
8
  quote,
9
9
  author,
10
- logo
11
- }) => /* @__PURE__ */ jsx(CompoundContainer, { padding, sectionStyle: "muted", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-4xl", children: [
12
- (logo == null ? void 0 : logo.src) && /* @__PURE__ */ jsx(
13
- "img",
14
- {
15
- src: logo.src,
16
- alt: logo.alt || "",
17
- className: "mb-8 h-8 opacity-60"
18
- }
19
- ),
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
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
+ ] })
35
37
  ] })
36
- ] })
37
- ] }) });
38
+ }
39
+ );
38
40
  export {
39
41
  CaseStudy
40
42
  };
@@ -1,5 +1,6 @@
1
- import { paddingDefaults, padding, image } from "../../../puck-base/core/fields.js";
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
- padding
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
- padding: paddingDefaults
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
- padding,
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
- padding: paddingDefaults
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: ({ padding, sectionStyle, backgroundColor, heading, description, layout, steps, }: StepByStepProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const StepByStep: ({ heading, description, layout, steps, styles, }: StepByStepProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,53 +1,50 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { CompoundContainer } from "../../../puck-base/container.js";
3
3
  const StepByStep = ({
4
- padding,
5
- sectionStyle,
6
- backgroundColor,
7
4
  heading,
8
5
  description,
9
6
  layout = "horizontal",
10
- steps = []
11
- }) => /* @__PURE__ */ jsxs(CompoundContainer, { padding, sectionStyle, backgroundColor, children: [
12
- (heading || description) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center max-w-2xl mx-auto", children: [
13
- heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
14
- description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4 text-lg", children: description })
15
- ] }),
16
- layout === "vertical" ? (
17
- // Vertical timeline-style
18
- /* @__PURE__ */ jsxs("div", { className: "relative max-w-2xl mx-auto", children: [
19
- /* @__PURE__ */ jsx("div", { className: "bg-border absolute top-0 bottom-0 left-6 w-px" }),
20
- /* @__PURE__ */ jsx("div", { className: "space-y-10", children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "relative flex gap-8 pl-4", children: [
21
- /* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground flex-shrink-0 w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10", children: step.stepNumber || String(i + 1) }),
22
- /* @__PURE__ */ jsxs("div", { className: "pb-4", children: [
23
- /* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
24
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1", children: step.description })
25
- ] })
26
- ] }, i)) })
27
- ] })
28
- ) : layout === "numbered" ? (
29
- // Large number style
30
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8", children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
31
- /* @__PURE__ */ jsx("div", { className: "text-primary text-5xl font-black leading-none opacity-20 flex-shrink-0", children: step.stepNumber || String(i + 1).padStart(2, "0") }),
32
- /* @__PURE__ */ jsxs("div", { children: [
33
- /* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
34
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-2", children: step.description })
35
- ] })
36
- ] }, i)) })
37
- ) : (
38
- // Horizontal (default) — cards in a row with connecting line
39
- /* @__PURE__ */ jsxs("div", { className: "relative grid grid-cols-1 md:grid-cols-3 gap-8", children: [
40
- /* @__PURE__ */ jsx("div", { className: "hidden md:block bg-border absolute top-6 left-[calc(16.66%+1rem)] right-[calc(16.66%+1rem)] h-px" }),
41
- steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center gap-4 relative", children: [
42
- /* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10 flex-shrink-0", children: step.stepNumber || String(i + 1) }),
7
+ steps = [],
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
+ (heading || description) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center max-w-2xl mx-auto", 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
+ layout === "vertical" ? /* @__PURE__ */ jsxs("div", { className: "relative max-w-2xl mx-auto", children: [
21
+ /* @__PURE__ */ jsx("div", { className: "bg-border absolute top-0 bottom-0 left-6 w-px" }),
22
+ /* @__PURE__ */ jsx("div", { className: "space-y-10", children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "relative flex gap-8 pl-4", children: [
23
+ /* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground flex-shrink-0 w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10", children: step.stepNumber || String(i + 1) }),
24
+ /* @__PURE__ */ jsxs("div", { className: "pb-4", children: [
25
+ /* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
26
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1", children: step.description })
27
+ ] })
28
+ ] }, i)) })
29
+ ] }) : layout === "numbered" ? /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8", children: steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex gap-6", children: [
30
+ /* @__PURE__ */ jsx("div", { className: "text-primary text-5xl font-black leading-none opacity-20 flex-shrink-0", children: step.stepNumber || String(i + 1).padStart(2, "0") }),
43
31
  /* @__PURE__ */ jsxs("div", { children: [
44
32
  /* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
45
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 text-sm", children: step.description })
33
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-2", children: step.description })
46
34
  ] })
47
- ] }, i))
48
- ] })
49
- )
50
- ] });
35
+ ] }, i)) }) : /* @__PURE__ */ jsxs("div", { className: "relative grid grid-cols-1 md:grid-cols-3 gap-8", children: [
36
+ /* @__PURE__ */ jsx("div", { className: "hidden md:block bg-border absolute top-6 left-[calc(16.66%+1rem)] right-[calc(16.66%+1rem)] h-px" }),
37
+ steps.map((step, i) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center text-center gap-4 relative", children: [
38
+ /* @__PURE__ */ jsx("div", { className: "bg-primary text-primary-foreground w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold z-10 flex-shrink-0", children: step.stepNumber || String(i + 1) }),
39
+ /* @__PURE__ */ jsxs("div", { children: [
40
+ /* @__PURE__ */ jsx("h3", { className: "text-foreground text-lg font-semibold", children: step.title }),
41
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1 text-sm", children: step.description })
42
+ ] })
43
+ ] }, i))
44
+ ] })
45
+ ]
46
+ }
47
+ );
51
48
  export {
52
49
  StepByStep
53
50
  };
@@ -0,0 +1,39 @@
1
+ type TeamVariant = "team-grid-1" | "team-grid-2" | "team-profiles-1";
2
+ type TeamPadding = {
3
+ top?: "none" | "small" | "medium" | "large";
4
+ bottom?: "none" | "small" | "medium" | "large";
5
+ };
6
+ type TeamSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
7
+ type TeamButton = {
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 TeamImage = {
15
+ src: string;
16
+ alt?: string;
17
+ };
18
+ type TeamMember = {
19
+ name: string;
20
+ role: string;
21
+ image?: TeamImage;
22
+ description?: string;
23
+ instagramUrl?: string;
24
+ linkedinUrl?: string;
25
+ };
26
+ type TeamSectionProps = {
27
+ variant?: TeamVariant;
28
+ heading?: string;
29
+ description?: string;
30
+ buttons?: TeamButton[];
31
+ members?: TeamMember[];
32
+ columns?: 2 | 3 | 4;
33
+ layout?: "card" | "simple" | "round";
34
+ styles?: {
35
+ padding?: TeamPadding;
36
+ sectionStyle?: TeamSectionStyle;
37
+ backgroundColor?: string;
38
+ };
39
+ };
@@ -1,5 +1,6 @@
1
- import { paddingDefaults, backgroundColor, sectionStyle, padding, image, description, heading } from "../../../puck-base/core/fields.js";
1
+ import { image, description, heading } from "../../../puck-base/core/fields.js";
2
2
  import { TeamGrid } from "./team-grid.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
3
4
  const defaultMember = {
4
5
  name: "Jane Smith",
5
6
  role: "CEO & Co-founder",
@@ -42,9 +43,7 @@ const conf = {
42
43
  { label: "Round Avatar", value: "round" }
43
44
  ]
44
45
  },
45
- padding,
46
- sectionStyle,
47
- backgroundColor
46
+ styles: createStylesField()
48
47
  },
49
48
  defaultProps: {
50
49
  heading: "Meet Our Team",
@@ -57,7 +56,7 @@ const conf = {
57
56
  { ...defaultMember, name: "Sarah Williams", role: "Head of Design" },
58
57
  { ...defaultMember, name: "Michael Chen", role: "Lead Engineer" }
59
58
  ],
60
- padding: paddingDefaults
59
+ styles: createStylesDefaults()
61
60
  },
62
61
  render: TeamGrid
63
62
  };
@@ -9,13 +9,15 @@ export interface TeamMember {
9
9
  bio?: string;
10
10
  }
11
11
  export interface TeamGridProps {
12
- padding?: CompoundContainerProps["padding"];
13
- sectionStyle?: CompoundContainerProps["sectionStyle"];
14
- backgroundColor?: string;
15
12
  heading?: string;
16
13
  description?: string;
17
14
  members?: TeamMember[];
18
15
  columns?: 2 | 3 | 4;
19
16
  layout?: "card" | "simple" | "round";
17
+ styles?: {
18
+ padding?: CompoundContainerProps["padding"];
19
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
20
+ backgroundColor?: string;
21
+ };
20
22
  }
21
- export declare const TeamGrid: ({ padding, sectionStyle, backgroundColor, heading, description, members, columns, layout, }: TeamGridProps) => import("react/jsx-runtime").JSX.Element;
23
+ export declare const TeamGrid: ({ heading, description, members, columns, layout, styles, }: TeamGridProps) => import("react/jsx-runtime").JSX.Element;