dune-react 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/image.js +16 -16
- package/dist/components/puck-base/index.d.ts +1 -13
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +88 -59
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +77 -61
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +67 -64
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +118 -17
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +161 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +142 -19
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +4 -2
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +91 -44
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +93 -43
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +27 -4
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
- package/dist/components/puck-block/location-sections/props.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +36 -23
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
- package/dist/components/puck-block/registry.generated.d.ts +13141 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +8 -4
- package/dist/components/puck-core/core/styles.d.ts +1 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
- package/dist/components/puck-core/fields/action-field.js +1 -1
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +4 -4
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
- package/dist/index.js +121 -104
- package/package.json +1 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/auto-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/object-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
|
@@ -16,28 +16,6 @@ declare const conf: {
|
|
|
16
16
|
label: string;
|
|
17
17
|
arrayFields: {
|
|
18
18
|
value: {
|
|
19
|
-
className: {
|
|
20
|
-
readonly type: "text";
|
|
21
|
-
readonly label: "Class Name";
|
|
22
|
-
readonly ai: {
|
|
23
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
style: {
|
|
27
|
-
readonly type: "object";
|
|
28
|
-
readonly label: "Style";
|
|
29
|
-
readonly objectFields: {};
|
|
30
|
-
readonly ai: {
|
|
31
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
css: {
|
|
35
|
-
readonly type: "textarea";
|
|
36
|
-
readonly label: "Custom CSS";
|
|
37
|
-
readonly ai: {
|
|
38
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
19
|
type: string;
|
|
42
20
|
};
|
|
43
21
|
text: {
|
|
@@ -62,28 +40,6 @@ declare const conf: {
|
|
|
62
40
|
type: string;
|
|
63
41
|
objectFields: {
|
|
64
42
|
src: {
|
|
65
|
-
className: {
|
|
66
|
-
readonly type: "text";
|
|
67
|
-
readonly label: "Class Name";
|
|
68
|
-
readonly ai: {
|
|
69
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
style: {
|
|
73
|
-
readonly type: "object";
|
|
74
|
-
readonly label: "Style";
|
|
75
|
-
readonly objectFields: {};
|
|
76
|
-
readonly ai: {
|
|
77
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
css: {
|
|
81
|
-
readonly type: "textarea";
|
|
82
|
-
readonly label: "Custom CSS";
|
|
83
|
-
readonly ai: {
|
|
84
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
43
|
type: string;
|
|
88
44
|
label: string;
|
|
89
45
|
};
|
|
@@ -96,6 +52,34 @@ declare const conf: {
|
|
|
96
52
|
};
|
|
97
53
|
};
|
|
98
54
|
};
|
|
55
|
+
styles: {
|
|
56
|
+
type: string;
|
|
57
|
+
label: string;
|
|
58
|
+
objectFields: {
|
|
59
|
+
className: {
|
|
60
|
+
readonly type: "text";
|
|
61
|
+
readonly label: "Class Name";
|
|
62
|
+
readonly ai: {
|
|
63
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
style: {
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly label: "Style";
|
|
69
|
+
readonly objectFields: {};
|
|
70
|
+
readonly ai: {
|
|
71
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
css: {
|
|
75
|
+
readonly type: "textarea";
|
|
76
|
+
readonly label: "Custom CSS";
|
|
77
|
+
readonly ai: {
|
|
78
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
};
|
|
99
83
|
};
|
|
100
84
|
defaultProps: TabHeroProps;
|
|
101
85
|
render: (props: TabHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,7 +11,7 @@ const conf = {
|
|
|
11
11
|
type: "array",
|
|
12
12
|
label: "Triggers",
|
|
13
13
|
arrayFields: {
|
|
14
|
-
value: { type: "text"
|
|
14
|
+
value: { type: "text" },
|
|
15
15
|
text: { type: "text" }
|
|
16
16
|
}
|
|
17
17
|
},
|
|
@@ -25,13 +25,18 @@ const conf = {
|
|
|
25
25
|
image: {
|
|
26
26
|
type: "object",
|
|
27
27
|
objectFields: {
|
|
28
|
-
src: { type: "image", label: "Image"
|
|
28
|
+
src: { type: "image", label: "Image" },
|
|
29
29
|
alt: { type: "text" }
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
+
},
|
|
36
|
+
styles: {
|
|
37
|
+
type: "object",
|
|
38
|
+
label: "Styles",
|
|
39
|
+
objectFields: { ...sectionWrapperFields }
|
|
35
40
|
}
|
|
36
41
|
},
|
|
37
42
|
defaultProps: TabHeroDefaults,
|
|
@@ -21,7 +21,13 @@ const ThreeImageParallaxHero = (props) => {
|
|
|
21
21
|
...ThreeImageParallaxHeroDefaults,
|
|
22
22
|
...props
|
|
23
23
|
};
|
|
24
|
-
const {
|
|
24
|
+
const {
|
|
25
|
+
className: sectionClassName,
|
|
26
|
+
style: sectionStyle,
|
|
27
|
+
css,
|
|
28
|
+
textAlign = "left",
|
|
29
|
+
responsive = false
|
|
30
|
+
} = { ...ThreeImageParallaxHeroDefaults.styles, ...styles };
|
|
25
31
|
const sectionRef = useRef(null);
|
|
26
32
|
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
27
33
|
const { scrollYProgress } = useScroll(
|
|
@@ -32,7 +38,11 @@ const ThreeImageParallaxHero = (props) => {
|
|
|
32
38
|
const isCenter = textAlign === "center";
|
|
33
39
|
const fixedLeftY = useTransform(scrollYProgress, [0, 1], ["-15.444%", "0%"]);
|
|
34
40
|
const fixedCenterY = useTransform(scrollYProgress, [0, 1], ["15.333%", "0%"]);
|
|
35
|
-
const fixedRightY = useTransform(
|
|
41
|
+
const fixedRightY = useTransform(
|
|
42
|
+
scrollYProgress,
|
|
43
|
+
[0, 0.5],
|
|
44
|
+
["11.333%", "-20%"]
|
|
45
|
+
);
|
|
36
46
|
const responsiveLeftY = useTransform(
|
|
37
47
|
scrollYProgress,
|
|
38
48
|
[0, 1],
|
|
@@ -57,51 +67,91 @@ const ThreeImageParallaxHero = (props) => {
|
|
|
57
67
|
const rightImageTranslate = {
|
|
58
68
|
y: responsive ? responsiveRightY : fixedRightY
|
|
59
69
|
};
|
|
60
|
-
return /* @__PURE__ */ jsx(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
SectionWrapper,
|
|
72
|
+
{
|
|
73
|
+
ref: sectionRef,
|
|
74
|
+
className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
|
|
75
|
+
style: sectionStyle,
|
|
76
|
+
css,
|
|
77
|
+
children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
78
|
+
/* @__PURE__ */ jsx("div", { className: "rb-12 mb-12 md:mb-18 lg:mb-20", children: /* @__PURE__ */ jsxs(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: isCenter ? "mx-auto w-full max-w-lg text-center" : "w-full max-w-lg",
|
|
82
|
+
children: [
|
|
83
|
+
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
84
|
+
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
85
|
+
/* @__PURE__ */ jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: isCenter ? "mt-6 flex items-center justify-center gap-4 md:mt-8" : "mt-6 flex flex-wrap gap-4 md:mt-8",
|
|
89
|
+
children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
90
|
+
CompoundButton,
|
|
91
|
+
{
|
|
92
|
+
label: button.label,
|
|
93
|
+
variant: button.variant,
|
|
94
|
+
size: button.size,
|
|
95
|
+
action: button.action,
|
|
96
|
+
icon: button.icon
|
|
97
|
+
},
|
|
98
|
+
index
|
|
99
|
+
))
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
) }),
|
|
105
|
+
/* @__PURE__ */ jsxs("div", { className: "relative flex justify-center gap-6 sm:gap-8 md:gap-0", children: [
|
|
68
106
|
/* @__PURE__ */ jsx(
|
|
69
|
-
|
|
107
|
+
motion.div,
|
|
70
108
|
{
|
|
71
|
-
className:
|
|
72
|
-
|
|
109
|
+
className: "absolute bottom-0 left-0 z-10 w-2/5 overflow-hidden rounded-lg shadow-xl",
|
|
110
|
+
style: leftImageTranslate,
|
|
111
|
+
children: /* @__PURE__ */ jsx(
|
|
112
|
+
CompoundImage,
|
|
113
|
+
{
|
|
114
|
+
src: imageLeft.src,
|
|
115
|
+
alt: imageLeft.alt,
|
|
116
|
+
className: "aspect-square size-full object-cover"
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
/* @__PURE__ */ jsx(
|
|
122
|
+
motion.div,
|
|
123
|
+
{
|
|
124
|
+
className: "mx-[10%] mb-[10%] w-1/2 overflow-hidden rounded-lg shadow-xl",
|
|
125
|
+
style: centerImageTranslate,
|
|
126
|
+
children: /* @__PURE__ */ jsx(
|
|
127
|
+
CompoundImage,
|
|
128
|
+
{
|
|
129
|
+
src: imageCenter.src,
|
|
130
|
+
alt: imageCenter.alt,
|
|
131
|
+
className: "aspect-square size-full object-cover"
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
),
|
|
136
|
+
/* @__PURE__ */ jsx(
|
|
137
|
+
motion.div,
|
|
138
|
+
{
|
|
139
|
+
className: "absolute right-0 top-[10%] w-2/5 overflow-hidden rounded-lg shadow-xl",
|
|
140
|
+
style: rightImageTranslate,
|
|
141
|
+
children: /* @__PURE__ */ jsx(
|
|
142
|
+
CompoundImage,
|
|
143
|
+
{
|
|
144
|
+
src: imageRight.src,
|
|
145
|
+
alt: imageRight.alt,
|
|
146
|
+
className: "aspect-[4/3] size-full object-cover"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
73
149
|
}
|
|
74
150
|
)
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
/* @__PURE__ */ jsx(motion.div, { className: "absolute bottom-0 left-0 z-10 w-2/5", style: leftImageTranslate, children: /* @__PURE__ */ jsx(
|
|
80
|
-
CompoundImage,
|
|
81
|
-
{
|
|
82
|
-
src: imageLeft.src,
|
|
83
|
-
alt: imageLeft.alt,
|
|
84
|
-
className: "aspect-square size-full object-cover"
|
|
85
|
-
}
|
|
86
|
-
) }),
|
|
87
|
-
/* @__PURE__ */ jsx(motion.div, { className: "mx-[10%] mb-[10%] w-1/2", style: centerImageTranslate, children: /* @__PURE__ */ jsx(
|
|
88
|
-
CompoundImage,
|
|
89
|
-
{
|
|
90
|
-
src: imageCenter.src,
|
|
91
|
-
alt: imageCenter.alt,
|
|
92
|
-
className: "aspect-square size-full object-cover"
|
|
93
|
-
}
|
|
94
|
-
) }),
|
|
95
|
-
/* @__PURE__ */ jsx(motion.div, { className: "absolute right-0 top-[10%] w-2/5", style: rightImageTranslate, children: /* @__PURE__ */ jsx(
|
|
96
|
-
CompoundImage,
|
|
97
|
-
{
|
|
98
|
-
src: imageRight.src,
|
|
99
|
-
alt: imageRight.alt,
|
|
100
|
-
className: "aspect-[4/3] size-full object-cover"
|
|
101
|
-
}
|
|
102
|
-
) })
|
|
103
|
-
] })
|
|
104
|
-
] }) });
|
|
151
|
+
] })
|
|
152
|
+
] })
|
|
153
|
+
}
|
|
154
|
+
);
|
|
105
155
|
};
|
|
106
156
|
const ThreeImageParallaxHeroDefaults = {
|
|
107
157
|
heading: "Long heading is what you see here in this header section",
|
|
@@ -5,22 +5,45 @@ import { CompoundImage } from "../../../puck-base/image.js";
|
|
|
5
5
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
6
6
|
import { cn } from "../../../../utils/css-utils.js";
|
|
7
7
|
const VerticalGalleryHero = (props) => {
|
|
8
|
-
const {
|
|
8
|
+
const {
|
|
9
|
+
heading,
|
|
10
|
+
description,
|
|
11
|
+
buttons = [],
|
|
12
|
+
images = [],
|
|
13
|
+
styles
|
|
14
|
+
} = {
|
|
9
15
|
...VerticalGalleryHeroDefaults,
|
|
10
16
|
...props
|
|
11
17
|
};
|
|
12
|
-
const {
|
|
18
|
+
const {
|
|
19
|
+
className: sectionClassName,
|
|
20
|
+
style: sectionStyle,
|
|
21
|
+
css
|
|
22
|
+
} = styles ?? {};
|
|
13
23
|
return /* @__PURE__ */ jsxs(
|
|
14
24
|
SectionWrapper,
|
|
15
25
|
{
|
|
16
|
-
className: cn(
|
|
26
|
+
className: cn(
|
|
27
|
+
"grid grid-cols-1 gap-y-16 pt-16 md:grid-flow-row md:pt-24 lg:grid-flow-col lg:grid-cols-2 lg:items-center lg:pt-0",
|
|
28
|
+
sectionClassName
|
|
29
|
+
),
|
|
17
30
|
style: sectionStyle,
|
|
18
31
|
css,
|
|
19
32
|
children: [
|
|
20
33
|
/* @__PURE__ */ jsxs("div", { className: "mx-[5%] max-w-[40rem] justify-self-start lg:ml-[5vw] lg:mr-20 lg:justify-self-end", children: [
|
|
21
34
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
22
35
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
23
|
-
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
36
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
37
|
+
CompoundButton,
|
|
38
|
+
{
|
|
39
|
+
label: button.label,
|
|
40
|
+
variant: button.variant,
|
|
41
|
+
size: button.size,
|
|
42
|
+
action: button.action,
|
|
43
|
+
icon: button.icon
|
|
44
|
+
},
|
|
45
|
+
index
|
|
46
|
+
)) })
|
|
24
47
|
] }),
|
|
25
48
|
/* @__PURE__ */ jsx("div", { className: "h-[30rem] overflow-hidden pl-[5vw] pr-[5vw] md:h-[40rem] lg:h-screen lg:pl-0", children: /* @__PURE__ */ jsxs("div", { className: "grid w-full grid-cols-2 gap-x-4", children: [
|
|
26
49
|
/* @__PURE__ */ jsx("div", { className: "-mt-[120%] grid size-full animate-loop-vertically columns-2 grid-cols-1 gap-4 self-center", children: images.map((image, index) => /* @__PURE__ */ jsx("div", { className: "grid size-full grid-cols-1 gap-4", children: /* @__PURE__ */ jsx("div", { className: "relative w-full pt-[120%]", children: /* @__PURE__ */ jsx(
|
|
@@ -13,3 +13,5 @@ export * from "./text-sections";
|
|
|
13
13
|
export * from "./showcase-sections";
|
|
14
14
|
export * from "./team-sections";
|
|
15
15
|
export * from "./footer-sections";
|
|
16
|
+
export { confMap, categories, sectionsMap, buildComponents, getComponentDefaultProps } from "./registry.generated";
|
|
17
|
+
export type { ComponentName, ComponentProps } from "./registry.generated";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
|
-
import type { MapLocation } from "@/components/puck-
|
|
3
|
+
import type { MapLocation } from "@/components/puck-core/core/fields";
|
|
4
4
|
interface LocationButton extends Omit<CompoundButtonProps, "label"> {
|
|
5
5
|
label?: string;
|
|
6
6
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
|
-
import type { MapLocation } from "@/components/puck-
|
|
3
|
+
import type { MapLocation } from "@/components/puck-core/core/fields";
|
|
4
4
|
interface LocationButton extends Omit<CompoundButtonProps, "label"> {
|
|
5
5
|
label?: string;
|
|
6
6
|
url?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
|
-
import type { Action } from "@/components/puck-
|
|
3
|
-
import type { MapLocation } from "@/components/puck-
|
|
2
|
+
import type { Action } from "@/components/puck-core/core/types";
|
|
3
|
+
import type { MapLocation } from "@/components/puck-core/core/fields";
|
|
4
4
|
export interface LocationEntry {
|
|
5
5
|
name: string;
|
|
6
6
|
location?: MapLocation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MapLocation } from "@/components/puck-
|
|
1
|
+
import type { MapLocation } from "@/components/puck-core/core/fields";
|
|
2
2
|
type LocationVariant = "location-1" | "location-2" | "location-3";
|
|
3
3
|
type LocationPadding = {
|
|
4
4
|
top?: "none" | "small" | "medium" | "large";
|
|
@@ -61,28 +61,6 @@ declare const conf: {
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
url: {
|
|
64
|
-
className: {
|
|
65
|
-
readonly type: "text";
|
|
66
|
-
readonly label: "Class Name";
|
|
67
|
-
readonly ai: {
|
|
68
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
style: {
|
|
72
|
-
readonly type: "object";
|
|
73
|
-
readonly label: "Style";
|
|
74
|
-
readonly objectFields: {};
|
|
75
|
-
readonly ai: {
|
|
76
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
css: {
|
|
80
|
-
readonly type: "textarea";
|
|
81
|
-
readonly label: "Custom CSS";
|
|
82
|
-
readonly ai: {
|
|
83
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
64
|
type: string;
|
|
87
65
|
};
|
|
88
66
|
};
|
|
@@ -19,7 +19,12 @@ const TabStats = (props) => {
|
|
|
19
19
|
...TabStatsDefaults,
|
|
20
20
|
...props
|
|
21
21
|
};
|
|
22
|
-
const {
|
|
22
|
+
const {
|
|
23
|
+
className: sectionClassName,
|
|
24
|
+
style: sectionStyle,
|
|
25
|
+
css,
|
|
26
|
+
mediaPosition = "left"
|
|
27
|
+
} = styles ?? {};
|
|
23
28
|
const isMediaLeft = mediaPosition === "left";
|
|
24
29
|
const mediaPanel = /* @__PURE__ */ jsx("div", { className: "max-size-full flex items-center justify-center overflow-hidden", children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
25
30
|
TabsContent,
|
|
@@ -54,7 +59,7 @@ const TabStats = (props) => {
|
|
|
54
59
|
},
|
|
55
60
|
tab.value
|
|
56
61
|
)) });
|
|
57
|
-
const tabTriggers = /* @__PURE__ */ jsx(TabsList, { className: "grid grid-cols-1 items-center gap-x-4 gap-y-10", children: tabs.map((tab, index) => /* @__PURE__ */ jsxs(
|
|
62
|
+
const tabTriggers = /* @__PURE__ */ jsx(TabsList, { className: "grid grid-cols-1 h-full! w-full! items-center gap-x-4 gap-y-10", children: tabs.map((tab, index) => /* @__PURE__ */ jsxs(
|
|
58
63
|
TabsTrigger,
|
|
59
64
|
{
|
|
60
65
|
value: tab.value,
|
|
@@ -67,27 +72,35 @@ const TabStats = (props) => {
|
|
|
67
72
|
},
|
|
68
73
|
index
|
|
69
74
|
)) });
|
|
70
|
-
return /* @__PURE__ */ jsx(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
return /* @__PURE__ */ jsx(
|
|
76
|
+
SectionWrapper,
|
|
77
|
+
{
|
|
78
|
+
className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName),
|
|
79
|
+
style: sectionStyle,
|
|
80
|
+
css,
|
|
81
|
+
children: /* @__PURE__ */ jsxs("div", { className: "container flex flex-col items-start", children: [
|
|
82
|
+
/* @__PURE__ */ jsxs("div", { className: "rb-12 mb-12 w-full max-w-lg md:mb-18 lg:mb-20", children: [
|
|
83
|
+
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
84
|
+
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
85
|
+
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
86
|
+
] }),
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
Tabs,
|
|
89
|
+
{
|
|
90
|
+
defaultValue: defaultTabValue,
|
|
91
|
+
className: "grid grid-cols-1 items-center gap-y-12 md:grid-cols-2 md:gap-x-12 lg:gap-x-20",
|
|
92
|
+
children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
93
|
+
mediaPanel,
|
|
94
|
+
tabTriggers
|
|
95
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
96
|
+
tabTriggers,
|
|
97
|
+
mediaPanel
|
|
98
|
+
] })
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
] })
|
|
102
|
+
}
|
|
103
|
+
);
|
|
91
104
|
};
|
|
92
105
|
const TabStatsDefaults = {
|
|
93
106
|
tagline: "Tagline",
|
|
@@ -20,28 +20,6 @@ declare const conf: {
|
|
|
20
20
|
label: string;
|
|
21
21
|
objectFields: {
|
|
22
22
|
planName: {
|
|
23
|
-
className: {
|
|
24
|
-
readonly type: "text";
|
|
25
|
-
readonly label: "Class Name";
|
|
26
|
-
readonly ai: {
|
|
27
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
style: {
|
|
31
|
-
readonly type: "object";
|
|
32
|
-
readonly label: "Style";
|
|
33
|
-
readonly objectFields: {};
|
|
34
|
-
readonly ai: {
|
|
35
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
css: {
|
|
39
|
-
readonly type: "textarea";
|
|
40
|
-
readonly label: "Custom CSS";
|
|
41
|
-
readonly ai: {
|
|
42
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
23
|
type: string;
|
|
46
24
|
};
|
|
47
25
|
monthlyPrice: {
|