dune-react 0.0.21 → 0.0.22

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 (180) hide show
  1. package/dist/components/index.d.ts +1 -0
  2. package/dist/components/puck-base/button.d.ts +1 -1
  3. package/dist/components/puck-base/button.js +5 -6
  4. package/dist/components/puck-base/card.d.ts +1 -1
  5. package/dist/components/puck-base/container.js +1 -1
  6. package/dist/components/puck-base/content.d.ts +1 -1
  7. package/dist/components/puck-base/image.js +16 -16
  8. package/dist/components/puck-base/index.d.ts +1 -13
  9. package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
  10. package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
  11. package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
  12. package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
  13. package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
  14. package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
  15. package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
  16. package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
  17. package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
  18. package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
  19. package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
  20. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +88 -59
  21. package/dist/components/puck-block/cta-sections/props.js +46 -0
  22. package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
  23. package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
  24. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
  25. package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
  26. package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
  27. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
  28. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
  29. package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
  30. package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
  31. package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
  32. package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
  33. package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
  34. package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
  35. package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
  36. package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
  37. package/dist/components/puck-block/feature-sections/tab-feature/component.js +77 -61
  38. package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
  39. package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
  40. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +1 -1
  41. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +1 -1
  42. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +1 -1
  43. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +1 -1
  44. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +1 -1
  45. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
  46. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
  47. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
  48. package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
  49. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +67 -64
  50. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
  51. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
  52. package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
  53. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +118 -17
  54. package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
  55. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +161 -22
  56. package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
  57. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +142 -19
  58. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
  59. package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
  60. package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
  61. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
  62. package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
  63. package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
  64. package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
  65. package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
  66. package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
  67. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +4 -2
  68. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
  69. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
  70. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
  71. package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
  72. package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
  73. package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
  74. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
  75. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
  76. package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
  77. package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
  78. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
  79. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
  80. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +91 -44
  81. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
  82. package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
  83. package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
  84. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
  85. package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
  86. package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
  87. package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
  88. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +93 -43
  89. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
  90. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +27 -4
  91. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
  92. package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
  93. package/dist/components/puck-block/index.d.ts +2 -0
  94. package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
  95. package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
  96. package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
  97. package/dist/components/puck-block/location-sections/props.d.ts +1 -1
  98. package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
  99. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
  100. package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
  101. package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
  102. package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
  103. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +36 -23
  104. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
  105. package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
  106. package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
  107. package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
  108. package/dist/components/puck-block/registry.generated.d.ts +13141 -0
  109. package/dist/components/puck-block/registry.generated.js +558 -0
  110. package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
  111. package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
  112. package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
  113. package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
  114. package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
  115. package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
  116. package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
  117. package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
  118. package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
  119. package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
  120. package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
  121. package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
  122. package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
  123. package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
  124. package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
  125. package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
  126. package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
  127. package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
  128. package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
  129. package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
  130. package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
  131. package/dist/components/puck-core/core/props/content.js +41 -1
  132. package/dist/components/puck-core/core/props/form.js +76 -0
  133. package/dist/components/puck-core/core/props/index.js +34 -0
  134. package/dist/components/puck-core/core/props/interactive.js +17 -0
  135. package/dist/components/puck-core/core/props/media.js +8 -4
  136. package/dist/components/puck-core/core/styles.d.ts +1 -1
  137. package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
  138. package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
  139. package/dist/components/puck-core/fields/action-field.js +1 -1
  140. package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
  141. package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
  142. package/dist/components/puck-core/index.d.ts +1 -0
  143. package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
  144. package/dist/index.js +121 -104
  145. package/package.json +1 -1
  146. package/dist/components/puck-base/core/fields.d.ts +0 -827
  147. package/dist/components/puck-base/core/fields.js +0 -267
  148. package/dist/components/puck-base/core/hooks.d.ts +0 -19
  149. package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
  150. package/dist/components/puck-base/core/icon-catalog.js +0 -193
  151. package/dist/components/puck-base/core/styles.d.ts +0 -1942
  152. package/dist/components/puck-base/core/types.d.ts +0 -20
  153. package/dist/components/puck-base/core/types.js +0 -26
  154. package/dist/components/puck-base/core/utils.d.ts +0 -5
  155. package/dist/components/puck-base/core/with-editable.d.ts +0 -16
  156. package/dist/components/puck-base/error-boundary.d.ts +0 -4
  157. package/dist/components/puck-base/fields/action-field.d.ts +0 -30
  158. package/dist/components/puck-base/fields/action-field.js +0 -265
  159. package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
  160. package/dist/components/puck-base/fields/color-field.d.ts +0 -6
  161. package/dist/components/puck-base/fields/index.d.ts +0 -8
  162. package/dist/components/puck-base/fields/location-field.d.ts +0 -44
  163. package/dist/components/puck-base/fields/object-field.d.ts +0 -8
  164. package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
  165. package/dist/components/puck-base/fields/types.d.ts +0 -29
  166. package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
  167. package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
  168. package/dist/components/puck-base/icon-picker-field.js +0 -153
  169. package/dist/components/puck-base/image-upload-field.d.ts +0 -7
  170. package/dist/components/puck-base/inline-editable.d.ts +0 -14
  171. package/dist/components/puck-base/use-upload.d.ts +0 -42
  172. /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
  173. /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
  174. /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
  175. /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
  176. /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
  177. /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
  178. /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
  179. /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
  180. /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
