@mission-studio/puck 1.0.0
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 +183 -0
- package/dist/ResponsiveToggleField-CVhKzDAT.d.ts +183 -0
- package/dist/chunk-OZYZPWP7.mjs +6288 -0
- package/dist/chunk-TTKY3YGP.mjs +262 -0
- package/dist/chunk-UJTTHDZA.mjs +16 -0
- package/dist/chunk-ZZF2BIMW.mjs +1799 -0
- package/dist/config-entry.d.mts +5 -0
- package/dist/config-entry.d.ts +5 -0
- package/dist/config-entry.js +9159 -0
- package/dist/config-entry.mjs +1075 -0
- package/dist/editor.d.mts +135 -0
- package/dist/editor.d.ts +135 -0
- package/dist/editor.js +7046 -0
- package/dist/editor.mjs +509 -0
- package/dist/index.d.mts +287 -0
- package/dist/index.d.ts +287 -0
- package/dist/index.js +2106 -0
- package/dist/index.mjs +82 -0
- package/dist/styles.css +2 -0
- package/package.json +97 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
Button: () => Button,
|
|
34
|
+
Card: () => Card,
|
|
35
|
+
Columns: () => Columns,
|
|
36
|
+
Container: () => Container,
|
|
37
|
+
CustomImage: () => CustomImage,
|
|
38
|
+
DEFAULT_THEME: () => DEFAULT_THEME,
|
|
39
|
+
Divider: () => Divider,
|
|
40
|
+
FeatureGrid: () => FeatureGrid,
|
|
41
|
+
FeaturesList: () => FeaturesList,
|
|
42
|
+
Footer: () => Footer,
|
|
43
|
+
Heading: () => Heading,
|
|
44
|
+
Icon: () => Icon,
|
|
45
|
+
Image: () => Image,
|
|
46
|
+
ImageCarousel: () => ImageCarousel,
|
|
47
|
+
Paragraph: () => Paragraph,
|
|
48
|
+
Popup: () => Popup,
|
|
49
|
+
Section: () => Section,
|
|
50
|
+
Spacer: () => Spacer,
|
|
51
|
+
TextBlock: () => TextBlock,
|
|
52
|
+
ThemeProvider: () => ThemeProvider,
|
|
53
|
+
Topbar: () => Topbar,
|
|
54
|
+
VideoEmbed: () => VideoEmbed,
|
|
55
|
+
allColorPresets: () => allColorPresets,
|
|
56
|
+
availableIcons: () => availableIcons,
|
|
57
|
+
borderRadiusScale: () => borderRadiusScale,
|
|
58
|
+
fontFamilies: () => fontFamilies,
|
|
59
|
+
fontSizes: () => fontSizes,
|
|
60
|
+
fontWeights: () => fontWeights,
|
|
61
|
+
getBorderRadiusCSS: () => getBorderRadiusCSS,
|
|
62
|
+
getClosestBorderRadiusValue: () => getClosestBorderRadiusValue,
|
|
63
|
+
getClosestSpacingValue: () => getClosestSpacingValue,
|
|
64
|
+
getFontSizeCSS: () => getFontSizeCSS,
|
|
65
|
+
getShadowCSS: () => getShadowCSS,
|
|
66
|
+
neutralColors: () => neutralColors,
|
|
67
|
+
shadowPresets: () => shadowPresets,
|
|
68
|
+
spacingScale: () => spacingScale,
|
|
69
|
+
useTheme: () => useTheme
|
|
70
|
+
});
|
|
71
|
+
module.exports = __toCommonJS(index_exports);
|
|
72
|
+
|
|
73
|
+
// entries/context.tsx
|
|
74
|
+
var import_react = require("react");
|
|
75
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
76
|
+
var EntriesContext = (0, import_react.createContext)(null);
|
|
77
|
+
function useEntries() {
|
|
78
|
+
const context = (0, import_react.useContext)(EntriesContext);
|
|
79
|
+
if (!context) {
|
|
80
|
+
return {
|
|
81
|
+
entries: [],
|
|
82
|
+
entryNames: [],
|
|
83
|
+
getEntry: () => void 0,
|
|
84
|
+
getEntryValue: () => void 0
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
return context;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// theme/context.tsx
|
|
91
|
+
var import_react2 = require("react");
|
|
92
|
+
|
|
93
|
+
// theme/defaults.ts
|
|
94
|
+
var DEFAULT_THEME = {
|
|
95
|
+
id: "default",
|
|
96
|
+
name: "Default Theme",
|
|
97
|
+
colors: {
|
|
98
|
+
primary: { color: "#3B82F6", opacity: 100 },
|
|
99
|
+
secondary: { color: "#8B5CF6", opacity: 100 },
|
|
100
|
+
accent: { color: "#10B981", opacity: 100 },
|
|
101
|
+
background: { color: "#FFFFFF", opacity: 100 },
|
|
102
|
+
foreground: { color: "#111827", opacity: 100 },
|
|
103
|
+
muted: { color: "#F3F4F6", opacity: 100 }
|
|
104
|
+
},
|
|
105
|
+
typography: {
|
|
106
|
+
fontFamily: {
|
|
107
|
+
heading: "system-ui, sans-serif",
|
|
108
|
+
body: "system-ui, sans-serif"
|
|
109
|
+
},
|
|
110
|
+
fontSize: {
|
|
111
|
+
base: "base",
|
|
112
|
+
heading: "4xl"
|
|
113
|
+
},
|
|
114
|
+
fontWeight: {
|
|
115
|
+
normal: 400,
|
|
116
|
+
heading: 700
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
spacing: {
|
|
120
|
+
xs: 8,
|
|
121
|
+
sm: 12,
|
|
122
|
+
md: 16,
|
|
123
|
+
lg: 24,
|
|
124
|
+
xl: 32
|
|
125
|
+
},
|
|
126
|
+
borders: {
|
|
127
|
+
radiusSmall: 4,
|
|
128
|
+
radiusMedium: 8,
|
|
129
|
+
radiusLarge: 16
|
|
130
|
+
},
|
|
131
|
+
shadows: {
|
|
132
|
+
small: "sm",
|
|
133
|
+
medium: "md",
|
|
134
|
+
large: "lg"
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
// theme/context.tsx
|
|
139
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
140
|
+
var ThemeContext = (0, import_react2.createContext)(null);
|
|
141
|
+
function ThemeProvider({
|
|
142
|
+
theme,
|
|
143
|
+
children
|
|
144
|
+
}) {
|
|
145
|
+
const activeTheme = theme ?? DEFAULT_THEME;
|
|
146
|
+
const contextValue = {
|
|
147
|
+
theme: activeTheme,
|
|
148
|
+
resolveColor: (key) => activeTheme.colors[key],
|
|
149
|
+
resolveSpacing: (key) => activeTheme.spacing[key],
|
|
150
|
+
resolveBorderRadius: (key) => activeTheme.borders[key],
|
|
151
|
+
resolveShadow: (key) => activeTheme.shadows[key]
|
|
152
|
+
};
|
|
153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ThemeContext.Provider, { value: contextValue, children });
|
|
154
|
+
}
|
|
155
|
+
function useTheme() {
|
|
156
|
+
const context = (0, import_react2.useContext)(ThemeContext);
|
|
157
|
+
if (!context) {
|
|
158
|
+
return {
|
|
159
|
+
theme: DEFAULT_THEME,
|
|
160
|
+
resolveColor: (key) => DEFAULT_THEME.colors[key],
|
|
161
|
+
resolveSpacing: (key) => DEFAULT_THEME.spacing[key],
|
|
162
|
+
resolveBorderRadius: (key) => DEFAULT_THEME.borders[key],
|
|
163
|
+
resolveShadow: (key) => DEFAULT_THEME.shadows[key]
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
return context;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// utils/index.ts
|
|
170
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
171
|
+
var import_clsx = require("clsx");
|
|
172
|
+
function hexToRgba(hex, opacity) {
|
|
173
|
+
const sanitized = hex.replace("#", "");
|
|
174
|
+
const r = parseInt(sanitized.slice(0, 2), 16);
|
|
175
|
+
const g = parseInt(sanitized.slice(2, 4), 16);
|
|
176
|
+
const b = parseInt(sanitized.slice(4, 6), 16);
|
|
177
|
+
return `rgba(${r}, ${g}, ${b}, ${opacity / 100})`;
|
|
178
|
+
}
|
|
179
|
+
function cn(...inputs) {
|
|
180
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// components/page/Heading.tsx
|
|
184
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
185
|
+
var sizeMap = {
|
|
186
|
+
xs: "0.875rem",
|
|
187
|
+
sm: "1rem",
|
|
188
|
+
md: "1.25rem",
|
|
189
|
+
lg: "1.5rem",
|
|
190
|
+
xl: "2rem",
|
|
191
|
+
"2xl": "2.5rem",
|
|
192
|
+
"3xl": "3rem",
|
|
193
|
+
"4xl": "4rem"
|
|
194
|
+
};
|
|
195
|
+
var weightMap = {
|
|
196
|
+
normal: 400,
|
|
197
|
+
medium: 500,
|
|
198
|
+
semibold: 600,
|
|
199
|
+
bold: 700,
|
|
200
|
+
extrabold: 800
|
|
201
|
+
};
|
|
202
|
+
var letterSpacingMap = {
|
|
203
|
+
tight: "-0.025em",
|
|
204
|
+
normal: "0",
|
|
205
|
+
wide: "0.05em"
|
|
206
|
+
};
|
|
207
|
+
var lineHeightMap = {
|
|
208
|
+
tight: "1.1",
|
|
209
|
+
normal: "1.4",
|
|
210
|
+
relaxed: "1.6"
|
|
211
|
+
};
|
|
212
|
+
function isThemeableValue(value) {
|
|
213
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
214
|
+
}
|
|
215
|
+
function isEntryBoundValue(value) {
|
|
216
|
+
return typeof value === "object" && value !== null && "useEntry" in value;
|
|
217
|
+
}
|
|
218
|
+
function Heading({
|
|
219
|
+
text,
|
|
220
|
+
level = "h2",
|
|
221
|
+
size = "2xl",
|
|
222
|
+
weight = "bold",
|
|
223
|
+
color,
|
|
224
|
+
align = "left",
|
|
225
|
+
letterSpacing = "normal",
|
|
226
|
+
lineHeight = "tight",
|
|
227
|
+
id
|
|
228
|
+
}) {
|
|
229
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
230
|
+
const { getEntryValue } = useEntries();
|
|
231
|
+
const resolvedText = (() => {
|
|
232
|
+
if (!text) return "";
|
|
233
|
+
if (typeof text === "string") return text;
|
|
234
|
+
if (isEntryBoundValue(text)) {
|
|
235
|
+
if (text.useEntry) {
|
|
236
|
+
return String(getEntryValue(text.entryName, text.fieldKey) ?? "");
|
|
237
|
+
}
|
|
238
|
+
return text.value;
|
|
239
|
+
}
|
|
240
|
+
return "";
|
|
241
|
+
})();
|
|
242
|
+
const resolvedColor = (() => {
|
|
243
|
+
if (!color) return resolveColor2("foreground");
|
|
244
|
+
if (typeof color === "string") return { color, opacity: 100 };
|
|
245
|
+
if (isThemeableValue(color)) {
|
|
246
|
+
return color.useTheme ? resolveColor2(color.themeKey) : color.value;
|
|
247
|
+
}
|
|
248
|
+
if ("color" in color) return color;
|
|
249
|
+
return resolveColor2("foreground");
|
|
250
|
+
})();
|
|
251
|
+
const Tag = level;
|
|
252
|
+
const style = {
|
|
253
|
+
fontSize: sizeMap[size],
|
|
254
|
+
fontWeight: weightMap[weight],
|
|
255
|
+
color: hexToRgba(resolvedColor.color, resolvedColor.opacity),
|
|
256
|
+
textAlign: align,
|
|
257
|
+
letterSpacing: letterSpacingMap[letterSpacing],
|
|
258
|
+
lineHeight: lineHeightMap[lineHeight],
|
|
259
|
+
margin: 0
|
|
260
|
+
};
|
|
261
|
+
if (!resolvedText) return null;
|
|
262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Tag, { id, style, children: resolvedText });
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// components/page/Paragraph.tsx
|
|
266
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
267
|
+
var sizeMap2 = {
|
|
268
|
+
sm: "0.875rem",
|
|
269
|
+
base: "1rem",
|
|
270
|
+
lg: "1.125rem",
|
|
271
|
+
xl: "1.25rem"
|
|
272
|
+
};
|
|
273
|
+
var weightMap2 = {
|
|
274
|
+
normal: 400,
|
|
275
|
+
medium: 500,
|
|
276
|
+
semibold: 600
|
|
277
|
+
};
|
|
278
|
+
var lineHeightMap2 = {
|
|
279
|
+
tight: "1.4",
|
|
280
|
+
normal: "1.6",
|
|
281
|
+
relaxed: "1.75",
|
|
282
|
+
loose: "2"
|
|
283
|
+
};
|
|
284
|
+
function isThemeableValue2(value) {
|
|
285
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
286
|
+
}
|
|
287
|
+
function isEntryBoundValue2(value) {
|
|
288
|
+
return typeof value === "object" && value !== null && "useEntry" in value;
|
|
289
|
+
}
|
|
290
|
+
function Paragraph({
|
|
291
|
+
text,
|
|
292
|
+
size = "base",
|
|
293
|
+
weight = "normal",
|
|
294
|
+
color,
|
|
295
|
+
align = "left",
|
|
296
|
+
lineHeight = "normal",
|
|
297
|
+
maxWidth,
|
|
298
|
+
id
|
|
299
|
+
}) {
|
|
300
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
301
|
+
const { getEntryValue } = useEntries();
|
|
302
|
+
const resolvedText = (() => {
|
|
303
|
+
if (!text) return "";
|
|
304
|
+
if (typeof text === "string") return text;
|
|
305
|
+
if (isEntryBoundValue2(text)) {
|
|
306
|
+
if (text.useEntry) {
|
|
307
|
+
return String(getEntryValue(text.entryName, text.fieldKey) ?? "");
|
|
308
|
+
}
|
|
309
|
+
return text.value;
|
|
310
|
+
}
|
|
311
|
+
return "";
|
|
312
|
+
})();
|
|
313
|
+
const resolvedColor = (() => {
|
|
314
|
+
if (!color) return resolveColor2("foreground");
|
|
315
|
+
if (typeof color === "string") return { color, opacity: 100 };
|
|
316
|
+
if (isThemeableValue2(color)) {
|
|
317
|
+
return color.useTheme ? resolveColor2(color.themeKey) : color.value;
|
|
318
|
+
}
|
|
319
|
+
if ("color" in color) return color;
|
|
320
|
+
return resolveColor2("foreground");
|
|
321
|
+
})();
|
|
322
|
+
const style = {
|
|
323
|
+
fontSize: sizeMap2[size],
|
|
324
|
+
fontWeight: weightMap2[weight],
|
|
325
|
+
color: hexToRgba(resolvedColor.color, resolvedColor.opacity),
|
|
326
|
+
textAlign: align,
|
|
327
|
+
lineHeight: lineHeightMap2[lineHeight],
|
|
328
|
+
maxWidth: maxWidth || void 0,
|
|
329
|
+
margin: 0
|
|
330
|
+
};
|
|
331
|
+
if (!resolvedText) return null;
|
|
332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { id, style, children: resolvedText });
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// components/page/Button.tsx
|
|
336
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
337
|
+
var sizeStyles = {
|
|
338
|
+
sm: { padding: "8px 16px", fontSize: "0.875rem" },
|
|
339
|
+
md: { padding: "12px 24px", fontSize: "1rem" },
|
|
340
|
+
lg: { padding: "16px 32px", fontSize: "1.125rem" },
|
|
341
|
+
xl: { padding: "20px 40px", fontSize: "1.25rem" }
|
|
342
|
+
};
|
|
343
|
+
var radiusMap = {
|
|
344
|
+
none: "0",
|
|
345
|
+
sm: "4px",
|
|
346
|
+
md: "8px",
|
|
347
|
+
lg: "16px",
|
|
348
|
+
full: "9999px"
|
|
349
|
+
};
|
|
350
|
+
function isThemeableValue3(value) {
|
|
351
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
352
|
+
}
|
|
353
|
+
function isEntryBoundValue3(value) {
|
|
354
|
+
return typeof value === "object" && value !== null && "useEntry" in value;
|
|
355
|
+
}
|
|
356
|
+
function Button({
|
|
357
|
+
text,
|
|
358
|
+
href,
|
|
359
|
+
target = "_self",
|
|
360
|
+
variant = "solid",
|
|
361
|
+
size = "md",
|
|
362
|
+
color,
|
|
363
|
+
textColor,
|
|
364
|
+
borderRadius = "md",
|
|
365
|
+
fullWidth = false,
|
|
366
|
+
align = "center",
|
|
367
|
+
id
|
|
368
|
+
}) {
|
|
369
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
370
|
+
const { getEntryValue } = useEntries();
|
|
371
|
+
const resolvedText = (() => {
|
|
372
|
+
if (!text) return "Button";
|
|
373
|
+
if (typeof text === "string") return text;
|
|
374
|
+
if (isEntryBoundValue3(text)) {
|
|
375
|
+
if (text.useEntry) {
|
|
376
|
+
return String(getEntryValue(text.entryName, text.fieldKey) ?? "Button");
|
|
377
|
+
}
|
|
378
|
+
return text.value;
|
|
379
|
+
}
|
|
380
|
+
return "Button";
|
|
381
|
+
})();
|
|
382
|
+
const resolvedColor = (() => {
|
|
383
|
+
if (!color) return resolveColor2("primary");
|
|
384
|
+
if (typeof color === "string") return { color, opacity: 100 };
|
|
385
|
+
if (isThemeableValue3(color)) {
|
|
386
|
+
return color.useTheme ? resolveColor2(color.themeKey) : color.value;
|
|
387
|
+
}
|
|
388
|
+
if ("color" in color) return color;
|
|
389
|
+
return resolveColor2("primary");
|
|
390
|
+
})();
|
|
391
|
+
const resolvedTextColor = (() => {
|
|
392
|
+
if (!textColor) {
|
|
393
|
+
if (variant === "solid") return { color: "#FFFFFF", opacity: 100 };
|
|
394
|
+
return resolvedColor;
|
|
395
|
+
}
|
|
396
|
+
if (typeof textColor === "string")
|
|
397
|
+
return { color: textColor, opacity: 100 };
|
|
398
|
+
if (isThemeableValue3(textColor)) {
|
|
399
|
+
return textColor.useTheme ? resolveColor2(textColor.themeKey) : textColor.value;
|
|
400
|
+
}
|
|
401
|
+
if ("color" in textColor) return textColor;
|
|
402
|
+
return { color: "#FFFFFF", opacity: 100 };
|
|
403
|
+
})();
|
|
404
|
+
const bgColor = hexToRgba(resolvedColor.color, resolvedColor.opacity);
|
|
405
|
+
const fgColor = hexToRgba(resolvedTextColor.color, resolvedTextColor.opacity);
|
|
406
|
+
const baseStyle = {
|
|
407
|
+
...sizeStyles[size],
|
|
408
|
+
borderRadius: radiusMap[borderRadius],
|
|
409
|
+
fontWeight: 600,
|
|
410
|
+
cursor: "pointer",
|
|
411
|
+
display: "inline-flex",
|
|
412
|
+
alignItems: "center",
|
|
413
|
+
justifyContent: "center",
|
|
414
|
+
textDecoration: "none",
|
|
415
|
+
transition: "opacity 0.2s, transform 0.2s",
|
|
416
|
+
width: fullWidth ? "100%" : "auto",
|
|
417
|
+
border: "none"
|
|
418
|
+
};
|
|
419
|
+
const variantStyles = {
|
|
420
|
+
solid: {
|
|
421
|
+
backgroundColor: bgColor,
|
|
422
|
+
color: fgColor
|
|
423
|
+
},
|
|
424
|
+
outline: {
|
|
425
|
+
backgroundColor: "transparent",
|
|
426
|
+
color: bgColor,
|
|
427
|
+
border: `2px solid ${bgColor}`
|
|
428
|
+
},
|
|
429
|
+
ghost: {
|
|
430
|
+
backgroundColor: "transparent",
|
|
431
|
+
color: bgColor
|
|
432
|
+
},
|
|
433
|
+
link: {
|
|
434
|
+
backgroundColor: "transparent",
|
|
435
|
+
color: bgColor,
|
|
436
|
+
padding: "0",
|
|
437
|
+
textDecoration: "underline"
|
|
438
|
+
}
|
|
439
|
+
};
|
|
440
|
+
const style = { ...baseStyle, ...variantStyles[variant] };
|
|
441
|
+
const wrapperStyle = {
|
|
442
|
+
display: "flex",
|
|
443
|
+
justifyContent: align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center"
|
|
444
|
+
};
|
|
445
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style, children: resolvedText });
|
|
446
|
+
if (href) {
|
|
447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
448
|
+
"a",
|
|
449
|
+
{
|
|
450
|
+
id,
|
|
451
|
+
href,
|
|
452
|
+
target,
|
|
453
|
+
style,
|
|
454
|
+
rel: target === "_blank" ? "noopener noreferrer" : void 0,
|
|
455
|
+
children: resolvedText
|
|
456
|
+
}
|
|
457
|
+
) });
|
|
458
|
+
}
|
|
459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { id, type: "button", style, children: resolvedText }) });
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// components/page/Image.tsx
|
|
463
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
464
|
+
var widthMap = {
|
|
465
|
+
auto: "auto",
|
|
466
|
+
full: "100%",
|
|
467
|
+
sm: "300px",
|
|
468
|
+
md: "500px",
|
|
469
|
+
lg: "700px",
|
|
470
|
+
xl: "900px"
|
|
471
|
+
};
|
|
472
|
+
var aspectRatioMap = {
|
|
473
|
+
auto: void 0,
|
|
474
|
+
"1:1": "1 / 1",
|
|
475
|
+
"4:3": "4 / 3",
|
|
476
|
+
"16:9": "16 / 9",
|
|
477
|
+
"21:9": "21 / 9"
|
|
478
|
+
};
|
|
479
|
+
var radiusMap2 = {
|
|
480
|
+
none: "0",
|
|
481
|
+
sm: "4px",
|
|
482
|
+
md: "8px",
|
|
483
|
+
lg: "16px",
|
|
484
|
+
xl: "24px",
|
|
485
|
+
full: "9999px"
|
|
486
|
+
};
|
|
487
|
+
var shadowMap = {
|
|
488
|
+
none: "none",
|
|
489
|
+
sm: "0 1px 2px rgba(0,0,0,0.05)",
|
|
490
|
+
md: "0 4px 6px rgba(0,0,0,0.1)",
|
|
491
|
+
lg: "0 10px 15px rgba(0,0,0,0.1)",
|
|
492
|
+
xl: "0 20px 25px rgba(0,0,0,0.15)"
|
|
493
|
+
};
|
|
494
|
+
function isThemeableValue4(value) {
|
|
495
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
496
|
+
}
|
|
497
|
+
function isEntryBoundValue4(value) {
|
|
498
|
+
return typeof value === "object" && value !== null && "useEntry" in value;
|
|
499
|
+
}
|
|
500
|
+
function Image({
|
|
501
|
+
src,
|
|
502
|
+
alt = "",
|
|
503
|
+
width = "full",
|
|
504
|
+
aspectRatio = "auto",
|
|
505
|
+
objectFit = "cover",
|
|
506
|
+
borderRadius = "none",
|
|
507
|
+
shadow = "none",
|
|
508
|
+
align = "center",
|
|
509
|
+
caption,
|
|
510
|
+
captionColor,
|
|
511
|
+
id
|
|
512
|
+
}) {
|
|
513
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
514
|
+
const { getEntryValue } = useEntries();
|
|
515
|
+
const resolvedSrc = (() => {
|
|
516
|
+
if (!src) return "";
|
|
517
|
+
if (typeof src === "string") return src;
|
|
518
|
+
if (isEntryBoundValue4(src)) {
|
|
519
|
+
if (src.useEntry) {
|
|
520
|
+
return String(getEntryValue(src.entryName, src.fieldKey) ?? "");
|
|
521
|
+
}
|
|
522
|
+
return src.value;
|
|
523
|
+
}
|
|
524
|
+
return "";
|
|
525
|
+
})();
|
|
526
|
+
const resolvedCaption = (() => {
|
|
527
|
+
if (!caption) return "";
|
|
528
|
+
if (typeof caption === "string") return caption;
|
|
529
|
+
if (isEntryBoundValue4(caption)) {
|
|
530
|
+
if (caption.useEntry) {
|
|
531
|
+
return String(getEntryValue(caption.entryName, caption.fieldKey) ?? "");
|
|
532
|
+
}
|
|
533
|
+
return caption.value;
|
|
534
|
+
}
|
|
535
|
+
return "";
|
|
536
|
+
})();
|
|
537
|
+
const resolvedCaptionColor = (() => {
|
|
538
|
+
if (!captionColor) return resolveColor2("muted");
|
|
539
|
+
if (typeof captionColor === "string")
|
|
540
|
+
return { color: captionColor, opacity: 100 };
|
|
541
|
+
if (isThemeableValue4(captionColor)) {
|
|
542
|
+
return captionColor.useTheme ? resolveColor2(captionColor.themeKey) : captionColor.value;
|
|
543
|
+
}
|
|
544
|
+
if ("color" in captionColor) return captionColor;
|
|
545
|
+
return resolveColor2("muted");
|
|
546
|
+
})();
|
|
547
|
+
const wrapperStyle = {
|
|
548
|
+
display: "flex",
|
|
549
|
+
flexDirection: "column",
|
|
550
|
+
alignItems: align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center",
|
|
551
|
+
gap: "8px"
|
|
552
|
+
};
|
|
553
|
+
const imageStyle = {
|
|
554
|
+
width: widthMap[width],
|
|
555
|
+
maxWidth: "100%",
|
|
556
|
+
aspectRatio: aspectRatioMap[aspectRatio],
|
|
557
|
+
objectFit,
|
|
558
|
+
borderRadius: radiusMap2[borderRadius],
|
|
559
|
+
boxShadow: shadowMap[shadow],
|
|
560
|
+
display: "block"
|
|
561
|
+
};
|
|
562
|
+
const captionStyle = {
|
|
563
|
+
fontSize: "0.875rem",
|
|
564
|
+
color: hexToRgba(resolvedCaptionColor.color, resolvedCaptionColor.opacity),
|
|
565
|
+
textAlign: align,
|
|
566
|
+
maxWidth: widthMap[width]
|
|
567
|
+
};
|
|
568
|
+
if (!resolvedSrc) {
|
|
569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
570
|
+
"div",
|
|
571
|
+
{
|
|
572
|
+
style: {
|
|
573
|
+
...imageStyle,
|
|
574
|
+
backgroundColor: "#e5e7eb",
|
|
575
|
+
display: "flex",
|
|
576
|
+
alignItems: "center",
|
|
577
|
+
justifyContent: "center",
|
|
578
|
+
minHeight: "200px",
|
|
579
|
+
color: "#9ca3af"
|
|
580
|
+
},
|
|
581
|
+
children: "No image"
|
|
582
|
+
}
|
|
583
|
+
) });
|
|
584
|
+
}
|
|
585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("figure", { id, style: { ...wrapperStyle, margin: 0 }, children: [
|
|
586
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("img", { src: resolvedSrc, alt, style: imageStyle, loading: "lazy" }),
|
|
587
|
+
resolvedCaption && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("figcaption", { style: captionStyle, children: resolvedCaption })
|
|
588
|
+
] });
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
// components/page/ImageCarousel.tsx
|
|
592
|
+
var import_react3 = require("react");
|
|
593
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
594
|
+
var aspectRatioMap2 = {
|
|
595
|
+
"16:9": "16 / 9",
|
|
596
|
+
"4:3": "4 / 3",
|
|
597
|
+
"1:1": "1 / 1",
|
|
598
|
+
"21:9": "21 / 9"
|
|
599
|
+
};
|
|
600
|
+
var radiusMap3 = {
|
|
601
|
+
none: "0",
|
|
602
|
+
sm: "4px",
|
|
603
|
+
md: "8px",
|
|
604
|
+
lg: "16px"
|
|
605
|
+
};
|
|
606
|
+
function isThemeableValue5(value) {
|
|
607
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
608
|
+
}
|
|
609
|
+
function ImageCarousel({
|
|
610
|
+
images = [],
|
|
611
|
+
aspectRatio = "16:9",
|
|
612
|
+
borderRadius = "none",
|
|
613
|
+
showDots = true,
|
|
614
|
+
showArrows = true,
|
|
615
|
+
arrowColor,
|
|
616
|
+
dotColor,
|
|
617
|
+
id
|
|
618
|
+
}) {
|
|
619
|
+
const [currentIndex, setCurrentIndex] = (0, import_react3.useState)(0);
|
|
620
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
621
|
+
const resolvedArrowColor = (() => {
|
|
622
|
+
if (!arrowColor) return { color: "#FFFFFF", opacity: 100 };
|
|
623
|
+
if (typeof arrowColor === "string")
|
|
624
|
+
return { color: arrowColor, opacity: 100 };
|
|
625
|
+
if (isThemeableValue5(arrowColor)) {
|
|
626
|
+
return arrowColor.useTheme ? resolveColor2(arrowColor.themeKey) : arrowColor.value;
|
|
627
|
+
}
|
|
628
|
+
if ("color" in arrowColor) return arrowColor;
|
|
629
|
+
return { color: "#FFFFFF", opacity: 100 };
|
|
630
|
+
})();
|
|
631
|
+
const resolvedDotColor = (() => {
|
|
632
|
+
if (!dotColor) return resolveColor2("primary");
|
|
633
|
+
if (typeof dotColor === "string") return { color: dotColor, opacity: 100 };
|
|
634
|
+
if (isThemeableValue5(dotColor)) {
|
|
635
|
+
return dotColor.useTheme ? resolveColor2(dotColor.themeKey) : dotColor.value;
|
|
636
|
+
}
|
|
637
|
+
if ("color" in dotColor) return dotColor;
|
|
638
|
+
return resolveColor2("primary");
|
|
639
|
+
})();
|
|
640
|
+
const goToPrevious = () => {
|
|
641
|
+
setCurrentIndex((prev) => prev === 0 ? images.length - 1 : prev - 1);
|
|
642
|
+
};
|
|
643
|
+
const goToNext = () => {
|
|
644
|
+
setCurrentIndex((prev) => prev === images.length - 1 ? 0 : prev + 1);
|
|
645
|
+
};
|
|
646
|
+
const goToSlide = (index) => {
|
|
647
|
+
setCurrentIndex(index);
|
|
648
|
+
};
|
|
649
|
+
if (images.length === 0) {
|
|
650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
651
|
+
"div",
|
|
652
|
+
{
|
|
653
|
+
style: {
|
|
654
|
+
aspectRatio: aspectRatioMap2[aspectRatio],
|
|
655
|
+
backgroundColor: "#e5e7eb",
|
|
656
|
+
borderRadius: radiusMap3[borderRadius],
|
|
657
|
+
display: "flex",
|
|
658
|
+
alignItems: "center",
|
|
659
|
+
justifyContent: "center",
|
|
660
|
+
color: "#9ca3af"
|
|
661
|
+
},
|
|
662
|
+
children: "No images"
|
|
663
|
+
}
|
|
664
|
+
);
|
|
665
|
+
}
|
|
666
|
+
const containerStyle = {
|
|
667
|
+
position: "relative",
|
|
668
|
+
aspectRatio: aspectRatioMap2[aspectRatio],
|
|
669
|
+
borderRadius: radiusMap3[borderRadius],
|
|
670
|
+
overflow: "hidden"
|
|
671
|
+
};
|
|
672
|
+
const slideContainerStyle = {
|
|
673
|
+
display: "flex",
|
|
674
|
+
transition: "transform 0.3s ease-in-out",
|
|
675
|
+
transform: `translateX(-${currentIndex * 100}%)`,
|
|
676
|
+
height: "100%"
|
|
677
|
+
};
|
|
678
|
+
const slideStyle = {
|
|
679
|
+
minWidth: "100%",
|
|
680
|
+
height: "100%"
|
|
681
|
+
};
|
|
682
|
+
const imageStyle = {
|
|
683
|
+
width: "100%",
|
|
684
|
+
height: "100%",
|
|
685
|
+
objectFit: "cover"
|
|
686
|
+
};
|
|
687
|
+
const arrowStyle = {
|
|
688
|
+
position: "absolute",
|
|
689
|
+
top: "50%",
|
|
690
|
+
transform: "translateY(-50%)",
|
|
691
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
692
|
+
color: hexToRgba(resolvedArrowColor.color, resolvedArrowColor.opacity),
|
|
693
|
+
border: "none",
|
|
694
|
+
borderRadius: "50%",
|
|
695
|
+
width: "40px",
|
|
696
|
+
height: "40px",
|
|
697
|
+
cursor: "pointer",
|
|
698
|
+
display: "flex",
|
|
699
|
+
alignItems: "center",
|
|
700
|
+
justifyContent: "center",
|
|
701
|
+
fontSize: "20px",
|
|
702
|
+
zIndex: 1
|
|
703
|
+
};
|
|
704
|
+
const dotsContainerStyle = {
|
|
705
|
+
position: "absolute",
|
|
706
|
+
bottom: "16px",
|
|
707
|
+
left: "50%",
|
|
708
|
+
transform: "translateX(-50%)",
|
|
709
|
+
display: "flex",
|
|
710
|
+
gap: "8px",
|
|
711
|
+
zIndex: 1
|
|
712
|
+
};
|
|
713
|
+
const dotStyle = (isActive) => ({
|
|
714
|
+
width: "10px",
|
|
715
|
+
height: "10px",
|
|
716
|
+
borderRadius: "50%",
|
|
717
|
+
border: "none",
|
|
718
|
+
cursor: "pointer",
|
|
719
|
+
backgroundColor: isActive ? hexToRgba(resolvedDotColor.color, resolvedDotColor.opacity) : "rgba(255,255,255,0.5)"
|
|
720
|
+
});
|
|
721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { id, style: containerStyle, children: [
|
|
722
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: slideContainerStyle, children: images.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: slideStyle, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
723
|
+
"img",
|
|
724
|
+
{
|
|
725
|
+
src: image.src,
|
|
726
|
+
alt: image.alt || "",
|
|
727
|
+
style: imageStyle,
|
|
728
|
+
loading: "lazy"
|
|
729
|
+
}
|
|
730
|
+
) }, index)) }),
|
|
731
|
+
showArrows && images.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
|
|
732
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
733
|
+
"button",
|
|
734
|
+
{
|
|
735
|
+
type: "button",
|
|
736
|
+
onClick: goToPrevious,
|
|
737
|
+
style: { ...arrowStyle, left: "16px" },
|
|
738
|
+
"aria-label": "Previous slide",
|
|
739
|
+
children: "\u2039"
|
|
740
|
+
}
|
|
741
|
+
),
|
|
742
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
743
|
+
"button",
|
|
744
|
+
{
|
|
745
|
+
type: "button",
|
|
746
|
+
onClick: goToNext,
|
|
747
|
+
style: { ...arrowStyle, right: "16px" },
|
|
748
|
+
"aria-label": "Next slide",
|
|
749
|
+
children: "\u203A"
|
|
750
|
+
}
|
|
751
|
+
)
|
|
752
|
+
] }),
|
|
753
|
+
showDots && images.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: dotsContainerStyle, children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
754
|
+
"button",
|
|
755
|
+
{
|
|
756
|
+
type: "button",
|
|
757
|
+
onClick: () => goToSlide(index),
|
|
758
|
+
style: dotStyle(index === currentIndex),
|
|
759
|
+
"aria-label": `Go to slide ${index + 1}`
|
|
760
|
+
},
|
|
761
|
+
index
|
|
762
|
+
)) })
|
|
763
|
+
] });
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
// components/page/VideoEmbed.tsx
|
|
767
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
768
|
+
var aspectRatioMap3 = {
|
|
769
|
+
"16:9": "56.25%",
|
|
770
|
+
// 9/16 * 100
|
|
771
|
+
"4:3": "75%",
|
|
772
|
+
"1:1": "100%",
|
|
773
|
+
"21:9": "42.86%"
|
|
774
|
+
};
|
|
775
|
+
var radiusMap4 = {
|
|
776
|
+
none: "0",
|
|
777
|
+
sm: "4px",
|
|
778
|
+
md: "8px",
|
|
779
|
+
lg: "16px"
|
|
780
|
+
};
|
|
781
|
+
var maxWidthMap = {
|
|
782
|
+
sm: "400px",
|
|
783
|
+
md: "600px",
|
|
784
|
+
lg: "800px",
|
|
785
|
+
xl: "1000px",
|
|
786
|
+
full: "100%"
|
|
787
|
+
};
|
|
788
|
+
function isEntryBoundValue5(value) {
|
|
789
|
+
return typeof value === "object" && value !== null && "useEntry" in value;
|
|
790
|
+
}
|
|
791
|
+
function parseVideoUrl(url) {
|
|
792
|
+
const ytMatch = url.match(
|
|
793
|
+
/(?:youtube\.com\/(?:watch\?v=|embed\/)|youtu\.be\/)([a-zA-Z0-9_-]{11})/
|
|
794
|
+
);
|
|
795
|
+
if (ytMatch) {
|
|
796
|
+
return {
|
|
797
|
+
type: "youtube",
|
|
798
|
+
embedUrl: `https://www.youtube.com/embed/${ytMatch[1]}`
|
|
799
|
+
};
|
|
800
|
+
}
|
|
801
|
+
const vimeoMatch = url.match(/(?:vimeo\.com\/)(\d+)/);
|
|
802
|
+
if (vimeoMatch) {
|
|
803
|
+
return {
|
|
804
|
+
type: "vimeo",
|
|
805
|
+
embedUrl: `https://player.vimeo.com/video/${vimeoMatch[1]}`
|
|
806
|
+
};
|
|
807
|
+
}
|
|
808
|
+
return { type: "unknown", embedUrl: url };
|
|
809
|
+
}
|
|
810
|
+
function VideoEmbed({
|
|
811
|
+
url,
|
|
812
|
+
aspectRatio = "16:9",
|
|
813
|
+
borderRadius = "none",
|
|
814
|
+
autoplay = false,
|
|
815
|
+
muted = false,
|
|
816
|
+
loop = false,
|
|
817
|
+
align = "center",
|
|
818
|
+
maxWidth = "full",
|
|
819
|
+
id
|
|
820
|
+
}) {
|
|
821
|
+
const { getEntryValue } = useEntries();
|
|
822
|
+
const resolvedUrl = (() => {
|
|
823
|
+
if (!url) return "";
|
|
824
|
+
if (typeof url === "string") return url;
|
|
825
|
+
if (isEntryBoundValue5(url)) {
|
|
826
|
+
if (url.useEntry) {
|
|
827
|
+
return String(getEntryValue(url.entryName, url.fieldKey) ?? "");
|
|
828
|
+
}
|
|
829
|
+
return url.value;
|
|
830
|
+
}
|
|
831
|
+
return "";
|
|
832
|
+
})();
|
|
833
|
+
if (!resolvedUrl) {
|
|
834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
835
|
+
"div",
|
|
836
|
+
{
|
|
837
|
+
style: {
|
|
838
|
+
backgroundColor: "#1f2937",
|
|
839
|
+
borderRadius: radiusMap4[borderRadius],
|
|
840
|
+
aspectRatio: aspectRatio.replace(":", " / "),
|
|
841
|
+
display: "flex",
|
|
842
|
+
alignItems: "center",
|
|
843
|
+
justifyContent: "center",
|
|
844
|
+
color: "#9ca3af",
|
|
845
|
+
maxWidth: maxWidthMap[maxWidth],
|
|
846
|
+
marginLeft: align === "center" ? "auto" : align === "right" ? "auto" : void 0,
|
|
847
|
+
marginRight: align === "center" ? "auto" : align === "left" ? "auto" : void 0
|
|
848
|
+
},
|
|
849
|
+
children: "No video URL"
|
|
850
|
+
}
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
const { embedUrl } = parseVideoUrl(resolvedUrl);
|
|
854
|
+
const params = new URLSearchParams();
|
|
855
|
+
if (autoplay) params.set("autoplay", "1");
|
|
856
|
+
if (muted) params.set("mute", "1");
|
|
857
|
+
if (loop) params.set("loop", "1");
|
|
858
|
+
const finalUrl = params.toString() ? `${embedUrl}?${params.toString()}` : embedUrl;
|
|
859
|
+
const wrapperStyle = {
|
|
860
|
+
display: "flex",
|
|
861
|
+
justifyContent: align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center"
|
|
862
|
+
};
|
|
863
|
+
const containerStyle = {
|
|
864
|
+
position: "relative",
|
|
865
|
+
width: "100%",
|
|
866
|
+
maxWidth: maxWidthMap[maxWidth],
|
|
867
|
+
paddingBottom: aspectRatioMap3[aspectRatio],
|
|
868
|
+
borderRadius: radiusMap4[borderRadius],
|
|
869
|
+
overflow: "hidden"
|
|
870
|
+
};
|
|
871
|
+
const iframeStyle = {
|
|
872
|
+
position: "absolute",
|
|
873
|
+
top: 0,
|
|
874
|
+
left: 0,
|
|
875
|
+
width: "100%",
|
|
876
|
+
height: "100%",
|
|
877
|
+
border: "none"
|
|
878
|
+
};
|
|
879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { id, style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { style: containerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
880
|
+
"iframe",
|
|
881
|
+
{
|
|
882
|
+
src: finalUrl,
|
|
883
|
+
style: iframeStyle,
|
|
884
|
+
allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
|
|
885
|
+
allowFullScreen: true,
|
|
886
|
+
loading: "lazy"
|
|
887
|
+
}
|
|
888
|
+
) }) });
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
// components/page/Icon.tsx
|
|
892
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
893
|
+
var sizeMap3 = {
|
|
894
|
+
sm: { size: "16px", strokeWidth: 2 },
|
|
895
|
+
md: { size: "24px", strokeWidth: 2 },
|
|
896
|
+
lg: { size: "32px", strokeWidth: 1.5 },
|
|
897
|
+
xl: { size: "48px", strokeWidth: 1.5 },
|
|
898
|
+
"2xl": { size: "64px", strokeWidth: 1.5 }
|
|
899
|
+
};
|
|
900
|
+
var icons = {
|
|
901
|
+
check: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
902
|
+
"svg",
|
|
903
|
+
{
|
|
904
|
+
width: size,
|
|
905
|
+
height: size,
|
|
906
|
+
viewBox: "0 0 24 24",
|
|
907
|
+
fill: "none",
|
|
908
|
+
stroke: color,
|
|
909
|
+
strokeWidth,
|
|
910
|
+
strokeLinecap: "round",
|
|
911
|
+
strokeLinejoin: "round",
|
|
912
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("polyline", { points: "20 6 9 17 4 12" })
|
|
913
|
+
}
|
|
914
|
+
),
|
|
915
|
+
x: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
916
|
+
"svg",
|
|
917
|
+
{
|
|
918
|
+
width: size,
|
|
919
|
+
height: size,
|
|
920
|
+
viewBox: "0 0 24 24",
|
|
921
|
+
fill: "none",
|
|
922
|
+
stroke: color,
|
|
923
|
+
strokeWidth,
|
|
924
|
+
strokeLinecap: "round",
|
|
925
|
+
strokeLinejoin: "round",
|
|
926
|
+
children: [
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
928
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
929
|
+
]
|
|
930
|
+
}
|
|
931
|
+
),
|
|
932
|
+
star: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
933
|
+
"svg",
|
|
934
|
+
{
|
|
935
|
+
width: size,
|
|
936
|
+
height: size,
|
|
937
|
+
viewBox: "0 0 24 24",
|
|
938
|
+
fill: color,
|
|
939
|
+
stroke: color,
|
|
940
|
+
strokeWidth,
|
|
941
|
+
strokeLinecap: "round",
|
|
942
|
+
strokeLinejoin: "round",
|
|
943
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" })
|
|
944
|
+
}
|
|
945
|
+
),
|
|
946
|
+
heart: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
947
|
+
"svg",
|
|
948
|
+
{
|
|
949
|
+
width: size,
|
|
950
|
+
height: size,
|
|
951
|
+
viewBox: "0 0 24 24",
|
|
952
|
+
fill: "none",
|
|
953
|
+
stroke: color,
|
|
954
|
+
strokeWidth,
|
|
955
|
+
strokeLinecap: "round",
|
|
956
|
+
strokeLinejoin: "round",
|
|
957
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" })
|
|
958
|
+
}
|
|
959
|
+
),
|
|
960
|
+
arrowRight: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
961
|
+
"svg",
|
|
962
|
+
{
|
|
963
|
+
width: size,
|
|
964
|
+
height: size,
|
|
965
|
+
viewBox: "0 0 24 24",
|
|
966
|
+
fill: "none",
|
|
967
|
+
stroke: color,
|
|
968
|
+
strokeWidth,
|
|
969
|
+
strokeLinecap: "round",
|
|
970
|
+
strokeLinejoin: "round",
|
|
971
|
+
children: [
|
|
972
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("line", { x1: "5", y1: "12", x2: "19", y2: "12" }),
|
|
973
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("polyline", { points: "12 5 19 12 12 19" })
|
|
974
|
+
]
|
|
975
|
+
}
|
|
976
|
+
),
|
|
977
|
+
arrowLeft: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
978
|
+
"svg",
|
|
979
|
+
{
|
|
980
|
+
width: size,
|
|
981
|
+
height: size,
|
|
982
|
+
viewBox: "0 0 24 24",
|
|
983
|
+
fill: "none",
|
|
984
|
+
stroke: color,
|
|
985
|
+
strokeWidth,
|
|
986
|
+
strokeLinecap: "round",
|
|
987
|
+
strokeLinejoin: "round",
|
|
988
|
+
children: [
|
|
989
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("line", { x1: "19", y1: "12", x2: "5", y2: "12" }),
|
|
990
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("polyline", { points: "12 19 5 12 12 5" })
|
|
991
|
+
]
|
|
992
|
+
}
|
|
993
|
+
),
|
|
994
|
+
mail: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
995
|
+
"svg",
|
|
996
|
+
{
|
|
997
|
+
width: size,
|
|
998
|
+
height: size,
|
|
999
|
+
viewBox: "0 0 24 24",
|
|
1000
|
+
fill: "none",
|
|
1001
|
+
stroke: color,
|
|
1002
|
+
strokeWidth,
|
|
1003
|
+
strokeLinecap: "round",
|
|
1004
|
+
strokeLinejoin: "round",
|
|
1005
|
+
children: [
|
|
1006
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z" }),
|
|
1007
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("polyline", { points: "22,6 12,13 2,6" })
|
|
1008
|
+
]
|
|
1009
|
+
}
|
|
1010
|
+
),
|
|
1011
|
+
phone: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1012
|
+
"svg",
|
|
1013
|
+
{
|
|
1014
|
+
width: size,
|
|
1015
|
+
height: size,
|
|
1016
|
+
viewBox: "0 0 24 24",
|
|
1017
|
+
fill: "none",
|
|
1018
|
+
stroke: color,
|
|
1019
|
+
strokeWidth,
|
|
1020
|
+
strokeLinecap: "round",
|
|
1021
|
+
strokeLinejoin: "round",
|
|
1022
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z" })
|
|
1023
|
+
}
|
|
1024
|
+
),
|
|
1025
|
+
mapPin: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1026
|
+
"svg",
|
|
1027
|
+
{
|
|
1028
|
+
width: size,
|
|
1029
|
+
height: size,
|
|
1030
|
+
viewBox: "0 0 24 24",
|
|
1031
|
+
fill: "none",
|
|
1032
|
+
stroke: color,
|
|
1033
|
+
strokeWidth,
|
|
1034
|
+
strokeLinecap: "round",
|
|
1035
|
+
strokeLinejoin: "round",
|
|
1036
|
+
children: [
|
|
1037
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z" }),
|
|
1038
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("circle", { cx: "12", cy: "10", r: "3" })
|
|
1039
|
+
]
|
|
1040
|
+
}
|
|
1041
|
+
),
|
|
1042
|
+
zap: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1043
|
+
"svg",
|
|
1044
|
+
{
|
|
1045
|
+
width: size,
|
|
1046
|
+
height: size,
|
|
1047
|
+
viewBox: "0 0 24 24",
|
|
1048
|
+
fill: "none",
|
|
1049
|
+
stroke: color,
|
|
1050
|
+
strokeWidth,
|
|
1051
|
+
strokeLinecap: "round",
|
|
1052
|
+
strokeLinejoin: "round",
|
|
1053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" })
|
|
1054
|
+
}
|
|
1055
|
+
),
|
|
1056
|
+
shield: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1057
|
+
"svg",
|
|
1058
|
+
{
|
|
1059
|
+
width: size,
|
|
1060
|
+
height: size,
|
|
1061
|
+
viewBox: "0 0 24 24",
|
|
1062
|
+
fill: "none",
|
|
1063
|
+
stroke: color,
|
|
1064
|
+
strokeWidth,
|
|
1065
|
+
strokeLinecap: "round",
|
|
1066
|
+
strokeLinejoin: "round",
|
|
1067
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" })
|
|
1068
|
+
}
|
|
1069
|
+
),
|
|
1070
|
+
users: ({ size, color, strokeWidth }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
1071
|
+
"svg",
|
|
1072
|
+
{
|
|
1073
|
+
width: size,
|
|
1074
|
+
height: size,
|
|
1075
|
+
viewBox: "0 0 24 24",
|
|
1076
|
+
fill: "none",
|
|
1077
|
+
stroke: color,
|
|
1078
|
+
strokeWidth,
|
|
1079
|
+
strokeLinecap: "round",
|
|
1080
|
+
strokeLinejoin: "round",
|
|
1081
|
+
children: [
|
|
1082
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
1083
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("circle", { cx: "9", cy: "7", r: "4" }),
|
|
1084
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
|
|
1085
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
1086
|
+
]
|
|
1087
|
+
}
|
|
1088
|
+
)
|
|
1089
|
+
};
|
|
1090
|
+
function isThemeableValue6(value) {
|
|
1091
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
1092
|
+
}
|
|
1093
|
+
function Icon({
|
|
1094
|
+
name = "check",
|
|
1095
|
+
size = "md",
|
|
1096
|
+
color,
|
|
1097
|
+
align = "center",
|
|
1098
|
+
id
|
|
1099
|
+
}) {
|
|
1100
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
1101
|
+
const resolvedColor = (() => {
|
|
1102
|
+
if (!color) return resolveColor2("primary");
|
|
1103
|
+
if (typeof color === "string") return { color, opacity: 100 };
|
|
1104
|
+
if (isThemeableValue6(color)) {
|
|
1105
|
+
return color.useTheme ? resolveColor2(color.themeKey) : color.value;
|
|
1106
|
+
}
|
|
1107
|
+
if ("color" in color) return color;
|
|
1108
|
+
return resolveColor2("primary");
|
|
1109
|
+
})();
|
|
1110
|
+
const IconComponent = icons[name.toLowerCase()] || icons.check;
|
|
1111
|
+
const { size: iconSize, strokeWidth } = sizeMap3[size];
|
|
1112
|
+
const colorValue = hexToRgba(resolvedColor.color, resolvedColor.opacity);
|
|
1113
|
+
const wrapperStyle = {
|
|
1114
|
+
display: "flex",
|
|
1115
|
+
justifyContent: align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center"
|
|
1116
|
+
};
|
|
1117
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { id, style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1118
|
+
IconComponent,
|
|
1119
|
+
{
|
|
1120
|
+
size: iconSize,
|
|
1121
|
+
color: colorValue,
|
|
1122
|
+
strokeWidth
|
|
1123
|
+
}
|
|
1124
|
+
) });
|
|
1125
|
+
}
|
|
1126
|
+
var availableIcons = Object.keys(icons);
|
|
1127
|
+
|
|
1128
|
+
// design-system/shadows.ts
|
|
1129
|
+
var shadowPresets = [
|
|
1130
|
+
{ label: "None", value: "none", css: "none" },
|
|
1131
|
+
{ label: "XS", value: "xs", css: "0 1px 2px 0 rgb(0 0 0 / 0.05)" },
|
|
1132
|
+
{
|
|
1133
|
+
label: "SM",
|
|
1134
|
+
value: "sm",
|
|
1135
|
+
css: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
label: "MD",
|
|
1139
|
+
value: "md",
|
|
1140
|
+
css: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
label: "LG",
|
|
1144
|
+
value: "lg",
|
|
1145
|
+
css: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
label: "XL",
|
|
1149
|
+
value: "xl",
|
|
1150
|
+
css: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"
|
|
1151
|
+
},
|
|
1152
|
+
{ label: "2XL", value: "2xl", css: "0 25px 50px -12px rgb(0 0 0 / 0.25)" },
|
|
1153
|
+
{
|
|
1154
|
+
label: "Inner",
|
|
1155
|
+
value: "inner",
|
|
1156
|
+
css: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"
|
|
1157
|
+
}
|
|
1158
|
+
];
|
|
1159
|
+
var getShadowCSS = (value) => {
|
|
1160
|
+
const preset = shadowPresets.find((p) => p.value === value);
|
|
1161
|
+
return preset?.css ?? "none";
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
// components/page/Section.tsx
|
|
1165
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1166
|
+
function isThemeableValue7(value) {
|
|
1167
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
1168
|
+
}
|
|
1169
|
+
function resolveBackgroundColor(bg, resolveColor2) {
|
|
1170
|
+
if (!bg) return void 0;
|
|
1171
|
+
if (typeof bg === "string") return bg;
|
|
1172
|
+
if (isThemeableValue7(bg)) {
|
|
1173
|
+
if (bg.useTheme) {
|
|
1174
|
+
const themeColor = resolveColor2(bg.themeKey);
|
|
1175
|
+
return hexToRgba(themeColor.color, themeColor.opacity);
|
|
1176
|
+
}
|
|
1177
|
+
return hexToRgba(bg.value.color, bg.value.opacity);
|
|
1178
|
+
}
|
|
1179
|
+
if ("color" in bg && "opacity" in bg) {
|
|
1180
|
+
return hexToRgba(bg.color, bg.opacity);
|
|
1181
|
+
}
|
|
1182
|
+
return void 0;
|
|
1183
|
+
}
|
|
1184
|
+
function getVisibilityClasses(visibility) {
|
|
1185
|
+
if (!visibility) return "";
|
|
1186
|
+
if (!visibility.mobile && !visibility.desktop) {
|
|
1187
|
+
return "hidden";
|
|
1188
|
+
}
|
|
1189
|
+
if (!visibility.mobile && visibility.desktop) {
|
|
1190
|
+
return "hidden md:block";
|
|
1191
|
+
}
|
|
1192
|
+
if (visibility.mobile && !visibility.desktop) {
|
|
1193
|
+
return "md:hidden";
|
|
1194
|
+
}
|
|
1195
|
+
return "";
|
|
1196
|
+
}
|
|
1197
|
+
function Section({
|
|
1198
|
+
children: _children,
|
|
1199
|
+
verticalPadding = 48,
|
|
1200
|
+
horizontalPadding = 32,
|
|
1201
|
+
gap = 24,
|
|
1202
|
+
backgroundColor,
|
|
1203
|
+
backgroundImage,
|
|
1204
|
+
shadow = "none",
|
|
1205
|
+
borderRadius = 0,
|
|
1206
|
+
contentMaxWidth = "1400px",
|
|
1207
|
+
anchorLink,
|
|
1208
|
+
visibility,
|
|
1209
|
+
puck
|
|
1210
|
+
}) {
|
|
1211
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
1212
|
+
const DropZone = puck?.renderDropZone;
|
|
1213
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1214
|
+
"section",
|
|
1215
|
+
{
|
|
1216
|
+
id: anchorLink,
|
|
1217
|
+
className: cn("flex w-full flex-col", getVisibilityClasses(visibility)),
|
|
1218
|
+
style: {
|
|
1219
|
+
padding: `${verticalPadding}px ${horizontalPadding}px`,
|
|
1220
|
+
gap: `${gap}px`,
|
|
1221
|
+
backgroundColor: resolveBackgroundColor(backgroundColor, resolveColor2),
|
|
1222
|
+
backgroundImage: backgroundImage ? `url(${backgroundImage})` : void 0,
|
|
1223
|
+
backgroundSize: "cover",
|
|
1224
|
+
backgroundPosition: "center",
|
|
1225
|
+
boxShadow: getShadowCSS(shadow),
|
|
1226
|
+
borderRadius: `${borderRadius}px`
|
|
1227
|
+
},
|
|
1228
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "mx-auto w-full", style: { maxWidth: contentMaxWidth }, children: DropZone && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DropZone, { zone: "content" }) })
|
|
1229
|
+
}
|
|
1230
|
+
);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
// components/page/Container.tsx
|
|
1234
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1235
|
+
var maxWidthMap2 = {
|
|
1236
|
+
sm: "640px",
|
|
1237
|
+
md: "768px",
|
|
1238
|
+
lg: "1024px",
|
|
1239
|
+
xl: "1280px",
|
|
1240
|
+
"2xl": "1536px",
|
|
1241
|
+
full: "100%"
|
|
1242
|
+
};
|
|
1243
|
+
var paddingMap = {
|
|
1244
|
+
none: "0",
|
|
1245
|
+
sm: "16px",
|
|
1246
|
+
md: "24px",
|
|
1247
|
+
lg: "32px",
|
|
1248
|
+
xl: "48px"
|
|
1249
|
+
};
|
|
1250
|
+
function isThemeableValue8(value) {
|
|
1251
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
1252
|
+
}
|
|
1253
|
+
function Container({
|
|
1254
|
+
maxWidth = "lg",
|
|
1255
|
+
padding,
|
|
1256
|
+
paddingX = "md",
|
|
1257
|
+
paddingY = "none",
|
|
1258
|
+
backgroundColor,
|
|
1259
|
+
centered = true,
|
|
1260
|
+
id,
|
|
1261
|
+
puck
|
|
1262
|
+
}) {
|
|
1263
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
1264
|
+
const DropZone = puck?.renderDropZone;
|
|
1265
|
+
const resolvedBgColor = (() => {
|
|
1266
|
+
if (!backgroundColor) return null;
|
|
1267
|
+
if (typeof backgroundColor === "string")
|
|
1268
|
+
return { color: backgroundColor, opacity: 100 };
|
|
1269
|
+
if (isThemeableValue8(backgroundColor)) {
|
|
1270
|
+
return backgroundColor.useTheme ? resolveColor2(backgroundColor.themeKey) : backgroundColor.value;
|
|
1271
|
+
}
|
|
1272
|
+
if ("color" in backgroundColor) return backgroundColor;
|
|
1273
|
+
return null;
|
|
1274
|
+
})();
|
|
1275
|
+
const effectivePaddingX = padding || paddingX;
|
|
1276
|
+
const effectivePaddingY = padding || paddingY;
|
|
1277
|
+
const style = {
|
|
1278
|
+
maxWidth: maxWidthMap2[maxWidth],
|
|
1279
|
+
marginLeft: centered ? "auto" : void 0,
|
|
1280
|
+
marginRight: centered ? "auto" : void 0,
|
|
1281
|
+
paddingLeft: paddingMap[effectivePaddingX],
|
|
1282
|
+
paddingRight: paddingMap[effectivePaddingX],
|
|
1283
|
+
paddingTop: paddingMap[effectivePaddingY],
|
|
1284
|
+
paddingBottom: paddingMap[effectivePaddingY],
|
|
1285
|
+
backgroundColor: resolvedBgColor ? hexToRgba(resolvedBgColor.color, resolvedBgColor.opacity) : void 0,
|
|
1286
|
+
width: "100%"
|
|
1287
|
+
};
|
|
1288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { id, style, children: DropZone && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropZone, { zone: "container-content" }) });
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
// components/page/Columns.tsx
|
|
1292
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1293
|
+
var gapMap = {
|
|
1294
|
+
none: "0",
|
|
1295
|
+
sm: "16px",
|
|
1296
|
+
md: "24px",
|
|
1297
|
+
lg: "32px",
|
|
1298
|
+
xl: "48px"
|
|
1299
|
+
};
|
|
1300
|
+
var alignMap = {
|
|
1301
|
+
top: "flex-start",
|
|
1302
|
+
center: "center",
|
|
1303
|
+
bottom: "flex-end",
|
|
1304
|
+
stretch: "stretch"
|
|
1305
|
+
};
|
|
1306
|
+
function Columns({
|
|
1307
|
+
columns = 2,
|
|
1308
|
+
gap = "md",
|
|
1309
|
+
verticalAlign = "top",
|
|
1310
|
+
stackOnMobile = true,
|
|
1311
|
+
id,
|
|
1312
|
+
puck
|
|
1313
|
+
}) {
|
|
1314
|
+
const DropZone = puck?.renderDropZone;
|
|
1315
|
+
const containerStyle = {
|
|
1316
|
+
display: "grid",
|
|
1317
|
+
gridTemplateColumns: `repeat(${columns}, 1fr)`,
|
|
1318
|
+
gap: gapMap[gap],
|
|
1319
|
+
alignItems: alignMap[verticalAlign]
|
|
1320
|
+
};
|
|
1321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { id, style: containerStyle, children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { style: { minWidth: 0 }, children: DropZone && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropZone, { zone: `column-${index}` }) }, index)) });
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
// components/page/Card.tsx
|
|
1325
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1326
|
+
var borderWidthMap = {
|
|
1327
|
+
none: "0",
|
|
1328
|
+
thin: "1px",
|
|
1329
|
+
medium: "2px",
|
|
1330
|
+
thick: "4px"
|
|
1331
|
+
};
|
|
1332
|
+
var radiusMap5 = {
|
|
1333
|
+
none: "0",
|
|
1334
|
+
sm: "4px",
|
|
1335
|
+
md: "8px",
|
|
1336
|
+
lg: "16px",
|
|
1337
|
+
xl: "24px"
|
|
1338
|
+
};
|
|
1339
|
+
var shadowMap2 = {
|
|
1340
|
+
none: "none",
|
|
1341
|
+
sm: "0 1px 2px rgba(0,0,0,0.05)",
|
|
1342
|
+
md: "0 4px 6px rgba(0,0,0,0.1)",
|
|
1343
|
+
lg: "0 10px 15px rgba(0,0,0,0.1)",
|
|
1344
|
+
xl: "0 20px 25px rgba(0,0,0,0.15)"
|
|
1345
|
+
};
|
|
1346
|
+
var paddingMap2 = {
|
|
1347
|
+
none: "0",
|
|
1348
|
+
sm: "16px",
|
|
1349
|
+
md: "24px",
|
|
1350
|
+
lg: "32px",
|
|
1351
|
+
xl: "48px"
|
|
1352
|
+
};
|
|
1353
|
+
function isThemeableValue9(value) {
|
|
1354
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
1355
|
+
}
|
|
1356
|
+
function Card({
|
|
1357
|
+
backgroundColor,
|
|
1358
|
+
borderColor,
|
|
1359
|
+
borderWidth = "thin",
|
|
1360
|
+
borderRadius = "md",
|
|
1361
|
+
shadow = "sm",
|
|
1362
|
+
padding = "md",
|
|
1363
|
+
id,
|
|
1364
|
+
puck
|
|
1365
|
+
}) {
|
|
1366
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
1367
|
+
const DropZone = puck?.renderDropZone;
|
|
1368
|
+
const resolvedBgColor = (() => {
|
|
1369
|
+
if (!backgroundColor) return resolveColor2("background");
|
|
1370
|
+
if (typeof backgroundColor === "string")
|
|
1371
|
+
return { color: backgroundColor, opacity: 100 };
|
|
1372
|
+
if (isThemeableValue9(backgroundColor)) {
|
|
1373
|
+
return backgroundColor.useTheme ? resolveColor2(backgroundColor.themeKey) : backgroundColor.value;
|
|
1374
|
+
}
|
|
1375
|
+
if ("color" in backgroundColor) return backgroundColor;
|
|
1376
|
+
return resolveColor2("background");
|
|
1377
|
+
})();
|
|
1378
|
+
const resolvedBorderColor = (() => {
|
|
1379
|
+
if (!borderColor) return resolveColor2("muted");
|
|
1380
|
+
if (typeof borderColor === "string")
|
|
1381
|
+
return { color: borderColor, opacity: 100 };
|
|
1382
|
+
if (isThemeableValue9(borderColor)) {
|
|
1383
|
+
return borderColor.useTheme ? resolveColor2(borderColor.themeKey) : borderColor.value;
|
|
1384
|
+
}
|
|
1385
|
+
if ("color" in borderColor) return borderColor;
|
|
1386
|
+
return resolveColor2("muted");
|
|
1387
|
+
})();
|
|
1388
|
+
const style = {
|
|
1389
|
+
backgroundColor: hexToRgba(resolvedBgColor.color, resolvedBgColor.opacity),
|
|
1390
|
+
border: borderWidth !== "none" ? `${borderWidthMap[borderWidth]} solid ${hexToRgba(resolvedBorderColor.color, resolvedBorderColor.opacity)}` : "none",
|
|
1391
|
+
borderRadius: radiusMap5[borderRadius],
|
|
1392
|
+
boxShadow: shadowMap2[shadow],
|
|
1393
|
+
padding: paddingMap2[padding]
|
|
1394
|
+
};
|
|
1395
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { id, style, children: DropZone && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropZone, { zone: "card-content" }) });
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
// components/page/Divider.tsx
|
|
1399
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1400
|
+
var thicknessMap = {
|
|
1401
|
+
thin: "1px",
|
|
1402
|
+
medium: "2px",
|
|
1403
|
+
thick: "4px"
|
|
1404
|
+
};
|
|
1405
|
+
var widthMap2 = {
|
|
1406
|
+
full: "100%",
|
|
1407
|
+
"3/4": "75%",
|
|
1408
|
+
"1/2": "50%",
|
|
1409
|
+
"1/4": "25%"
|
|
1410
|
+
};
|
|
1411
|
+
var spacingMap = {
|
|
1412
|
+
sm: "16px",
|
|
1413
|
+
md: "24px",
|
|
1414
|
+
lg: "32px",
|
|
1415
|
+
xl: "48px"
|
|
1416
|
+
};
|
|
1417
|
+
function isThemeableValue10(value) {
|
|
1418
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
1419
|
+
}
|
|
1420
|
+
function Divider({
|
|
1421
|
+
style: lineStyle = "solid",
|
|
1422
|
+
thickness = "thin",
|
|
1423
|
+
color,
|
|
1424
|
+
width = "full",
|
|
1425
|
+
align = "center",
|
|
1426
|
+
spacing = "md",
|
|
1427
|
+
id
|
|
1428
|
+
}) {
|
|
1429
|
+
const { resolveColor: resolveColor2 } = useTheme();
|
|
1430
|
+
const resolvedColor = (() => {
|
|
1431
|
+
if (!color) return resolveColor2("muted");
|
|
1432
|
+
if (typeof color === "string") return { color, opacity: 100 };
|
|
1433
|
+
if (isThemeableValue10(color)) {
|
|
1434
|
+
return color.useTheme ? resolveColor2(color.themeKey) : color.value;
|
|
1435
|
+
}
|
|
1436
|
+
if ("color" in color) return color;
|
|
1437
|
+
return resolveColor2("muted");
|
|
1438
|
+
})();
|
|
1439
|
+
const wrapperStyle = {
|
|
1440
|
+
display: "flex",
|
|
1441
|
+
justifyContent: align === "left" ? "flex-start" : align === "right" ? "flex-end" : "center",
|
|
1442
|
+
padding: `${spacingMap[spacing]} 0`
|
|
1443
|
+
};
|
|
1444
|
+
const hrStyle = {
|
|
1445
|
+
width: widthMap2[width],
|
|
1446
|
+
border: "none",
|
|
1447
|
+
borderTop: `${thicknessMap[thickness]} ${lineStyle} ${hexToRgba(resolvedColor.color, resolvedColor.opacity)}`,
|
|
1448
|
+
margin: 0
|
|
1449
|
+
};
|
|
1450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { id, style: wrapperStyle, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("hr", { style: hrStyle }) });
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
// components/page/Spacer.tsx
|
|
1454
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1455
|
+
var sizeMap4 = {
|
|
1456
|
+
xs: "8px",
|
|
1457
|
+
sm: "16px",
|
|
1458
|
+
md: "24px",
|
|
1459
|
+
lg: "32px",
|
|
1460
|
+
xl: "48px",
|
|
1461
|
+
"2xl": "64px",
|
|
1462
|
+
"3xl": "96px"
|
|
1463
|
+
};
|
|
1464
|
+
function Spacer({ size = "md", id }) {
|
|
1465
|
+
const style = {
|
|
1466
|
+
height: sizeMap4[size],
|
|
1467
|
+
width: "100%"
|
|
1468
|
+
};
|
|
1469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { id, style, "aria-hidden": "true" });
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
// components/page/TextBlock.tsx
|
|
1473
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1474
|
+
var alignmentMap = {
|
|
1475
|
+
left: "text-left",
|
|
1476
|
+
center: "text-center",
|
|
1477
|
+
right: "text-right"
|
|
1478
|
+
};
|
|
1479
|
+
var sizeMap5 = {
|
|
1480
|
+
small: "text-2xl",
|
|
1481
|
+
"medium-small": "text-3xl",
|
|
1482
|
+
medium: "text-4xl",
|
|
1483
|
+
large: "text-5xl",
|
|
1484
|
+
xlarge: "text-6xl"
|
|
1485
|
+
};
|
|
1486
|
+
function isThemeableValue11(value) {
|
|
1487
|
+
return typeof value === "object" && value !== null && "useTheme" in value;
|
|
1488
|
+
}
|
|
1489
|
+
function isEntryBoundValue6(value) {
|
|
1490
|
+
return typeof value === "object" && value !== null && "useEntry" in value;
|
|
1491
|
+
}
|
|
1492
|
+
function resolveColor(color, resolveThemeColor) {
|
|
1493
|
+
if (!color) return "#000000";
|
|
1494
|
+
if (typeof color === "string") return color;
|
|
1495
|
+
if (isThemeableValue11(color)) {
|
|
1496
|
+
if (color.useTheme) {
|
|
1497
|
+
const themeColor = resolveThemeColor(color.themeKey);
|
|
1498
|
+
return hexToRgba(themeColor.color, themeColor.opacity);
|
|
1499
|
+
}
|
|
1500
|
+
return hexToRgba(color.value.color, color.value.opacity);
|
|
1501
|
+
}
|
|
1502
|
+
if ("color" in color && "opacity" in color) {
|
|
1503
|
+
return hexToRgba(color.color, color.opacity);
|
|
1504
|
+
}
|
|
1505
|
+
return "#000000";
|
|
1506
|
+
}
|
|
1507
|
+
function resolveColorHex(color, resolveThemeColor) {
|
|
1508
|
+
if (!color) return "#000000";
|
|
1509
|
+
if (typeof color === "string") return color;
|
|
1510
|
+
if (isThemeableValue11(color)) {
|
|
1511
|
+
if (color.useTheme) {
|
|
1512
|
+
return resolveThemeColor(color.themeKey).color;
|
|
1513
|
+
}
|
|
1514
|
+
return color.value.color;
|
|
1515
|
+
}
|
|
1516
|
+
if ("color" in color) {
|
|
1517
|
+
return color.color;
|
|
1518
|
+
}
|
|
1519
|
+
return "#000000";
|
|
1520
|
+
}
|
|
1521
|
+
function TextBlock({
|
|
1522
|
+
title,
|
|
1523
|
+
subtitle,
|
|
1524
|
+
body,
|
|
1525
|
+
alignment = "left",
|
|
1526
|
+
textSize = "medium",
|
|
1527
|
+
textColor,
|
|
1528
|
+
subtitleBodyColor,
|
|
1529
|
+
useGradientText = false,
|
|
1530
|
+
gradientColor1,
|
|
1531
|
+
gradientColor2,
|
|
1532
|
+
anchorLink
|
|
1533
|
+
}) {
|
|
1534
|
+
const { resolveColor: resolveThemeColor } = useTheme();
|
|
1535
|
+
const { getEntryValue } = useEntries();
|
|
1536
|
+
const resolveText = (value) => {
|
|
1537
|
+
if (!value) return void 0;
|
|
1538
|
+
if (typeof value === "string") return value;
|
|
1539
|
+
if (isEntryBoundValue6(value)) {
|
|
1540
|
+
if (value.useEntry) {
|
|
1541
|
+
const entryVal = getEntryValue(value.entryName, value.fieldKey);
|
|
1542
|
+
return entryVal != null ? String(entryVal) : void 0;
|
|
1543
|
+
}
|
|
1544
|
+
return value.value;
|
|
1545
|
+
}
|
|
1546
|
+
return void 0;
|
|
1547
|
+
};
|
|
1548
|
+
const resolvedTitle = resolveText(title);
|
|
1549
|
+
const resolvedSubtitle = resolveText(subtitle);
|
|
1550
|
+
const resolvedBody = resolveText(body);
|
|
1551
|
+
const titleColorValue = resolveColor(textColor, resolveThemeColor);
|
|
1552
|
+
const subtitleColorValue = resolveColor(subtitleBodyColor, resolveThemeColor);
|
|
1553
|
+
const gradientStyle = useGradientText ? {
|
|
1554
|
+
backgroundImage: `linear-gradient(90deg, ${resolveColorHex(gradientColor1, resolveThemeColor)}, ${resolveColorHex(gradientColor2, resolveThemeColor)})`,
|
|
1555
|
+
WebkitBackgroundClip: "text",
|
|
1556
|
+
WebkitTextFillColor: "transparent",
|
|
1557
|
+
backgroundClip: "text"
|
|
1558
|
+
} : { color: titleColorValue };
|
|
1559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
1560
|
+
"div",
|
|
1561
|
+
{
|
|
1562
|
+
id: anchorLink,
|
|
1563
|
+
className: cn("flex flex-col gap-4", alignmentMap[alignment]),
|
|
1564
|
+
children: [
|
|
1565
|
+
resolvedTitle && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1566
|
+
"h2",
|
|
1567
|
+
{
|
|
1568
|
+
className: cn("font-bold", sizeMap5[textSize]),
|
|
1569
|
+
style: gradientStyle,
|
|
1570
|
+
children: resolvedTitle
|
|
1571
|
+
}
|
|
1572
|
+
),
|
|
1573
|
+
resolvedSubtitle && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-xl", style: { color: subtitleColorValue }, children: resolvedSubtitle }),
|
|
1574
|
+
resolvedBody && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1575
|
+
"div",
|
|
1576
|
+
{
|
|
1577
|
+
className: "prose max-w-none",
|
|
1578
|
+
style: { color: subtitleColorValue },
|
|
1579
|
+
dangerouslySetInnerHTML: { __html: resolvedBody }
|
|
1580
|
+
}
|
|
1581
|
+
)
|
|
1582
|
+
]
|
|
1583
|
+
}
|
|
1584
|
+
);
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
// components/page/CustomImage.tsx
|
|
1588
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1589
|
+
var alignmentMap2 = {
|
|
1590
|
+
left: "mr-auto",
|
|
1591
|
+
center: "mx-auto",
|
|
1592
|
+
right: "ml-auto"
|
|
1593
|
+
};
|
|
1594
|
+
function CustomImage({
|
|
1595
|
+
image,
|
|
1596
|
+
alt = "",
|
|
1597
|
+
maxWidth,
|
|
1598
|
+
alignment = "center",
|
|
1599
|
+
fitContent = false
|
|
1600
|
+
}) {
|
|
1601
|
+
if (!image) {
|
|
1602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex h-48 w-full items-center justify-center bg-gray-200 text-gray-400", children: "No image" });
|
|
1603
|
+
}
|
|
1604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
1605
|
+
"img",
|
|
1606
|
+
{
|
|
1607
|
+
src: image,
|
|
1608
|
+
alt,
|
|
1609
|
+
className: cn(
|
|
1610
|
+
"block",
|
|
1611
|
+
alignmentMap2[alignment],
|
|
1612
|
+
fitContent && "h-full w-full object-cover"
|
|
1613
|
+
),
|
|
1614
|
+
style: { maxWidth: maxWidth ? `${maxWidth}px` : void 0 }
|
|
1615
|
+
}
|
|
1616
|
+
);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// components/page/FeaturesList.tsx
|
|
1620
|
+
var import_lucide_react = require("lucide-react");
|
|
1621
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
1622
|
+
var sizeMap6 = {
|
|
1623
|
+
small: { icon: 24, title: "text-base", desc: "text-sm" },
|
|
1624
|
+
medium: { icon: 32, title: "text-lg", desc: "text-base" },
|
|
1625
|
+
large: { icon: 48, title: "text-xl", desc: "text-lg" }
|
|
1626
|
+
};
|
|
1627
|
+
function FeaturesList({
|
|
1628
|
+
features = [],
|
|
1629
|
+
align = "left",
|
|
1630
|
+
size = "medium",
|
|
1631
|
+
iconColor = "#000000",
|
|
1632
|
+
anchorLink
|
|
1633
|
+
}) {
|
|
1634
|
+
const sizeConfig = sizeMap6[size];
|
|
1635
|
+
const getIcon = (iconName) => {
|
|
1636
|
+
const formatted = iconName.charAt(0).toUpperCase() + iconName.slice(1);
|
|
1637
|
+
return import_lucide_react.icons[formatted] || null;
|
|
1638
|
+
};
|
|
1639
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1640
|
+
"div",
|
|
1641
|
+
{
|
|
1642
|
+
id: anchorLink,
|
|
1643
|
+
className: cn(
|
|
1644
|
+
"flex flex-col gap-6",
|
|
1645
|
+
align === "center" && "items-center text-center",
|
|
1646
|
+
align === "right" && "items-end text-right"
|
|
1647
|
+
),
|
|
1648
|
+
children: features.map((feature, index) => {
|
|
1649
|
+
const IconComponent = feature.icon ? getIcon(feature.icon) : null;
|
|
1650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1651
|
+
"div",
|
|
1652
|
+
{
|
|
1653
|
+
className: cn(
|
|
1654
|
+
"flex gap-4",
|
|
1655
|
+
align === "center" && "flex-col items-center",
|
|
1656
|
+
align === "right" && "flex-row-reverse"
|
|
1657
|
+
),
|
|
1658
|
+
children: [
|
|
1659
|
+
feature.image ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1660
|
+
"img",
|
|
1661
|
+
{
|
|
1662
|
+
src: feature.image,
|
|
1663
|
+
alt: feature.title || "",
|
|
1664
|
+
className: "object-contain",
|
|
1665
|
+
style: { width: sizeConfig.icon, height: sizeConfig.icon }
|
|
1666
|
+
}
|
|
1667
|
+
) : IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1668
|
+
IconComponent,
|
|
1669
|
+
{
|
|
1670
|
+
size: sizeConfig.icon,
|
|
1671
|
+
style: { color: iconColor },
|
|
1672
|
+
className: "flex-shrink-0"
|
|
1673
|
+
}
|
|
1674
|
+
) : null,
|
|
1675
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
1676
|
+
feature.title && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h3", { className: cn("font-semibold", sizeConfig.title), children: feature.title }),
|
|
1677
|
+
feature.description && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: cn("text-gray-600", sizeConfig.desc), children: feature.description })
|
|
1678
|
+
] })
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
index
|
|
1682
|
+
);
|
|
1683
|
+
})
|
|
1684
|
+
}
|
|
1685
|
+
);
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
// components/page/FeatureGrid.tsx
|
|
1689
|
+
var import_lucide_react2 = require("lucide-react");
|
|
1690
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
1691
|
+
var sizeMap7 = {
|
|
1692
|
+
small: { icon: 24, title: "text-base", desc: "text-sm" },
|
|
1693
|
+
medium: { icon: 32, title: "text-lg", desc: "text-base" },
|
|
1694
|
+
large: { icon: 48, title: "text-xl", desc: "text-lg" }
|
|
1695
|
+
};
|
|
1696
|
+
function FeatureGrid({
|
|
1697
|
+
heading,
|
|
1698
|
+
description,
|
|
1699
|
+
features = [],
|
|
1700
|
+
columns = 3,
|
|
1701
|
+
align = "left",
|
|
1702
|
+
size = "medium",
|
|
1703
|
+
iconColor = "#3B82F6",
|
|
1704
|
+
textColor = "#000000",
|
|
1705
|
+
anchorLink
|
|
1706
|
+
}) {
|
|
1707
|
+
const sizeConfig = sizeMap7[size];
|
|
1708
|
+
const getIcon = (iconName) => {
|
|
1709
|
+
const formatted = iconName.charAt(0).toUpperCase() + iconName.slice(1);
|
|
1710
|
+
return import_lucide_react2.icons[formatted] || null;
|
|
1711
|
+
};
|
|
1712
|
+
const columnClass = {
|
|
1713
|
+
2: "grid-cols-1 md:grid-cols-2",
|
|
1714
|
+
3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
1715
|
+
4: "grid-cols-1 md:grid-cols-2 lg:grid-cols-4"
|
|
1716
|
+
};
|
|
1717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { id: anchorLink, className: "flex flex-col gap-8", children: [
|
|
1718
|
+
(heading || description) && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1719
|
+
"div",
|
|
1720
|
+
{
|
|
1721
|
+
className: cn(
|
|
1722
|
+
"flex flex-col gap-2",
|
|
1723
|
+
align === "center" && "text-center",
|
|
1724
|
+
align === "right" && "text-right"
|
|
1725
|
+
),
|
|
1726
|
+
children: [
|
|
1727
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h2", { className: "text-3xl font-bold", style: { color: textColor }, children: heading }),
|
|
1728
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-gray-600", children: description })
|
|
1729
|
+
]
|
|
1730
|
+
}
|
|
1731
|
+
),
|
|
1732
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: cn("grid gap-6", columnClass[columns]), children: features.map((feature, index) => {
|
|
1733
|
+
const IconComponent = feature.icon ? getIcon(feature.icon) : null;
|
|
1734
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1735
|
+
"div",
|
|
1736
|
+
{
|
|
1737
|
+
className: cn(
|
|
1738
|
+
"flex flex-col gap-3 rounded-lg bg-gray-50 p-6",
|
|
1739
|
+
align === "center" && "items-center text-center"
|
|
1740
|
+
),
|
|
1741
|
+
children: [
|
|
1742
|
+
feature.image ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1743
|
+
"img",
|
|
1744
|
+
{
|
|
1745
|
+
src: feature.image,
|
|
1746
|
+
alt: feature.title || "",
|
|
1747
|
+
className: "object-contain",
|
|
1748
|
+
style: { width: sizeConfig.icon, height: sizeConfig.icon }
|
|
1749
|
+
}
|
|
1750
|
+
) : IconComponent ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1751
|
+
IconComponent,
|
|
1752
|
+
{
|
|
1753
|
+
size: sizeConfig.icon,
|
|
1754
|
+
style: { color: iconColor }
|
|
1755
|
+
}
|
|
1756
|
+
) : null,
|
|
1757
|
+
feature.title && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1758
|
+
"h3",
|
|
1759
|
+
{
|
|
1760
|
+
className: cn("font-semibold", sizeConfig.title),
|
|
1761
|
+
style: { color: textColor },
|
|
1762
|
+
children: feature.title
|
|
1763
|
+
}
|
|
1764
|
+
),
|
|
1765
|
+
feature.description && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: cn("text-gray-600", sizeConfig.desc), children: feature.description })
|
|
1766
|
+
]
|
|
1767
|
+
},
|
|
1768
|
+
index
|
|
1769
|
+
);
|
|
1770
|
+
}) })
|
|
1771
|
+
] });
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
// components/page/Footer.tsx
|
|
1775
|
+
var import_lucide_react3 = require("lucide-react");
|
|
1776
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1777
|
+
function Footer({
|
|
1778
|
+
logo,
|
|
1779
|
+
copyright = "\xA9 2024 Company. All rights reserved.",
|
|
1780
|
+
backgroundColor = "#111827",
|
|
1781
|
+
textColor = "#ffffff",
|
|
1782
|
+
facebookUrl,
|
|
1783
|
+
instagramUrl,
|
|
1784
|
+
twitterUrl,
|
|
1785
|
+
puck
|
|
1786
|
+
}) {
|
|
1787
|
+
const DropZone = puck?.renderDropZone;
|
|
1788
|
+
const socialLinks = [
|
|
1789
|
+
{ url: facebookUrl, Icon: import_lucide_react3.Facebook },
|
|
1790
|
+
{ url: instagramUrl, Icon: import_lucide_react3.Instagram },
|
|
1791
|
+
{ url: twitterUrl, Icon: import_lucide_react3.Twitter }
|
|
1792
|
+
].filter((link) => link.url);
|
|
1793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1794
|
+
"footer",
|
|
1795
|
+
{
|
|
1796
|
+
className: "w-full px-6 py-8",
|
|
1797
|
+
style: { backgroundColor, color: textColor },
|
|
1798
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "mx-auto flex max-w-7xl flex-col items-center justify-between gap-6 md:flex-row", children: [
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex items-center gap-4", children: logo && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("img", { src: logo, alt: "Logo", className: "h-8" }) }),
|
|
1800
|
+
DropZone && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DropZone, { zone: "footer-content" }),
|
|
1801
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex items-center gap-4", children: socialLinks.map(({ url, Icon: Icon3 }, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1802
|
+
"a",
|
|
1803
|
+
{
|
|
1804
|
+
href: url,
|
|
1805
|
+
target: "_blank",
|
|
1806
|
+
rel: "noopener noreferrer",
|
|
1807
|
+
className: "transition-opacity hover:opacity-80",
|
|
1808
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon3, { size: 24, style: { color: textColor } })
|
|
1809
|
+
},
|
|
1810
|
+
index
|
|
1811
|
+
)) }),
|
|
1812
|
+
copyright && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-sm opacity-80", children: copyright })
|
|
1813
|
+
] })
|
|
1814
|
+
}
|
|
1815
|
+
);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
// components/page/Topbar.tsx
|
|
1819
|
+
var import_react4 = require("react");
|
|
1820
|
+
var import_link = __toESM(require("next/link"));
|
|
1821
|
+
var import_lucide_react4 = require("lucide-react");
|
|
1822
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1823
|
+
function Topbar({
|
|
1824
|
+
logo,
|
|
1825
|
+
logoUrl = "/",
|
|
1826
|
+
navItems = [],
|
|
1827
|
+
backgroundColor = "#ffffff",
|
|
1828
|
+
textColor = "#000000",
|
|
1829
|
+
maxWidth = "1400px",
|
|
1830
|
+
puck
|
|
1831
|
+
}) {
|
|
1832
|
+
const DropZone = puck?.renderDropZone;
|
|
1833
|
+
const [mobileMenuOpen, setMobileMenuOpen] = (0, import_react4.useState)(false);
|
|
1834
|
+
const renderLink = (item, index) => {
|
|
1835
|
+
const className = "hover:opacity-80 transition-opacity";
|
|
1836
|
+
if (item.linkType === "external") {
|
|
1837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1838
|
+
"a",
|
|
1839
|
+
{
|
|
1840
|
+
href: item.url,
|
|
1841
|
+
target: "_blank",
|
|
1842
|
+
rel: "noopener noreferrer",
|
|
1843
|
+
className,
|
|
1844
|
+
children: item.name
|
|
1845
|
+
},
|
|
1846
|
+
index
|
|
1847
|
+
);
|
|
1848
|
+
}
|
|
1849
|
+
if (item.linkType === "scrollTo") {
|
|
1850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("a", { href: item.url, className, children: item.name }, index);
|
|
1851
|
+
}
|
|
1852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_link.default, { href: item.url, className, children: item.name }, index);
|
|
1853
|
+
};
|
|
1854
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1855
|
+
"nav",
|
|
1856
|
+
{
|
|
1857
|
+
className: "sticky top-0 z-50 w-full px-6 py-4",
|
|
1858
|
+
style: { backgroundColor, color: textColor },
|
|
1859
|
+
children: [
|
|
1860
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1861
|
+
"div",
|
|
1862
|
+
{
|
|
1863
|
+
className: "mx-auto flex items-center justify-between",
|
|
1864
|
+
style: { maxWidth },
|
|
1865
|
+
children: [
|
|
1866
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_link.default, { href: logoUrl, className: "flex-shrink-0", children: logo ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("img", { src: logo, alt: "Logo", className: "h-8" }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-xl font-bold", children: "Logo" }) }),
|
|
1867
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "hidden items-center gap-8 md:flex", children: [
|
|
1868
|
+
navItems.map(renderLink),
|
|
1869
|
+
DropZone && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DropZone, { zone: "cta" })
|
|
1870
|
+
] }),
|
|
1871
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1872
|
+
"button",
|
|
1873
|
+
{
|
|
1874
|
+
className: "md:hidden",
|
|
1875
|
+
onClick: () => setMobileMenuOpen(!mobileMenuOpen),
|
|
1876
|
+
children: mobileMenuOpen ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react4.X, { size: 24 }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_lucide_react4.Menu, { size: 24 })
|
|
1877
|
+
}
|
|
1878
|
+
)
|
|
1879
|
+
]
|
|
1880
|
+
}
|
|
1881
|
+
),
|
|
1882
|
+
mobileMenuOpen && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1883
|
+
"div",
|
|
1884
|
+
{
|
|
1885
|
+
className: "absolute top-full right-0 left-0 flex flex-col gap-4 px-6 py-4 md:hidden",
|
|
1886
|
+
style: { backgroundColor },
|
|
1887
|
+
children: [
|
|
1888
|
+
navItems.map(renderLink),
|
|
1889
|
+
DropZone && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DropZone, { zone: "cta" })
|
|
1890
|
+
]
|
|
1891
|
+
}
|
|
1892
|
+
)
|
|
1893
|
+
]
|
|
1894
|
+
}
|
|
1895
|
+
);
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
// components/page/Popup.tsx
|
|
1899
|
+
var import_react5 = require("react");
|
|
1900
|
+
var import_lucide_react5 = require("lucide-react");
|
|
1901
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1902
|
+
function Icon2({ name, ...props }) {
|
|
1903
|
+
const formatted = name.charAt(0).toUpperCase() + name.slice(1);
|
|
1904
|
+
const IconComponent = import_lucide_react5.icons[formatted];
|
|
1905
|
+
if (!IconComponent) return null;
|
|
1906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(IconComponent, { ...props });
|
|
1907
|
+
}
|
|
1908
|
+
var widthMap3 = {
|
|
1909
|
+
small: "max-w-sm",
|
|
1910
|
+
medium: "max-w-lg",
|
|
1911
|
+
large: "max-w-2xl"
|
|
1912
|
+
};
|
|
1913
|
+
var sizeMap8 = {
|
|
1914
|
+
small: "px-3 py-1.5 text-sm",
|
|
1915
|
+
medium: "px-4 py-2 text-base",
|
|
1916
|
+
large: "px-6 py-3 text-lg"
|
|
1917
|
+
};
|
|
1918
|
+
function Popup({
|
|
1919
|
+
ctaText = "Open",
|
|
1920
|
+
buttonColor = "#3B82F6",
|
|
1921
|
+
textColor = "#ffffff",
|
|
1922
|
+
icon,
|
|
1923
|
+
iconPosition = "left",
|
|
1924
|
+
size = "medium",
|
|
1925
|
+
width = "medium",
|
|
1926
|
+
textLink = false,
|
|
1927
|
+
puck
|
|
1928
|
+
}) {
|
|
1929
|
+
const [isOpen, setIsOpen] = (0, import_react5.useState)(false);
|
|
1930
|
+
const trigger = textLink ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1931
|
+
"button",
|
|
1932
|
+
{
|
|
1933
|
+
onClick: () => setIsOpen(true),
|
|
1934
|
+
className: "underline hover:opacity-80",
|
|
1935
|
+
style: { color: buttonColor },
|
|
1936
|
+
children: ctaText
|
|
1937
|
+
}
|
|
1938
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1939
|
+
"button",
|
|
1940
|
+
{
|
|
1941
|
+
onClick: () => setIsOpen(true),
|
|
1942
|
+
className: cn(
|
|
1943
|
+
"flex items-center gap-2 rounded-full font-medium",
|
|
1944
|
+
sizeMap8[size]
|
|
1945
|
+
),
|
|
1946
|
+
style: { backgroundColor: buttonColor, color: textColor },
|
|
1947
|
+
children: [
|
|
1948
|
+
icon && iconPosition === "left" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon2, { name: icon, size: 18 }),
|
|
1949
|
+
ctaText,
|
|
1950
|
+
icon && iconPosition === "right" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon2, { name: icon, size: 18 })
|
|
1951
|
+
]
|
|
1952
|
+
}
|
|
1953
|
+
);
|
|
1954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
1955
|
+
trigger,
|
|
1956
|
+
isOpen && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1957
|
+
"div",
|
|
1958
|
+
{
|
|
1959
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
1960
|
+
onClick: () => setIsOpen(false),
|
|
1961
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1962
|
+
"div",
|
|
1963
|
+
{
|
|
1964
|
+
className: cn(
|
|
1965
|
+
"relative w-full rounded-lg bg-white p-6",
|
|
1966
|
+
widthMap3[width]
|
|
1967
|
+
),
|
|
1968
|
+
onClick: (e) => e.stopPropagation(),
|
|
1969
|
+
children: [
|
|
1970
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1971
|
+
"button",
|
|
1972
|
+
{
|
|
1973
|
+
onClick: () => setIsOpen(false),
|
|
1974
|
+
className: "absolute top-4 right-4 text-gray-500 hover:text-gray-700",
|
|
1975
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_lucide_react5.X, { size: 24 })
|
|
1976
|
+
}
|
|
1977
|
+
),
|
|
1978
|
+
puck && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(puck.renderDropZone, { zone: "popup-content" })
|
|
1979
|
+
]
|
|
1980
|
+
}
|
|
1981
|
+
)
|
|
1982
|
+
}
|
|
1983
|
+
)
|
|
1984
|
+
] });
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
// design-system/borders.ts
|
|
1988
|
+
var borderRadiusScale = [
|
|
1989
|
+
{ label: "None", value: 0 },
|
|
1990
|
+
{ label: "XS", value: 2 },
|
|
1991
|
+
{ label: "SM", value: 4 },
|
|
1992
|
+
{ label: "MD", value: 6 },
|
|
1993
|
+
{ label: "LG", value: 8 },
|
|
1994
|
+
{ label: "XL", value: 12 },
|
|
1995
|
+
{ label: "2XL", value: 16 },
|
|
1996
|
+
{ label: "3XL", value: 24 }
|
|
1997
|
+
];
|
|
1998
|
+
var getClosestBorderRadiusValue = (value) => {
|
|
1999
|
+
return borderRadiusScale.reduce(
|
|
2000
|
+
(prev, curr) => Math.abs(curr.value - value) < Math.abs(prev.value - value) ? curr : prev
|
|
2001
|
+
).value;
|
|
2002
|
+
};
|
|
2003
|
+
var getBorderRadiusCSS = (value) => {
|
|
2004
|
+
return `${value}px`;
|
|
2005
|
+
};
|
|
2006
|
+
|
|
2007
|
+
// design-system/colors.ts
|
|
2008
|
+
var neutralColors = [
|
|
2009
|
+
{ label: "White", value: "#FFFFFF" },
|
|
2010
|
+
{ label: "Gray 100", value: "#F3F4F6" },
|
|
2011
|
+
{ label: "Gray 300", value: "#D1D5DB" },
|
|
2012
|
+
{ label: "Gray 500", value: "#6B7280" },
|
|
2013
|
+
{ label: "Gray 700", value: "#374151" },
|
|
2014
|
+
{ label: "Gray 900", value: "#111827" },
|
|
2015
|
+
{ label: "Black", value: "#000000" }
|
|
2016
|
+
];
|
|
2017
|
+
var allColorPresets = [...neutralColors];
|
|
2018
|
+
|
|
2019
|
+
// design-system/spacing.ts
|
|
2020
|
+
var spacingScale = [
|
|
2021
|
+
{ label: "None", value: 0 },
|
|
2022
|
+
{ label: "2XS", value: 4 },
|
|
2023
|
+
{ label: "XS", value: 8 },
|
|
2024
|
+
{ label: "SM", value: 12 },
|
|
2025
|
+
{ label: "MD", value: 16 },
|
|
2026
|
+
{ label: "LG", value: 24 },
|
|
2027
|
+
{ label: "XL", value: 32 },
|
|
2028
|
+
{ label: "2XL", value: 48 },
|
|
2029
|
+
{ label: "3XL", value: 64 },
|
|
2030
|
+
{ label: "4XL", value: 96 }
|
|
2031
|
+
];
|
|
2032
|
+
var getClosestSpacingValue = (value) => {
|
|
2033
|
+
return spacingScale.reduce(
|
|
2034
|
+
(prev, curr) => Math.abs(curr.value - value) < Math.abs(prev.value - value) ? curr : prev
|
|
2035
|
+
).value;
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
// design-system/typography.ts
|
|
2039
|
+
var fontFamilies = [
|
|
2040
|
+
{ label: "System", value: "system-ui, sans-serif" },
|
|
2041
|
+
{ label: "Sans", value: "ui-sans-serif, system-ui, sans-serif" },
|
|
2042
|
+
{ label: "Serif", value: "ui-serif, Georgia, serif" },
|
|
2043
|
+
{ label: "Mono", value: "ui-monospace, monospace" }
|
|
2044
|
+
];
|
|
2045
|
+
var fontSizes = [
|
|
2046
|
+
{ label: "XS", value: "xs", css: "0.75rem" },
|
|
2047
|
+
{ label: "SM", value: "sm", css: "0.875rem" },
|
|
2048
|
+
{ label: "Base", value: "base", css: "1rem" },
|
|
2049
|
+
{ label: "LG", value: "lg", css: "1.125rem" },
|
|
2050
|
+
{ label: "XL", value: "xl", css: "1.25rem" },
|
|
2051
|
+
{ label: "2XL", value: "2xl", css: "1.5rem" },
|
|
2052
|
+
{ label: "3XL", value: "3xl", css: "1.875rem" },
|
|
2053
|
+
{ label: "4XL", value: "4xl", css: "2.25rem" },
|
|
2054
|
+
{ label: "5XL", value: "5xl", css: "3rem" }
|
|
2055
|
+
];
|
|
2056
|
+
var fontWeights = [
|
|
2057
|
+
{ label: "Light", value: 300 },
|
|
2058
|
+
{ label: "Normal", value: 400 },
|
|
2059
|
+
{ label: "Medium", value: 500 },
|
|
2060
|
+
{ label: "Semibold", value: 600 },
|
|
2061
|
+
{ label: "Bold", value: 700 }
|
|
2062
|
+
];
|
|
2063
|
+
var getFontSizeCSS = (value) => {
|
|
2064
|
+
const preset = fontSizes.find((p) => p.value === value);
|
|
2065
|
+
return preset?.css ?? "1rem";
|
|
2066
|
+
};
|
|
2067
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
2068
|
+
0 && (module.exports = {
|
|
2069
|
+
Button,
|
|
2070
|
+
Card,
|
|
2071
|
+
Columns,
|
|
2072
|
+
Container,
|
|
2073
|
+
CustomImage,
|
|
2074
|
+
DEFAULT_THEME,
|
|
2075
|
+
Divider,
|
|
2076
|
+
FeatureGrid,
|
|
2077
|
+
FeaturesList,
|
|
2078
|
+
Footer,
|
|
2079
|
+
Heading,
|
|
2080
|
+
Icon,
|
|
2081
|
+
Image,
|
|
2082
|
+
ImageCarousel,
|
|
2083
|
+
Paragraph,
|
|
2084
|
+
Popup,
|
|
2085
|
+
Section,
|
|
2086
|
+
Spacer,
|
|
2087
|
+
TextBlock,
|
|
2088
|
+
ThemeProvider,
|
|
2089
|
+
Topbar,
|
|
2090
|
+
VideoEmbed,
|
|
2091
|
+
allColorPresets,
|
|
2092
|
+
availableIcons,
|
|
2093
|
+
borderRadiusScale,
|
|
2094
|
+
fontFamilies,
|
|
2095
|
+
fontSizes,
|
|
2096
|
+
fontWeights,
|
|
2097
|
+
getBorderRadiusCSS,
|
|
2098
|
+
getClosestBorderRadiusValue,
|
|
2099
|
+
getClosestSpacingValue,
|
|
2100
|
+
getFontSizeCSS,
|
|
2101
|
+
getShadowCSS,
|
|
2102
|
+
neutralColors,
|
|
2103
|
+
shadowPresets,
|
|
2104
|
+
spacingScale,
|
|
2105
|
+
useTheme
|
|
2106
|
+
});
|