dune-react 0.0.9 → 0.0.11

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 (210) hide show
  1. package/dist/components/puck-base/article-card.js +1 -1
  2. package/dist/components/puck-base/button.d.ts +0 -1
  3. package/dist/components/puck-base/button.js +5 -4
  4. package/dist/components/puck-base/card.js +0 -1
  5. package/dist/components/puck-base/content.js +0 -1
  6. package/dist/components/puck-base/core/fields.d.ts +2 -150
  7. package/dist/components/puck-base/core/fields.js +7 -83
  8. package/dist/components/puck-base/core/styles.d.ts +1946 -0
  9. package/dist/components/puck-base/core/styles.js +250 -0
  10. package/dist/components/puck-base/core/with-editable.d.ts +5 -7
  11. package/dist/components/puck-base/core/with-editable.js +69 -64
  12. package/dist/components/puck-base/{action-field.d.ts → fields/action-field.d.ts} +1 -1
  13. package/dist/components/puck-base/{action-field.js → fields/action-field.js} +91 -16
  14. package/dist/components/puck-base/fields/auto-field.d.ts +0 -1
  15. package/dist/components/puck-base/fields/auto-field.js +2 -90
  16. package/dist/components/puck-base/form.js +0 -1
  17. package/dist/components/puck-base/index.d.ts +1 -1
  18. package/dist/components/puck-base/navigation-menu.d.ts +18 -0
  19. package/dist/components/puck-base/navigation-menu.js +202 -0
  20. package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.d.ts +9 -7
  21. package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.js +11 -8
  22. package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +19 -37
  23. package/dist/components/puck-block/banner-sections/marquee-1/index.js +26 -24
  24. package/dist/components/puck-block/banner-sections/marquee-1/marquee.d.ts +9 -9
  25. package/dist/components/puck-block/banner-sections/marquee-1/marquee.js +28 -21
  26. package/dist/components/puck-block/banner-sections/props.d.ts +22 -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 +114 -105
  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 +15 -11
  31. package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +27 -22
  32. package/dist/components/puck-block/contact-sections/contact-us-2/index.js +54 -52
  33. package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +15 -12
  34. package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +29 -24
  35. package/dist/components/puck-block/contact-sections/contact-us-3/index.js +73 -60
  36. package/dist/components/puck-block/contact-sections/props.d.ts +65 -0
  37. package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.d.ts +13 -9
  38. package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.js +28 -30
  39. package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +23 -25
  40. package/dist/components/puck-block/cta-sections/cta-1/cta.d.ts +6 -4
  41. package/dist/components/puck-block/cta-sections/cta-1/cta.js +5 -7
  42. package/dist/components/puck-block/cta-sections/cta-1/index.js +5 -9
  43. package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.d.ts +10 -10
  44. package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.js +48 -22
  45. package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +36 -29
  46. package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +13 -5
  47. package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.d.ts +7 -3
  48. package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.js +35 -32
  49. package/dist/components/puck-block/cta-sections/promo-section-1/index.js +5 -7
  50. package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.d.ts +6 -4
  51. package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.js +93 -79
  52. package/dist/components/puck-block/cta-sections/props.d.ts +47 -0
  53. package/dist/components/puck-block/faq-sections/accordion-1/accordion.d.ts +6 -4
  54. package/dist/components/puck-block/faq-sections/accordion-1/accordion.js +44 -33
  55. package/dist/components/puck-block/faq-sections/accordion-1/index.js +3 -5
  56. package/dist/components/puck-block/faq-sections/faq-1/faq.d.ts +9 -7
  57. package/dist/components/puck-block/faq-sections/faq-1/faq.js +50 -44
  58. package/dist/components/puck-block/faq-sections/faq-1/index.js +12 -14
  59. package/dist/components/puck-block/faq-sections/faq-2/faq-2.d.ts +6 -4
  60. package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +4 -6
  61. package/dist/components/puck-block/faq-sections/faq-2/index.js +4 -5
  62. package/dist/components/puck-block/faq-sections/props.d.ts +30 -0
  63. package/dist/components/puck-block/feature-sections/bento-1/bento.d.ts +6 -4
  64. package/dist/components/puck-block/feature-sections/bento-1/bento.js +2 -4
  65. package/dist/components/puck-block/feature-sections/bento-1/index.js +4 -5
  66. package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.d.ts +6 -4
  67. package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +2 -4
  68. package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +4 -7
  69. package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.d.ts +6 -4
  70. package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.js +2 -4
  71. package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +4 -5
  72. package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.d.ts +6 -4
  73. package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.js +59 -53
  74. package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +7 -8
  75. package/dist/components/puck-block/feature-sections/product-features-1/index.js +4 -5
  76. package/dist/components/puck-block/feature-sections/product-features-1/product-features.d.ts +6 -4
  77. package/dist/components/puck-block/feature-sections/product-features-1/product-features.js +2 -4
  78. package/dist/components/puck-block/feature-sections/props.d.ts +48 -0
  79. package/dist/components/puck-block/footer-sections/footer-1/footer.d.ts +5 -3
  80. package/dist/components/puck-block/footer-sections/footer-1/footer.js +6 -6
  81. package/dist/components/puck-block/footer-sections/footer-1/index.js +3 -5
  82. package/dist/components/puck-block/footer-sections/props.d.ts +31 -0
  83. package/dist/components/puck-block/gallery-sections/gallery-1/gallery.d.ts +9 -7
  84. package/dist/components/puck-block/gallery-sections/gallery-1/gallery.js +48 -40
  85. package/dist/components/puck-block/gallery-sections/gallery-1/index.js +33 -35
  86. package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.d.ts +6 -4
  87. package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +19 -13
  88. package/dist/components/puck-block/gallery-sections/gallery-2/index.js +4 -6
  89. package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +7 -5
  90. package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +5 -7
  91. package/dist/components/puck-block/gallery-sections/gallery-3/index.js +13 -14
  92. package/dist/components/puck-block/gallery-sections/props.d.ts +26 -0
  93. package/dist/components/puck-block/header-sections/header-1/header.d.ts +11 -6
  94. package/dist/components/puck-block/header-sections/header-1/header.js +34 -28
  95. package/dist/components/puck-block/header-sections/header-1/index.d.ts +1 -1
  96. package/dist/components/puck-block/header-sections/header-1/index.js +26 -30
  97. package/dist/components/puck-block/header-sections/props.d.ts +41 -0
  98. package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +12 -12
  99. package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.d.ts +8 -6
  100. package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.js +5 -5
  101. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.d.ts +7 -5
  102. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +19 -5
  103. package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +17 -17
  104. package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +8 -4
  105. package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +36 -26
  106. package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +19 -15
  107. package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.d.ts +7 -6
  108. package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.js +8 -11
  109. package/dist/components/puck-block/hero-sections/grid-hero-1/index.js +43 -11
  110. package/dist/components/puck-block/hero-sections/hero-1/hero.d.ts +6 -4
  111. package/dist/components/puck-block/hero-sections/hero-1/hero.js +6 -8
  112. package/dist/components/puck-block/hero-sections/hero-1/index.js +4 -4
  113. package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.d.ts +9 -7
  114. package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +65 -59
  115. package/dist/components/puck-block/hero-sections/image-hero-1/index.js +35 -36
  116. package/dist/components/puck-block/hero-sections/props.d.ts +71 -0
  117. package/dist/components/puck-block/hero-sections/split-hero-1/index.js +6 -5
  118. package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.d.ts +8 -8
  119. package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.js +48 -47
  120. package/dist/components/puck-block/hero-sections/video-hero-1/index.js +4 -3
  121. package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.d.ts +6 -2
  122. package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.js +30 -22
  123. package/dist/components/puck-block/location-sections/location-1/index.js +44 -42
  124. package/dist/components/puck-block/location-sections/location-1/location.d.ts +8 -6
  125. package/dist/components/puck-block/location-sections/location-1/location.js +8 -15
  126. package/dist/components/puck-block/location-sections/location-2/index.js +66 -57
  127. package/dist/components/puck-block/location-sections/location-2/location.d.ts +12 -6
  128. package/dist/components/puck-block/location-sections/location-2/location.js +8 -14
  129. package/dist/components/puck-block/location-sections/location-3/index.js +25 -24
  130. package/dist/components/puck-block/location-sections/location-3/location.d.ts +10 -6
  131. package/dist/components/puck-block/location-sections/location-3/location.js +12 -11
  132. package/dist/components/puck-block/location-sections/props.d.ts +45 -0
  133. package/dist/components/puck-block/metrics-sections/props.d.ts +43 -0
  134. package/dist/components/puck-block/metrics-sections/stats-1/index.js +6 -7
  135. package/dist/components/puck-block/metrics-sections/stats-1/stats.d.ts +7 -5
  136. package/dist/components/puck-block/metrics-sections/stats-1/stats.js +61 -55
  137. package/dist/components/puck-block/metrics-sections/stats-2/index.js +4 -7
  138. package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +6 -4
  139. package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +4 -7
  140. package/dist/components/puck-block/metrics-sections/stats-3/index.js +19 -29
  141. package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +7 -6
  142. package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +22 -13
  143. package/dist/components/puck-block/pricing-sections/comparison-1/comparison.d.ts +7 -5
  144. package/dist/components/puck-block/pricing-sections/comparison-1/comparison.js +45 -39
  145. package/dist/components/puck-block/pricing-sections/comparison-1/index.js +5 -7
  146. package/dist/components/puck-block/pricing-sections/pricing-1/index.js +10 -13
  147. package/dist/components/puck-block/pricing-sections/pricing-1/pricing.d.ts +8 -6
  148. package/dist/components/puck-block/pricing-sections/pricing-1/pricing.js +47 -35
  149. package/dist/components/puck-block/pricing-sections/pricing-2/index.js +7 -12
  150. package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +6 -4
  151. package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +60 -57
  152. package/dist/components/puck-block/pricing-sections/props.d.ts +46 -0
  153. package/dist/components/puck-block/showcase-sections/before-after-1/before-after.d.ts +7 -5
  154. package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +8 -10
  155. package/dist/components/puck-block/showcase-sections/before-after-1/index.js +6 -8
  156. package/dist/components/puck-block/showcase-sections/case-study-1/case-study.d.ts +6 -2
  157. package/dist/components/puck-block/showcase-sections/case-study-1/case-study.js +29 -21
  158. package/dist/components/puck-block/showcase-sections/case-study-1/index.js +4 -3
  159. package/dist/components/puck-block/showcase-sections/props.d.ts +48 -0
  160. package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +3 -5
  161. package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.d.ts +6 -4
  162. package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.js +38 -41
  163. package/dist/components/puck-block/team-sections/props.d.ts +39 -0
  164. package/dist/components/puck-block/team-sections/team-grid-1/index.js +5 -6
  165. package/dist/components/puck-block/team-sections/team-grid-1/team-grid.d.ts +6 -4
  166. package/dist/components/puck-block/team-sections/team-grid-1/team-grid.js +23 -17
  167. package/dist/components/puck-block/team-sections/team-grid-2/index.js +4 -7
  168. package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +6 -4
  169. package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +5 -7
  170. package/dist/components/puck-block/team-sections/team-profiles-1/index.js +4 -5
  171. package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +6 -4
  172. package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +5 -7
  173. package/dist/components/puck-block/testimonial-sections/customers-1/customers.d.ts +9 -7
  174. package/dist/components/puck-block/testimonial-sections/customers-1/customers.js +8 -11
  175. package/dist/components/puck-block/testimonial-sections/customers-1/index.js +17 -17
  176. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +15 -12
  177. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.d.ts +7 -3
  178. package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.js +33 -24
  179. package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +17 -16
  180. package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +6 -4
  181. package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +5 -7
  182. package/dist/components/puck-block/testimonial-sections/props.d.ts +34 -0
  183. package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +17 -16
  184. package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts +8 -6
  185. package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.js +22 -17
  186. package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +17 -17
  187. package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.d.ts +8 -6
  188. package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.js +100 -67
  189. package/dist/components/puck-block/text-sections/articles-1/articles.d.ts +7 -5
  190. package/dist/components/puck-block/text-sections/articles-1/articles.js +41 -34
  191. package/dist/components/puck-block/text-sections/articles-1/index.js +24 -25
  192. package/dist/components/puck-block/text-sections/content-section-1/content-section.d.ts +7 -5
  193. package/dist/components/puck-block/text-sections/content-section-1/content-section.js +6 -9
  194. package/dist/components/puck-block/text-sections/content-section-1/index.js +14 -16
  195. package/dist/components/puck-block/text-sections/props.d.ts +58 -0
  196. package/dist/components/puck-block/text-sections/rich-text-1/index.js +13 -15
  197. package/dist/components/puck-block/text-sections/rich-text-1/rich-text.d.ts +7 -5
  198. package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +11 -11
  199. package/dist/components/puck-block/text-sections/tab-section-1/index.js +4 -5
  200. package/dist/components/puck-block/text-sections/tab-section-1/tab-section.d.ts +6 -4
  201. package/dist/components/puck-block/text-sections/tab-section-1/tab-section.js +10 -8
  202. package/dist/components/puck-block/text-sections/timeline-1/index.js +3 -5
  203. package/dist/components/puck-block/text-sections/timeline-1/timeline.d.ts +6 -4
  204. package/dist/components/puck-block/text-sections/timeline-1/timeline.js +3 -5
  205. package/dist/components/puck-block/text-sections/two-column-1/index.js +4 -6
  206. package/dist/components/puck-block/text-sections/two-column-1/two-column.d.ts +6 -4
  207. package/dist/components/puck-block/text-sections/two-column-1/two-column.js +5 -7
  208. package/dist/components/shadcn/navigation-menu.js +8 -33
  209. package/dist/index.js +3 -2
  210. package/package.json +2 -2
