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
@@ -10,7 +10,7 @@ const CompoundArticleCard = ({
10
10
  className
11
11
  }) => {
12
12
  return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4", className), children: [
13
- /* @__PURE__ */ jsx("div", { className: "bg-muted rounded-md aspect-video mb-2 overflow-hidden", children: (image == null ? void 0 : image.src) ? /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt }) : null }),
13
+ image && /* @__PURE__ */ jsx("div", { className: "bg-muted mb-2 aspect-video overflow-hidden rounded-md [&>span]:h-full [&>span]:w-full", children: /* @__PURE__ */ jsx(CompoundImage, { src: image.src || "", alt: image.alt, className: "h-full w-full object-cover" }) }),
14
14
  !!heading || !!description || !!button ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
15
15
  heading ? /* @__PURE__ */ jsx("h3", { className: "text-xl tracking-tight", children: heading }) : null,
16
16
  description ? /* @__PURE__ */ jsx("p", { className: "text-muted-foreground max-w-xs text-base", children: description }) : null,
@@ -51,12 +51,13 @@ function CompoundButtonBase(props) {
51
51
  const href = props.action ? resolveActionUrl(props.action) : props.url;
52
52
  const isNewTab = ((_a = props.action) == null ? void 0 : _a.type) === "external" && ((_b = props.action) == null ? void 0 : _b.openInNewTab) === "true";
53
53
  const isDownload = ((_c = props.action) == null ? void 0 : _c.type) === "download";
54
+ const linkRel = href && !href.startsWith("/") ? "ugc nofollow noopener noreferrer" : void 0;
54
55
  return href ? /* @__PURE__ */ jsx(
55
56
  "a",
56
57
  {
57
58
  href,
58
59
  target: isNewTab ? "_blank" : void 0,
59
- rel: isNewTab ? "noopener noreferrer" : void 0,
60
+ rel: linkRel,
60
61
  download: isDownload || void 0,
61
62
  className: cn(
62
63
  buttonVariants({ variant: props.variant, size: props.size }),
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { CSSProperties, ReactNode } from "react";
2
2
  type PaddingLevel = "none" | "small" | "medium" | "large";
3
3
  export type SectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
4
4
  export type OverlayStyle = "none" | "gradient-top" | "gradient-bottom" | "noise";
@@ -14,5 +14,11 @@ export interface CompoundContainerProps {
14
14
  overlay?: OverlayStyle;
15
15
  className?: string;
16
16
  }
17
+ /**
18
+ * Section-scoped CSS variable presets.
19
+ * These override the root-level CSS variables so child components
20
+ * using `bg-background`, `text-foreground` etc. automatically adapt.
21
+ */
22
+ export declare const SECTION_STYLE_VARS: Record<string, CSSProperties>;
17
23
  export declare const CompoundContainer: ({ children, padding, sectionStyle, backgroundColor, backgroundImage, overlay, className, }: CompoundContainerProps) => import("react/jsx-runtime").JSX.Element;
18
24
  export {};
@@ -86,5 +86,6 @@ const CompoundContainer = ({
86
86
  ) });
87
87
  };
88
88
  export {
89
- CompoundContainer
89
+ CompoundContainer,
90
+ SECTION_STYLE_VARS
90
91
  };
@@ -9,9 +9,6 @@ export interface CompoundContentProps {
9
9
  buttons?: CompoundButtonProps[];
10
10
  alignContent?: "start" | "center" | "end";
11
11
  className?: string;
12
- }
13
- interface CompoundContentPropsWithSpacing extends CompoundContentProps {
14
12
  spacing?: "normal" | "tight";
15
13
  }
16
- export declare const CompoundContent: ({ badge, heading, description, features, buttons, alignContent, className, spacing, }: CompoundContentPropsWithSpacing) => import("react/jsx-runtime").JSX.Element;
17
- export {};
14
+ export declare const CompoundContent: ({ badge, heading, description, features, buttons, alignContent, className, spacing, }: CompoundContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -61,7 +61,7 @@ const CompoundContent = ({
61
61
  "h2",
62
62
  {
63
63
  className: cn(
64
- "text-3xl md:text-5xl tracking-tighter lg:max-w-xl font-regular",
64
+ "font-serif font-regular text-3xl tracking-tighter md:text-5xl lg:max-w-xl",
65
65
  textAlignClassnames
66
66
  ),
67
67
  children: heading
@@ -71,7 +71,7 @@ const CompoundContent = ({
71
71
  "p",
72
72
  {
73
73
  className: cn(
74
- "text-lg leading-relaxed tracking-tight text-muted-foreground",
74
+ "text-muted-foreground text-lg leading-relaxed tracking-tight",
75
75
  {
76
76
  "lg:max-w-sm": alignContent === "start" || alignContent === "end",
77
77
  "lg:max-w-xl": alignContent === "center"
@@ -86,7 +86,7 @@ const CompoundContent = ({
86
86
  DynamicIcon,
87
87
  {
88
88
  name: feature.icon,
89
- className: "w-6 h-6 shrink-0"
89
+ className: "h-6 w-6 shrink-0"
90
90
  }
91
91
  ) : null,
92
92
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
@@ -98,20 +98,18 @@ const CompoundContent = ({
98
98
  }
99
99
  )
100
100
  ] }) : null,
101
- Array.isArray(buttons) && buttons.length > 0 ? /* @__PURE__ */ jsx("div", { className: cn("gap-4 flex-wrap", rowPositionClassNames), children: buttons.map(
102
- (button, index) => button.label ? /* @__PURE__ */ jsx(
103
- CompoundButton,
104
- {
105
- label: button.label,
106
- url: button.url,
107
- action: button.action,
108
- variant: button.variant,
109
- size: button.size,
110
- icon: button.icon
111
- },
112
- index
113
- ) : null
114
- ) }) : null
101
+ Array.isArray(buttons) && buttons.length > 0 ? /* @__PURE__ */ jsx("div", { className: cn("flex-wrap gap-4", rowPositionClassNames), children: buttons.filter((button) => !!button.label).map((button, index) => /* @__PURE__ */ jsx(
102
+ CompoundButton,
103
+ {
104
+ label: button.label,
105
+ url: button.url,
106
+ action: button.action,
107
+ variant: button.variant,
108
+ size: button.size,
109
+ icon: button.icon
110
+ },
111
+ index
112
+ )) }) : null
115
113
  ]
116
114
  }
117
115
  );
@@ -247,75 +247,6 @@ export declare const images: {
247
247
  src: string;
248
248
  };
249
249
  };
250
- export declare const paddingLevel: {
251
- readonly type: "select";
252
- readonly options: readonly [{
253
- readonly label: "none";
254
- readonly value: "none";
255
- }, {
256
- readonly label: "small";
257
- readonly value: "small";
258
- }, {
259
- readonly label: "medium";
260
- readonly value: "medium";
261
- }, {
262
- readonly label: "large";
263
- readonly value: "large";
264
- }];
265
- readonly ai: {
266
- readonly instructions: "Never select none as an option";
267
- };
268
- };
269
- export declare const padding: {
270
- readonly type: "object";
271
- readonly objectFields: {
272
- readonly top: {
273
- readonly type: "select";
274
- readonly options: readonly [{
275
- readonly label: "none";
276
- readonly value: "none";
277
- }, {
278
- readonly label: "small";
279
- readonly value: "small";
280
- }, {
281
- readonly label: "medium";
282
- readonly value: "medium";
283
- }, {
284
- readonly label: "large";
285
- readonly value: "large";
286
- }];
287
- readonly ai: {
288
- readonly instructions: "Never select none as an option";
289
- };
290
- };
291
- readonly bottom: {
292
- readonly type: "select";
293
- readonly options: readonly [{
294
- readonly label: "none";
295
- readonly value: "none";
296
- }, {
297
- readonly label: "small";
298
- readonly value: "small";
299
- }, {
300
- readonly label: "medium";
301
- readonly value: "medium";
302
- }, {
303
- readonly label: "large";
304
- readonly value: "large";
305
- }];
306
- readonly ai: {
307
- readonly instructions: "Never select none as an option";
308
- };
309
- };
310
- };
311
- readonly ai: {
312
- readonly exclude: true;
313
- };
314
- };
315
- export declare const paddingDefaults: {
316
- readonly top: "medium";
317
- readonly bottom: "medium";
318
- };
319
250
  export declare const heading: {
320
251
  readonly type: "text";
321
252
  readonly contentEditable: true;
@@ -963,61 +894,4 @@ export declare const form: {
963
894
  };
964
895
  };
965
896
  export declare const formDefaults: CompoundFormProps;
966
- export declare const sectionStyle: {
967
- readonly type: "select";
968
- readonly label: "Section Style";
969
- readonly options: readonly [{
970
- readonly label: "Default";
971
- readonly value: "default";
972
- }, {
973
- readonly label: "Dark";
974
- readonly value: "dark";
975
- }, {
976
- readonly label: "Muted";
977
- readonly value: "muted";
978
- }, {
979
- readonly label: "Inverted";
980
- readonly value: "inverted";
981
- }, {
982
- readonly label: "Custom";
983
- readonly value: "custom";
984
- }];
985
- readonly ai: {
986
- readonly instructions: "Match the section's background tone: use 'dark' for dark/black backgrounds, 'muted' for gray/subtle backgrounds, 'inverted' for full contrast reversal. Default for standard light backgrounds.";
987
- };
988
- };
989
- export declare const sectionOverlay: {
990
- readonly type: "select";
991
- readonly label: "Overlay";
992
- readonly options: readonly [{
993
- readonly label: "None";
994
- readonly value: "none";
995
- }, {
996
- readonly label: "Gradient Top";
997
- readonly value: "gradient-top";
998
- }, {
999
- readonly label: "Gradient Bottom";
1000
- readonly value: "gradient-bottom";
1001
- }, {
1002
- readonly label: "Noise";
1003
- readonly value: "noise";
1004
- }];
1005
- readonly ai: {
1006
- readonly instructions: "Use gradient overlays when the section has a background image that needs text contrast. Use noise for subtle texture.";
1007
- };
1008
- };
1009
- export declare const backgroundColor: {
1010
- readonly type: "text";
1011
- readonly label: "Background Color";
1012
- readonly ai: {
1013
- readonly instructions: "Set a custom background color in oklch format (e.g. 'oklch(0.2 0.05 260)'). Only use when sectionStyle is 'custom'.";
1014
- };
1015
- };
1016
- export declare const backgroundImage: {
1017
- readonly type: "text";
1018
- readonly label: "Background Image URL";
1019
- readonly ai: {
1020
- readonly instructions: "URL for a full-width background image behind the section.";
1021
- readonly stream: false;
1022
- };
1023
- };
897
+ export * from "./styles";
@@ -130,32 +130,6 @@ const images = {
130
130
  },
131
131
  defaultItemProps: image16x9Placeholder
132
132
  };
133
- const paddingLevel = {
134
- type: "select",
135
- options: [
136
- { label: "none", value: "none" },
137
- { label: "small", value: "small" },
138
- { label: "medium", value: "medium" },
139
- { label: "large", value: "large" }
140
- ],
141
- ai: {
142
- instructions: "Never select none as an option"
143
- }
144
- };
145
- const padding = {
146
- type: "object",
147
- objectFields: {
148
- top: paddingLevel,
149
- bottom: paddingLevel
150
- },
151
- ai: {
152
- exclude: true
153
- }
154
- };
155
- const paddingDefaults = {
156
- top: "medium",
157
- bottom: "medium"
158
- };
159
133
  const heading = {
160
134
  type: "text",
161
135
  contentEditable: true
@@ -273,53 +247,9 @@ const formDefaults = {
273
247
  icon: "move-right"
274
248
  }
275
249
  };
276
- const sectionStyle = {
277
- type: "select",
278
- label: "Section Style",
279
- options: [
280
- { label: "Default", value: "default" },
281
- { label: "Dark", value: "dark" },
282
- { label: "Muted", value: "muted" },
283
- { label: "Inverted", value: "inverted" },
284
- { label: "Custom", value: "custom" }
285
- ],
286
- ai: {
287
- instructions: "Match the section's background tone: use 'dark' for dark/black backgrounds, 'muted' for gray/subtle backgrounds, 'inverted' for full contrast reversal. Default for standard light backgrounds."
288
- }
289
- };
290
- const sectionOverlay = {
291
- type: "select",
292
- label: "Overlay",
293
- options: [
294
- { label: "None", value: "none" },
295
- { label: "Gradient Top", value: "gradient-top" },
296
- { label: "Gradient Bottom", value: "gradient-bottom" },
297
- { label: "Noise", value: "noise" }
298
- ],
299
- ai: {
300
- instructions: "Use gradient overlays when the section has a background image that needs text contrast. Use noise for subtle texture."
301
- }
302
- };
303
- const backgroundColor = {
304
- type: "text",
305
- label: "Background Color",
306
- ai: {
307
- instructions: "Set a custom background color in oklch format (e.g. 'oklch(0.2 0.05 260)'). Only use when sectionStyle is 'custom'."
308
- }
309
- };
310
- const backgroundImage = {
311
- type: "text",
312
- label: "Background Image URL",
313
- ai: {
314
- instructions: "URL for a full-width background image behind the section.",
315
- stream: false
316
- }
317
- };
318
250
  export {
319
251
  action,
320
252
  actionDefaults,
321
- backgroundColor,
322
- backgroundImage,
323
253
  badge,
324
254
  button,
325
255
  buttons,
@@ -340,10 +270,5 @@ export {
340
270
  image16x9Placeholder,
341
271
  image1x1Placeholder,
342
272
  image9x16Placeholder,
343
- images,
344
- padding,
345
- paddingDefaults,
346
- paddingLevel,
347
- sectionOverlay,
348
- sectionStyle
273
+ images
349
274
  };