dune-react 0.0.22 → 0.0.24

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 (131) hide show
  1. package/dist/components/puck-base/image.js +1 -1
  2. package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +13 -13
  3. package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +77 -53
  4. package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
  5. package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
  6. package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
  7. package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
  8. package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
  9. package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
  10. package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
  11. package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
  12. package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +71 -55
  13. package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +4 -4
  14. package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +1 -1
  15. package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +2 -2
  16. package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
  17. package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
  18. package/dist/components/puck-block/feature-sections/tab-feature/component.js +4 -4
  19. package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
  20. package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
  21. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
  22. package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
  23. package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +41 -0
  24. package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
  25. package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
  26. package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
  27. package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
  28. package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +37 -0
  29. package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
  30. package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +54 -0
  31. package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +41 -0
  32. package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +54 -0
  33. package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
  34. package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
  35. package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +14 -1
  36. package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +166 -105
  37. package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +17 -1
  38. package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +56 -31
  39. package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +17 -1
  40. package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +41 -13
  41. package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +1 -1
  42. package/dist/components/puck-block/gallery-sections/props.d.ts +42 -3
  43. package/dist/components/puck-block/gallery-sections/props.js +24 -6
  44. package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +71 -22
  45. package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +284 -159
  46. package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
  47. package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +17 -1
  48. package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +95 -14
  49. package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +4 -3
  50. package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +5 -4
  51. package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +4 -3
  52. package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
  53. package/dist/components/puck-block/header-sections/props.d.ts +3 -0
  54. package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
  55. package/dist/components/puck-block/hero-sections/carousel-hero/component.js +3 -3
  56. package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
  57. package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
  58. package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +1 -1
  59. package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
  60. package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +17 -1
  61. package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
  62. package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +59 -28
  63. package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
  64. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +17 -1
  65. package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
  66. package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
  67. package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
  68. package/dist/components/puck-block/hero-sections/props.d.ts +34 -2
  69. package/dist/components/puck-block/hero-sections/props.js +18 -4
  70. package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
  71. package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
  72. package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +5 -3
  73. package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
  74. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +13 -5
  75. package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
  76. package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
  77. package/dist/components/puck-block/hero-sections/tab-hero/component.js +5 -5
  78. package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +3 -3
  79. package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +6 -6
  80. package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
  81. package/dist/components/puck-block/index.d.ts +1 -0
  82. package/dist/components/puck-block/location-sections/index.d.ts +3 -0
  83. package/dist/components/puck-block/location-sections/location-1/index.js +102 -0
  84. package/dist/components/puck-block/location-sections/location-1/location.d.ts +0 -3
  85. package/dist/components/puck-block/location-sections/location-1/location.js +139 -0
  86. package/dist/components/puck-block/location-sections/location-2/index.js +126 -0
  87. package/dist/components/puck-block/location-sections/location-2/location.d.ts +0 -3
  88. package/dist/components/puck-block/location-sections/location-2/location.js +133 -0
  89. package/dist/components/puck-block/location-sections/location-3/index.js +109 -0
  90. package/dist/components/puck-block/location-sections/location-3/location.d.ts +0 -3
  91. package/dist/components/puck-block/location-sections/location-3/location.js +140 -0
  92. package/dist/components/puck-block/location-sections/props.d.ts +0 -3
  93. package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
  94. package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
  95. package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
  96. package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
  97. package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +4 -4
  98. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +134 -33
  99. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
  100. package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
  101. package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
  102. package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +86 -40
  103. package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +1 -1
  104. package/dist/components/puck-block/registry.generated.d.ts +501 -12
  105. package/dist/components/puck-block/registry.generated.js +157 -138
  106. package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +2 -2
  107. package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +157 -83
  108. package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +71 -28
  109. package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +66 -29
  110. package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +1 -1
  111. package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +6 -6
  112. package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +2 -2
  113. package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +1 -1
  114. package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
  115. package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
  116. package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
  117. package/dist/components/puck-core/core/props/form.js +25 -1
  118. package/dist/components/puck-core/core/props/media.js +6 -1
  119. package/dist/components/puck-core/fields/array-field.d.ts +7 -0
  120. package/dist/components/puck-core/fields/array-field.js +229 -0
  121. package/dist/components/puck-core/fields/auto-field.js +11 -0
  122. package/dist/components/puck-core/fields/image-upload-field.js +1 -1
  123. package/dist/components/puck-core/fields/index.d.ts +1 -0
  124. package/dist/components/puck-core/fields/location-field.js +4 -1
  125. package/dist/components/puck-core/fields/object-field.js +1 -1
  126. package/dist/index.js +6 -0
  127. package/dist/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.2.4/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +59 -0
  128. package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@dnd-kit/core/dist/core.esm.js +3093 -0
  129. package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4__react@19.2.4/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +592 -0
  130. package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.4/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +301 -0
  131. package/package.json +7 -1