@@ -1,15 +1,16 @@
1
1
  import { Pricing } from "./pricing.js";
2
- import { paddingDefaults, backgroundColor, sectionStyle, padding, features, button, contentFields } from "../../../puck-base/core/fields.js";
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
- tiers: {
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
- cost: { type: "text", contentEditable: true },
13
+ price: { type: "text", contentEditable: true },
13
14
  cycle: { type: "text", contentEditable: true },
14
15
  features,
15
16
  button
@@ -17,12 +18,11 @@ const conf = {
17
18
  defaultItemProps: {
18
19
  name: "Plan / product / pricing tier name",
19
20
  description: "Product description",
20
- cost: "$50",
21
+ price: "$50",
21
22
  cycle: "month",
22
23
  features: [features.defaultItemProps],
23
24
  button: {
24
25
  label: "Choose",
25
- url: "#",
26
26
  variant: "default",
27
27
  size: "default",
28
28
  icon: "arrow-right"
@@ -31,12 +31,9 @@ const conf = {
31
31
  min: 1,
32
32
  max: 3
33
33
  },
34
- padding,
35
- sectionStyle,
36
- backgroundColor
34
+ styles: createStylesField()
37
35
  },
38
36
  defaultProps: {
39
- padding: paddingDefaults,
40
37
  badge: {
41
38
  label: "Platform",
42
39
  url: "",
@@ -45,10 +42,10 @@ const conf = {
45
42
  heading: "Something new!",
46
43
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt",
47
44
  buttons: [],
48
- tiers: Array.from({ length: 3 }).map((_, index) => ({
45
+ plans: Array.from({ length: 3 }).map((_, index) => ({
49
46
  name: `Plan ${index + 1}`,
50
47
  description: "Our goal is to streamline SMB trade, making it easier and faster than ever for everyone and everywhere.",
51
- cost: "$40",
48
+ price: "$40",
52
49
  cycle: "month",
53
50
  features: Array.from({ length: 3 }).map((_2, index2) => ({
54
51
  icon: "check",
@@ -57,12 +54,12 @@ const conf = {
57
54
  })),
58
55
  button: {
59
56
  label: "Sign up today",
60
- url: "#",
61
57
  icon: "arrow-right",
62
58
  variant: "outline",
63
59
  size: "default"
64
60
  }
65
- }))
61
+ })),
62
+ styles: createStylesDefaults()
66
63
  },
67
64
  render: Pricing
68
65
  };
@@ -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
- padding?: CompoundContainerProps["padding"];
7
- sectionStyle?: CompoundContainerProps["sectionStyle"];
8
- backgroundColor?: string;
9
- tiers: {
6
+ plans: {
10
7
  name: string;
11
8
  description: string;
12
- cost: string;
9
+ price: string;
13
10
  cycle: string;
14
11
  features: Feature[];
15
12
  button: CompoundButtonProps;
16
13
  }[];
17
- className?: string;
14
+ styles?: {
15
+ padding?: CompoundContainerProps["padding"];
16
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
17
+ backgroundColor?: string;
18
+ className?: string;
19
+ };
18
20
  }
19
21
  export declare const Pricing: (props: PricingProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,43 +4,55 @@ import { CompoundButton } from "../../../puck-base/button.js";
4
4
  import { CompoundContainer } from "../../../puck-base/container.js";
5
5
  import { CompoundContent } from "../../../puck-base/content.js";
6
6
  import DynamicIcon from "../../../../node_modules/.pnpm/lucide-react@0.540.0_react@19.2.4/node_modules/lucide-react/dist/esm/DynamicIcon.js";
7
- const Pricing = (props) => /* @__PURE__ */ jsx(CompoundContainer, { padding: props.padding, sectionStyle: props.sectionStyle, backgroundColor: props.backgroundColor, className: props.className, children: /* @__PURE__ */ jsxs("div", { children: [
8
- /* @__PURE__ */ jsx(
9
- CompoundContent,
7
+ const Pricing = (props) => {
8
+ var _a, _b, _c, _d;
9
+ return /* @__PURE__ */ jsx(
10
+ CompoundContainer,
10
11
  {
11
- badge: props.badge,
12
- heading: props.heading,
13
- description: props.description,
14
- buttons: props.buttons,
15
- alignContent: "center",
16
- spacing: "tight"
12
+ padding: (_a = props.styles) == null ? void 0 : _a.padding,
13
+ sectionStyle: (_b = props.styles) == null ? void 0 : _b.sectionStyle,
14
+ backgroundColor: (_c = props.styles) == null ? void 0 : _c.backgroundColor,
15
+ className: (_d = props.styles) == null ? void 0 : _d.className,
16
+ children: /* @__PURE__ */ jsxs("div", { children: [
17
+ /* @__PURE__ */ jsx(
18
+ CompoundContent,
19
+ {
20
+ badge: props.badge,
21
+ heading: props.heading,
22
+ description: props.description,
23
+ buttons: props.buttons,
24
+ alignContent: "center",
25
+ spacing: "tight"
26
+ }
27
+ ),
28
+ /* @__PURE__ */ jsx("div", { className: "grid w-full grid-cols-1 gap-8 pt-20 text-left lg:grid-cols-3", children: (props.plans ?? []).map((tier, index) => /* @__PURE__ */ jsxs(Card, { className: "w-full rounded-md shadow", children: [
29
+ /* @__PURE__ */ jsxs(CardHeader, { children: [
30
+ /* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx("span", { className: "flex flex-row items-center gap-4 font-normal", children: tier.name }) }),
31
+ /* @__PURE__ */ jsx(CardDescription, { children: tier.description })
32
+ ] }),
33
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-start gap-8", children: [
34
+ /* @__PURE__ */ jsxs("p", { className: "flex flex-row items-center gap-2 text-xl", children: [
35
+ /* @__PURE__ */ jsx("span", { className: "text-4xl", children: tier.price }),
36
+ /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-sm", children: [
37
+ " ",
38
+ "/ ",
39
+ tier.cycle
40
+ ] })
41
+ ] }),
42
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col justify-start gap-4", children: (tier.features ?? []).map((feature, index2) => /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4", children: [
43
+ feature.icon && feature.icon !== "none" ? /* @__PURE__ */ jsx(DynamicIcon, { name: feature.icon }) : null,
44
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
45
+ /* @__PURE__ */ jsx("p", { children: feature.name }),
46
+ feature.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: feature.description }) : null
47
+ ] })
48
+ ] }, index2)) }),
49
+ /* @__PURE__ */ jsx(CompoundButton, { ...tier.button })
50
+ ] }) })
51
+ ] }, index)) })
52
+ ] })
17
53
  }
