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
|
@@ -15,6 +15,153 @@ declare const conf: {
|
|
|
15
15
|
readonly type: "textarea";
|
|
16
16
|
readonly contentEditable: true;
|
|
17
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
|
+
};
|
|
152
|
+
media: {
|
|
153
|
+
type: "object";
|
|
154
|
+
objectFields: {
|
|
155
|
+
src: import("@puckeditor/core").Field<string>;
|
|
156
|
+
alt: {
|
|
157
|
+
type: "text";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
contacts: {
|
|
162
|
+
type: string;
|
|
163
|
+
arrayFields: {};
|
|
164
|
+
};
|
|
18
165
|
locations: {
|
|
19
166
|
type: string;
|
|
20
167
|
max: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocationCardsGrid, LocationCardsGridDefaults } from "./location-cards-grid.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
+
import { buttonField, buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { contactStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
@@ -9,6 +9,10 @@ const conf = {
|
|
|
9
9
|
tagline: { type: "text" },
|
|
10
10
|
heading: headingField,
|
|
11
11
|
description: descriptionField,
|
|
12
|
+
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
14
|
+
media: mediaField,
|
|
15
|
+
contacts: { type: "array", arrayFields: {} },
|
|
12
16
|
locations: {
|
|
13
17
|
type: "array",
|
|
14
18
|
max: 6,
|
|
@@ -16,7 +16,7 @@ export interface ContactSectionStyles {
|
|
|
16
16
|
mediaPosition?: "left" | "right";
|
|
17
17
|
mediaType?: "image" | "map";
|
|
18
18
|
columns?: 3 | 4;
|
|
19
|
-
hasHeader?:
|
|
19
|
+
hasHeader?: string;
|
|
20
20
|
headerAlign?: "left" | "center";
|
|
21
21
|
modalType?: "dialog" | "sheet-right" | "sheet-bottom";
|
|
22
22
|
}
|
|
@@ -79,6 +79,102 @@ declare const conf: {
|
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
|
+
buttons: {
|
|
83
|
+
readonly type: "array";
|
|
84
|
+
readonly max: 3;
|
|
85
|
+
readonly getItemSummary: (item: {
|
|
86
|
+
label?: string;
|
|
87
|
+
}, index?: number) => string;
|
|
88
|
+
readonly arrayFields: {
|
|
89
|
+
readonly label: {
|
|
90
|
+
readonly type: "text";
|
|
91
|
+
};
|
|
92
|
+
readonly action: {
|
|
93
|
+
type: "custom";
|
|
94
|
+
label: string;
|
|
95
|
+
render: typeof import("../../..").ActionField;
|
|
96
|
+
};
|
|
97
|
+
readonly variant: {
|
|
98
|
+
readonly type: "select";
|
|
99
|
+
readonly options: readonly [{
|
|
100
|
+
readonly label: "primary";
|
|
101
|
+
readonly value: "default";
|
|
102
|
+
}, {
|
|
103
|
+
readonly label: "secondary";
|
|
104
|
+
readonly value: "secondary";
|
|
105
|
+
}, {
|
|
106
|
+
readonly label: "outline";
|
|
107
|
+
readonly value: "outline";
|
|
108
|
+
}, {
|
|
109
|
+
readonly label: "ghost";
|
|
110
|
+
readonly value: "ghost";
|
|
111
|
+
}, {
|
|
112
|
+
readonly label: "link";
|
|
113
|
+
readonly value: "link";
|
|
114
|
+
}, {
|
|
115
|
+
readonly label: "destructive";
|
|
116
|
+
readonly value: "destructive";
|
|
117
|
+
}];
|
|
118
|
+
};
|
|
119
|
+
readonly size: {
|
|
120
|
+
readonly type: "select";
|
|
121
|
+
readonly options: readonly [{
|
|
122
|
+
readonly label: "default";
|
|
123
|
+
readonly value: "default";
|
|
124
|
+
}, {
|
|
125
|
+
readonly label: "sm";
|
|
126
|
+
readonly value: "sm";
|
|
127
|
+
}, {
|
|
128
|
+
readonly label: "lg";
|
|
129
|
+
readonly value: "lg";
|
|
130
|
+
}, {
|
|
131
|
+
readonly label: "icon";
|
|
132
|
+
readonly value: "icon";
|
|
133
|
+
}];
|
|
134
|
+
};
|
|
135
|
+
readonly icon: {
|
|
136
|
+
type: "custom";
|
|
137
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly defaultItemProps: {
|
|
141
|
+
readonly label: "Button";
|
|
142
|
+
readonly action: {
|
|
143
|
+
readonly type: "page";
|
|
144
|
+
readonly pageUrl: "";
|
|
145
|
+
readonly externalUrl: "";
|
|
146
|
+
readonly openInNewTab: "false";
|
|
147
|
+
readonly email: "";
|
|
148
|
+
readonly subject: "";
|
|
149
|
+
readonly phone: "";
|
|
150
|
+
readonly sectionId: "";
|
|
151
|
+
readonly downloadUrl: "";
|
|
152
|
+
};
|
|
153
|
+
readonly variant: "default";
|
|
154
|
+
readonly size: "default";
|
|
155
|
+
readonly icon: "none";
|
|
156
|
+
};
|
|
157
|
+
readonly ai: {
|
|
158
|
+
readonly instructions: "Buttons must use the same size";
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
media: {
|
|
162
|
+
type: "object";
|
|
163
|
+
objectFields: {
|
|
164
|
+
src: import("@puckeditor/core").Field<string>;
|
|
165
|
+
alt: {
|
|
166
|
+
type: "text";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
contacts: {
|
|
171
|
+
type: string;
|
|
172
|
+
arrayFields: {};
|
|
173
|
+
};
|
|
174
|
+
locations: {
|
|
175
|
+
type: string;
|
|
176
|
+
arrayFields: {};
|
|
177
|
+
};
|
|
82
178
|
styles: {
|
|
83
179
|
type: string;
|
|
84
180
|
label: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SplitInfoForm, SplitInfoFormDefaults } from "./split-info-form.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
+
import { buttonsField, buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
5
|
import { contactStyleFields } from "../props.js";
|
|
5
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
6
7
|
const conf = {
|
|
@@ -12,6 +13,10 @@ const conf = {
|
|
|
12
13
|
phone: { type: "text" },
|
|
13
14
|
address: { type: "text" },
|
|
14
15
|
button: buttonField,
|
|
16
|
+
buttons: buttonsField,
|
|
17
|
+
media: mediaField,
|
|
18
|
+
contacts: { type: "array", arrayFields: {} },
|
|
19
|
+
locations: { type: "array", arrayFields: {} },
|
|
15
20
|
styles: {
|
|
16
21
|
type: "object",
|
|
17
22
|
label: "Styles",
|
|
@@ -15,6 +15,153 @@ declare const conf: {
|
|
|
15
15
|
readonly type: "textarea";
|
|
16
16
|
readonly contentEditable: true;
|
|
17
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
|
+
};
|
|
152
|
+
media: {
|
|
153
|
+
type: "object";
|
|
154
|
+
objectFields: {
|
|
155
|
+
src: import("@puckeditor/core").Field<string>;
|
|
156
|
+
alt: {
|
|
157
|
+
type: "text";
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
contacts: {
|
|
162
|
+
type: string;
|
|
163
|
+
arrayFields: {};
|
|
164
|
+
};
|
|
18
165
|
locations: {
|
|
19
166
|
type: string;
|
|
20
167
|
max: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TabLocations, TabLocationsDefaults } from "./tab-locations.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonField, buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
3
4
|
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
4
|
-
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
5
5
|
import { contactStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
const conf = {
|
|
@@ -9,6 +9,10 @@ const conf = {
|
|
|
9
9
|
tagline: { type: "text" },
|
|
10
10
|
heading: headingField,
|
|
11
11
|
description: descriptionField,
|
|
12
|
+
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
14
|
+
media: mediaField,
|
|
15
|
+
contacts: { type: "array", arrayFields: {} },
|
|
12
16
|
locations: {
|
|
13
17
|
type: "array",
|
|
14
18
|
max: 6,
|
|
@@ -16,7 +16,7 @@ export interface CtaSectionStyles {
|
|
|
16
16
|
mediaPosition?: "left" | "right";
|
|
17
17
|
bgMedia?: "none" | "fullscreenImage" | "fullscreenVideo" | "containerImage" | "containerVideo";
|
|
18
18
|
formType?: "buttons" | "email";
|
|
19
|
-
bordered?:
|
|
19
|
+
bordered?: string;
|
|
20
20
|
bottomContent?: "none" | "image" | "logos";
|
|
21
21
|
listStyle?: "center" | "numbered";
|
|
22
22
|
}
|
|
@@ -36,6 +36,14 @@ const ctaStyleFields = {
|
|
|
36
36
|
{ label: "Container Video", value: "containerVideo" }
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
+
formType: {
|
|
40
|
+
type: "radio",
|
|
41
|
+
label: "Form Type",
|
|
42
|
+
options: [
|
|
43
|
+
{ label: "Buttons", value: "buttons" },
|
|
44
|
+
{ label: "Email", value: "email" }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
39
47
|
bordered: {
|
|
40
48
|
type: "radio",
|
|
41
49
|
label: "Bordered",
|
|
@@ -108,6 +108,70 @@ declare const conf: {
|
|
|
108
108
|
src: string;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
|
+
video: {
|
|
112
|
+
type: string;
|
|
113
|
+
};
|
|
114
|
+
inputPlaceholder: {
|
|
115
|
+
type: string;
|
|
116
|
+
};
|
|
117
|
+
formButton: {
|
|
118
|
+
readonly type: "object";
|
|
119
|
+
readonly objectFields: {
|
|
120
|
+
readonly label: {
|
|
121
|
+
readonly type: "text";
|
|
122
|
+
};
|
|
123
|
+
readonly action: {
|
|
124
|
+
type: "custom";
|
|
125
|
+
label: string;
|
|
126
|
+
render: typeof import("../../..").ActionField;
|
|
127
|
+
};
|
|
128
|
+
readonly variant: {
|
|
129
|
+
readonly type: "select";
|
|
130
|
+
readonly options: readonly [{
|
|
131
|
+
readonly label: "primary";
|
|
132
|
+
readonly value: "default";
|
|
133
|
+
}, {
|
|
134
|
+
readonly label: "secondary";
|
|
135
|
+
readonly value: "secondary";
|
|
136
|
+
}, {
|
|
137
|
+
readonly label: "outline";
|
|
138
|
+
readonly value: "outline";
|
|
139
|
+
}, {
|
|
140
|
+
readonly label: "ghost";
|
|
141
|
+
readonly value: "ghost";
|
|
142
|
+
}, {
|
|
143
|
+
readonly label: "link";
|
|
144
|
+
readonly value: "link";
|
|
145
|
+
}, {
|
|
146
|
+
readonly label: "destructive";
|
|
147
|
+
readonly value: "destructive";
|
|
148
|
+
}];
|
|
149
|
+
};
|
|
150
|
+
readonly size: {
|
|
151
|
+
readonly type: "select";
|
|
152
|
+
readonly options: readonly [{
|
|
153
|
+
readonly label: "default";
|
|
154
|
+
readonly value: "default";
|
|
155
|
+
}, {
|
|
156
|
+
readonly label: "sm";
|
|
157
|
+
readonly value: "sm";
|
|
158
|
+
}, {
|
|
159
|
+
readonly label: "lg";
|
|
160
|
+
readonly value: "lg";
|
|
161
|
+
}, {
|
|
162
|
+
readonly label: "icon";
|
|
163
|
+
readonly value: "icon";
|
|
164
|
+
}];
|
|
165
|
+
};
|
|
166
|
+
readonly icon: {
|
|
167
|
+
type: "custom";
|
|
168
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
termsAndConditions: {
|
|
173
|
+
type: string;
|
|
174
|
+
};
|
|
111
175
|
styles: {
|
|
112
176
|
type: string;
|
|
113
177
|
label: string;
|
|
@@ -156,6 +220,17 @@ declare const conf: {
|
|
|
156
220
|
readonly value: "false";
|
|
157
221
|
}];
|
|
158
222
|
};
|
|
223
|
+
formType: {
|
|
224
|
+
readonly type: "radio";
|
|
225
|
+
readonly label: "Form Type";
|
|
226
|
+
readonly options: readonly [{
|
|
227
|
+
readonly label: "Buttons";
|
|
228
|
+
readonly value: "buttons";
|
|
229
|
+
}, {
|
|
230
|
+
readonly label: "Email";
|
|
231
|
+
readonly value: "email";
|
|
232
|
+
}];
|
|
233
|
+
};
|
|
159
234
|
};
|
|
160
235
|
};
|
|
161
236
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SideMediaCta, SideMediaCtaDefaults } from "./side-media-cta.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
-
import { buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
3
|
+
import { buttonField, buttonsField } from "../../../puck-core/core/props/interactive.js";
|
|
4
4
|
import { mediasField } from "../../../puck-core/core/props/media.js";
|
|
5
5
|
import { ctaStyleFields } from "../props.js";
|
|
6
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
@@ -10,17 +10,17 @@ const conf = {
|
|
|
10
10
|
description: descriptionField,
|
|
11
11
|
buttons: buttonsField,
|
|
12
12
|
medias: mediasField,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
video: { type: "text" },
|
|
14
|
+
inputPlaceholder: { type: "text" },
|
|
15
|
+
formButton: buttonField,
|
|
16
|
+
termsAndConditions: { type: "textarea" },
|
|
17
17
|
styles: {
|
|
18
18
|
type: "object",
|
|
19
19
|
label: "Styles",
|
|
20
20
|
objectFields: {
|
|
21
21
|
mediaPosition: ctaStyleFields.mediaPosition,
|
|
22
22
|
bordered: ctaStyleFields.bordered,
|
|
23
|
-
|
|
23
|
+
formType: ctaStyleFields.formType,
|
|
24
24
|
...sectionWrapperFields
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -24,7 +24,7 @@ const SideMediaCta = (props) => {
|
|
|
24
24
|
style: sectionStyle,
|
|
25
25
|
css,
|
|
26
26
|
mediaPosition = "right",
|
|
27
|
-
bordered = false
|
|
27
|
+
bordered = "false"
|
|
28
28
|
// formType = "buttons",
|
|
29
29
|
} = styles ?? {};
|
|
30
30
|
const renderActions = () => {
|
|
@@ -37,7 +37,7 @@ const SideMediaCta = (props) => {
|
|
|
37
37
|
] });
|
|
38
38
|
const mediaContent = /* @__PURE__ */ jsx("div", { className: cn({ "flex items-center justify-center": bordered }), children: /* @__PURE__ */ jsx(CompoundMedia, { src: (_a = medias == null ? void 0 : medias[0]) == null ? void 0 : _a.src, className: "w-full object-cover", alt: (_b = medias == null ? void 0 : medias[0]) == null ? void 0 : _b.alt }) });
|
|
39
39
|
const isLeftMedia = mediaPosition === "left";
|
|
40
|
-
if (bordered) {
|
|
40
|
+
if (bordered === "true") {
|
|
41
41
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-6 md:py-8 lg:py-10", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsx("div", { className: "grid auto-cols-fr grid-cols-1 border border-border-primary lg:grid-cols-2", children: isLeftMedia ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
42
|
mediaContent,
|
|
43
43
|
textContent
|
|
@@ -74,7 +74,7 @@ const SideMediaCtaDefaults = {
|
|
|
74
74
|
`,
|
|
75
75
|
styles: {
|
|
76
76
|
mediaPosition: "right",
|
|
77
|
-
bordered: false,
|
|
77
|
+
bordered: "false",
|
|
78
78
|
formType: "buttons"
|
|
79
79
|
}
|
|
80
80
|
};
|