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,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { memo, useCallback, useState, useRef, useMemo, useEffect } from "react";
2
+ import { memo, useState, useRef, useMemo, useCallback, useEffect } from "react";
3
3
  import { Input } from "../../shadcn/input.js";
4
4
  import { Textarea } from "../../shadcn/textarea.js";
5
5
  import { Label } from "../../shadcn/label.js";
@@ -8,8 +8,7 @@ import { Button } from "../../shadcn/button.js";
8
8
  import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from "../../shadcn/select.js";
9
9
  import { Popover, PopoverTrigger, PopoverContent } from "../../shadcn/popover.js";
10
10
  import { ToggleGroup, ToggleGroupItem } from "../../shadcn/toggle-group.js";
11
- import { LinkIcon, XIcon, ClipboardIcon, GlobeIcon, ChevronDownIcon, CheckIcon } from "lucide-react";
12
- import { useEditorContext } from "../editor-context.js";
11
+ import { ChevronDownIcon, CheckIcon } from "lucide-react";
13
12
  const LARGE_SELECT_THRESHOLD = 200;
14
13
  const VIRTUAL_ITEM_HEIGHT = 32;
15
14
  const VIRTUAL_VIEWPORT_HEIGHT = 256;
@@ -213,81 +212,6 @@ const VirtualizedSelectField = memo(function VirtualizedSelectField2({
213
212
  ] })
214
213
  ] });
215
214
  });
