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
|
@@ -28,7 +28,7 @@ declare const conf: {
|
|
|
28
28
|
readonly action: {
|
|
29
29
|
type: "custom";
|
|
30
30
|
label: string;
|
|
31
|
-
render: typeof import("
|
|
31
|
+
render: typeof import("../../..").ActionField;
|
|
32
32
|
};
|
|
33
33
|
readonly variant: {
|
|
34
34
|
readonly type: "select";
|
|
@@ -122,7 +122,7 @@ declare const conf: {
|
|
|
122
122
|
readonly action: {
|
|
123
123
|
type: "custom";
|
|
124
124
|
label: string;
|
|
125
|
-
render: typeof import("
|
|
125
|
+
render: typeof import("../../..").ActionField;
|
|
126
126
|
};
|
|
127
127
|
readonly variant: {
|
|
128
128
|
readonly type: "select";
|
|
@@ -36,28 +36,6 @@ declare const conf: {
|
|
|
36
36
|
type: string;
|
|
37
37
|
label: string;
|
|
38
38
|
objectFields: {
|
|
39
|
-
className: {
|
|
40
|
-
readonly type: "text";
|
|
41
|
-
readonly label: "Class Name";
|
|
42
|
-
readonly ai: {
|
|
43
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
style: {
|
|
47
|
-
readonly type: "object";
|
|
48
|
-
readonly label: "Style";
|
|
49
|
-
readonly objectFields: {};
|
|
50
|
-
readonly ai: {
|
|
51
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
css: {
|
|
55
|
-
readonly type: "textarea";
|
|
56
|
-
readonly label: "Custom CSS";
|
|
57
|
-
readonly ai: {
|
|
58
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
39
|
heading: {
|
|
62
40
|
readonly type: "text";
|
|
63
41
|
readonly contentEditable: true;
|
|
@@ -75,7 +53,7 @@ declare const conf: {
|
|
|
75
53
|
readonly action: {
|
|
76
54
|
type: "custom";
|
|
77
55
|
label: string;
|
|
78
|
-
render: typeof import("
|
|
56
|
+
render: typeof import("../../..").ActionField;
|
|
79
57
|
};
|
|
80
58
|
readonly variant: {
|
|
81
59
|
readonly type: "select";
|
|
@@ -36,28 +36,6 @@ declare const conf: {
|
|
|
36
36
|
type: string;
|
|
37
37
|
label: string;
|
|
38
38
|
objectFields: {
|
|
39
|
-
className: {
|
|
40
|
-
readonly type: "text";
|
|
41
|
-
readonly label: "Class Name";
|
|
42
|
-
readonly ai: {
|
|
43
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
style: {
|
|
47
|
-
readonly type: "object";
|
|
48
|
-
readonly label: "Style";
|
|
49
|
-
readonly objectFields: {};
|
|
50
|
-
readonly ai: {
|
|
51
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
css: {
|
|
55
|
-
readonly type: "textarea";
|
|
56
|
-
readonly label: "Custom CSS";
|
|
57
|
-
readonly ai: {
|
|
58
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
39
|
heading: {
|
|
62
40
|
readonly type: "text";
|
|
63
41
|
readonly contentEditable: true;
|
|
@@ -75,7 +53,7 @@ declare const conf: {
|
|
|
75
53
|
readonly action: {
|
|
76
54
|
type: "custom";
|
|
77
55
|
label: string;
|
|
78
|
-
render: typeof import("
|
|
56
|
+
render: typeof import("../../..").ActionField;
|
|
79
57
|
};
|
|
80
58
|
readonly variant: {
|
|
81
59
|
readonly type: "select";
|
|
@@ -36,28 +36,6 @@ declare const conf: {
|
|
|
36
36
|
type: string;
|
|
37
37
|
label: string;
|
|
38
38
|
objectFields: {
|
|
39
|
-
className: {
|
|
40
|
-
readonly type: "text";
|
|
41
|
-
readonly label: "Class Name";
|
|
42
|
-
readonly ai: {
|
|
43
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
style: {
|
|
47
|
-
readonly type: "object";
|
|
48
|
-
readonly label: "Style";
|
|
49
|
-
readonly objectFields: {};
|
|
50
|
-
readonly ai: {
|
|
51
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
css: {
|
|
55
|
-
readonly type: "textarea";
|
|
56
|
-
readonly label: "Custom CSS";
|
|
57
|
-
readonly ai: {
|
|
58
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
39
|
heading: {
|
|
62
40
|
readonly type: "text";
|
|
63
41
|
readonly contentEditable: true;
|
|
@@ -75,7 +53,7 @@ declare const conf: {
|
|
|
75
53
|
readonly action: {
|
|
76
54
|
type: "custom";
|
|
77
55
|
label: string;
|
|
78
|
-
render: typeof import("
|
|
56
|
+
render: typeof import("../../..").ActionField;
|
|
79
57
|
};
|
|
80
58
|
readonly variant: {
|
|
81
59
|
readonly type: "select";
|
|
@@ -110,7 +110,7 @@ const BentoTestimonialDefaults = {
|
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
component: "logo",
|
|
113
|
-
props: { logo: { src: "https://d22po4pjz3o32e.cloudfront.net/
|
|
113
|
+
props: { logo: { src: "https://d22po4pjz3o32e.cloudfront.net/logo-1.svg", alt: "Logo 1" } }
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
component: "quote",
|
|
@@ -137,7 +137,7 @@ const BentoTestimonialDefaults = {
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
component: "logo",
|
|
140
|
-
props: { logo: { src: "https://
|
|
140
|
+
props: { logo: { src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo 2" } }
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
component: "background",
|
|
@@ -93,9 +93,9 @@ const TabTestimonialDefaults = {
|
|
|
93
93
|
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
|
|
94
94
|
tabs: [
|
|
95
95
|
{ ...tab, value: "tab-1" },
|
|
96
|
-
{ ...tab, value: "tab-2", trigger: { src: "https://
|
|
96
|
+
{ ...tab, value: "tab-2", trigger: { src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo" } },
|
|
97
97
|
{ ...tab, value: "tab-3" },
|
|
98
|
-
{ ...tab, value: "tab-4", trigger: { src: "https://
|
|
98
|
+
{ ...tab, value: "tab-4", trigger: { src: "https://file.springbrand.ai/web_assets/template-logo.svg", alt: "Logo" } }
|
|
99
99
|
],
|
|
100
100
|
styles: {
|
|
101
101
|
hasImage: false
|
|
@@ -9,28 +9,6 @@ declare const conf: {
|
|
|
9
9
|
label: string;
|
|
10
10
|
objectFields: {
|
|
11
11
|
title: {
|
|
12
|
-
className: {
|
|
13
|
-
readonly type: "text";
|
|
14
|
-
readonly label: "Class Name";
|
|
15
|
-
readonly ai: {
|
|
16
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
style: {
|
|
20
|
-
readonly type: "object";
|
|
21
|
-
readonly label: "Style";
|
|
22
|
-
readonly objectFields: {};
|
|
23
|
-
readonly ai: {
|
|
24
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
css: {
|
|
28
|
-
readonly type: "textarea";
|
|
29
|
-
readonly label: "Custom CSS";
|
|
30
|
-
readonly ai: {
|
|
31
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
12
|
type: string;
|
|
35
13
|
};
|
|
36
14
|
links: {
|
|
@@ -7,7 +7,7 @@ const conf = {
|
|
|
7
7
|
type: "object",
|
|
8
8
|
label: "Aside Navigation",
|
|
9
9
|
objectFields: {
|
|
10
|
-
title: { type: "text"
|
|
10
|
+
title: { type: "text" },
|
|
11
11
|
links: {
|
|
12
12
|
type: "array",
|
|
13
13
|
getItemSummary: (item, index = 0) => item.title || `Link ${index + 1}`,
|
|
@@ -43,28 +43,6 @@ declare const conf: {
|
|
|
43
43
|
label: string;
|
|
44
44
|
objectFields: {
|
|
45
45
|
name: {
|
|
46
|
-
className: {
|
|
47
|
-
readonly type: "text";
|
|
48
|
-
readonly label: "Class Name";
|
|
49
|
-
readonly ai: {
|
|
50
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
style: {
|
|
54
|
-
readonly type: "object";
|
|
55
|
-
readonly label: "Style";
|
|
56
|
-
readonly objectFields: {};
|
|
57
|
-
readonly ai: {
|
|
58
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
css: {
|
|
62
|
-
readonly type: "textarea";
|
|
63
|
-
readonly label: "Custom CSS";
|
|
64
|
-
readonly ai: {
|
|
65
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
46
|
type: string;
|
|
69
47
|
};
|
|
70
48
|
titleAndCompany: {
|
|
@@ -81,7 +81,7 @@ const ProseContentDefaults = {
|
|
|
81
81
|
],
|
|
82
82
|
mediaImage: {
|
|
83
83
|
src: "https://picsum.photos/seed/prose-media/1200/600",
|
|
84
|
-
alt: "
|
|
84
|
+
alt: "Placeholder image"
|
|
85
85
|
},
|
|
86
86
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
87
87
|
styles: {
|
|
@@ -12,28 +12,6 @@ declare const conf: {
|
|
|
12
12
|
label: string;
|
|
13
13
|
objectFields: {
|
|
14
14
|
title: {
|
|
15
|
-
className: {
|
|
16
|
-
readonly type: "text";
|
|
17
|
-
readonly label: "Class Name";
|
|
18
|
-
readonly ai: {
|
|
19
|
-
readonly instructions: "Additional Tailwind CSS classes to apply to the section wrapper.";
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
style: {
|
|
23
|
-
readonly type: "object";
|
|
24
|
-
readonly label: "Style";
|
|
25
|
-
readonly objectFields: {};
|
|
26
|
-
readonly ai: {
|
|
27
|
-
readonly instructions: "Inline CSSProperties object for the section wrapper, e.g. { backgroundColor: 'red', minHeight: '100vh' }.";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
css: {
|
|
31
|
-
readonly type: "textarea";
|
|
32
|
-
readonly label: "Custom CSS";
|
|
33
|
-
readonly ai: {
|
|
34
|
-
readonly instructions: "Custom CSS rules. Use & as a placeholder for the section selector.";
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
15
|
type: string;
|
|
38
16
|
};
|
|
39
17
|
description: {
|
|
@@ -51,7 +29,7 @@ declare const conf: {
|
|
|
51
29
|
readonly action: {
|
|
52
30
|
type: "custom";
|
|
53
31
|
label: string;
|
|
54
|
-
render: typeof import("
|
|
32
|
+
render: typeof import("../../..").ActionField;
|
|
55
33
|
};
|
|
56
34
|
readonly variant: {
|
|
57
35
|
readonly type: "select";
|
|
@@ -71,7 +71,7 @@ const SideMediaContentDefaults = {
|
|
|
71
71
|
prose: `<p>Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id scelerisque est ultricies ultricies. Duis est sit sed leo nisl, blandit elit sagittis. Quisque tristique consequat quam sed. Nisl at scelerisque amet nulla purus habitasse.</p><p>Nunc sed faucibus bibendum feugiat sed interdum. Ipsum egestas condimentum mi massa. In tincidunt pharetra consectetur sed duis facilisis metus. Etiam egestas in nec sed et. Quis lobortis at sit dictum eget nibh tortor commodo cursus.</p>`,
|
|
72
72
|
image: {
|
|
73
73
|
src: "https://picsum.photos/seed/side-media/800/600",
|
|
74
|
-
alt: "
|
|
74
|
+
alt: "Placeholder image"
|
|
75
75
|
},
|
|
76
76
|
video: "https://www.youtube.com/embed/8DKLYsikxTs?si=Ch9W0KrDWWUiCMMW",
|
|
77
77
|
styles: {
|
|
@@ -35,9 +35,9 @@ const StickyTextMultiImageDefaults = {
|
|
|
35
35
|
heading: "Short heading goes here",
|
|
36
36
|
prose: `<p>Morbi sed imperdiet in ipsum, adipiscing elit dui lectus. Tellus id scelerisque est ultricies ultricies. Duis est sit sed leo nisl, blandit elit sagittis. Quisque tristique consequat quam sed. Nisl at scelerisque amet nulla purus habitasse.</p><p>Nunc sed faucibus bibendum feugiat sed interdum. Ipsum egestas condimentum mi massa. In tincidunt pharetra consectetur sed duis facilisis metus.</p>`,
|
|
37
37
|
images: [
|
|
38
|
-
{ src: "https://picsum.photos/seed/sticky-img1/800/600", alt: "
|
|
39
|
-
{ src: "https://picsum.photos/seed/sticky-img2/800/600", alt: "
|
|
40
|
-
{ src: "https://picsum.photos/seed/sticky-img3/800/600", alt: "
|
|
38
|
+
{ src: "https://picsum.photos/seed/sticky-img1/800/600", alt: "Placeholder image 1" },
|
|
39
|
+
{ src: "https://picsum.photos/seed/sticky-img2/800/600", alt: "Placeholder image 2" },
|
|
40
|
+
{ src: "https://picsum.photos/seed/sticky-img3/800/600", alt: "Placeholder image 3" }
|
|
41
41
|
],
|
|
42
42
|
styles: {
|
|
43
43
|
contentPosition: "left"
|
|
@@ -28,7 +28,7 @@ declare const conf: {
|
|
|
28
28
|
readonly action: {
|
|
29
29
|
type: "custom";
|
|
30
30
|
label: string;
|
|
31
|
-
render: typeof import("
|
|
31
|
+
render: typeof import("../../..").ActionField;
|
|
32
32
|
};
|
|
33
33
|
readonly variant: {
|
|
34
34
|
readonly type: "select";
|
|
@@ -106,7 +106,7 @@ declare const conf: {
|
|
|
106
106
|
readonly action: {
|
|
107
107
|
type: "custom";
|
|
108
108
|
label: string;
|
|
109
|
-
render: typeof import("
|
|
109
|
+
render: typeof import("../../..").ActionField;
|
|
110
110
|
};
|
|
111
111
|
readonly variant: {
|
|
112
112
|
readonly type: "select";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./interactive.js";
|
|
1
|
+
import { buttonField, iconField, buttonDefaults } from "./interactive.js";
|
|
2
2
|
const headingField = {
|
|
3
3
|
type: "text",
|
|
4
4
|
contentEditable: true
|
|
@@ -7,7 +7,47 @@ const descriptionField = {
|
|
|
7
7
|
type: "textarea",
|
|
8
8
|
contentEditable: true
|
|
9
9
|
};
|
|
10
|
+
const featuresField = {
|
|
11
|
+
type: "array",
|
|
12
|
+
max: 5,
|
|
13
|
+
getItemSummary: (item, index = 0) => item.name || `Feature ${index + 1}`,
|
|
14
|
+
arrayFields: {
|
|
15
|
+
icon: iconField,
|
|
16
|
+
name: { type: "text", contentEditable: true },
|
|
17
|
+
description: { type: "textarea", contentEditable: true }
|
|
18
|
+
},
|
|
19
|
+
defaultItemProps: {
|
|
20
|
+
icon: "check",
|
|
21
|
+
name: "Feature name",
|
|
22
|
+
description: "Description of the feature"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const cardField = {
|
|
26
|
+
type: "object",
|
|
27
|
+
objectFields: {
|
|
28
|
+
icon: iconField,
|
|
29
|
+
heading: headingField,
|
|
30
|
+
description: descriptionField,
|
|
31
|
+
button: buttonField
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const cardsField = {
|
|
35
|
+
type: "array",
|
|
36
|
+
getItemSummary: (item, index = 0) => item.heading || `Card ${index + 1}`,
|
|
37
|
+
arrayFields: {
|
|
38
|
+
...cardField.objectFields
|
|
39
|
+
},
|
|
40
|
+
defaultItemProps: {
|
|
41
|
+
icon: "activity",
|
|
42
|
+
heading: "Heading",
|
|
43
|
+
description: "Description",
|
|
44
|
+
button: buttonDefaults
|
|
45
|
+
}
|
|
46
|
+
};
|
|
10
47
|
export {
|
|
48
|
+
cardField,
|
|
49
|
+
cardsField,
|
|
11
50
|
descriptionField,
|
|
51
|
+
featuresField,
|
|
12
52
|
headingField
|
|
13
53
|
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { buttonField } from "./interactive.js";
|
|
2
|
+
const fieldTypes = [
|
|
3
|
+
"text",
|
|
4
|
+
"number",
|
|
5
|
+
"password",
|
|
6
|
+
"date",
|
|
7
|
+
"file"
|
|
8
|
+
];
|
|
9
|
+
const formMethods = ["get", "post", "put", "patch", "delete"];
|
|
10
|
+
const formFieldField = {
|
|
11
|
+
type: "object",
|
|
12
|
+
objectFields: {
|
|
13
|
+
label: { type: "text", contentEditable: true },
|
|
14
|
+
name: { type: "text" },
|
|
15
|
+
type: {
|
|
16
|
+
type: "select",
|
|
17
|
+
options: fieldTypes.map((f) => ({ label: f, value: f }))
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const formFieldDefaults = {
|
|
22
|
+
label: "Field Label",
|
|
23
|
+
type: "text",
|
|
24
|
+
name: "field_name"
|
|
25
|
+
};
|
|
26
|
+
const { action: _buttonAction, ...formButtonConfig } = buttonField.objectFields;
|
|
27
|
+
const formField = {
|
|
28
|
+
type: "object",
|
|
29
|
+
objectFields: {
|
|
30
|
+
title: { type: "text", contentEditable: true },
|
|
31
|
+
fields: {
|
|
32
|
+
type: "array",
|
|
33
|
+
min: 1,
|
|
34
|
+
max: 10,
|
|
35
|
+
arrayFields: { ...formFieldField.objectFields },
|
|
36
|
+
getItemSummary: (item, index = 0) => item.label || `Field ${index + 1}`,
|
|
37
|
+
defaultItemProps: formFieldDefaults
|
|
38
|
+
},
|
|
39
|
+
action: { type: "text", label: "submit url" },
|
|
40
|
+
method: {
|
|
41
|
+
type: "select",
|
|
42
|
+
label: "submit method",
|
|
43
|
+
options: formMethods.map((method) => ({ label: method, value: method }))
|
|
44
|
+
},
|
|
45
|
+
button: {
|
|
46
|
+
...buttonField,
|
|
47
|
+
objectFields: {
|
|
48
|
+
...formButtonConfig
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const formDefaults = {
|
|
54
|
+
title: "Book a meeting",
|
|
55
|
+
fields: [
|
|
56
|
+
{ label: "First name", type: "text", name: "first_name" },
|
|
57
|
+
{ label: "Last name", type: "text", name: "last_name" },
|
|
58
|
+
{ label: "Resume", type: "file", name: "resume" }
|
|
59
|
+
],
|
|
60
|
+
action: "/submit-form",
|
|
61
|
+
method: "post",
|
|
62
|
+
button: {
|
|
63
|
+
label: "Book the meeting",
|
|
64
|
+
variant: "default",
|
|
65
|
+
size: "default",
|
|
66
|
+
icon: "move-right"
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
fieldTypes,
|
|
71
|
+
formDefaults,
|
|
72
|
+
formField,
|
|
73
|
+
formFieldDefaults,
|
|
74
|
+
formFieldField,
|
|
75
|
+
formMethods
|
|
76
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { buttonsField, badgeField } from "./interactive.js";
|
|
2
|
+
import { actionDefaults, actionField, buttonDefaults, buttonField, iconField, resolveActionUrl } from "./interactive.js";
|
|
3
|
+
import { descriptionField, headingField, featuresField } from "./content.js";
|
|
4
|
+
import { cardField, cardsField } from "./content.js";
|
|
5
|
+
const contentFields = {
|
|
6
|
+
heading: headingField,
|
|
7
|
+
description: descriptionField,
|
|
8
|
+
badge: badgeField,
|
|
9
|
+
buttons: buttonsField
|
|
10
|
+
};
|
|
11
|
+
const contentFieldsWithFeatures = {
|
|
12
|
+
heading: headingField,
|
|
13
|
+
description: descriptionField,
|
|
14
|
+
badge: badgeField,
|
|
15
|
+
features: featuresField,
|
|
16
|
+
buttons: buttonsField
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
actionDefaults,
|
|
20
|
+
actionField,
|
|
21
|
+
badgeField,
|
|
22
|
+
buttonDefaults,
|
|
23
|
+
buttonField,
|
|
24
|
+
buttonsField,
|
|
25
|
+
cardField,
|
|
26
|
+
cardsField,
|
|
27
|
+
contentFields,
|
|
28
|
+
contentFieldsWithFeatures,
|
|
29
|
+
descriptionField,
|
|
30
|
+
featuresField,
|
|
31
|
+
headingField,
|
|
32
|
+
iconField,
|
|
33
|
+
resolveActionUrl
|
|
34
|
+
};
|
|
@@ -90,9 +90,26 @@ const buttonsField = {
|
|
|
90
90
|
instructions: "Buttons must use the same size"
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
|
+
const badgeField = {
|
|
94
|
+
type: "object",
|
|
95
|
+
objectFields: {
|
|
96
|
+
label: { type: "text" },
|
|
97
|
+
url: { type: "text" },
|
|
98
|
+
variant: {
|
|
99
|
+
type: "select",
|
|
100
|
+
options: [
|
|
101
|
+
{ label: "default", value: "default" },
|
|
102
|
+
{ label: "secondary", value: "secondary" },
|
|
103
|
+
{ label: "destructive", value: "destructive" },
|
|
104
|
+
{ label: "outline", value: "outline" }
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
93
109
|
export {
|
|
94
110
|
actionDefaults,
|
|
95
111
|
actionField,
|
|
112
|
+
badgeField,
|
|
96
113
|
buttonDefaults,
|
|
97
114
|
buttonField,
|
|
98
115
|
buttonsField,
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { ImageUploadField } from "../../fields/image-upload-field.js";
|
|
1
2
|
const imageField = {
|
|
2
3
|
type: "object",
|
|
3
4
|
objectFields: {
|
|
4
|
-
src: {
|
|
5
|
+
src: {
|
|
6
|
+
type: "custom",
|
|
7
|
+
label: "Image",
|
|
8
|
+
render: ImageUploadField
|
|
9
|
+
},
|
|
5
10
|
alt: { type: "text" }
|
|
6
11
|
}
|
|
7
12
|
};
|
|
@@ -13,12 +18,14 @@ const image16x9Placeholder = {
|
|
|
13
18
|
alt: "16/9 aspect ratio accessible description of the image",
|
|
14
19
|
src: getPlaceholderImageUrl("1920x1080")
|
|
15
20
|
};
|
|
16
|
-
|
|
21
|
+
const image1x1Placeholder = {
|
|
22
|
+
alt: "1/1 aspect ratio An accessible description of the image",
|
|
17
23
|
src: getPlaceholderImageUrl("1000x1000")
|
|
18
|
-
}
|
|
19
|
-
|
|
24
|
+
};
|
|
25
|
+
const image9x16Placeholder = {
|
|
26
|
+
alt: "9/16 accessible description of the image",
|
|
20
27
|
src: getPlaceholderImageUrl("1080x1920")
|
|
21
|
-
}
|
|
28
|
+
};
|
|
22
29
|
const imagesField = {
|
|
23
30
|
type: "array",
|
|
24
31
|
max: 10,
|
|
@@ -36,6 +43,8 @@ const imagesField = {
|
|
|
36
43
|
export {
|
|
37
44
|
getPlaceholderImageUrl,
|
|
38
45
|
image16x9Placeholder,
|
|
46
|
+
image1x1Placeholder,
|
|
47
|
+
image9x16Placeholder,
|
|
39
48
|
imageField,
|
|
40
49
|
imagesField
|
|
41
50
|
};
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* 4. 工厂函数 — createStylesField / createStylesDefaults
|
|
16
16
|
* 5. 各分类预设 — Banner / Hero / CTA … 每类导出 Interface + Field + Defaults 三件套
|
|
17
17
|
*/
|
|
18
|
-
import type { SectionStyle, OverlayStyle } from "
|
|
18
|
+
import type { SectionStyle, OverlayStyle } from "@/components/puck-base/container";
|
|
19
19
|
export type PaddingLevel = "none" | "small" | "medium" | "large";
|
|
20
20
|
export type { SectionStyle, OverlayStyle };
|
|
21
21
|
/** 所有 section 通用的基础样式 */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sectionWrapperFields } from "../section-wrapper.js";
|
|
1
2
|
const paddingLevel = {
|
|
2
3
|
type: "select",
|
|
3
4
|
options: [
|
|
@@ -72,7 +73,8 @@ function createStylesField(extraFields) {
|
|
|
72
73
|
label: "Styles",
|
|
73
74
|
objectFields: {
|
|
74
75
|
...sectionBaseStyleFields,
|
|
75
|
-
...extraFields
|
|
76
|
+
...extraFields,
|
|
77
|
+
...sectionWrapperFields
|
|
76
78
|
}
|
|
77
79
|
};
|
|
78
80
|
}
|