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
|
@@ -7,24 +7,105 @@ import { motion } from "framer-motion";
|
|
|
7
7
|
import { cn } from "../../../../utils/css-utils.js";
|
|
8
8
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
9
9
|
const CenteredNavbar = (props) => {
|
|
10
|
-
const { logo, navLinks, buttons, styles } = {
|
|
11
|
-
|
|
10
|
+
const { logo, navLinks, buttons, styles } = {
|
|
11
|
+
...CenteredNavbarDefaults,
|
|
12
|
+
...props
|
|
13
|
+
};
|
|
14
|
+
const {
|
|
15
|
+
className: sectionClassName,
|
|
16
|
+
style: sectionStyle,
|
|
17
|
+
css
|
|
18
|
+
} = styles ?? {};
|
|
12
19
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
SectionWrapper,
|
|
22
|
+
{
|
|
23
|
+
className: cn(
|
|
24
|
+
"z-[999] flex w-full items-center border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]",
|
|
25
|
+
sectionClassName
|
|
26
|
+
),
|
|
27
|
+
style: sectionStyle,
|
|
28
|
+
css,
|
|
29
|
+
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: [
|
|
30
|
+
/* @__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: [
|
|
31
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(
|
|
32
|
+
CompoundImage,
|
|
33
|
+
{
|
|
34
|
+
src: logo == null ? void 0 : logo.src,
|
|
35
|
+
alt: logo == null ? void 0 : logo.alt,
|
|
36
|
+
className: "h-9 w-auto"
|
|
37
|
+
}
|
|
38
|
+
) }),
|
|
39
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 lg:hidden", children: [
|
|
40
|
+
/* @__PURE__ */ jsx("div", { children: buttons == null ? void 0 : buttons.map((b, i) => /* @__PURE__ */ jsx(
|
|
41
|
+
Button,
|
|
42
|
+
{
|
|
43
|
+
className: "w-full px-4 py-1",
|
|
44
|
+
variant: b.variant,
|
|
45
|
+
size: b.size,
|
|
46
|
+
children: b.label
|
|
47
|
+
},
|
|
48
|
+
i
|
|
49
|
+
)) }),
|
|
50
|
+
/* @__PURE__ */ jsx(
|
|
51
|
+
"button",
|
|
52
|
+
{
|
|
53
|
+
className: "-mr-2 flex size-12 flex-col items-center justify-center",
|
|
54
|
+
onClick: () => setIsMobileMenuOpen((prev) => !prev),
|
|
55
|
+
children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("span", { className: "my-[3px] h-0.5 w-6 bg-black" }, i))
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
] })
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ jsx(
|
|
61
|
+
motion.div,
|
|
62
|
+
{
|
|
63
|
+
variants: {
|
|
64
|
+
open: { height: "var(--height-open, 100dvh)" },
|
|
65
|
+
close: { height: "var(--height-closed, 0)" }
|
|
66
|
+
},
|
|
67
|
+
animate: isMobileMenuOpen ? "open" : "close",
|
|
68
|
+
initial: "close",
|
|
69
|
+
transition: { duration: 0.4 },
|
|
70
|
+
className: "overflow-hidden px-[5%] text-center lg:flex lg:items-center lg:justify-center lg:px-0 lg:[--height-closed:auto] lg:[--height-open:auto]",
|
|
71
|
+
children: navLinks == null ? void 0 : navLinks.map((navLink, index) => /* @__PURE__ */ jsx(
|
|
72
|
+
"a",
|
|
73
|
+
{
|
|
74
|
+
href: navLink.url,
|
|
75
|
+
className: "block py-3 text-md first:pt-7 lg:px-4 lg:py-2 lg:text-base first:lg:pt-2",
|
|
76
|
+
children: navLink.title
|
|
77
|
+
},
|
|
78
|
+
index
|
|
79
|
+
))
|
|
80
|
+
}
|
|
81
|
+
),
|
|
82
|
+
/* @__PURE__ */ jsx("div", { className: "hidden justify-self-end gap-2 lg:flex", children: buttons == null ? void 0 : buttons.map((b, i) => /* @__PURE__ */ jsx(
|
|
83
|
+
Button,
|
|
84
|
+
{
|
|
85
|
+
className: "px-6 py-2",
|
|
86
|
+
variant: b.variant,
|
|
87
|
+
size: b.size,
|
|
88
|
+
children: b.label
|
|
89
|
+
},
|
|
90
|
+
i
|
|
91
|
+
)) })
|
|
19
92
|
] })
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className: "hidden justify-self-end lg:block", children: buttons == null ? void 0 : buttons.map((b, i) => /* @__PURE__ */ jsx(Button, { className: "px-6 py-2", variant: b.variant, size: b.size, children: b.label }, i)) })
|
|
23
|
-
] }) });
|
|
93
|
+
}
|
|
94
|
+
);
|
|
24
95
|
};
|
|
25
96
|
const CenteredNavbarDefaults = {
|
|
26
|
-
|
|
27
|
-
|
|
97
|
+
__metadata: { type: "header" },
|
|
98
|
+
logo: {
|
|
99
|
+
url: "#",
|
|
100
|
+
src: "https://file.springbrand.ai/web_assets/template-logo.svg",
|
|
101
|
+
alt: "Logo image"
|
|
102
|
+
},
|
|
103
|
+
navLinks: [
|
|
104
|
+
{ title: "Link One", url: "#" },
|
|
105
|
+
{ title: "Link Two", url: "#" },
|
|
106
|
+
{ title: "Link Three", url: "#" },
|
|
107
|
+
{ title: "Link Four", url: "#" }
|
|
108
|
+
],
|
|
28
109
|
button: { label: "Button", size: "sm" },
|
|
29
110
|
buttons: [{ label: "Button", size: "sm" }],
|
|
30
111
|
styles: {}
|
|
@@ -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
|
};
|
|
@@ -145,8 +145,24 @@ declare const conf: {
|
|
|
145
145
|
}];
|
|
146
146
|
};
|
|
147
147
|
gridRatio: {
|
|
148
|
-
readonly type: "
|
|
148
|
+
readonly type: "select";
|
|
149
149
|
readonly label: "Grid Ratio";
|
|
150
|
+
readonly options: readonly [{
|
|
151
|
+
readonly label: "25% / 50% / 25%";
|
|
152
|
+
readonly value: "25%_50%_25%";
|
|
153
|
+
}, {
|
|
154
|
+
readonly label: "32% / 36% / 32%";
|
|
155
|
+
readonly value: "32%_36%_32%";
|
|
156
|
+
}, {
|
|
157
|
+
readonly label: "33% / 33% / 33%";
|
|
158
|
+
readonly value: "33%_34%_33%";
|
|
159
|
+
}, {
|
|
160
|
+
readonly label: "20% / 60% / 20%";
|
|
161
|
+
readonly value: "20%_60%_20%";
|
|
162
|
+
}, {
|
|
163
|
+
readonly label: "40% / 30% / 30%";
|
|
164
|
+
readonly value: "40%_30%_30%";
|
|
165
|
+
}];
|
|
150
166
|
};
|
|
151
167
|
};
|
|
152
168
|
};
|
|
@@ -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
|
};
|