dune-react 0.0.21 → 0.0.23
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/index.d.ts +1 -0
- package/dist/components/puck-base/button.d.ts +1 -1
- package/dist/components/puck-base/button.js +5 -6
- package/dist/components/puck-base/card.d.ts +1 -1
- package/dist/components/puck-base/container.js +1 -1
- package/dist/components/puck-base/content.d.ts +1 -1
- package/dist/components/puck-base/image.js +16 -16
- package/dist/components/puck-base/index.d.ts +1 -13
- package/dist/components/puck-block/banner-sections/css-marquee-banner/css-marquee-banner.js +13 -13
- package/dist/components/puck-block/banner-sections/dismissible-banner/index.d.ts +3 -25
- package/dist/components/puck-block/banner-sections/dual-row-marquee/dual-row-marquee.js +8 -8
- package/dist/components/puck-block/banner-sections/scroll-driven-marquee/scroll-driven-marquee.js +8 -6
- package/dist/components/puck-block/banner-sections/scroll-parallax-text/scroll-parallax-text.js +3 -1
- package/dist/components/puck-block/contact-sections/centered-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/contact-cards-grid/contact-cards-grid.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/contact-modal.js +1 -1
- package/dist/components/puck-block/contact-sections/contact-modal/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/form-with-media.js +1 -1
- package/dist/components/puck-block/contact-sections/form-with-media/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/header-form-cards.js +1 -1
- package/dist/components/puck-block/contact-sections/header-form-cards/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/header-info-fullwidth/header-info-fullwidth.js +2 -2
- package/dist/components/puck-block/contact-sections/info-cards-media/info-cards-media.js +2 -2
- package/dist/components/puck-block/contact-sections/location-cards-grid/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/index.d.ts +1 -1
- package/dist/components/puck-block/contact-sections/split-info-form/split-info-form.js +1 -1
- package/dist/components/puck-block/cta-sections/feature-card-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/index.d.ts +2 -0
- package/dist/components/puck-block/cta-sections/mouse-track-cta/index.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/mouse-track-cta/mouse-track-cta.js +92 -63
- package/dist/components/puck-block/cta-sections/props.js +46 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/index.d.ts +1 -73
- package/dist/components/puck-block/cta-sections/side-media-cta/index.js +35 -0
- package/dist/components/puck-block/cta-sections/side-media-cta/side-media-cta.js +84 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/index.d.ts +2 -74
- package/dist/components/puck-block/cta-sections/text-block-cta/index.js +38 -0
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.d.ts +1 -1
- package/dist/components/puck-block/cta-sections/text-block-cta/text-block-cta.js +165 -0
- package/dist/components/puck-block/faq-sections/dual-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/icon-card-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/stacked-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-accordion-faq/index.d.ts +1 -1
- package/dist/components/puck-block/faq-sections/two-column-static-faq/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-cards-grid/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/feature-list-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/feature-list-split/index.d.ts +2 -2
- package/dist/components/puck-block/feature-sections/tab-feature/component.js +80 -64
- package/dist/components/puck-block/feature-sections/text-media-split/component.js +1 -1
- package/dist/components/puck-block/feature-sections/text-media-split/index.d.ts +1 -1
- package/dist/components/puck-block/feature-sections/text-only-section/index.d.ts +1 -1
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/centered-minimal-footer.js +72 -18
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.d.ts +79 -0
- package/dist/components/puck-block/footer-sections/centered-minimal-footer/index.js +43 -1
- package/dist/components/puck-block/footer-sections/compact-newsletter-footer/index.d.ts +42 -1
- package/dist/components/puck-block/footer-sections/contact-links-footer/contact-links-footer.js +4 -3
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.d.ts +86 -0
- package/dist/components/puck-block/footer-sections/contact-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/cta-links-footer.js +3 -2
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.d.ts +38 -1
- package/dist/components/puck-block/footer-sections/cta-links-footer/index.js +1 -1
- package/dist/components/puck-block/footer-sections/links-newsletter-footer/index.d.ts +55 -1
- package/dist/components/puck-block/footer-sections/newsletter-links-footer/index.d.ts +42 -1
- package/dist/components/puck-block/footer-sections/newsletter-top-links-footer/index.d.ts +55 -1
- package/dist/components/puck-block/footer-sections/props.d.ts +3 -0
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/fullscreen-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.d.ts +25 -28
- package/dist/components/puck-block/gallery-sections/fullscreen-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/interactive-portfolio/interactive-portfolio.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-cards/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-cards/portfolio-cards.js +1 -1
- package/dist/components/puck-block/gallery-sections/portfolio-divider/index.d.ts +2 -2
- package/dist/components/puck-block/gallery-sections/portfolio-divider/portfolio-divider.js +68 -65
- package/dist/components/puck-block/gallery-sections/props.d.ts +11 -1
- package/dist/components/puck-block/gallery-sections/props.js +7 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax/scroll-parallax.js +18 -0
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.d.ts +24 -27
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/index.js +3 -2
- package/dist/components/puck-block/gallery-sections/scroll-parallax-portfolio/scroll-parallax-portfolio.js +25 -22
- package/dist/components/puck-block/gallery-sections/split-carousel/index.d.ts +11 -1
- package/dist/components/puck-block/header-sections/centered-navbar/centered-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/centered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/drawer-navbar/drawer-navbar.js +119 -17
- package/dist/components/puck-block/header-sections/drawer-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/floating-bordered-navbar.js +162 -22
- package/dist/components/puck-block/header-sections/floating-bordered-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/fullscreen-overlay-navbar.js +143 -19
- package/dist/components/puck-block/header-sections/fullscreen-overlay-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/mega-menu-navbar/mega-menu-navbar.js +3 -2
- package/dist/components/puck-block/header-sections/props.d.ts +3 -0
- package/dist/components/puck-block/header-sections/standard-navbar/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/standard-navbar/standard-navbar.js +3 -2
- package/dist/components/puck-block/hero-sections/carousel-hero/component.js +50 -9
- package/dist/components/puck-block/hero-sections/carousel-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/centered-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/column-scroll-hero/component.js +8 -8
- package/dist/components/puck-block/hero-sections/column-scroll-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/component.js +6 -6
- package/dist/components/puck-block/hero-sections/dual-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/fullscreen-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/component.js +5 -3
- package/dist/components/puck-block/hero-sections/fullscreen-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/grid-expand-hero/component.js +26 -17
- package/dist/components/puck-block/hero-sections/grid-expand-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/component.js +3 -3
- package/dist/components/puck-block/hero-sections/horizontal-marquee-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/inline-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/media-text-hero/index.d.ts +26 -29
- package/dist/components/puck-block/hero-sections/mouse-track-hero/component.js +60 -19
- package/dist/components/puck-block/hero-sections/mouse-track-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.d.ts +25 -28
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/index.js +3 -2
- package/dist/components/puck-block/hero-sections/multi-image-grid-hero/multi-image-grid-hero.js +2 -2
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/overlapping-image-hero/overlapping-image-hero.js +3 -3
- package/dist/components/puck-block/hero-sections/parallax-images-hero/component.js +18 -6
- package/dist/components/puck-block/hero-sections/parallax-images-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/component.js +9 -7
- package/dist/components/puck-block/hero-sections/scatter-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/component.js +7 -5
- package/dist/components/puck-block/hero-sections/scroll-expand-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/component.js +93 -44
- package/dist/components/puck-block/hero-sections/scroll-zoom-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/split-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/stacked-hero/index.d.ts +2 -2
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/component.js +1 -1
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.d.ts +14 -6
- package/dist/components/puck-block/hero-sections/sticky-expand-hero/index.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/component.js +2 -2
- package/dist/components/puck-block/hero-sections/sticky-video-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/tab-hero/component.js +4 -4
- package/dist/components/puck-block/hero-sections/tab-hero/index.d.ts +28 -44
- package/dist/components/puck-block/hero-sections/tab-hero/index.js +7 -2
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/component.js +96 -46
- package/dist/components/puck-block/hero-sections/three-image-parallax-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/component.js +33 -10
- package/dist/components/puck-block/hero-sections/vertical-gallery-hero/index.d.ts +1 -1
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/component.js +14 -12
- package/dist/components/puck-block/hero-sections/zoom-grid-hero/index.d.ts +1 -1
- package/dist/components/puck-block/index.d.ts +2 -0
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +1 -1
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +2 -2
- package/dist/components/puck-block/location-sections/props.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/center-media-stats/center-media-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/header-stats-row.js +1 -1
- package/dist/components/puck-block/metrics-sections/header-stats-row/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/mixed-grid-stats/mixed-grid-stats.js +2 -2
- package/dist/components/puck-block/metrics-sections/split-stats/index.d.ts +1 -1
- package/dist/components/puck-block/metrics-sections/split-stats/split-stats.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/index.d.ts +0 -22
- package/dist/components/puck-block/metrics-sections/tab-stats/index.js +1 -1
- package/dist/components/puck-block/metrics-sections/tab-stats/tab-stats.js +39 -26
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.d.ts +47 -0
- package/dist/components/puck-block/pricing-sections/pricing-comparison-table/index.js +34 -0
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.d.ts +0 -22
- package/dist/components/puck-block/pricing-sections/single-pricing-card/index.js +1 -1
- package/dist/components/puck-block/pricing-sections/split-pricing/component.js +3 -3
- package/dist/components/puck-block/pricing-sections/split-pricing/index.d.ts +28 -22
- package/dist/components/puck-block/pricing-sections/split-pricing/index.js +8 -1
- package/dist/components/puck-block/registry.generated.d.ts +13408 -0
- package/dist/components/puck-block/registry.generated.js +558 -0
- package/dist/components/puck-block/showcase-sections/compact-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/horizontal-timeline/index.d.ts +1 -1
- package/dist/components/puck-block/showcase-sections/single-column-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/sticky-scroll-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/showcase-sections/tab-timeline/component.js +1 -1
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.d.ts +1 -23
- package/dist/components/puck-block/showcase-sections/tab-timeline/index.js +1 -1
- package/dist/components/puck-block/showcase-sections/zigzag-timeline/index.d.ts +2 -2
- package/dist/components/puck-block/team-sections/team-carousel/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-carousel/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-grid/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-grid/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-inline-card/index.d.ts +1 -23
- package/dist/components/puck-block/team-sections/team-inline-card/index.js +1 -2
- package/dist/components/puck-block/team-sections/team-two-column/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/bento-testimonial/component.js +2 -2
- package/dist/components/puck-block/testimonial-sections/sticky-testimonial/index.d.ts +1 -1
- package/dist/components/puck-block/testimonial-sections/tab-testimonial/component.js +2 -2
- package/dist/components/puck-block/text-sections/aside-nav-content/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/aside-nav-content/index.js +1 -1
- package/dist/components/puck-block/text-sections/blog-article/index.d.ts +0 -22
- package/dist/components/puck-block/text-sections/blog-article/index.js +1 -1
- package/dist/components/puck-block/text-sections/prose-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/prose-sidebar/index.d.ts +1 -23
- package/dist/components/puck-block/text-sections/side-media-content/component.js +1 -1
- package/dist/components/puck-block/text-sections/sticky-text-multi-image/component.js +3 -3
- package/dist/components/puck-block/text-sections/text-header/index.d.ts +2 -2
- package/dist/components/puck-core/core/props/content.js +41 -1
- package/dist/components/puck-core/core/props/form.js +76 -0
- package/dist/components/puck-core/core/props/index.js +34 -0
- package/dist/components/puck-core/core/props/interactive.js +17 -0
- package/dist/components/puck-core/core/props/media.js +14 -5
- package/dist/components/puck-core/core/styles.d.ts +1 -1
- package/dist/components/{puck-base → puck-core}/core/styles.js +3 -1
- package/dist/components/{puck-base → puck-core}/core/with-editable.js +1 -1
- package/dist/components/puck-core/fields/action-field.js +1 -1
- package/dist/components/puck-core/fields/array-field.d.ts +7 -0
- package/dist/components/puck-core/fields/array-field.js +229 -0
- package/dist/components/{puck-base → puck-core}/fields/auto-field.js +11 -0
- package/dist/components/{puck-base → puck-core/fields}/image-upload-field.js +5 -5
- package/dist/components/puck-core/fields/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/fields/location-field.js +1 -1
- package/dist/components/{puck-base → puck-core}/fields/object-field.js +1 -1
- package/dist/components/puck-core/index.d.ts +1 -0
- package/dist/components/{puck-base → puck-core}/inline-editable.js +1 -1
- package/dist/index.js +121 -104
- package/dist/node_modules/.pnpm/@dnd-kit_accessibility@3.1.1_react@19.2.4/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +59 -0
- package/dist/node_modules/.pnpm/@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@dnd-kit/core/dist/core.esm.js +3093 -0
- package/dist/node_modules/.pnpm/@dnd-kit_sortable@10.0.0_@dnd-kit_core@6.3.1_react-dom@19.2.4_react@19.2.4__react@19.2.4__react@19.2.4/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +592 -0
- package/dist/node_modules/.pnpm/@dnd-kit_utilities@3.2.2_react@19.2.4/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +301 -0
- package/package.json +4 -1
- package/dist/components/puck-base/core/fields.d.ts +0 -827
- package/dist/components/puck-base/core/fields.js +0 -267
- package/dist/components/puck-base/core/hooks.d.ts +0 -19
- package/dist/components/puck-base/core/icon-catalog.d.ts +0 -14
- package/dist/components/puck-base/core/icon-catalog.js +0 -193
- package/dist/components/puck-base/core/styles.d.ts +0 -1942
- package/dist/components/puck-base/core/types.d.ts +0 -20
- package/dist/components/puck-base/core/types.js +0 -26
- package/dist/components/puck-base/core/utils.d.ts +0 -5
- package/dist/components/puck-base/core/with-editable.d.ts +0 -16
- package/dist/components/puck-base/error-boundary.d.ts +0 -4
- package/dist/components/puck-base/fields/action-field.d.ts +0 -30
- package/dist/components/puck-base/fields/action-field.js +0 -265
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -2
- package/dist/components/puck-base/fields/color-field.d.ts +0 -6
- package/dist/components/puck-base/fields/index.d.ts +0 -8
- package/dist/components/puck-base/fields/location-field.d.ts +0 -44
- package/dist/components/puck-base/fields/object-field.d.ts +0 -8
- package/dist/components/puck-base/fields/radio-toggle-field.d.ts +0 -10
- package/dist/components/puck-base/fields/types.d.ts +0 -29
- package/dist/components/puck-base/fields/virtualized-select-field.d.ts +0 -13
- package/dist/components/puck-base/icon-picker-field.d.ts +0 -8
- package/dist/components/puck-base/icon-picker-field.js +0 -153
- package/dist/components/puck-base/image-upload-field.d.ts +0 -7
- package/dist/components/puck-base/inline-editable.d.ts +0 -14
- package/dist/components/puck-base/use-upload.d.ts +0 -42
- /package/dist/components/{puck-base → puck-core}/core/hooks.js +0 -0
- /package/dist/components/{puck-base → puck-core}/core/utils.js +0 -0
- /package/dist/components/{puck-base → puck-core}/error-boundary.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/color-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/radio-toggle-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/fields/virtualized-select-field.js +0 -0
- /package/dist/components/{puck-base → puck-core}/use-upload.js +0 -0
|
@@ -15,7 +15,7 @@ const StandardNavbar = (props) => {
|
|
|
15
15
|
const isMobile = useMediaQuery("(max-width: 991px)");
|
|
16
16
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("z-[999] flex w-full items-center border-b border-border-primary bg-background-primary lg:min-h-18 lg:px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "size-full lg:flex lg:items-center lg:justify-between", children: [
|
|
17
17
|
/* @__PURE__ */ jsxs("div", { className: "flex min-h-16 items-center justify-between px-[5%] md:min-h-18 lg:min-h-full lg:px-0", children: [
|
|
18
|
-
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt }) }),
|
|
18
|
+
/* @__PURE__ */ jsx("a", { href: logo == null ? void 0 : logo.url, children: /* @__PURE__ */ jsx(CompoundImage, { src: logo == null ? void 0 : logo.src, alt: logo == null ? void 0 : logo.alt, className: "h-9 w-auto" }) }),
|
|
19
19
|
/* @__PURE__ */ jsxs("button", { className: "-mr-2 flex size-12 flex-col items-center justify-center lg:hidden", onClick: () => setIsMobileMenuOpen((prev) => !prev), children: [
|
|
20
20
|
/* @__PURE__ */ jsx(motion.span, { className: "my-[3px] h-0.5 w-6 bg-black", animate: isMobileMenuOpen ? ["open", "rotatePhase"] : "closed", variants: topLineVariants }),
|
|
21
21
|
/* @__PURE__ */ jsx(motion.span, { className: "my-[3px] h-0.5 w-6 bg-black", animate: isMobileMenuOpen ? "open" : "closed", variants: middleLineVariants }),
|
|
@@ -45,7 +45,8 @@ const topLineVariants = { open: { translateY: 8, transition: { delay: 0.1 } }, r
|
|
|
45
45
|
const middleLineVariants = { open: { width: 0, transition: { duration: 0.1 } }, closed: { width: "1.5rem", transition: { delay: 0.3, duration: 0.2 } } };
|
|
46
46
|
const bottomLineVariants = { open: { translateY: -8, transition: { delay: 0.1 } }, rotatePhase: { rotate: 45, transition: { delay: 0.2 } }, closed: { translateY: 0, rotate: 0, transition: { duration: 0.2 } } };
|
|
47
47
|
const StandardNavbarDefaults = {
|
|
48
|
-
|
|
48
|
+
__metadata: { type: "header" },
|
|
49
|
+
logo: { url: "#", src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo image" },
|
|
49
50
|
navLinks: [
|
|
50
51
|
{ title: "Link One", url: "#" },
|
|
51
52
|
{ title: "Link Two", url: "#" },
|
|
@@ -10,11 +10,23 @@ import Autoplay from "embla-carousel-autoplay";
|
|
|
10
10
|
const CarouselHero = (props) => {
|
|
11
11
|
const [api, setApi] = useState();
|
|
12
12
|
const [current, setCurrent] = useState(0);
|
|
13
|
-
const {
|
|
13
|
+
const {
|
|
14
|
+
heading,
|
|
15
|
+
description,
|
|
16
|
+
buttons,
|
|
17
|
+
images,
|
|
18
|
+
carouselHeading,
|
|
19
|
+
carouselDescription,
|
|
20
|
+
styles
|
|
21
|
+
} = {
|
|
14
22
|
...CarouselHeroDefaults,
|
|
15
23
|
...props
|
|
16
24
|
};
|
|
17
|
-
const {
|
|
25
|
+
const {
|
|
26
|
+
className: sectionClassName,
|
|
27
|
+
style: sectionStyle,
|
|
28
|
+
css
|
|
29
|
+
} = styles ?? {};
|
|
18
30
|
useEffect(() => {
|
|
19
31
|
if (!api) return;
|
|
20
32
|
setCurrent(api.selectedScrollSnap() + 1);
|
|
@@ -25,16 +37,29 @@ const CarouselHero = (props) => {
|
|
|
25
37
|
return /* @__PURE__ */ jsxs(
|
|
26
38
|
SectionWrapper,
|
|
27
39
|
{
|
|
28
|
-
className: cn(
|
|
40
|
+
className: cn(
|
|
41
|
+
"grid grid-cols-1 items-center gap-y-16 overflow-hidden pt-16 sm:overflow-auto md:pt-24 lg:grid-cols-[50%_50%] lg:gap-y-0 lg:pt-0",
|
|
42
|
+
sectionClassName
|
|
43
|
+
),
|
|
29
44
|
style: sectionStyle,
|
|
30
45
|
css,
|
|
31
46
|
children: [
|
|
32
47
|
/* @__PURE__ */ jsxs("div", { className: "mx-[5%] max-w-md justify-self-start lg:ml-[5vw] lg:mr-20 lg:justify-self-end", children: [
|
|
33
48
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
34
49
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
35
|
-
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
50
|
+
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(
|
|
51
|
+
CompoundButton,
|
|
52
|
+
{
|
|
53
|
+
label: button.label,
|
|
54
|
+
variant: button.variant,
|
|
55
|
+
size: button.size,
|
|
56
|
+
action: button.action,
|
|
57
|
+
icon: button.icon
|
|
58
|
+
},
|
|
59
|
+
index
|
|
60
|
+
)) })
|
|
36
61
|
] }),
|
|
37
|
-
/* @__PURE__ */ jsx("div", { className: "relative clear-both h-[300px] max-h-[60rem] min-h-screen w-full
|
|
62
|
+
/* @__PURE__ */ jsx("div", { className: "relative clear-both h-[300px] max-h-[60rem] min-h-screen w-full text-center", children: /* @__PURE__ */ jsxs(
|
|
38
63
|
Carousel,
|
|
39
64
|
{
|
|
40
65
|
opts: { loop: true },
|
|
@@ -43,7 +68,14 @@ const CarouselHero = (props) => {
|
|
|
43
68
|
className: "relative left-0 right-0 z-10 block h-full overflow-hidden whitespace-nowrap pl-4",
|
|
44
69
|
children: [
|
|
45
70
|
/* @__PURE__ */ jsx(CarouselContent, { children: images.map((image, index) => /* @__PURE__ */ jsx(CarouselItem, { className: "pl-0", children: /* @__PURE__ */ jsx("div", { className: "relative inline-block size-full whitespace-normal text-left align-top", children: /* @__PURE__ */ jsxs("div", { className: "flex h-screen flex-col", children: [
|
|
46
|
-
/* @__PURE__ */ jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx(
|
|
71
|
+
/* @__PURE__ */ jsx("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx(
|
|
72
|
+
CompoundImage,
|
|
73
|
+
{
|
|
74
|
+
className: "absolute size-full object-cover",
|
|
75
|
+
src: image.src,
|
|
76
|
+
alt: image.alt
|
|
77
|
+
}
|
|
78
|
+
) }),
|
|
47
79
|
/* @__PURE__ */ jsx("div", { className: "relative bg-background-secondary px-6 pb-32 pt-6 sm:px-8 sm:pt-8", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg", children: [
|
|
48
80
|
/* @__PURE__ */ jsx("h6", { className: "mb-1 text-md font-bold leading-[1.4] md:text-xl", children: carouselHeading }),
|
|
49
81
|
/* @__PURE__ */ jsx("p", { children: carouselDescription })
|
|
@@ -76,9 +108,18 @@ const CarouselHeroDefaults = {
|
|
|
76
108
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat.",
|
|
77
109
|
buttons: [{ label: "Button" }, { label: "Button", variant: "secondary" }],
|
|
78
110
|
images: [
|
|
79
|
-
{
|
|
80
|
-
|
|
81
|
-
|
|
111
|
+
{
|
|
112
|
+
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
113
|
+
alt: "Placeholder image 1"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
117
|
+
alt: "Placeholder image 2"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
121
|
+
alt: "Placeholder image 3"
|
|
122
|
+
}
|
|
82
123
|
],
|
|
83
124
|
carouselHeading: "Short heading goes here",
|
|
84
125
|
carouselDescription: "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
|
@@ -25,7 +25,7 @@ declare const conf: {
|
|
|
25
25
|
readonly action: {
|
|
26
26
|
type: "custom";
|
|
27
27
|
label: string;
|
|
28
|
-
render: typeof import("
|
|
28
|
+
render: typeof import("../../..").ActionField;
|
|
29
29
|
};
|
|
30
30
|
readonly variant: {
|
|
31
31
|
readonly type: "select";
|
|
@@ -103,7 +103,7 @@ declare const conf: {
|
|
|
103
103
|
readonly action: {
|
|
104
104
|
type: "custom";
|
|
105
105
|
label: string;
|
|
106
|
-
render: typeof import("
|
|
106
|
+
render: typeof import("../../..").ActionField;
|
|
107
107
|
};
|
|
108
108
|
readonly variant: {
|
|
109
109
|
readonly type: "select";
|
|
@@ -61,37 +61,37 @@ const ColumnScrollHeroDefaults = {
|
|
|
61
61
|
imagesPartOne: [
|
|
62
62
|
{
|
|
63
63
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
64
|
-
alt: "
|
|
64
|
+
alt: "Placeholder image 1"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
|
-
alt: "
|
|
68
|
+
alt: "Placeholder image 2"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
72
|
-
alt: "
|
|
72
|
+
alt: "Placeholder image 3"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
76
|
-
alt: "
|
|
76
|
+
alt: "Placeholder image 4"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
imagesPartTwo: [
|
|
80
80
|
{
|
|
81
81
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
82
|
-
alt: "
|
|
82
|
+
alt: "Placeholder image 5"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
86
|
-
alt: "
|
|
86
|
+
alt: "Placeholder image 6"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
90
|
-
alt: "
|
|
90
|
+
alt: "Placeholder image 7"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
94
|
-
alt: "
|
|
94
|
+
alt: "Placeholder image 8"
|
|
95
95
|
}
|
|
96
96
|
]
|
|
97
97
|
};
|
|
@@ -57,27 +57,27 @@ const DualMarqueeHeroDefaults = {
|
|
|
57
57
|
images: [
|
|
58
58
|
{
|
|
59
59
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
60
|
-
alt: "
|
|
60
|
+
alt: "Placeholder image 1"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
64
|
-
alt: "
|
|
64
|
+
alt: "Placeholder image 2"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
|
-
alt: "
|
|
68
|
+
alt: "Placeholder image 3"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
72
|
-
alt: "
|
|
72
|
+
alt: "Placeholder image 4"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
76
|
-
alt: "
|
|
76
|
+
alt: "Placeholder image 5"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
80
|
-
alt: "
|
|
80
|
+
alt: "Placeholder image 6"
|
|
81
81
|
}
|
|
82
82
|
]
|
|
83
83
|
};
|
|
@@ -25,7 +25,7 @@ declare const conf: {
|
|
|
25
25
|
readonly action: {
|
|
26
26
|
type: "custom";
|
|
27
27
|
label: string;
|
|
28
|
-
render: typeof import("
|
|
28
|
+
render: typeof import("../../..").ActionField;
|
|
29
29
|
};
|
|
30
30
|
readonly variant: {
|
|
31
31
|
readonly type: "select";
|
|
@@ -123,7 +123,7 @@ declare const conf: {
|
|
|
123
123
|
readonly action: {
|
|
124
124
|
type: "custom";
|
|
125
125
|
label: string;
|
|
126
|
-
render: typeof import("
|
|
126
|
+
render: typeof import("../../..").ActionField;
|
|
127
127
|
};
|
|
128
128
|
readonly variant: {
|
|
129
129
|
readonly type: "select";
|
|
@@ -41,10 +41,12 @@ const FullscreenVideoHero = (props) => {
|
|
|
41
41
|
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 flex w-full flex-col items-center justify-center", children: [
|
|
42
42
|
/* @__PURE__ */ jsx("div", { className: "relative z-10 flex h-screen w-full items-center justify-center", children: /* @__PURE__ */ jsxs(Dialog, { children: [
|
|
43
43
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
44
|
-
motion.
|
|
44
|
+
motion.div,
|
|
45
45
|
{
|
|
46
|
+
role: "button",
|
|
47
|
+
tabIndex: 0,
|
|
46
48
|
style: videoDialogMotion,
|
|
47
|
-
className: "absolute flex items-center justify-center",
|
|
49
|
+
className: "absolute flex cursor-pointer items-center justify-center",
|
|
48
50
|
children: [
|
|
49
51
|
/* @__PURE__ */ jsx(CompoundImage, { src: image.src, alt: image.alt, className: "size-full object-cover" }),
|
|
50
52
|
/* @__PURE__ */ jsx(FaCirclePlay, { className: "absolute z-20 size-16 text-white" }),
|
|
@@ -78,7 +80,7 @@ const FullscreenVideoHeroDefaults = {
|
|
|
78
80
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
79
81
|
images: [{
|
|
80
82
|
src: "https://picsum.photos/seed/hero-video/1200/800",
|
|
81
|
-
alt: "
|
|
83
|
+
alt: "Placeholder image"
|
|
82
84
|
}]
|
|
83
85
|
};
|
|
84
86
|
export {
|
|
@@ -8,6 +8,7 @@ import { CompoundButton } from "../../../puck-base/button.js";
|
|
|
8
8
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
9
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
10
10
|
import { cn } from "../../../../utils/css-utils.js";
|
|
11
|
+
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
11
12
|
const GridExpandHero = (props) => {
|
|
12
13
|
const {
|
|
13
14
|
heading,
|
|
@@ -20,6 +21,7 @@ const GridExpandHero = (props) => {
|
|
|
20
21
|
...props
|
|
21
22
|
};
|
|
22
23
|
const { className: sectionClassName, style: sectionStyle, css, textAlign = "left", gridRatio } = { ...GridExpandHeroDefaults.styles, ...styles };
|
|
24
|
+
const { isEditor } = useEditorContext();
|
|
23
25
|
const isMobile = useMediaQuery("(max-width: 767px)");
|
|
24
26
|
const sectionRef = useRef(null);
|
|
25
27
|
const [scrollContainerRef] = useScrollContainer(sectionRef);
|
|
@@ -56,14 +58,21 @@ const GridExpandHero = (props) => {
|
|
|
56
58
|
const centerRightImageGroup = {
|
|
57
59
|
x: createTransform(["0vw", "25vw"], ["0vw", "32vw"])
|
|
58
60
|
};
|
|
61
|
+
const editorLeftContainerHeight = { height: "100vh" };
|
|
62
|
+
const editorLeftLeftImageGroup = { x: isMobile ? "-25vw" : "-50vw" };
|
|
63
|
+
const editorLeftCenterImageContainer = { x: isMobile ? "-25vw" : "-50vw", width: "100vw", height: "100vh" };
|
|
64
|
+
const editorLeftRightImage = { x: isMobile ? "25vw" : "20vw" };
|
|
65
|
+
const editorCenterLeftImageGroup = { x: isMobile ? "-25vw" : "-32vw" };
|
|
66
|
+
const editorCenterCenterImageContainer = { x: isMobile ? "-25vw" : "-32vw", width: "100vw", height: "100vh" };
|
|
67
|
+
const editorCenterRightImageGroup = { x: isMobile ? "25vw" : "32vw" };
|
|
59
68
|
if (isCenter) {
|
|
60
|
-
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
69
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative", isEditor ? "h-auto" : "h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
61
70
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "mx-auto w-full max-w-lg text-center", children: [
|
|
62
71
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
63
72
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
64
73
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex items-center justify-center gap-x-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
65
74
|
] }) }) }),
|
|
66
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
75
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex h-screen w-full items-center overflow-hidden", !isEditor && "sticky top-0"), children: /* @__PURE__ */ jsxs(
|
|
67
76
|
"div",
|
|
68
77
|
{
|
|
69
78
|
className: "z-10 grid w-full grid-flow-col content-center items-center justify-center",
|
|
@@ -76,7 +85,7 @@ const GridExpandHero = (props) => {
|
|
|
76
85
|
motion.div,
|
|
77
86
|
{
|
|
78
87
|
className: "grid grid-flow-col grid-cols-1 items-center justify-items-end gap-4 justify-self-end px-4",
|
|
79
|
-
style: centerLeftImageGroup,
|
|
88
|
+
style: isEditor ? editorCenterLeftImageGroup : centerLeftImageGroup,
|
|
80
89
|
children: [
|
|
81
90
|
/* @__PURE__ */ jsx("div", { className: "relative hidden md:block md:w-[25vw] lg:w-[20vw]", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[2/3] w-full object-cover", ...images[0] }) }),
|
|
82
91
|
/* @__PURE__ */ jsxs("div", { className: "relative grid w-[40vw] grid-cols-1 grid-rows-[auto_auto] gap-4 self-center md:w-[18vw]", children: [
|
|
@@ -86,12 +95,12 @@ const GridExpandHero = (props) => {
|
|
|
86
95
|
]
|
|
87
96
|
}
|
|
88
97
|
),
|
|
89
|
-
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: centerCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[3] }) }),
|
|
98
|
+
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorCenterCenterImageContainer : centerCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[3] }) }),
|
|
90
99
|
/* @__PURE__ */ jsxs(
|
|
91
100
|
motion.div,
|
|
92
101
|
{
|
|
93
102
|
className: "grid grid-flow-col items-center justify-items-start gap-4 justify-self-start px-4",
|
|
94
|
-
style: centerRightImageGroup,
|
|
103
|
+
style: isEditor ? editorCenterRightImageGroup : centerRightImageGroup,
|
|
95
104
|
children: [
|
|
96
105
|
/* @__PURE__ */ jsxs("div", { className: "relative grid w-[40vw] grid-cols-1 grid-rows-[auto_auto] gap-4 self-center md:w-[18vw]", children: [
|
|
97
106
|
/* @__PURE__ */ jsx("div", { className: "relative w-[40vw] sm:w-auto", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[3/4] w-full object-cover", ...images[4] }) }),
|
|
@@ -107,26 +116,26 @@ const GridExpandHero = (props) => {
|
|
|
107
116
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
|
|
108
117
|
] });
|
|
109
118
|
}
|
|
110
|
-
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
119
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: sectionRef, className: cn("relative", isEditor ? "h-auto" : "h-[250vh]", sectionClassName), style: sectionStyle, css, children: [
|
|
111
120
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsx("div", { className: "container", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-lg", children: [
|
|
112
121
|
/* @__PURE__ */ jsx("h1", { className: "mb-5 text-6xl font-bold md:mb-6 md:text-9xl lg:text-10xl", children: heading }),
|
|
113
122
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description }),
|
|
114
123
|
/* @__PURE__ */ jsx("div", { className: "mt-6 flex flex-wrap gap-4 md:mt-8", children: buttons.map((button, index) => /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }, index)) })
|
|
115
124
|
] }) }) }),
|
|
116
|
-
/* @__PURE__ */ jsx("div", { className: "
|
|
125
|
+
/* @__PURE__ */ jsx("div", { className: cn("flex h-screen w-full items-center overflow-hidden", !isEditor && "sticky top-0"), children: /* @__PURE__ */ jsxs(
|
|
117
126
|
motion.div,
|
|
118
127
|
{
|
|
119
128
|
className: "z-10 grid w-full grid-flow-col justify-center",
|
|
120
129
|
style: {
|
|
121
130
|
gridTemplateColumns: gridColsStyle,
|
|
122
|
-
...leftContainerHeight
|
|
131
|
+
...isEditor ? editorLeftContainerHeight : leftContainerHeight
|
|
123
132
|
},
|
|
124
133
|
children: [
|
|
125
134
|
/* @__PURE__ */ jsxs(
|
|
126
135
|
motion.div,
|
|
127
136
|
{
|
|
128
137
|
className: "grid grid-flow-col grid-cols-1 justify-items-end gap-4 justify-self-end px-4",
|
|
129
|
-
style: leftLeftImageGroup,
|
|
138
|
+
style: isEditor ? editorLeftLeftImageGroup : leftLeftImageGroup,
|
|
130
139
|
children: [
|
|
131
140
|
/* @__PURE__ */ jsx("div", { className: "relative top-[5%] hidden w-[40vw] sm:w-[25vw] md:block lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[2/3] w-full object-cover", ...images[0] }) }),
|
|
132
141
|
/* @__PURE__ */ jsxs("div", { className: "relative top-[-5%] flex flex-col gap-4 self-center", children: [
|
|
@@ -137,12 +146,12 @@ const GridExpandHero = (props) => {
|
|
|
137
146
|
]
|
|
138
147
|
}
|
|
139
148
|
),
|
|
140
|
-
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: leftCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[4] }) }),
|
|
149
|
+
/* @__PURE__ */ jsx(motion.div, { className: "relative", style: isEditor ? editorLeftCenterImageContainer : leftCenterImageContainer, children: /* @__PURE__ */ jsx(CompoundImage, { className: "size-full object-cover", ...images[4] }) }),
|
|
141
150
|
/* @__PURE__ */ jsx(
|
|
142
151
|
motion.div,
|
|
143
152
|
{
|
|
144
153
|
className: "grid grid-flow-col grid-cols-1 gap-4 justify-self-start px-4",
|
|
145
|
-
style: leftRightImage,
|
|
154
|
+
style: isEditor ? editorLeftRightImage : leftRightImage,
|
|
146
155
|
children: /* @__PURE__ */ jsx("div", { className: "relative top-[5%] w-[40vw] md:w-[25vw] lg:w-[22vw]", children: /* @__PURE__ */ jsx(CompoundImage, { className: "aspect-[3/4] w-full object-cover", ...images[5] }) })
|
|
147
156
|
}
|
|
148
157
|
)
|
|
@@ -171,27 +180,27 @@ const GridExpandHeroDefaults = {
|
|
|
171
180
|
images: [
|
|
172
181
|
{
|
|
173
182
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
174
|
-
alt: "
|
|
183
|
+
alt: "Placeholder image 1"
|
|
175
184
|
},
|
|
176
185
|
{
|
|
177
186
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
178
|
-
alt: "
|
|
187
|
+
alt: "Placeholder image 2"
|
|
179
188
|
},
|
|
180
189
|
{
|
|
181
190
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
182
|
-
alt: "
|
|
191
|
+
alt: "Placeholder image 3"
|
|
183
192
|
},
|
|
184
193
|
{
|
|
185
194
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
186
|
-
alt: "
|
|
195
|
+
alt: "Placeholder image 4"
|
|
187
196
|
},
|
|
188
197
|
{
|
|
189
198
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
190
|
-
alt: "
|
|
199
|
+
alt: "Placeholder image 5"
|
|
191
200
|
},
|
|
192
201
|
{
|
|
193
202
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
194
|
-
alt: "
|
|
203
|
+
alt: "Placeholder image 6"
|
|
195
204
|
}
|
|
196
205
|
]
|
|
197
206
|
};
|
|
@@ -65,15 +65,15 @@ const HorizontalMarqueeHeroDefaults = {
|
|
|
65
65
|
images: [
|
|
66
66
|
{
|
|
67
67
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
68
|
-
alt: "
|
|
68
|
+
alt: "Placeholder image 1"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
72
|
-
alt: "
|
|
72
|
+
alt: "Placeholder image 2"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
src: "https://picsum.photos/seed/hero-square/1200/1200",
|
|
76
|
-
alt: "
|
|
76
|
+
alt: "Placeholder image 3"
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
79
|
};
|
|
@@ -25,7 +25,7 @@ declare const conf: {
|
|
|
25
25
|
readonly action: {
|
|
26
26
|
type: "custom";
|
|
27
27
|
label: string;
|
|
28
|
-
render: typeof import("
|
|
28
|
+
render: typeof import("../../..").ActionField;
|
|
29
29
|
};
|
|
30
30
|
readonly variant: {
|
|
31
31
|
readonly type: "select";
|
|
@@ -123,7 +123,7 @@ declare const conf: {
|
|
|
123
123
|
readonly action: {
|
|
124
124
|
type: "custom";
|
|
125
125
|
label: string;
|
|
126
|
-
render: typeof import("
|
|
126
|
+
render: typeof import("../../..").ActionField;
|
|
127
127
|
};
|
|
128
128
|
readonly variant: {
|
|
129
129
|
readonly type: "select";
|
|
@@ -176,38 +176,35 @@ declare const conf: {
|
|
|
176
176
|
type: string;
|
|
177
177
|
label: string;
|
|
178
178
|
objectFields: {
|
|
179
|
+
className: {
|
|
180
|
+
readonly type: "text";
|
|
181
|
+
readonly label: "Class Name";
|
|
182
|
+
readonly ai: {
|
|
183
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
style: {
|
|
187
|
+
readonly type: "object";
|
|
188
|
+
readonly label: "Style";
|
|
189
|
+
readonly objectFields: {};
|
|
190
|
+
readonly ai: {
|
|
191
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
css: {
|
|
195
|
+
readonly type: "textarea";
|
|
196
|
+
readonly label: "Custom CSS";
|
|
197
|
+
readonly ai: {
|
|
198
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
199
|
+
};
|
|
200
|
+
};
|
|
179
201
|
mediaPosition: {
|
|
180
202
|
type: "radio";
|
|
181
203
|
label: string;
|
|
182
|
-
options:
|
|
183
|
-
className: {
|
|
184
|
-
readonly type: "text";
|
|
185
|
-
readonly label: "Class Name";
|
|
186
|
-
readonly ai: {
|
|
187
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
style: {
|
|
191
|
-
readonly type: "object";
|
|
192
|
-
readonly label: "Style";
|
|
193
|
-
readonly objectFields: {};
|
|
194
|
-
readonly ai: {
|
|
195
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
css: {
|
|
199
|
-
readonly type: "textarea";
|
|
200
|
-
readonly label: "Custom CSS";
|
|
201
|
-
readonly ai: {
|
|
202
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
label: string;
|
|
206
|
-
value: string;
|
|
207
|
-
} | {
|
|
204
|
+
options: {
|
|
208
205
|
label: string;
|
|
209
206
|
value: string;
|
|
210
|
-
}
|
|
207
|
+
}[];
|
|
211
208
|
};
|
|
212
209
|
mediaType: {
|
|
213
210
|
readonly type: "radio";
|