@@ -57,7 +57,7 @@ function CompoundImageBase(props) {
57
57
  {
58
58
  src: props.src,
59
59
  alt: props.alt,
60
- className: cn("block h-full w-full object-cover", props.className)
60
+ className: cn("block h-full w-full", props.className)
61
61
  }
62
62
  );
63
63
  }
@@ -69,39 +69,39 @@ const CssMarqueeBanner = (props) => {
69
69
  };
70
70
  const CssMarqueeBannerDefaults = {
71
71
  headings: [
72
- "Relume Library",
73
- "Relume Library",
74
- "Relume Library",
75
- "Relume Library",
76
- "Relume Library"
72
+ "Brand Name",
73
+ "Brand Name",
74
+ "Brand Name",
75
+ "Brand Name",
76
+ "Brand Name"
77
77
  ],
78
78
  sections: [
79
79
  {
80
- title: "Relume Library",
80
+ title: "Brand Name",
81
81
  image: {
82
82
  src: "https://picsum.photos/seed/banner-marquee-1/400/267",
83
- alt: "Relume Library"
83
+ alt: "Brand Name"
84
84
  }
85
85
  },
86
86
  {
87
- title: "Relume Library",
87
+ title: "Brand Name",
88
88
  image: {
89
89
  src: "https://picsum.photos/seed/banner-marquee-2/400/267",
90
- alt: "Relume Library"
90
+ alt: "Brand Name"
91
91
  }
92
92
  },
93
93
  {
94
- title: "Relume Library",
94
+ title: "Brand Name",
95
95
  image: {
96
96
  src: "https://picsum.photos/seed/banner-marquee-3/400/267",
97
- alt: "Relume Library"
97
+ alt: "Brand Name"
98
98
  }
99
99
  },
100
100
  {
101
- title: "Relume Library",
101
+ title: "Brand Name",
102
102
  image: {
103
103
  src: "https://picsum.photos/seed/banner-marquee-4/400/267",
104
- alt: "Relume Library"
104
+ alt: "Brand Name"
105
105
  }
106
106
  }
107
107
  ],
@@ -1,11 +1,7 @@
1
- "use client";
2
1
  import { jsxs, jsx } from "react/jsx-runtime";
3
- import { useMediaQuery } from "../../../../hooks/use-media-query.js";
4
- import { useScroll, useTransform, motion } from "framer-motion";
5
- import React__default, { useRef } from "react";
2
+ import React__default from "react";
6
3
  import { cn } from "../../../../utils/css-utils.js";
7
4
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
8
- import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
9
5
  const DualRowMarquee = (props) => {
10
6
  const {
11
7
  headingsTop = [],
@@ -20,68 +16,96 @@ const DualRowMarquee = (props) => {
20
16
  style: sectionStyle,
21
17
  css
22
18
  } = styles ?? {};
23
- const sectionRef = useRef(null);
24
- const [scrollContainerRef] = useScrollContainer(sectionRef);
25
- const { scrollYProgress } = useScroll({
26
- target: sectionRef,
27
- ...scrollContainerRef.current ? { container: scrollContainerRef } : {},
28
- offset: ["start end", "end start"]
29
- });
30
- const isMobile = useMediaQuery("(max-width: 991px)");
31
- const headingTopTranslate = useTransform(
32
- scrollYProgress,
33
- [0, 1],
34
- isMobile ? ["5%", "0%"] : ["25%", "0%"]
35
- );
36
- const headingBottomTranslate = useTransform(
37
- scrollYProgress,
38
- [0, 1],
39
- isMobile ? ["-5%", "0%"] : ["-25%", "0%"]
40
- );
41
- const renderHeadings = (headings, translate) => /* @__PURE__ */ jsx(
42
- motion.div,
43
- {
44
- className: "grid auto-cols-max grid-flow-col grid-cols-[max-content] items-center justify-around py-2",
45
- style: { x: translate },
46
- children: headings.map((heading, index) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
47
- /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center whitespace-nowrap px-4 text-center lg:text-left", children: /* @__PURE__ */ jsx("h1", { className: "text-xl font-bold md:text-2xl", children: heading.title }) }),
48
- /* @__PURE__ */ jsx("div", { className: "relative w-full overflow-hidden", children: /* @__PURE__ */ jsx(
49
- "img",
50
- {
51
- src: heading.image.src,
52
- alt: heading.image.alt,
53
- className: "aspect-square size-full max-h-16 object-cover"
54
- }
55
- ) })
56
- ] }, index))
57
- }
58
- );
19
+ const renderHeadings = (headings) => {
20
+ const repeated = [...headings, ...headings, ...headings];
21
+ return /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center py-2", children: repeated.map((heading, index) => /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
22
+ /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center justify-center whitespace-nowrap px-4 text-center lg:text-left", children: /* @__PURE__ */ jsx("h1", { className: "text-xl font-bold md:text-2xl", children: heading.title }) }),
23
+ /* @__PURE__ */ jsx("div", { className: "relative shrink-0 overflow-hidden", children: /* @__PURE__ */ jsx(
24
+ "img",
25
+ {
26
+ src: heading.image.src,
27
+ alt: heading.image.alt,
28
+ className: "h-8 object-contain"
29
+ }
30
+ ) })
31
+ ] }, index)) });
32
+ };
59
33
  return /* @__PURE__ */ jsxs(
60
34
  SectionWrapper,
61
35
  {
62
- ref: sectionRef,
63
- className: cn("flex w-screen max-w-full flex-col justify-end overflow-hidden", sectionClassName),
36
+ className: cn(
37
+ "flex w-screen max-w-full flex-col justify-end overflow-hidden",
38
+ sectionClassName
39
+ ),
64
40
  style: sectionStyle,
65
41
  css,
66
42
  children: [
67
- /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: renderHeadings(headingsTop, headingTopTranslate) }, index)) }),
68
- /* @__PURE__ */ jsx("div", { className: "flex justify-start", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: renderHeadings(headingsBottom, headingBottomTranslate) }, index)) })
43
+ /* @__PURE__ */ jsx("div", { className: "flex animate-marquee-top", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: renderHeadings(headingsTop) }, index)) }),
44
+ /* @__PURE__ */ jsx("div", { className: "flex animate-marquee-bottom", children: Array(2).fill(0).map((_, index) => /* @__PURE__ */ jsx(React__default.Fragment, { children: renderHeadings(headingsBottom) }, index)) })
69
45
  ]
