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
|
@@ -16,14 +16,171 @@ 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
|
+
}];
|
|
24
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";
|
|
25
179
|
};
|
|
26
180
|
};
|
|
181
|
+
termsAndConditions: {
|
|
182
|
+
type: string;
|
|
183
|
+
};
|
|
27
184
|
address: {
|
|
28
185
|
type: string;
|
|
29
186
|
label: string;
|
|
@@ -1,9 +1,39 @@
|
|
|
1
1
|
import { ContactLinksFooter, ContactLinksFooterDefaults } from "./contact-links-footer.js";
|
|
2
|
-
import {
|
|
2
|
+
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { socialLinksField, buttonsField, buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
4
|
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
5
|
import { footerStyleFields } from "../props.js";
|
|
5
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
|
-
const conf = {
|
|
7
|
+
const conf = {
|
|
8
|
+
fields: {
|
|
9
|
+
__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" } } },
|
|
10
|
+
logo: {
|
|
11
|
+
type: "object",
|
|
12
|
+
objectFields: {
|
|
13
|
+
src: mediaField.objectFields.src,
|
|
14
|
+
alt: { type: "text" },
|
|
15
|
+
url: { type: "text" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
heading: headingField,
|
|
19
|
+
description: descriptionField,
|
|
20
|
+
newsletterHeading: { type: "text" },
|
|
21
|
+
newsletterDescription: { type: "text" },
|
|
22
|
+
inputPlaceholder: { type: "text" },
|
|
23
|
+
button: buttonField,
|
|
24
|
+
buttons: buttonsField,
|
|
25
|
+
termsAndConditions: { type: "text" },
|
|
26
|
+
address: { type: "object", label: "Address", objectFields: { label: { type: "text", label: "Label" }, value: { type: "text", label: "Value" } } },
|
|
27
|
+
columnLinks: { type: "array", label: "Link Columns", getItemSummary: (_item, index = 0) => `Column ${index + 1}`, arrayFields: { links: { type: "array", label: "Links", getItemSummary: (item, index = 0) => item.title || `Link ${index + 1}`, arrayFields: { title: { type: "text", label: "Title" }, url: { type: "text", label: "URL" } } } } },
|
|
28
|
+
contact: { type: "object", label: "Contact", objectFields: { label: { type: "text", label: "Label" }, phone: { type: "text", label: "Phone" }, email: { type: "text", label: "Email" } } },
|
|
29
|
+
footerLinks: { type: "array", label: "Footer Links", getItemSummary: (item, index = 0) => item.title || `Link ${index + 1}`, arrayFields: { title: { type: "text", label: "Title" }, url: { type: "text", label: "URL" } } },
|
|
30
|
+
socialLinks: socialLinksField,
|
|
31
|
+
footerText: { type: "text" },
|
|
32
|
+
styles: { type: "object", label: "Styles", objectFields: { bordered: footerStyleFields.bordered, hasCompanyImage: footerStyleFields.hasCompanyImage, showSocialLinks: footerStyleFields.showSocialLinks, ...sectionWrapperFields } }
|
|
33
|
+
},
|
|
34
|
+
defaultProps: ContactLinksFooterDefaults,
|
|
35
|
+
render: ContactLinksFooter
|
|
36
|
+
};
|
|
7
37
|
export {
|
|
8
38
|
ContactLinksFooter,
|
|
9
39
|
ContactLinksFooterDefaults,
|
|
@@ -6,7 +6,7 @@ import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
|
6
6
|
import { CompoundSocialLinks } from "../../../puck-base/social-links.js";
|
|
7
7
|
const CtaLinksFooter = (props) => {
|
|
8
8
|
const { logo, heading, description, buttons, columnLinks, socialLinks, footerText, styles } = { ...CtaLinksFooterDefaults, ...props };
|
|
9
|
-
const { className: sectionClassName, style: sectionStyle, css, bordered = false } = styles ?? {};
|
|
9
|
+
const { className: sectionClassName, style: sectionStyle, css, bordered = "false" } = styles ?? {};
|
|
10
10
|
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: [
|
|
11
11
|
/* @__PURE__ */ jsxs("div", { className: "border-b border-border-primary", children: [
|
|
12
12
|
/* @__PURE__ */ jsxs("div", { className: "mb-12 grid grid-cols-1 gap-x-[8vw] gap-y-12 md:mb-18 md:gap-y-16 lg:mb-20 lg:grid-cols-[1fr_0.5fr] lg:gap-y-20", children: [
|
|
@@ -45,7 +45,7 @@ const CtaLinksFooterDefaults = {
|
|
|
45
45
|
footerText: "© 2024 Company. All rights reserved.",
|
|
46
46
|
footerLinks: [],
|
|
47
47
|
socialLinks: [],
|
|
48
|
-
styles: { bordered: false }
|
|
48
|
+
styles: { bordered: "false" }
|
|
49
49
|
};
|
|
50
50
|
export {
|
|
51
51
|
CtaLinksFooter,
|
|
@@ -16,11 +16,14 @@ 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;
|
|
24
27
|
};
|
|
25
28
|
};
|
|
26
29
|
};
|
|
@@ -32,6 +35,70 @@ declare const conf: {
|
|
|
32
35
|
readonly type: "textarea";
|
|
33
36
|
readonly contentEditable: true;
|
|
34
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
|
+
};
|
|
35
102
|
buttons: {
|
|
36
103
|
readonly type: "array";
|
|
37
104
|
readonly max: 3;
|
|
@@ -111,6 +178,34 @@ declare const conf: {
|
|
|
111
178
|
readonly instructions: "Buttons must use the same size";
|
|
112
179
|
};
|
|
113
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
|
+
};
|
|
114
209
|
columnLinks: {
|
|
115
210
|
type: string;
|
|
116
211
|
label: string;
|
|
@@ -180,6 +275,23 @@ declare const conf: {
|
|
|
180
275
|
footerText: {
|
|
181
276
|
type: string;
|
|
182
277
|
};
|
|
278
|
+
footerLinks: {
|
|
279
|
+
type: string;
|
|
280
|
+
label: string;
|
|
281
|
+
getItemSummary: (item: {
|
|
282
|
+
title?: string;
|
|
283
|
+
}, index?: number) => string;
|
|
284
|
+
arrayFields: {
|
|
285
|
+
title: {
|
|
286
|
+
type: string;
|
|
287
|
+
label: string;
|
|
288
|
+
};
|
|
289
|
+
url: {
|
|
290
|
+
type: string;
|
|
291
|
+
label: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
};
|
|
183
295
|
styles: {
|
|
184
296
|
type: string;
|
|
185
297
|
label: string;
|
|
@@ -1,10 +1,52 @@
|
|
|
1
1
|
import { CtaLinksFooter, CtaLinksFooterDefaults } from "./cta-links-footer.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import { socialLinksField, buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
+
import { socialLinksField, buttonsField, buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { footerStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
|
-
const conf = {
|
|
7
|
+
const conf = {
|
|
8
|
+
fields: {
|
|
9
|
+
__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" } } },
|
|
10
|
+
logo: {
|
|
11
|
+
type: "object",
|
|
12
|
+
objectFields: {
|
|
13
|
+
src: mediaField.objectFields.src,
|
|
14
|
+
alt: { type: "text" },
|
|
15
|
+
url: { type: "text" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
heading: headingField,
|
|
19
|
+
description: descriptionField,
|
|
20
|
+
newsletterHeading: { type: "text" },
|
|
21
|
+
newsletterDescription: { type: "text" },
|
|
22
|
+
inputPlaceholder: { type: "text" },
|
|
23
|
+
button: buttonField,
|
|
24
|
+
buttons: buttonsField,
|
|
25
|
+
termsAndConditions: { type: "text" },
|
|
26
|
+
address: {
|
|
27
|
+
type: "object",
|
|
28
|
+
objectFields: {
|
|
29
|
+
label: { type: "text" },
|
|
30
|
+
value: { type: "text" }
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
contact: {
|
|
34
|
+
type: "object",
|
|
35
|
+
objectFields: {
|
|
36
|
+
label: { type: "text" },
|
|
37
|
+
phone: { type: "text" },
|
|
38
|
+
email: { type: "text" }
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
columnLinks: { type: "array", label: "Link Columns", getItemSummary: (_item, index = 0) => `Column ${index + 1}`, arrayFields: { links: { type: "array", label: "Links", getItemSummary: (item, index = 0) => item.title || `Link ${index + 1}`, arrayFields: { title: { type: "text", label: "Title" }, url: { type: "text", label: "URL" } } } } },
|
|
42
|
+
socialLinks: socialLinksField,
|
|
43
|
+
footerText: { type: "text" },
|
|
44
|
+
footerLinks: { type: "array", label: "Footer Links", getItemSummary: (item, index = 0) => item.title || `Link ${index + 1}`, arrayFields: { title: { type: "text", label: "Title" }, url: { type: "text", label: "URL" } } },
|
|
45
|
+
styles: { type: "object", label: "Styles", objectFields: { bordered: footerStyleFields.bordered, showSocialLinks: footerStyleFields.showSocialLinks, ...sectionWrapperFields } }
|
|
46
|
+
},
|
|
47
|
+
defaultProps: CtaLinksFooterDefaults,
|
|
48
|
+
render: CtaLinksFooter
|
|
49
|
+
};
|
|
8
50
|
export {
|
|
9
51
|
CtaLinksFooter,
|
|
10
52
|
CtaLinksFooterDefaults,
|
|
@@ -11,8 +11,8 @@ export interface FooterSectionStyles {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
style?: React.CSSProperties;
|
|
13
13
|
css?: string;
|
|
14
|
-
bordered?:
|
|
15
|
-
hasCompanyImage?:
|
|
14
|
+
bordered?: string;
|
|
15
|
+
hasCompanyImage?: string;
|
|
16
16
|
topContentType?: "newsletter" | "cta";
|
|
17
17
|
showSocialLinks?: string;
|
|
18
18
|
}
|
|
@@ -4,6 +4,9 @@ export { AsymmetricGrid, AsymmetricGridDefaults };
|
|
|
4
4
|
export type { AsymmetricGridProps };
|
|
5
5
|
declare const conf: {
|
|
6
6
|
fields: {
|
|
7
|
+
tagline: {
|
|
8
|
+
type: string;
|
|
9
|
+
};
|
|
7
10
|
heading: {
|
|
8
11
|
readonly type: "text";
|
|
9
12
|
readonly contentEditable: true;
|
|
@@ -12,6 +15,140 @@ declare const conf: {
|
|
|
12
15
|
readonly type: "textarea";
|
|
13
16
|
readonly contentEditable: true;
|
|
14
17
|
};
|
|
18
|
+
button: {
|
|
19
|
+
readonly type: "object";
|
|
20
|
+
readonly objectFields: {
|
|
21
|
+
readonly label: {
|
|
22
|
+
readonly type: "text";
|
|
23
|
+
};
|
|
24
|
+
readonly action: {
|
|
25
|
+
type: "custom";
|
|
26
|
+
label: string;
|
|
27
|
+
render: typeof import("../../..").ActionField;
|
|
28
|
+
};
|
|
29
|
+
readonly variant: {
|
|
30
|
+
readonly type: "select";
|
|
31
|
+
readonly options: readonly [{
|
|
32
|
+
readonly label: "primary";
|
|
33
|
+
readonly value: "default";
|
|
34
|
+
}, {
|
|
35
|
+
readonly label: "secondary";
|
|
36
|
+
readonly value: "secondary";
|
|
37
|
+
}, {
|
|
38
|
+
readonly label: "outline";
|
|
39
|
+
readonly value: "outline";
|
|
40
|
+
}, {
|
|
41
|
+
readonly label: "ghost";
|
|
42
|
+
readonly value: "ghost";
|
|
43
|
+
}, {
|
|
44
|
+
readonly label: "link";
|
|
45
|
+
readonly value: "link";
|
|
46
|
+
}, {
|
|
47
|
+
readonly label: "destructive";
|
|
48
|
+
readonly value: "destructive";
|
|
49
|
+
}];
|
|
50
|
+
};
|
|
51
|
+
readonly size: {
|
|
52
|
+
readonly type: "select";
|
|
53
|
+
readonly options: readonly [{
|
|
54
|
+
readonly label: "default";
|
|
55
|
+
readonly value: "default";
|
|
56
|
+
}, {
|
|
57
|
+
readonly label: "sm";
|
|
58
|
+
readonly value: "sm";
|
|
59
|
+
}, {
|
|
60
|
+
readonly label: "lg";
|
|
61
|
+
readonly value: "lg";
|
|
62
|
+
}, {
|
|
63
|
+
readonly label: "icon";
|
|
64
|
+
readonly value: "icon";
|
|
65
|
+
}];
|
|
66
|
+
};
|
|
67
|
+
readonly icon: {
|
|
68
|
+
type: "custom";
|
|
69
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
buttons: {
|
|
74
|
+
readonly type: "array";
|
|
75
|
+
readonly max: 3;
|
|
76
|
+
readonly getItemSummary: (item: {
|
|
77
|
+
label?: string;
|
|
78
|
+
}, index?: number) => string;
|
|
79
|
+
readonly arrayFields: {
|
|
80
|
+
readonly label: {
|
|
81
|
+
readonly type: "text";
|
|
82
|
+
};
|
|
83
|
+
readonly action: {
|
|
84
|
+
type: "custom";
|
|
85
|
+
label: string;
|
|
86
|
+
render: typeof import("../../..").ActionField;
|
|
87
|
+
};
|
|
88
|
+
readonly variant: {
|
|
89
|
+
readonly type: "select";
|
|
90
|
+
readonly options: readonly [{
|
|
91
|
+
readonly label: "primary";
|
|
92
|
+
readonly value: "default";
|
|
93
|
+
}, {
|
|
94
|
+
readonly label: "secondary";
|
|
95
|
+
readonly value: "secondary";
|
|
96
|
+
}, {
|
|
97
|
+
readonly label: "outline";
|
|
98
|
+
readonly value: "outline";
|
|
99
|
+
}, {
|
|
100
|
+
readonly label: "ghost";
|
|
101
|
+
readonly value: "ghost";
|
|
102
|
+
}, {
|
|
103
|
+
readonly label: "link";
|
|
104
|
+
readonly value: "link";
|
|
105
|
+
}, {
|
|
106
|
+
readonly label: "destructive";
|
|
107
|
+
readonly value: "destructive";
|
|
108
|
+
}];
|
|
109
|
+
};
|
|
110
|
+
readonly size: {
|
|
111
|
+
readonly type: "select";
|
|
112
|
+
readonly options: readonly [{
|
|
113
|
+
readonly label: "default";
|
|
114
|
+
readonly value: "default";
|
|
115
|
+
}, {
|
|
116
|
+
readonly label: "sm";
|
|
117
|
+
readonly value: "sm";
|
|
118
|
+
}, {
|
|
119
|
+
readonly label: "lg";
|
|
120
|
+
readonly value: "lg";
|
|
121
|
+
}, {
|
|
122
|
+
readonly label: "icon";
|
|
123
|
+
readonly value: "icon";
|
|
124
|
+
}];
|
|
125
|
+
};
|
|
126
|
+
readonly icon: {
|
|
127
|
+
type: "custom";
|
|
128
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly defaultItemProps: {
|
|
132
|
+
readonly label: "Button";
|
|
133
|
+
readonly action: {
|
|
134
|
+
readonly type: "page";
|
|
135
|
+
readonly pageUrl: "";
|
|
136
|
+
readonly externalUrl: "";
|
|
137
|
+
readonly openInNewTab: "false";
|
|
138
|
+
readonly email: "";
|
|
139
|
+
readonly subject: "";
|
|
140
|
+
readonly phone: "";
|
|
141
|
+
readonly sectionId: "";
|
|
142
|
+
readonly downloadUrl: "";
|
|
143
|
+
};
|
|
144
|
+
readonly variant: "default";
|
|
145
|
+
readonly size: "default";
|
|
146
|
+
readonly icon: "none";
|
|
147
|
+
};
|
|
148
|
+
readonly ai: {
|
|
149
|
+
readonly instructions: "Buttons must use the same size";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
15
152
|
medias: {
|
|
16
153
|
readonly type: "array";
|
|
17
154
|
readonly max: 10;
|
|
@@ -29,6 +166,14 @@ declare const conf: {
|
|
|
29
166
|
src: string;
|
|
30
167
|
};
|
|
31
168
|
};
|
|
169
|
+
projects: {
|
|
170
|
+
type: string;
|
|
171
|
+
arrayFields: {};
|
|
172
|
+
};
|
|
173
|
+
hoverLinks: {
|
|
174
|
+
type: string;
|
|
175
|
+
arrayFields: {};
|
|
176
|
+
};
|
|
32
177
|
styles: {
|
|
33
178
|
type: string;
|
|
34
179
|
label: string;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { AsymmetricGrid, AsymmetricGridDefaults } from "./asymmetric-grid.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonsField, buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
4
|
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
4
5
|
import { galleryStyleFields } from "../props.js";
|
|
5
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
7
8
|
fields: {
|
|
9
|
+
tagline: { type: "text" },
|
|
8
10
|
heading: headingField,
|
|
9
11
|
description: descriptionField,
|
|
12
|
+
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
10
14
|
medias: mediasField,
|
|
15
|
+
projects: { type: "array", arrayFields: {} },
|
|
16
|
+
hoverLinks: { type: "array", arrayFields: {} },
|
|
11
17
|
styles: {
|
|
12
18
|
type: "object",
|
|
13
19
|
label: "Styles",
|