18
- ),
19
- /* @__PURE__ */ jsx("div", { className: "grid w-full grid-cols-1 gap-8 pt-20 text-left lg:grid-cols-3", children: (props.tiers ?? []).map((tier, index) => /* @__PURE__ */ jsxs(Card, { className: "w-full rounded-md shadow", children: [
20
- /* @__PURE__ */ jsxs(CardHeader, { children: [
21
- /* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx("span", { className: "flex flex-row items-center gap-4 font-normal", children: tier.name }) }),
22
- /* @__PURE__ */ jsx(CardDescription, { children: tier.description })
23
- ] }),
24
- /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-start gap-8", children: [
25
- /* @__PURE__ */ jsxs("p", { className: "flex flex-row items-center gap-2 text-xl", children: [
26
- /* @__PURE__ */ jsx("span", { className: "text-4xl", children: tier.cost }),
27
- /* @__PURE__ */ jsxs("span", { className: "text-muted-foreground text-sm", children: [
28
- " ",
29
- "/ ",
30
- tier.cycle
31
- ] })
32
- ] }),
33
- /* @__PURE__ */ jsx("div", { className: "flex flex-col justify-start gap-4", children: (tier.features ?? []).map((feature, index2) => /* @__PURE__ */ jsxs("div", { className: "flex flex-row gap-4", children: [
34
- feature.icon && feature.icon !== "none" ? /* @__PURE__ */ jsx(DynamicIcon, { name: feature.icon }) : null,
35
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
36
- /* @__PURE__ */ jsx("p", { children: feature.name }),
37
- feature.description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm", children: feature.description }) : null
38
- ] })
39
- ] }, index2)) }),
40
- /* @__PURE__ */ jsx(CompoundButton, { ...tier.button })
41
- ] }) })
42
- ] }, index)) })
43
- ] }) });
54
+ );
55
+ };
44
56
  export {
45
57
  Pricing
46
58
  };
