@mission-studio/puck 1.0.20 → 1.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/Popup-BlNJZyB6.d.ts +270 -0
- package/dist/Popup-llKrR-vO.d.mts +270 -0
- package/dist/ResponsiveToggleField-65CqZEK-.d.mts +10 -0
- package/dist/ResponsiveToggleField-QCve94L_.d.ts +10 -0
- package/dist/chunk-KER4VXRB.mjs +61 -0
- package/dist/{chunk-X6VGLL5Y.mjs → chunk-MWW5LYLN.mjs} +182 -222
- package/dist/{chunk-A2J2E524.mjs → chunk-WFLVAZV2.mjs} +67 -3
- package/dist/components/page/astro/index.d.mts +34 -0
- package/dist/components/page/astro/index.d.ts +34 -0
- package/dist/components/page/astro/index.js +2126 -0
- package/dist/components/page/astro/index.mjs +51 -0
- package/dist/config/server.js +166 -181
- package/dist/config/server.mjs +28 -53
- package/dist/config-entry.js +53 -31
- package/dist/config-entry.mjs +5 -5
- package/dist/{ResponsiveToggleField-CfBKL5oY.d.ts → defaults-j55hBQHu.d.mts} +2 -8
- package/dist/{ResponsiveToggleField-BihXsGIJ.d.mts → defaults-z8Ft2j5r.d.ts} +2 -8
- package/dist/editor.d.mts +5 -4
- package/dist/editor.d.ts +5 -4
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +53 -31
- package/dist/index.mjs +5 -5
- package/dist/renderer.d.mts +13 -269
- package/dist/renderer.d.ts +13 -269
- package/dist/renderer.js +53 -31
- package/dist/renderer.mjs +5 -5
- package/dist/resolve/index.d.mts +1 -1
- package/dist/resolve/index.d.ts +1 -1
- package/dist/{types-D-CIduaE.d.mts → types-HQ6hIbYr.d.mts} +1 -1
- package/dist/{types-D-CIduaE.d.ts → types-HQ6hIbYr.d.ts} +1 -1
- package/package.json +6 -1
package/dist/config/server.mjs
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Heading,
|
|
3
|
+
Paragraph
|
|
4
|
+
} from "../chunk-KER4VXRB.mjs";
|
|
1
5
|
import {
|
|
2
6
|
Button,
|
|
3
7
|
Card,
|
|
@@ -11,48 +15,19 @@ import {
|
|
|
11
15
|
Icon,
|
|
12
16
|
Image,
|
|
13
17
|
ImageCarousel,
|
|
14
|
-
Paragraph,
|
|
15
18
|
Popup,
|
|
16
19
|
Section,
|
|
17
20
|
Spacer,
|
|
18
21
|
TextBlock,
|
|
19
22
|
Topbar,
|
|
20
|
-
VideoEmbed
|
|
21
|
-
|
|
22
|
-
} from "../chunk-X6VGLL5Y.mjs";
|
|
23
|
+
VideoEmbed
|
|
24
|
+
} from "../chunk-MWW5LYLN.mjs";
|
|
23
25
|
import "../chunk-PJXZC564.mjs";
|
|
24
|
-
import "../chunk-C6V3YUPF.mjs";
|
|
25
26
|
import "../chunk-QSWQDR6M.mjs";
|
|
26
|
-
|
|
27
|
-
// components/page/astro/Heading.tsx
|
|
28
|
-
import { jsx } from "react/jsx-runtime";
|
|
29
|
-
function Heading({
|
|
30
|
-
text,
|
|
31
|
-
level = "h2",
|
|
32
|
-
size = "2xl",
|
|
33
|
-
weight = "bold",
|
|
34
|
-
color = "rgba(0, 0, 0, 1)",
|
|
35
|
-
align = "left",
|
|
36
|
-
letterSpacing = "normal",
|
|
37
|
-
lineHeight = "tight",
|
|
38
|
-
id
|
|
39
|
-
}) {
|
|
40
|
-
const resolvedText = text || "";
|
|
41
|
-
const Tag = level;
|
|
42
|
-
const style = getHeadingStyle({
|
|
43
|
-
size,
|
|
44
|
-
weight,
|
|
45
|
-
color,
|
|
46
|
-
align,
|
|
47
|
-
letterSpacing,
|
|
48
|
-
lineHeight
|
|
49
|
-
});
|
|
50
|
-
if (!resolvedText) return null;
|
|
51
|
-
return /* @__PURE__ */ jsx(Tag, { id, style, children: resolvedText });
|
|
52
|
-
}
|
|
27
|
+
import "../chunk-C6V3YUPF.mjs";
|
|
53
28
|
|
|
54
29
|
// config/server.tsx
|
|
55
|
-
import { jsx
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
56
31
|
var config = {
|
|
57
32
|
categories: {
|
|
58
33
|
typography: {
|
|
@@ -94,64 +69,64 @@ var config = {
|
|
|
94
69
|
},
|
|
95
70
|
components: {
|
|
96
71
|
Heading: {
|
|
97
|
-
render: (props) => /* @__PURE__ */
|
|
72
|
+
render: (props) => /* @__PURE__ */ jsx(Heading, { ...props })
|
|
98
73
|
},
|
|
99
74
|
Paragraph: {
|
|
100
|
-
render: (props) => /* @__PURE__ */
|
|
75
|
+
render: (props) => /* @__PURE__ */ jsx(Paragraph, { ...props })
|
|
101
76
|
},
|
|
102
77
|
Button: {
|
|
103
|
-
render: (props) => /* @__PURE__ */
|
|
78
|
+
render: (props) => /* @__PURE__ */ jsx(Button, { ...props })
|
|
104
79
|
},
|
|
105
80
|
Image: {
|
|
106
|
-
render: (props) => /* @__PURE__ */
|
|
81
|
+
render: (props) => /* @__PURE__ */ jsx(Image, { ...props })
|
|
107
82
|
},
|
|
108
83
|
ImageCarousel: {
|
|
109
|
-
render: (props) => /* @__PURE__ */
|
|
84
|
+
render: (props) => /* @__PURE__ */ jsx(ImageCarousel, { ...props })
|
|
110
85
|
},
|
|
111
86
|
VideoEmbed: {
|
|
112
|
-
render: (props) => /* @__PURE__ */
|
|
87
|
+
render: (props) => /* @__PURE__ */ jsx(VideoEmbed, { ...props })
|
|
113
88
|
},
|
|
114
89
|
Icon: {
|
|
115
|
-
render: (props) => /* @__PURE__ */
|
|
90
|
+
render: (props) => /* @__PURE__ */ jsx(Icon, { ...props })
|
|
116
91
|
},
|
|
117
92
|
Section: {
|
|
118
|
-
render: (props) => /* @__PURE__ */
|
|
93
|
+
render: (props) => /* @__PURE__ */ jsx(Section, { ...props })
|
|
119
94
|
},
|
|
120
95
|
Container: {
|
|
121
|
-
render: (props) => /* @__PURE__ */
|
|
96
|
+
render: (props) => /* @__PURE__ */ jsx(Container, { ...props })
|
|
122
97
|
},
|
|
123
98
|
Columns: {
|
|
124
|
-
render: (props) => /* @__PURE__ */
|
|
99
|
+
render: (props) => /* @__PURE__ */ jsx(Columns, { ...props })
|
|
125
100
|
},
|
|
126
101
|
Card: {
|
|
127
|
-
render: (props) => /* @__PURE__ */
|
|
102
|
+
render: (props) => /* @__PURE__ */ jsx(Card, { ...props })
|
|
128
103
|
},
|
|
129
104
|
Divider: {
|
|
130
|
-
render: (props) => /* @__PURE__ */
|
|
105
|
+
render: (props) => /* @__PURE__ */ jsx(Divider, { ...props })
|
|
131
106
|
},
|
|
132
107
|
Spacer: {
|
|
133
|
-
render: (props) => /* @__PURE__ */
|
|
108
|
+
render: (props) => /* @__PURE__ */ jsx(Spacer, { ...props })
|
|
134
109
|
},
|
|
135
110
|
TextBlock: {
|
|
136
|
-
render: (props) => /* @__PURE__ */
|
|
111
|
+
render: (props) => /* @__PURE__ */ jsx(TextBlock, { ...props })
|
|
137
112
|
},
|
|
138
113
|
CustomImage: {
|
|
139
|
-
render: (props) => /* @__PURE__ */
|
|
114
|
+
render: (props) => /* @__PURE__ */ jsx(CustomImage, { ...props })
|
|
140
115
|
},
|
|
141
116
|
FeaturesList: {
|
|
142
|
-
render: (props) => /* @__PURE__ */
|
|
117
|
+
render: (props) => /* @__PURE__ */ jsx(FeaturesList, { ...props })
|
|
143
118
|
},
|
|
144
119
|
FeatureGrid: {
|
|
145
|
-
render: (props) => /* @__PURE__ */
|
|
120
|
+
render: (props) => /* @__PURE__ */ jsx(FeatureGrid, { ...props })
|
|
146
121
|
},
|
|
147
122
|
Footer: {
|
|
148
|
-
render: (props) => /* @__PURE__ */
|
|
123
|
+
render: (props) => /* @__PURE__ */ jsx(Footer, { ...props })
|
|
149
124
|
},
|
|
150
125
|
Topbar: {
|
|
151
|
-
render: (props) => /* @__PURE__ */
|
|
126
|
+
render: (props) => /* @__PURE__ */ jsx(Topbar, { ...props })
|
|
152
127
|
},
|
|
153
128
|
Popup: {
|
|
154
|
-
render: (props) => /* @__PURE__ */
|
|
129
|
+
render: (props) => /* @__PURE__ */ jsx(Popup, { ...props })
|
|
155
130
|
}
|
|
156
131
|
}
|
|
157
132
|
};
|
package/dist/config-entry.js
CHANGED
|
@@ -258,25 +258,38 @@ function Heading({
|
|
|
258
258
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Tag, { id, style, children: resolvedText });
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
// components/page/Paragraph.
|
|
262
|
-
var
|
|
263
|
-
var sizeMap = {
|
|
261
|
+
// components/page/primitives/Paragraph.ts
|
|
262
|
+
var paragraphSizeMap = {
|
|
264
263
|
sm: "0.875rem",
|
|
265
264
|
base: "1rem",
|
|
266
265
|
lg: "1.125rem",
|
|
267
266
|
xl: "1.25rem"
|
|
268
267
|
};
|
|
269
|
-
var
|
|
268
|
+
var paragraphWeightMap = {
|
|
270
269
|
normal: 400,
|
|
271
270
|
medium: 500,
|
|
272
271
|
semibold: 600
|
|
273
272
|
};
|
|
274
|
-
var
|
|
273
|
+
var paragraphLineHeightMap = {
|
|
275
274
|
tight: "1.4",
|
|
276
275
|
normal: "1.6",
|
|
277
276
|
relaxed: "1.75",
|
|
278
277
|
loose: "2"
|
|
279
278
|
};
|
|
279
|
+
function getParagraphStyle(props) {
|
|
280
|
+
return {
|
|
281
|
+
fontSize: paragraphSizeMap[props.size],
|
|
282
|
+
fontWeight: paragraphWeightMap[props.weight],
|
|
283
|
+
color: props.color,
|
|
284
|
+
textAlign: props.align,
|
|
285
|
+
lineHeight: paragraphLineHeightMap[props.lineHeight],
|
|
286
|
+
maxWidth: props.maxWidth || void 0,
|
|
287
|
+
margin: 0
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
// components/page/next/Paragraph.tsx
|
|
292
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
280
293
|
function isThemeableValue2(value) {
|
|
281
294
|
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
282
295
|
}
|
|
@@ -307,23 +320,32 @@ function Paragraph({
|
|
|
307
320
|
return "";
|
|
308
321
|
})();
|
|
309
322
|
const resolvedColor = (() => {
|
|
310
|
-
if (!color)
|
|
311
|
-
|
|
323
|
+
if (!color)
|
|
324
|
+
return hexToRgba(
|
|
325
|
+
resolveColor2("foreground").color,
|
|
326
|
+
resolveColor2("foreground").opacity
|
|
327
|
+
);
|
|
328
|
+
if (typeof color === "string") return color;
|
|
312
329
|
if (isThemeableValue2(color)) {
|
|
313
|
-
return color.useTheme ?
|
|
330
|
+
return color.useTheme ? hexToRgba(
|
|
331
|
+
resolveColor2(color.themeKey).color,
|
|
332
|
+
resolveColor2(color.themeKey).opacity
|
|
333
|
+
) : hexToRgba(color.value.color, color.value.opacity);
|
|
314
334
|
}
|
|
315
|
-
if ("color" in color) return color;
|
|
316
|
-
return
|
|
335
|
+
if ("color" in color) return hexToRgba(color.color, color.opacity);
|
|
336
|
+
return hexToRgba(
|
|
337
|
+
resolveColor2("foreground").color,
|
|
338
|
+
resolveColor2("foreground").opacity
|
|
339
|
+
);
|
|
317
340
|
})();
|
|
318
|
-
const style = {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
color:
|
|
322
|
-
|
|
323
|
-
lineHeight
|
|
324
|
-
maxWidth
|
|
325
|
-
|
|
326
|
-
};
|
|
341
|
+
const style = getParagraphStyle({
|
|
342
|
+
size: size4,
|
|
343
|
+
weight,
|
|
344
|
+
color: resolvedColor,
|
|
345
|
+
align,
|
|
346
|
+
lineHeight,
|
|
347
|
+
maxWidth
|
|
348
|
+
});
|
|
327
349
|
if (!resolvedText) return null;
|
|
328
350
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { id, style, children: resolvedText });
|
|
329
351
|
}
|
|
@@ -984,7 +1006,7 @@ function VideoEmbed({
|
|
|
984
1006
|
|
|
985
1007
|
// components/page/Icon.tsx
|
|
986
1008
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
987
|
-
var
|
|
1009
|
+
var sizeMap = {
|
|
988
1010
|
sm: { size: "16px", strokeWidth: 2 },
|
|
989
1011
|
md: { size: "24px", strokeWidth: 2 },
|
|
990
1012
|
lg: { size: "32px", strokeWidth: 1.5 },
|
|
@@ -1202,7 +1224,7 @@ function Icon({
|
|
|
1202
1224
|
return resolveColor2("primary");
|
|
1203
1225
|
})();
|
|
1204
1226
|
const IconComponent = icons[name.toLowerCase()] || icons.check;
|
|
1205
|
-
const { size: iconSize, strokeWidth } =
|
|
1227
|
+
const { size: iconSize, strokeWidth } = sizeMap[size4];
|
|
1206
1228
|
const colorValue = hexToRgba(resolvedColor.color, resolvedColor.opacity);
|
|
1207
1229
|
const wrapperStyle = {
|
|
1208
1230
|
display: "flex",
|
|
@@ -1546,7 +1568,7 @@ function Divider({
|
|
|
1546
1568
|
|
|
1547
1569
|
// components/page/Spacer.tsx
|
|
1548
1570
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1549
|
-
var
|
|
1571
|
+
var sizeMap2 = {
|
|
1550
1572
|
xs: "8px",
|
|
1551
1573
|
sm: "16px",
|
|
1552
1574
|
md: "24px",
|
|
@@ -1557,7 +1579,7 @@ var sizeMap3 = {
|
|
|
1557
1579
|
};
|
|
1558
1580
|
function Spacer({ size: size4 = "md", id }) {
|
|
1559
1581
|
const style = {
|
|
1560
|
-
height:
|
|
1582
|
+
height: sizeMap2[size4],
|
|
1561
1583
|
width: "100%"
|
|
1562
1584
|
};
|
|
1563
1585
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { id, style, "aria-hidden": "true" });
|
|
@@ -1570,7 +1592,7 @@ var alignmentMap = {
|
|
|
1570
1592
|
center: "text-center",
|
|
1571
1593
|
right: "text-right"
|
|
1572
1594
|
};
|
|
1573
|
-
var
|
|
1595
|
+
var sizeMap3 = {
|
|
1574
1596
|
small: "text-2xl",
|
|
1575
1597
|
"medium-small": "text-3xl",
|
|
1576
1598
|
medium: "text-4xl",
|
|
@@ -1659,7 +1681,7 @@ function TextBlock({
|
|
|
1659
1681
|
resolvedTitle && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1660
1682
|
"h2",
|
|
1661
1683
|
{
|
|
1662
|
-
className: cn("font-bold",
|
|
1684
|
+
className: cn("font-bold", sizeMap3[textSize]),
|
|
1663
1685
|
style: gradientStyle,
|
|
1664
1686
|
children: resolvedTitle
|
|
1665
1687
|
}
|
|
@@ -1713,7 +1735,7 @@ function CustomImage({
|
|
|
1713
1735
|
// components/page/FeaturesList.tsx
|
|
1714
1736
|
var import_lucide_react = require("lucide-react");
|
|
1715
1737
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1716
|
-
var
|
|
1738
|
+
var sizeMap4 = {
|
|
1717
1739
|
small: { icon: 24, title: "text-base", desc: "text-sm" },
|
|
1718
1740
|
medium: { icon: 32, title: "text-lg", desc: "text-base" },
|
|
1719
1741
|
large: { icon: 48, title: "text-xl", desc: "text-lg" }
|
|
@@ -1725,7 +1747,7 @@ function FeaturesList({
|
|
|
1725
1747
|
iconColor = "#000000",
|
|
1726
1748
|
anchorLink
|
|
1727
1749
|
}) {
|
|
1728
|
-
const sizeConfig =
|
|
1750
|
+
const sizeConfig = sizeMap4[size4];
|
|
1729
1751
|
const getIcon = (iconName) => {
|
|
1730
1752
|
const formatted = iconName.charAt(0).toUpperCase() + iconName.slice(1);
|
|
1731
1753
|
return import_lucide_react.icons[formatted] || null;
|
|
@@ -1782,7 +1804,7 @@ function FeaturesList({
|
|
|
1782
1804
|
// components/page/FeatureGrid.tsx
|
|
1783
1805
|
var import_lucide_react2 = require("lucide-react");
|
|
1784
1806
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1785
|
-
var
|
|
1807
|
+
var sizeMap5 = {
|
|
1786
1808
|
small: { icon: 24, title: "text-base", desc: "text-sm" },
|
|
1787
1809
|
medium: { icon: 32, title: "text-lg", desc: "text-base" },
|
|
1788
1810
|
large: { icon: 48, title: "text-xl", desc: "text-lg" }
|
|
@@ -1798,7 +1820,7 @@ function FeatureGrid({
|
|
|
1798
1820
|
textColor = "#000000",
|
|
1799
1821
|
anchorLink
|
|
1800
1822
|
}) {
|
|
1801
|
-
const sizeConfig =
|
|
1823
|
+
const sizeConfig = sizeMap5[size4];
|
|
1802
1824
|
const getIcon = (iconName) => {
|
|
1803
1825
|
const formatted = iconName.charAt(0).toUpperCase() + iconName.slice(1);
|
|
1804
1826
|
return import_lucide_react2.icons[formatted] || null;
|
|
@@ -2065,7 +2087,7 @@ var widthMap3 = {
|
|
|
2065
2087
|
medium: "max-w-lg",
|
|
2066
2088
|
large: "max-w-2xl"
|
|
2067
2089
|
};
|
|
2068
|
-
var
|
|
2090
|
+
var sizeMap6 = {
|
|
2069
2091
|
small: "px-3 py-1.5 text-sm",
|
|
2070
2092
|
medium: "px-4 py-2 text-base",
|
|
2071
2093
|
large: "px-6 py-3 text-lg"
|
|
@@ -2110,7 +2132,7 @@ function Popup({
|
|
|
2110
2132
|
onClick: handleOpen,
|
|
2111
2133
|
className: cn(
|
|
2112
2134
|
"flex items-center gap-2 rounded-full font-medium",
|
|
2113
|
-
|
|
2135
|
+
sizeMap6[size4]
|
|
2114
2136
|
),
|
|
2115
2137
|
style: { backgroundColor: buttonColor, color: textColor },
|
|
2116
2138
|
children: [
|
package/dist/config-entry.mjs
CHANGED
|
@@ -9,8 +9,9 @@ import {
|
|
|
9
9
|
} from "./chunk-VF4NOAJG.mjs";
|
|
10
10
|
import "./chunk-A3QDUUOF.mjs";
|
|
11
11
|
import {
|
|
12
|
-
Heading
|
|
13
|
-
|
|
12
|
+
Heading,
|
|
13
|
+
Paragraph
|
|
14
|
+
} from "./chunk-WFLVAZV2.mjs";
|
|
14
15
|
import {
|
|
15
16
|
Button,
|
|
16
17
|
Card,
|
|
@@ -24,7 +25,6 @@ import {
|
|
|
24
25
|
Icon,
|
|
25
26
|
Image,
|
|
26
27
|
ImageCarousel,
|
|
27
|
-
Paragraph,
|
|
28
28
|
Popup,
|
|
29
29
|
Section,
|
|
30
30
|
Spacer,
|
|
@@ -32,10 +32,10 @@ import {
|
|
|
32
32
|
Topbar,
|
|
33
33
|
VideoEmbed,
|
|
34
34
|
availableIcons
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-MWW5LYLN.mjs";
|
|
36
36
|
import "./chunk-PJXZC564.mjs";
|
|
37
|
-
import "./chunk-C6V3YUPF.mjs";
|
|
38
37
|
import "./chunk-QSWQDR6M.mjs";
|
|
38
|
+
import "./chunk-C6V3YUPF.mjs";
|
|
39
39
|
|
|
40
40
|
// config.tsx
|
|
41
41
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as PageTheme, b as ThemeColorKey,
|
|
3
|
+
import { P as PageTheme, b as ThemeColorKey, m as ColorValue, g as ThemeSpacingKey, T as ThemeBorderKey, d as ThemeShadowKey } from './types-HQ6hIbYr.mjs';
|
|
4
4
|
|
|
5
5
|
type ThemeContextValue = {
|
|
6
6
|
theme: PageTheme;
|
|
@@ -17,10 +17,4 @@ declare function useTheme(): ThemeContextValue;
|
|
|
17
17
|
|
|
18
18
|
declare const DEFAULT_THEME: PageTheme;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
mobile: boolean;
|
|
22
|
-
desktop: boolean;
|
|
23
|
-
};
|
|
24
|
-
declare function ResponsiveToggleField({ value, onChangeAction, disabled, label, }: CustomFieldProps<ResponsiveVisibility>): react_jsx_runtime.JSX.Element;
|
|
25
|
-
|
|
26
|
-
export { DEFAULT_THEME as D, type ResponsiveVisibility as R, ThemeProvider as T, ResponsiveToggleField as a, useTheme as u };
|
|
20
|
+
export { DEFAULT_THEME as D, ThemeProvider as T, useTheme as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { P as PageTheme, b as ThemeColorKey,
|
|
3
|
+
import { P as PageTheme, b as ThemeColorKey, m as ColorValue, g as ThemeSpacingKey, T as ThemeBorderKey, d as ThemeShadowKey } from './types-HQ6hIbYr.js';
|
|
4
4
|
|
|
5
5
|
type ThemeContextValue = {
|
|
6
6
|
theme: PageTheme;
|
|
@@ -17,10 +17,4 @@ declare function useTheme(): ThemeContextValue;
|
|
|
17
17
|
|
|
18
18
|
declare const DEFAULT_THEME: PageTheme;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
mobile: boolean;
|
|
22
|
-
desktop: boolean;
|
|
23
|
-
};
|
|
24
|
-
declare function ResponsiveToggleField({ value, onChangeAction, disabled, label, }: CustomFieldProps<ResponsiveVisibility>): react_jsx_runtime.JSX.Element;
|
|
25
|
-
|
|
26
|
-
export { DEFAULT_THEME as D, type ResponsiveVisibility as R, ThemeProvider as T, ResponsiveToggleField as a, useTheme as u };
|
|
20
|
+
export { DEFAULT_THEME as D, ThemeProvider as T, useTheme as u };
|
package/dist/editor.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { o as EntryContent, P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, c as ThemeColors, d as ThemeShadowKey, e as ThemeShadows, f as ThemeSpacing, g as ThemeSpacingKey, h as ThemeTypography, i as ThemeableBorderRadiusValue, k as ThemeableShadowValue, l as ThemeableSpacingValue } from './types-D-CIduaE.mjs';
|
|
2
|
+
export { D as DEFAULT_THEME, T as ThemeProvider, u as useTheme } from './defaults-j55hBQHu.mjs';
|
|
3
|
+
import { E as Entry, n as EntryBoundValue, j as ThemeableColorValue, m as ColorValue, b as ThemeColorKey, C as CustomFieldProps } from './types-HQ6hIbYr.mjs';
|
|
4
|
+
export { o as EntryContent, P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, c as ThemeColors, d as ThemeShadowKey, e as ThemeShadows, f as ThemeSpacing, g as ThemeSpacingKey, h as ThemeTypography, i as ThemeableBorderRadiusValue, k as ThemeableShadowValue, l as ThemeableSpacingValue } from './types-HQ6hIbYr.mjs';
|
|
6
5
|
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';
|
|
6
|
+
import { R as ResponsiveVisibility } from './ResponsiveToggleField-65CqZEK-.mjs';
|
|
7
|
+
export { a as ResponsiveToggleField } from './ResponsiveToggleField-65CqZEK-.mjs';
|
|
7
8
|
import { ReactNode } from 'react';
|
|
8
9
|
import { Data } from '@measured/puck';
|
|
9
10
|
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export { o as EntryContent, P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, c as ThemeColors, d as ThemeShadowKey, e as ThemeShadows, f as ThemeSpacing, g as ThemeSpacingKey, h as ThemeTypography, i as ThemeableBorderRadiusValue, k as ThemeableShadowValue, l as ThemeableSpacingValue } from './types-D-CIduaE.js';
|
|
2
|
+
export { D as DEFAULT_THEME, T as ThemeProvider, u as useTheme } from './defaults-z8Ft2j5r.js';
|
|
3
|
+
import { E as Entry, n as EntryBoundValue, j as ThemeableColorValue, m as ColorValue, b as ThemeColorKey, C as CustomFieldProps } from './types-HQ6hIbYr.js';
|
|
4
|
+
export { o as EntryContent, P as PageTheme, T as ThemeBorderKey, a as ThemeBorders, c as ThemeColors, d as ThemeShadowKey, e as ThemeShadows, f as ThemeSpacing, g as ThemeSpacingKey, h as ThemeTypography, i as ThemeableBorderRadiusValue, k as ThemeableShadowValue, l as ThemeableSpacingValue } from './types-HQ6hIbYr.js';
|
|
6
5
|
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';
|
|
6
|
+
import { R as ResponsiveVisibility } from './ResponsiveToggleField-QCve94L_.js';
|
|
7
|
+
export { a as ResponsiveToggleField } from './ResponsiveToggleField-QCve94L_.js';
|
|
7
8
|
import { ReactNode } from 'react';
|
|
8
9
|
import { Data } from '@measured/puck';
|
|
9
10
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { D as
|
|
3
|
-
export {
|
|
1
|
+
export { Heading, HeadingProps, Paragraph, ParagraphProps } from './renderer.mjs';
|
|
2
|
+
export { B as Button, a as ButtonProps, C as Card, b as CardProps, c as CarouselImage, d as Columns, e as ColumnsProps, f as Container, g as ContainerProps, h as CustomImage, i as CustomImageProps, D as Divider, j as DividerProps, F as FeatureGrid, k as FeatureGridProps, l as FeaturesList, m as FeaturesListProps, n as Footer, o as FooterProps, I as Icon, p as IconProps, q as Image, r as ImageCarousel, s as ImageCarouselProps, t as ImageProps, P as Popup, u as PopupProps, S as Section, v as SectionProps, w as Spacer, x as SpacerProps, T as TextBlock, y as TextBlockProps, z as Topbar, A as TopbarProps, V as VideoEmbed, E as VideoEmbedProps, G as availableIcons } from './Popup-llKrR-vO.mjs';
|
|
3
|
+
export { D as DEFAULT_THEME, T as ThemeProvider, u as useTheme } from './defaults-j55hBQHu.mjs';
|
|
4
|
+
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-HQ6hIbYr.mjs';
|
|
4
5
|
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
6
|
import 'react/jsx-runtime';
|
|
6
7
|
import 'react';
|
|
8
|
+
import './ResponsiveToggleField-65CqZEK-.mjs';
|
|
7
9
|
import '@measured/puck';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { D as
|
|
3
|
-
export {
|
|
1
|
+
export { Heading, HeadingProps, Paragraph, ParagraphProps } from './renderer.js';
|
|
2
|
+
export { B as Button, a as ButtonProps, C as Card, b as CardProps, c as CarouselImage, d as Columns, e as ColumnsProps, f as Container, g as ContainerProps, h as CustomImage, i as CustomImageProps, D as Divider, j as DividerProps, F as FeatureGrid, k as FeatureGridProps, l as FeaturesList, m as FeaturesListProps, n as Footer, o as FooterProps, I as Icon, p as IconProps, q as Image, r as ImageCarousel, s as ImageCarouselProps, t as ImageProps, P as Popup, u as PopupProps, S as Section, v as SectionProps, w as Spacer, x as SpacerProps, T as TextBlock, y as TextBlockProps, z as Topbar, A as TopbarProps, V as VideoEmbed, E as VideoEmbedProps, G as availableIcons } from './Popup-BlNJZyB6.js';
|
|
3
|
+
export { D as DEFAULT_THEME, T as ThemeProvider, u as useTheme } from './defaults-z8Ft2j5r.js';
|
|
4
|
+
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-HQ6hIbYr.js';
|
|
4
5
|
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
6
|
import 'react/jsx-runtime';
|
|
6
7
|
import 'react';
|
|
8
|
+
import './ResponsiveToggleField-QCve94L_.js';
|
|
7
9
|
import '@measured/puck';
|