216
- const UrlField = memo(function UrlField2({
217
- label,
218
- value,
219
- onChange,
220
- sitePages
221
- }) {
222
- const currentValue = value ?? "";
223
- const selectedSlug = currentValue.startsWith("/") ? currentValue.slice(1) : null;
224
- const handlePaste = useCallback(async () => {
225
- try {
226
- const text = await navigator.clipboard.readText();
227
- if (text) onChange(text.trim());
228
- } catch {
229
- }
230
- }, [onChange]);
231
- return /* @__PURE__ */ jsxs("div", { className: "mb-4 space-y-3", children: [
232
- /* @__PURE__ */ jsx(Label, { children: label }),
233
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
234
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-2 rounded-lg border px-3 py-2", children: [
235
- /* @__PURE__ */ jsx(LinkIcon, { className: "text-muted-foreground size-4 shrink-0" }),
236
- /* @__PURE__ */ jsx(
237
- "input",
238
- {
239
- className: "w-full bg-transparent text-sm outline-none placeholder:text-muted-foreground",
240
- placeholder: "https:// or /page-slug",
241
- value: currentValue,
242
- onChange: (e) => onChange(e.target.value)
243
- }
244
- ),
245
- currentValue && /* @__PURE__ */ jsx(
246
- "button",
247
- {
248
- type: "button",
249
- className: "text-muted-foreground hover:text-foreground shrink-0",
250
- onClick: () => onChange(""),
251
- children: /* @__PURE__ */ jsx(XIcon, { className: "size-3.5" })
252
- }
253
- )
254
- ] }),
255
- /* @__PURE__ */ jsxs(
256
- Button,
257
- {
258
- type: "button",
259
- variant: "outline",
260
- size: "sm",
261
- className: "shrink-0 gap-1.5",
262
- onClick: handlePaste,
263
- children: [
264
- /* @__PURE__ */ jsx(ClipboardIcon, { className: "size-3.5" }),
265
- "Paste"
266
- ]
267
- }
268
- )
269
- ] }),
270
- sitePages.length > 0 && /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
271
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs font-medium", children: "Site pages" }),
272
- /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: sitePages.map((page) => {
273
- const isSelected = selectedSlug === page.slug;
274
- return /* @__PURE__ */ jsxs(
275
- "button",
276
- {
277
- type: "button",
278
- className: `inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-xs font-medium transition-colors ${isSelected ? "border-primary bg-primary text-primary-foreground" : "border-border bg-background text-foreground hover:bg-accent"}`,
279
- onClick: () => onChange(isSelected ? "" : `${page.slug}`),
280
- children: [
281
- /* @__PURE__ */ jsx(GlobeIcon, { className: "size-3" }),
282
- page.label
283
- ]
284
- },
285
- page.slug
286
- );
287
- }) })
288
- ] })
289
- ] });
290
- });
291
215
  const AutoField = memo(function AutoField2({
292
216
  field,
293
217
  name,
@@ -296,18 +220,6 @@ const AutoField = memo(function AutoField2({
296
220
  }) {
297
221
  var _a, _b;
298
222
  const label = field.label || name;
299
- const { sitePages } = useEditorContext();
300
- if (name === "url" && field.type === "text") {
301
- return /* @__PURE__ */ jsx(
302
- UrlField,
303
- {
304
- label,
305
- value,
306
- onChange,
307
- sitePages: sitePages ?? []
308
- }
309
- );
310
- }
311
223
  switch (field.type) {
312
224
  case "text":
313
225
  return /* @__PURE__ */ jsxs("div", { className: "mb-4 space-y-1.5", children: [
@@ -19,7 +19,6 @@ const CompoundForm = (props) => {
19
19
  CompoundButton,
20
20
  {
21
21
  label: props.button.label,
22
- url: props.button.url,
23
22
  variant: props.button.variant,
24
23
  size: props.button.size,
25
24
  icon: props.button.icon,
@@ -8,7 +8,7 @@ export { CompoundForm, type CompoundFormProps, formMethods, type FormMethods } f
8
8
  export { CompoundImage, type CompoundImageProps } from "./image";
9
9
  export { CompoundArticleCard, type CompoundArticleCardProps } from "./article-card";
10
10
  export { ImageUploadField } from "./image-upload-field";
11
- export { ActionField } from "./action-field";
11
+ export { ActionField } from "./fields/action-field";
12
12
  export { ErrorBoundary } from "./error-boundary";
13
13
  export { GradientText, type GradientTextProps } from "./gradient-text";
14
14
  export { InlineEditable } from "./inline-editable";
@@ -0,0 +1,18 @@
1
+ import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu";
2
+ declare function NavigationMenu({ align, portalContainer, className, children, onValueChange, ...props }: NavigationMenuPrimitive.Root.Props & Pick<NavigationMenuPrimitive.Positioner.Props, "align"> & {
3
+ portalContainer?: HTMLElement | null | React.RefObject<HTMLElement | null>;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ declare function NavigationMenuList({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.List>): import("react/jsx-runtime").JSX.Element;
6
+ declare function NavigationMenuItem({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
7
+ declare const navigationMenuTriggerStyle: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
8
+ declare function NavigationMenuTrigger({ className, children, ...props }: NavigationMenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
9
+ declare function NavigationMenuContent({ className, ...props }: NavigationMenuPrimitive.Content.Props): import("react/jsx-runtime").JSX.Element;
10
+ declare function NavigationMenuPositioner({ className, side, sideOffset, align, alignOffset, portalContainer, ...props }: NavigationMenuPrimitive.Positioner.Props & {
11
+ portalContainer?: HTMLElement | null | React.RefObject<HTMLElement | null>;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ declare function NavigationMenuLink({ className, asChild, children, active, ...props }: NavigationMenuPrimitive.Link.Props & {
14
+ asChild?: boolean;
15
+ active?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element;
17
+ declare function NavigationMenuIndicator({ className, ...props }: React.ComponentPropsWithRef<typeof NavigationMenuPrimitive.Icon>): import("react/jsx-runtime").JSX.Element;
18
+ export { NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, navigationMenuTriggerStyle, NavigationMenuPositioner, };
@@ -0,0 +1,202 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useRef, useState, useCallback } from "react";
3
+ import { NavigationMenu as NavigationMenu$1 } from "@base-ui/react/navigation-menu";
4
+ import { cva } from "class-variance-authority";
5
+ import { cn } from "../../utils/css-utils.js";
6
+ import { ChevronDownIcon } from "lucide-react";
7
+ import { useEditorContext } from "./editor-context.js";
8
+ function NavigationMenu({
9
+ align = "start",
10
+ portalContainer,
11
+ className,
12
+ children,
13
+ onValueChange,
14
+ ...props
15
+ }) {
16
+ const { isEditor } = useEditorContext();
17
+ const rootRef = useRef(null);
18
+ const [value, setValue] = useState(props.defaultValue ?? null);
19
+ const handleValueChange = useCallback(
20
+ (newValue, details) => {
21
+ if (newValue === null && details.reason === "focus-out") return;
22
+ setValue(newValue);
23
+ onValueChange == null ? void 0 : onValueChange(newValue, details);
24
+ },
25
+ [onValueChange]
26
+ );
27
+ if (!isEditor) {
28
+ return /* @__PURE__ */ jsxs(
29
+ NavigationMenu$1.Root,
30
+ {
31
+ ref: rootRef,
32
+ "data-slot": "navigation-menu",
33
+ className: cn(
34
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
35
+ className
36
+ ),
37
+ onValueChange,
38
+ ...props,
39
+ children: [
40
+ children,
41
+ /* @__PURE__ */ jsx(NavigationMenuPositioner, { align, portalContainer: portalContainer ?? rootRef })
42
+ ]
43
+ }
44
+ );
45
+ }
46
+ return /* @__PURE__ */ jsxs(
47
+ NavigationMenu$1.Root,
48
+ {
49
+ ref: rootRef,
50
+ "data-slot": "navigation-menu",
51
+ className: cn(
52
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
53
+ className
54
+ ),
55
+ value,
56
+ onValueChange: handleValueChange,
57
+ ...props,
58
+ children: [
59
+ children,
60
+ /* @__PURE__ */ jsx(NavigationMenuPositioner, { align, portalContainer: portalContainer ?? rootRef })
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ function NavigationMenuList({
66
+ className,
67
+ ...props
68
+ }) {
69
+ return /* @__PURE__ */ jsx(
70
+ NavigationMenu$1.List,
71
+ {
72
+ "data-slot": "navigation-menu-list",
73
+ className: cn(
74
+ "group flex flex-1 list-none items-center justify-center gap-1",
75
+ className
76
+ ),
77
+ ...props
78
+ }
79
+ );
80
+ }
81
+ function NavigationMenuItem({
82
+ className,
83
+ ...props
84
+ }) {
85
+ return /* @__PURE__ */ jsx(
86
+ NavigationMenu$1.Item,
87
+ {
88
+ "data-slot": "navigation-menu-item",
89
+ className: cn("relative", className),
90
+ ...props
91
+ }
92
+ );
93
+ }
94
+ const navigationMenuTriggerStyle = cva(
95
+ "group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-1.5 text-sm font-medium transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-accent/50 data-popup-open:hover:bg-accent data-open:bg-accent/50 data-open:hover:bg-accent data-open:focus:bg-accent"
96
+ );
97
+ function NavigationMenuTrigger({
98
+ className,
99
+ children,
100
+ ...props
101
+ }) {
102
+ return /* @__PURE__ */ jsxs(
103
+ NavigationMenu$1.Trigger,
104
+ {
105
+ "data-slot": "navigation-menu-trigger",
106
+ className: cn(navigationMenuTriggerStyle(), "group", className),
107
+ ...props,
108
+ children: [
109
+ children,
110
+ " ",
111
+ /* @__PURE__ */ jsx(ChevronDownIcon, { className: "relative top-px ml-1 size-3 transition duration-300 group-data-popup-open/navigation-menu-trigger:rotate-180 group-data-open/navigation-menu-trigger:rotate-180", "aria-hidden": "true" })
112
+ ]
113
+ }
114
+ );
115
+ }
116
+ function NavigationMenuContent({
117
+ className,
118
+ ...props
119
+ }) {
120
+ return /* @__PURE__ */ jsx(
121
+ NavigationMenu$1.Content,
122
+ {
123
+ "data-slot": "navigation-menu-content",
124
+ className: cn(
125
+ "data-ending-style:data-activation-direction=left:translate-x-[50%] data-ending-style:data-activation-direction=right:translate-x-[-50%] data-starting-style:data-activation-direction=left:translate-x-[-50%] data-starting-style:data-activation-direction=right:translate-x-[50%] h-full w-auto p-2 pr-2.5 transition-[opacity,transform,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-lg group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:ring-foreground/10 group-data-[viewport=false]/navigation-menu:duration-300 data-ending-style:opacity-0 data-starting-style:opacity-0 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95",
126
+ className
127
+ ),
128
+ ...props
129
+ }
130
+ );
131
+ }
132
+ function NavigationMenuPositioner({
133
+ className,
134
+ side = "bottom",
135
+ sideOffset = 8,
136
+ align = "start",
137
+ alignOffset = 0,
138
+ portalContainer,
139
+ ...props
140
+ }) {
141
+ return /* @__PURE__ */ jsx(NavigationMenu$1.Portal, { container: portalContainer, children: /* @__PURE__ */ jsx(
142
+ NavigationMenu$1.Positioner,
143
+ {
144
+ side,
145
+ sideOffset,
146
+ align,
147
+ alignOffset,
148
+ className: cn(
149
+ "isolate z-50 h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-[top,left,right,bottom] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] data-instant:transition-none data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0",
150
+ className
151
+ ),
152
+ ...props,
153
+ children: /* @__PURE__ */ jsx(NavigationMenu$1.Popup, { className: "data-[ending-style]:easing-[ease] xs:w-(--popup-width) relative h-(--popup-height) w-(--popup-width) origin-(--transform-origin) rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 transition-[opacity,transform,width,height,scale,translate] duration-[0.35s] ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0", children: /* @__PURE__ */ jsx(NavigationMenu$1.Viewport, { className: "relative size-full overflow-hidden" }) })
154
+ }
155
+ ) });
156
+ }
157
+ function NavigationMenuLink({
158
+ className,
159
+ asChild,
160
+ children,
161
+ active,
162
+ ...props
163
+ }) {
164
+ if (asChild) {
165
+ return /* @__PURE__ */ jsx(
166
+ NavigationMenu$1.Link,
167
+ {
168
+ "data-slot": "navigation-menu-link",
169
+ "data-active": active || void 0,
170
+ className: cn(
171
+ "flex items-center gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-accent/50 data-active:hover:bg-accent data-active:focus:bg-accent [&_svg:not([class*='size-'])]:size-4",
172
+ className
173
+ ),
174
+ render: children,
175
+ ...props
176
+ }
177
+ );
178
+ }
179
+ return /* @__PURE__ */ jsx(
180
+ NavigationMenu$1.Link,
181
+ {
182
+ "data-slot": "navigation-menu-link",
183
+ "data-active": active || void 0,
184
+ className: cn(
185
+ "flex items-center gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-accent/50 data-active:hover:bg-accent data-active:focus:bg-accent [&_svg:not([class*='size-'])]:size-4",
186
+ className
187
+ ),
188
+ ...props,
189
+ children
190
+ }
191
+ );
192
+ }
193
+ export {
194
+ NavigationMenu,
195
+ NavigationMenuContent,
196
+ NavigationMenuItem,
197
+ NavigationMenuLink,
198
+ NavigationMenuList,
199
+ NavigationMenuPositioner,
200
+ NavigationMenuTrigger,
201
+ navigationMenuTriggerStyle
202
+ };
@@ -1,10 +1,12 @@
1
1
  export interface AnnouncementBannerProps {
2
- text: string;
3
- linkText?: string;
2
+ items?: string[];
3
+ linkLabel?: string;
4
4
  linkUrl?: string;
5
- backgroundColor?: string;
6
- textColor?: string;
7
- align?: "left" | "center" | "right";
8
- size?: "small" | "default";
5
+ styles?: {
6
+ backgroundColor?: string;
7
+ textColor?: string;
8
+ align?: "left" | "center" | "right";
9
+ size?: "small" | "default";
10
+ };
9
11
  }
10
- export declare const AnnouncementBanner: ({ text, linkText, linkUrl, backgroundColor, textColor, align, size, }: AnnouncementBannerProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const AnnouncementBanner: ({ items, linkLabel, linkUrl, styles, }: AnnouncementBannerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,17 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "../../../../utils/css-utils.js";
3
3
  const AnnouncementBanner = ({
4
- text,
5
- linkText,
4
+ items = [],
5
+ linkLabel,
6
6
  linkUrl,
7
- backgroundColor = "var(--primary)",
8
- textColor,
9
- align = "center",
10
- size = "default"
7
+ styles
11
8
  }) => {
9
+ const normalized = items.map((v) => typeof v === "string" ? v : (v == null ? void 0 : v.text) ?? "");
10
+ const text = normalized[0] ?? "";
11
+ const backgroundColor = (styles == null ? void 0 : styles.backgroundColor) ?? "var(--primary)";
12
+ const textColor = styles == null ? void 0 : styles.textColor;
13
+ const align = (styles == null ? void 0 : styles.align) ?? "center";
14
+ const size = (styles == null ? void 0 : styles.size) ?? "default";
12
15
  const style = {
13
16
  ...backgroundColor ? { backgroundColor } : {},
14
17
  ...textColor ? { color: textColor } : {}
@@ -32,13 +35,13 @@ const AnnouncementBanner = ({
32
35
  }),
33
36
  children: [
34
37
  /* @__PURE__ */ jsx("span", { children: text }),
35
- linkText && linkUrl ? /* @__PURE__ */ jsxs(
38
+ linkLabel && linkUrl ? /* @__PURE__ */ jsxs(
36
39
  "a",
37
40
  {
38
41
  href: linkUrl,
39
42
  className: "underline underline-offset-2 opacity-90 hover:opacity-100",
40
43
  children: [
41
- linkText,
44
+ linkLabel,
42
45
  " →"
43
46
  ]
44
47
  }
@@ -1,47 +1,29 @@
1
1
  import { AnnouncementBanner } from "./announcement-banner.js";
2
+ import { bannerStylesDefaults, bannerStylesField } from "../../../puck-base/core/styles.js";
2
3
  const conf = {
3
4
  fields: {
4
- text: { type: "text", contentEditable: true },
5
- linkText: { type: "text" },
6
- linkUrl: { type: "text" },
7
- backgroundColor: {
8
- type: "text",
9
- label: "Background Color",
10
- ai: {
11
- instructions: "Use the exact background color from the original banner. Common examples: yellow (#FACC15), blue (#3B82F6), green (#22C55E), red (#EF4444), or any brand color. Use hex, rgb, or oklch format."
12
- }
13
- },
14
- textColor: {
15
- type: "text",
16
- label: "Text Color",
17
- ai: {
18
- instructions: "Set text color to contrast with the background. Usually black (#000) for light backgrounds or white (#fff) for dark backgrounds."
19
- }
20
- },
21
- align: {
22
- type: "radio",
23
- options: [
24
- { label: "Left", value: "left" },
25
- { label: "Center", value: "center" },
26
- { label: "Right", value: "right" }
27
- ]
5
+ items: {
6
+ type: "array",
7
+ max: 3,
8
+ getItemSummary: (item, i = 0) => (typeof item === "string" ? item : item == null ? void 0 : item.text) || `Item ${i + 1}`,
9
+ arrayFields: { text: { type: "text", contentEditable: true } },
10
+ defaultItemProps: { text: "Text" }
28
11
  },
29
- size: {
30
- type: "radio",
31
- options: [
32
- { label: "Small", value: "small" },
33
- { label: "Default", value: "default" }
34
- ]
35
- }
12
+ linkLabel: { type: "text" },
13
+ linkUrl: { type: "text" },
14
+ styles: bannerStylesField
36
15
  },
37
16
  defaultProps: {
38
- text: "New: Check out our latest update",
39
- linkText: "Learn more",
17
+ items: [{ text: "New: Check out our latest update" }],
18
+ linkLabel: "Learn more",
40
19
  linkUrl: "#",
41
- backgroundColor: "#FACC15",
42
- textColor: "#000000",
43
- align: "center",
44
- size: "default"
20
+ styles: {
21
+ ...bannerStylesDefaults,
22
+ backgroundColor: "#FACC15",
23
+ textColor: "#000000",
24
+ align: "center",
25
+ size: "default"
26
+ }
45
27
  },
46
28
  render: AnnouncementBanner
47
29
  };
@@ -1,33 +1,33 @@
1
- import { paddingDefaults, backgroundColor, sectionStyle, padding } from "../../../puck-base/core/fields.js";
2
1
  import { Marquee } from "./marquee.js";
2
+ import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
3
+ const marqueeStylesField = createStylesField({
4
+ speed: {
5
+ type: "radio",
6
+ options: [
7
+ { label: "Slow", value: "slow" },
8
+ { label: "Normal", value: "normal" },
9
+ { label: "Fast", value: "fast" }
10
+ ]
11
+ },
12
+ tone: {
13
+ type: "radio",
14
+ options: [
15
+ { label: "Default", value: "default" },
16
+ { label: "Outline", value: "outline" },
17
+ { label: "Muted", value: "muted" }
18
+ ]
19
+ }
20
+ });
3
21
  const conf = {
4
22
  fields: {
5
23
  items: {
6
24
  type: "array",
7
25
  max: 10,
8
- getItemSummary: (item, i = 0) => item.text || `Item ${i + 1}`,
26
+ getItemSummary: (item, i = 0) => (typeof item === "string" ? item : item == null ? void 0 : item.text) || `Item ${i + 1}`,
9
27
  arrayFields: { text: { type: "text" } },
10
28
  defaultItemProps: { text: "Text" }
11
29
  },
12
- speed: {
13
- type: "radio",
14
- options: [
15
- { label: "Slow", value: "slow" },
16
- { label: "Normal", value: "normal" },
17
- { label: "Fast", value: "fast" }
18
- ]
19
- },
20
- variant: {
21
- type: "radio",
22
- options: [
23
- { label: "Default", value: "default" },
24
- { label: "Outline", value: "outline" },
25
- { label: "Muted", value: "muted" }
26
- ]
27
- },
28
- padding,
29
- sectionStyle,
30
- backgroundColor
30
+ styles: marqueeStylesField
31
31
  },
32
32
  defaultProps: {
33
33
  items: [
@@ -36,9 +36,11 @@ const conf = {
36
36
  { text: "Performance" },
37
37
  { text: "Quality" }
38
38
  ],
39
- speed: "normal",
40
- variant: "default",
41
- padding: paddingDefaults
39
+ styles: {
40
+ ...createStylesDefaults(),
41
+ speed: "normal",
42
+ tone: "default"
43
+ }
42
44
  },
43
45
  render: Marquee
44
46
  };
@@ -1,12 +1,12 @@
1
1
  import { CompoundContainerProps } from "@/components/puck-base/container";
2
2
  export interface MarqueeProps {
3
- padding?: CompoundContainerProps["padding"];
4
- sectionStyle?: CompoundContainerProps["sectionStyle"];
5
- backgroundColor?: string;
6
- items?: Array<{
7
- text: string;
8
- }>;
9
- speed?: "slow" | "normal" | "fast";
10
- variant?: "default" | "outline" | "muted";
3
+ items?: string[];
4
+ styles?: {
5
+ padding?: CompoundContainerProps["padding"];
6
+ sectionStyle?: CompoundContainerProps["sectionStyle"];
7
+ backgroundColor?: string;
8
+ speed?: "slow" | "normal" | "fast";
9
+ tone?: "default" | "outline" | "muted";
10
+ };
11
11
  }
12
- export declare const Marquee: ({ padding, sectionStyle, backgroundColor, items, speed, variant, }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Marquee: ({ items, styles, }: MarqueeProps) => import("react/jsx-runtime").JSX.Element;
@@ -6,32 +6,39 @@ const SPEED_DURATION = {
6
6
  fast: "15s"
7
7
  };
8
8
  const Marquee = ({
9
- padding,
10
- sectionStyle,
11
- backgroundColor,
12
9
  items = [],
13
- speed = "normal",
14
- variant = "default"
10
+ styles
15
11
  }) => {
16
- const textClass = variant === "outline" ? "text-transparent [-webkit-text-stroke:1px_currentColor]" : variant === "muted" ? "text-muted-foreground/30" : "text-foreground";
17
- return /* @__PURE__ */ jsx(CompoundContainer, { padding, sectionStyle, backgroundColor, children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
18
- "div",
12
+ const normalized = items.map((v) => typeof v === "string" ? v : (v == null ? void 0 : v.text) ?? "");
13
+ const speed = (styles == null ? void 0 : styles.speed) ?? "normal";
14
+ const tone = (styles == null ? void 0 : styles.tone) ?? "default";
15
+ const textClass = tone === "outline" ? "text-transparent [-webkit-text-stroke:1px_currentColor]" : tone === "muted" ? "text-muted-foreground/30" : "text-foreground";
16
+ return /* @__PURE__ */ jsx(
17
+ CompoundContainer,
19
18
  {
20
- className: "flex w-max animate-[marquee_var(--marquee-speed)_linear_infinite] items-center gap-8",
21
- style: { "--marquee-speed": SPEED_DURATION[speed] },
22
- children: [...items, ...items].map((item, i) => /* @__PURE__ */ jsxs(
23
- "span",
19
+ padding: styles == null ? void 0 : styles.padding,
20
+ sectionStyle: styles == null ? void 0 : styles.sectionStyle,
21
+ backgroundColor: styles == null ? void 0 : styles.backgroundColor,
22
+ children: /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
23
+ "div",
24
24
  {
25
- className: `font-serif text-4xl font-bold whitespace-nowrap md:text-6xl ${textClass}`,
26
- children: [
27
- item.text,
28
- /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/30 mx-4", children: "•" })
29
- ]
30
- },
31
- i
32
- ))
25
+ className: "flex w-max animate-[marquee_var(--marquee-speed)_linear_infinite] items-center gap-8",
26
+ style: { "--marquee-speed": SPEED_DURATION[speed] },
27
+ children: [...normalized, ...normalized].map((item, i) => /* @__PURE__ */ jsxs(
28
+ "span",
29
+ {
30
+ className: `font-serif text-4xl font-bold whitespace-nowrap md:text-6xl ${textClass}`,
31
+ children: [
32
+ item,
33
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground/30 mx-4", children: "•" })
34
+ ]
35
+ },
36
+ i
37
+ ))
38
+ }
39
+ ) })
33
40
  }
34
- ) }) });
41
+ );
35
42
  };
36
43
  export {
37
44
  Marquee