dune-react 0.0.40 → 0.0.42
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/contact-sections/centered-form/index.d.ts +96 -0
- package/dist/components/puck-block/contact-sections/centered-form/index.js +6 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +3 -3
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.d.ts +159 -0
- package/dist/components/puck-block/contact-sections/contact-cards-grid/index.js +14 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +99 -0
- package/dist/components/puck-block/contact-sections/contact-modal/index.js +7 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +87 -0
- package/dist/components/puck-block/contact-sections/form-with-media/index.js +4 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +104 -0
- package/dist/components/puck-block/contact-sections/header-form-cards/index.js +13 -2
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.d.ts +150 -0
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/index.js +12 -1
- package/dist/components/puck-block/contact-sections/info-cards-media/index.d.ts +150 -0
- package/dist/components/puck-block/contact-sections/info-cards-media/index.js +12 -1
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +147 -0
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.js +5 -1
- package/dist/components/puck-block/contact-sections/props.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +96 -0
- package/dist/components/puck-block/contact-sections/split-info-form/index.js +6 -1
- package/dist/components/puck-block/contact-sections/tab-locations/index.d.ts +147 -0
- package/dist/components/puck-block/contact-sections/tab-locations/index.js +5 -1
- package/dist/components/puck-block/cta-sections/props.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/props.js +8 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +75 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +6 -6
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +3 -3
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +3 -3
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/dual-column-accordion-faq.js +2 -2
- package/dist/components/puck-block/faq-sections/props.d.ts +2 -2
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js +5 -5
- package/dist/components/puck-block/faq-sections/stacked-static-faq/stacked-static-faq.js +3 -3
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +6 -0
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.js +2 -0
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.js +2 -2
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +6 -0
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.js +2 -0
- package/dist/components/puck-block/feature-sections/props.d.ts +3 -3
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +6 -6
- package/dist/components/puck-block/feature-sections/text-only-section/component.js +8 -8
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +226 -2
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +34 -1
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +2 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +159 -2
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +32 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +2 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +114 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +44 -2
- package/dist/components/puck-block/footer-sections/props.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.d.ts +145 -0
- package/dist/components/puck-block/gallery-sections/asymmetric-grid/index.js +6 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +169 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +11 -2
- package/dist/components/puck-block/gallery-sections/image-carousel/image-carousel.js +6 -6
- package/dist/components/puck-block/gallery-sections/image-carousel/index.d.ts +145 -0
- package/dist/components/puck-block/gallery-sections/image-carousel/index.js +6 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.d.ts +163 -0
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/index.js +9 -1
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.d.ts +145 -0
- package/dist/components/puck-block/gallery-sections/masonry-grid/index.js +6 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +104 -0
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.js +7 -3
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +3 -3
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +104 -0
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.js +7 -3
- package/dist/components/puck-block/gallery-sections/props.d.ts +3 -3
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.d.ts +145 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax/index.js +7 -1
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +228 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +13 -1
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +145 -0
- package/dist/components/puck-block/gallery-sections/split-carousel/index.js +6 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.d.ts +145 -0
- package/dist/components/puck-block/gallery-sections/static-grid/index.js +6 -0
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +5 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.js +8 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +5 -2
- package/dist/components/puck-block/header-sections/drawer-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +5 -2
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +5 -2
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +5 -2
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.js +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +5 -2
- package/dist/components/puck-block/header-sections/standard-navbar/index.js +8 -1
- package/dist/components/puck-block/hero-sections/carousel-hero/component.d.ts +1 -6
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +24 -36
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +0 -6
- package/dist/components/puck-block/hero-sections/carousel-hero/index.js +1 -3
- package/dist/components/puck-block/hero-sections/props.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +5 -5
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.d.ts +79 -0
- package/dist/components/puck-block/metrics-sections/center-media-stats/index.js +2 -0
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +6 -1
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.d.ts +55 -0
- package/dist/components/puck-block/pricing-sections/pricing-card-grid/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/component.js +7 -7
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +55 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +3 -1
- package/dist/components/puck-block/pricing-sections/props.d.ts +2 -2
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +64 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +5 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +70 -0
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +7 -2
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.d.ts +78 -0
- package/dist/components/puck-block/pricing-sections/tab-pricing-grid/index.js +13 -1
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.d.ts +23 -0
- package/dist/components/puck-block/pricing-sections/tab-single-pricing/index.js +10 -1
- package/dist/components/puck-block/registry.generated.d.ts +5734 -2060
- package/dist/components/puck-block/registry.generated.js +14 -14
- package/dist/components/puck-block/showcase-sections/compact-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/component.js +3 -3
- package/dist/components/puck-block/showcase-sections/props.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/single-column-timeline/component.js +6 -6
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/component.js +6 -6
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/component.js +6 -6
- package/dist/components/puck-block/team-sections/props.d.ts +1 -1
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-carousel/index.js +22 -1
- package/dist/components/puck-block/team-sections/team-grid/component.js +3 -3
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-grid/index.js +22 -1
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +22 -1
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-sticky-scatter/index.js +22 -1
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +25 -0
- package/dist/components/puck-block/team-sections/team-two-column/index.js +22 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.d.ts +3 -0
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/index.js +6 -1
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/component.js +3 -3
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.d.ts +9 -0
- package/dist/components/puck-block/testimonial-sections/halfscreen-testimonial-carousel/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/index.d.ts +9 -0
- package/dist/components/puck-block/testimonial-sections/marquee-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.d.ts +9 -0
- package/dist/components/puck-block/testimonial-sections/masonry-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/props.d.ts +5 -5
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +9 -0
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.js +3 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +7 -7
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.d.ts +47 -0
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/index.js +5 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/component.js +6 -6
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.d.ts +30 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-card-grid/index.js +6 -1
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/component.js +9 -9
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.d.ts +21 -0
- package/dist/components/puck-block/testimonial-sections/testimonial-carousel/index.js +5 -1
- package/dist/components/puck-block/text-sections/blog-article/component.js +3 -3
- package/dist/components/puck-block/text-sections/props.d.ts +3 -3
- package/dist/components/puck-block/text-sections/prose-content/component.js +3 -3
- package/dist/components/puck-core/core/props/index.js +7 -0
- package/dist/components/puck-core/core/puck-fields-to-zod.d.ts +1 -0
- package/dist/components/puck-core/core/puck-fields-to-zod.js +21 -10
- package/package.json +1 -1
|
@@ -26,7 +26,7 @@ const TextBlockCta = (props) => {
|
|
|
26
26
|
css,
|
|
27
27
|
textLayout = "left",
|
|
28
28
|
bgMedia = "none",
|
|
29
|
-
bordered = false,
|
|
29
|
+
bordered = "false",
|
|
30
30
|
// formType = "buttons",
|
|
31
31
|
bottomContent = "none"
|
|
32
32
|
} = styles ?? {};
|
|
@@ -95,7 +95,7 @@ const TextBlockCta = (props) => {
|
|
|
95
95
|
}
|
|
96
96
|
if (isInlineRow) {
|
|
97
97
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col items-start gap-6 md:flex-row md:items-center md:justify-between", {
|
|
98
|
-
"border border-border-primary p-8 md:p-12": bordered && !isFullscreenBg
|
|
98
|
+
"border border-border-primary p-8 md:p-12": bordered === "true" && !isFullscreenBg
|
|
99
99
|
}), children: [
|
|
100
100
|
/* @__PURE__ */ jsx("h2", { className: cn("text-5xl font-bold md:text-7xl lg:text-8xl", textColorClass), children: heading }),
|
|
101
101
|
renderActions()
|
|
@@ -154,7 +154,7 @@ const TextBlockCtaDefaults = {
|
|
|
154
154
|
styles: {
|
|
155
155
|
textLayout: "left",
|
|
156
156
|
bgMedia: "none",
|
|
157
|
-
bordered: false,
|
|
157
|
+
bordered: "false",
|
|
158
158
|
// formType: "buttons",
|
|
159
159
|
bottomContent: "none"
|
|
160
160
|
}
|
|
@@ -16,7 +16,7 @@ const DualColumnAccordionFaq = (props) => {
|
|
|
16
16
|
...DualColumnAccordionFaqDefaults,
|
|
17
17
|
...props
|
|
18
18
|
};
|
|
19
|
-
const { className: sectionClassName, style: sectionStyle, css, bordered = false } = styles ?? {};
|
|
19
|
+
const { className: sectionClassName, style: sectionStyle, css, bordered = "false" } = styles ?? {};
|
|
20
20
|
const halfLength = Math.ceil(questions.length / 2);
|
|
21
21
|
const firstColumnQuestions = questions.slice(0, halfLength);
|
|
22
22
|
const secondColumnQuestions = questions.slice(halfLength);
|
|
@@ -72,7 +72,7 @@ const DualColumnAccordionFaqDefaults = {
|
|
|
72
72
|
footerDescription: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
73
73
|
button: { label: "Contact", variant: "secondary" },
|
|
74
74
|
styles: {
|
|
75
|
-
bordered: false
|
|
75
|
+
bordered: "false"
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
@@ -13,8 +13,8 @@ export interface FaqSectionStyles {
|
|
|
13
13
|
css?: string;
|
|
14
14
|
textAlign?: "left" | "center";
|
|
15
15
|
gridColumns?: "1" | "2" | "3";
|
|
16
|
-
bordered?:
|
|
17
|
-
hasFooter?:
|
|
16
|
+
bordered?: string;
|
|
17
|
+
hasFooter?: string;
|
|
18
18
|
}
|
|
19
19
|
export interface FaqQuestion {
|
|
20
20
|
title: string;
|
package/dist/components/puck-block/faq-sections/stacked-accordion-faq/stacked-accordion-faq.js
CHANGED
|
@@ -21,8 +21,8 @@ const StackedAccordionFaq = (props) => {
|
|
|
21
21
|
style: sectionStyle,
|
|
22
22
|
css,
|
|
23
23
|
textAlign = "center",
|
|
24
|
-
hasFooter = true,
|
|
25
|
-
bordered = false
|
|
24
|
+
hasFooter = "true",
|
|
25
|
+
bordered = "false"
|
|
26
26
|
} = styles ?? {};
|
|
27
27
|
const isCenter = textAlign === "center";
|
|
28
28
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container max-w-lg", children: [
|
|
@@ -52,7 +52,7 @@ const StackedAccordionFaq = (props) => {
|
|
|
52
52
|
},
|
|
53
53
|
index
|
|
54
54
|
)) }),
|
|
55
|
-
hasFooter && /* @__PURE__ */ jsxs("div", { className: cn("mx-auto mt-12 max-w-md md:mt-18 lg:mt-20", { "text-center": isCenter }), children: [
|
|
55
|
+
hasFooter === "true" && /* @__PURE__ */ jsxs("div", { className: cn("mx-auto mt-12 max-w-md md:mt-18 lg:mt-20", { "text-center": isCenter }), children: [
|
|
56
56
|
/* @__PURE__ */ jsx("h4", { className: "mb-3 text-2xl font-bold md:mb-4 md:text-3xl md:leading-[1.3] lg:text-4xl", children: footerHeading }),
|
|
57
57
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: footerDescription }),
|
|
58
58
|
/* @__PURE__ */ jsx("div", { className: "mt-6 md:mt-8", children: /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }) })
|
|
@@ -74,8 +74,8 @@ const StackedAccordionFaqDefaults = {
|
|
|
74
74
|
button: { label: "Contact", variant: "secondary" },
|
|
75
75
|
styles: {
|
|
76
76
|
textAlign: "center",
|
|
77
|
-
hasFooter: true,
|
|
78
|
-
bordered: false
|
|
77
|
+
hasFooter: "true",
|
|
78
|
+
bordered: "false"
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
@@ -21,7 +21,7 @@ const StackedStaticFaq = (props) => {
|
|
|
21
21
|
css,
|
|
22
22
|
textAlign = "center",
|
|
23
23
|
gridColumns = "1",
|
|
24
|
-
hasFooter = true
|
|
24
|
+
hasFooter = "true"
|
|
25
25
|
} = styles ?? {};
|
|
26
26
|
const isCenter = textAlign === "center";
|
|
27
27
|
const isInline = gridColumns === "1" && textAlign === "left";
|
|
@@ -40,7 +40,7 @@ const StackedStaticFaq = (props) => {
|
|
|
40
40
|
/* @__PURE__ */ jsx("h2", { className: "mb-3 text-base font-bold md:mb-4 md:text-md", children: question.title }),
|
|
41
41
|
/* @__PURE__ */ jsx("p", { children: question.answer })
|
|
42
42
|
] }, index)) }),
|
|
43
|
-
hasFooter && /* @__PURE__ */ jsxs("div", { className: cn("mx-auto mt-12 max-w-md md:mt-18 lg:mt-20", { "text-center": isCenter }), children: [
|
|
43
|
+
hasFooter === "true" && /* @__PURE__ */ jsxs("div", { className: cn("mx-auto mt-12 max-w-md md:mt-18 lg:mt-20", { "text-center": isCenter }), children: [
|
|
44
44
|
/* @__PURE__ */ jsx("h4", { className: "mb-3 text-2xl font-bold md:mb-4 md:text-3xl md:leading-[1.3] lg:text-4xl", children: footerHeading }),
|
|
45
45
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: footerDescription }),
|
|
46
46
|
/* @__PURE__ */ jsx("div", { className: "mt-6 md:mt-8", children: /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }) })
|
|
@@ -63,7 +63,7 @@ const StackedStaticFaqDefaults = {
|
|
|
63
63
|
styles: {
|
|
64
64
|
textAlign: "center",
|
|
65
65
|
gridColumns: "1",
|
|
66
|
-
hasFooter: true
|
|
66
|
+
hasFooter: "true"
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
export {
|
package/dist/components/puck-block/faq-sections/two-column-accordion-faq/two-column-accordion-faq.js
CHANGED
|
@@ -14,7 +14,7 @@ const TwoColumnAccordionFaq = (props) => {
|
|
|
14
14
|
...TwoColumnAccordionFaqDefaults,
|
|
15
15
|
...props
|
|
16
16
|
};
|
|
17
|
-
const { className: sectionClassName, style: sectionStyle, css, bordered = false } = styles ?? {};
|
|
17
|
+
const { className: sectionClassName, style: sectionStyle, css, bordered = "false" } = styles ?? {};
|
|
18
18
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container grid grid-cols-1 gap-y-12 md:grid-cols-2 md:gap-x-12 lg:grid-cols-[.75fr,1fr] lg:gap-x-20", children: [
|
|
19
19
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
20
20
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -51,7 +51,7 @@ const TwoColumnAccordionFaqDefaults = {
|
|
|
51
51
|
footerHeading: "",
|
|
52
52
|
footerDescription: "",
|
|
53
53
|
styles: {
|
|
54
|
-
bordered: false
|
|
54
|
+
bordered: "false"
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
@@ -16,9 +16,9 @@ export interface FeatureSectionStyles {
|
|
|
16
16
|
bgMedia?: "none" | "image" | "video";
|
|
17
17
|
contentSlots?: "default" | "subHeadings" | "subHeadingsInlineIcon" | "subHeadingsBlockIcon" | "logos" | "checklist" | "bulletList" | "icon" | "stats";
|
|
18
18
|
featureCardLayout?: "grid" | "list";
|
|
19
|
-
bordered?:
|
|
20
|
-
hasTagline?:
|
|
21
|
-
hasButtons?:
|
|
19
|
+
bordered?: string;
|
|
20
|
+
hasTagline?: string;
|
|
21
|
+
hasButtons?: string;
|
|
22
22
|
}
|
|
23
23
|
export interface FeatureSectionBaseProps {
|
|
24
24
|
tagline: string;
|
|
@@ -26,8 +26,8 @@ const TextMediaSplit = (props) => {
|
|
|
26
26
|
style: sectionStyle,
|
|
27
27
|
css,
|
|
28
28
|
mediaType = "image",
|
|
29
|
-
hasTagline = true,
|
|
30
|
-
hasButtons = true
|
|
29
|
+
hasTagline = "true",
|
|
30
|
+
hasButtons = "true"
|
|
31
31
|
} = styles ?? {};
|
|
32
32
|
const [isIframeLoaded, setIsIframeLoaded] = useState(false);
|
|
33
33
|
const renderMedia = () => {
|
|
@@ -63,10 +63,10 @@ const TextMediaSplit = (props) => {
|
|
|
63
63
|
};
|
|
64
64
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-y-12 md:grid-cols-2 md:items-center md:gap-x-12 lg:gap-x-20", children: [
|
|
65
65
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
66
|
-
hasTagline && /* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
66
|
+
hasTagline === "true" && /* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
67
67
|
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
68
68
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
69
|
-
hasButtons && /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center 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)) })
|
|
69
|
+
hasButtons === "true" && /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center 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)) })
|
|
70
70
|
] }),
|
|
71
71
|
/* @__PURE__ */ jsx("div", { children: renderMedia() })
|
|
72
72
|
] }) }) });
|
|
@@ -84,8 +84,8 @@ const TextMediaSplitDefaults = {
|
|
|
84
84
|
styles: {
|
|
85
85
|
mediaType: "image",
|
|
86
86
|
contentSlots: "default",
|
|
87
|
-
hasTagline: true,
|
|
88
|
-
hasButtons: true
|
|
87
|
+
hasTagline: "true",
|
|
88
|
+
hasButtons: "true"
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
export {
|
|
@@ -23,20 +23,20 @@ const TextOnlySection = (props) => {
|
|
|
23
23
|
css,
|
|
24
24
|
textLayout = "single",
|
|
25
25
|
bgMedia = "none",
|
|
26
|
-
hasTagline = true,
|
|
27
|
-
hasButtons = true
|
|
26
|
+
hasTagline = "true",
|
|
27
|
+
hasButtons = "true"
|
|
28
28
|
} = styles ?? {};
|
|
29
29
|
const isAlt = bgMedia !== "none";
|
|
30
30
|
const renderContent = () => {
|
|
31
31
|
if (textLayout === "twoColumn") {
|
|
32
32
|
return /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-5 md:grid-cols-2 md:gap-x-12 md:gap-y-8 lg:gap-x-20", children: [
|
|
33
33
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
34
|
-
hasTagline && /* @__PURE__ */ jsx("p", { className: `mb-3 font-semibold md:mb-4 ${isAlt ? "text-text-alternative" : ""}`, children: tagline }),
|
|
34
|
+
hasTagline === "true" && /* @__PURE__ */ jsx("p", { className: `mb-3 font-semibold md:mb-4 ${isAlt ? "text-text-alternative" : ""}`, children: tagline }),
|
|
35
35
|
/* @__PURE__ */ jsx("h2", { className: `text-5xl font-bold md:text-7xl lg:text-8xl ${isAlt ? "text-text-alternative" : ""}`, children: heading })
|
|
36
36
|
] }),
|
|
37
37
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
38
38
|
/* @__PURE__ */ jsx("p", { className: `md:text-md ${isAlt ? "text-text-alternative" : ""}`, children: description }),
|
|
39
|
-
hasButtons && /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center 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)) }),
|
|
39
|
+
hasButtons === "true" && /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center 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)) }),
|
|
40
40
|
subHeadings && subHeadings.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-8 grid grid-cols-1 gap-6 sm:grid-cols-2", children: subHeadings.map((sub, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
41
41
|
/* @__PURE__ */ jsx("h3", { className: `mb-2 text-xl font-bold md:text-2xl ${isAlt ? "text-text-alternative" : ""}`, children: sub.title }),
|
|
42
42
|
/* @__PURE__ */ jsx("p", { className: isAlt ? "text-text-alternative" : "", children: sub.description })
|
|
@@ -45,10 +45,10 @@ const TextOnlySection = (props) => {
|
|
|
45
45
|
] });
|
|
46
46
|
}
|
|
47
47
|
return /* @__PURE__ */ jsxs("div", { className: "w-full max-w-md", children: [
|
|
48
|
-
hasTagline && /* @__PURE__ */ jsx("p", { className: `mb-3 font-semibold md:mb-4 ${isAlt ? "text-text-alternative" : ""}`, children: tagline }),
|
|
48
|
+
hasTagline === "true" && /* @__PURE__ */ jsx("p", { className: `mb-3 font-semibold md:mb-4 ${isAlt ? "text-text-alternative" : ""}`, children: tagline }),
|
|
49
49
|
/* @__PURE__ */ jsx("h2", { className: `mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl ${isAlt ? "text-text-alternative" : ""}`, children: heading }),
|
|
50
50
|
/* @__PURE__ */ jsx("p", { className: `md:text-md ${isAlt ? "text-text-alternative" : ""}`, children: description }),
|
|
51
|
-
hasButtons && /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center 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)) })
|
|
51
|
+
hasButtons === "true" && /* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap items-center 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)) })
|
|
52
52
|
] });
|
|
53
53
|
};
|
|
54
54
|
if (bgMedia === "image" && bgImage) {
|
|
@@ -85,8 +85,8 @@ const TextOnlySectionDefaults = {
|
|
|
85
85
|
styles: {
|
|
86
86
|
textLayout: "single",
|
|
87
87
|
bgMedia: "none",
|
|
88
|
-
hasTagline: true,
|
|
89
|
-
hasButtons: true
|
|
88
|
+
hasTagline: "true",
|
|
89
|
+
hasButtons: "true"
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
export {
|
|
@@ -16,11 +16,235 @@ declare const conf: {
|
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
logo: {
|
|
19
|
-
type:
|
|
19
|
+
type: string;
|
|
20
20
|
objectFields: {
|
|
21
21
|
src: import("@puckeditor/core").Field<string>;
|
|
22
22
|
alt: {
|
|
23
|
-
type:
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
url: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
heading: {
|
|
31
|
+
readonly type: "text";
|
|
32
|
+
readonly contentEditable: true;
|
|
33
|
+
};
|
|
34
|
+
description: {
|
|
35
|
+
readonly type: "textarea";
|
|
36
|
+
readonly contentEditable: true;
|
|
37
|
+
};
|
|
38
|
+
newsletterHeading: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
newsletterDescription: {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
inputPlaceholder: {
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
button: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly objectFields: {
|
|
50
|
+
readonly label: {
|
|
51
|
+
readonly type: "text";
|
|
52
|
+
};
|
|
53
|
+
readonly action: {
|
|
54
|
+
type: "custom";
|
|
55
|
+
label: string;
|
|
56
|
+
render: typeof import("../../..").ActionField;
|
|
57
|
+
};
|
|
58
|
+
readonly variant: {
|
|
59
|
+
readonly type: "select";
|
|
60
|
+
readonly options: readonly [{
|
|
61
|
+
readonly label: "primary";
|
|
62
|
+
readonly value: "default";
|
|
63
|
+
}, {
|
|
64
|
+
readonly label: "secondary";
|
|
65
|
+
readonly value: "secondary";
|
|
66
|
+
}, {
|
|
67
|
+
readonly label: "outline";
|
|
68
|
+
readonly value: "outline";
|
|
69
|
+
}, {
|
|
70
|
+
readonly label: "ghost";
|
|
71
|
+
readonly value: "ghost";
|
|
72
|
+
}, {
|
|
73
|
+
readonly label: "link";
|
|
74
|
+
readonly value: "link";
|
|
75
|
+
}, {
|
|
76
|
+
readonly label: "destructive";
|
|
77
|
+
readonly value: "destructive";
|
|
78
|
+
}];
|
|
79
|
+
};
|
|
80
|
+
readonly size: {
|
|
81
|
+
readonly type: "select";
|
|
82
|
+
readonly options: readonly [{
|
|
83
|
+
readonly label: "default";
|
|
84
|
+
readonly value: "default";
|
|
85
|
+
}, {
|
|
86
|
+
readonly label: "sm";
|
|
87
|
+
readonly value: "sm";
|
|
88
|
+
}, {
|
|
89
|
+
readonly label: "lg";
|
|
90
|
+
readonly value: "lg";
|
|
91
|
+
}, {
|
|
92
|
+
readonly label: "icon";
|
|
93
|
+
readonly value: "icon";
|
|
94
|
+
}];
|
|
95
|
+
};
|
|
96
|
+
readonly icon: {
|
|
97
|
+
type: "custom";
|
|
98
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
buttons: {
|
|
103
|
+
readonly type: "array";
|
|
104
|
+
readonly max: 3;
|
|
105
|
+
readonly getItemSummary: (item: {
|
|
106
|
+
label?: string;
|
|
107
|
+
}, index?: number) => string;
|
|
108
|
+
readonly arrayFields: {
|
|
109
|
+
readonly label: {
|
|
110
|
+
readonly type: "text";
|
|
111
|
+
};
|
|
112
|
+
readonly action: {
|
|
113
|
+
type: "custom";
|
|
114
|
+
label: string;
|
|
115
|
+
render: typeof import("../../..").ActionField;
|
|
116
|
+
};
|
|
117
|
+
readonly variant: {
|
|
118
|
+
readonly type: "select";
|
|
119
|
+
readonly options: readonly [{
|
|
120
|
+
readonly label: "primary";
|
|
121
|
+
readonly value: "default";
|
|
122
|
+
}, {
|
|
123
|
+
readonly label: "secondary";
|
|
124
|
+
readonly value: "secondary";
|
|
125
|
+
}, {
|
|
126
|
+
readonly label: "outline";
|
|
127
|
+
readonly value: "outline";
|
|
128
|
+
}, {
|
|
129
|
+
readonly label: "ghost";
|
|
130
|
+
readonly value: "ghost";
|
|
131
|
+
}, {
|
|
132
|
+
readonly label: "link";
|
|
133
|
+
readonly value: "link";
|
|
134
|
+
}, {
|
|
135
|
+
readonly label: "destructive";
|
|
136
|
+
readonly value: "destructive";
|
|
137
|
+
}];
|
|
138
|
+
};
|
|
139
|
+
readonly size: {
|
|
140
|
+
readonly type: "select";
|
|
141
|
+
readonly options: readonly [{
|
|
142
|
+
readonly label: "default";
|
|
143
|
+
readonly value: "default";
|
|
144
|
+
}, {
|
|
145
|
+
readonly label: "sm";
|
|
146
|
+
readonly value: "sm";
|
|
147
|
+
}, {
|
|
148
|
+
readonly label: "lg";
|
|
149
|
+
readonly value: "lg";
|
|
150
|
+
}, {
|
|
151
|
+
readonly label: "icon";
|
|
152
|
+
readonly value: "icon";
|
|
153
|
+
}];
|
|
154
|
+
};
|
|
155
|
+
readonly icon: {
|
|
156
|
+
type: "custom";
|
|
157
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
readonly defaultItemProps: {
|
|
161
|
+
readonly label: "Button";
|
|
162
|
+
readonly action: {
|
|
163
|
+
readonly type: "page";
|
|
164
|
+
readonly pageUrl: "";
|
|
165
|
+
readonly externalUrl: "";
|
|
166
|
+
readonly openInNewTab: "false";
|
|
167
|
+
readonly email: "";
|
|
168
|
+
readonly subject: "";
|
|
169
|
+
readonly phone: "";
|
|
170
|
+
readonly sectionId: "";
|
|
171
|
+
readonly downloadUrl: "";
|
|
172
|
+
};
|
|
173
|
+
readonly variant: "default";
|
|
174
|
+
readonly size: "default";
|
|
175
|
+
readonly icon: "none";
|
|
176
|
+
};
|
|
177
|
+
readonly ai: {
|
|
178
|
+
readonly instructions: "Buttons must use the same size";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
termsAndConditions: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
184
|
+
address: {
|
|
185
|
+
type: string;
|
|
186
|
+
objectFields: {
|
|
187
|
+
label: {
|
|
188
|
+
type: string;
|
|
189
|
+
};
|
|
190
|
+
value: {
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
contact: {
|
|
196
|
+
type: string;
|
|
197
|
+
objectFields: {
|
|
198
|
+
label: {
|
|
199
|
+
type: string;
|
|
200
|
+
};
|
|
201
|
+
phone: {
|
|
202
|
+
type: string;
|
|
203
|
+
};
|
|
204
|
+
email: {
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
socialLinks: {
|
|
210
|
+
readonly type: "array";
|
|
211
|
+
readonly label: "Social Links";
|
|
212
|
+
readonly getItemSummary: (item: {
|
|
213
|
+
platform?: string;
|
|
214
|
+
}, i?: number) => string;
|
|
215
|
+
readonly arrayFields: {
|
|
216
|
+
readonly platform: {
|
|
217
|
+
readonly type: "select";
|
|
218
|
+
readonly label: "Platform";
|
|
219
|
+
readonly options: readonly [{
|
|
220
|
+
readonly label: "Twitter / X";
|
|
221
|
+
readonly value: "twitter";
|
|
222
|
+
}, {
|
|
223
|
+
readonly label: "Facebook";
|
|
224
|
+
readonly value: "facebook";
|
|
225
|
+
}, {
|
|
226
|
+
readonly label: "Instagram";
|
|
227
|
+
readonly value: "instagram";
|
|
228
|
+
}, {
|
|
229
|
+
readonly label: "LinkedIn";
|
|
230
|
+
readonly value: "linkedin";
|
|
231
|
+
}, {
|
|
232
|
+
readonly label: "YouTube";
|
|
233
|
+
readonly value: "youtube";
|
|
234
|
+
}, {
|
|
235
|
+
readonly label: "GitHub";
|
|
236
|
+
readonly value: "github";
|
|
237
|
+
}, {
|
|
238
|
+
readonly label: "TikTok";
|
|
239
|
+
readonly value: "tiktok";
|
|
240
|
+
}, {
|
|
241
|
+
readonly label: "Discord";
|
|
242
|
+
readonly value: "discord";
|
|
243
|
+
}];
|
|
244
|
+
};
|
|
245
|
+
readonly url: {
|
|
246
|
+
readonly type: "text";
|
|
247
|
+
readonly label: "URL";
|
|
24
248
|
};
|
|
25
249
|
};
|
|
26
250
|
};
|
|
@@ -1,10 +1,43 @@
|
|
|
1
1
|
import { CenteredMinimalFooter, CenteredMinimalFooterDefaults } from "./centered-minimal-footer.js";
|
|
2
|
+
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { socialLinksField, buttonsField, buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
2
4
|
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
4
6
|
const conf = {
|
|
5
7
|
fields: {
|
|
6
8
|
__metadata: { type: "object", ai: { instructions: "Layout metadata identifying this component as a footer section. The type field must always be 'footer'." }, objectFields: { type: { type: "text" } } },
|
|
7
|
-
logo:
|
|
9
|
+
logo: {
|
|
10
|
+
type: "object",
|
|
11
|
+
objectFields: {
|
|
12
|
+
src: mediaField.objectFields.src,
|
|
13
|
+
alt: { type: "text" },
|
|
14
|
+
url: { type: "text" }
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
heading: headingField,
|
|
18
|
+
description: descriptionField,
|
|
19
|
+
newsletterHeading: { type: "text" },
|
|
20
|
+
newsletterDescription: { type: "text" },
|
|
21
|
+
inputPlaceholder: { type: "text" },
|
|
22
|
+
button: buttonField,
|
|
23
|
+
buttons: buttonsField,
|
|
24
|
+
termsAndConditions: { type: "text" },
|
|
25
|
+
address: {
|
|
26
|
+
type: "object",
|
|
27
|
+
objectFields: {
|
|
28
|
+
label: { type: "text" },
|
|
29
|
+
value: { type: "text" }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
contact: {
|
|
33
|
+
type: "object",
|
|
34
|
+
objectFields: {
|
|
35
|
+
label: { type: "text" },
|
|
36
|
+
phone: { type: "text" },
|
|
37
|
+
email: { type: "text" }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
socialLinks: socialLinksField,
|
|
8
41
|
columnLinks: {
|
|
9
42
|
type: "array",
|
|
10
43
|
label: "Link Columns",
|
package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js
CHANGED
|
@@ -5,7 +5,7 @@ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
|
5
5
|
import { CompoundSocialLinks } from "../../../puck-base/social-links.js";
|
|
6
6
|
const ContactLinksFooter = (props) => {
|
|
7
7
|
const { logo, address, contact, columnLinks, socialLinks, footerText, footerLinks, styles } = { ...ContactLinksFooterDefaults, ...props };
|
|
8
|
-
const { className: sectionClassName, style: sectionStyle, css, bordered = false } = styles ?? {};
|
|
8
|
+
const { className: sectionClassName, style: sectionStyle, css, bordered = "false" } = styles ?? {};
|
|
9
9
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-6 md:py-9 lg:py-10", { "border border-border-primary mx-[5%]": bordered }, sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
10
10
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-x-[4vw] gap-y-12 pb-12 md:gap-y-16 md:pb-18 lg:grid-cols-[1fr_0.5fr] lg:gap-y-4 lg:pb-20", children: [
|
|
11
11
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -54,7 +54,7 @@ const ContactLinksFooterDefaults = {
|
|
|
54
54
|
footerText: "© 2024 Company. All rights reserved.",
|
|
55
55
|
footerLinks: [{ title: "Privacy Policy", url: "#" }, { title: "Terms of Service", url: "#" }],
|
|
56
56
|
socialLinks: [],
|
|
57
|
-
styles: { bordered: false, hasCompanyImage: false }
|
|
57
|
+
styles: { bordered: "false", hasCompanyImage: "false" }
|
|
58
58
|
};
|
|
59
59
|
export {
|
|
60
60
|
ContactLinksFooter,
|