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
|
@@ -70,6 +70,102 @@ declare const conf: {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
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
|
+
};
|
|
165
|
+
locations: {
|
|
166
|
+
type: string;
|
|
167
|
+
arrayFields: {};
|
|
168
|
+
};
|
|
73
169
|
styles: {
|
|
74
170
|
type: string;
|
|
75
171
|
label: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CenteredForm, CenteredFormDefaults } from "./centered-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 = {
|
|
@@ -9,6 +10,10 @@ const conf = {
|
|
|
9
10
|
heading: headingField,
|
|
10
11
|
description: descriptionField,
|
|
11
12
|
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
14
|
+
media: mediaField,
|
|
15
|
+
contacts: { type: "array", arrayFields: {} },
|
|
16
|
+
locations: { type: "array", arrayFields: {} },
|
|
12
17
|
styles: {
|
|
13
18
|
type: "object",
|
|
14
19
|
label: "Styles",
|
package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js
CHANGED
|
@@ -19,10 +19,10 @@ const ContactCardsGrid = (props) => {
|
|
|
19
19
|
css,
|
|
20
20
|
columns = 3,
|
|
21
21
|
textAlign = "left",
|
|
22
|
-
hasHeader = false,
|
|
22
|
+
hasHeader = "false",
|
|
23
23
|
headerAlign = "left"
|
|
24
24
|
} = styles ?? {};
|
|
25
|
-
const showHeader = hasHeader ===
|
|
25
|
+
const showHeader = hasHeader === "true";
|
|
26
26
|
const isCardCenter = textAlign === "center";
|
|
27
27
|
const isHeaderCenter = headerAlign === "center";
|
|
28
28
|
const gridColsClass = columns === 4 ? "md:grid-cols-2 lg:grid-cols-4" : "md:grid-cols-3";
|
|
@@ -96,7 +96,7 @@ const ContactCardsGridDefaults = {
|
|
|
96
96
|
styles: {
|
|
97
97
|
columns: 3,
|
|
98
98
|
textAlign: "left",
|
|
99
|
-
hasHeader: false,
|
|
99
|
+
hasHeader: "false",
|
|
100
100
|
headerAlign: "left"
|
|
101
101
|
}
|
|
102
102
|
};
|
|
@@ -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
|
+
locations: {
|
|
162
|
+
type: string;
|
|
163
|
+
arrayFields: {};
|
|
164
|
+
};
|
|
18
165
|
contacts: {
|
|
19
166
|
type: string;
|
|
20
167
|
max: number;
|
|
@@ -31,6 +178,18 @@ declare const conf: {
|
|
|
31
178
|
description: {
|
|
32
179
|
type: string;
|
|
33
180
|
};
|
|
181
|
+
link: {
|
|
182
|
+
type: string;
|
|
183
|
+
objectFields: {
|
|
184
|
+
label: {
|
|
185
|
+
type: string;
|
|
186
|
+
};
|
|
187
|
+
action: {
|
|
188
|
+
type: string;
|
|
189
|
+
label: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
34
193
|
};
|
|
35
194
|
};
|
|
36
195
|
styles: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ContactCardsGrid, ContactCardsGridDefaults } from "./contact-cards-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";
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
5
|
import { contactStyleFields } from "../props.js";
|
|
4
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
7
|
const conf = {
|
|
@@ -7,6 +9,10 @@ const conf = {
|
|
|
7
9
|
tagline: { type: "text" },
|
|
8
10
|
heading: headingField,
|
|
9
11
|
description: descriptionField,
|
|
12
|
+
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
14
|
+
media: mediaField,
|
|
15
|
+
locations: { type: "array", arrayFields: {} },
|
|
10
16
|
contacts: {
|
|
11
17
|
type: "array",
|
|
12
18
|
max: 8,
|
|
@@ -14,7 +20,14 @@ const conf = {
|
|
|
14
20
|
arrayFields: {
|
|
15
21
|
icon: { type: "text" },
|
|
16
22
|
title: { type: "text" },
|
|
17
|
-
description: { type: "textarea" }
|
|
23
|
+
description: { type: "textarea" },
|
|
24
|
+
link: {
|
|
25
|
+
type: "object",
|
|
26
|
+
objectFields: {
|
|
27
|
+
label: { type: "text" },
|
|
28
|
+
action: { type: "custom", label: "action" }
|
|
29
|
+
}
|
|
30
|
+
}
|
|
18
31
|
}
|
|
19
32
|
},
|
|
20
33
|
styles: {
|
|
@@ -4,6 +4,9 @@ export { ContactModal, ContactModalDefaults };
|
|
|
4
4
|
export type { ContactModalProps };
|
|
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;
|
|
@@ -67,6 +70,102 @@ declare const conf: {
|
|
|
67
70
|
};
|
|
68
71
|
};
|
|
69
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
|
+
};
|
|
165
|
+
locations: {
|
|
166
|
+
type: string;
|
|
167
|
+
arrayFields: {};
|
|
168
|
+
};
|
|
70
169
|
styles: {
|
|
71
170
|
type: string;
|
|
72
171
|
label: string;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { ContactModal, ContactModalDefaults } from "./contact-modal.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 = {
|
|
7
8
|
fields: {
|
|
9
|
+
tagline: { type: "text" },
|
|
8
10
|
heading: headingField,
|
|
9
11
|
description: descriptionField,
|
|
10
12
|
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
14
|
+
media: mediaField,
|
|
15
|
+
contacts: { type: "array", arrayFields: {} },
|
|
16
|
+
locations: { type: "array", arrayFields: {} },
|
|
11
17
|
styles: {
|
|
12
18
|
type: "object",
|
|
13
19
|
label: "Styles",
|
|
@@ -70,6 +70,85 @@ declare const conf: {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
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
|
+
};
|
|
73
152
|
media: {
|
|
74
153
|
type: "object";
|
|
75
154
|
objectFields: {
|
|
@@ -79,6 +158,14 @@ declare const conf: {
|
|
|
79
158
|
};
|
|
80
159
|
};
|
|
81
160
|
};
|
|
161
|
+
contacts: {
|
|
162
|
+
type: string;
|
|
163
|
+
arrayFields: {};
|
|
164
|
+
};
|
|
165
|
+
locations: {
|
|
166
|
+
type: string;
|
|
167
|
+
arrayFields: {};
|
|
168
|
+
};
|
|
82
169
|
styles: {
|
|
83
170
|
type: string;
|
|
84
171
|
label: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormWithMedia, FormWithMediaDefaults } from "./form-with-media.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
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";
|
|
@@ -10,7 +10,10 @@ const conf = {
|
|
|
10
10
|
heading: headingField,
|
|
11
11
|
description: descriptionField,
|
|
12
12
|
button: buttonField,
|
|
13
|
+
buttons: buttonsField,
|
|
13
14
|
media: mediaField,
|
|
15
|
+
contacts: { type: "array", arrayFields: {} },
|
|
16
|
+
locations: { type: "array", arrayFields: {} },
|
|
14
17
|
styles: {
|
|
15
18
|
type: "object",
|
|
16
19
|
label: "Styles",
|