@mission-studio/puck 1.0.3 → 1.0.15
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/{ResponsiveToggleField-CVhKzDAT.d.mts → ResponsiveToggleField-BGofgB3u.d.mts} +1 -49
- package/dist/{ResponsiveToggleField-CVhKzDAT.d.ts → ResponsiveToggleField-BGofgB3u.d.ts} +1 -49
- package/dist/chunk-A3QDUUOF.mjs +80 -0
- package/dist/{chunk-F47J7QDM.mjs → chunk-HHHD5TX2.mjs} +62 -142
- package/dist/{chunk-OZYZPWP7.mjs → chunk-JD6CULMT.mjs} +248 -284
- package/dist/chunk-QSWQDR6M.mjs +67 -0
- package/dist/{chunk-TTKY3YGP.mjs → chunk-XRKFMCSS.mjs} +1 -79
- package/dist/config-entry.js +335 -394
- package/dist/config-entry.mjs +5 -3
- package/dist/editor.d.mts +3 -2
- package/dist/editor.d.ts +3 -2
- package/dist/editor.js +271 -309
- package/dist/editor.mjs +8 -6
- package/dist/hooks/index.d.mts +33 -0
- package/dist/hooks/index.d.ts +33 -0
- package/dist/hooks/index.js +94 -0
- package/dist/hooks/index.mjs +8 -0
- package/dist/index.d.mts +6 -287
- package/dist/index.d.ts +6 -287
- package/dist/index.js +60 -91
- package/dist/index.mjs +18 -15
- package/dist/renderer.d.mts +287 -0
- package/dist/renderer.d.ts +287 -0
- package/dist/renderer.js +2162 -0
- package/dist/renderer.mjs +55 -0
- package/dist/styles.css +1 -1
- package/dist/typography-DwjKOx3F.d.mts +49 -0
- package/dist/typography-DwjKOx3F.d.ts +49 -0
- package/package.json +11 -1
package/dist/editor.mjs
CHANGED
|
@@ -16,15 +16,12 @@ import {
|
|
|
16
16
|
createSpacingField,
|
|
17
17
|
createThemeableColorField,
|
|
18
18
|
createTypographyField
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JD6CULMT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
allColorPresets,
|
|
22
22
|
neutralColors
|
|
23
23
|
} from "./chunk-UJTTHDZA.mjs";
|
|
24
24
|
import {
|
|
25
|
-
DEFAULT_THEME,
|
|
26
|
-
EntriesProvider,
|
|
27
|
-
ThemeProvider,
|
|
28
25
|
borderRadiusScale,
|
|
29
26
|
fontFamilies,
|
|
30
27
|
fontSizes,
|
|
@@ -33,12 +30,17 @@ import {
|
|
|
33
30
|
getClosestBorderRadiusValue,
|
|
34
31
|
getClosestSpacingValue,
|
|
35
32
|
getFontSizeCSS,
|
|
33
|
+
spacingScale
|
|
34
|
+
} from "./chunk-A3QDUUOF.mjs";
|
|
35
|
+
import {
|
|
36
|
+
DEFAULT_THEME,
|
|
37
|
+
EntriesProvider,
|
|
38
|
+
ThemeProvider,
|
|
36
39
|
getShadowCSS,
|
|
37
40
|
shadowPresets,
|
|
38
|
-
spacingScale,
|
|
39
41
|
useEntries,
|
|
40
42
|
useTheme
|
|
41
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XRKFMCSS.mjs";
|
|
42
44
|
|
|
43
45
|
// components/editor/TemplatesList.tsx
|
|
44
46
|
import { usePuck } from "@measured/puck";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to fire Google Tag Manager events via window.gtag.
|
|
3
|
+
* Framework-agnostic — works in Next.js, Astro, or any setup that loads GTM
|
|
4
|
+
* and exposes window.gtag. Silently no-ops if gtag is not present (e.g. SSR).
|
|
5
|
+
* @example
|
|
6
|
+
* const sendEvent = useGtmEvent();
|
|
7
|
+
* sendEvent('button_click', { text: 'Sign Up', href: '/signup' });
|
|
8
|
+
*/
|
|
9
|
+
declare function useGtmEvent(): (eventName: string, data?: Record<string, any>) => void;
|
|
10
|
+
declare global {
|
|
11
|
+
interface Window {
|
|
12
|
+
gtag?: (...args: any[]) => void;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* UTM parameter object
|
|
18
|
+
*/
|
|
19
|
+
interface UtmParams {
|
|
20
|
+
source?: string;
|
|
21
|
+
medium?: string;
|
|
22
|
+
campaign?: string;
|
|
23
|
+
content?: string;
|
|
24
|
+
term?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Hook to capture and persist UTM parameters from URL
|
|
28
|
+
* Stores in sessionStorage so they persist across navigation
|
|
29
|
+
* @returns Current UTM parameters
|
|
30
|
+
*/
|
|
31
|
+
declare function useUtmParams(): UtmParams;
|
|
32
|
+
|
|
33
|
+
export { type UtmParams, useGtmEvent, useUtmParams };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to fire Google Tag Manager events via window.gtag.
|
|
3
|
+
* Framework-agnostic — works in Next.js, Astro, or any setup that loads GTM
|
|
4
|
+
* and exposes window.gtag. Silently no-ops if gtag is not present (e.g. SSR).
|
|
5
|
+
* @example
|
|
6
|
+
* const sendEvent = useGtmEvent();
|
|
7
|
+
* sendEvent('button_click', { text: 'Sign Up', href: '/signup' });
|
|
8
|
+
*/
|
|
9
|
+
declare function useGtmEvent(): (eventName: string, data?: Record<string, any>) => void;
|
|
10
|
+
declare global {
|
|
11
|
+
interface Window {
|
|
12
|
+
gtag?: (...args: any[]) => void;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* UTM parameter object
|
|
18
|
+
*/
|
|
19
|
+
interface UtmParams {
|
|
20
|
+
source?: string;
|
|
21
|
+
medium?: string;
|
|
22
|
+
campaign?: string;
|
|
23
|
+
content?: string;
|
|
24
|
+
term?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Hook to capture and persist UTM parameters from URL
|
|
28
|
+
* Stores in sessionStorage so they persist across navigation
|
|
29
|
+
* @returns Current UTM parameters
|
|
30
|
+
*/
|
|
31
|
+
declare function useUtmParams(): UtmParams;
|
|
32
|
+
|
|
33
|
+
export { type UtmParams, useGtmEvent, useUtmParams };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// hooks/index.ts
|
|
21
|
+
var hooks_exports = {};
|
|
22
|
+
__export(hooks_exports, {
|
|
23
|
+
useGtmEvent: () => useGtmEvent,
|
|
24
|
+
useUtmParams: () => useUtmParams
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(hooks_exports);
|
|
27
|
+
|
|
28
|
+
// hooks/useGtmEvent.ts
|
|
29
|
+
function useGtmEvent() {
|
|
30
|
+
return (eventName, data) => {
|
|
31
|
+
if (typeof window === "undefined") return;
|
|
32
|
+
if (typeof window.gtag === "function") {
|
|
33
|
+
window.gtag("event", eventName, data || {});
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// hooks/useUtmParams.ts
|
|
39
|
+
var import_react = require("react");
|
|
40
|
+
function useUtmParams() {
|
|
41
|
+
const [utmParams, setUtmParams] = (0, import_react.useState)({});
|
|
42
|
+
(0, import_react.useEffect)(() => {
|
|
43
|
+
if (typeof window === "undefined") return;
|
|
44
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
45
|
+
const source = urlParams.get("utm_source");
|
|
46
|
+
const medium = urlParams.get("utm_medium");
|
|
47
|
+
const campaign = urlParams.get("utm_campaign");
|
|
48
|
+
const content = urlParams.get("utm_content");
|
|
49
|
+
const term = urlParams.get("utm_term");
|
|
50
|
+
const params = {};
|
|
51
|
+
if (source) {
|
|
52
|
+
params.source = source;
|
|
53
|
+
sessionStorage.setItem("utm_source", source);
|
|
54
|
+
} else {
|
|
55
|
+
const stored = sessionStorage.getItem("utm_source");
|
|
56
|
+
if (stored) params.source = stored;
|
|
57
|
+
}
|
|
58
|
+
if (medium) {
|
|
59
|
+
params.medium = medium;
|
|
60
|
+
sessionStorage.setItem("utm_medium", medium);
|
|
61
|
+
} else {
|
|
62
|
+
const stored = sessionStorage.getItem("utm_medium");
|
|
63
|
+
if (stored) params.medium = stored;
|
|
64
|
+
}
|
|
65
|
+
if (campaign) {
|
|
66
|
+
params.campaign = campaign;
|
|
67
|
+
sessionStorage.setItem("utm_campaign", campaign);
|
|
68
|
+
} else {
|
|
69
|
+
const stored = sessionStorage.getItem("utm_campaign");
|
|
70
|
+
if (stored) params.campaign = stored;
|
|
71
|
+
}
|
|
72
|
+
if (content) {
|
|
73
|
+
params.content = content;
|
|
74
|
+
sessionStorage.setItem("utm_content", content);
|
|
75
|
+
} else {
|
|
76
|
+
const stored = sessionStorage.getItem("utm_content");
|
|
77
|
+
if (stored) params.content = stored;
|
|
78
|
+
}
|
|
79
|
+
if (term) {
|
|
80
|
+
params.term = term;
|
|
81
|
+
sessionStorage.setItem("utm_term", term);
|
|
82
|
+
} else {
|
|
83
|
+
const stored = sessionStorage.getItem("utm_term");
|
|
84
|
+
if (stored) params.term = stored;
|
|
85
|
+
}
|
|
86
|
+
setUtmParams(params);
|
|
87
|
+
}, []);
|
|
88
|
+
return utmParams;
|
|
89
|
+
}
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
92
|
+
useGtmEvent,
|
|
93
|
+
useUtmParams
|
|
94
|
+
});
|
package/dist/index.d.mts
CHANGED
|
@@ -1,287 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { B as BorderRadiusPreset,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
type HeadingProps = {
|
|
8
|
-
text?: EntryBoundValue<string> | string;
|
|
9
|
-
level?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
10
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
11
|
-
weight?: "normal" | "medium" | "semibold" | "bold" | "extrabold";
|
|
12
|
-
color?: ThemeableColorValue | ColorValue | string;
|
|
13
|
-
align?: "left" | "center" | "right";
|
|
14
|
-
letterSpacing?: "tight" | "normal" | "wide";
|
|
15
|
-
lineHeight?: "tight" | "normal" | "relaxed";
|
|
16
|
-
id?: string;
|
|
17
|
-
puck?: unknown;
|
|
18
|
-
editMode?: boolean;
|
|
19
|
-
};
|
|
20
|
-
declare function Heading({ text, level, size, weight, color, align, letterSpacing, lineHeight, id, }: HeadingProps): react_jsx_runtime.JSX.Element | null;
|
|
21
|
-
|
|
22
|
-
type ParagraphProps = {
|
|
23
|
-
text?: EntryBoundValue<string> | string;
|
|
24
|
-
size?: "sm" | "base" | "lg" | "xl";
|
|
25
|
-
weight?: "normal" | "medium" | "semibold";
|
|
26
|
-
color?: ThemeableColorValue | ColorValue | string;
|
|
27
|
-
align?: "left" | "center" | "right" | "justify";
|
|
28
|
-
lineHeight?: "tight" | "normal" | "relaxed" | "loose";
|
|
29
|
-
maxWidth?: string;
|
|
30
|
-
id?: string;
|
|
31
|
-
puck?: unknown;
|
|
32
|
-
editMode?: boolean;
|
|
33
|
-
};
|
|
34
|
-
declare function Paragraph({ text, size, weight, color, align, lineHeight, maxWidth, id, }: ParagraphProps): react_jsx_runtime.JSX.Element | null;
|
|
35
|
-
|
|
36
|
-
type ButtonProps = {
|
|
37
|
-
text?: EntryBoundValue<string> | string;
|
|
38
|
-
href?: string;
|
|
39
|
-
target?: "_self" | "_blank";
|
|
40
|
-
variant?: "solid" | "outline" | "ghost" | "link";
|
|
41
|
-
size?: "sm" | "md" | "lg" | "xl";
|
|
42
|
-
color?: ThemeableColorValue | ColorValue | string;
|
|
43
|
-
textColor?: ThemeableColorValue | ColorValue | string;
|
|
44
|
-
borderRadius?: "none" | "sm" | "md" | "lg" | "full";
|
|
45
|
-
fullWidth?: boolean;
|
|
46
|
-
align?: "left" | "center" | "right";
|
|
47
|
-
id?: string;
|
|
48
|
-
puck?: unknown;
|
|
49
|
-
editMode?: boolean;
|
|
50
|
-
};
|
|
51
|
-
declare function Button({ text, href, target, variant, size, color, textColor, borderRadius, fullWidth, align, id, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
52
|
-
|
|
53
|
-
type ImageProps = {
|
|
54
|
-
src?: EntryBoundValue<string> | string;
|
|
55
|
-
alt?: string;
|
|
56
|
-
width?: "auto" | "full" | "sm" | "md" | "lg" | "xl";
|
|
57
|
-
aspectRatio?: "auto" | "1:1" | "4:3" | "16:9" | "21:9";
|
|
58
|
-
objectFit?: "contain" | "cover" | "fill" | "none";
|
|
59
|
-
borderRadius?: "none" | "sm" | "md" | "lg" | "xl" | "full";
|
|
60
|
-
shadow?: "none" | "sm" | "md" | "lg" | "xl";
|
|
61
|
-
align?: "left" | "center" | "right";
|
|
62
|
-
caption?: EntryBoundValue<string> | string;
|
|
63
|
-
captionColor?: ThemeableColorValue | ColorValue | string;
|
|
64
|
-
id?: string;
|
|
65
|
-
puck?: unknown;
|
|
66
|
-
editMode?: boolean;
|
|
67
|
-
};
|
|
68
|
-
declare function Image({ src, alt, width, aspectRatio, objectFit, borderRadius, shadow, align, caption, captionColor, id, }: ImageProps): react_jsx_runtime.JSX.Element;
|
|
69
|
-
|
|
70
|
-
type CarouselImage = {
|
|
71
|
-
src: string;
|
|
72
|
-
alt?: string;
|
|
73
|
-
};
|
|
74
|
-
type ImageCarouselProps = {
|
|
75
|
-
images?: CarouselImage[];
|
|
76
|
-
aspectRatio?: "16:9" | "4:3" | "1:1" | "21:9";
|
|
77
|
-
borderRadius?: "none" | "sm" | "md" | "lg";
|
|
78
|
-
showDots?: boolean;
|
|
79
|
-
showArrows?: boolean;
|
|
80
|
-
arrowColor?: ThemeableColorValue | ColorValue | string;
|
|
81
|
-
dotColor?: ThemeableColorValue | ColorValue | string;
|
|
82
|
-
autoPlay?: boolean;
|
|
83
|
-
autoPlayInterval?: number;
|
|
84
|
-
id?: string;
|
|
85
|
-
puck?: unknown;
|
|
86
|
-
editMode?: boolean;
|
|
87
|
-
};
|
|
88
|
-
declare function ImageCarousel({ images, aspectRatio, borderRadius, showDots, showArrows, arrowColor, dotColor, id, }: ImageCarouselProps): react_jsx_runtime.JSX.Element;
|
|
89
|
-
|
|
90
|
-
type VideoEmbedProps = {
|
|
91
|
-
url?: EntryBoundValue<string> | string;
|
|
92
|
-
aspectRatio?: "16:9" | "4:3" | "1:1" | "21:9";
|
|
93
|
-
borderRadius?: "none" | "sm" | "md" | "lg";
|
|
94
|
-
autoplay?: boolean;
|
|
95
|
-
muted?: boolean;
|
|
96
|
-
loop?: boolean;
|
|
97
|
-
align?: "left" | "center" | "right";
|
|
98
|
-
maxWidth?: "sm" | "md" | "lg" | "xl" | "full";
|
|
99
|
-
id?: string;
|
|
100
|
-
puck?: unknown;
|
|
101
|
-
editMode?: boolean;
|
|
102
|
-
};
|
|
103
|
-
declare function VideoEmbed({ url, aspectRatio, borderRadius, autoplay, muted, loop, align, maxWidth, id, }: VideoEmbedProps): react_jsx_runtime.JSX.Element;
|
|
104
|
-
|
|
105
|
-
type IconProps = {
|
|
106
|
-
name?: string;
|
|
107
|
-
size?: "sm" | "md" | "lg" | "xl" | "2xl";
|
|
108
|
-
color?: ThemeableColorValue | ColorValue | string;
|
|
109
|
-
align?: "left" | "center" | "right";
|
|
110
|
-
id?: string;
|
|
111
|
-
puck?: unknown;
|
|
112
|
-
editMode?: boolean;
|
|
113
|
-
};
|
|
114
|
-
declare function Icon({ name, size, color, align, id, }: IconProps): react_jsx_runtime.JSX.Element;
|
|
115
|
-
declare const availableIcons: string[];
|
|
116
|
-
|
|
117
|
-
type PuckProps = {
|
|
118
|
-
puck?: PuckContext;
|
|
119
|
-
editMode?: boolean;
|
|
120
|
-
id?: string;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
type SectionProps = {
|
|
124
|
-
children?: ReactNode;
|
|
125
|
-
verticalPadding?: number;
|
|
126
|
-
horizontalPadding?: number;
|
|
127
|
-
gap?: number;
|
|
128
|
-
backgroundColor?: ThemeableColorValue | ColorValue | string;
|
|
129
|
-
backgroundImage?: string;
|
|
130
|
-
shadow?: string;
|
|
131
|
-
borderRadius?: number;
|
|
132
|
-
contentMaxWidth?: string;
|
|
133
|
-
anchorLink?: string;
|
|
134
|
-
visibility?: ResponsiveVisibility;
|
|
135
|
-
} & PuckProps;
|
|
136
|
-
declare function Section({ children: _children, verticalPadding, horizontalPadding, gap, backgroundColor, backgroundImage, shadow, borderRadius, contentMaxWidth, anchorLink, visibility, puck, }: SectionProps): react_jsx_runtime.JSX.Element;
|
|
137
|
-
|
|
138
|
-
type ContainerProps = {
|
|
139
|
-
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
140
|
-
padding?: "none" | "sm" | "md" | "lg" | "xl";
|
|
141
|
-
paddingX?: "none" | "sm" | "md" | "lg" | "xl";
|
|
142
|
-
paddingY?: "none" | "sm" | "md" | "lg" | "xl";
|
|
143
|
-
backgroundColor?: ThemeableColorValue | ColorValue | string;
|
|
144
|
-
centered?: boolean;
|
|
145
|
-
} & PuckProps;
|
|
146
|
-
declare function Container({ maxWidth, padding, paddingX, paddingY, backgroundColor, centered, id, puck, }: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
147
|
-
|
|
148
|
-
type ColumnsProps = {
|
|
149
|
-
columns?: 2 | 3 | 4;
|
|
150
|
-
gap?: "none" | "sm" | "md" | "lg" | "xl";
|
|
151
|
-
verticalAlign?: "top" | "center" | "bottom" | "stretch";
|
|
152
|
-
stackOnMobile?: boolean;
|
|
153
|
-
} & PuckProps;
|
|
154
|
-
declare function Columns({ columns, gap, verticalAlign, stackOnMobile, id, puck, }: ColumnsProps): react_jsx_runtime.JSX.Element;
|
|
155
|
-
|
|
156
|
-
type CardProps = {
|
|
157
|
-
backgroundColor?: ThemeableColorValue | ColorValue | string;
|
|
158
|
-
borderColor?: ThemeableColorValue | ColorValue | string;
|
|
159
|
-
borderWidth?: "none" | "thin" | "medium" | "thick";
|
|
160
|
-
borderRadius?: "none" | "sm" | "md" | "lg" | "xl";
|
|
161
|
-
shadow?: "none" | "sm" | "md" | "lg" | "xl";
|
|
162
|
-
padding?: "none" | "sm" | "md" | "lg" | "xl";
|
|
163
|
-
} & PuckProps;
|
|
164
|
-
declare function Card({ backgroundColor, borderColor, borderWidth, borderRadius, shadow, padding, id, puck, }: CardProps): react_jsx_runtime.JSX.Element;
|
|
165
|
-
|
|
166
|
-
type DividerProps = {
|
|
167
|
-
style?: "solid" | "dashed" | "dotted";
|
|
168
|
-
thickness?: "thin" | "medium" | "thick";
|
|
169
|
-
color?: ThemeableColorValue | ColorValue | string;
|
|
170
|
-
width?: "full" | "3/4" | "1/2" | "1/4";
|
|
171
|
-
align?: "left" | "center" | "right";
|
|
172
|
-
spacing?: "sm" | "md" | "lg" | "xl";
|
|
173
|
-
id?: string;
|
|
174
|
-
puck?: unknown;
|
|
175
|
-
editMode?: boolean;
|
|
176
|
-
};
|
|
177
|
-
declare function Divider({ style: lineStyle, thickness, color, width, align, spacing, id, }: DividerProps): react_jsx_runtime.JSX.Element;
|
|
178
|
-
|
|
179
|
-
type SpacerProps = {
|
|
180
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
181
|
-
id?: string;
|
|
182
|
-
puck?: unknown;
|
|
183
|
-
editMode?: boolean;
|
|
184
|
-
};
|
|
185
|
-
declare function Spacer({ size, id }: SpacerProps): react_jsx_runtime.JSX.Element;
|
|
186
|
-
|
|
187
|
-
type TextBlockProps = {
|
|
188
|
-
title?: EntryBoundValue<string> | string;
|
|
189
|
-
subtitle?: EntryBoundValue<string> | string;
|
|
190
|
-
body?: EntryBoundValue<string> | string;
|
|
191
|
-
alignment?: "left" | "center" | "right";
|
|
192
|
-
textSize?: "small" | "medium-small" | "medium" | "large" | "xlarge";
|
|
193
|
-
textColor?: ThemeableColorValue | ColorValue | string;
|
|
194
|
-
subtitleBodyColor?: ThemeableColorValue | ColorValue | string;
|
|
195
|
-
useGradientText?: boolean;
|
|
196
|
-
gradientColor1?: ThemeableColorValue | ColorValue | string;
|
|
197
|
-
gradientColor2?: ThemeableColorValue | ColorValue | string;
|
|
198
|
-
anchorLink?: string;
|
|
199
|
-
puck?: unknown;
|
|
200
|
-
editMode?: boolean;
|
|
201
|
-
id?: string;
|
|
202
|
-
};
|
|
203
|
-
declare function TextBlock({ title, subtitle, body, alignment, textSize, textColor, subtitleBodyColor, useGradientText, gradientColor1, gradientColor2, anchorLink, }: TextBlockProps): react_jsx_runtime.JSX.Element;
|
|
204
|
-
|
|
205
|
-
type CustomImageProps = {
|
|
206
|
-
image?: string;
|
|
207
|
-
alt?: string;
|
|
208
|
-
maxWidth?: number;
|
|
209
|
-
alignment?: "left" | "center" | "right";
|
|
210
|
-
fitContent?: boolean;
|
|
211
|
-
} & PuckProps;
|
|
212
|
-
declare function CustomImage({ image, alt, maxWidth, alignment, fitContent, }: CustomImageProps): react_jsx_runtime.JSX.Element;
|
|
213
|
-
|
|
214
|
-
type Feature$1 = {
|
|
215
|
-
icon?: string;
|
|
216
|
-
image?: string;
|
|
217
|
-
title?: string;
|
|
218
|
-
description?: string;
|
|
219
|
-
};
|
|
220
|
-
type FeaturesListProps = {
|
|
221
|
-
features?: Feature$1[];
|
|
222
|
-
align?: "left" | "center" | "right";
|
|
223
|
-
size?: "small" | "medium" | "large";
|
|
224
|
-
iconColor?: string;
|
|
225
|
-
anchorLink?: string;
|
|
226
|
-
} & Record<string, unknown>;
|
|
227
|
-
declare function FeaturesList({ features, align, size, iconColor, anchorLink, }: FeaturesListProps): react_jsx_runtime.JSX.Element;
|
|
228
|
-
|
|
229
|
-
type Feature = {
|
|
230
|
-
icon?: string;
|
|
231
|
-
image?: string;
|
|
232
|
-
title?: string;
|
|
233
|
-
description?: string;
|
|
234
|
-
};
|
|
235
|
-
type FeatureGridProps = {
|
|
236
|
-
heading?: string;
|
|
237
|
-
description?: string;
|
|
238
|
-
features?: Feature[];
|
|
239
|
-
columns?: 2 | 3 | 4;
|
|
240
|
-
align?: "left" | "center" | "right";
|
|
241
|
-
size?: "small" | "medium" | "large";
|
|
242
|
-
iconColor?: string;
|
|
243
|
-
textColor?: string;
|
|
244
|
-
anchorLink?: string;
|
|
245
|
-
} & Record<string, unknown>;
|
|
246
|
-
declare function FeatureGrid({ heading, description, features, columns, align, size, iconColor, textColor, anchorLink, }: FeatureGridProps): react_jsx_runtime.JSX.Element;
|
|
247
|
-
|
|
248
|
-
type FooterProps = {
|
|
249
|
-
logo?: string;
|
|
250
|
-
copyright?: string;
|
|
251
|
-
backgroundColor?: string;
|
|
252
|
-
textColor?: string;
|
|
253
|
-
facebookUrl?: string;
|
|
254
|
-
instagramUrl?: string;
|
|
255
|
-
twitterUrl?: string;
|
|
256
|
-
tiktokUrl?: string;
|
|
257
|
-
} & Record<string, unknown> & PuckProps;
|
|
258
|
-
declare function Footer({ logo, copyright, backgroundColor, textColor, facebookUrl, instagramUrl, twitterUrl, puck, }: FooterProps): react_jsx_runtime.JSX.Element;
|
|
259
|
-
|
|
260
|
-
type NavItem = {
|
|
261
|
-
name: string;
|
|
262
|
-
url: string;
|
|
263
|
-
linkType?: "internal" | "external" | "scrollTo";
|
|
264
|
-
};
|
|
265
|
-
type TopbarProps = {
|
|
266
|
-
logo?: string;
|
|
267
|
-
logoUrl?: string;
|
|
268
|
-
navItems?: NavItem[];
|
|
269
|
-
backgroundColor?: string;
|
|
270
|
-
textColor?: string;
|
|
271
|
-
maxWidth?: string;
|
|
272
|
-
} & Record<string, unknown> & PuckProps;
|
|
273
|
-
declare function Topbar({ logo, logoUrl, navItems, backgroundColor, textColor, maxWidth, puck, }: TopbarProps): react_jsx_runtime.JSX.Element;
|
|
274
|
-
|
|
275
|
-
type PopupProps = {
|
|
276
|
-
ctaText?: string;
|
|
277
|
-
buttonColor?: string;
|
|
278
|
-
textColor?: string;
|
|
279
|
-
icon?: string;
|
|
280
|
-
iconPosition?: "left" | "right";
|
|
281
|
-
size?: "small" | "medium" | "large";
|
|
282
|
-
width?: "small" | "medium" | "large";
|
|
283
|
-
textLink?: boolean;
|
|
284
|
-
} & Record<string, unknown> & PuckProps;
|
|
285
|
-
declare function Popup({ ctaText, buttonColor, textColor, icon, iconPosition, size, width, textLink, puck, }: PopupProps): react_jsx_runtime.JSX.Element;
|
|
286
|
-
|
|
287
|
-
export { Button, type ButtonProps, Card, type CardProps, type CarouselImage, Columns, type ColumnsProps, Container, type ContainerProps, CustomImage, type CustomImageProps, Divider, type DividerProps, FeatureGrid, type FeatureGridProps, FeaturesList, type FeaturesListProps, Footer, type FooterProps, Heading, type HeadingProps, Icon, type IconProps, Image, ImageCarousel, type ImageCarouselProps, type ImageProps, Paragraph, type ParagraphProps, Popup, type PopupProps, Section, type SectionProps, Spacer, type SpacerProps, TextBlock, type TextBlockProps, ThemeableColorValue, Topbar, type TopbarProps, VideoEmbed, type VideoEmbedProps, availableIcons };
|
|
1
|
+
export { Button, ButtonProps, Card, CardProps, CarouselImage, Columns, ColumnsProps, Container, ContainerProps, CustomImage, CustomImageProps, Divider, DividerProps, FeatureGrid, FeatureGridProps, FeaturesList, FeaturesListProps, Footer, FooterProps, Heading, HeadingProps, Icon, IconProps, Image, ImageCarousel, ImageCarouselProps, ImageProps, Paragraph, ParagraphProps, Popup, PopupProps, Section, SectionProps, Spacer, SpacerProps, TextBlock, TextBlockProps, Topbar, TopbarProps, VideoEmbed, VideoEmbedProps, availableIcons } from './renderer.mjs';
|
|
2
|
+
export { D as DEFAULT_THEME, P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, b as ThemeColorKey, c as ThemeColors, d as ThemeProvider, e as ThemeShadowKey, f as ThemeShadows, g as ThemeSpacing, h as ThemeSpacingKey, i as ThemeTypography, j as ThemeableBorderRadiusValue, k as ThemeableColorValue, l as ThemeableShadowValue, m as ThemeableSpacingValue, u as useTheme } from './ResponsiveToggleField-BGofgB3u.mjs';
|
|
3
|
+
export { B as BorderRadiusPreset, C as ColorPreset, F as FontFamilyPreset, a as FontSizePreset, b as FontWeightPreset, S as ShadowPreset, c as SpacingPreset, d as allColorPresets, e as borderRadiusScale, f as fontFamilies, g as fontSizes, h as fontWeights, i as getBorderRadiusCSS, j as getClosestBorderRadiusValue, k as getClosestSpacingValue, l as getFontSizeCSS, m as getShadowCSS, n as neutralColors, s as shadowPresets, o as spacingScale } from './typography-DwjKOx3F.mjs';
|
|
4
|
+
import 'react/jsx-runtime';
|
|
5
|
+
import 'react';
|
|
6
|
+
import '@measured/puck';
|