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
|
@@ -30,6 +30,61 @@ declare const conf: {
|
|
|
30
30
|
description: {
|
|
31
31
|
type: string;
|
|
32
32
|
};
|
|
33
|
+
button: {
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly objectFields: {
|
|
36
|
+
readonly label: {
|
|
37
|
+
readonly type: "text";
|
|
38
|
+
};
|
|
39
|
+
readonly action: {
|
|
40
|
+
type: "custom";
|
|
41
|
+
label: string;
|
|
42
|
+
render: typeof import("../../..").ActionField;
|
|
43
|
+
};
|
|
44
|
+
readonly variant: {
|
|
45
|
+
readonly type: "select";
|
|
46
|
+
readonly options: readonly [{
|
|
47
|
+
readonly label: "primary";
|
|
48
|
+
readonly value: "default";
|
|
49
|
+
}, {
|
|
50
|
+
readonly label: "secondary";
|
|
51
|
+
readonly value: "secondary";
|
|
52
|
+
}, {
|
|
53
|
+
readonly label: "outline";
|
|
54
|
+
readonly value: "outline";
|
|
55
|
+
}, {
|
|
56
|
+
readonly label: "ghost";
|
|
57
|
+
readonly value: "ghost";
|
|
58
|
+
}, {
|
|
59
|
+
readonly label: "link";
|
|
60
|
+
readonly value: "link";
|
|
61
|
+
}, {
|
|
62
|
+
readonly label: "destructive";
|
|
63
|
+
readonly value: "destructive";
|
|
64
|
+
}];
|
|
65
|
+
};
|
|
66
|
+
readonly size: {
|
|
67
|
+
readonly type: "select";
|
|
68
|
+
readonly options: readonly [{
|
|
69
|
+
readonly label: "default";
|
|
70
|
+
readonly value: "default";
|
|
71
|
+
}, {
|
|
72
|
+
readonly label: "sm";
|
|
73
|
+
readonly value: "sm";
|
|
74
|
+
}, {
|
|
75
|
+
readonly label: "lg";
|
|
76
|
+
readonly value: "lg";
|
|
77
|
+
}, {
|
|
78
|
+
readonly label: "icon";
|
|
79
|
+
readonly value: "icon";
|
|
80
|
+
}];
|
|
81
|
+
};
|
|
82
|
+
readonly icon: {
|
|
83
|
+
type: "custom";
|
|
84
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
33
88
|
};
|
|
34
89
|
};
|
|
35
90
|
featureCategories: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PricingComparisonTable, PricingComparisonTableDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
4
|
import { pricingStyleFields } from "../props.js";
|
|
4
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
@@ -13,7 +14,8 @@ const conf = {
|
|
|
13
14
|
arrayFields: {
|
|
14
15
|
planName: { type: "text" },
|
|
15
16
|
monthlyPrice: { type: "text" },
|
|
16
|
-
description: { type: "textarea" }
|
|
17
|
+
description: { type: "textarea" },
|
|
18
|
+
button: buttonField
|
|
17
19
|
}
|
|
18
20
|
},
|
|
19
21
|
featureCategories: {
|
|
@@ -13,9 +13,9 @@ export interface PricingSectionStyles {
|
|
|
13
13
|
css?: string;
|
|
14
14
|
cardLayout?: "center-price" | "icon-corner" | "name-desc-divider" | "icon-name-inline";
|
|
15
15
|
columns?: "2" | "3";
|
|
16
|
-
tabSwitching?:
|
|
16
|
+
tabSwitching?: string;
|
|
17
17
|
tableStyle?: "border-separated" | "zebra-striped";
|
|
18
|
-
bottomButtons?:
|
|
18
|
+
bottomButtons?: string;
|
|
19
19
|
}
|
|
20
20
|
export interface PricingSectionBaseProps {
|
|
21
21
|
tagline: string;
|
|
@@ -34,6 +34,70 @@ declare const conf: {
|
|
|
34
34
|
type: string;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
+
button: {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly objectFields: {
|
|
40
|
+
readonly label: {
|
|
41
|
+
readonly type: "text";
|
|
42
|
+
};
|
|
43
|
+
readonly action: {
|
|
44
|
+
type: "custom";
|
|
45
|
+
label: string;
|
|
46
|
+
render: typeof import("../../..").ActionField;
|
|
47
|
+
};
|
|
48
|
+
readonly variant: {
|
|
49
|
+
readonly type: "select";
|
|
50
|
+
readonly options: readonly [{
|
|
51
|
+
readonly label: "primary";
|
|
52
|
+
readonly value: "default";
|
|
53
|
+
}, {
|
|
54
|
+
readonly label: "secondary";
|
|
55
|
+
readonly value: "secondary";
|
|
56
|
+
}, {
|
|
57
|
+
readonly label: "outline";
|
|
58
|
+
readonly value: "outline";
|
|
59
|
+
}, {
|
|
60
|
+
readonly label: "ghost";
|
|
61
|
+
readonly value: "ghost";
|
|
62
|
+
}, {
|
|
63
|
+
readonly label: "link";
|
|
64
|
+
readonly value: "link";
|
|
65
|
+
}, {
|
|
66
|
+
readonly label: "destructive";
|
|
67
|
+
readonly value: "destructive";
|
|
68
|
+
}];
|
|
69
|
+
};
|
|
70
|
+
readonly size: {
|
|
71
|
+
readonly type: "select";
|
|
72
|
+
readonly options: readonly [{
|
|
73
|
+
readonly label: "default";
|
|
74
|
+
readonly value: "default";
|
|
75
|
+
}, {
|
|
76
|
+
readonly label: "sm";
|
|
77
|
+
readonly value: "sm";
|
|
78
|
+
}, {
|
|
79
|
+
readonly label: "lg";
|
|
80
|
+
readonly value: "lg";
|
|
81
|
+
}, {
|
|
82
|
+
readonly label: "icon";
|
|
83
|
+
readonly value: "icon";
|
|
84
|
+
}];
|
|
85
|
+
};
|
|
86
|
+
readonly icon: {
|
|
87
|
+
type: "custom";
|
|
88
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
icon: {
|
|
93
|
+
type: "object";
|
|
94
|
+
objectFields: {
|
|
95
|
+
src: import("@puckeditor/core").Field<string>;
|
|
96
|
+
alt: {
|
|
97
|
+
type: "text";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
37
101
|
};
|
|
38
102
|
};
|
|
39
103
|
styles: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SinglePricingCard, SinglePricingCardDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
5
|
import { pricingStyleFields } from "../props.js";
|
|
4
6
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
7
|
const conf = {
|
|
@@ -17,7 +19,9 @@ const conf = {
|
|
|
17
19
|
features: {
|
|
18
20
|
type: "array",
|
|
19
21
|
arrayFields: { type: "text" }
|
|
20
|
-
}
|
|
22
|
+
},
|
|
23
|
+
button: buttonField,
|
|
24
|
+
icon: mediaField
|
|
21
25
|
}
|
|
22
26
|
},
|
|
23
27
|
styles: {
|
|
@@ -27,6 +27,15 @@ declare const conf: {
|
|
|
27
27
|
description: {
|
|
28
28
|
type: string;
|
|
29
29
|
};
|
|
30
|
+
icon: {
|
|
31
|
+
type: "object";
|
|
32
|
+
objectFields: {
|
|
33
|
+
src: import("@puckeditor/core").Field<string>;
|
|
34
|
+
alt: {
|
|
35
|
+
type: "text";
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
30
39
|
};
|
|
31
40
|
};
|
|
32
41
|
pricingPlan: {
|
|
@@ -42,6 +51,67 @@ declare const conf: {
|
|
|
42
51
|
monthlyPrice: {
|
|
43
52
|
type: string;
|
|
44
53
|
};
|
|
54
|
+
features: {
|
|
55
|
+
type: string;
|
|
56
|
+
arrayFields: {
|
|
57
|
+
type: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
button: {
|
|
61
|
+
readonly type: "object";
|
|
62
|
+
readonly objectFields: {
|
|
63
|
+
readonly label: {
|
|
64
|
+
readonly type: "text";
|
|
65
|
+
};
|
|
66
|
+
readonly action: {
|
|
67
|
+
type: "custom";
|
|
68
|
+
label: string;
|
|
69
|
+
render: typeof import("../../..").ActionField;
|
|
70
|
+
};
|
|
71
|
+
readonly variant: {
|
|
72
|
+
readonly type: "select";
|
|
73
|
+
readonly options: readonly [{
|
|
74
|
+
readonly label: "primary";
|
|
75
|
+
readonly value: "default";
|
|
76
|
+
}, {
|
|
77
|
+
readonly label: "secondary";
|
|
78
|
+
readonly value: "secondary";
|
|
79
|
+
}, {
|
|
80
|
+
readonly label: "outline";
|
|
81
|
+
readonly value: "outline";
|
|
82
|
+
}, {
|
|
83
|
+
readonly label: "ghost";
|
|
84
|
+
readonly value: "ghost";
|
|
85
|
+
}, {
|
|
86
|
+
readonly label: "link";
|
|
87
|
+
readonly value: "link";
|
|
88
|
+
}, {
|
|
89
|
+
readonly label: "destructive";
|
|
90
|
+
readonly value: "destructive";
|
|
91
|
+
}];
|
|
92
|
+
};
|
|
93
|
+
readonly size: {
|
|
94
|
+
readonly type: "select";
|
|
95
|
+
readonly options: readonly [{
|
|
96
|
+
readonly label: "default";
|
|
97
|
+
readonly value: "default";
|
|
98
|
+
}, {
|
|
99
|
+
readonly label: "sm";
|
|
100
|
+
readonly value: "sm";
|
|
101
|
+
}, {
|
|
102
|
+
readonly label: "lg";
|
|
103
|
+
readonly value: "lg";
|
|
104
|
+
}, {
|
|
105
|
+
readonly label: "icon";
|
|
106
|
+
readonly value: "icon";
|
|
107
|
+
}];
|
|
108
|
+
};
|
|
109
|
+
readonly icon: {
|
|
110
|
+
type: "custom";
|
|
111
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
45
115
|
};
|
|
46
116
|
};
|
|
47
117
|
styles: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { SplitPricing, SplitPricingDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
4
|
+
import { mediaField } from "../../../puck-core/core/props/media.js";
|
|
3
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
4
6
|
const conf = {
|
|
5
7
|
fields: {
|
|
@@ -11,7 +13,8 @@ const conf = {
|
|
|
11
13
|
getItemSummary: (item, index = 0) => item.heading || `Feature ${index + 1}`,
|
|
12
14
|
arrayFields: {
|
|
13
15
|
heading: { type: "text" },
|
|
14
|
-
description: { type: "textarea" }
|
|
16
|
+
description: { type: "textarea" },
|
|
17
|
+
icon: mediaField
|
|
15
18
|
}
|
|
16
19
|
},
|
|
17
20
|
pricingPlan: {
|
|
@@ -20,7 +23,9 @@ const conf = {
|
|
|
20
23
|
objectFields: {
|
|
21
24
|
planName: { type: "text" },
|
|
22
25
|
description: { type: "textarea" },
|
|
23
|
-
monthlyPrice: { type: "text" }
|
|
26
|
+
monthlyPrice: { type: "text" },
|
|
27
|
+
features: { type: "array", arrayFields: { type: "text" } },
|
|
28
|
+
button: buttonField
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
styles: {
|
|
@@ -34,6 +34,84 @@ declare const conf: {
|
|
|
34
34
|
value: {
|
|
35
35
|
type: string;
|
|
36
36
|
};
|
|
37
|
+
plans: {
|
|
38
|
+
type: string;
|
|
39
|
+
arrayFields: {
|
|
40
|
+
planName: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
monthlyPrice: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
yearlyPrice: {
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
description: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
features: {
|
|
53
|
+
type: string;
|
|
54
|
+
arrayFields: {
|
|
55
|
+
type: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
button: {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly objectFields: {
|
|
61
|
+
readonly label: {
|
|
62
|
+
readonly type: "text";
|
|
63
|
+
};
|
|
64
|
+
readonly action: {
|
|
65
|
+
type: "custom";
|
|
66
|
+
label: string;
|
|
67
|
+
render: typeof import("../../..").ActionField;
|
|
68
|
+
};
|
|
69
|
+
readonly variant: {
|
|
70
|
+
readonly type: "select";
|
|
71
|
+
readonly options: readonly [{
|
|
72
|
+
readonly label: "primary";
|
|
73
|
+
readonly value: "default";
|
|
74
|
+
}, {
|
|
75
|
+
readonly label: "secondary";
|
|
76
|
+
readonly value: "secondary";
|
|
77
|
+
}, {
|
|
78
|
+
readonly label: "outline";
|
|
79
|
+
readonly value: "outline";
|
|
80
|
+
}, {
|
|
81
|
+
readonly label: "ghost";
|
|
82
|
+
readonly value: "ghost";
|
|
83
|
+
}, {
|
|
84
|
+
readonly label: "link";
|
|
85
|
+
readonly value: "link";
|
|
86
|
+
}, {
|
|
87
|
+
readonly label: "destructive";
|
|
88
|
+
readonly value: "destructive";
|
|
89
|
+
}];
|
|
90
|
+
};
|
|
91
|
+
readonly size: {
|
|
92
|
+
readonly type: "select";
|
|
93
|
+
readonly options: readonly [{
|
|
94
|
+
readonly label: "default";
|
|
95
|
+
readonly value: "default";
|
|
96
|
+
}, {
|
|
97
|
+
readonly label: "sm";
|
|
98
|
+
readonly value: "sm";
|
|
99
|
+
}, {
|
|
100
|
+
readonly label: "lg";
|
|
101
|
+
readonly value: "lg";
|
|
102
|
+
}, {
|
|
103
|
+
readonly label: "icon";
|
|
104
|
+
readonly value: "icon";
|
|
105
|
+
}];
|
|
106
|
+
};
|
|
107
|
+
readonly icon: {
|
|
108
|
+
type: "custom";
|
|
109
|
+
render: typeof import("../../../puck-core/fields/icon-picker-field").IconPickerField;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
37
115
|
};
|
|
38
116
|
};
|
|
39
117
|
styles: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TabPricingGrid, TabPricingGridDefaults } from "./component.js";
|
|
2
2
|
import { descriptionField, headingField } from "../../../puck-core/core/props/content.js";
|
|
3
|
+
import { buttonField } from "../../../puck-core/core/props/interactive.js";
|
|
3
4
|
import { pricingStyleFields } from "../props.js";
|
|
4
5
|
import { sectionWrapperFields } from "../../../puck-core/section-wrapper.js";
|
|
5
6
|
const conf = {
|
|
@@ -19,7 +20,18 @@ const conf = {
|
|
|
19
20
|
getItemSummary: (item, index = 0) => item.tabName || `Tab ${index + 1}`,
|
|
20
21
|
arrayFields: {
|
|
21
22
|
tabName: { type: "text" },
|
|
22
|
-
value: { type: "text" }
|
|
23
|
+
value: { type: "text" },
|
|
24
|
+
plans: {
|
|
25
|
+
type: "array",
|
|
26
|
+
arrayFields: {
|
|
27
|
+
planName: { type: "text" },
|
|
28
|
+
monthlyPrice: { type: "text" },
|
|
29
|
+
yearlyPrice: { type: "text" },
|
|
30
|
+
description: { type: "textarea" },
|
|
31
|
+
features: { type: "array", arrayFields: { type: "text" } },
|
|
32
|
+
button: buttonField
|
|
33
|
+
}
|
|
34
|
+
}
|
|
23
35
|
}
|
|
24
36
|
},
|
|
25
37
|
styles: {
|
|
@@ -34,6 +34,29 @@ declare const conf: {
|
|
|
34
34
|
value: {
|
|
35
35
|
type: string;
|
|
36
36
|
};
|
|
37
|
+
plans: {
|
|
38
|
+
type: string;
|
|
39
|
+
arrayFields: {
|
|
40
|
+
planName: {
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
price: {
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
features: {
|
|
47
|
+
type: string;
|
|
48
|
+
arrayFields: {};
|
|
49
|
+
};
|
|
50
|
+
button: {
|
|
51
|
+
type: string;
|
|
52
|
+
objectFields: {
|
|
53
|
+
label: {
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
37
60
|
};
|
|
38
61
|
};
|
|
39
62
|
styles: {
|
|
@@ -19,7 +19,16 @@ const conf = {
|
|
|
19
19
|
getItemSummary: (item, index = 0) => item.tabName || `Tab ${index + 1}`,
|
|
20
20
|
arrayFields: {
|
|
21
21
|
tabName: { type: "text" },
|
|
22
|
-
value: { type: "text" }
|
|
22
|
+
value: { type: "text" },
|
|
23
|
+
plans: {
|
|
24
|
+
type: "array",
|
|
25
|
+
arrayFields: {
|
|
26
|
+
planName: { type: "text" },
|
|
27
|
+
price: { type: "text" },
|
|
28
|
+
features: { type: "array", arrayFields: {} },
|
|
29
|
+
button: { type: "object", objectFields: { label: { type: "text" } } }
|
|
30
|
+
}
|
|
31
|
+
}
|
|
23
32
|
}
|
|
24
33
|
},
|
|
25
34
|
styles: {
|