@mission-studio/puck 1.0.5 → 1.0.16

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.
Files changed (40) hide show
  1. package/dist/ResponsiveToggleField-BihXsGIJ.d.mts +26 -0
  2. package/dist/ResponsiveToggleField-CfBKL5oY.d.ts +26 -0
  3. package/dist/chunk-A3QDUUOF.mjs +80 -0
  4. package/dist/chunk-D3L26TIT.mjs +76 -0
  5. package/dist/chunk-KV2RSRAM.mjs +114 -0
  6. package/dist/{chunk-R7TH6TWG.mjs → chunk-ML3AS3AY.mjs} +56 -84
  7. package/dist/{chunk-OZYZPWP7.mjs → chunk-SYXQQITG.mjs} +253 -287
  8. package/dist/config/server.d.mts +5 -0
  9. package/dist/config/server.d.ts +5 -0
  10. package/dist/config/server.js +2207 -0
  11. package/dist/config/server.mjs +133 -0
  12. package/dist/config-entry.js +334 -395
  13. package/dist/config-entry.mjs +5 -3
  14. package/dist/editor.d.mts +5 -2
  15. package/dist/editor.d.ts +5 -2
  16. package/dist/editor.js +271 -309
  17. package/dist/editor.mjs +10 -6
  18. package/dist/hooks/index.d.mts +3 -2
  19. package/dist/hooks/index.d.ts +3 -2
  20. package/dist/index.d.mts +7 -287
  21. package/dist/index.d.ts +7 -287
  22. package/dist/index.js +59 -92
  23. package/dist/index.mjs +20 -16
  24. package/dist/renderer.d.mts +289 -0
  25. package/dist/renderer.d.ts +289 -0
  26. package/dist/renderer.js +2162 -0
  27. package/dist/renderer.mjs +57 -0
  28. package/dist/resolve/index.d.mts +10 -0
  29. package/dist/resolve/index.d.ts +10 -0
  30. package/dist/resolve/index.js +202 -0
  31. package/dist/resolve/index.mjs +124 -0
  32. package/dist/styles.css +1 -1
  33. package/dist/types-D-CIduaE.d.mts +111 -0
  34. package/dist/types-D-CIduaE.d.ts +111 -0
  35. package/dist/typography-DwjKOx3F.d.mts +49 -0
  36. package/dist/typography-DwjKOx3F.d.ts +49 -0
  37. package/package.json +16 -1
  38. package/dist/ResponsiveToggleField-CVhKzDAT.d.mts +0 -183
  39. package/dist/ResponsiveToggleField-CVhKzDAT.d.ts +0 -183
  40. package/dist/chunk-TTKY3YGP.mjs +0 -262
package/dist/editor.mjs CHANGED
@@ -16,15 +16,12 @@ import {
16
16
  createSpacingField,
17
17
  createThemeableColorField,
18
18
  createTypographyField
19
- } from "./chunk-OZYZPWP7.mjs";
19
+ } from "./chunk-SYXQQITG.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,19 @@ import {
33
30
  getClosestBorderRadiusValue,
34
31
  getClosestSpacingValue,
35
32
  getFontSizeCSS,
33
+ spacingScale
34
+ } from "./chunk-A3QDUUOF.mjs";
35
+ import {
36
+ EntriesProvider,
37
+ ThemeProvider,
36
38
  getShadowCSS,
37
39
  shadowPresets,
38
- spacingScale,
39
40
  useEntries,
40
41
  useTheme
41
- } from "./chunk-TTKY3YGP.mjs";
42
+ } from "./chunk-KV2RSRAM.mjs";
43
+ import {
44
+ DEFAULT_THEME
45
+ } from "./chunk-D3L26TIT.mjs";
42
46
 
43
47
  // components/editor/TemplatesList.tsx
44
48
  import { usePuck } from "@measured/puck";
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Hook to send events to Google Tag Manager
3
- * Assumes GTM is initialized in the parent app via @next/third-parties/google
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).
4
5
  * @example
5
6
  * const sendEvent = useGtmEvent();
6
7
  * sendEvent('button_click', { text: 'Sign Up', href: '/signup' });
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Hook to send events to Google Tag Manager
3
- * Assumes GTM is initialized in the parent app via @next/third-parties/google
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).
4
5
  * @example