@@ -1,10 +1,11 @@
1
1
  import { Pricing2 } from "./pricing-2.js";
2
- import { paddingDefaults, backgroundColor, sectionStyle, padding, button } from "../../../puck-base/core/fields.js";
2
+ import { button } from "../../../puck-base/core/fields.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
3
4
  const conf = {
4
5
  fields: {
5
6
  heading: { type: "text", contentEditable: true },
6
7
  description: { type: "textarea", contentEditable: true },
7
- tiers: {
8
+ plans: {
8
9
  type: "array",
9
10
  getItemSummary: (item, index = 0) => item.title || `Tier ${index + 1}`,
10
11
  arrayFields: {
@@ -49,7 +50,6 @@ const conf = {
49
50
  period: "per month",
50
51
  button: {
51
52
  label: "Get started",
52
- url: "#",
53
53
  variant: "outline",
54
54
  size: "default",
55
55
  icon: "none"
@@ -65,15 +65,12 @@ const conf = {
65
65
  min: 1,
66
66
  max: 4
67
67
  },
68
- padding,
69
- sectionStyle,
70
- backgroundColor
68
+ styles: createStylesField()
71
69
  },
72
70
  defaultProps: {
73
- padding: paddingDefaults,
74
71
  heading: "Training plans tailored to you",
75
72
  description: "Choose the package that fits your goals. Start with one session or commit to a program.",
76
- tiers: [
73
+ plans: [
77
74
  {
78
75
  badgeLabel: "",
79
76
  title: "Single Session",
@@ -82,7 +79,6 @@ const conf = {
82
79
  period: "per session",
83
80
  button: {
84
81
  label: "Schedule a session",
85
- url: "#",
86
82
  variant: "outline",
87
83
  size: "default",
88
84
  icon: "none"
@@ -104,7 +100,6 @@ const conf = {
104
100
  period: "per month",
105
101
  button: {
106
102
  label: "Start your program",
107
- url: "#",
108
103
  variant: "default",
109
104
  size: "default",
110
105
  icon: "none"
@@ -127,7 +122,6 @@ const conf = {
127
122
  period: "per month",
128
123
  button: {
129
124
  label: "Join the intensive",
130
- url: "#",
131
125
  variant: "outline",
132
126
  size: "default",
133
127
  icon: "none"
@@ -143,7 +137,8 @@ const conf = {
143
137
  ],
144
138
  isFeatured: false
145
139
  }
146
- ]
140
+ ],
141
+ styles: createStylesDefaults()
147
142
  },
148
143
  render: Pricing2
149
144
  };
@@ -16,9 +16,11 @@ export interface PricingTierItem {
16
16
  export interface Pricing2Props {
17
17
  heading: string;
18
18
  description: string;
19
- tiers: PricingTierItem[];
20
- padding?: CompoundContainerProps["padding"];
21
- sectionStyle?: CompoundContainerProps["sectionStyle"];
22
- backgroundColor?: string;
19
+ plans: PricingTierItem[];
20
+ styles?: {
21
+ padding?: CompoundContainerProps["padding"];
22
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
23
+ backgroundColor?: string;
24
+ };
23
25
  }
24
26
  export declare const Pricing2: (props: Pricing2Props) => import("react/jsx-runtime").JSX.Element;
@@ -3,66 +3,69 @@ import { Check } from "lucide-react";
3
3
  import { cn } from "../../../../utils/css-utils.js";
4
4
  import { CompoundButton } from "../../../puck-base/button.js";
5
5
  import { CompoundContainer } from "../../../puck-base/container.js";
6
- const Pricing2 = (props) => /* @__PURE__ */ jsx(
7
- CompoundContainer,
8
- {
9
- padding: props.padding,
10
- sectionStyle: props.sectionStyle,
11
- backgroundColor: props.backgroundColor,
12
- children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-14", children: [
13
- /* @__PURE__ */ jsxs("div", { className: "flex max-w-2xl flex-col items-center gap-4 text-center", children: [
14
- /* @__PURE__ */ jsx("h2", { className: "text-foreground text-balance text-4xl font-bold tracking-tight", children: props.heading }),
15
- /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-base leading-relaxed", children: props.description })
16
- ] }),
17
- /* @__PURE__ */ jsx("div", { className: "grid w-full max-w-7xl grid-cols-1 gap-6 lg:grid-cols-3", children: (props.tiers ?? []).map((tier, index) => /* @__PURE__ */ jsx(
18
- "div",
19
- {
20
- className: cn("flex flex-col", tier.isFeatured && "lg:-mt-8"),
21
- children: /* @__PURE__ */ jsxs("div", { className: "bg-foreground/5 flex h-full flex-col gap-6 overflow-hidden rounded-3xl px-1 pt-1 pb-8", children: [
22
- /* @__PURE__ */ jsxs(
23
- "div",
24
- {
25
- className: cn(
26
- "bg-foreground/5 flex w-full flex-col gap-2 rounded-3xl px-8 py-7",
27
- tier.isFeatured ? "min-h-44" : "min-h-36"
28
- ),
29
- children: [
30
- tier.badgeLabel && /* @__PURE__ */ jsx("div", { className: "w-fit rounded-full bg-foreground px-2.5 py-1", children: /* @__PURE__ */ jsx("span", { className: "text-background text-xs font-medium", children: tier.badgeLabel }) }),
31
- /* @__PURE__ */ jsx("h3", { className: "text-foreground text-xl font-semibold", children: tier.title }),
32
- /* @__PURE__ */ jsx("p", { className: "text-foreground/70 text-sm", children: tier.description })
33
- ]
34
- }
35
- ),
36
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 px-8", children: [
37
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
38
- /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-1", children: [
39
- /* @__PURE__ */ jsx("span", { className: "text-foreground text-4xl font-bold", children: tier.price }),
40
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm", children: tier.period })
6
+ const Pricing2 = (props) => {
7
+ var _a, _b, _c;
8
+ return /* @__PURE__ */ jsx(
9
+ CompoundContainer,
10
+ {
11
+ padding: (_a = props.styles) == null ? void 0 : _a.padding,
12
+ sectionStyle: (_b = props.styles) == null ? void 0 : _b.sectionStyle,
13
+ backgroundColor: (_c = props.styles) == null ? void 0 : _c.backgroundColor,
14
+ children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-14", children: [
15
+ /* @__PURE__ */ jsxs("div", { className: "flex max-w-2xl flex-col items-center gap-4 text-center", children: [
16
+ /* @__PURE__ */ jsx("h2", { className: "text-foreground text-balance text-4xl font-bold tracking-tight", children: props.heading }),
17
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-base leading-relaxed", children: props.description })
18
+ ] }),
19
+ /* @__PURE__ */ jsx("div", { className: "grid w-full max-w-7xl grid-cols-1 gap-6 lg:grid-cols-3", children: (props.plans ?? []).map((tier, index) => /* @__PURE__ */ jsx(
20
+ "div",
21
+ {
22
+ className: cn("flex flex-col", tier.isFeatured && "lg:-mt-8"),
23
+ children: /* @__PURE__ */ jsxs("div", { className: "bg-foreground/5 flex h-full flex-col gap-6 overflow-hidden rounded-3xl px-1 pt-1 pb-8", children: [
24
+ /* @__PURE__ */ jsxs(
25
+ "div",
26
+ {
27
+ className: cn(
28
+ "bg-foreground/5 flex w-full flex-col gap-2 rounded-3xl px-8 py-7",
29
+ tier.isFeatured ? "min-h-44" : "min-h-36"
30
+ ),
31
+ children: [
32
+ tier.badgeLabel && /* @__PURE__ */ jsx("div", { className: "w-fit rounded-full bg-foreground px-2.5 py-1", children: /* @__PURE__ */ jsx("span", { className: "text-background text-xs font-medium", children: tier.badgeLabel }) }),
33
+ /* @__PURE__ */ jsx("h3", { className: "text-foreground text-xl font-semibold", children: tier.title }),
34
+ /* @__PURE__ */ jsx("p", { className: "text-foreground/70 text-sm", children: tier.description })
35
+ ]
36
+ }
37
+ ),
38
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 px-8", children: [
39
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
40
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-baseline gap-1", children: [
41
+ /* @__PURE__ */ jsx("span", { className: "text-foreground text-4xl font-bold", children: tier.price }),
42
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-sm", children: tier.period })
43
+ ] }),
44
+ /* @__PURE__ */ jsx(
45
+ CompoundButton,
46
+ {
47
+ ...tier.button,
48
+ className: cn("w-full", tier.button.className)
49
+ }
50
+ )
41
51
  ] }),
42
- /* @__PURE__ */ jsx(
43
- CompoundButton,
44
- {
45
- ...tier.button,
46
- className: cn("w-full", tier.button.className)
47
- }
48
- )
49
- ] }),
50
- /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
51
- /* @__PURE__ */ jsx("div", { className: "bg-border h-px w-full" }),
52
- tier.featuresLabel && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wider", children: tier.featuresLabel }),
53
- /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: (tier.features ?? []).map((feature, fi) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
54
- /* @__PURE__ */ jsx(Check, { className: "text-foreground h-4 w-4 shrink-0" }),
55
- /* @__PURE__ */ jsx("span", { className: "text-foreground text-sm", children: feature.title })
56
- ] }, fi)) })
52
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
53
+ /* @__PURE__ */ jsx("div", { className: "bg-border h-px w-full" }),
54
+ tier.featuresLabel && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-medium uppercase tracking-wider", children: tier.featuresLabel }),
55
+ /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-2", children: (tier.features ?? []).map((feature, fi) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
56
+ /* @__PURE__ */ jsx(Check, { className: "text-foreground h-4 w-4 shrink-0" }),
57
+ /* @__PURE__ */ jsx("span", { className: "text-foreground text-sm", children: feature.title })
58
+ ] }, fi)) })
59
+ ] })
57
60
  ] })
58
61
  ] })
59
- ] })
60
- },
61
- index
62
- )) })
63
- ] })
64
- }
65
- );
62
+ },
63
+ index
64
+ )) })
65
+ ] })
66
+ }
67
+ );
68
+ };
66
69
  export {
67
70
  Pricing2
68
71
  };
