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.
- package/dist/components/puck-base/image.js +1 -1
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +13 -13
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +77 -53
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
- package/dist/components/puck-block/contact-sections/tab-locations/tab-locations.js +71 -55
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +4 -4
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +2 -2
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +4 -4
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +41 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +37 -0
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +54 -0
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +41 -0
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +54 -0
- package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +14 -1
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +166 -105
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +17 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/masonry-grid.js +56 -31
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +17 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +41 -13
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +1 -1
- package/dist/components/puck-block/gallery-sections/props.d.ts +42 -3
- package/dist/components/puck-block/gallery-sections/props.js +24 -6
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +71 -22
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +284 -159
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +17 -1
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +95 -14
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +4 -3
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +5 -4
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +4 -3
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/props.d.ts +3 -0
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +3 -3
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +17 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
- package/dist/components/puck-block/hero-sections/inline-image-hero/inline-image-hero.js +59 -28
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +17 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
- package/dist/components/puck-block/hero-sections/props.d.ts +34 -2
- package/dist/components/puck-block/hero-sections/props.js +18 -4
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +5 -3
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +13 -5
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +5 -5
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +3 -3
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
- package/dist/components/puck-block/index.d.ts +1 -0
- package/dist/components/puck-block/location-sections/index.d.ts +3 -0
- package/dist/components/puck-block/location-sections/location-1/index.js +102 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +0 -3
- package/dist/components/puck-block/location-sections/location-1/location.js +139 -0
- package/dist/components/puck-block/location-sections/location-2/index.js +126 -0
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +0 -3
- package/dist/components/puck-block/location-sections/location-2/location.js +133 -0
- package/dist/components/puck-block/location-sections/location-3/index.js +109 -0
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +0 -3
- package/dist/components/puck-block/location-sections/location-3/location.js +140 -0
- package/dist/components/puck-block/location-sections/props.d.ts +0 -3
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +4 -4
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +134 -33
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/component.js +86 -40
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/component.js +1 -1
- package/dist/components/puck-block/registry.generated.d.ts +501 -12
- package/dist/components/puck-block/registry.generated.js +157 -138
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +157 -83
- package/dist/components/puck-block/testimonial-sections/centered-testimonial/component.js +71 -28
- package/dist/components/puck-block/testimonial-sections/image-testimonial/component.js +66 -29
- package/dist/components/puck-block/testimonial-sections/image-testimonial-carousel/component.js +1 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +6 -6
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +1 -1
- package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
- package/dist/components/puck-core/core/props/form.js +25 -1
- package/dist/components/puck-core/core/props/media.js +6 -1
- package/dist/components/puck-core/fields/array-field.d.ts +7 -0
- package/dist/components/puck-core/fields/array-field.js +229 -0
- package/dist/components/puck-core/fields/auto-field.js +11 -0
- package/dist/components/puck-core/fields/image-upload-field.js +1 -1
- package/dist/components/puck-core/fields/index.d.ts +1 -0
- package/dist/components/puck-core/fields/location-field.js +4 -1
- package/dist/components/puck-core/fields/object-field.js +1 -1
- package/dist/index.js +6 -0
- 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
- 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
- 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
- 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
- package/package.json +7 -1
|
@@ -69,39 +69,39 @@ const CssMarqueeBanner = (props) => {
|
|
|
69
69
|
};
|
|
70
70
|
const CssMarqueeBannerDefaults = {
|
|
71
71
|
headings: [
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
72
|
+
"Brand Name",
|
|
73
|
+
"Brand Name",
|
|
74
|
+
"Brand Name",
|
|
75
|
+
"Brand Name",
|
|
76
|
+
"Brand Name"
|
|
77
77
|
],
|
|
78
78
|
sections: [
|
|
79
79
|
{
|
|
80
|
-
title: "
|
|
80
|
+
title: "Brand Name",
|
|
81
81
|
image: {
|
|
82
82
|
src: "https://picsum.photos/seed/banner-marquee-1/400/267",
|
|
83
|
-
alt: "
|
|
83
|
+
alt: "Brand Name"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
title: "
|
|
87
|
+
title: "Brand Name",
|
|
88
88
|
image: {
|
|
89
89
|
src: "https://picsum.photos/seed/banner-marquee-2/400/267",
|
|
90
|
-
alt: "
|
|
90
|
+
alt: "Brand Name"
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
title: "
|
|
94
|
+
title: "Brand Name",
|
|
95
95
|
image: {
|
|
96
96
|
src: "https://picsum.photos/seed/banner-marquee-3/400/267",
|
|
97
|
-
alt: "
|
|
97
|
+
alt: "Brand Name"
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
|
-
title: "
|
|
101
|
+
title: "Brand Name",
|
|
102
102
|
image: {
|
|
103
103
|
src: "https://picsum.photos/seed/banner-marquee-4/400/267",
|
|
104
|
-
alt: "
|
|
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
|
|
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
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
63
|
-
|
|
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
|
|
68
|
-
/* @__PURE__ */ jsx("div", { className: "flex
|
|
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
|
-
{
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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 {
|
package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js
CHANGED
|
@@ -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
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
43
|
+
"Brand Name",
|
|
44
|
+
"Brand Name",
|
|
45
|
+
"Brand Name",
|
|
46
|
+
"Brand Name",
|
|
47
|
+
"Brand Name"
|
|
46
48
|
]
|
|
47
49
|
};
|
|
48
50
|
export {
|
package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js
CHANGED
|
@@ -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
|
}),
|
package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js
CHANGED
|
@@ -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@
|
|
83
|
+
link: { label: "hello@example.com", action: { type: "email", email: "hello@example.com" } }
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
icon: "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@
|
|
157
|
+
link: { label: "hello@example.com", action: { type: "email", email: "hello@example.com" } }
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
icon: "phone",
|
package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js
CHANGED
|
@@ -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: "
|
|
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@
|
|
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: "
|
|
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@
|
|
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@
|
|
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 {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
className: "
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
|
|
59
|
-
className: "size-full
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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: {
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
191
|
+
alt: "Placeholder image 4"
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
],
|
|
@@ -130,11 +130,11 @@ const TextBlockCtaDefaults = {
|
|
|
130
130
|
images: [
|
|
131
131
|
{
|
|
132
132
|
src: "https://picsum.photos/seed/cta-bg/1920/1080",
|
|
133
|
-
alt: "
|
|
133
|
+
alt: "Placeholder image"
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
src: "https://picsum.photos/seed/cta-bottom/1200/600",
|
|
137
|
-
alt: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
81
|
+
alt: "Placeholder image"
|
|
82
82
|
},
|
|
83
83
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
84
84
|
styles: {
|