5
6
  * const sendEvent = useGtmEvent();
6
7
  * sendEvent('button_click', { text: 'Sign Up', href: '/signup' });
package/dist/index.d.mts CHANGED
@@ -1,287 +1,7 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as EntryBoundValue, T as ThemeableColorValue, C as ColorValue, R as ResponsiveVisibility } from './ResponsiveToggleField-CVhKzDAT.mjs';
3
- export { B as BorderRadiusPreset, d as ColorPreset, D as DEFAULT_THEME, F as FontFamilyPreset, f as FontSizePreset, g as FontWeightPreset, P as PageTheme, S as ShadowPreset, i as SpacingPreset, j as ThemeBorderKey, k as ThemeBorders, b as ThemeColorKey, l as ThemeColors, m as ThemeProvider, n as ThemeShadowKey, o as ThemeShadows, p as ThemeSpacing, q as ThemeSpacingKey, r as ThemeTypography, s as ThemeableBorderRadiusValue, t as ThemeableShadowValue, u as ThemeableSpacingValue, v as allColorPresets, w as borderRadiusScale, x as fontFamilies, y as fontSizes, z as fontWeights, A as getBorderRadiusCSS, G as getClosestBorderRadiusValue, H as getClosestSpacingValue, I as getFontSizeCSS, J as getShadowCSS, K as neutralColors, L as shadowPresets, M as spacingScale, N as useTheme } from './ResponsiveToggleField-CVhKzDAT.mjs';
4
- import { ReactNode } from 'react';
5
- import { PuckContext } from '@measured/puck';
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, T as ThemeProvider, u as useTheme } from './ResponsiveToggleField-BihXsGIJ.mjs';
3
+ export { P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, b as ThemeColorKey, c as ThemeColors, d as ThemeShadowKey, e as ThemeShadows, f as ThemeSpacing, g as ThemeSpacingKey, h as ThemeTypography, i as ThemeableBorderRadiusValue, j as ThemeableColorValue, k as ThemeableShadowValue, l as ThemeableSpacingValue } from './types-D-CIduaE.mjs';
4
+ 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';
5
+ import 'react/jsx-runtime';
6
+ import 'react';
7
+ import '@measured/puck';
package/dist/index.d.ts CHANGED
@@ -1,287 +1,7 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as EntryBoundValue, T as ThemeableColorValue, C as ColorValue, R as ResponsiveVisibility } from './ResponsiveToggleField-CVhKzDAT.js';
3
- export { B as BorderRadiusPreset, d as ColorPreset, D as DEFAULT_THEME, F as FontFamilyPreset, f as FontSizePreset, g as FontWeightPreset, P as PageTheme, S as ShadowPreset, i as SpacingPreset, j as ThemeBorderKey, k as ThemeBorders, b as ThemeColorKey, l as ThemeColors, m as ThemeProvider, n as ThemeShadowKey, o as ThemeShadows, p as ThemeSpacing, q as ThemeSpacingKey, r as ThemeTypography, s as ThemeableBorderRadiusValue, t as ThemeableShadowValue, u as ThemeableSpacingValue, v as allColorPresets, w as borderRadiusScale, x as fontFamilies, y as fontSizes, z as fontWeights, A as getBorderRadiusCSS, G as getClosestBorderRadiusValue, H as getClosestSpacingValue, I as getFontSizeCSS, J as getShadowCSS, K as neutralColors, L as shadowPresets, M as spacingScale, N as useTheme } from './ResponsiveToggleField-CVhKzDAT.js';
4
- import { ReactNode } from 'react';
5
- import { PuckContext } from '@measured/puck';
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.js';
2
+ export { D as DEFAULT_THEME, T as ThemeProvider, u as useTheme } from './ResponsiveToggleField-CfBKL5oY.js';
3
+ export { P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, b as ThemeColorKey, c as ThemeColors, d as ThemeShadowKey, e as ThemeShadows, f as ThemeSpacing, g as ThemeSpacingKey, h as ThemeTypography, i as ThemeableBorderRadiusValue, j as ThemeableColorValue, k as ThemeableShadowValue, l as ThemeableSpacingValue } from './types-D-CIduaE.js';
4
+ 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.js';
5
+ import 'react/jsx-runtime';
6
+ import 'react';
7
+ import '@measured/puck';