@@ -0,0 +1,46 @@
1
+ type PricingVariant = "comparison-1" | "pricing-1" | "pricing-2";
2
+ type PricingPadding = {
3
+ top?: "none" | "small" | "medium" | "large";
4
+ bottom?: "none" | "small" | "medium" | "large";
5
+ };
6
+ type PricingSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
7
+ type PricingBadge = {
8
+ label: string;
9
+ url?: string;
10
+ variant?: "default" | "secondary" | "destructive" | "outline";
11
+ };
12
+ type PricingButton = {
13
+ label: string;
14
+ url?: string;
15
+ variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
16
+ size?: "default" | "sm" | "lg" | "icon";
17
+ icon?: string;
18
+ };
19
+ type PricingFeature = string | {
20
+ name: string;
21
+ description?: string;
22
+ icon?: string;
23
+ };
24
+ type PricingPlan = {
25
+ name: string;
26
+ description?: string;
27
+ price?: string;
28
+ cycle?: string;
29
+ features?: PricingFeature[];
30
+ button?: PricingButton;
31
+ highlighted?: boolean;
32
+ };
33
+ type PricingSectionProps = {
34
+ variant?: PricingVariant;
35
+ badge?: PricingBadge;
36
+ heading?: string;
37
+ description?: string;
38
+ buttons?: PricingButton[];
39
+ plans?: PricingPlan[];
40
+ styles?: {
41
+ padding?: PricingPadding;
42
+ sectionStyle?: PricingSectionStyle;
43
+ backgroundColor?: string;
44
+ className?: string;
45
+ };
46
+ };
@@ -4,10 +4,7 @@ export interface BeforeAfterItem {
4
4
  text: string;
5
5
  }
