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,45 @@
1
+ type LocationVariant = "location-1" | "location-2" | "location-3";
2
+ type LocationPadding = {
3
+ top?: "none" | "small" | "medium" | "large";
4
+ bottom?: "none" | "small" | "medium" | "large";
5
+ };
6
+ type LocationSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
7
+ type LocationButton = {
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 LocationItem = {
15
+ name: string;
16
+ address?: string;
17
+ phone?: string;
18
+ hours?: string;
19
+ directionsUrl?: string;
20
+ };
21
+ type LocationSectionProps = {
22
+ variant?: LocationVariant;
23
+ heading?: string;
24
+ description?: string;
25
+ address?: string;
26
+ mapEmbedUrl?: string;
27
+ mapTitle?: string;
28
+ mapFilter?: string;
29
+ mapTintMode?: "none" | "theme" | "custom";
30
+ mapTintColor?: string;
31
+ mapTintOpacity?: number;
32
+ buttons?: LocationButton[];
33
+ locations?: LocationItem[];
34
+ contentPosition?: "left" | "right";
35
+ contentAlign?: "left" | "right";
36
+ columns?: "2" | "3";
37
+ styles?: {
38
+ padding?: LocationPadding;
39
+ sectionStyle?: LocationSectionStyle;
40
+ backgroundColor?: string;
41
+ mapHeight?: "sm" | "md" | "lg";
42
+ cardStyle?: "solid" | "glass";
43
+ sectionHeight?: "sm" | "md" | "lg";
44
+ };
45
+ };
@@ -0,0 +1,43 @@
1
+ type MetricsVariant = "stats-1" | "stats-2" | "stats-3";
2
+ type MetricsPadding = {
3
+ top?: "none" | "small" | "medium" | "large";
4
+ bottom?: "none" | "small" | "medium" | "large";
5
+ };
6
+ type MetricsSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
7
+ type MetricsButton = {
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 MetricsBadge = {
15
+ label: string;
16
+ url?: string;
17
+ variant?: "default" | "secondary" | "destructive" | "outline";
18
+ };
19
+ type MetricItem = {
20
+ value?: string;
21
+ metric?: string;
22
+ label?: string;
23
+ title?: string;
24
+ description?: string;
25
+ percentage?: number;
26
+ direction?: "none" | "increase" | "decrease";
27
+ polarity?: "none" | "positive" | "negative";
28
+ tone?: "dark" | "light";
29
+ };
30
+ type MetricsSectionProps = {
31
+ variant?: MetricsVariant;
32
+ badge?: MetricsBadge;
33
+ heading?: string;
34
+ description?: string;
35
+ buttons?: MetricsButton[];
36
+ layout?: "section" | "inline" | "centered";
37
+ items?: MetricItem[];
38
+ styles?: {
39
+ padding?: MetricsPadding;
40
+ sectionStyle?: MetricsSectionStyle;
41
+ backgroundColor?: string;
42
+ };
43
+ };
@@ -1,9 +1,10 @@
1
- import { paddingDefaults, backgroundColor, sectionStyle, padding, contentFields } from "../../../puck-base/core/fields.js";
1
+ import { contentFields } from "../../../puck-base/core/fields.js";
2
2
  import { Stats } from "./stats.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
3
4
  const conf = {
4
5
  fields: {
5
6
  ...contentFields,
6
- statistics: {
7
+ items: {
7
8
  type: "array",
8
9
  max: 8,
9
10
  getItemSummary: (item, index = 0) => item.label || `Statistic ${index + 1}`,
@@ -63,9 +64,7 @@ const conf = {
63
64
  { label: "centered", value: "centered" }
64
65
  ]
65
66
  },
66
- padding,
67
- sectionStyle,
68
- backgroundColor
67
+ styles: createStylesField()
69
68
  },
70
69
  defaultProps: {
71
70
  heading: "The numbers speak for themselves",
@@ -83,7 +82,7 @@ const conf = {
83
82
  size: "default"
84
83
  }
85
84
  ],
86
- statistics: [
85
+ items: [
87
86
  {
88
87
  label: "Monthly active users",
89
88
  value: "500",
@@ -114,7 +113,7 @@ const conf = {
114
113
  }
115
114
  ],
116
115
  layout: "section",
117
- padding: paddingDefaults
116
+ styles: createStylesDefaults()
118
117
  },
119
118
  resolveFields: (data, params) => {
120
119
  if (data.props.layout === "inline") {
@@ -1,16 +1,18 @@
1
1
  import { CompoundContainerProps } from "@/components/puck-base/container";
2
2
  import { CompoundContentProps } from "@/components/puck-base/content";
3
3
  export interface StatsProps extends CompoundContentProps {
4
- padding?: CompoundContainerProps["padding"];
5
- sectionStyle?: CompoundContainerProps["sectionStyle"];
6
- backgroundColor?: string;
7
4
  layout?: "section" | "inline" | "centered";
8
- statistics: {
5
+ items: {
9
6
  value: string;
10
7
  label: string;
11
8
  percentage?: number;
12
9
  direction?: "none" | "increase" | "decrease";
13
10
  polarity?: "none" | "positive" | "negative";
14
11
  }[];
12
+ styles?: {
13
+ padding?: CompoundContainerProps["padding"];
14
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
15
+ backgroundColor?: string;
16
+ };
15
17
  }
16
- export declare const Stats: ({ padding, sectionStyle, backgroundColor, layout, badge, heading, description, buttons, statistics, }: StatsProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const Stats: ({ layout, badge, heading, description, buttons, items, styles, }: StatsProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
- statistics
12
+ items,
13
+ styles
16
14
  }) => {
17
- return /* @__PURE__ */ jsxs(CompoundContainer, { padding, sectionStyle, backgroundColor, children: [
18
- 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: (statistics ?? []).map((stat, index) => /* @__PURE__ */ jsx(
19
- Stat,
20
- {
21
- value: stat.value,
22
- label: stat.label,
23
- direction: stat.direction,
24
- polarity: stat.polarity,
25
- percentage: stat.percentage
26
- },
27
- index
28
- )) }) : null,
29
- layout === "section" ? /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-10 lg:grid-cols-2", children: [
30
- /* @__PURE__ */ jsx(
31
- CompoundContent,
32
- {
33
- badge,
34
- heading,
35
- description,
36
- buttons
37
- }
38
- ),
39
- /* @__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: (statistics ?? []).map((stat, index) => /* @__PURE__ */ jsx(
40
- Stat,
41
- {
42
- value: stat.value,
43
- label: stat.label,
44
- direction: stat.direction,
45
- polarity: stat.polarity,
46
- percentage: stat.percentage
47
- },
48
- index
49
- )) }) })
50
- ] }) : null,
51
- layout === "centered" ? /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
52
- /* @__PURE__ */ jsx(
53
- CompoundContent,
54
- {
55
- badge,
56
- heading,
57
- description,
58
- buttons,
59
- alignContent: "center"
60
- }
61
- ),
62
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-12 mt-16", children: (statistics ?? []).map((stat, index) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-3", children: [
63
- /* @__PURE__ */ jsx("h2", { className: "font-serif text-5xl md:text-6xl font-medium text-foreground", children: stat.value }),
64
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm leading-relaxed", children: stat.label })
65
- ] }, index)) })
66
- ] }) : null
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,
@@ -0,0 +1,5 @@
1
+ import { ComponentConfig } from "@puckeditor/core";
2
+ import { Stats2Props } from "./stats-2";
3
+ export type { Stats2Props };
4
+ export declare const conf: ComponentConfig<Stats2Props>;
5
+ export default conf;
@@ -0,0 +1,76 @@
1
+ import { buttons } from "../../../puck-base/core/fields.js";
2
+ import { Stats2 } from "./stats-2.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
4
+ const conf = {
5
+ fields: {
6
+ heading: {
7
+ type: "text",
8
+ contentEditable: true
9
+ },
10
+ description: {
11
+ type: "textarea",
12
+ contentEditable: true
13
+ },
14
+ buttons,
15
+ items: {
16
+ type: "array",
17
+ max: 8,
18
+ getItemSummary: (item, index = 0) => item.metric || `Stat ${index + 1}`,
19
+ arrayFields: {
20
+ metric: {
21
+ type: "text",
22
+ contentEditable: true,
23
+ ai: { instructions: "The metric value, e.g. '100%', '1:1', 'LA'" }
24
+ },
25
+ title: {
26
+ type: "text",
27
+ contentEditable: true,
28
+ ai: { instructions: "Short label describing this metric" }
29
+ },
30
+ variant: {
31
+ type: "radio",
32
+ options: [
33
+ { label: "Light", value: "light" },
34
+ { label: "Dark", value: "dark" }
35
+ ]
36
+ }
37
+ },
38
+ defaultItemProps: {
39
+ metric: "100%",
40
+ title: "Custom program design",
41
+ variant: "light"
42
+ }
43
+ },
44
+ styles: createStylesField()
45
+ },
46
+ defaultProps: {
47
+ heading: "Real results from dedicated training",
48
+ description: "We focus on measurable progress and sustainable fitness habits. Every client gets customized programs built around their goals and current fitness level.",
49
+ buttons: [
50
+ {
51
+ label: "Explore our programs",
52
+ url: "/services",
53
+ variant: "outline",
54
+ size: "default",
55
+ icon: "none"
56
+ },
57
+ {
58
+ label: "Schedule your first session",
59
+ url: "#",
60
+ variant: "default",
61
+ size: "default",
62
+ icon: "none"
63
+ }
64
+ ],
65
+ items: [
66
+ { metric: "100%", title: "Custom program design", variant: "dark" },
67
+ { metric: "1:1", title: "Personalized attention", variant: "light" },
68
+ { metric: "LA", title: "Local Los Angeles training", variant: "light" }
69
+ ],
70
+ styles: createStylesDefaults()
71
+ },
72
+ render: Stats2
73
+ };
74
+ export {
75
+ conf
76
+ };
@@ -0,0 +1,18 @@
1
+ import { CompoundContainerProps } from "@/components/puck-base/container";
2
+ import { CompoundButtonProps } from "@/components/puck-base/button";
3
+ export interface Stats2Props {
4
+ heading?: string;
5
+ description?: string;
6
+ buttons?: CompoundButtonProps[];
7
+ items?: {
8
+ metric: string;
9
+ title: string;
10
+ variant: "dark" | "light";
11
+ }[];
12
+ styles?: {
13
+ padding?: CompoundContainerProps["padding"];
14
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
15
+ backgroundColor?: string;
16
+ };
17
+ }
18
+ export declare const Stats2: ({ heading, description, buttons, items, styles, }: Stats2Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,57 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CompoundContainer } from "../../../puck-base/container.js";
3
+ import { CompoundButton } from "../../../puck-base/button.js";
4
+ import { cn } from "../../../../utils/css-utils.js";
5
+ const Stats2 = ({
6
+ heading,
7
+ description,
8
+ buttons,
9
+ items = [],
10
+ styles
11
+ }) => {
12
+ return /* @__PURE__ */ jsx(
13
+ CompoundContainer,
14
+ {
15
+ padding: styles == null ? void 0 : styles.padding,
16
+ sectionStyle: styles == null ? void 0 : styles.sectionStyle,
17
+ backgroundColor: styles == null ? void 0 : styles.backgroundColor,
18
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8", children: [
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: [
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 }) }),
21
+ /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-6 md:w-1/2", children: [
22
+ description && /* @__PURE__ */ jsx("p", { className: "max-w-2xl text-base leading-relaxed text-muted-foreground", children: description }),
23
+ buttons && buttons.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-3", children: buttons.map((btn, i) => /* @__PURE__ */ jsx(
24
+ CompoundButton,
25
+ {
26
+ label: btn.label,
27
+ url: btn.url,
28
+ action: btn.action,
29
+ variant: btn.variant,
30
+ size: btn.size,
31
+ icon: btn.icon
32
+ },
33
+ i
34
+ )) })
35
+ ] })
36
+ ] }) }),
37
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4", children: items.map((item, i) => /* @__PURE__ */ jsxs(
38
+ "div",
39
+ {
40
+ className: cn(
41
+ "flex min-h-[180px] flex-col justify-between rounded-3xl border p-6",
42
+ item.variant === "dark" ? "border-foreground/20 bg-foreground text-background" : "border-border bg-transparent text-foreground"
43
+ ),
44
+ children: [
45
+ /* @__PURE__ */ jsx("p", { className: "text-3xl font-semibold", children: item.metric }),
46
+ /* @__PURE__ */ jsx("p", { className: "text-base", children: item.title })
47
+ ]
48
+ },
49
+ i
50
+ )) })
51
+ ] })
52
+ }
53
+ );
54
+ };
55
+ export {
56
+ Stats2
57
+ };
@@ -0,0 +1,5 @@
1
+ import { ComponentConfig } from "@puckeditor/core";
2
+ import { Stats3Props } from "./stats-3";
3
+ export type { Stats3Props };
4
+ export declare const conf: ComponentConfig<Stats3Props>;
5
+ export default conf;
@@ -0,0 +1,86 @@
1
+ import { buttons } from "../../../puck-base/core/fields.js";
2
+ import { Stats3 } from "./stats-3.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
4
+ const conf = {
5
+ fields: {
6
+ heading: {
7
+ type: "text",
8
+ contentEditable: true
9
+ },
10
+ description: {
11
+ type: "textarea",
12
+ contentEditable: true
13
+ },
14
+ buttons,
15
+ items: {
16
+ type: "array",
17
+ max: 6,
18
+ getItemSummary: (item, index = 0) => item.metric || `Stat ${index + 1}`,
19
+ arrayFields: {
20
+ metric: {
21
+ type: "text",
22
+ contentEditable: true,
23
+ ai: { instructions: "The key value, e.g. '100%', '1-on-1', '4 weeks'" }
24
+ },
25
+ title: {
26
+ type: "text",
27
+ contentEditable: true,
28
+ ai: { instructions: "A short bold label for this statistic" }
29
+ },
30
+ description: {
31
+ type: "textarea",
32
+ contentEditable: true,
33
+ ai: { instructions: "A brief supporting description for this statistic" }
34
+ }
35
+ },
36
+ defaultItemProps: {
37
+ metric: "100%",
38
+ title: "Stat title",
39
+ description: "A brief description of what this statistic means."
40
+ }
41
+ },
42
+ styles: createStylesField()
43
+ },
44
+ defaultProps: {
45
+ heading: "Real progress from personalized training",
46
+ description: "We focus on measurable improvements and sustainable habits that fit your life.",
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
+ ],
63
+ items: [
64
+ {
65
+ metric: "100%",
66
+ title: "Customized programs",
67
+ description: "Every plan is tailored to your goals, fitness level, and schedule."
68
+ },
69
+ {
70
+ metric: "1-on-1",
71
+ title: "Direct coaching",
72
+ description: "You work directly with your coach for focused attention and real-time feedback."
73
+ },
74
+ {
75
+ metric: "4 weeks",
76
+ title: "Visible results",
77
+ description: "Most clients see measurable strength and endurance improvements within the first month."
78
+ }
79
+ ],
80
+ styles: createStylesDefaults()
81
+ },
82
+ render: Stats3
83
+ };
84
+ export {
85
+ conf
86
+ };
@@ -0,0 +1,18 @@
1
+ import { CompoundContainerProps } from "@/components/puck-base/container";
2
+ import { CompoundButtonProps } from "@/components/puck-base/button";
3
+ export interface Stats3Props {
4
+ heading?: string;
5
+ description?: string;
6
+ buttons?: CompoundButtonProps[];
7
+ items: {
8
+ metric: string;
9
+ title: string;
10
+ description: string;
11
+ }[];
12
+ styles?: {
13
+ padding?: CompoundContainerProps["padding"];
14
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
15
+ backgroundColor?: string;
16
+ };
17
+ }
18
+ export declare const Stats3: ({ heading, description, buttons, items, styles, }: Stats3Props) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,56 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CompoundContainer } from "../../../puck-base/container.js";
3
+ import { CompoundButton } from "../../../puck-base/button.js";
4
+ import { cn } from "../../../../utils/css-utils.js";
5
+ const ITEM_STAGGER = {
6
+ 0: "lg:pt-24",
7
+ 1: "lg:pt-16",
8
+ 2: "lg:pt-8"
9
+ };
10
+ const Stats3 = ({
11
+ heading,
12
+ description,
13
+ buttons = [],
14
+ items = [],
15
+ styles
16
+ }) => {
17
+ return /* @__PURE__ */ jsx(
18
+ CompoundContainer,
19
+ {
20
+ padding: styles == null ? void 0 : styles.padding,
21
+ sectionStyle: styles == null ? void 0 : styles.sectionStyle,
22
+ backgroundColor: styles == null ? void 0 : styles.backgroundColor,
23
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8", children: [
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: [
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 }) }),
26
+ /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-8 lg:basis-1/2", children: [
27
+ description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: description }),
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
+ ) })
31
+ ] })
32
+ ] }) }),
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(
34
+ "div",
35
+ {
36
+ className: cn("flex h-full flex-col", ITEM_STAGGER[index]),
37
+ children: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-row", children: [
38
+ /* @__PURE__ */ jsx("div", { className: "w-px self-stretch bg-border" }),
39
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8 px-6", children: [
40
+ /* @__PURE__ */ jsx("p", { className: "text-4xl font-bold tracking-tight text-foreground", children: item.metric }),
41
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
42
+ /* @__PURE__ */ jsx("p", { className: "font-semibold text-foreground", children: item.title }),
43
+ /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: item.description })
44
+ ] })
45
+ ] })
46
+ ] })
47
+ },
48
+ index
49
+ )) })
50
+ ] })
51
+ }
52
+ );
53
+ };
54
+ export {
55
+ Stats3
56
+ };
@@ -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
- columns?: Array<{
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: ({ padding, sectionStyle, backgroundColor, heading, description, columns, }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const Comparison: ({ heading, description, plans, styles, }: ComparisonProps) => import("react/jsx-runtime").JSX.Element;