70
46
  }
71
47
  );
72
48
  };
73
49
  const DualRowMarqueeDefaults = {
74
50
  headingsTop: [
75
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-1/100/100", alt: "Relume Library 1" } },
76
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-2/100/100", alt: "Relume Library 2" } },
77
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-3/100/100", alt: "Relume Library 3" } },
78
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-4/100/100", alt: "Relume Library 4" } }
51
+ {
52
+ title: "Brand Name",
53
+ image: {
54
+ src: "https://picsum.photos/seed/banner-dual-1/100/100",
55
+ alt: "Brand Name 1"
56
+ }
57
+ },
58
+ {
59
+ title: "Brand Name",
60
+ image: {
61
+ src: "https://picsum.photos/seed/banner-dual-2/100/100",
62
+ alt: "Brand Name 2"
63
+ }
64
+ },
65
+ {
66
+ title: "Brand Name",
67
+ image: {
68
+ src: "https://picsum.photos/seed/banner-dual-3/100/100",
69
+ alt: "Brand Name 3"
70
+ }
71
+ },
72
+ {
73
+ title: "Brand Name",
74
+ image: {
75
+ src: "https://picsum.photos/seed/banner-dual-4/100/100",
76
+ alt: "Brand Name 4"
77
+ }
78
+ }
79
79
  ],
80
80
  headingsBottom: [
81
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-5/100/100", alt: "Relume Library 5" } },
82
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-6/100/100", alt: "Relume Library 6" } },
83
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-7/100/100", alt: "Relume Library 7" } },
84
- { title: "Relume Library", image: { src: "https://picsum.photos/seed/banner-dual-8/100/100", alt: "Relume Library 8" } }
81
+ {
82
+ title: "Brand Name",
83
+ image: {
84
+ src: "https://picsum.photos/seed/banner-dual-5/100/100",
85
+ alt: "Brand Name 5"
86
+ }
87
+ },
88
+ {
89
+ title: "Brand Name",
90
+ image: {
91
+ src: "https://picsum.photos/seed/banner-dual-6/100/100",
92
+ alt: "Brand Name 6"
93
+ }
94
+ },
95
+ {
96
+ title: "Brand Name",
97
+ image: {
98
+ src: "https://picsum.photos/seed/banner-dual-7/100/100",
99
+ alt: "Brand Name 7"
100
+ }
101
+ },
102
+ {
103
+ title: "Brand Name",
104
+ image: {
105
+ src: "https://picsum.photos/seed/banner-dual-8/100/100",
106
+ alt: "Brand Name 8"
107
+ }
108
+ }
85
109
  ]
86
110
  };
