dune-react 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/puck-base/article-card.js +1 -1
- package/dist/components/puck-base/button.d.ts +0 -1
- package/dist/components/puck-base/button.js +5 -4
- package/dist/components/puck-base/card.js +0 -1
- package/dist/components/puck-base/content.js +0 -1
- package/dist/components/puck-base/core/fields.d.ts +2 -150
- package/dist/components/puck-base/core/fields.js +7 -83
- package/dist/components/puck-base/core/styles.d.ts +1946 -0
- package/dist/components/puck-base/core/styles.js +250 -0
- package/dist/components/puck-base/core/with-editable.d.ts +5 -7
- package/dist/components/puck-base/core/with-editable.js +69 -64
- package/dist/components/puck-base/{action-field.d.ts → fields/action-field.d.ts} +1 -1
- package/dist/components/puck-base/{action-field.js → fields/action-field.js} +91 -16
- package/dist/components/puck-base/fields/auto-field.d.ts +0 -1
- package/dist/components/puck-base/fields/auto-field.js +2 -90
- package/dist/components/puck-base/form.js +0 -1
- package/dist/components/puck-base/index.d.ts +1 -1
- package/dist/components/puck-base/navigation-menu.d.ts +18 -0
- package/dist/components/puck-base/navigation-menu.js +202 -0
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.d.ts +9 -7
- package/dist/components/puck-block/banner-sections/announcement-banner-1/announcement-banner.js +11 -8
- package/dist/components/puck-block/banner-sections/announcement-banner-1/index.js +19 -37
- package/dist/components/puck-block/banner-sections/marquee-1/index.js +26 -24
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.d.ts +9 -9
- package/dist/components/puck-block/banner-sections/marquee-1/marquee.js +28 -21
- package/dist/components/puck-block/banner-sections/props.d.ts +22 -0
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.d.ts +13 -4
- package/dist/components/puck-block/contact-sections/contact-us-1/contact-us.js +114 -105
- package/dist/components/puck-block/contact-sections/contact-us-1/index.js +87 -7
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.d.ts +15 -11
- package/dist/components/puck-block/contact-sections/contact-us-2/contact-us-2.js +27 -22
- package/dist/components/puck-block/contact-sections/contact-us-2/index.js +54 -52
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.d.ts +15 -12
- package/dist/components/puck-block/contact-sections/contact-us-3/contact-us-3.js +29 -24
- package/dist/components/puck-block/contact-sections/contact-us-3/index.js +73 -60
- package/dist/components/puck-block/contact-sections/props.d.ts +65 -0
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.d.ts +13 -9
- package/dist/components/puck-block/cta-sections/banner-cta-1/banner-cta.js +28 -30
- package/dist/components/puck-block/cta-sections/banner-cta-1/index.js +23 -25
- package/dist/components/puck-block/cta-sections/cta-1/cta.d.ts +6 -4
- package/dist/components/puck-block/cta-sections/cta-1/cta.js +5 -7
- package/dist/components/puck-block/cta-sections/cta-1/index.js +5 -9
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.d.ts +10 -10
- package/dist/components/puck-block/cta-sections/gradient-cta-1/gradient-cta.js +48 -22
- package/dist/components/puck-block/cta-sections/gradient-cta-1/index.js +36 -29
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/index.js +13 -5
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.d.ts +7 -3
- package/dist/components/puck-block/cta-sections/newsletter-signup-1/newsletter-signup.js +35 -32
- package/dist/components/puck-block/cta-sections/promo-section-1/index.js +5 -7
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.d.ts +6 -4
- package/dist/components/puck-block/cta-sections/promo-section-1/promo-section.js +93 -79
- package/dist/components/puck-block/cta-sections/props.d.ts +47 -0
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.d.ts +6 -4
- package/dist/components/puck-block/faq-sections/accordion-1/accordion.js +44 -33
- package/dist/components/puck-block/faq-sections/accordion-1/index.js +3 -5
- package/dist/components/puck-block/faq-sections/faq-1/faq.d.ts +9 -7
- package/dist/components/puck-block/faq-sections/faq-1/faq.js +50 -44
- package/dist/components/puck-block/faq-sections/faq-1/index.js +12 -14
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.d.ts +6 -4
- package/dist/components/puck-block/faq-sections/faq-2/faq-2.js +4 -6
- package/dist/components/puck-block/faq-sections/faq-2/index.js +4 -5
- package/dist/components/puck-block/faq-sections/props.d.ts +30 -0
- package/dist/components/puck-block/feature-sections/bento-1/bento.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/bento-1/bento.js +2 -4
- package/dist/components/puck-block/feature-sections/bento-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/feature-cards-1/feature-cards.js +2 -4
- package/dist/components/puck-block/feature-sections/feature-cards-1/index.js +4 -7
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/feature-showcase-1/feature-showcase.js +2 -4
- package/dist/components/puck-block/feature-sections/feature-showcase-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/icon-grid-1/icon-grid.js +59 -53
- package/dist/components/puck-block/feature-sections/icon-grid-1/index.js +7 -8
- package/dist/components/puck-block/feature-sections/product-features-1/index.js +4 -5
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.d.ts +6 -4
- package/dist/components/puck-block/feature-sections/product-features-1/product-features.js +2 -4
- package/dist/components/puck-block/feature-sections/props.d.ts +48 -0
- package/dist/components/puck-block/footer-sections/footer-1/footer.d.ts +5 -3
- package/dist/components/puck-block/footer-sections/footer-1/footer.js +6 -6
- package/dist/components/puck-block/footer-sections/footer-1/index.js +3 -5
- package/dist/components/puck-block/footer-sections/props.d.ts +31 -0
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.d.ts +9 -7
- package/dist/components/puck-block/gallery-sections/gallery-1/gallery.js +48 -40
- package/dist/components/puck-block/gallery-sections/gallery-1/index.js +33 -35
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.d.ts +6 -4
- package/dist/components/puck-block/gallery-sections/gallery-2/gallery-2.js +19 -13
- package/dist/components/puck-block/gallery-sections/gallery-2/index.js +4 -6
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.d.ts +7 -5
- package/dist/components/puck-block/gallery-sections/gallery-3/gallery-3.js +5 -7
- package/dist/components/puck-block/gallery-sections/gallery-3/index.js +13 -14
- package/dist/components/puck-block/gallery-sections/props.d.ts +26 -0
- package/dist/components/puck-block/header-sections/header-1/header.d.ts +11 -6
- package/dist/components/puck-block/header-sections/header-1/header.js +34 -28
- package/dist/components/puck-block/header-sections/header-1/index.d.ts +1 -1
- package/dist/components/puck-block/header-sections/header-1/index.js +26 -30
- package/dist/components/puck-block/header-sections/props.d.ts +41 -0
- package/dist/components/puck-block/header-sections/sticky-nav-1/index.js +12 -12
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.d.ts +8 -6
- package/dist/components/puck-block/header-sections/sticky-nav-1/sticky-nav.js +5 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.d.ts +7 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/fullscreen-hero.js +19 -5
- package/dist/components/puck-block/hero-sections/fullscreen-hero-1/index.js +17 -17
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.d.ts +8 -4
- package/dist/components/puck-block/hero-sections/gradient-hero-1/gradient-hero.js +36 -26
- package/dist/components/puck-block/hero-sections/gradient-hero-1/index.js +19 -15
- package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.d.ts +7 -6
- package/dist/components/puck-block/hero-sections/grid-hero-1/grid-hero.js +8 -11
- package/dist/components/puck-block/hero-sections/grid-hero-1/index.js +43 -11
- package/dist/components/puck-block/hero-sections/hero-1/hero.d.ts +6 -4
- package/dist/components/puck-block/hero-sections/hero-1/hero.js +6 -8
- package/dist/components/puck-block/hero-sections/hero-1/index.js +4 -4
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.d.ts +9 -7
- package/dist/components/puck-block/hero-sections/image-hero-1/image-hero.js +65 -59
- package/dist/components/puck-block/hero-sections/image-hero-1/index.js +35 -36
- package/dist/components/puck-block/hero-sections/props.d.ts +71 -0
- package/dist/components/puck-block/hero-sections/split-hero-1/index.js +6 -5
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.d.ts +8 -8
- package/dist/components/puck-block/hero-sections/split-hero-1/split-hero.js +48 -47
- package/dist/components/puck-block/hero-sections/video-hero-1/index.js +4 -3
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.d.ts +6 -2
- package/dist/components/puck-block/hero-sections/video-hero-1/video-hero.js +30 -22
- package/dist/components/puck-block/location-sections/location-1/index.js +44 -42
- package/dist/components/puck-block/location-sections/location-1/location.d.ts +8 -6
- package/dist/components/puck-block/location-sections/location-1/location.js +8 -15
- package/dist/components/puck-block/location-sections/location-2/index.js +66 -57
- package/dist/components/puck-block/location-sections/location-2/location.d.ts +12 -6
- package/dist/components/puck-block/location-sections/location-2/location.js +8 -14
- package/dist/components/puck-block/location-sections/location-3/index.js +25 -24
- package/dist/components/puck-block/location-sections/location-3/location.d.ts +10 -6
- package/dist/components/puck-block/location-sections/location-3/location.js +12 -11
- package/dist/components/puck-block/location-sections/props.d.ts +45 -0
- package/dist/components/puck-block/metrics-sections/props.d.ts +43 -0
- package/dist/components/puck-block/metrics-sections/stats-1/index.js +6 -7
- package/dist/components/puck-block/metrics-sections/stats-1/stats.d.ts +7 -5
- package/dist/components/puck-block/metrics-sections/stats-1/stats.js +61 -55
- package/dist/components/puck-block/metrics-sections/stats-2/index.js +4 -7
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.d.ts +6 -4
- package/dist/components/puck-block/metrics-sections/stats-2/stats-2.js +4 -7
- package/dist/components/puck-block/metrics-sections/stats-3/index.js +19 -29
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.d.ts +7 -6
- package/dist/components/puck-block/metrics-sections/stats-3/stats-3.js +22 -13
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.d.ts +7 -5
- package/dist/components/puck-block/pricing-sections/comparison-1/comparison.js +45 -39
- package/dist/components/puck-block/pricing-sections/comparison-1/index.js +5 -7
- package/dist/components/puck-block/pricing-sections/pricing-1/index.js +10 -13
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.d.ts +8 -6
- package/dist/components/puck-block/pricing-sections/pricing-1/pricing.js +47 -35
- package/dist/components/puck-block/pricing-sections/pricing-2/index.js +7 -12
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.d.ts +6 -4
- package/dist/components/puck-block/pricing-sections/pricing-2/pricing-2.js +60 -57
- package/dist/components/puck-block/pricing-sections/props.d.ts +46 -0
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.d.ts +7 -5
- package/dist/components/puck-block/showcase-sections/before-after-1/before-after.js +8 -10
- package/dist/components/puck-block/showcase-sections/before-after-1/index.js +6 -8
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.d.ts +6 -2
- package/dist/components/puck-block/showcase-sections/case-study-1/case-study.js +29 -21
- package/dist/components/puck-block/showcase-sections/case-study-1/index.js +4 -3
- package/dist/components/puck-block/showcase-sections/props.d.ts +48 -0
- package/dist/components/puck-block/showcase-sections/step-by-step-1/index.js +3 -5
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.d.ts +6 -4
- package/dist/components/puck-block/showcase-sections/step-by-step-1/step-by-step.js +38 -41
- package/dist/components/puck-block/team-sections/props.d.ts +39 -0
- package/dist/components/puck-block/team-sections/team-grid-1/index.js +5 -6
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-grid-1/team-grid.js +23 -17
- package/dist/components/puck-block/team-sections/team-grid-2/index.js +4 -7
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-grid-2/team-grid-2.js +5 -7
- package/dist/components/puck-block/team-sections/team-profiles-1/index.js +4 -5
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.d.ts +6 -4
- package/dist/components/puck-block/team-sections/team-profiles-1/team-profiles.js +5 -7
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.d.ts +9 -7
- package/dist/components/puck-block/testimonial-sections/customers-1/customers.js +8 -11
- package/dist/components/puck-block/testimonial-sections/customers-1/index.js +17 -17
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/index.js +15 -12
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.d.ts +7 -3
- package/dist/components/puck-block/testimonial-sections/logo-marquee-1/logo-marquee.js +33 -24
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/index.js +17 -16
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.d.ts +6 -4
- package/dist/components/puck-block/testimonial-sections/logo-wall-1/logo-wall.js +5 -7
- package/dist/components/puck-block/testimonial-sections/props.d.ts +34 -0
- package/dist/components/puck-block/testimonial-sections/review-section-1/index.js +17 -16
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.d.ts +8 -6
- package/dist/components/puck-block/testimonial-sections/review-section-1/review-section.js +22 -17
- package/dist/components/puck-block/testimonial-sections/testimonials-1/index.js +17 -17
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.d.ts +8 -6
- package/dist/components/puck-block/testimonial-sections/testimonials-1/testimonials.js +100 -67
- package/dist/components/puck-block/text-sections/articles-1/articles.d.ts +7 -5
- package/dist/components/puck-block/text-sections/articles-1/articles.js +41 -34
- package/dist/components/puck-block/text-sections/articles-1/index.js +24 -25
- package/dist/components/puck-block/text-sections/content-section-1/content-section.d.ts +7 -5
- package/dist/components/puck-block/text-sections/content-section-1/content-section.js +6 -9
- package/dist/components/puck-block/text-sections/content-section-1/index.js +14 -16
- package/dist/components/puck-block/text-sections/props.d.ts +58 -0
- package/dist/components/puck-block/text-sections/rich-text-1/index.js +13 -15
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.d.ts +7 -5
- package/dist/components/puck-block/text-sections/rich-text-1/rich-text.js +11 -11
- package/dist/components/puck-block/text-sections/tab-section-1/index.js +4 -5
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.d.ts +6 -4
- package/dist/components/puck-block/text-sections/tab-section-1/tab-section.js +10 -8
- package/dist/components/puck-block/text-sections/timeline-1/index.js +3 -5
- package/dist/components/puck-block/text-sections/timeline-1/timeline.d.ts +6 -4
- package/dist/components/puck-block/text-sections/timeline-1/timeline.js +3 -5
- package/dist/components/puck-block/text-sections/two-column-1/index.js +4 -6
- package/dist/components/puck-block/text-sections/two-column-1/two-column.d.ts +6 -4
- package/dist/components/puck-block/text-sections/two-column-1/two-column.js +5 -7
- package/dist/components/shadcn/navigation-menu.js +8 -33
- package/dist/index.js +3 -2
- package/package.json +2 -2
|
@@ -2,7 +2,6 @@ import { type ButtonProps } from "@/components/shadcn/button";
|
|
|
2
2
|
import { Action, IconName } from "./core/types";
|
|
3
3
|
export interface CompoundButtonProps {
|
|
4
4
|
label: string;
|
|
5
|
-
url?: string;
|
|
6
5
|
action?: Action;
|
|
7
6
|
variant?: ButtonProps["variant"];
|
|
8
7
|
size?: ButtonProps["size"];
|
|
@@ -48,15 +48,16 @@ function CompoundButtonBase(props) {
|
|
|
48
48
|
props.size !== "icon" && props.label,
|
|
49
49
|
props.icon && props.icon !== "none" ? /* @__PURE__ */ jsx(DynamicIcon, { name: props.icon, className: "h-4 w-4" }) : null
|
|
50
50
|
] });
|
|
51
|
-
const href = props.action ? resolveActionUrl(props.action) :
|
|
52
|
-
const
|
|
53
|
-
const isDownload = ((_c = props.action) == null ? void 0 : _c.
|
|
51
|
+
const href = props.action ? resolveActionUrl(props.action) : void 0;
|
|
52
|
+
const isDownload = ((_a = props.action) == null ? void 0 : _a.type) === "download";
|
|
53
|
+
const isNewTab = isDownload || ((_b = props.action) == null ? void 0 : _b.type) === "external" && ((_c = props.action) == null ? void 0 : _c.openInNewTab) === "true";
|
|
54
|
+
const linkRel = href && !href.startsWith("/") ? "ugc nofollow noopener noreferrer" : void 0;
|
|
54
55
|
return href ? /* @__PURE__ */ jsx(
|
|
55
56
|
"a",
|
|
56
57
|
{
|
|
57
58
|
href,
|
|
58
59
|
target: isNewTab ? "_blank" : void 0,
|
|
59
|
-
rel:
|
|
60
|
+
rel: linkRel,
|
|
60
61
|
download: isDownload || void 0,
|
|
61
62
|
className: cn(
|
|
62
63
|
buttonVariants({ variant: props.variant, size: props.size }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Field } from "@puckeditor/core";
|
|
2
2
|
import type { CompoundFormProps } from "../form";
|
|
3
3
|
import type { CompoundFieldProps } from "../field";
|
|
4
|
-
import { ActionField } from "../action-field";
|
|
4
|
+
import { ActionField } from "../fields/action-field";
|
|
5
5
|
export declare const icon: {
|
|
6
6
|
readonly type: "select";
|
|
7
7
|
readonly options: readonly [{
|
|
@@ -34,9 +34,6 @@ export declare const button: {
|
|
|
34
34
|
readonly label: {
|
|
35
35
|
readonly type: "text";
|
|
36
36
|
};
|
|
37
|
-
readonly url: {
|
|
38
|
-
readonly type: "text";
|
|
39
|
-
};
|
|
40
37
|
readonly action: {
|
|
41
38
|
type: "custom";
|
|
42
39
|
label: string;
|
|
@@ -102,9 +99,6 @@ export declare const buttons: {
|
|
|
102
99
|
readonly label: {
|
|
103
100
|
readonly type: "text";
|
|
104
101
|
};
|
|
105
|
-
readonly url: {
|
|
106
|
-
readonly type: "text";
|
|
107
|
-
};
|
|
108
102
|
readonly action: {
|
|
109
103
|
type: "custom";
|
|
110
104
|
label: string;
|
|
@@ -161,7 +155,6 @@ export declare const buttons: {
|
|
|
161
155
|
};
|
|
162
156
|
readonly defaultItemProps: {
|
|
163
157
|
readonly label: "Button";
|
|
164
|
-
readonly url: "";
|
|
165
158
|
readonly action: {
|
|
166
159
|
readonly type: "external";
|
|
167
160
|
readonly pageUrl: "";
|
|
@@ -247,75 +240,6 @@ export declare const images: {
|
|
|
247
240
|
src: string;
|
|
248
241
|
};
|
|
249
242
|
};
|
|
250
|
-
export declare const paddingLevel: {
|
|
251
|
-
readonly type: "select";
|
|
252
|
-
readonly options: readonly [{
|
|
253
|
-
readonly label: "none";
|
|
254
|
-
readonly value: "none";
|
|
255
|
-
}, {
|
|
256
|
-
readonly label: "small";
|
|
257
|
-
readonly value: "small";
|
|
258
|
-
}, {
|
|
259
|
-
readonly label: "medium";
|
|
260
|
-
readonly value: "medium";
|
|
261
|
-
}, {
|
|
262
|
-
readonly label: "large";
|
|
263
|
-
readonly value: "large";
|
|
264
|
-
}];
|
|
265
|
-
readonly ai: {
|
|
266
|
-
readonly instructions: "Never select none as an option";
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
export declare const padding: {
|
|
270
|
-
readonly type: "object";
|
|
271
|
-
readonly objectFields: {
|
|
272
|
-
readonly top: {
|
|
273
|
-
readonly type: "select";
|
|
274
|
-
readonly options: readonly [{
|
|
275
|
-
readonly label: "none";
|
|
276
|
-
readonly value: "none";
|
|
277
|
-
}, {
|
|
278
|
-
readonly label: "small";
|
|
279
|
-
readonly value: "small";
|
|
280
|
-
}, {
|
|
281
|
-
readonly label: "medium";
|
|
282
|
-
readonly value: "medium";
|
|
283
|
-
}, {
|
|
284
|
-
readonly label: "large";
|
|
285
|
-
readonly value: "large";
|
|
286
|
-
}];
|
|
287
|
-
readonly ai: {
|
|
288
|
-
readonly instructions: "Never select none as an option";
|
|
289
|
-
};
|
|
290
|
-
};
|
|
291
|
-
readonly bottom: {
|
|
292
|
-
readonly type: "select";
|
|
293
|
-
readonly options: readonly [{
|
|
294
|
-
readonly label: "none";
|
|
295
|
-
readonly value: "none";
|
|
296
|
-
}, {
|
|
297
|
-
readonly label: "small";
|
|
298
|
-
readonly value: "small";
|
|
299
|
-
}, {
|
|
300
|
-
readonly label: "medium";
|
|
301
|
-
readonly value: "medium";
|
|
302
|
-
}, {
|
|
303
|
-
readonly label: "large";
|
|
304
|
-
readonly value: "large";
|
|
305
|
-
}];
|
|
306
|
-
readonly ai: {
|
|
307
|
-
readonly instructions: "Never select none as an option";
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
readonly ai: {
|
|
312
|
-
readonly exclude: true;
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
export declare const paddingDefaults: {
|
|
316
|
-
readonly top: "medium";
|
|
317
|
-
readonly bottom: "medium";
|
|
318
|
-
};
|
|
319
243
|
export declare const heading: {
|
|
320
244
|
readonly type: "text";
|
|
321
245
|
readonly contentEditable: true;
|
|
@@ -402,9 +326,6 @@ export declare const contentFields: {
|
|
|
402
326
|
readonly label: {
|
|
403
327
|
readonly type: "text";
|
|
404
328
|
};
|
|
405
|
-
readonly url: {
|
|
406
|
-
readonly type: "text";
|
|
407
|
-
};
|
|
408
329
|
readonly action: {
|
|
409
330
|
type: "custom";
|
|
410
331
|
label: string;
|
|
@@ -461,7 +382,6 @@ export declare const contentFields: {
|
|
|
461
382
|
};
|
|
462
383
|
readonly defaultItemProps: {
|
|
463
384
|
readonly label: "Button";
|
|
464
|
-
readonly url: "";
|
|
465
385
|
readonly action: {
|
|
466
386
|
readonly type: "external";
|
|
467
387
|
readonly pageUrl: "";
|
|
@@ -560,9 +480,6 @@ export declare const contentFieldsWithFeatures: {
|
|
|
560
480
|
readonly label: {
|
|
561
481
|
readonly type: "text";
|
|
562
482
|
};
|
|
563
|
-
readonly url: {
|
|
564
|
-
readonly type: "text";
|
|
565
|
-
};
|
|
566
483
|
readonly action: {
|
|
567
484
|
type: "custom";
|
|
568
485
|
label: string;
|
|
@@ -619,7 +536,6 @@ export declare const contentFieldsWithFeatures: {
|
|
|
619
536
|
};
|
|
620
537
|
readonly defaultItemProps: {
|
|
621
538
|
readonly label: "Button";
|
|
622
|
-
readonly url: "";
|
|
623
539
|
readonly action: {
|
|
624
540
|
readonly type: "external";
|
|
625
541
|
readonly pageUrl: "";
|
|
@@ -667,9 +583,6 @@ export declare const card: {
|
|
|
667
583
|
readonly label: {
|
|
668
584
|
readonly type: "text";
|
|
669
585
|
};
|
|
670
|
-
readonly url: {
|
|
671
|
-
readonly type: "text";
|
|
672
|
-
};
|
|
673
586
|
readonly action: {
|
|
674
587
|
type: "custom";
|
|
675
588
|
label: string;
|
|
@@ -757,9 +670,6 @@ export declare const cards: {
|
|
|
757
670
|
readonly label: {
|
|
758
671
|
readonly type: "text";
|
|
759
672
|
};
|
|
760
|
-
readonly url: {
|
|
761
|
-
readonly type: "text";
|
|
762
|
-
};
|
|
763
673
|
readonly action: {
|
|
764
674
|
type: "custom";
|
|
765
675
|
label: string;
|
|
@@ -822,7 +732,6 @@ export declare const cards: {
|
|
|
822
732
|
readonly description: "Description";
|
|
823
733
|
readonly button: {
|
|
824
734
|
readonly label: "Button";
|
|
825
|
-
readonly url: "";
|
|
826
735
|
readonly action: {
|
|
827
736
|
readonly type: "external";
|
|
828
737
|
readonly pageUrl: "";
|
|
@@ -963,61 +872,4 @@ export declare const form: {
|
|
|
963
872
|
};
|
|
964
873
|
};
|
|
965
874
|
export declare const formDefaults: CompoundFormProps;
|
|
966
|
-
export
|
|
967
|
-
readonly type: "select";
|
|
968
|
-
readonly label: "Section Style";
|
|
969
|
-
readonly options: readonly [{
|
|
970
|
-
readonly label: "Default";
|
|
971
|
-
readonly value: "default";
|
|
972
|
-
}, {
|
|
973
|
-
readonly label: "Dark";
|
|
974
|
-
readonly value: "dark";
|
|
975
|
-
}, {
|
|
976
|
-
readonly label: "Muted";
|
|
977
|
-
readonly value: "muted";
|
|
978
|
-
}, {
|
|
979
|
-
readonly label: "Inverted";
|
|
980
|
-
readonly value: "inverted";
|
|
981
|
-
}, {
|
|
982
|
-
readonly label: "Custom";
|
|
983
|
-
readonly value: "custom";
|
|
984
|
-
}];
|
|
985
|
-
readonly ai: {
|
|
986
|
-
readonly instructions: "Match the section's background tone: use 'dark' for dark/black backgrounds, 'muted' for gray/subtle backgrounds, 'inverted' for full contrast reversal. Default for standard light backgrounds.";
|
|
987
|
-
};
|
|
988
|
-
};
|
|
989
|
-
export declare const sectionOverlay: {
|
|
990
|
-
readonly type: "select";
|
|
991
|
-
readonly label: "Overlay";
|
|
992
|
-
readonly options: readonly [{
|
|
993
|
-
readonly label: "None";
|
|
994
|
-
readonly value: "none";
|
|
995
|
-
}, {
|
|
996
|
-
readonly label: "Gradient Top";
|
|
997
|
-
readonly value: "gradient-top";
|
|
998
|
-
}, {
|
|
999
|
-
readonly label: "Gradient Bottom";
|
|
1000
|
-
readonly value: "gradient-bottom";
|
|
1001
|
-
}, {
|
|
1002
|
-
readonly label: "Noise";
|
|
1003
|
-
readonly value: "noise";
|
|
1004
|
-
}];
|
|
1005
|
-
readonly ai: {
|
|
1006
|
-
readonly instructions: "Use gradient overlays when the section has a background image that needs text contrast. Use noise for subtle texture.";
|
|
1007
|
-
};
|
|
1008
|
-
};
|
|
1009
|
-
export declare const backgroundColor: {
|
|
1010
|
-
readonly type: "text";
|
|
1011
|
-
readonly label: "Background Color";
|
|
1012
|
-
readonly ai: {
|
|
1013
|
-
readonly instructions: "Set a custom background color in oklch format (e.g. 'oklch(0.2 0.05 260)'). Only use when sectionStyle is 'custom'.";
|
|
1014
|
-
};
|
|
1015
|
-
};
|
|
1016
|
-
export declare const backgroundImage: {
|
|
1017
|
-
readonly type: "text";
|
|
1018
|
-
readonly label: "Background Image URL";
|
|
1019
|
-
readonly ai: {
|
|
1020
|
-
readonly instructions: "URL for a full-width background image behind the section.";
|
|
1021
|
-
readonly stream: false;
|
|
1022
|
-
};
|
|
1023
|
-
};
|
|
875
|
+
export * from "./styles";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { fieldTypes } from "../field.js";
|
|
2
|
-
import { ActionField } from "../action-field.js";
|
|
2
|
+
import { ActionField } from "../fields/action-field.js";
|
|
3
3
|
import { iconNames } from "../../../node_modules/.pnpm/lucide-react@0.540.0_react@19.2.4/node_modules/lucide-react/dist/esm/DynamicIcon.js";
|
|
4
4
|
const formMethods = ["get", "post", "put", "patch", "delete"];
|
|
5
5
|
const icon = {
|
|
@@ -32,7 +32,6 @@ const button = {
|
|
|
32
32
|
type: "object",
|
|
33
33
|
objectFields: {
|
|
34
34
|
label: { type: "text" },
|
|
35
|
-
url: { type: "text" },
|
|
36
35
|
action,
|
|
37
36
|
variant: {
|
|
38
37
|
type: "select",
|
|
@@ -59,7 +58,6 @@ const button = {
|
|
|
59
58
|
};
|
|
60
59
|
const buttonDefaults = {
|
|
61
60
|
label: "Button",
|
|
62
|
-
url: "",
|
|
63
61
|
action: actionDefaults,
|
|
64
62
|
variant: "default",
|
|
65
63
|
size: "default",
|
|
@@ -101,9 +99,10 @@ const image = {
|
|
|
101
99
|
alt: { type: "text" }
|
|
102
100
|
}
|
|
103
101
|
};
|
|
104
|
-
const getPlaceholderImageUrl = (size, text = "Placeholder Image") =>
|
|
105
|
-
|
|
106
|
-
)}`;
|
|
102
|
+
const getPlaceholderImageUrl = (size, text = "Placeholder Image") => {
|
|
103
|
+
const [w, h] = size.split("x");
|
|
104
|
+
return `https://picsum.photos/seed/${encodeURIComponent(text)}/${w}/${h}`;
|
|
105
|
+
};
|
|
107
106
|
const image16x9Placeholder = {
|
|
108
107
|
alt: "16/9 aspect ratio accessible description of the image",
|
|
109
108
|
src: getPlaceholderImageUrl("1920x1080")
|
|
@@ -130,32 +129,6 @@ const images = {
|
|
|
130
129
|
},
|
|
131
130
|
defaultItemProps: image16x9Placeholder
|
|
132
131
|
};
|
|
133
|
-
const paddingLevel = {
|
|
134
|
-
type: "select",
|
|
135
|
-
options: [
|
|
136
|
-
{ label: "none", value: "none" },
|
|
137
|
-
{ label: "small", value: "small" },
|
|
138
|
-
{ label: "medium", value: "medium" },
|
|
139
|
-
{ label: "large", value: "large" }
|
|
140
|
-
],
|
|
141
|
-
ai: {
|
|
142
|
-
instructions: "Never select none as an option"
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
const padding = {
|
|
146
|
-
type: "object",
|
|
147
|
-
objectFields: {
|
|
148
|
-
top: paddingLevel,
|
|
149
|
-
bottom: paddingLevel
|
|
150
|
-
},
|
|
151
|
-
ai: {
|
|
152
|
-
exclude: true
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
const paddingDefaults = {
|
|
156
|
-
top: "medium",
|
|
157
|
-
bottom: "medium"
|
|
158
|
-
};
|
|
159
132
|
const heading = {
|
|
160
133
|
type: "text",
|
|
161
134
|
contentEditable: true
|
|
@@ -230,7 +203,7 @@ const fieldDefaults = {
|
|
|
230
203
|
type: "text",
|
|
231
204
|
name: "field_name"
|
|
232
205
|
};
|
|
233
|
-
const {
|
|
206
|
+
const { action: _buttonAction, ...formButtonConfig } = button.objectFields;
|
|
234
207
|
const form = {
|
|
235
208
|
type: "object",
|
|
236
209
|
objectFields: {
|
|
@@ -273,53 +246,9 @@ const formDefaults = {
|
|
|
273
246
|
icon: "move-right"
|
|
274
247
|
}
|
|
275
248
|
};
|
|
276
|
-
const sectionStyle = {
|
|
277
|
-
type: "select",
|
|
278
|
-
label: "Section Style",
|
|
279
|
-
options: [
|
|
280
|
-
{ label: "Default", value: "default" },
|
|
281
|
-
{ label: "Dark", value: "dark" },
|
|
282
|
-
{ label: "Muted", value: "muted" },
|
|
283
|
-
{ label: "Inverted", value: "inverted" },
|
|
284
|
-
{ label: "Custom", value: "custom" }
|
|
285
|
-
],
|
|
286
|
-
ai: {
|
|
287
|
-
instructions: "Match the section's background tone: use 'dark' for dark/black backgrounds, 'muted' for gray/subtle backgrounds, 'inverted' for full contrast reversal. Default for standard light backgrounds."
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
const sectionOverlay = {
|
|
291
|
-
type: "select",
|
|
292
|
-
label: "Overlay",
|
|
293
|
-
options: [
|
|
294
|
-
{ label: "None", value: "none" },
|
|
295
|
-
{ label: "Gradient Top", value: "gradient-top" },
|
|
296
|
-
{ label: "Gradient Bottom", value: "gradient-bottom" },
|
|
297
|
-
{ label: "Noise", value: "noise" }
|
|
298
|
-
],
|
|
299
|
-
ai: {
|
|
300
|
-
instructions: "Use gradient overlays when the section has a background image that needs text contrast. Use noise for subtle texture."
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
const backgroundColor = {
|
|
304
|
-
type: "text",
|
|
305
|
-
label: "Background Color",
|
|
306
|
-
ai: {
|
|
307
|
-
instructions: "Set a custom background color in oklch format (e.g. 'oklch(0.2 0.05 260)'). Only use when sectionStyle is 'custom'."
|
|
308
|
-
}
|
|
309
|
-
};
|
|
310
|
-
const backgroundImage = {
|
|
311
|
-
type: "text",
|
|
312
|
-
label: "Background Image URL",
|
|
313
|
-
ai: {
|
|
314
|
-
instructions: "URL for a full-width background image behind the section.",
|
|
315
|
-
stream: false
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
249
|
export {
|
|
319
250
|
action,
|
|
320
251
|
actionDefaults,
|
|
321
|
-
backgroundColor,
|
|
322
|
-
backgroundImage,
|
|
323
252
|
badge,
|
|
324
253
|
button,
|
|
325
254
|
buttons,
|
|
@@ -340,10 +269,5 @@ export {
|
|
|
340
269
|
image16x9Placeholder,
|
|
341
270
|
image1x1Placeholder,
|
|
342
271
|
image9x16Placeholder,
|
|
343
|
-
images
|
|
344
|
-
padding,
|
|
345
|
-
paddingDefaults,
|
|
346
|
-
paddingLevel,
|
|
347
|
-
sectionOverlay,
|
|
348
|
-
sectionStyle
|
|
272
|
+
images
|
|
349
273
|
};
|