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
|
@@ -35,7 +35,7 @@ declare const conf: {
|
|
|
35
35
|
readonly action: {
|
|
36
36
|
type: "custom";
|
|
37
37
|
label: string;
|
|
38
|
-
render: typeof import("
|
|
38
|
+
render: typeof import("../../..").ActionField;
|
|
39
39
|
};
|
|
40
40
|
readonly variant: {
|
|
41
41
|
readonly type: "select";
|
|
@@ -87,38 +87,35 @@ declare const conf: {
|
|
|
87
87
|
type: string;
|
|
88
88
|
label: string;
|
|
89
89
|
objectFields: {
|
|
90
|
+
className: {
|
|
91
|
+
readonly type: "text";
|
|
92
|
+
readonly label: "Class Name";
|
|
93
|
+
readonly ai: {
|
|
94
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
style: {
|
|
98
|
+
readonly type: "object";
|
|
99
|
+
readonly label: "Style";
|
|
100
|
+
readonly objectFields: {};
|
|
101
|
+
readonly ai: {
|
|
102
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
css: {
|
|
106
|
+
readonly type: "textarea";
|
|
107
|
+
readonly label: "Custom CSS";
|
|
108
|
+
readonly ai: {
|
|
109
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
90
112
|
animation: {
|
|
91
113
|
type: "radio";
|
|
92
114
|
label: string;
|
|
93
|
-
options:
|
|
94
|
-
className: {
|
|
95
|
-
readonly type: "text";
|
|
96
|
-
readonly label: "Class Name";
|
|
97
|
-
readonly ai: {
|
|
98
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
style: {
|
|
102
|
-
readonly type: "object";
|
|
103
|
-
readonly label: "Style";
|
|
104
|
-
readonly objectFields: {};
|
|
105
|
-
readonly ai: {
|
|
106
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
css: {
|
|
110
|
-
readonly type: "textarea";
|
|
111
|
-
readonly label: "Custom CSS";
|
|
112
|
-
readonly ai: {
|
|
113
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
label: string;
|
|
117
|
-
value: string;
|
|
118
|
-
} | {
|
|
115
|
+
options: {
|
|
119
116
|
label: string;
|
|
120
117
|
value: string;
|
|
121
|
-
}
|
|
118
|
+
}[];
|
|
122
119
|
};
|
|
123
120
|
};
|
|
124
121
|
};
|
|
@@ -23,10 +23,11 @@ const conf = {
|
|
|
23
23
|
type: "radio",
|
|
24
24
|
label: "Animation",
|
|
25
25
|
options: [
|
|
26
|
-
{ label: "Sticky Stack", value: "sticky-stack"
|
|
26
|
+
{ label: "Sticky Stack", value: "sticky-stack" },
|
|
27
27
|
{ label: "Scroll Fade", value: "scroll-fade" }
|
|
28
28
|
]
|
|
29
|
-
}
|
|
29
|
+
},
|
|
30
|
+
...sectionWrapperFields
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
},
|
|
@@ -24,7 +24,7 @@ declare const conf: {
|
|
|
24
24
|
readonly action: {
|
|
25
25
|
type: "custom";
|
|
26
26
|
label: string;
|
|
27
|
-
render: typeof import("
|
|
27
|
+
render: typeof import("../../..").ActionField;
|
|
28
28
|
};
|
|
29
29
|
readonly variant: {
|
|
30
30
|
readonly type: "select";
|
|
@@ -104,7 +104,7 @@ declare const conf: {
|
|
|
104
104
|
readonly action: {
|
|
105
105
|
type: "custom";
|
|
106
106
|
label: string;
|
|
107
|
-
render: typeof import("
|
|
107
|
+
render: typeof import("../../..").ActionField;
|
|
108
108
|
};
|
|
109
109
|
readonly variant: {
|
|
110
110
|
readonly type: "select";
|
|
@@ -129,7 +129,7 @@ const defaultProject = {
|
|
|
129
129
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.",
|
|
130
130
|
image: {
|
|
131
131
|
src: "https://picsum.photos/seed/portfolio-card/1200/800",
|
|
132
|
-
alt: "
|
|
132
|
+
alt: "Placeholder image"
|
|
133
133
|
},
|
|
134
134
|
url: "#",
|
|
135
135
|
button: { label: "View project", variant: "link", size: "sm" },
|
|
@@ -24,7 +24,7 @@ declare const conf: {
|
|
|
24
24
|
readonly action: {
|
|
25
25
|
type: "custom";
|
|
26
26
|
label: string;
|
|
27
|
-
render: typeof import("
|
|
27
|
+
render: typeof import("../../..").ActionField;
|
|
28
28
|
};
|
|
29
29
|
readonly variant: {
|
|
30
30
|
readonly type: "select";
|
|
@@ -104,7 +104,7 @@ declare const conf: {
|
|
|
104
104
|
readonly action: {
|
|
105
105
|
type: "custom";
|
|
106
106
|
label: string;
|
|
107
|
-
render: typeof import("
|
|
107
|
+
render: typeof import("../../..").ActionField;
|
|
108
108
|
};
|
|
109
109
|
readonly variant: {
|
|
110
110
|
readonly type: "select";
|
|
@@ -10,81 +10,84 @@ const PortfolioDivider = (props) => {
|
|
|
10
10
|
...props
|
|
11
11
|
};
|
|
12
12
|
const { className: sectionClassName, style: sectionStyle, css, mediaPosition = "right" } = styles ?? {};
|
|
13
|
-
const
|
|
13
|
+
const startsLeft = mediaPosition === "left";
|
|
14
14
|
return /* @__PURE__ */ jsx(SectionWrapper, { className: cn("px-[5%] py-8 md:py-12 lg:py-14", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsxs("div", { className: "container", children: [
|
|
15
15
|
/* @__PURE__ */ jsxs("header", { className: "mb-12 max-w-lg md:mb-18 lg:mb-20", children: [
|
|
16
16
|
/* @__PURE__ */ jsx("p", { className: "mb-3 font-semibold md:mb-4", children: tagline }),
|
|
17
17
|
/* @__PURE__ */ jsx("h2", { className: "mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
18
18
|
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
19
19
|
] }),
|
|
20
|
-
/* @__PURE__ */ jsx("div", { children: projects.map((project, index) =>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
className: "w-full object-cover",
|
|
30
|
-
alt: project.image.alt
|
|
31
|
-
}
|
|
32
|
-
) }) }),
|
|
33
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
34
|
-
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
|
|
35
|
-
/* @__PURE__ */ jsx("p", { children: project.description }),
|
|
36
|
-
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
37
|
-
"a",
|
|
20
|
+
/* @__PURE__ */ jsx("div", { children: projects.map((project, index) => {
|
|
21
|
+
const isMediaLeft = startsLeft ? index % 2 === 0 : index % 2 !== 0;
|
|
22
|
+
return /* @__PURE__ */ jsx(
|
|
23
|
+
"article",
|
|
24
|
+
{
|
|
25
|
+
className: "grid grid-cols-1 items-center gap-x-12 gap-y-6 border-t border-border-primary py-8 md:grid-cols-2 md:gap-y-0 lg:gap-x-[4.9rem] lg:py-12",
|
|
26
|
+
children: isMediaLeft ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
28
|
+
CompoundImage,
|
|
38
29
|
{
|
|
39
|
-
|
|
40
|
-
className: "
|
|
41
|
-
|
|
30
|
+
src: project.image.src,
|
|
31
|
+
className: "w-full object-cover",
|
|
32
|
+
alt: project.image.alt
|
|
42
33
|
}
|
|
43
|
-
) }
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
34
|
+
) }) }),
|
|
35
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
36
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
|
|
37
|
+
/* @__PURE__ */ jsx("p", { children: project.description }),
|
|
38
|
+
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
39
|
+
"a",
|
|
40
|
+
{
|
|
41
|
+
href: tag.url,
|
|
42
|
+
className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
|
|
43
|
+
children: tag.label
|
|
44
|
+
}
|
|
45
|
+
) }, tagIndex)) }),
|
|
46
|
+
/* @__PURE__ */ jsx(
|
|
47
|
+
Button,
|
|
48
|
+
{
|
|
49
|
+
variant: project.button.variant,
|
|
50
|
+
size: project.button.size,
|
|
51
|
+
className: "mt-6 md:mt-8",
|
|
52
|
+
children: project.button.label
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
] })
|
|
56
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
58
|
+
/* @__PURE__ */ jsx("h3", { className: "mb-2 text-2xl font-bold md:text-3xl md:leading-[1.3] lg:text-4xl", children: /* @__PURE__ */ jsx("a", { href: project.url, children: project.title }) }),
|
|
59
|
+
/* @__PURE__ */ jsx("p", { children: project.description }),
|
|
60
|
+
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
61
|
+
"a",
|
|
62
|
+
{
|
|
63
|
+
href: tag.url,
|
|
64
|
+
className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
|
|
65
|
+
children: tag.label
|
|
66
|
+
}
|
|
67
|
+
) }, tagIndex)) }),
|
|
68
|
+
/* @__PURE__ */ jsx(
|
|
69
|
+
Button,
|
|
70
|
+
{
|
|
71
|
+
variant: project.button.variant,
|
|
72
|
+
size: project.button.size,
|
|
73
|
+
className: "mt-6 md:mt-8",
|
|
74
|
+
children: project.button.label
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
] }),
|
|
78
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
79
|
+
CompoundImage,
|
|
46
80
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
children: project.button.label
|
|
81
|
+
src: project.image.src,
|
|
82
|
+
className: "w-full object-cover",
|
|
83
|
+
alt: project.image.alt
|
|
51
84
|
}
|
|
52
|
-
)
|
|
85
|
+
) }) })
|
|
53
86
|
] })
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
project.tags && /* @__PURE__ */ jsx("ul", { className: "mt-3 flex flex-wrap gap-2 md:mt-4", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx(
|
|
59
|
-
"a",
|
|
60
|
-
{
|
|
61
|
-
href: tag.url,
|
|
62
|
-
className: "bg-background-secondary px-2 py-1 text-sm font-semibold",
|
|
63
|
-
children: tag.label
|
|
64
|
-
}
|
|
65
|
-
) }, tagIndex)) }),
|
|
66
|
-
/* @__PURE__ */ jsx(
|
|
67
|
-
Button,
|
|
68
|
-
{
|
|
69
|
-
variant: project.button.variant,
|
|
70
|
-
size: project.button.size,
|
|
71
|
-
className: "mt-6 md:mt-8",
|
|
72
|
-
children: project.button.label
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("a", { href: project.url, className: "flex aspect-[4/3] w-full", children: /* @__PURE__ */ jsx(
|
|
77
|
-
CompoundImage,
|
|
78
|
-
{
|
|
79
|
-
src: project.image.src,
|
|
80
|
-
className: "w-full object-cover",
|
|
81
|
-
alt: project.image.alt
|
|
82
|
-
}
|
|
83
|
-
) }) })
|
|
84
|
-
] })
|
|
85
|
-
},
|
|
86
|
-
index
|
|
87
|
-
)) }),
|
|
87
|
+
},
|
|
88
|
+
index
|
|
89
|
+
);
|
|
90
|
+
}) }),
|
|
88
91
|
/* @__PURE__ */ jsx("footer", { className: "mt-12 flex justify-center md:mt-18 lg:mt-20", children: /* @__PURE__ */ jsx(CompoundButton, { label: button.label, variant: button.variant, size: button.size, action: button.action, icon: button.icon }) })
|
|
89
92
|
] }) });
|
|
90
93
|
};
|
|
@@ -93,7 +96,7 @@ const defaultProject = {
|
|
|
93
96
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros.",
|
|
94
97
|
image: {
|
|
95
98
|
src: "https://picsum.photos/seed/portfolio-div/1200/800",
|
|
96
|
-
alt: "
|
|
99
|
+
alt: "Placeholder image"
|
|
97
100
|
},
|
|
98
101
|
url: "#",
|
|
99
102
|
button: { label: "View project", variant: "link", size: "sm" },
|
|
@@ -144,8 +144,18 @@ export declare const galleryStyleFields: {
|
|
|
144
144
|
}];
|
|
145
145
|
};
|
|
146
146
|
readonly slideBasis: {
|
|
147
|
-
readonly type: "
|
|
147
|
+
readonly type: "select";
|
|
148
148
|
readonly label: "Slide Basis";
|
|
149
|
+
readonly options: readonly [{
|
|
150
|
+
readonly label: "4/5";
|
|
151
|
+
readonly value: "4/5";
|
|
152
|
+
}, {
|
|
153
|
+
readonly label: "45%";
|
|
154
|
+
readonly value: "45%";
|
|
155
|
+
}, {
|
|
156
|
+
readonly label: "30%";
|
|
157
|
+
readonly value: "30%";
|
|
158
|
+
}];
|
|
149
159
|
};
|
|
150
160
|
readonly bordered: {
|
|
151
161
|
readonly type: "radio";
|
|
@@ -64,8 +64,13 @@ const galleryStyleFields = {
|
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
slideBasis: {
|
|
67
|
-
type: "
|
|
68
|
-
label: "Slide Basis"
|
|
67
|
+
type: "select",
|
|
68
|
+
label: "Slide Basis",
|
|
69
|
+
options: [
|
|
70
|
+
{ label: "4/5", value: "4/5" },
|
|
71
|
+
{ label: "45%", value: "45%" },
|
|
72
|
+
{ label: "30%", value: "30%" }
|
|
73
|
+
]
|
|
69
74
|
},
|
|
70
75
|
bordered: {
|
|
71
76
|
type: "radio",
|
|
@@ -5,6 +5,7 @@ import { useScroll, useTransform, motion } from "framer-motion";
|
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
|
+
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
8
9
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
10
|
const ScrollParallax = (props) => {
|
|
10
11
|
const { heading, description, images, styles } = {
|
|
@@ -12,6 +13,7 @@ const ScrollParallax = (props) => {
|
|
|
12
13
|
...props
|
|
13
14
|
};
|
|
14
15
|
const { className: sectionClassName, style: sectionStyle, css } = styles ?? {};
|
|
16
|
+
const { isEditor } = useEditorContext();
|
|
15
17
|
const transformRef = useRef(null);
|
|
16
18
|
const [scrollContainerRef] = useScrollContainer(transformRef);
|
|
17
19
|
const { scrollYProgress } = useScroll({
|
|
@@ -19,6 +21,22 @@ const ScrollParallax = (props) => {
|
|
|
19
21
|
...scrollContainerRef.current ? { container: scrollContainerRef } : {}
|
|
20
22
|
});
|
|
21
23
|
const x = useTransform(scrollYProgress, [0, 1], ["0%", "-100%"]);
|
|
24
|
+
if (isEditor) {
|
|
25
|
+
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: transformRef, className: cn(sectionClassName), style: sectionStyle, css, children: [
|
|
26
|
+
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsxs("div", { className: "container text-center", children: [
|
|
27
|
+
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
28
|
+
/* @__PURE__ */ jsx("p", { className: "md:text-md", children: description })
|
|
29
|
+
] }) }),
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: "px-[5%] py-12", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3", children: images.map((image, index) => /* @__PURE__ */ jsx("div", { className: "overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
31
|
+
CompoundImage,
|
|
32
|
+
{
|
|
33
|
+
className: "aspect-video w-full object-cover",
|
|
34
|
+
src: image.src,
|
|
35
|
+
alt: image.alt
|
|
36
|
+
}
|
|
37
|
+
) }, index)) }) })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
22
40
|
return /* @__PURE__ */ jsxs(SectionWrapper, { ref: transformRef, className: cn(sectionClassName), style: sectionStyle, css, children: [
|
|
23
41
|
/* @__PURE__ */ jsx("div", { className: "px-[5%] pt-16 md:pt-24 lg:pt-28", children: /* @__PURE__ */ jsxs("div", { className: "container text-center", children: [
|
|
24
42
|
/* @__PURE__ */ jsx("h2", { className: "rb-5 mb-5 text-5xl font-bold md:mb-6 md:text-7xl lg:text-8xl", children: heading }),
|
|
@@ -59,38 +59,35 @@ declare const conf: {
|
|
|
59
59
|
type: string;
|
|
60
60
|
label: string;
|
|
61
61
|
objectFields: {
|
|
62
|
+
className: {
|
|
63
|
+
readonly type: "text";
|
|
64
|
+
readonly label: "Class Name";
|
|
65
|
+
readonly ai: {
|
|
66
|
+
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
style: {
|
|
70
|
+
readonly type: "object";
|
|
71
|
+
readonly label: "Style";
|
|
72
|
+
readonly objectFields: {};
|
|
73
|
+
readonly ai: {
|
|
74
|
+
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
css: {
|
|
78
|
+
readonly type: "textarea";
|
|
79
|
+
readonly label: "Custom CSS";
|
|
80
|
+
readonly ai: {
|
|
81
|
+
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
62
84
|
animation: {
|
|
63
85
|
type: "radio";
|
|
64
86
|
label: string;
|
|
65
|
-
options:
|
|
66
|
-
className: {
|
|
67
|
-
readonly type: "text";
|
|
68
|
-
readonly label: "Class Name";
|
|
69
|
-
readonly ai: {
|
|
70
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
style: {
|
|
74
|
-
readonly type: "object";
|
|
75
|
-
readonly label: "Style";
|
|
76
|
-
readonly objectFields: {};
|
|
77
|
-
readonly ai: {
|
|
78
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
css: {
|
|
82
|
-
readonly type: "textarea";
|
|
83
|
-
readonly label: "Custom CSS";
|
|
84
|
-
readonly ai: {
|
|
85
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
label: string;
|
|
89
|
-
value: string;
|
|
90
|
-
} | {
|
|
87
|
+
options: {
|
|
91
88
|
label: string;
|
|
92
89
|
value: string;
|
|
93
|
-
}
|
|
90
|
+
}[];
|
|
94
91
|
};
|
|
95
92
|
};
|
|
96
93
|
};
|
|
@@ -24,10 +24,11 @@ const conf = {
|
|
|
24
24
|
type: "radio",
|
|
25
25
|
label: "Animation",
|
|
26
26
|
options: [
|
|
27
|
-
{ label: "Three Image Parallax", value: "threeImageParallax"
|
|
27
|
+
{ label: "Three Image Parallax", value: "threeImageParallax" },
|
|
28
28
|
{ label: "Scale Opacity", value: "scaleOpacity" }
|
|
29
29
|
]
|
|
30
|
-
}
|
|
30
|
+
},
|
|
31
|
+
...sectionWrapperFields
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
},
|
|
@@ -5,6 +5,7 @@ import { useScroll, useTransform, motion, useSpring, easeOut, easeInOut } from "
|
|
|
5
5
|
import { cn } from "../../../../utils/css-utils.js";
|
|
6
6
|
import { SectionWrapper } from "../../../puck-core/section-wrapper.js";
|
|
7
7
|
import { useScrollContainer } from "../../../../hooks/use-scroll-container.js";
|
|
8
|
+
import { useEditorContext } from "../../../puck-core/core/context/editor-context.js";
|
|
8
9
|
import { CompoundImage } from "../../../puck-base/image.js";
|
|
9
10
|
const ScrollParallaxPortfolio = (props) => {
|
|
10
11
|
const { projects, styles } = {
|
|
@@ -23,6 +24,7 @@ const ThreeImageParallaxVariant = ({
|
|
|
23
24
|
sectionStyle,
|
|
24
25
|
css
|
|
25
26
|
}) => {
|
|
27
|
+
const { isEditor } = useEditorContext();
|
|
26
28
|
const transformRef = useRef(null);
|
|
27
29
|
const [scrollContainerRef] = useScrollContainer(transformRef);
|
|
28
30
|
const { scrollYProgress } = useScroll({
|
|
@@ -76,23 +78,23 @@ const ThreeImageParallaxVariant = ({
|
|
|
76
78
|
return /* @__PURE__ */ jsxs(
|
|
77
79
|
"div",
|
|
78
80
|
{
|
|
79
|
-
className: cn("relative flex h-[500vh]
|
|
80
|
-
"mt-[-40vh]": index > 0
|
|
81
|
+
className: cn("relative flex flex-col", isEditor ? "h-auto mb-12" : "h-[500vh]", {
|
|
82
|
+
"mt-[-40vh]": !isEditor && index > 0
|
|
81
83
|
}),
|
|
82
84
|
children: [
|
|
83
85
|
/* @__PURE__ */ jsx(
|
|
84
86
|
motion.div,
|
|
85
87
|
{
|
|
86
|
-
className: "sticky top-0
|
|
87
|
-
style: computedStyles[index].headerStyles,
|
|
88
|
-
children: /* @__PURE__ */ jsxs("div", { className: "
|
|
88
|
+
className: cn("flex justify-center", isEditor ? "relative h-auto py-8" : "sticky top-0 h-[150vh]"),
|
|
89
|
+
style: isEditor ? { opacity: 1, scale: 1 } : computedStyles[index].headerStyles,
|
|
90
|
+
children: /* @__PURE__ */ jsxs("div", { className: cn("-z-10 flex w-full max-w-lg flex-col items-center text-center", isEditor ? "relative" : "absolute top-[50vh]"), children: [
|
|
89
91
|
/* @__PURE__ */ jsx("h3", { className: "text-5xl font-bold md:text-7xl lg:text-8xl", children: project.title }),
|
|
90
92
|
project.tags && /* @__PURE__ */ jsx("div", { className: "mt-4 flex flex-wrap justify-center gap-2", children: project.tags.map((tag, tagIndex) => /* @__PURE__ */ jsx("li", { className: "flex", children: /* @__PURE__ */ jsx("div", { className: "inline-flex border border-neutral-lightest bg-background-secondary px-2 py-1 text-sm font-semibold text-text-primary", children: tag.label }) }, tagIndex)) })
|
|
91
93
|
] })
|
|
92
94
|
}
|
|
93
95
|
),
|
|
94
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
95
|
-
/* @__PURE__ */ jsx("a", { href: "#", className: "inline-block max-w-full", children: /* @__PURE__ */ jsx("div", { className: "flex
|
|
96
|
+
/* @__PURE__ */ jsxs("div", { className: cn("z-10 flex items-center justify-center overflow-hidden", isEditor ? "relative h-auto" : "sticky top-0 h-screen"), children: [
|
|
97
|
+
/* @__PURE__ */ jsx("a", { href: "#", className: "inline-block max-w-full", children: /* @__PURE__ */ jsx("div", { className: cn("flex w-full max-w-lg items-center justify-center overflow-hidden", isEditor ? "h-auto" : "h-screen"), children: /* @__PURE__ */ jsx(
|
|
96
98
|
CompoundImage,
|
|
97
99
|
{
|
|
98
100
|
src: ((_a = project.imageCenter) == null ? void 0 : _a.src) ?? project.image.src,
|
|
@@ -100,11 +102,11 @@ const ThreeImageParallaxVariant = ({
|
|
|
100
102
|
className: "size-full object-contain"
|
|
101
103
|
}
|
|
102
104
|
) }) }),
|
|
103
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-0 right-auto z-20 hidden
|
|
105
|
+
/* @__PURE__ */ jsx("div", { className: cn("absolute inset-y-0 left-0 right-auto z-20 hidden w-full max-w-xxs lg:flex", isEditor ? "h-auto" : "h-screen"), children: /* @__PURE__ */ jsx(
|
|
104
106
|
motion.div,
|
|
105
107
|
{
|
|
106
|
-
className: "relative w-full pt-[100vh]",
|
|
107
|
-
style: computedStyles[index].imageLeftStyles,
|
|
108
|
+
className: cn("relative w-full", isEditor ? "pt-0" : "pt-[100vh]"),
|
|
109
|
+
style: isEditor ? { y: 0 } : computedStyles[index].imageLeftStyles,
|
|
108
110
|
children: /* @__PURE__ */ jsx(
|
|
109
111
|
CompoundImage,
|
|
110
112
|
{
|
|
@@ -115,11 +117,11 @@ const ThreeImageParallaxVariant = ({
|
|
|
115
117
|
)
|
|
116
118
|
}
|
|
117
119
|
) }),
|
|
118
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-y-0 left-auto right-0 z-20 hidden
|
|
120
|
+
/* @__PURE__ */ jsx("div", { className: cn("absolute inset-y-0 left-auto right-0 z-20 hidden w-full max-w-xxs lg:flex", isEditor ? "h-auto" : "h-screen"), children: /* @__PURE__ */ jsx(
|
|
119
121
|
motion.div,
|
|
120
122
|
{
|
|
121
|
-
className: "relative w-full pt-[100vh]",
|
|
122
|
-
style: computedStyles[index].imageRightStyles,
|
|
123
|
+
className: cn("relative w-full", isEditor ? "pt-0" : "pt-[100vh]"),
|
|
124
|
+
style: isEditor ? { y: 0 } : computedStyles[index].imageRightStyles,
|
|
123
125
|
children: /* @__PURE__ */ jsx(
|
|
124
126
|
CompoundImage,
|
|
125
127
|
{
|
|
@@ -131,13 +133,13 @@ const ThreeImageParallaxVariant = ({
|
|
|
131
133
|
}
|
|
132
134
|
) })
|
|
133
135
|
] }),
|
|
134
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
|
|
136
|
+
!isEditor && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 -z-10 mt-[100vh]" })
|
|
135
137
|
]
|
|
136
138
|
},
|
|
137
139
|
index
|
|
138
140
|
);
|
|
139
141
|
}) }) }),
|
|
140
|
-
/* @__PURE__ */ jsx("div", { className: "h-screen" })
|
|
142
|
+
!isEditor && /* @__PURE__ */ jsx("div", { className: "h-screen" })
|
|
141
143
|
] });
|
|
142
144
|
};
|
|
143
145
|
const ScaleOpacityVariant = ({
|
|
@@ -146,13 +148,14 @@ const ScaleOpacityVariant = ({
|
|
|
146
148
|
sectionStyle,
|
|
147
149
|
css
|
|
148
150
|
}) => {
|
|
151
|
+
const { isEditor } = useEditorContext();
|
|
149
152
|
const containerRef = useRef(null);
|
|
150
153
|
const [scrollContainerRef] = useScrollContainer(containerRef);
|
|
151
154
|
const { scrollYProgress } = useScroll({
|
|
152
155
|
target: containerRef,
|
|
153
156
|
...scrollContainerRef.current ? { container: scrollContainerRef } : {}
|
|
154
157
|
});
|
|
155
|
-
return /* @__PURE__ */ jsx(SectionWrapper, { ref: containerRef, className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: "h-[300vh]", children: /* @__PURE__ */ jsx("div", { className: "
|
|
158
|
+
return /* @__PURE__ */ jsx(SectionWrapper, { ref: containerRef, className: cn("relative px-[5%]", sectionClassName), style: sectionStyle, css, children: /* @__PURE__ */ jsx("div", { className: isEditor ? "h-auto" : "h-[300vh]", children: /* @__PURE__ */ jsx("div", { className: cn("flex items-center justify-center", isEditor ? "relative flex-col gap-8 py-12" : "sticky top-0 h-screen"), children: projects.map((project, index) => {
|
|
156
159
|
const segmentSize = 1 / projects.length;
|
|
157
160
|
const start = index * segmentSize;
|
|
158
161
|
const end = start + segmentSize;
|
|
@@ -169,8 +172,8 @@ const ScaleOpacityVariant = ({
|
|
|
169
172
|
return /* @__PURE__ */ jsx(
|
|
170
173
|
motion.div,
|
|
171
174
|
{
|
|
172
|
-
style: { opacity, scale },
|
|
173
|
-
className: "
|
|
175
|
+
style: isEditor ? { opacity: 1, scale: 1 } : { opacity, scale },
|
|
176
|
+
className: cn("flex items-center justify-center", isEditor ? "relative w-full" : "absolute inset-0"),
|
|
174
177
|
children: /* @__PURE__ */ jsxs("div", { className: "container max-w-4xl border border-border-primary bg-background-primary p-8 md:p-12", children: [
|
|
175
178
|
/* @__PURE__ */ jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsx(
|
|
176
179
|
CompoundImage,
|
|
@@ -201,7 +204,7 @@ const defaultProject = {
|
|
|
201
204
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.",
|
|
202
205
|
image: {
|
|
203
206
|
src: "https://picsum.photos/seed/scroll-port/1200/800",
|
|
204
|
-
alt: "
|
|
207
|
+
alt: "Placeholder image"
|
|
205
208
|
},
|
|
206
209
|
url: "#",
|
|
207
210
|
button: { label: "View project" },
|
|
@@ -212,15 +215,15 @@ const defaultProject = {
|
|
|
212
215
|
],
|
|
213
216
|
imageCenter: {
|
|
214
217
|
src: "https://picsum.photos/seed/scroll-port-center/800/1000",
|
|
215
|
-
alt: "
|
|
218
|
+
alt: "Placeholder center"
|
|
216
219
|
},
|
|
217
220
|
imageLeft: {
|
|
218
221
|
src: "https://picsum.photos/seed/scroll-port-left/400/600",
|
|
219
|
-
alt: "
|
|
222
|
+
alt: "Placeholder left"
|
|
220
223
|
},
|
|
221
224
|
imageRight: {
|
|
222
225
|
src: "https://picsum.photos/seed/scroll-port-right/400/600",
|
|
223
|
-
alt: "
|
|
226
|
+
alt: "Placeholder right"
|
|
224
227
|
}
|
|
225
228
|
};
|
|
226
229
|
const ScrollParallaxPortfolioDefaults = {
|
|
@@ -56,8 +56,18 @@ declare const conf: {
|
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
slideBasis: {
|
|
59
|
-
readonly type: "
|
|
59
|
+
readonly type: "select";
|
|
60
60
|
readonly label: "Slide Basis";
|
|
61
|
+
readonly options: readonly [{
|
|
62
|
+
readonly label: "4/5";
|
|
63
|
+
readonly value: "4/5";
|
|
64
|
+
}, {
|
|
65
|
+
readonly label: "45%";
|
|
66
|
+
readonly value: "45%";
|
|
67
|
+
}, {
|
|
68
|
+
readonly label: "30%";
|
|
69
|
+
readonly value: "30%";
|
|
70
|
+
}];
|
|
61
71
|
};
|
|
62
72
|
};
|
|
63
73
|
};
|