87
111
  export {
@@ -5,6 +5,7 @@ import { useRef } from "react";
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
7
7
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
8
+ import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
8
9
  const ScrollDrivenMarquee = (props) => {
9
10
  const {
10
11
  headings = [],
@@ -18,6 +19,7 @@ const ScrollDrivenMarquee = (props) => {
18
19
  style: sectionStyle,
19
20
  css
20
21
  } = styles ?? {};
22
+ const { isEditor } = useEditorContext();
21
23
  const sectionRef = useRef(null);
22
24
  const [scrollContainerRef] = useScrollContainer(sectionRef);
23
25
  const { scrollYProgress } = useScroll({
@@ -30,7 +32,7 @@ const ScrollDrivenMarquee = (props) => {
30
32
  motion.div,
31
33
  {
32
34
  className: "ml-12 grid auto-cols-max grid-flow-col grid-cols-[max-content] gap-12",
33
- style: { x: headingTranslate },
35
+ style: { x: isEditor ? "0%" : headingTranslate },
34
36
  children: headings.map((heading, headingIndex) => /* @__PURE__ */ jsx("h1", { className: "text-md font-bold md:text-lg", children: heading }, headingIndex))
35
37
  },
36
38
  index
@@ -38,11 +40,11 @@ const ScrollDrivenMarquee = (props) => {
38
40
  };
39
41
  const ScrollDrivenMarqueeDefaults = {
40
42
  headings: [
41
- "Relume Library",
42
- "Relume Library",
43
- "Relume Library",
44
- "Relume Library",
45
- "Relume Library"
43
+ "Brand Name",
44
+ "Brand Name",
45
+ "Brand Name",
46
+ "Brand Name",
47
+ "Brand Name"
46
48
  ]
47
49
  };
48
50
  export {
@@ -5,6 +5,7 @@ import { useScroll, useTransform, motion } from "framer-motion";
5
5
  import { cn } from "../../../../utils/css-utils.js";
6
6
  import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
7
7
  import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
8
+ import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
8
9
  const ScrollParallaxText = (props) => {
9
10
  const {
10
11
  headings = [],
@@ -18,6 +19,7 @@ const ScrollParallaxText = (props) => {
18
19
  style: sectionStyle,
19
20
  css
20
21
  } = styles ?? {};
22
+ const { isEditor } = useEditorContext();
21
23
  const sectionRef = useRef(null);
22
24
  const [scrollContainerRef] = useScrollContainer(sectionRef);
23
25
  const { scrollYProgress } = useScroll({
@@ -37,7 +39,7 @@ const ScrollParallaxText = (props) => {
37
39
  children: /* @__PURE__ */ jsx("div", { className: "flex flex-col whitespace-nowrap", children: headings.map((heading, index) => /* @__PURE__ */ jsx(
38
40
  motion.h1,
39
41
  {
40
- style: index % 2 === 0 ? { x: xPartOne } : { x: xPartTwo },
42
+ style: index % 2 === 0 ? { x: isEditor ? "0%" : xPartOne } : { x: isEditor ? "0%" : xPartTwo },
41
43
  className: cn("text-[6rem] font-bold leading-[1.2]", {
42
44
  "self-end": index % 2 !== 0
43
45
  }),
@@ -80,7 +80,7 @@ const ContactCardsGridDefaults = {
80
80
  icon: "email",
81
81
  title: "Email",
82
82
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in ero.",
83
- link: { label: "hello@relume.io", action: { type: "email", email: "hello@relume.io" } }
83
+ link: { label: "hello@example.com", action: { type: "email", email: "hello@example.com" } }
84
84
  },
85
85
  {
86
86
  icon: "phone",
@@ -94,7 +94,7 @@ const FormWithMediaDefaults = {
94
94
  buttons: [],
95
95
  image: {
96
96
  src: "https://picsum.photos/seed/contact-media/800/800",
97
- alt: "Relume placeholder image"
97
+ alt: "Placeholder image"
98
98
  },
99
99
  email: "",
100
100
  phone: "",
@@ -154,7 +154,7 @@ const HeaderFormCardsDefaults = {
154
154
  icon: "email",
155
155
  title: "Email",
156
156
  description: "Lorem ipsum dolor sit amet.",
157
- link: { label: "hello@relume.io", action: { type: "email", email: "hello@relume.io" } }
157
+ link: { label: "hello@example.com", action: { type: "email", email: "hello@example.com" } }
158
158
  },
159
159
  {
160
160
  icon: "phone",
@@ -44,7 +44,7 @@ const HeaderInfoFullwidthDefaults = {
44
44
  buttons: [],
45
45
  image: {
46
46
  src: "https://picsum.photos/seed/contact-fullwidth/1920/600",
47
- alt: "Relume placeholder image"
47
+ alt: "Placeholder image"
48
48
  },
49
49
  email: "",
50
50
  phone: "",
@@ -54,7 +54,7 @@ const HeaderInfoFullwidthDefaults = {
54
54
  icon: "email",
55
55
  title: "Email",
56
56
  description: "",
57
- link: { label: "hello@relume.io", action: { type: "email", email: "hello@relume.io" } }
57
+ link: { label: "hello@example.com", action: { type: "email", email: "hello@example.com" } }
58
58
  },
59
59
  {
60
60
  icon: "phone",
@@ -42,7 +42,7 @@ const InfoCardsMediaDefaults = {
42
42
  buttons: [],
43
43
  image: {
44
44
  src: "https://picsum.photos/seed/contact-info/1200/800",
45
- alt: "Relume placeholder image"
45
+ alt: "Placeholder image"
46
46
  },
47
47
  email: "",
48
48
  phone: "",
@@ -52,7 +52,7 @@ const InfoCardsMediaDefaults = {
52
52
  icon: "email",
53
53
  title: "Email",
54
54
  description: "Lorem ipsum dolor sit amet.",
55
- link: { label: "hello@relume.io", action: { type: "email", email: "hello@relume.io" } }
55
+ link: { label: "hello@example.com", action: { type: "email", email: "hello@example.com" } }
56
56
  },
57
57
  {
58
58
  icon: "phone",
@@ -146,7 +146,7 @@ const SplitInfoFormDefaults = {
146
146
  button: { label: "Submit" },
147
147
  buttons: [],
148
148
  image: { src: "https://picsum.photos/seed/contact-split/800/600", alt: "Placeholder" },
149
- email: "hello@relume.io",
149
+ email: "hello@example.com",
150
150
  phone: "+1 (555) 000-0000",
151
151
  address: "123 Sample St, Sydney NSW 2000 AU",
152
152
  contacts: [],
@@ -10,62 +10,75 @@ const TabLocations = (props) => {
10
10
  ...TabLocationsDefaults,
11
11
  ...props
12
12
  };
13
- const { className: sectionClassName, style: sectionStyle, css, mediaType = "map" } = styles ?? {};
14
- return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
15
- /* @__PURE__ */ jsxs("div", { className: "mb-12 flex max-w-lg flex-col justify-start md:mb-18 lg:mb-20", children: [
16
- /* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
17
- /* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
18
- /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
19
- ] }),
20
- /* @__PURE__ */ jsxs(
21
- Tabs,
22
- {
23
- defaultValue: (_a = tabs[0]) == null ? void 0 : _a.value,
24
- className: "relative grid auto-cols-fr grid-cols-1 gap-12 md:grid-cols-[.5fr_1fr] md:gap-y-16 lg:gap-x-20 lg:gap-y-16",
25
- children: [
26
- /* @__PURE__ */ jsx(TabsList, { className: "relative grid h-full auto-cols-fr grid-cols-1 gap-x-4 gap-y-10", children: tabs.map((tab, index) => /* @__PURE__ */ jsx(
27
- TabsTrigger,
28
- {
29
- value: tab.value,
30
- className: "items-start justify-start border-0 border-l-2 border-border-primary border-transparent px-0 py-0 pl-8 data-[state=active]:border-black data-[state=active]:bg-background-primary data-[state=active]:text-text-primary",
31
- children: /* @__PURE__ */ jsxs("div", { className: "text-left", children: [
32
- /* @__PURE__ */ jsx("h3", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: tab.title }),
33
- /* @__PURE__ */ jsxs("p", { className: "inline-block whitespace-normal", children: [
34
- /* @__PURE__ */ jsx("span", { className: "block", children: tab.addressLine1 }),
35
- /* @__PURE__ */ jsx("span", { className: "block", children: tab.addressLine2 })
36
- ] }),
37
- /* @__PURE__ */ jsx("div", { className: "mt-5 font-semibold md:mt-6", children: /* @__PURE__ */ jsx("p", { children: tab.buttonLabel }) })
38
- ] })
39
- },
40
- index
41
- )) }),
42
- /* @__PURE__ */ jsx("div", { children: tabs.map((tab) => /* @__PURE__ */ jsx(
43
- TabsContent,
44
- {
45
- value: tab.value,
46
- className: "data-[state=active]:animate-tabs",
47
- children: /* @__PURE__ */ jsx("div", { className: "relative size-full", children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: tab.mapUrl, className: "block", children: /* @__PURE__ */ jsx(
48
- CompoundImage,
13
+ const {
14
+ className: sectionClassName,
15
+ style: sectionStyle,
16
+ css,
17
+ mediaType = "map"
18
+ } = styles ?? {};
19
+ return /* @__PURE__ */ jsx(
20
+ SectionWrapper,
21
+ {
22
+ className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
23
+ style: sectionStyle,
24
+ css,
25
+ children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
26
+ /* @__PURE__ */ jsxs("div", { className: "mb-12 flex max-w-lg flex-col justify-start md:mb-18 lg:mb-20", children: [
27
+ /* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
28
+ /* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
29
+ /* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
30
+ ] }),
31
+ /* @__PURE__ */ jsxs(
32
+ Tabs,
33
+ {
34
+ defaultValue: (_a = tabs[0]) == null ? void 0 : _a.value,
35
+ className: "relative grid auto-cols-fr grid-cols-1 gap-12 md:grid-cols-[.5fr_1fr] md:gap-y-16 lg:gap-x-20 lg:gap-y-16",
36
+ children: [
37
+ /* @__PURE__ */ jsx(TabsList, { className: "relative grid h-full auto-cols-fr grid-cols-1 gap-x-4 gap-y-10", children: tabs.map((tab, index) => /* @__PURE__ */ jsx(
38
+ TabsTrigger,
49
39
  {
50
- src: tab.image.src,
51
- alt: tab.image.alt,
52
- className: "size-full object-cover"
53
- }
54
- ) }) : /* @__PURE__ */ jsx(
55
- CompoundImage,
40
+ value: tab.value,
41
+ className: "items-start justify-start border-0 border-l-2 border-border-primary border-transparent px-0 py-0 pl-8 data-[state=active]:border-black data-[state=active]:bg-background-primary data-[state=active]:text-text-primary",
42
+ children: /* @__PURE__ */ jsxs("div", { className: "text-left", children: [
43
+ /* @__PURE__ */ jsx("h3", { className: "mb-3 text-xl font-bold md:mb-4 md:text-2xl", children: tab.title }),
44
+ /* @__PURE__ */ jsxs("p", { className: "inline-block whitespace-normal", children: [
45
+ /* @__PURE__ */ jsx("span", { className: "block", children: tab.addressLine1 }),
46
+ /* @__PURE__ */ jsx("span", { className: "block", children: tab.addressLine2 })
47
+ ] }),
48
+ /* @__PURE__ */ jsx("div", { className: "mt-5 font-semibold md:mt-6", children: /* @__PURE__ */ jsx("p", { children: tab.buttonLabel }) })
49
+ ] })
50
+ },
51
+ index
52
+ )) }),
53
+ /* @__PURE__ */ jsx("div", { children: tabs.map((tab) => /* @__PURE__ */ jsx(
54
+ TabsContent,
56
55
  {
57
- src: tab.image.src,
58
- alt: tab.image.alt,
59
- className: "size-full object-cover"
60
- }
61
- ) })
62
- },
63
- tab.value
64
- )) })
65
- ]
66
- }
67
- )
68
- ] }) });
56
+ value: tab.value,
57
+ className: "animate-tabs",
58
+ children: /* @__PURE__ */ jsx("div", { className: "relative size-full", children: mediaType === "map" ? /* @__PURE__ */ jsx("a", { href: tab.mapUrl, className: "block", children: /* @__PURE__ */ jsx(
59
+ CompoundImage,
60
+ {
61
+ src: tab.image.src,
62
+ alt: tab.image.alt,
63
+ className: "size-full object-cover"
64
+ }
65
+ ) }) : /* @__PURE__ */ jsx(
66
+ CompoundImage,
67
+ {
68
+ src: tab.image.src,
69
+ alt: tab.image.alt,
70
+ className: "size-full object-cover"
71
+ }
72
+ ) })
73
+ },
74
+ tab.value
75
+ )) })
76
+ ]
77
+ }
78
+ )
79
+ ] })
80
+ }
81
+ );
69
82
  };
70
83
  const TabLocationsDefaults = {
71
84
  tagline: "Tagline",
@@ -73,7 +86,10 @@ const TabLocationsDefaults = {
73
86
  description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
74
87
  button: { label: "Submit" },
75
88
  buttons: [],
76
- image: { src: "https://picsum.photos/seed/contact-tab/800/600", alt: "Placeholder" },
89
+ image: {
90
+ src: "https://picsum.photos/seed/contact-tab/800/600",
91
+ alt: "Placeholder"
92
+ },
77
93
  email: "",
78
94
  phone: "",
79
95
  address: "",
@@ -161,7 +161,7 @@ const MouseTrackCtaDefaults = {
161
161
  listNumber: "01",
162
162
  image: {
163
163
  src: "https://picsum.photos/seed/cta-hover1/600/600",
164
- alt: "Relume placeholder image 1"
164
+ alt: "Placeholder image 1"
165
165
  }
166
166
  },
167
167
  {
@@ -170,7 +170,7 @@ const MouseTrackCtaDefaults = {
170
170
  listNumber: "02",
171
171
  image: {
172
172
  src: "https://picsum.photos/seed/cta-hover2/600/600",
173
- alt: "Relume placeholder image 2"
173
+ alt: "Placeholder image 2"
174
174
  }
175
175
  },
176
176
  {
@@ -179,7 +179,7 @@ const MouseTrackCtaDefaults = {
179
179
  listNumber: "03",
180
180
  image: {
181
181
  src: "https://picsum.photos/seed/cta-hover3/600/600",
182
- alt: "Relume placeholder image 3"
182
+ alt: "Placeholder image 3"
183
183
  }
184
184
  },
185
185
  {
@@ -188,7 +188,7 @@ const MouseTrackCtaDefaults = {
188
188
  listNumber: "04",
189
189
  image: {
190
190
  src: "https://picsum.photos/seed/cta-hover4/600/600",
191
- alt: "Relume placeholder image 4"
191
+ alt: "Placeholder image 4"
192
192
  }
193
193
  }
194
194
  ],
@@ -60,7 +60,7 @@ const SideMediaCtaDefaults = {
60
60
  images: [
61
61
  {
62
62
  src: "https://picsum.photos/seed/cta-side/800/600",
63
- alt: "Relume placeholder image"
63
+ alt: "Placeholder image"
64
64
  }
65
65
  ],
66
66
  video: "",
@@ -130,11 +130,11 @@ const TextBlockCtaDefaults = {
130
130
  images: [
131
131
  {
132
132
  src: "https://picsum.photos/seed/cta-bg/1920/1080",
133
- alt: "Relume placeholder image"
133
+ alt: "Placeholder image"
134
134
  },
135
135
  {
136
136
  src: "https://picsum.photos/seed/cta-bottom/1200/600",
137
- alt: "Relume placeholder image"
137
+ alt: "Placeholder image"
138
138
  }
139
139
  ],
140
140
  video: "https://www.example.com/video.mp4",
@@ -96,7 +96,7 @@ const FeatureCardsGridDefaults = {
96
96
  ],
97
97
  image: {
98
98
  src: "https://picsum.photos/seed/feature-cards/800/600",
99
- alt: "Relume placeholder image"
99
+ alt: "Placeholder image"
100
100
  },
101
101
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
102
102
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
@@ -93,7 +93,7 @@ const FeatureListSplitDefaults = {
93
93
  ],
94
94
  image: {
95
95
  src: "https://picsum.photos/seed/feature-list/800/600",
96
- alt: "Relume placeholder image"
96
+ alt: "Placeholder image"
97
97
  },
98
98
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
99
99
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
@@ -51,7 +51,7 @@ const TabFeature = (props) => {
51
51
  TabsContent,
52
52
  {
53
53
  value: tab.value,
54
- className: "data-[state=active]:animate-tabs",
54
+ className: "animate-tabs",
55
55
  children: [
56
56
  tab.image && !tab.videoUrl && /* @__PURE__ */ jsx(
57
57
  CompoundImage,
@@ -110,7 +110,7 @@ const TabFeatureDefaults = {
110
110
  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.",
111
111
  image: {
112
112
  src: "https://picsum.photos/seed/tab-feature1/800/600",
113
- alt: "Relume placeholder image 1"
113
+ alt: "Placeholder image 1"
114
114
  }
115
115
  },
116
116
  {
@@ -119,7 +119,7 @@ const TabFeatureDefaults = {
119
119
  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.",
120
120
  image: {
121
121
  src: "https://picsum.photos/seed/tab-feature2/800/600",
122
- alt: "Relume placeholder image 2"
122
+ alt: "Placeholder image 2"
123
123
  }
124
124
  },
125
125
  {
@@ -128,7 +128,7 @@ const TabFeatureDefaults = {
128
128
  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.",
129
129
  image: {
130
130
  src: "https://picsum.photos/seed/tab-feature3/800/600",
131
- alt: "Relume placeholder image 3"
131
+ alt: "Placeholder image 3"
132
132
  }
133
133
  }
134
134
  ]
@@ -78,7 +78,7 @@ const TextMediaSplitDefaults = {
78
78
  buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
79
79
  image: {
80
80
  src: "https://picsum.photos/seed/feature-split/800/600",
81
- alt: "Relume placeholder image"
81
+ alt: "Placeholder image"
82
82
  },
83
83
  video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
84
84
  styles: {