@@ -10,11 +10,23 @@ import Autoplay from "embla-carousel-autoplay";
10
10
  const CarouselHero = (props) => {
11
11
  const [api, setApi] = useState();
12
12
  const [current, setCurrent] = useState(0);
13
- const { heading, description, buttons, images, carouselHeading, carouselDescription, styles } = {
13
+ const {
14
+ heading,
15
+ description,
16
+ buttons,
17
+ images,
18
+ carouselHeading,
19
+ carouselDescription,
20
+ styles
21
+ } = {
14
22
  ...CarouselHeroDefaults,
15
23
  ...props
16
24
  };
17
- const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
25
+ const {
26
+ className: sectionClassName,
27
+ style: sectionStyle,
28
+ css
29
+ } = styles ?? {};
18
30
  useEffect(() => {
19
31
  if (!api) return;
20
32
  setCurrent(api.selectedScrollSnap() + 1);
@@ -25,16 +37,29 @@ const CarouselHero = (props) => {
25
37
  return /* @__PURE__ */ jsxs(
26
38
  SectionWrapper,
27
39
  {
28
- className: cn("grid grid-cols-1 items-center gap-y-16 overflow-hidden pt-16 sm:overflow-auto md:pt-24 lg:grid-cols-[50%_50%] lg:gap-y-0 lg:pt-0", sectionClassName),
40
+ className: cn(
41
+ "grid grid-cols-1 items-center gap-y-16 overflow-hidden pt-16 sm:overflow-auto md:pt-24 lg:grid-cols-[50%_50%] lg:gap-y-0 lg:pt-0",
42
+ sectionClassName
43
+ ),
29
44
  style: sectionStyle,
30
45
  css,
31
46
  children: [
32
47
  /* @__PURE__ */ jsxs("div", { className: "mx-[5%] max-w-md justify-self-start lg:ml-[5vw] lg:mr-20 lg:justify-self-end", children: [
33
48
  /* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
34
49
  /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
35
- /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
50
+ /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
51
+ CompoundButton,
52
+ {
53
+ label: button.label,
54
+ variant: button.variant,
55
+ size: button.size,
56
+ action: button.action,
57
+ icon: button.icon
58
+ },
59
+ index
60
+ )) })
36
61
  ] }),
37
- /* @__PURE__ */ jsx("div", { className: "relative clear-both h-[300px] max-h-[60rem] min-h-screen w-full bg-[#ddd] text-center", children: /* @__PURE__ */ jsxs(
62
+ /* @__PURE__ */ jsx("div", { className: "relative clear-both h-[300px] max-h-[60rem] min-h-screen w-full text-center", children: /* @__PURE__ */ jsxs(
38
63
  Carousel,
39
64
  {
40
65
  opts: { loop: true },
@@ -43,7 +68,14 @@ const CarouselHero = (props) => {
43
68
  className: "relative left-0 right-0 z-10 block h-full overflow-hidden whitespace-nowrap pl-4",
44
69
  children: [
45
70
  /* @__PURE__ */ jsx(CarouselContent, { children: images.map((image, index) => /* @__PURE__ */ jsx(CarouselItem, { className: "pl-0", children: /* @__PURE__ */ jsx("div", { className: "relative inline-block size-full whitespace-normal text-left align-top", children: /* @__PURE__ */ jsxs("div", { className: "flex h-screen flex-col", children: [
46
- /* @__PURE__ */ jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx(CompoundImage, { className: "absolute size-full object-cover", src: image.src, alt: image.alt }) }),
71
+ /* @__PURE__ */ jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx(
72
+ CompoundImage,
73
+ {
74
+ className: "absolute size-full object-cover",
75
+ src: image.src,
76
+ alt: image.alt
77
+ }
78
+ ) }),
47
79
  /* @__PURE__ */ jsx("div", { className: "relative bg-background-secondary px-6 pb-32 pt-6 sm:px-8 sm:pt-8", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg", children: [
48
80
  /* @__PURE__ */ jsx("h6", { className: "mb-1 text-md font-bold leading-[1.4] md:text-xl", children: carouselHeading }),
49
81
  /* @__PURE__ */ jsx("p", { children: carouselDescription })
@@ -76,9 +108,18 @@ const CarouselHeroDefaults = {
76
108
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
77
109
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
78
110
  images: [
79
- { src: "https://picsum.photos/seed/hero-square/1200/1200", alt: "Relume placeholder image 1" },
80
- { src: "https://picsum.photos/seed/hero-square/1200/1200", alt: "Relume placeholder image 2" },
81
- { src: "https://picsum.photos/seed/hero-square/1200/1200", alt: "Relume placeholder image 3" }
111
+ {
112
+ src: "https://picsum.photos/seed/hero-square/1200/1200",
113
+ alt: "Relume placeholder image 1"
114
+ },
115
+ {
116
+ src: "https://picsum.photos/seed/hero-square/1200/1200",
117
+ alt: "Relume placeholder image 2"
118
+ },
119
+ {
120
+ src: "https://picsum.photos/seed/hero-square/1200/1200",
121
+ alt: "Relume placeholder image 3"
122
+ }
82
123
  ],
83
124
  carouselHeading: "Short heading goes here",
84
125
  carouselDescription: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -103,7 +103,7 @@ declare const conf: {
103
103
  readonly action: {
104
104
  type: "custom";
105
105
  label: string;
106
- render: typeof import("../../../puck-core").ActionField;
106
+ render: typeof import("../../..").ActionField;
107
107
  };
108
108
  readonly variant: {
109
109
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -123,7 +123,7 @@ declare const conf: {
123
123
  readonly action: {
124
124
  type: "custom";
125
125
  label: string;
126
- render: typeof import("../../../puck-core").ActionField;
126
+ render: typeof import("../../..").ActionField;
127
127
  };
128
128
  readonly variant: {
129
129
  readonly type: "select";
@@ -41,10 +41,12 @@ const FullscreenVideoHero = (props) => {
41
41
  /* @__PURE__ */ jsxs("div", { className: "sticky top-0 flex w-full flex-col items-center justify-center", children: [
42
42
  /* @__PURE__ */ jsx("div", { className: "relative z-10 flex h-screen w-full items-center justify-center", children: /* @__PURE__ */ jsxs(Dialog, { children: [
43
43
  /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
44
- motion.button,
44
+ motion.div,
45
45
  {
46
+ role: "button",
47
+ tabIndex: 0,
46
48
  style: videoDialogMotion,
47
- className: "absolute flex items-center justify-center",
49
+ className: "absolute flex cursor-pointer items-center justify-center",
48
50
  children: [
49
51
  /* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" }),
50
52
  /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -39,7 +39,7 @@ declare const conf: {
39
39
  readonly action: {
40
40
  type: "custom";
41
41
  label: string;
42
- render: typeof import("../../../puck-core").ActionField;
42
+ render: typeof import("../../..").ActionField;
43
43
  };
44
44
  readonly variant: {
45
45
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -123,7 +123,7 @@ declare const conf: {
123
123
  readonly action: {
124
124
  type: "custom";
125
125
  label: string;
126
- render: typeof import("../../../puck-core").ActionField;
126
+ render: typeof import("../../..").ActionField;
127
127
  };
128
128
  readonly variant: {
129
129
  readonly type: "select";
@@ -176,38 +176,35 @@ declare const conf: {
176
176
  type: string;
177
177
  label: string;
178
178
  objectFields: {
179
+ className: {
180
+ readonly type: "text";
181
+ readonly label: "Class Name";
182
+ readonly ai: {
183
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
184
+ };
185
+ };
186
+ style: {
187
+ readonly type: "object";
188
+ readonly label: "Style";
189
+ readonly objectFields: {};
190
+ readonly ai: {
191
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
192
+ };
193
+ };
194
+ css: {
195
+ readonly type: "textarea";
196
+ readonly label: "Custom CSS";
197
+ readonly ai: {
198
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
199
+ };
200
+ };
179
201
  mediaPosition: {
180
202
  type: "radio";
181
203
  label: string;
182
- options: ({
183
- className: {
184
- readonly type: "text";
185
- readonly label: "Class Name";
186
- readonly ai: {
187
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
188
- };
189
- };
190
- style: {
191
- readonly type: "object";
192
- readonly label: "Style";
193
- readonly objectFields: {};
194
- readonly ai: {
195
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
196
- };
197
- };
198
- css: {
199
- readonly type: "textarea";
200
- readonly label: "Custom CSS";
201
- readonly ai: {
202
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
203
- };
204
- };
205
- label: string;
206
- value: string;
207
- } | {
204
+ options: {
208
205
  label: string;
209
206
  value: string;
210
- })[];
207
+ }[];
211
208
  };
212
209
  mediaType: {
213
210
  readonly type: "radio";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -112,38 +112,35 @@ declare const conf: {
112
112
  type: string;
113
113
  label: string;
114
114
  objectFields: {
115
+ className: {
116
+ readonly type: "text";
117
+ readonly label: "Class Name";
118
+ readonly ai: {
119
+ readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
120
+ };
121
+ };
122
+ style: {
123
+ readonly type: "object";
124
+ readonly label: "Style";
125
+ readonly objectFields: {};
126
+ readonly ai: {
127
+ readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
128
+ };
129
+ };
130
+ css: {
131
+ readonly type: "textarea";
132
+ readonly label: "Custom CSS";
133
+ readonly ai: {
134
+ readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
135
+ };
136
+ };
115
137
  textLayout: {
116
138
  type: "select";
117
139
  label: string;
118
- options: ({
119
- className: {
120
- readonly type: "text";
121
- readonly label: "Class Name";
122
- readonly ai: {
123
- readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
124
- };
125
- };
126
- style: {
127
- readonly type: "object";
128
- readonly label: "Style";
129
- readonly objectFields: {};
130
- readonly ai: {
131
- readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
132
- };
133
- };
134
- css: {
135
- readonly type: "textarea";
136
- readonly label: "Custom CSS";
137
- readonly ai: {
138
- readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
139
- };
140
- };
141
- label: string;
142
- value: string;
143
- } | {
140
+ options: {
144
141
  label: string;
145
142
  value: string;
146
- })[];
143
+ }[];
147
144
  };
148
145
  imageGridRatio: {
149
146
  readonly type: "text";
@@ -18,12 +18,13 @@ const conf = {
18
18
  type: "select",
19
19
  label: "Text Layout",
20
20
  options: [
21
- { label: "Two Column Top", value: "two-column-top", ...sectionWrapperFields },
21
+ { label: "Two Column Top", value: "two-column-top" },
22
22
  { label: "Left Block", value: "left-block" },
23
23
  { label: "Centered", value: "centered" }
24
24
  ]
25
25
  },
26
- imageGridRatio: heroStyleFields.imageGridRatio
26
+ imageGridRatio: heroStyleFields.imageGridRatio,
27
+ ...sectionWrapperFields
27
28
  }
28
29
  }
29
30
  },
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -13,63 +13,110 @@ import { cn } from "../../../../utils/css-utils.js";
13
13
  import { FaCirclePlay } from "../../../../node_modules/.pnpm/react-icons@5.6.0_react@19.2.4/node_modules/react-icons/fa6/index.js";
14
14
  const ScrollZoomHero = (props) => {
15
15
  var _a, _b, _c, _d;
16
- const { heading, description, buttons, images, video, styles: rawStyles } = {
16
+ const {
17
+ heading,
18
+ description,
19
+ buttons,
20
+ images,
21
+ video,
22
+ styles: rawStyles
23
+ } = {
17
24
  ...ScrollZoomHeroDefaults,
18
25
  ...props
19
26
  };
20
- const { className: sectionClassName, style: sectionStyle, css, mediaType } = rawStyles ?? {};
27
+ const {
28
+ className: sectionClassName,
29
+ style: sectionStyle,
30
+ css,
31
+ mediaType
32
+ } = rawStyles ?? {};
21
33
  const isMobile = useMediaQuery("(max-width: 767px)");
22
34
  const sectionRef = useRef(null);
23
35
  const [scrollContainerRef] = useScrollContainer(sectionRef);
24
- const { scrollYProgress } = useScroll(
25
- scrollContainerRef.current ? { container: scrollContainerRef } : void 0
36
+ const { scrollYProgress } = useScroll({
37
+ target: sectionRef,
38
+ ...scrollContainerRef.current ? { container: scrollContainerRef } : {},
39
+ offset: ["start start", "end start"]
40
+ });
41
+ const scaleValue = useTransform(scrollYProgress, [0, 0.25], [0.5, 1]);
42
+ return /* @__PURE__ */ jsx(
43
+ SectionWrapper,
44
+ {
45
+ ref: sectionRef,
46
+ className: cn("relative md:min-h-screen", sectionClassName),
47
+ style: sectionStyle,
48
+ css,
49
+ children: /* @__PURE__ */ jsx("div", { className: "px-[5%] py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
50
+ /* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 grid grid-cols-1 items-start gap-y-5 md:mb-18 md:grid-cols-2 md:gap-x-12 md:gap-y-8 lg:mb-20 lg:gap-x-20 lg:gap-y-16", children: [
51
+ /* @__PURE__ */ jsx("h1", { className: "text-6xl font-bold md:text-9xl lg:text-10xl", children: heading }),
52
+ /* @__PURE__ */ jsxs("div", { className: "mx-[7.5%] self-end md:mt-48", children: [
53
+ /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
54
+ /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
55
+ CompoundButton,
56
+ {
57
+ label: button.label,
58
+ variant: button.variant,
59
+ size: button.size,
60
+ action: button.action,
61
+ icon: button.icon
62
+ },
63
+ index
64
+ )) })
65
+ ] })
66
+ ] }),
67
+ mediaType === "play" ? /* @__PURE__ */ jsx("div", { className: "flex flex-col items-end justify-center md:h-[60vh] lg:h-[80vh] lg:justify-start", children: /* @__PURE__ */ jsxs(Dialog, { children: [
68
+ /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
69
+ motion.div,
70
+ {
71
+ role: "button",
72
+ tabIndex: 0,
73
+ className: "relative flex size-full cursor-pointer origin-top-right items-center justify-center",
74
+ style: { scale: isMobile ? 1 : scaleValue },
75
+ children: [
76
+ /* @__PURE__ */ jsx(
77
+ CompoundImage,
78
+ {
79
+ src: ((_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src) ?? "",
80
+ alt: ((_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt) ?? "",
81
+ className: "size-full object-cover"
82
+ }
83
+ ),
84
+ /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
85
+ /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
86
+ ]
87
+ }
88
+ ) }),
89
+ /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(VideoIframe, { video }) })
90
+ ] }) }) : /* @__PURE__ */ jsx(
91
+ motion.div,
92
+ {
93
+ className: "flex origin-top-right flex-col items-end justify-center md:h-[60vh] lg:h-[80vh] lg:justify-start",
94
+ style: { scale: isMobile ? 1 : scaleValue },
95
+ children: /* @__PURE__ */ jsx(
96
+ CompoundImage,
97
+ {
98
+ src: ((_c = images == null ? void 0 : images[0]) == null ? void 0 : _c.src) ?? "",
99
+ alt: ((_d = images == null ? void 0 : images[0]) == null ? void 0 : _d.alt) ?? "",
100
+ className: "size-full object-cover"
101
+ }
102
+ )
103
+ }
104
+ )
105
+ ] }) })
106
+ }
26
107
  );
27
- const scaleValue = useTransform(
28
- scrollYProgress,
29
- mediaType === "play" ? [0, 0.3] : [0, 0.5],
30
- [0.5, 1]
31
- );
32
- return /* @__PURE__ */ jsx(SectionWrapper, { ref: sectionRef, className: cn("relative md:min-h-screen", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "px-[5%] py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
33
- /* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 grid grid-cols-1 items-start gap-y-5 md:mb-18 md:grid-cols-2 md:gap-x-12 md:gap-y-8 lg:mb-20 lg:gap-x-20 lg:gap-y-16", children: [
34
- /* @__PURE__ */ jsx("h1", { className: "text-6xl font-bold md:text-9xl lg:text-10xl", children: heading }),
35
- /* @__PURE__ */ jsxs("div", { className: "mx-[7.5%] self-end md:mt-48", children: [
36
- /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
37
- /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
38
- ] })
39
- ] }),
40
- mediaType === "play" ? /* @__PURE__ */ jsx("div", { className: "flex flex-col items-end justify-center md:h-[60vh] lg:h-[80vh] lg:justify-start", children: /* @__PURE__ */ jsxs(Dialog, { children: [
41
- /* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
42
- motion.button,
43
- {
44
- className: "relative flex size-full origin-top-right items-center justify-center",
45
- style: { scale: isMobile ? 1 : scaleValue },
46
- children: [
47
- /* @__PURE__ */ jsx(CompoundImage, { src: ((_a = images == null ? void 0 : images[0]) == null ? void 0 : _a.src) ?? "", alt: ((_b = images == null ? void 0 : images[0]) == null ? void 0 : _b.alt) ?? "", className: "size-full object-cover" }),
48
- /* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
49
- /* @__PURE__ */ jsx("span", { className: "absolute inset-0 z-10 bg-black/50" })
50
- ]
51
- }
52
- ) }),
53
- /* @__PURE__ */ jsx(DialogContent, { children: /* @__PURE__ */ jsx(VideoIframe, { video }) })
54
- ] }) }) : /* @__PURE__ */ jsx(
55
- motion.div,
56
- {
57
- className: "flex origin-top-right flex-col items-end justify-center md:h-[60vh] lg:h-[80vh] lg:justify-start",
58
- style: { scale: isMobile ? 1 : scaleValue },
59
- children: /* @__PURE__ */ jsx(CompoundImage, { src: ((_c = images == null ? void 0 : images[0]) == null ? void 0 : _c.src) ?? "", alt: ((_d = images == null ? void 0 : images[0]) == null ? void 0 : _d.alt) ?? "", className: "size-full object-cover" })
60
- }
61
- )
62
- ] }) }) });
63
108
  };
64
109
  const ScrollZoomHeroDefaults = {
65
110
  heading: "Medium length hero heading goes here",
66
111
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
67
112
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
68
113
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
69
- images: [{
70
- src: "https://picsum.photos/seed/hero-video/1200/800",
71
- alt: "Relume placeholder image"
72
- }],
114
+ images: [
115
+ {
116
+ src: "https://picsum.photos/seed/hero-video/1200/800",
117
+ alt: "Relume placeholder image"
118
+ }
119
+ ],
73
120
  styles: {
74
121
  mediaType: "play"
75
122
  }
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -123,7 +123,7 @@ declare const conf: {
123
123
  readonly action: {
124
124
  type: "custom";
125
125
  label: string;
126
- render: typeof import("../../../puck-core").ActionField;
126
+ render: typeof import("../../..").ActionField;
127
127
  };
128
128
  readonly variant: {
129
129
  readonly type: "select";
@@ -25,7 +25,7 @@ declare const conf: {
25
25
  readonly action: {
26
26
  type: "custom";
27
27
  label: string;
28
- render: typeof import("../../../puck-core").ActionField;
28
+ render: typeof import("../../..").ActionField;
29
29
  };
30
30
  readonly variant: {
31
31
  readonly type: "select";
@@ -123,7 +123,7 @@ declare const conf: {
123
123
  readonly action: {
124
124
  type: "custom";
125
125
  label: string;
126
- render: typeof import("../../../puck-core").ActionField;
126
+ render: typeof import("../../..").ActionField;
127
127
  };
128
128
  readonly variant: {
129
129
  readonly type: "select";