dune-react 0.0.8 → 0.0.10
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-base/article-card.js +1 -1
- package/dist/components/puck-base/button.js +2 -1
- package/dist/components/puck-base/container.d.ts +7 -1
- package/dist/components/puck-base/container.js +2 -1
- package/dist/components/puck-base/content.d.ts +1 -4
- package/dist/components/puck-base/content.js +15 -17
- package/dist/components/puck-base/core/fields.d.ts +1 -127
- package/dist/components/puck-base/core/fields.js +1 -76
- package/dist/components/puck-base/core/styles.d.ts +1877 -0
- package/dist/components/puck-base/core/styles.js +286 -0
- package/dist/components/puck-base/core/types.d.ts +2 -2
- package/dist/components/puck-base/core/with-editable.d.ts +4 -1
- package/dist/components/puck-base/core/with-editable.js +51 -27
- package/dist/components/puck-base/editor-context.d.ts +8 -0
- package/dist/components/puck-base/fields/auto-field.d.ts +1 -0
- package/dist/components/puck-base/fields/auto-field.js +131 -49
- package/dist/components/puck-base/gradient-text.js +12 -3
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.d.ts +9 -7
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.js +11 -8
- package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +19 -37
- package/dist/components/puck-block/banner-sections/marquee-1/index.js +26 -24
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.d.ts +9 -9
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.js +28 -21
- package/dist/components/puck-block/banner-sections/props.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/api/form-leads.d.ts +16 -0
- package/dist/components/puck-block/contact-sections/api/form-leads.js +25 -0
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.d.ts +13 -4
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.js +122 -121
- package/dist/components/puck-block/contact-sections/contact-us-1/index.js +87 -7
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.d.ts +30 -0
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +234 -0
- package/dist/components/puck-block/contact-sections/contact-us-2/index.d.ts +5 -0
- package/dist/components/puck-block/contact-sections/contact-us-2/index.js +74 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +32 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +250 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/index.d.ts +5 -0
- package/dist/components/puck-block/contact-sections/contact-us-3/index.js +114 -0
- package/dist/components/puck-block/contact-sections/props.d.ts +65 -0
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.d.ts +12 -9
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.js +28 -30
- package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +23 -25
- package/dist/components/puck-block/cta-sections/cta-1/cta.d.ts +6 -4
- package/dist/components/puck-block/cta-sections/cta-1/cta.js +5 -7
- package/dist/components/puck-block/cta-sections/cta-1/index.js +5 -9
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.d.ts +10 -10
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.js +24 -20
- package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +36 -29
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +13 -5
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.d.ts +7 -3
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.js +36 -32
- package/dist/components/puck-block/cta-sections/promo-section-1/index.js +4 -5
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.d.ts +6 -4
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.js +94 -79
- package/dist/components/puck-block/cta-sections/props.d.ts +47 -0
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.d.ts +6 -4
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.js +39 -33
- package/dist/components/puck-block/faq-sections/accordion-1/index.js +3 -5
- package/dist/components/puck-block/faq-sections/faq-1/faq.d.ts +9 -7
- package/dist/components/puck-block/faq-sections/faq-1/faq.js +50 -44
- package/dist/components/puck-block/faq-sections/faq-1/index.js +12 -14
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.d.ts +18 -0
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +54 -0
- package/dist/components/puck-block/faq-sections/faq-2/index.d.ts +5 -0
- package/dist/components/puck-block/faq-sections/faq-2/index.js +61 -0
- package/dist/components/puck-block/faq-sections/props.d.ts +30 -0
- package/dist/components/puck-block/feature-sections/bento-1/bento.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/bento-1/bento.js +2 -4
- package/dist/components/puck-block/feature-sections/bento-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.d.ts +8 -7
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +15 -7
- package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +37 -18
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.js +4 -12
- package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.js +59 -53
- package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +7 -8
- package/dist/components/puck-block/feature-sections/product-features-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.js +7 -29
- package/dist/components/puck-block/feature-sections/props.d.ts +48 -0
- package/dist/components/puck-block/footer-sections/footer-1/footer.d.ts +5 -3
- package/dist/components/puck-block/footer-sections/footer-1/footer.js +6 -6
- package/dist/components/puck-block/footer-sections/footer-1/index.js +3 -5
- package/dist/components/puck-block/footer-sections/props.d.ts +31 -0
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.d.ts +9 -7
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.js +49 -40
- package/dist/components/puck-block/gallery-sections/gallery-1/index.js +32 -34
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.d.ts +16 -0
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +86 -0
- package/dist/components/puck-block/gallery-sections/gallery-2/index.d.ts +5 -0
- package/dist/components/puck-block/gallery-sections/gallery-2/index.js +42 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +19 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +119 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/index.d.ts +5 -0
- package/dist/components/puck-block/gallery-sections/gallery-3/index.js +59 -0
- package/dist/components/puck-block/gallery-sections/props.d.ts +26 -0
- package/dist/components/puck-block/header-sections/header-1/header.d.ts +7 -5
- package/dist/components/puck-block/header-sections/header-1/header.js +8 -9
- package/dist/components/puck-block/header-sections/header-1/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/header-1/index.js +13 -12
- package/dist/components/puck-block/header-sections/props.d.ts +41 -0
- package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +12 -12
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.d.ts +8 -6
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.d.ts +11 -4
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +60 -23
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +18 -6
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +9 -5
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +37 -24
- package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +18 -15
- package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.d.ts +7 -6
- package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.js +7 -10
- package/dist/components/puck-block/hero-sections/grid-hero-1/index.js +43 -11
- package/dist/components/puck-block/hero-sections/hero-1/hero.d.ts +6 -4
- package/dist/components/puck-block/hero-sections/hero-1/hero.js +5 -7
- package/dist/components/puck-block/hero-sections/hero-1/index.js +4 -4
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.d.ts +14 -8
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +64 -60
- package/dist/components/puck-block/hero-sections/image-hero-1/index.js +16 -34
- package/dist/components/puck-block/hero-sections/props.d.ts +71 -0
- package/dist/components/puck-block/hero-sections/split-hero-1/index.js +6 -5
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.d.ts +8 -8
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.js +48 -47
- package/dist/components/puck-block/hero-sections/video-hero-1/index.js +4 -3
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.d.ts +6 -2
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.js +30 -22
- package/dist/components/puck-block/index.d.ts +15 -0
- package/dist/components/puck-block/location-sections/location-1/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-1/index.js +108 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +28 -0
- package/dist/components/puck-block/location-sections/location-1/location.js +137 -0
- package/dist/components/puck-block/location-sections/location-2/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-2/index.js +123 -0
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +30 -0
- package/dist/components/puck-block/location-sections/location-2/location.js +131 -0
- package/dist/components/puck-block/location-sections/location-3/index.d.ts +5 -0
- package/dist/components/puck-block/location-sections/location-3/index.js +84 -0
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +24 -0
- package/dist/components/puck-block/location-sections/location-3/location.js +127 -0
- package/dist/components/puck-block/location-sections/props.d.ts +45 -0
- package/dist/components/puck-block/metrics-sections/props.d.ts +43 -0
- package/dist/components/puck-block/metrics-sections/stats-1/index.js +6 -7
- package/dist/components/puck-block/metrics-sections/stats-1/stats.d.ts +7 -5
- package/dist/components/puck-block/metrics-sections/stats-1/stats.js +61 -55
- package/dist/components/puck-block/metrics-sections/stats-2/index.d.ts +5 -0
- package/dist/components/puck-block/metrics-sections/stats-2/index.js +76 -0
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +18 -0
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +57 -0
- package/dist/components/puck-block/metrics-sections/stats-3/index.d.ts +5 -0
- package/dist/components/puck-block/metrics-sections/stats-3/index.js +86 -0
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +18 -0
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +56 -0
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.d.ts +7 -5
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.js +45 -39
- package/dist/components/puck-block/pricing-sections/comparison-1/index.js +5 -7
- package/dist/components/puck-block/pricing-sections/pricing-1/index.js +10 -11
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.d.ts +8 -6
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.js +47 -35
- package/dist/components/puck-block/pricing-sections/pricing-2/index.d.ts +5 -0
- package/dist/components/puck-block/pricing-sections/pricing-2/index.js +151 -0
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +26 -0
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +71 -0
- package/dist/components/puck-block/pricing-sections/props.d.ts +46 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.d.ts +22 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +71 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/index.d.ts +5 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/index.js +73 -0
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.d.ts +6 -2
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.js +30 -28
- package/dist/components/puck-block/showcase-sections/case-study-1/index.js +4 -3
- package/dist/components/puck-block/showcase-sections/props.d.ts +48 -0
- package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +3 -5
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.d.ts +6 -4
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.js +38 -41
- package/dist/components/puck-block/team-sections/props.d.ts +39 -0
- package/dist/components/puck-block/team-sections/team-grid-1/index.js +4 -5
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.js +27 -41
- package/dist/components/puck-block/team-sections/team-grid-2/index.d.ts +5 -0
- package/dist/components/puck-block/team-sections/team-grid-2/index.js +62 -0
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +23 -0
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +44 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/index.d.ts +5 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/index.js +53 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +23 -0
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +105 -0
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.d.ts +9 -7
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.js +8 -11
- package/dist/components/puck-block/testimonial-sections/customers-1/index.js +17 -17
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +15 -12
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.d.ts +7 -3
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.js +34 -24
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.d.ts +5 -0
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +51 -0
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +17 -0
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +55 -0
- package/dist/components/puck-block/testimonial-sections/props.d.ts +34 -0
- package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +16 -15
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts +8 -6
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.js +25 -19
- package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +17 -17
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.d.ts +8 -6
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.js +76 -63
- package/dist/components/puck-block/text-sections/articles-1/articles.d.ts +7 -4
- package/dist/components/puck-block/text-sections/articles-1/articles.js +42 -22
- package/dist/components/puck-block/text-sections/articles-1/index.js +31 -19
- package/dist/components/puck-block/text-sections/content-section-1/content-section.d.ts +7 -5
- package/dist/components/puck-block/text-sections/content-section-1/content-section.js +11 -12
- package/dist/components/puck-block/text-sections/content-section-1/index.js +14 -14
- package/dist/components/puck-block/text-sections/props.d.ts +58 -0
- package/dist/components/puck-block/text-sections/rich-text-1/index.js +13 -15
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.d.ts +7 -5
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +11 -11
- package/dist/components/puck-block/text-sections/tab-section-1/index.js +4 -5
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.d.ts +6 -4
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.js +6 -7
- package/dist/components/puck-block/text-sections/timeline-1/index.js +3 -5
- package/dist/components/puck-block/text-sections/timeline-1/timeline.d.ts +6 -4
- package/dist/components/puck-block/text-sections/timeline-1/timeline.js +3 -5
- package/dist/components/puck-block/text-sections/two-column-1/index.js +4 -6
- package/dist/components/puck-block/text-sections/two-column-1/two-column.d.ts +6 -4
- package/dist/components/puck-block/text-sections/two-column-1/two-column.js +5 -7
- package/dist/components/shadcn/navigation-menu.d.ts +1 -1
- package/dist/components/shadcn/navigation-menu.js +33 -0
- package/dist/index.js +106 -75
- package/package.json +1 -1
|
@@ -1,49 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { buttons, badge } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { ImageHero } from "./image-hero.js";
|
|
3
|
+
import { heroStylesDefaults, heroStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
heading: { type: "text", contentEditable: true },
|
|
6
7
|
description: { type: "textarea", contentEditable: true },
|
|
7
8
|
badge,
|
|
8
9
|
buttons,
|
|
9
|
-
backgroundImage
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
{ label: "Gradient", value: "gradient" }
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
align: {
|
|
20
|
-
type: "radio",
|
|
21
|
-
label: "Alignment",
|
|
22
|
-
options: [
|
|
23
|
-
{ label: "Left", value: "left" },
|
|
24
|
-
{ label: "Center", value: "center" }
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
minHeight: {
|
|
28
|
-
type: "select",
|
|
29
|
-
label: "Min Height",
|
|
30
|
-
options: [
|
|
31
|
-
{ label: "Medium", value: "medium" },
|
|
32
|
-
{ label: "Large", value: "large" },
|
|
33
|
-
{ label: "Full Screen", value: "full" }
|
|
34
|
-
]
|
|
10
|
+
backgroundImage: {
|
|
11
|
+
type: "text",
|
|
12
|
+
label: "Background Image URL",
|
|
13
|
+
ai: {
|
|
14
|
+
instructions: "URL for a full-width background image behind the section.",
|
|
15
|
+
stream: false
|
|
16
|
+
}
|
|
35
17
|
},
|
|
36
|
-
|
|
37
|
-
sectionStyle,
|
|
38
|
-
backgroundColor
|
|
18
|
+
styles: heroStylesField
|
|
39
19
|
},
|
|
40
20
|
defaultProps: {
|
|
41
21
|
heading: "Your Story Starts Here",
|
|
42
22
|
description: "Create something extraordinary with our platform. Built for dreamers, makers, and innovators.",
|
|
43
23
|
backgroundImage: "https://images.pexels.com/photos/3184291/pexels-photo-3184291.jpeg?auto=compress&cs=tinysrgb&w=1920",
|
|
44
|
-
overlay: "dark",
|
|
45
|
-
align: "center",
|
|
46
|
-
minHeight: "large",
|
|
47
24
|
buttons: [
|
|
48
25
|
{
|
|
49
26
|
label: "Get Started",
|
|
@@ -60,7 +37,12 @@ const conf = {
|
|
|
60
37
|
icon: "none"
|
|
61
38
|
}
|
|
62
39
|
],
|
|
63
|
-
|
|
40
|
+
styles: {
|
|
41
|
+
...heroStylesDefaults,
|
|
42
|
+
overlay: "dark",
|
|
43
|
+
align: "center",
|
|
44
|
+
minHeight: "large"
|
|
45
|
+
}
|
|
64
46
|
},
|
|
65
47
|
render: ImageHero
|
|
66
48
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
type HeroVariant = "hero-1" | "split-hero-1" | "grid-hero-1" | "image-hero-1" | "video-hero-1" | "gradient-hero-1" | "fullscreen-hero-1";
|
|
2
|
+
type HeroPadding = {
|
|
3
|
+
top?: "none" | "small" | "medium" | "large";
|
|
4
|
+
bottom?: "none" | "small" | "medium" | "large";
|
|
5
|
+
};
|
|
6
|
+
type HeroSectionStyle = "default" | "dark" | "muted" | "inverted" | "custom";
|
|
7
|
+
type HeroBadge = {
|
|
8
|
+
label: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | string;
|
|
11
|
+
};
|
|
12
|
+
type HeroButton = {
|
|
13
|
+
label: string;
|
|
14
|
+
url?: string;
|
|
15
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
|
|
16
|
+
size?: "default" | "sm" | "lg" | "icon";
|
|
17
|
+
icon?: string;
|
|
18
|
+
};
|
|
19
|
+
type HeroFeature = {
|
|
20
|
+
icon?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
description?: string;
|
|
23
|
+
};
|
|
24
|
+
type HeroImage = {
|
|
25
|
+
src: string;
|
|
26
|
+
alt?: string;
|
|
27
|
+
aspectRatio?: "16x9" | "1x1";
|
|
28
|
+
};
|
|
29
|
+
type HeroSidebarItem = {
|
|
30
|
+
label: string;
|
|
31
|
+
value?: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
url?: string;
|
|
34
|
+
};
|
|
35
|
+
type HeroSectionProps = {
|
|
36
|
+
variant?: HeroVariant;
|
|
37
|
+
badge?: HeroBadge;
|
|
38
|
+
heading?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
buttons?: HeroButton[];
|
|
41
|
+
features?: HeroFeature[];
|
|
42
|
+
alignContent?: "start" | "center" | "end";
|
|
43
|
+
spacing?: "tight" | "normal" | "relaxed";
|
|
44
|
+
align?: "left" | "center";
|
|
45
|
+
displaySize?: "default" | "display";
|
|
46
|
+
images?: HeroImage | HeroImage[];
|
|
47
|
+
backgroundImage?: HeroImage | string;
|
|
48
|
+
posterImage?: HeroImage;
|
|
49
|
+
videoUrl?: string;
|
|
50
|
+
adjectives?: {
|
|
51
|
+
adjective: string;
|
|
52
|
+
}[];
|
|
53
|
+
displayText?: string;
|
|
54
|
+
imageLayout?: "1x1" | "1x1-9x16-1x1" | "16x9";
|
|
55
|
+
imagePosition?: "left" | "right";
|
|
56
|
+
leftSidebarTitle?: string;
|
|
57
|
+
leftSidebar?: HeroSidebarItem[];
|
|
58
|
+
rightSidebarTitle?: string;
|
|
59
|
+
rightSidebar?: HeroSidebarItem[];
|
|
60
|
+
styles?: {
|
|
61
|
+
padding?: HeroPadding;
|
|
62
|
+
sectionStyle?: HeroSectionStyle;
|
|
63
|
+
backgroundColor?: string;
|
|
64
|
+
className?: string;
|
|
65
|
+
showGridLines?: boolean;
|
|
66
|
+
overlay?: "none" | "dark" | "gradient";
|
|
67
|
+
minHeight?: "medium" | "large" | "full";
|
|
68
|
+
gradientFrom?: string;
|
|
69
|
+
gradientTo?: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image16x9Placeholder, images, contentFields } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { SplitHero } from "./split-hero.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
...contentFields,
|
|
6
7
|
displayText: { type: "text" },
|
|
7
|
-
|
|
8
|
+
images: { ...images, max: 1 },
|
|
8
9
|
imagePosition: {
|
|
9
10
|
type: "radio",
|
|
10
11
|
options: [
|
|
@@ -12,7 +13,7 @@ const conf = {
|
|
|
12
13
|
{ label: "Right", value: "right" }
|
|
13
14
|
]
|
|
14
15
|
},
|
|
15
|
-
|
|
16
|
+
styles: createStylesField()
|
|
16
17
|
},
|
|
17
18
|
defaultProps: {
|
|
18
19
|
heading: "Launch your next big idea",
|
|
@@ -22,9 +23,9 @@ const conf = {
|
|
|
22
23
|
{ label: "Start building", icon: "move-right", variant: "default" },
|
|
23
24
|
{ label: "See demo", icon: "play", variant: "outline" }
|
|
24
25
|
],
|
|
25
|
-
|
|
26
|
+
images: [image16x9Placeholder],
|
|
26
27
|
imagePosition: "right",
|
|
27
|
-
|
|
28
|
+
styles: createStylesDefaults()
|
|
28
29
|
},
|
|
29
30
|
render: SplitHero
|
|
30
31
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundContentProps } from "@/components/puck-base/content";
|
|
3
|
+
import { CompoundImageProps } from "@/components/puck-base/image";
|
|
3
4
|
export interface SplitHeroProps extends CompoundContentProps {
|
|
4
|
-
|
|
5
|
-
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
6
|
-
backgroundColor?: string;
|
|
7
|
-
image?: {
|
|
8
|
-
src: string;
|
|
9
|
-
alt: string;
|
|
10
|
-
};
|
|
5
|
+
images?: CompoundImageProps | CompoundImageProps[];
|
|
11
6
|
imagePosition?: "left" | "right";
|
|
12
7
|
displayText?: string;
|
|
8
|
+
styles?: {
|
|
9
|
+
padding?: CompoundContainerProps["padding"];
|
|
10
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
};
|
|
13
13
|
}
|
|
14
|
-
export declare const SplitHero: ({
|
|
14
|
+
export declare const SplitHero: ({ badge, heading, description, buttons, images, imagePosition, displayText, styles, }: SplitHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,58 +4,59 @@ import { CompoundContainer } from "../../../puck-base/container.js";
|
|
|
4
4
|
import { CompoundContent } from "../../../puck-base/content.js";
|
|
5
5
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
6
6
|
const SplitHero = ({
|
|
7
|
-
padding,
|
|
8
|
-
sectionStyle,
|
|
9
|
-
backgroundColor,
|
|
10
7
|
badge,
|
|
11
8
|
heading,
|
|
12
9
|
description,
|
|
13
10
|
buttons,
|
|
14
|
-
|
|
11
|
+
images,
|
|
15
12
|
imagePosition = "right",
|
|
16
|
-
displayText
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
13
|
+
displayText,
|
|
14
|
+
styles
|
|
15
|
+
}) => {
|
|
16
|
+
const primaryImage = Array.isArray(images) ? images[0] : images;
|
|
17
|
+
return /* @__PURE__ */ jsx(
|
|
18
|
+
CompoundContainer,
|
|
19
|
+
{
|
|
20
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
21
|
+
sectionStyle: styles == null ? void 0 : styles.sectionStyle,
|
|
22
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
23
|
+
children: /* @__PURE__ */ jsxs(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: cn(
|
|
27
|
+
"grid grid-cols-1 items-center gap-8 lg:grid-cols-2 lg:gap-16",
|
|
28
|
+
imagePosition === "left" && "lg:[direction:rtl] lg:[&>*]:[direction:ltr]"
|
|
29
|
+
),
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
32
|
+
displayText && /* @__PURE__ */ jsx("p", { className: "mb-4 font-serif text-5xl font-bold tracking-tighter md:text-7xl lg:text-8xl", children: displayText }),
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
CompoundContent,
|
|
35
|
+
{
|
|
36
|
+
badge,
|
|
37
|
+
heading: displayText ? void 0 : heading,
|
|
38
|
+
description,
|
|
39
|
+
buttons
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ jsxs("div", { className: "border-border/50 relative aspect-[4/3] overflow-hidden rounded-xl border bg-muted [&>span]:h-full [&>span]:w-full", children: [
|
|
44
|
+
!(primaryImage == null ? void 0 : primaryImage.src) && /* @__PURE__ */ jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: "Image" }) }),
|
|
45
|
+
/* @__PURE__ */ jsx(
|
|
46
|
+
CompoundImage,
|
|
47
|
+
{
|
|
48
|
+
src: (primaryImage == null ? void 0 : primaryImage.src) || "",
|
|
49
|
+
alt: (primaryImage == null ? void 0 : primaryImage.alt) || "",
|
|
50
|
+
className: "h-full w-full object-cover"
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] })
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
59
60
|
export {
|
|
60
61
|
SplitHero
|
|
61
62
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { image16x9Placeholder, image, contentFields } from "../../../puck-base/core/fields.js";
|
|
2
2
|
import { VideoHero } from "./video-hero.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
3
4
|
const conf = {
|
|
4
5
|
fields: {
|
|
5
6
|
...contentFields,
|
|
@@ -9,14 +10,14 @@ const conf = {
|
|
|
9
10
|
ai: { instructions: "Direct URL to an MP4 video" }
|
|
10
11
|
},
|
|
11
12
|
posterImage: image,
|
|
12
|
-
|
|
13
|
+
styles: createStylesField()
|
|
13
14
|
},
|
|
14
15
|
defaultProps: {
|
|
15
16
|
heading: "See it in action",
|
|
16
17
|
description: "Watch how our platform helps teams build faster.",
|
|
17
18
|
buttons: [{ label: "Try it free", icon: "move-right", variant: "default" }],
|
|
18
19
|
posterImage: image16x9Placeholder,
|
|
19
|
-
|
|
20
|
+
styles: createStylesDefaults()
|
|
20
21
|
},
|
|
21
22
|
render: VideoHero
|
|
22
23
|
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
2
|
import { CompoundContentProps } from "@/components/puck-base/content";
|
|
3
3
|
export interface VideoHeroProps extends CompoundContentProps {
|
|
4
|
-
padding?: CompoundContainerProps["padding"];
|
|
5
4
|
videoUrl?: string;
|
|
6
5
|
posterImage?: {
|
|
7
6
|
src: string;
|
|
8
7
|
alt: string;
|
|
9
8
|
};
|
|
9
|
+
styles?: {
|
|
10
|
+
padding?: CompoundContainerProps["padding"];
|
|
11
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
};
|
|
10
14
|
}
|
|
11
|
-
export declare const VideoHero: ({
|
|
15
|
+
export declare const VideoHero: ({ badge, heading, description, buttons, videoUrl, posterImage, styles, }: VideoHeroProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,33 +2,41 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { CompoundContainer } from "../../../puck-base/container.js";
|
|
3
3
|
import { CompoundContent } from "../../../puck-base/content.js";
|
|
4
4
|
const VideoHero = ({
|
|
5
|
-
padding,
|
|
6
5
|
badge,
|
|
7
6
|
heading,
|
|
8
7
|
description,
|
|
9
8
|
buttons,
|
|
10
9
|
videoUrl,
|
|
11
|
-
posterImage
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
10
|
+
posterImage,
|
|
11
|
+
styles
|
|
12
|
+
}) => /* @__PURE__ */ jsx(
|
|
13
|
+
CompoundContainer,
|
|
14
|
+
{
|
|
15
|
+
padding: styles == null ? void 0 : styles.padding,
|
|
16
|
+
sectionStyle: (styles == null ? void 0 : styles.sectionStyle) ?? "dark",
|
|
17
|
+
backgroundColor: styles == null ? void 0 : styles.backgroundColor,
|
|
18
|
+
children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center gap-12 lg:grid-cols-2", children: [
|
|
19
|
+
/* @__PURE__ */ jsx(
|
|
20
|
+
CompoundContent,
|
|
21
|
+
{
|
|
22
|
+
badge,
|
|
23
|
+
heading,
|
|
24
|
+
description,
|
|
25
|
+
buttons
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ jsx("div", { className: "border-border/20 overflow-hidden rounded-xl border bg-black/50", children: videoUrl ? /* @__PURE__ */ jsx(
|
|
29
|
+
"video",
|
|
30
|
+
{
|
|
31
|
+
src: videoUrl,
|
|
32
|
+
poster: posterImage == null ? void 0 : posterImage.src,
|
|
33
|
+
controls: true,
|
|
34
|
+
className: "aspect-video w-full object-cover"
|
|
35
|
+
}
|
|
36
|
+
) : /* @__PURE__ */ jsx("div", { className: "flex aspect-video w-full items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "bg-primary/20 flex h-16 w-16 items-center justify-center rounded-full", children: /* @__PURE__ */ jsx("span", { className: "text-primary text-2xl", children: "▶" }) }) }) })
|
|
37
|
+
] })
|
|
38
|
+
}
|
|
39
|
+
);
|
|
32
40
|
export {
|
|
33
41
|
VideoHero
|
|
34
42
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { conf as AnnouncementBannerConf, type AnnouncementBannerProps } from "./banner-sections/announcement-banner-1/index.tsx";
|
|
2
2
|
export { conf as MarqueeConf, type MarqueeProps } from "./banner-sections/marquee-1/index.tsx";
|
|
3
3
|
export { conf as ContactUsConf, type ContactUsProps } from "./contact-sections/contact-us-1/index.tsx";
|
|
4
|
+
export { conf as ContactUs2Conf, type ContactUs2Props } from "./contact-sections/contact-us-2/index.tsx";
|
|
5
|
+
export { conf as ContactUs3Conf, type ContactUs3Props } from "./contact-sections/contact-us-3/index.tsx";
|
|
4
6
|
export { conf as BannerCtaConf, type BannerCtaProps } from "./cta-sections/banner-cta-1/index.tsx";
|
|
5
7
|
export { conf as CtaConf, type CtaProps } from "./cta-sections/cta-1/index.tsx";
|
|
6
8
|
export { conf as GradientCtaConf, type GradientCtaProps } from "./cta-sections/gradient-cta-1/index.tsx";
|
|
@@ -8,6 +10,7 @@ export { conf as NewsletterSignupConf, type NewsletterSignupProps } from "./cta-
|
|
|
8
10
|
export { conf as PromoSectionConf, type PromoSectionProps } from "./cta-sections/promo-section-1/index.tsx";
|
|
9
11
|
export { conf as AccordionConf, type AccordionProps } from "./faq-sections/accordion-1/index.tsx";
|
|
10
12
|
export { conf as FaqConf, type FaqProps } from "./faq-sections/faq-1/index.tsx";
|
|
13
|
+
export { conf as Faq2Conf, type Faq2Props } from "./faq-sections/faq-2/index.tsx";
|
|
11
14
|
export { conf as BentoConf, type BentoProps } from "./feature-sections/bento-1/index.tsx";
|
|
12
15
|
export { conf as FeatureCardsConf, type FeatureCardsProps } from "./feature-sections/feature-cards-1/index.tsx";
|
|
13
16
|
export { conf as FeatureShowcaseConf, type FeatureShowcaseProps } from "./feature-sections/feature-showcase-1/index.tsx";
|
|
@@ -15,6 +18,8 @@ export { conf as IconGridConf, type IconGridProps } from "./feature-sections/ico
|
|
|
15
18
|
export { conf as ProductFeaturesConf, type ProductFeaturesProps } from "./feature-sections/product-features-1/index.tsx";
|
|
16
19
|
export { conf as FooterConf, type FooterProps } from "./footer-sections/footer-1/index.tsx";
|
|
17
20
|
export { conf as GalleryConf, type GalleryProps } from "./gallery-sections/gallery-1/index.tsx";
|
|
21
|
+
export { conf as Gallery2Conf, type Gallery2Props } from "./gallery-sections/gallery-2/index.tsx";
|
|
22
|
+
export { conf as Gallery3Conf, type Gallery3Props } from "./gallery-sections/gallery-3/index.tsx";
|
|
18
23
|
export { default as HeaderConf, type HeaderProps } from "./header-sections/header-1/index.tsx";
|
|
19
24
|
export { conf as StickyNavConf, type StickyNavProps } from "./header-sections/sticky-nav-1/index.tsx";
|
|
20
25
|
export { conf as FullscreenHeroConf, type FullscreenHeroProps } from "./hero-sections/fullscreen-hero-1/index.tsx";
|
|
@@ -24,15 +29,25 @@ export { conf as HeroConf, type HeroProps } from "./hero-sections/hero-1/index.t
|
|
|
24
29
|
export { conf as ImageHeroConf, type ImageHeroProps } from "./hero-sections/image-hero-1/index.tsx";
|
|
25
30
|
export { conf as SplitHeroConf, type SplitHeroProps } from "./hero-sections/split-hero-1/index.tsx";
|
|
26
31
|
export { conf as VideoHeroConf, type VideoHeroProps } from "./hero-sections/video-hero-1/index.tsx";
|
|
32
|
+
export { conf as LocationConf, type LocationSectionProps as LocationProps } from "./location-sections/location-1/index.tsx";
|
|
33
|
+
export { conf as Location2Conf, type Location2Props } from "./location-sections/location-2/index.tsx";
|
|
34
|
+
export { conf as Location3Conf, type Location3Props } from "./location-sections/location-3/index.tsx";
|
|
27
35
|
export { conf as StatsConf, type StatsProps } from "./metrics-sections/stats-1/index.tsx";
|
|
36
|
+
export { conf as Stats2Conf, type Stats2Props } from "./metrics-sections/stats-2/index.tsx";
|
|
37
|
+
export { conf as Stats3Conf, type Stats3Props } from "./metrics-sections/stats-3/index.tsx";
|
|
28
38
|
export { conf as ComparisonConf, type ComparisonProps } from "./pricing-sections/comparison-1/index.tsx";
|
|
29
39
|
export { conf as PricingConf, type PricingProps } from "./pricing-sections/pricing-1/index.tsx";
|
|
40
|
+
export { conf as Pricing2Conf, type Pricing2Props } from "./pricing-sections/pricing-2/index.tsx";
|
|
41
|
+
export { conf as BeforeAfterConf, type BeforeAfterProps } from "./showcase-sections/before-after-1/index.tsx";
|
|
30
42
|
export { conf as CaseStudyConf, type CaseStudyProps } from "./showcase-sections/case-study-1/index.tsx";
|
|
31
43
|
export { conf as StepByStepConf, type StepByStepProps } from "./showcase-sections/step-by-step-1/index.tsx";
|
|
32
44
|
export { conf as TeamGridConf, type TeamGridProps } from "./team-sections/team-grid-1/index.tsx";
|
|
45
|
+
export { conf as TeamGrid2Conf, type TeamGrid2Props } from "./team-sections/team-grid-2/index.tsx";
|
|
46
|
+
export { conf as TeamProfilesConf, type TeamProfilesProps } from "./team-sections/team-profiles-1/index.tsx";
|
|
33
47
|
export { conf as CustomersConf, type CustomersProps } from "./testimonial-sections/customers-1/index.tsx";
|
|
34
48
|
export { conf as LogoMarqueeConf, type LogoMarqueeProps } from "./testimonial-sections/logo-marquee-1/index.tsx";
|
|
35
49
|
export { conf as ReviewSectionConf, type ReviewSectionProps } from "./testimonial-sections/review-section-1/index.tsx";
|
|
50
|
+
export { conf as LogoWallConf, type LogoWall1Props as LogoWallProps } from "./testimonial-sections/logo-wall-1/index.tsx";
|
|
36
51
|
export { conf as TestimonialsConf, type TestimonialsProps } from "./testimonial-sections/testimonials-1/index.tsx";
|
|
37
52
|
export { conf as ArticlesConf, type ArticlesProps } from "./text-sections/articles-1/index.tsx";
|
|
38
53
|
export { conf as ContentSectionConf, type ContentSectionProps } from "./text-sections/content-section-1/index.tsx";
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { button } from "../../../puck-base/core/fields.js";
|
|
2
|
+
import { LocationSection } from "./location.js";
|
|
3
|
+
import { createStylesDefaults, createStylesField } from "../../../puck-base/core/styles.js";
|
|
4
|
+
const locationButtonFields = {
|
|
5
|
+
...button.objectFields,
|
|
6
|
+
colorMode: {
|
|
7
|
+
type: "select",
|
|
8
|
+
options: [
|
|
9
|
+
{ label: "Theme", value: "theme" },
|
|
10
|
+
{ label: "Custom", value: "custom" }
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
backgroundColor: { type: "text" },
|
|
14
|
+
textColor: { type: "text" }
|
|
15
|
+
};
|
|
16
|
+
const locationButtonDefaults = {
|
|
17
|
+
label: "Button",
|
|
18
|
+
url: "",
|
|
19
|
+
variant: "default",
|
|
20
|
+
size: "default",
|
|
21
|
+
icon: "none",
|
|
22
|
+
colorMode: "theme"
|
|
23
|
+
};
|
|
24
|
+
const conf = {
|
|
25
|
+
fields: {
|
|
26
|
+
heading: { type: "textarea", contentEditable: true },
|
|
27
|
+
description: { type: "textarea", contentEditable: true },
|
|
28
|
+
contentAlign: {
|
|
29
|
+
type: "radio",
|
|
30
|
+
label: "Text Align",
|
|
31
|
+
options: [
|
|
32
|
+
{ label: "Left", value: "left" },
|
|
33
|
+
{ label: "Right", value: "right" }
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
contentPosition: {
|
|
37
|
+
type: "radio",
|
|
38
|
+
label: "Layout",
|
|
39
|
+
options: [
|
|
40
|
+
{ label: "Text Left / Map Right", value: "left" },
|
|
41
|
+
{ label: "Map Left / Text Right", value: "right" }
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
mapEmbedUrl: { type: "text", label: "Google Map Embed URL" },
|
|
45
|
+
mapTitle: { type: "text", label: "Map Title" },
|
|
46
|
+
mapFilter: { type: "text", label: "Map Filter (CSS)" },
|
|
47
|
+
mapTintMode: {
|
|
48
|
+
type: "select",
|
|
49
|
+
label: "Map Tint Mode",
|
|
50
|
+
options: [
|
|
51
|
+
{ label: "Theme", value: "theme" },
|
|
52
|
+
{ label: "Custom", value: "custom" },
|
|
53
|
+
{ label: "None", value: "none" }
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
mapTintColor: { type: "text", label: "Map Tint Color" },
|
|
57
|
+
mapTintOpacity: {
|
|
58
|
+
type: "number",
|
|
59
|
+
label: "Map Tint Opacity",
|
|
60
|
+
min: 0,
|
|
61
|
+
max: 1,
|
|
62
|
+
step: 0.01
|
|
63
|
+
},
|
|
64
|
+
buttons: {
|
|
65
|
+
type: "array",
|
|
66
|
+
max: 3,
|
|
67
|
+
getItemSummary: (item, index = 0) => item.label || `Button ${index + 1}`,
|
|
68
|
+
arrayFields: locationButtonFields,
|
|
69
|
+
defaultItemProps: locationButtonDefaults
|
|
70
|
+
},
|
|
71
|
+
styles: createStylesField()
|
|
72
|
+
},
|
|
73
|
+
defaultProps: {
|
|
74
|
+
heading: "Find us in\nLos Angeles",
|
|
75
|
+
description: "Located in the heart of Los Angeles, bblopo is easy to reach. Stop by to meet Yanxin and start your fitness journey today.",
|
|
76
|
+
contentAlign: "left",
|
|
77
|
+
contentPosition: "left",
|
|
78
|
+
mapEmbedUrl: "https://maps.google.com/maps?q=Los%20Angeles%2C%20California%2C%20United%20States&z=13&t=m&output=embed",
|
|
79
|
+
mapTitle: "Google Maps",
|
|
80
|
+
mapFilter: "grayscale(45%) contrast(1.06) brightness(0.98) saturate(0.9)",
|
|
81
|
+
mapTintMode: "theme",
|
|
82
|
+
mapTintColor: "var(--primary)",
|
|
83
|
+
mapTintOpacity: 0.21,
|
|
84
|
+
buttons: [
|
|
85
|
+
{
|
|
86
|
+
label: "Call to visit",
|
|
87
|
+
url: "tel:+12345678900",
|
|
88
|
+
variant: "default",
|
|
89
|
+
size: "default",
|
|
90
|
+
icon: "none",
|
|
91
|
+
colorMode: "theme"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: "Get directions",
|
|
95
|
+
url: "mailto:email@mybusiness.com",
|
|
96
|
+
variant: "secondary",
|
|
97
|
+
size: "default",
|
|
98
|
+
icon: "none",
|
|
99
|
+
colorMode: "theme"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
styles: createStylesDefaults()
|
|
103
|
+
},
|
|
104
|
+
render: LocationSection
|
|
105
|
+
};
|
|
106
|
+
export {
|
|
107
|
+
conf
|
|
108
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CompoundContainerProps } from "@/components/puck-base/container";
|
|
2
|
+
import { CompoundButtonProps } from "@/components/puck-base/button";
|
|
3
|
+
interface LocationButton extends Omit<CompoundButtonProps, "label"> {
|
|
4
|
+
label?: string;
|
|
5
|
+
colorMode?: "theme" | "custom";
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface LocationSectionProps {
|
|
10
|
+
heading?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
contentAlign?: "left" | "right";
|
|
13
|
+
contentPosition?: "left" | "right";
|
|
14
|
+
mapEmbedUrl?: string;
|
|
15
|
+
mapTitle?: string;
|
|
16
|
+
mapFilter?: string;
|
|
17
|
+
mapTintMode?: "theme" | "custom" | "none";
|
|
18
|
+
mapTintColor?: string;
|
|
19
|
+
mapTintOpacity?: number;
|
|
20
|
+
buttons?: LocationButton[];
|
|
21
|
+
styles?: {
|
|
22
|
+
padding?: CompoundContainerProps["padding"];
|
|
23
|
+
sectionStyle?: CompoundContainerProps["sectionStyle"];
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare const LocationSection: ({ heading, description, contentAlign, contentPosition, mapEmbedUrl, mapTitle, mapFilter, mapTintMode, mapTintColor, mapTintOpacity, buttons, styles, }: LocationSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|