6
6
  export interface BeforeAfterProps {
7
- padding?: CompoundContainerProps["padding"];
8
- sectionStyle?: CompoundContainerProps["sectionStyle"];
9
- backgroundColor?: string;
10
- kicker?: string;
7
+ eyebrow?: string;
11
8
  heading?: string;
12
9
  description?: string;
13
10
  beforeLabel?: string;
@@ -16,5 +13,10 @@ export interface BeforeAfterProps {
16
13
  afterItems?: BeforeAfterItem[];
17
14
  button?: CompoundButtonProps;
18
15
  layout?: "side-by-side" | "stacked";
16
+ styles?: {
17
+ padding?: CompoundContainerProps["padding"];
18
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
19
+ backgroundColor?: string;
20
+ };
19
21
  }
20
- export declare const BeforeAfter: ({ padding, sectionStyle, backgroundColor, kicker, heading, description, beforeLabel, beforeItems, afterLabel, afterItems, button, layout, }: BeforeAfterProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const BeforeAfter: ({ eyebrow, heading, description, beforeLabel, beforeItems, afterLabel, afterItems, button, layout, styles, }: BeforeAfterProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,10 +5,7 @@ import { CompoundButton } from "../../../puck-base/button.js";
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  import { X, Check } from "lucide-react";
7
7
  const BeforeAfter = ({
8
- padding,
9
- sectionStyle,
10
- backgroundColor,
11
- kicker,
8
+ eyebrow,
12
9
  heading,
13
10
  description,
14
11
  beforeLabel = "Before",
@@ -16,16 +13,17 @@ const BeforeAfter = ({
16
13
  afterLabel = "After",
17
14
  afterItems = [],
18
15
  button,
19
- layout = "side-by-side"
16
+ layout = "side-by-side",
17
+ styles
20
18
  }) => /* @__PURE__ */ jsxs(
21
19
  CompoundContainer,
22
20
  {
23
- padding,
24
- sectionStyle,
25
- backgroundColor,
21
+ padding: styles == null ? void 0 : styles.padding,
22
+ sectionStyle: styles == null ? void 0 : styles.sectionStyle,
23
+ backgroundColor: styles == null ? void 0 : styles.backgroundColor,
26
24
  children: [
27
- (kicker || heading || description) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center max-w-2xl mx-auto", children: [
28
- kicker && /* @__PURE__ */ jsx("p", { className: "text-primary text-sm font-semibold uppercase tracking-widest mb-3", children: kicker }),
25
+ (eyebrow || heading || description) && /* @__PURE__ */ jsxs("div", { className: "mb-12 text-center max-w-2xl mx-auto", children: [
26
+ eyebrow && /* @__PURE__ */ jsx("p", { className: "text-primary text-sm font-semibold uppercase tracking-widest mb-3", children: eyebrow }),
29
27
  heading && /* @__PURE__ */ jsx("h2", { className: "text-foreground text-3xl font-bold tracking-tight md:text-4xl", children: heading }),
30
28
  description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-4 text-lg", children: description })
31
29
  ] }),
@@ -1,8 +1,9 @@
1
- import { paddingDefaults, actionDefaults, backgroundColor, sectionStyle, padding, button } from "../../../puck-base/core/fields.js";
1
+ import { actionDefaults, button } from "../../../puck-base/core/fields.js";
2
2
  import { BeforeAfter } from "./before-after.js";
3
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
3
4
  const conf = {
4
5
  fields: {
5
- kicker: { type: "text", contentEditable: true },
6
+ eyebrow: { type: "text", contentEditable: true },
6
7
  heading: { type: "text", contentEditable: true },
7
8
  description: { type: "textarea", contentEditable: true },
8
9
  layout: {
@@ -34,12 +35,10 @@ const conf = {
34
35
  defaultItemProps: { text: "Benefit or new way of doing things" }
35
36
  },
36
37
  button,
37
- padding,
38
- sectionStyle,
39
- backgroundColor
38
+ styles: createStylesField()
40
39
  },
41
40
  defaultProps: {
42
- kicker: "Why choose us",
41
+ eyebrow: "Why choose us",
43
42
  heading: "The old way vs. the better way",
44
43
  description: "See exactly what changes when you switch to a smarter solution.",
45
44
  layout: "side-by-side",
@@ -59,13 +58,12 @@ const conf = {
59
58
  ],
60
59
  button: {
61
60
  label: "Get started free",
62
- url: "#",
63
61
  action: actionDefaults,
64
62
  variant: "default",
65
63
  size: "lg",
66
64
  icon: "arrow-right"
67
65
  },
68
- padding: paddingDefaults
66
+ styles: createStylesDefaults()
69
67
  },
70
68
  render: BeforeAfter
71
69
  };
@@ -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;