dune-react 0.0.22 → 0.0.23
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-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 +8 -8
- 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/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 +3 -3
- 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/interactive-portfolio/interactive-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +1 -1
- package/dist/components/puck-block/gallery-sections/props.d.ts +11 -1
- package/dist/components/puck-block/gallery-sections/props.js +7 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +18 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +25 -22
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +3 -2
- 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/horizontal-marquee-hero/component.js +3 -3
- 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/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/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 +4 -4
- 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/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 +3 -3
- 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/registry.generated.d.ts +273 -6
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +2 -2
- 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/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/object-field.js +1 -1
- 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 +4 -1
|
@@ -56,8 +56,18 @@ declare const conf: {
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
slideBasis: {
|
|
59
|
-
readonly type: "
|
|
59
|
+
readonly type: "select";
|
|
60
60
|
readonly label: "Slide Basis";
|
|
61
|
+
readonly options: readonly [{
|
|
62
|
+
readonly label: "4/5";
|
|
63
|
+
readonly value: "4/5";
|
|
64
|
+
}, {
|
|
65
|
+
readonly label: "45%";
|
|
66
|
+
readonly value: "45%";
|
|
67
|
+
}, {
|
|
68
|
+
readonly label: "30%";
|
|
69
|
+
readonly value: "30%";
|
|
70
|
+
}];
|
|
61
71
|
};
|
|
62
72
|
};
|
|
63
73
|
};
|
|
@@ -12,7 +12,7 @@ const CenteredNavbar = (props) => {
|
|
|
12
12
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
13
13
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("z-[999] flex w-full items-center border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "mx-auto size-full lg:grid lg:grid-cols-[0.375fr_1fr_0.375fr] lg:items-center lg:justify-between lg:gap-4", children: [
|
|
14
14
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
15
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
15
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
16
16
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 lg:hidden", children: [
|
|
17
17
|
/* @__PURE__ */ jsx("div", { children: buttons == null ? void 0 : buttons.map((b, i) => /* @__PURE__ */ jsx(Button, { className: "w-full px-4 py-1", variant: b.variant, size: b.size, children: b.label }, i)) }),
|
|
18
18
|
/* @__PURE__ */ jsx("button", { className: "-mr-2 flex size-12 flex-col items-center justify-center", onClick: () => setIsMobileMenuOpen((prev) => !prev), children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("span", { className: "my-[3px] h-0.5 w-6 bg-black" }, i)) })
|
|
@@ -23,7 +23,8 @@ const CenteredNavbar = (props) => {
|
|
|
23
23
|
] }) });
|
|
24
24
|
};
|
|
25
25
|
const CenteredNavbarDefaults = {
|
|
26
|
-
|
|
26
|
+
__metadata: { type: "header" },
|
|
27
|
+
logo: { url: "#", src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo image" },
|
|
27
28
|
navLinks: [{ title: "Link One", url: "#" }, { title: "Link Two", url: "#" }, { title: "Link Three", url: "#" }, { title: "Link Four", url: "#" }],
|
|
28
29
|
button: { label: "Button", size: "sm" },
|
|
29
30
|
buttons: [{ label: "Button", size: "sm" }],
|
|
@@ -65,7 +65,7 @@ const DrawerNavbar = (props) => {
|
|
|
65
65
|
{
|
|
66
66
|
href: logo == null ? void 0 : logo.url,
|
|
67
67
|
className: "mb-8 mt-10 flex flex-shrink-0 lg:hidden",
|
|
68
|
-
children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt })
|
|
68
|
+
children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" })
|
|
69
69
|
}
|
|
70
70
|
),
|
|
71
71
|
navLinks == null ? void 0 : navLinks.map((navLink, index) => /* @__PURE__ */ jsx(
|
|
@@ -102,7 +102,7 @@ const DrawerNavbar = (props) => {
|
|
|
102
102
|
}
|
|
103
103
|
)
|
|
104
104
|
] }),
|
|
105
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, className: "flex min-h-16 flex-shrink-0 items-center", children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
105
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, className: "flex min-h-16 flex-shrink-0 items-center", children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
106
106
|
/* @__PURE__ */ jsx("div", { className: "flex min-h-16 items-center justify-end gap-x-4", children: buttons == null ? void 0 : buttons.map((b, i) => /* @__PURE__ */ jsx(
|
|
107
107
|
Button,
|
|
108
108
|
{
|
|
@@ -118,9 +118,10 @@ const DrawerNavbar = (props) => {
|
|
|
118
118
|
);
|
|
119
119
|
};
|
|
120
120
|
const DrawerNavbarDefaults = {
|
|
121
|
+
__metadata: { type: "header" },
|
|
121
122
|
logo: {
|
|
122
123
|
url: "#",
|
|
123
|
-
src: "https://
|
|
124
|
+
src: "https://file.springbrand.ai/web_assets/template-logo.svg",
|
|
124
125
|
alt: "Logo image"
|
|
125
126
|
},
|
|
126
127
|
navLinks: [
|
|
@@ -25,13 +25,13 @@ const FloatingBorderedNavbar = (props) => {
|
|
|
25
25
|
SectionWrapper,
|
|
26
26
|
{
|
|
27
27
|
className: cn(
|
|
28
|
-
`${position === "fixed" ? "fixed" : "relative"} z-[999] mx-auto
|
|
28
|
+
`${position === "fixed" ? "fixed" : "relative"} z-[999] mx-auto flex w-full items-start justify-center bg-background-primary px-[5%] md:mt-6 lg:mx-[5%] lg:w-auto lg:px-0`,
|
|
29
29
|
sectionClassName
|
|
30
30
|
),
|
|
31
31
|
style: sectionStyle,
|
|
32
32
|
css,
|
|
33
33
|
children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-16 w-full items-center justify-between gap-4 border-border-primary px-5 md:min-h-18 md:px-8 lg:w-auto", children: [
|
|
34
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
34
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
35
35
|
/* @__PURE__ */ jsx(
|
|
36
36
|
motion.div,
|
|
37
37
|
{
|
|
@@ -158,10 +158,11 @@ const SubMenu = ({
|
|
|
158
158
|
);
|
|
159
159
|
};
|
|
160
160
|
const FloatingBorderedNavbarDefaults = {
|
|
161
|
+
__metadata: { type: "header" },
|
|
161
162
|
logo: {
|
|
162
163
|
url: "#",
|
|
163
|
-
src: "https://
|
|
164
|
-
alt: "
|
|
164
|
+
src: "https://file.springbrand.ai/web_assets/template-logo.svg",
|
|
165
|
+
alt: "Placeholder logo"
|
|
165
166
|
},
|
|
166
167
|
navLinks: [
|
|
167
168
|
{ url: "#", title: "Link One" },
|
|
@@ -28,7 +28,7 @@ const FullscreenOverlayNavbar = (props) => {
|
|
|
28
28
|
css,
|
|
29
29
|
children: [
|
|
30
30
|
/* @__PURE__ */ jsxs("div", { className: "mx-auto flex size-full items-center justify-between", children: [
|
|
31
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
31
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
32
32
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-2 lg:gap-4", children: [
|
|
33
33
|
button && /* @__PURE__ */ jsx(
|
|
34
34
|
Button,
|
|
@@ -141,10 +141,11 @@ const FullscreenOverlayNavbar = (props) => {
|
|
|
141
141
|
);
|
|
142
142
|
};
|
|
143
143
|
const FullscreenOverlayNavbarDefaults = {
|
|
144
|
+
__metadata: { type: "header" },
|
|
144
145
|
logo: {
|
|
145
146
|
url: "#",
|
|
146
|
-
src: "https://
|
|
147
|
-
alt: "
|
|
147
|
+
src: "https://file.springbrand.ai/web_assets/template-logo.svg",
|
|
148
|
+
alt: "Placeholder logo"
|
|
148
149
|
},
|
|
149
150
|
navLinks: [
|
|
150
151
|
{ url: "#", title: "Link One" },
|
|
@@ -14,7 +14,7 @@ const MegaMenuNavbar = (props) => {
|
|
|
14
14
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("relative z-[999] flex w-full items-center justify-between border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "size-full lg:flex lg:items-center lg:justify-between", children: [
|
|
15
15
|
/* @__PURE__ */ jsxs("div", { className: "lg:flex", children: [
|
|
16
16
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
17
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
17
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
18
18
|
/* @__PURE__ */ jsx("button", { className: "-mr-2 flex size-12 flex-col items-center justify-center lg:hidden", onClick: () => setIsMobileMenuOpen((prev) => !prev), children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("span", { className: "my-[3px] h-0.5 w-6 bg-black" }, i)) })
|
|
19
19
|
] }),
|
|
20
20
|
/* @__PURE__ */ jsxs(motion.div, { variants: { open: { height: "var(--height-open, 100dvh)" }, close: { height: "var(--height-closed, 0)" } }, initial: "close", exit: "close", animate: isMobileMenuOpen ? "open" : "close", transition: { duration: 0.4 }, className: "overflow-auto px-[5%] lg:ml-6 lg:flex lg:items-center lg:px-0 lg:[--height-closed:auto] lg:[--height-open:auto]", children: [
|
|
@@ -26,7 +26,8 @@ const MegaMenuNavbar = (props) => {
|
|
|
26
26
|
] }) });
|
|
27
27
|
};
|
|
28
28
|
const MegaMenuNavbarDefaults = {
|
|
29
|
-
|
|
29
|
+
__metadata: { type: "header" },
|
|
30
|
+
logo: { url: "#", src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo image" },
|
|
30
31
|
navLinks: [{ title: "Link One", url: "#" }, { title: "Link Two", url: "#" }, { title: "Link Three", url: "#" }, { title: "Link Four", url: "#" }],
|
|
31
32
|
button: { label: "Button", size: "sm" },
|
|
32
33
|
buttons: [{ label: "Button", variant: "secondary", size: "sm" }, { label: "Button", size: "sm" }],
|
|
@@ -15,7 +15,7 @@ const StandardNavbar = (props) => {
|
|
|
15
15
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
16
16
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("z-[999] flex w-full items-center border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "size-full lg:flex lg:items-center lg:justify-between", children: [
|
|
17
17
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
18
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
18
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
19
19
|
/* @__PURE__ */ jsxs("button", { className: "-mr-2 flex size-12 flex-col items-center justify-center lg:hidden", onClick: () => setIsMobileMenuOpen((prev) => !prev), children: [
|
|
20
20
|
/* @__PURE__ */ jsx(motion.span, { className: "my-[3px] h-0.5 w-6 bg-black", animate: isMobileMenuOpen ? ["open", "rotatePhase"] : "closed", variants: topLineVariants }),
|
|
21
21
|
/* @__PURE__ */ jsx(motion.span, { className: "my-[3px] h-0.5 w-6 bg-black", animate: isMobileMenuOpen ? "open" : "closed", variants: middleLineVariants }),
|
|
@@ -45,7 +45,8 @@ const topLineVariants = { open: { translateY: 8, transition: { delay: 0.1 } }, r
|
|
|
45
45
|
const middleLineVariants = { open: { width: 0, transition: { duration: 0.1 } }, closed: { width: "1.5rem", transition: { delay: 0.3, duration: 0.2 } } };
|
|
46
46
|
const bottomLineVariants = { open: { translateY: -8, transition: { delay: 0.1 } }, rotatePhase: { rotate: 45, transition: { delay: 0.2 } }, closed: { translateY: 0, rotate: 0, transition: { duration: 0.2 } } };
|
|
47
47
|
const StandardNavbarDefaults = {
|
|
48
|
-
|
|
48
|
+
__metadata: { type: "header" },
|
|
49
|
+
logo: { url: "#", src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo image" },
|
|
49
50
|
navLinks: [
|
|
50
51
|
{ title: "Link One", url: "#" },
|
|
51
52
|
{ title: "Link Two", url: "#" },
|
|
@@ -110,15 +110,15 @@ const CarouselHeroDefaults = {
|
|
|
110
110
|
images: [
|
|
111
111
|
{
|
|
112
112
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
113
|
-
alt: "
|
|
113
|
+
alt: "Placeholder image 1"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
117
|
-
alt: "
|
|
117
|
+
alt: "Placeholder image 2"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
121
|
-
alt: "
|
|
121
|
+
alt: "Placeholder image 3"
|
|
122
122
|
}
|
|
123
123
|
],
|
|
124
124
|
carouselHeading: "Short heading goes here",
|
|
@@ -61,37 +61,37 @@ const ColumnScrollHeroDefaults = {
|
|
|
61
61
|
imagesPartOne: [
|
|
62
62
|
{
|
|
63
63
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
64
|
-
alt: "
|
|
64
|
+
alt: "Placeholder image 1"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
|
-
alt: "
|
|
68
|
+
alt: "Placeholder image 2"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
72
|
-
alt: "
|
|
72
|
+
alt: "Placeholder image 3"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
76
|
-
alt: "
|
|
76
|
+
alt: "Placeholder image 4"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
imagesPartTwo: [
|
|
80
80
|
{
|
|
81
81
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
82
|
-
alt: "
|
|
82
|
+
alt: "Placeholder image 5"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
86
|
-
alt: "
|
|
86
|
+
alt: "Placeholder image 6"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
90
|
-
alt: "
|
|
90
|
+
alt: "Placeholder image 7"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
94
|
-
alt: "
|
|
94
|
+
alt: "Placeholder image 8"
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
};
|
|
@@ -57,27 +57,27 @@ const DualMarqueeHeroDefaults = {
|
|
|
57
57
|
images: [
|
|
58
58
|
{
|
|
59
59
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
60
|
-
alt: "
|
|
60
|
+
alt: "Placeholder image 1"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
64
|
-
alt: "
|
|
64
|
+
alt: "Placeholder image 2"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
|
-
alt: "
|
|
68
|
+
alt: "Placeholder image 3"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
72
|
-
alt: "
|
|
72
|
+
alt: "Placeholder image 4"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
76
|
-
alt: "
|
|
76
|
+
alt: "Placeholder image 5"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
80
|
-
alt: "
|
|
80
|
+
alt: "Placeholder image 6"
|
|
81
81
|
}
|
|
82
82
|
]
|
|
83
83
|
};
|
|
@@ -80,7 +80,7 @@ const FullscreenVideoHeroDefaults = {
|
|
|
80
80
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
81
81
|
images: [{
|
|
82
82
|
src: "https://picsum.photos/seed/hero-video/1200/800",
|
|
83
|
-
alt: "
|
|
83
|
+
alt: "Placeholder image"
|
|
84
84
|
}]
|
|
85
85
|
};
|
|
86
86
|
export {
|
|
@@ -8,6 +8,7 @@ import { CompoundButton } from "../../../puck-base/button.js";
|
|
|
8
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
11
|
+
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
11
12
|
const GridExpandHero = (props) => {
|
|
12
13
|
const {
|
|
13
14
|
heading,
|
|
@@ -20,6 +21,7 @@ const GridExpandHero = (props) => {
|
|
|
20
21
|
...props
|
|
21
22
|
};
|
|
22
23
|
const { className: sectionClassName, style: sectionStyle, css, textAlign = "left", gridRatio } = { ...GridExpandHeroDefaults.styles, ...styles };
|
|
24
|
+
const { isEditor } = useEditorContext();
|
|
23
25
|
const isMobile = useMediaQuery("(max-width: 767px)");
|
|
24
26
|
const sectionRef = useRef(null);
|
|
25
27
|
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
@@ -56,14 +58,21 @@ const GridExpandHero = (props) => {
|
|
|
56
58
|
const centerRightImageGroup = {
|
|
57
59
|
x: createTransform(["0vw", "25vw"], ["0vw", "32vw"])
|
|
58
60
|
};
|
|
61
|
+
const editorLeftContainerHeight = { height: "100vh" };
|
|
62
|
+
const editorLeftLeftImageGroup = { x: isMobile ? "-25vw" : "-50vw" };
|
|
63
|
+
const editorLeftCenterImageContainer = { x: isMobile ? "-25vw" : "-50vw", width: "100vw", height: "100vh" };
|
|
64
|
+
const editorLeftRightImage = { x: isMobile ? "25vw" : "20vw" };
|
|
65
|
+
const editorCenterLeftImageGroup = { x: isMobile ? "-25vw" : "-32vw" };
|
|
66
|
+
const editorCenterCenterImageContainer = { x: isMobile ? "-25vw" : "-32vw", width: "100vw", height: "100vh" };
|
|
67
|
+
const editorCenterRightImageGroup = { x: isMobile ? "25vw" : "32vw" };
|
|
59
68
|
if (isCenter) {
|
|
60
|
-
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
69
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative", isEditor ? "h-auto" : "h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
61
70
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full max-w-lg text-center", children: [
|
|
62
71
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
63
72
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
64
73
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-x-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)) })
|
|
65
74
|
] }) }) }),
|
|
66
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
75
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex h-screen w-full items-center overflow-hidden", !isEditor && "sticky top-0"), children: /* @__PURE__ */ jsxs(
|
|
67
76
|
"div",
|
|
68
77
|
{
|
|
69
78
|
className: "z-10 grid w-full grid-flow-col content-center items-center justify-center",
|
|
@@ -76,7 +85,7 @@ const GridExpandHero = (props) => {
|
|
|
76
85
|
motion.div,
|
|
77
86
|
{
|
|
78
87
|
className: "grid grid-flow-col grid-cols-1 items-center justify-items-end gap-4 justify-self-end px-4",
|
|
79
|
-
style: centerLeftImageGroup,
|
|
88
|
+
style: isEditor ? editorCenterLeftImageGroup : centerLeftImageGroup,
|
|
80
89
|
children: [
|
|
81
90
|
/* @__PURE__ */ jsx("div", { className: "relative hidden md:block md:w-[25vw] lg:w-[20vw]", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[2/3] w-full object-cover", ...images[0] }) }),
|
|
82
91
|
/* @__PURE__ */ jsxs("div", { className: "relative grid w-[40vw] grid-cols-1 grid-rows-[auto_auto] gap-4 self-center md:w-[18vw]", children: [
|
|
@@ -86,12 +95,12 @@ const GridExpandHero = (props) => {
|
|
|
86
95
|
]
|
|
87
96
|
}
|
|
88
97
|
),
|
|
89
|
-
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: centerCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[3] }) }),
|
|
98
|
+
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorCenterCenterImageContainer : centerCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[3] }) }),
|
|
90
99
|
/* @__PURE__ */ jsxs(
|
|
91
100
|
motion.div,
|
|
92
101
|
{
|
|
93
102
|
className: "grid grid-flow-col items-center justify-items-start gap-4 justify-self-start px-4",
|
|
94
|
-
style: centerRightImageGroup,
|
|
103
|
+
style: isEditor ? editorCenterRightImageGroup : centerRightImageGroup,
|
|
95
104
|
children: [
|
|
96
105
|
/* @__PURE__ */ jsxs("div", { className: "relative grid w-[40vw] grid-cols-1 grid-rows-[auto_auto] gap-4 self-center md:w-[18vw]", children: [
|
|
97
106
|
/* @__PURE__ */ jsx("div", { className: "relative w-[40vw] sm:w-auto", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[3/4] w-full object-cover", ...images[4] }) }),
|
|
@@ -107,26 +116,26 @@ const GridExpandHero = (props) => {
|
|
|
107
116
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
|
|
108
117
|
] });
|
|
109
118
|
}
|
|
110
|
-
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
119
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative", isEditor ? "h-auto" : "h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
111
120
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg", children: [
|
|
112
121
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
113
122
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
114
123
|
/* @__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)) })
|
|
115
124
|
] }) }) }),
|
|
116
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
125
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex h-screen w-full items-center overflow-hidden", !isEditor && "sticky top-0"), children: /* @__PURE__ */ jsxs(
|
|
117
126
|
motion.div,
|
|
118
127
|
{
|
|
119
128
|
className: "z-10 grid w-full grid-flow-col justify-center",
|
|
120
129
|
style: {
|
|
121
130
|
gridTemplateColumns: gridColsStyle,
|
|
122
|
-
...leftContainerHeight
|
|
131
|
+
...isEditor ? editorLeftContainerHeight : leftContainerHeight
|
|
123
132
|
},
|
|
124
133
|
children: [
|
|
125
134
|
/* @__PURE__ */ jsxs(
|
|
126
135
|
motion.div,
|
|
127
136
|
{
|
|
128
137
|
className: "grid grid-flow-col grid-cols-1 justify-items-end gap-4 justify-self-end px-4",
|
|
129
|
-
style: leftLeftImageGroup,
|
|
138
|
+
style: isEditor ? editorLeftLeftImageGroup : leftLeftImageGroup,
|
|
130
139
|
children: [
|
|
131
140
|
/* @__PURE__ */ jsx("div", { className: "relative top-[5%] hidden w-[40vw] sm:w-[25vw] md:block lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[2/3] w-full object-cover", ...images[0] }) }),
|
|
132
141
|
/* @__PURE__ */ jsxs("div", { className: "relative top-[-5%] flex flex-col gap-4 self-center", children: [
|
|
@@ -137,12 +146,12 @@ const GridExpandHero = (props) => {
|
|
|
137
146
|
]
|
|
138
147
|
}
|
|
139
148
|
),
|
|
140
|
-
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: leftCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[4] }) }),
|
|
149
|
+
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorLeftCenterImageContainer : leftCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[4] }) }),
|
|
141
150
|
/* @__PURE__ */ jsx(
|
|
142
151
|
motion.div,
|
|
143
152
|
{
|
|
144
153
|
className: "grid grid-flow-col grid-cols-1 gap-4 justify-self-start px-4",
|
|
145
|
-
style: leftRightImage,
|
|
154
|
+
style: isEditor ? editorLeftRightImage : leftRightImage,
|
|
146
155
|
children: /* @__PURE__ */ jsx("div", { className: "relative top-[5%] w-[40vw] md:w-[25vw] lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[3/4] w-full object-cover", ...images[5] }) })
|
|
147
156
|
}
|
|
148
157
|
)
|
|
@@ -171,27 +180,27 @@ const GridExpandHeroDefaults = {
|
|
|
171
180
|
images: [
|
|
172
181
|
{
|
|
173
182
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
174
|
-
alt: "
|
|
183
|
+
alt: "Placeholder image 1"
|
|
175
184
|
},
|
|
176
185
|
{
|
|
177
186
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
178
|
-
alt: "
|
|
187
|
+
alt: "Placeholder image 2"
|
|
179
188
|
},
|
|
180
189
|
{
|
|
181
190
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
182
|
-
alt: "
|
|
191
|
+
alt: "Placeholder image 3"
|
|
183
192
|
},
|
|
184
193
|
{
|
|
185
194
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
186
|
-
alt: "
|
|
195
|
+
alt: "Placeholder image 4"
|
|
187
196
|
},
|
|
188
197
|
{
|
|
189
198
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
190
|
-
alt: "
|
|
199
|
+
alt: "Placeholder image 5"
|
|
191
200
|
},
|
|
192
201
|
{
|
|
193
202
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
194
|
-
alt: "
|
|
203
|
+
alt: "Placeholder image 6"
|
|
195
204
|
}
|
|
196
205
|
]
|
|
197
206
|
};
|
|
@@ -65,15 +65,15 @@ const HorizontalMarqueeHeroDefaults = {
|
|
|
65
65
|
images: [
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
|
-
alt: "
|
|
68
|
+
alt: "Placeholder image 1"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
72
|
-
alt: "
|
|
72
|
+
alt: "Placeholder image 2"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
76
|
-
alt: "
|
|
76
|
+
alt: "Placeholder image 3"
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
79
|
};
|
|
@@ -7,6 +7,7 @@ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { motion, useMotionValue, useSpring, useTransform } from "framer-motion";
|
|
9
9
|
import { useCallback } from "react";
|
|
10
|
+
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
10
11
|
const imagePositions = {
|
|
11
12
|
group1: [
|
|
12
13
|
"bottom-[5%] left-[-8%] z-10 max-w-[18%] sm:bottom-[10%] lg:bottom-auto",
|
|
@@ -46,14 +47,27 @@ const getTransformStyles = (smoothMouseX, smoothMouseY, xRange, yRange) => {
|
|
|
46
47
|
};
|
|
47
48
|
};
|
|
48
49
|
const MouseTrackHero = (props) => {
|
|
49
|
-
const {
|
|
50
|
+
const {
|
|
51
|
+
heading,
|
|
52
|
+
description,
|
|
53
|
+
buttons = [],
|
|
54
|
+
group1Images = [],
|
|
55
|
+
group2Images = [],
|
|
56
|
+
styles
|
|
57
|
+
} = {
|
|
50
58
|
...MouseTrackHeroDefaults,
|
|
51
59
|
...props
|
|
52
60
|
};
|
|
53
|
-
const {
|
|
61
|
+
const {
|
|
62
|
+
className: sectionClassName,
|
|
63
|
+
style: sectionStyle,
|
|
64
|
+
css
|
|
65
|
+
} = styles ?? {};
|
|
66
|
+
const { isEditor } = useEditorContext();
|
|
54
67
|
const { smoothMouseX, smoothMouseY, handleMouseMove } = useMouseMove();
|
|
55
68
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
56
|
-
const
|
|
69
|
+
const disableMotion = isMobile || isEditor;
|
|
70
|
+
const Animate = disableMotion ? "div" : motion.div;
|
|
57
71
|
const canvasTransform = getTransformStyles(
|
|
58
72
|
smoothMouseX,
|
|
59
73
|
smoothMouseY,
|
|
@@ -77,26 +91,53 @@ const MouseTrackHero = (props) => {
|
|
|
77
91
|
{
|
|
78
92
|
className: "absolute inset-0 flex origin-bottom items-center justify-center",
|
|
79
93
|
style: transformStyles,
|
|
80
|
-
children: images.map((image, index) => /* @__PURE__ */ jsx("div", { className: `absolute w-full ${positions[index]}`, children: /* @__PURE__ */ jsx(
|
|
94
|
+
children: images.map((image, index) => /* @__PURE__ */ jsx("div", { className: `absolute w-full ${positions[index]}`, children: /* @__PURE__ */ jsx(
|
|
95
|
+
CompoundImage,
|
|
96
|
+
{
|
|
97
|
+
src: image.src,
|
|
98
|
+
alt: image.alt,
|
|
99
|
+
className: "size-full"
|
|
100
|
+
}
|
|
101
|
+
) }, index))
|
|
81
102
|
}
|
|
82
103
|
);
|
|
83
104
|
return /* @__PURE__ */ jsxs(
|
|
84
105
|
SectionWrapper,
|
|
85
106
|
{
|
|
86
|
-
className: cn(
|
|
107
|
+
className: cn(
|
|
108
|
+
"relative flex h-svh items-center justify-center overflow-hidden lg:h-screen",
|
|
109
|
+
sectionClassName
|
|
110
|
+
),
|
|
87
111
|
style: sectionStyle,
|
|
88
112
|
css,
|
|
89
|
-
onMouseMove: handleMouseMove,
|
|
113
|
+
onMouseMove: isEditor ? void 0 : handleMouseMove,
|
|
90
114
|
children: [
|
|
91
115
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] py-8 md:py-12 lg:py-14", children: /* @__PURE__ */ jsx("div", { className: "container max-w-lg", children: /* @__PURE__ */ jsxs("div", { className: "relative z-10 text-center", children: [
|
|
92
116
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
93
117
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
94
|
-
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
118
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
119
|
+
CompoundButton,
|
|
120
|
+
{
|
|
121
|
+
label: button.label,
|
|
122
|
+
variant: button.variant,
|
|
123
|
+
size: button.size,
|
|
124
|
+
action: button.action,
|
|
125
|
+
icon: button.icon
|
|
126
|
+
},
|
|
127
|
+
index
|
|
128
|
+
)) })
|
|
95
129
|
] }) }) }),
|
|
96
|
-
/* @__PURE__ */ jsxs(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
130
|
+
/* @__PURE__ */ jsxs(
|
|
131
|
+
Animate,
|
|
132
|
+
{
|
|
133
|
+
className: "absolute size-full",
|
|
134
|
+
style: canvasTransform,
|
|
135
|
+
children: [
|
|
136
|
+
renderImages(group1Images, imagePositions.group1, group1Transform),
|
|
137
|
+
renderImages(group2Images, imagePositions.group2, group2Transform)
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
)
|
|
100
141
|
]
|
|
101
142
|
}
|
|
102
143
|
);
|
|
@@ -108,37 +149,37 @@ const MouseTrackHeroDefaults = {
|
|
|
108
149
|
group1Images: [
|
|
109
150
|
{
|
|
110
151
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
111
|
-
alt: "
|
|
152
|
+
alt: "Placeholder image 1"
|
|
112
153
|
},
|
|
113
154
|
{
|
|
114
155
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
115
|
-
alt: "
|
|
156
|
+
alt: "Placeholder image 2"
|
|
116
157
|
},
|
|
117
158
|
{
|
|
118
159
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
119
|
-
alt: "
|
|
160
|
+
alt: "Placeholder image 3"
|
|
120
161
|
},
|
|
121
162
|
{
|
|
122
163
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
123
|
-
alt: "
|
|
164
|
+
alt: "Placeholder image 4"
|
|
124
165
|
}
|
|
125
166
|
],
|
|
126
167
|
group2Images: [
|
|
127
168
|
{
|
|
128
169
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
129
|
-
alt: "
|
|
170
|
+
alt: "Placeholder image 5"
|
|
130
171
|
},
|
|
131
172
|
{
|
|
132
173
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
133
|
-
alt: "
|
|
174
|
+
alt: "Placeholder image 6"
|
|
134
175
|
},
|
|
135
176
|
{
|
|
136
177
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
137
|
-
alt: "
|
|
178
|
+
alt: "Placeholder image 7"
|
|
138
179
|
},
|
|
139
180
|
{
|
|
140
181
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
141
|
-
alt: "
|
|
182
|
+
alt: "Placeholder image 8"
|
|
142
183
|
}
|
|
143
184
|
]
|
|
144
185
|
};
|
package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js
CHANGED
|
@@ -68,11 +68,11 @@ const MultiImageGridHeroDefaults = {
|
|
|
68
68
|
images: [
|
|
69
69
|
{
|
|
70
70
|
src: "https://picsum.photos/seed/hero-landscape/1200/800",
|
|
71
|
-
alt: "
|
|
71
|
+
alt: "Placeholder image 1"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
75
|
-
alt: "
|
|
75
|
+
alt: "Placeholder image 2"
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
styles: {
|