@chaibuilder/sdk 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/{AddBlocks-d5a8235d.js → AddBlocks-b2d43d6c.js} +5 -6
  2. package/dist/AddBlocks-b510ac3a.cjs +3 -0
  3. package/dist/BrandingOptions-6fbe4b26.cjs +1 -0
  4. package/dist/{BrandingOptions-e77f91bc.js → BrandingOptions-7f66e02c.js} +5 -6
  5. package/dist/{CanvasArea-50356121.js → CanvasArea-68841a13.js} +10 -11
  6. package/dist/{CanvasArea-a09ed911.cjs → CanvasArea-a8d28eb3.cjs} +6 -6
  7. package/dist/{CurrentPage-0dd3a1fe.js → CurrentPage-6655ce50.js} +5 -6
  8. package/dist/CurrentPage-c10e6c89.cjs +1 -0
  9. package/dist/Layers-595cc98e.cjs +1 -0
  10. package/dist/{Layers-e17bbf6a.js → Layers-99bdc689.js} +48 -49
  11. package/dist/{MODIFIERS-c2e02614.js → MODIFIERS-2f19c314.js} +13 -7
  12. package/dist/MODIFIERS-4716c669.cjs +1 -0
  13. package/dist/{MarkAsGlobalBlock-3a58a10b.js → MarkAsGlobalBlock-522e170a.js} +5 -6
  14. package/dist/MarkAsGlobalBlock-ea769ea4.cjs +1 -0
  15. package/dist/{PagesPanel-68bb4554.js → PagesPanel-b0debeed.js} +5 -6
  16. package/dist/PagesPanel-e176d7e8.cjs +1 -0
  17. package/dist/{ProjectPanel-decfe6bb.js → ProjectPanel-9cec967c.js} +6 -7
  18. package/dist/ProjectPanel-d0f33df2.cjs +1 -0
  19. package/dist/Settings-208ab051.cjs +1 -0
  20. package/dist/{Settings-27bb6012.js → Settings-fd1e3b5d.js} +82 -83
  21. package/dist/SidePanels-40966390.cjs +1 -0
  22. package/dist/{SidePanels-839ecfae.js → SidePanels-ca294b35.js} +6 -7
  23. package/dist/{Topbar-d3dc4a34.js → Topbar-1edef1b2.js} +15 -16
  24. package/dist/Topbar-75c99c88.cjs +1 -0
  25. package/dist/add-page-modal-18f134c0.cjs +1 -0
  26. package/dist/{add-page-modal-da3e0ad5.js → add-page-modal-9985b5ce.js} +5 -6
  27. package/dist/core.cjs +1 -1
  28. package/dist/core.d.ts +1 -1
  29. package/dist/core.js +56 -57
  30. package/dist/delete-page-modal-393697d7.cjs +1 -0
  31. package/dist/{delete-page-modal-3aa66051.js → delete-page-modal-98272bf5.js} +8 -9
  32. package/dist/functions-83b1de8d.js +1106 -0
  33. package/dist/functions-f84d5e2a.cjs +2 -0
  34. package/dist/{html-to-json-8397fab5.js → html-to-json-45e0e3b5.js} +1 -1
  35. package/dist/{html-to-json-78bfa1f3.cjs → html-to-json-aadcbf66.cjs} +1 -1
  36. package/dist/{index-ca7c3430.js → index-436bba3e.js} +110 -111
  37. package/dist/{index-976ec896.cjs → index-c3a98a78.cjs} +40 -40
  38. package/dist/lib.cjs +1 -1
  39. package/dist/lib.d.ts +39 -1
  40. package/dist/lib.js +56 -45
  41. package/dist/page-viewer-32261f49.cjs +1 -0
  42. package/dist/{page-viewer-3e7a6d70.js → page-viewer-a3ac057a.js} +16 -17
  43. package/dist/{project-general-setting-c8aa9370.js → project-general-setting-21e324a9.js} +5 -6
  44. package/dist/project-general-setting-75a8e94b.cjs +1 -0
  45. package/dist/render.cjs +1 -2
  46. package/dist/render.d.ts +16 -17
  47. package/dist/render.js +88 -1169
  48. package/dist/server.cjs +1 -1
  49. package/dist/server.d.ts +21 -1
  50. package/dist/server.js +47 -35
  51. package/dist/{single-page-detail-55638cb1.js → single-page-detail-0e881b82.js} +6 -7
  52. package/dist/single-page-detail-649b1379.cjs +1 -0
  53. package/package.json +1 -1
  54. package/dist/AddBlocks-6fc9d7de.cjs +0 -3
  55. package/dist/BrandingOptions-e44ef105.cjs +0 -1
  56. package/dist/CurrentPage-19086054.cjs +0 -1
  57. package/dist/Layers-2dd7336a.cjs +0 -1
  58. package/dist/MODIFIERS-70fef873.cjs +0 -1
  59. package/dist/MarkAsGlobalBlock-d4fe0af6.cjs +0 -1
  60. package/dist/PagesPanel-fa54f8c4.cjs +0 -1
  61. package/dist/ProjectPanel-750e4a4f.cjs +0 -1
  62. package/dist/Settings-c18e276b.cjs +0 -1
  63. package/dist/SidePanels-90ac74bf.cjs +0 -1
  64. package/dist/Topbar-57cd1611.cjs +0 -1
  65. package/dist/_commonjsHelpers-10dfc225.js +0 -8
  66. package/dist/_commonjsHelpers-87b0abe8.cjs +0 -1
  67. package/dist/add-page-modal-f49ebaf3.cjs +0 -1
  68. package/dist/delete-page-modal-6667ee2b.cjs +0 -1
  69. package/dist/page-viewer-5f00c933.cjs +0 -1
  70. package/dist/project-general-setting-a23cc2c4.cjs +0 -1
  71. package/dist/single-page-detail-a4b59a16.cjs +0 -1
@@ -0,0 +1,1106 @@
1
+ import { get as s, includes as c, last as h, replace as y, set as u, startsWith as w } from "lodash";
2
+ import { createTailwindcss as k } from "@mhsdesign/jit-browser-tailwindcss";
3
+ import { tailwindcssPaletteGenerator as C } from "@bobthered/tailwindcss-palette-generator";
4
+ import { g as z, S as x } from "./MODIFIERS-2f19c314.js";
5
+ import F from "@tailwindcss/forms";
6
+ import T from "@tailwindcss/typography";
7
+ import S from "@tailwindcss/aspect-ratio";
8
+ import D from "@tailwindcss/line-clamp";
9
+ var f = {}, b = {};
10
+ (function(e) {
11
+ Object.defineProperty(e, "__esModule", {
12
+ value: !0
13
+ }), Object.defineProperty(e, "cloneDeep", {
14
+ enumerable: !0,
15
+ get: function() {
16
+ return t;
17
+ }
18
+ });
19
+ function t(r) {
20
+ return Array.isArray(r) ? r.map((n) => t(n)) : typeof r == "object" && r !== null ? Object.fromEntries(Object.entries(r).map(([n, o]) => [
21
+ n,
22
+ t(o)
23
+ ])) : r;
24
+ }
25
+ })(b);
26
+ var v = {
27
+ content: [],
28
+ presets: [],
29
+ darkMode: "media",
30
+ // or 'class'
31
+ theme: {
32
+ accentColor: ({ theme: e }) => ({
33
+ ...e("colors"),
34
+ auto: "auto"
35
+ }),
36
+ animation: {
37
+ none: "none",
38
+ spin: "spin 1s linear infinite",
39
+ ping: "ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",
40
+ pulse: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
41
+ bounce: "bounce 1s infinite"
42
+ },
43
+ aria: {
44
+ busy: 'busy="true"',
45
+ checked: 'checked="true"',
46
+ disabled: 'disabled="true"',
47
+ expanded: 'expanded="true"',
48
+ hidden: 'hidden="true"',
49
+ pressed: 'pressed="true"',
50
+ readonly: 'readonly="true"',
51
+ required: 'required="true"',
52
+ selected: 'selected="true"'
53
+ },
54
+ aspectRatio: {
55
+ auto: "auto",
56
+ square: "1 / 1",
57
+ video: "16 / 9"
58
+ },
59
+ backdropBlur: ({ theme: e }) => e("blur"),
60
+ backdropBrightness: ({ theme: e }) => e("brightness"),
61
+ backdropContrast: ({ theme: e }) => e("contrast"),
62
+ backdropGrayscale: ({ theme: e }) => e("grayscale"),
63
+ backdropHueRotate: ({ theme: e }) => e("hueRotate"),
64
+ backdropInvert: ({ theme: e }) => e("invert"),
65
+ backdropOpacity: ({ theme: e }) => e("opacity"),
66
+ backdropSaturate: ({ theme: e }) => e("saturate"),
67
+ backdropSepia: ({ theme: e }) => e("sepia"),
68
+ backgroundColor: ({ theme: e }) => e("colors"),
69
+ backgroundImage: {
70
+ none: "none",
71
+ "gradient-to-t": "linear-gradient(to top, var(--tw-gradient-stops))",
72
+ "gradient-to-tr": "linear-gradient(to top right, var(--tw-gradient-stops))",
73
+ "gradient-to-r": "linear-gradient(to right, var(--tw-gradient-stops))",
74
+ "gradient-to-br": "linear-gradient(to bottom right, var(--tw-gradient-stops))",
75
+ "gradient-to-b": "linear-gradient(to bottom, var(--tw-gradient-stops))",
76
+ "gradient-to-bl": "linear-gradient(to bottom left, var(--tw-gradient-stops))",
77
+ "gradient-to-l": "linear-gradient(to left, var(--tw-gradient-stops))",
78
+ "gradient-to-tl": "linear-gradient(to top left, var(--tw-gradient-stops))"
79
+ },
80
+ backgroundOpacity: ({ theme: e }) => e("opacity"),
81
+ backgroundPosition: {
82
+ bottom: "bottom",
83
+ center: "center",
84
+ left: "left",
85
+ "left-bottom": "left bottom",
86
+ "left-top": "left top",
87
+ right: "right",
88
+ "right-bottom": "right bottom",
89
+ "right-top": "right top",
90
+ top: "top"
91
+ },
92
+ backgroundSize: {
93
+ auto: "auto",
94
+ cover: "cover",
95
+ contain: "contain"
96
+ },
97
+ blur: {
98
+ 0: "0",
99
+ none: "0",
100
+ sm: "4px",
101
+ DEFAULT: "8px",
102
+ md: "12px",
103
+ lg: "16px",
104
+ xl: "24px",
105
+ "2xl": "40px",
106
+ "3xl": "64px"
107
+ },
108
+ borderColor: ({ theme: e }) => ({
109
+ ...e("colors"),
110
+ DEFAULT: e("colors.gray.200", "currentColor")
111
+ }),
112
+ borderOpacity: ({ theme: e }) => e("opacity"),
113
+ borderRadius: {
114
+ none: "0px",
115
+ sm: "0.125rem",
116
+ DEFAULT: "0.25rem",
117
+ md: "0.375rem",
118
+ lg: "0.5rem",
119
+ xl: "0.75rem",
120
+ "2xl": "1rem",
121
+ "3xl": "1.5rem",
122
+ full: "9999px"
123
+ },
124
+ borderSpacing: ({ theme: e }) => ({
125
+ ...e("spacing")
126
+ }),
127
+ borderWidth: {
128
+ DEFAULT: "1px",
129
+ 0: "0px",
130
+ 2: "2px",
131
+ 4: "4px",
132
+ 8: "8px"
133
+ },
134
+ boxShadow: {
135
+ sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
136
+ DEFAULT: "0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
137
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
138
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
139
+ xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
140
+ "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
141
+ inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
142
+ none: "none"
143
+ },
144
+ boxShadowColor: ({ theme: e }) => e("colors"),
145
+ brightness: {
146
+ 0: "0",
147
+ 50: ".5",
148
+ 75: ".75",
149
+ 90: ".9",
150
+ 95: ".95",
151
+ 100: "1",
152
+ 105: "1.05",
153
+ 110: "1.1",
154
+ 125: "1.25",
155
+ 150: "1.5",
156
+ 200: "2"
157
+ },
158
+ caretColor: ({ theme: e }) => e("colors"),
159
+ colors: ({ colors: e }) => ({
160
+ inherit: e.inherit,
161
+ current: e.current,
162
+ transparent: e.transparent,
163
+ black: e.black,
164
+ white: e.white,
165
+ slate: e.slate,
166
+ gray: e.gray,
167
+ zinc: e.zinc,
168
+ neutral: e.neutral,
169
+ stone: e.stone,
170
+ red: e.red,
171
+ orange: e.orange,
172
+ amber: e.amber,
173
+ yellow: e.yellow,
174
+ lime: e.lime,
175
+ green: e.green,
176
+ emerald: e.emerald,
177
+ teal: e.teal,
178
+ cyan: e.cyan,
179
+ sky: e.sky,
180
+ blue: e.blue,
181
+ indigo: e.indigo,
182
+ violet: e.violet,
183
+ purple: e.purple,
184
+ fuchsia: e.fuchsia,
185
+ pink: e.pink,
186
+ rose: e.rose
187
+ }),
188
+ columns: {
189
+ auto: "auto",
190
+ 1: "1",
191
+ 2: "2",
192
+ 3: "3",
193
+ 4: "4",
194
+ 5: "5",
195
+ 6: "6",
196
+ 7: "7",
197
+ 8: "8",
198
+ 9: "9",
199
+ 10: "10",
200
+ 11: "11",
201
+ 12: "12",
202
+ "3xs": "16rem",
203
+ "2xs": "18rem",
204
+ xs: "20rem",
205
+ sm: "24rem",
206
+ md: "28rem",
207
+ lg: "32rem",
208
+ xl: "36rem",
209
+ "2xl": "42rem",
210
+ "3xl": "48rem",
211
+ "4xl": "56rem",
212
+ "5xl": "64rem",
213
+ "6xl": "72rem",
214
+ "7xl": "80rem"
215
+ },
216
+ container: {},
217
+ content: {
218
+ none: "none"
219
+ },
220
+ contrast: {
221
+ 0: "0",
222
+ 50: ".5",
223
+ 75: ".75",
224
+ 100: "1",
225
+ 125: "1.25",
226
+ 150: "1.5",
227
+ 200: "2"
228
+ },
229
+ cursor: {
230
+ auto: "auto",
231
+ default: "default",
232
+ pointer: "pointer",
233
+ wait: "wait",
234
+ text: "text",
235
+ move: "move",
236
+ help: "help",
237
+ "not-allowed": "not-allowed",
238
+ none: "none",
239
+ "context-menu": "context-menu",
240
+ progress: "progress",
241
+ cell: "cell",
242
+ crosshair: "crosshair",
243
+ "vertical-text": "vertical-text",
244
+ alias: "alias",
245
+ copy: "copy",
246
+ "no-drop": "no-drop",
247
+ grab: "grab",
248
+ grabbing: "grabbing",
249
+ "all-scroll": "all-scroll",
250
+ "col-resize": "col-resize",
251
+ "row-resize": "row-resize",
252
+ "n-resize": "n-resize",
253
+ "e-resize": "e-resize",
254
+ "s-resize": "s-resize",
255
+ "w-resize": "w-resize",
256
+ "ne-resize": "ne-resize",
257
+ "nw-resize": "nw-resize",
258
+ "se-resize": "se-resize",
259
+ "sw-resize": "sw-resize",
260
+ "ew-resize": "ew-resize",
261
+ "ns-resize": "ns-resize",
262
+ "nesw-resize": "nesw-resize",
263
+ "nwse-resize": "nwse-resize",
264
+ "zoom-in": "zoom-in",
265
+ "zoom-out": "zoom-out"
266
+ },
267
+ divideColor: ({ theme: e }) => e("borderColor"),
268
+ divideOpacity: ({ theme: e }) => e("borderOpacity"),
269
+ divideWidth: ({ theme: e }) => e("borderWidth"),
270
+ dropShadow: {
271
+ sm: "0 1px 1px rgb(0 0 0 / 0.05)",
272
+ DEFAULT: ["0 1px 2px rgb(0 0 0 / 0.1)", "0 1px 1px rgb(0 0 0 / 0.06)"],
273
+ md: ["0 4px 3px rgb(0 0 0 / 0.07)", "0 2px 2px rgb(0 0 0 / 0.06)"],
274
+ lg: ["0 10px 8px rgb(0 0 0 / 0.04)", "0 4px 3px rgb(0 0 0 / 0.1)"],
275
+ xl: ["0 20px 13px rgb(0 0 0 / 0.03)", "0 8px 5px rgb(0 0 0 / 0.08)"],
276
+ "2xl": "0 25px 25px rgb(0 0 0 / 0.15)",
277
+ none: "0 0 #0000"
278
+ },
279
+ fill: ({ theme: e }) => ({
280
+ none: "none",
281
+ ...e("colors")
282
+ }),
283
+ flex: {
284
+ 1: "1 1 0%",
285
+ auto: "1 1 auto",
286
+ initial: "0 1 auto",
287
+ none: "none"
288
+ },
289
+ flexBasis: ({ theme: e }) => ({
290
+ auto: "auto",
291
+ ...e("spacing"),
292
+ "1/2": "50%",
293
+ "1/3": "33.333333%",
294
+ "2/3": "66.666667%",
295
+ "1/4": "25%",
296
+ "2/4": "50%",
297
+ "3/4": "75%",
298
+ "1/5": "20%",
299
+ "2/5": "40%",
300
+ "3/5": "60%",
301
+ "4/5": "80%",
302
+ "1/6": "16.666667%",
303
+ "2/6": "33.333333%",
304
+ "3/6": "50%",
305
+ "4/6": "66.666667%",
306
+ "5/6": "83.333333%",
307
+ "1/12": "8.333333%",
308
+ "2/12": "16.666667%",
309
+ "3/12": "25%",
310
+ "4/12": "33.333333%",
311
+ "5/12": "41.666667%",
312
+ "6/12": "50%",
313
+ "7/12": "58.333333%",
314
+ "8/12": "66.666667%",
315
+ "9/12": "75%",
316
+ "10/12": "83.333333%",
317
+ "11/12": "91.666667%",
318
+ full: "100%"
319
+ }),
320
+ flexGrow: {
321
+ 0: "0",
322
+ DEFAULT: "1"
323
+ },
324
+ flexShrink: {
325
+ 0: "0",
326
+ DEFAULT: "1"
327
+ },
328
+ fontFamily: {
329
+ sans: [
330
+ "ui-sans-serif",
331
+ "system-ui",
332
+ "-apple-system",
333
+ "BlinkMacSystemFont",
334
+ '"Segoe UI"',
335
+ "Roboto",
336
+ '"Helvetica Neue"',
337
+ "Arial",
338
+ '"Noto Sans"',
339
+ "sans-serif",
340
+ '"Apple Color Emoji"',
341
+ '"Segoe UI Emoji"',
342
+ '"Segoe UI Symbol"',
343
+ '"Noto Color Emoji"'
344
+ ],
345
+ serif: ["ui-serif", "Georgia", "Cambria", '"Times New Roman"', "Times", "serif"],
346
+ mono: [
347
+ "ui-monospace",
348
+ "SFMono-Regular",
349
+ "Menlo",
350
+ "Monaco",
351
+ "Consolas",
352
+ '"Liberation Mono"',
353
+ '"Courier New"',
354
+ "monospace"
355
+ ]
356
+ },
357
+ fontSize: {
358
+ xs: ["0.75rem", { lineHeight: "1rem" }],
359
+ sm: ["0.875rem", { lineHeight: "1.25rem" }],
360
+ base: ["1rem", { lineHeight: "1.5rem" }],
361
+ lg: ["1.125rem", { lineHeight: "1.75rem" }],
362
+ xl: ["1.25rem", { lineHeight: "1.75rem" }],
363
+ "2xl": ["1.5rem", { lineHeight: "2rem" }],
364
+ "3xl": ["1.875rem", { lineHeight: "2.25rem" }],
365
+ "4xl": ["2.25rem", { lineHeight: "2.5rem" }],
366
+ "5xl": ["3rem", { lineHeight: "1" }],
367
+ "6xl": ["3.75rem", { lineHeight: "1" }],
368
+ "7xl": ["4.5rem", { lineHeight: "1" }],
369
+ "8xl": ["6rem", { lineHeight: "1" }],
370
+ "9xl": ["8rem", { lineHeight: "1" }]
371
+ },
372
+ fontWeight: {
373
+ thin: "100",
374
+ extralight: "200",
375
+ light: "300",
376
+ normal: "400",
377
+ medium: "500",
378
+ semibold: "600",
379
+ bold: "700",
380
+ extrabold: "800",
381
+ black: "900"
382
+ },
383
+ gap: ({ theme: e }) => e("spacing"),
384
+ gradientColorStops: ({ theme: e }) => e("colors"),
385
+ gradientColorStopPositions: {
386
+ "0%": "0%",
387
+ "5%": "5%",
388
+ "10%": "10%",
389
+ "15%": "15%",
390
+ "20%": "20%",
391
+ "25%": "25%",
392
+ "30%": "30%",
393
+ "35%": "35%",
394
+ "40%": "40%",
395
+ "45%": "45%",
396
+ "50%": "50%",
397
+ "55%": "55%",
398
+ "60%": "60%",
399
+ "65%": "65%",
400
+ "70%": "70%",
401
+ "75%": "75%",
402
+ "80%": "80%",
403
+ "85%": "85%",
404
+ "90%": "90%",
405
+ "95%": "95%",
406
+ "100%": "100%"
407
+ },
408
+ grayscale: {
409
+ 0: "0",
410
+ DEFAULT: "100%"
411
+ },
412
+ gridAutoColumns: {
413
+ auto: "auto",
414
+ min: "min-content",
415
+ max: "max-content",
416
+ fr: "minmax(0, 1fr)"
417
+ },
418
+ gridAutoRows: {
419
+ auto: "auto",
420
+ min: "min-content",
421
+ max: "max-content",
422
+ fr: "minmax(0, 1fr)"
423
+ },
424
+ gridColumn: {
425
+ auto: "auto",
426
+ "span-1": "span 1 / span 1",
427
+ "span-2": "span 2 / span 2",
428
+ "span-3": "span 3 / span 3",
429
+ "span-4": "span 4 / span 4",
430
+ "span-5": "span 5 / span 5",
431
+ "span-6": "span 6 / span 6",
432
+ "span-7": "span 7 / span 7",
433
+ "span-8": "span 8 / span 8",
434
+ "span-9": "span 9 / span 9",
435
+ "span-10": "span 10 / span 10",
436
+ "span-11": "span 11 / span 11",
437
+ "span-12": "span 12 / span 12",
438
+ "span-full": "1 / -1"
439
+ },
440
+ gridColumnEnd: {
441
+ auto: "auto",
442
+ 1: "1",
443
+ 2: "2",
444
+ 3: "3",
445
+ 4: "4",
446
+ 5: "5",
447
+ 6: "6",
448
+ 7: "7",
449
+ 8: "8",
450
+ 9: "9",
451
+ 10: "10",
452
+ 11: "11",
453
+ 12: "12",
454
+ 13: "13"
455
+ },
456
+ gridColumnStart: {
457
+ auto: "auto",
458
+ 1: "1",
459
+ 2: "2",
460
+ 3: "3",
461
+ 4: "4",
462
+ 5: "5",
463
+ 6: "6",
464
+ 7: "7",
465
+ 8: "8",
466
+ 9: "9",
467
+ 10: "10",
468
+ 11: "11",
469
+ 12: "12",
470
+ 13: "13"
471
+ },
472
+ gridRow: {
473
+ auto: "auto",
474
+ "span-1": "span 1 / span 1",
475
+ "span-2": "span 2 / span 2",
476
+ "span-3": "span 3 / span 3",
477
+ "span-4": "span 4 / span 4",
478
+ "span-5": "span 5 / span 5",
479
+ "span-6": "span 6 / span 6",
480
+ "span-full": "1 / -1"
481
+ },
482
+ gridRowEnd: {
483
+ auto: "auto",
484
+ 1: "1",
485
+ 2: "2",
486
+ 3: "3",
487
+ 4: "4",
488
+ 5: "5",
489
+ 6: "6",
490
+ 7: "7"
491
+ },
492
+ gridRowStart: {
493
+ auto: "auto",
494
+ 1: "1",
495
+ 2: "2",
496
+ 3: "3",
497
+ 4: "4",
498
+ 5: "5",
499
+ 6: "6",
500
+ 7: "7"
501
+ },
502
+ gridTemplateColumns: {
503
+ none: "none",
504
+ 1: "repeat(1, minmax(0, 1fr))",
505
+ 2: "repeat(2, minmax(0, 1fr))",
506
+ 3: "repeat(3, minmax(0, 1fr))",
507
+ 4: "repeat(4, minmax(0, 1fr))",
508
+ 5: "repeat(5, minmax(0, 1fr))",
509
+ 6: "repeat(6, minmax(0, 1fr))",
510
+ 7: "repeat(7, minmax(0, 1fr))",
511
+ 8: "repeat(8, minmax(0, 1fr))",
512
+ 9: "repeat(9, minmax(0, 1fr))",
513
+ 10: "repeat(10, minmax(0, 1fr))",
514
+ 11: "repeat(11, minmax(0, 1fr))",
515
+ 12: "repeat(12, minmax(0, 1fr))"
516
+ },
517
+ gridTemplateRows: {
518
+ none: "none",
519
+ 1: "repeat(1, minmax(0, 1fr))",
520
+ 2: "repeat(2, minmax(0, 1fr))",
521
+ 3: "repeat(3, minmax(0, 1fr))",
522
+ 4: "repeat(4, minmax(0, 1fr))",
523
+ 5: "repeat(5, minmax(0, 1fr))",
524
+ 6: "repeat(6, minmax(0, 1fr))"
525
+ },
526
+ height: ({ theme: e }) => ({
527
+ auto: "auto",
528
+ ...e("spacing"),
529
+ "1/2": "50%",
530
+ "1/3": "33.333333%",
531
+ "2/3": "66.666667%",
532
+ "1/4": "25%",
533
+ "2/4": "50%",
534
+ "3/4": "75%",
535
+ "1/5": "20%",
536
+ "2/5": "40%",
537
+ "3/5": "60%",
538
+ "4/5": "80%",
539
+ "1/6": "16.666667%",
540
+ "2/6": "33.333333%",
541
+ "3/6": "50%",
542
+ "4/6": "66.666667%",
543
+ "5/6": "83.333333%",
544
+ full: "100%",
545
+ screen: "100vh",
546
+ min: "min-content",
547
+ max: "max-content",
548
+ fit: "fit-content"
549
+ }),
550
+ hueRotate: {
551
+ 0: "0deg",
552
+ 15: "15deg",
553
+ 30: "30deg",
554
+ 60: "60deg",
555
+ 90: "90deg",
556
+ 180: "180deg"
557
+ },
558
+ inset: ({ theme: e }) => ({
559
+ auto: "auto",
560
+ ...e("spacing"),
561
+ "1/2": "50%",
562
+ "1/3": "33.333333%",
563
+ "2/3": "66.666667%",
564
+ "1/4": "25%",
565
+ "2/4": "50%",
566
+ "3/4": "75%",
567
+ full: "100%"
568
+ }),
569
+ invert: {
570
+ 0: "0",
571
+ DEFAULT: "100%"
572
+ },
573
+ keyframes: {
574
+ spin: {
575
+ to: {
576
+ transform: "rotate(360deg)"
577
+ }
578
+ },
579
+ ping: {
580
+ "75%, 100%": {
581
+ transform: "scale(2)",
582
+ opacity: "0"
583
+ }
584
+ },
585
+ pulse: {
586
+ "50%": {
587
+ opacity: ".5"
588
+ }
589
+ },
590
+ bounce: {
591
+ "0%, 100%": {
592
+ transform: "translateY(-25%)",
593
+ animationTimingFunction: "cubic-bezier(0.8,0,1,1)"
594
+ },
595
+ "50%": {
596
+ transform: "none",
597
+ animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
598
+ }
599
+ }
600
+ },
601
+ letterSpacing: {
602
+ tighter: "-0.05em",
603
+ tight: "-0.025em",
604
+ normal: "0em",
605
+ wide: "0.025em",
606
+ wider: "0.05em",
607
+ widest: "0.1em"
608
+ },
609
+ lineHeight: {
610
+ none: "1",
611
+ tight: "1.25",
612
+ snug: "1.375",
613
+ normal: "1.5",
614
+ relaxed: "1.625",
615
+ loose: "2",
616
+ 3: ".75rem",
617
+ 4: "1rem",
618
+ 5: "1.25rem",
619
+ 6: "1.5rem",
620
+ 7: "1.75rem",
621
+ 8: "2rem",
622
+ 9: "2.25rem",
623
+ 10: "2.5rem"
624
+ },
625
+ listStyleType: {
626
+ none: "none",
627
+ disc: "disc",
628
+ decimal: "decimal"
629
+ },
630
+ listStyleImage: {
631
+ none: "none"
632
+ },
633
+ margin: ({ theme: e }) => ({
634
+ auto: "auto",
635
+ ...e("spacing")
636
+ }),
637
+ lineClamp: {
638
+ 1: "1",
639
+ 2: "2",
640
+ 3: "3",
641
+ 4: "4",
642
+ 5: "5",
643
+ 6: "6"
644
+ },
645
+ maxHeight: ({ theme: e }) => ({
646
+ ...e("spacing"),
647
+ none: "none",
648
+ full: "100%",
649
+ screen: "100vh",
650
+ min: "min-content",
651
+ max: "max-content",
652
+ fit: "fit-content"
653
+ }),
654
+ maxWidth: ({ theme: e, breakpoints: t }) => ({
655
+ none: "none",
656
+ 0: "0rem",
657
+ xs: "20rem",
658
+ sm: "24rem",
659
+ md: "28rem",
660
+ lg: "32rem",
661
+ xl: "36rem",
662
+ "2xl": "42rem",
663
+ "3xl": "48rem",
664
+ "4xl": "56rem",
665
+ "5xl": "64rem",
666
+ "6xl": "72rem",
667
+ "7xl": "80rem",
668
+ full: "100%",
669
+ min: "min-content",
670
+ max: "max-content",
671
+ fit: "fit-content",
672
+ prose: "65ch",
673
+ ...t(e("screens"))
674
+ }),
675
+ minHeight: {
676
+ 0: "0px",
677
+ full: "100%",
678
+ screen: "100vh",
679
+ min: "min-content",
680
+ max: "max-content",
681
+ fit: "fit-content"
682
+ },
683
+ minWidth: {
684
+ 0: "0px",
685
+ full: "100%",
686
+ min: "min-content",
687
+ max: "max-content",
688
+ fit: "fit-content"
689
+ },
690
+ objectPosition: {
691
+ bottom: "bottom",
692
+ center: "center",
693
+ left: "left",
694
+ "left-bottom": "left bottom",
695
+ "left-top": "left top",
696
+ right: "right",
697
+ "right-bottom": "right bottom",
698
+ "right-top": "right top",
699
+ top: "top"
700
+ },
701
+ opacity: {
702
+ 0: "0",
703
+ 5: "0.05",
704
+ 10: "0.1",
705
+ 20: "0.2",
706
+ 25: "0.25",
707
+ 30: "0.3",
708
+ 40: "0.4",
709
+ 50: "0.5",
710
+ 60: "0.6",
711
+ 70: "0.7",
712
+ 75: "0.75",
713
+ 80: "0.8",
714
+ 90: "0.9",
715
+ 95: "0.95",
716
+ 100: "1"
717
+ },
718
+ order: {
719
+ first: "-9999",
720
+ last: "9999",
721
+ none: "0",
722
+ 1: "1",
723
+ 2: "2",
724
+ 3: "3",
725
+ 4: "4",
726
+ 5: "5",
727
+ 6: "6",
728
+ 7: "7",
729
+ 8: "8",
730
+ 9: "9",
731
+ 10: "10",
732
+ 11: "11",
733
+ 12: "12"
734
+ },
735
+ outlineColor: ({ theme: e }) => e("colors"),
736
+ outlineOffset: {
737
+ 0: "0px",
738
+ 1: "1px",
739
+ 2: "2px",
740
+ 4: "4px",
741
+ 8: "8px"
742
+ },
743
+ outlineWidth: {
744
+ 0: "0px",
745
+ 1: "1px",
746
+ 2: "2px",
747
+ 4: "4px",
748
+ 8: "8px"
749
+ },
750
+ padding: ({ theme: e }) => e("spacing"),
751
+ placeholderColor: ({ theme: e }) => e("colors"),
752
+ placeholderOpacity: ({ theme: e }) => e("opacity"),
753
+ ringColor: ({ theme: e }) => ({
754
+ DEFAULT: e("colors.blue.500", "#3b82f6"),
755
+ ...e("colors")
756
+ }),
757
+ ringOffsetColor: ({ theme: e }) => e("colors"),
758
+ ringOffsetWidth: {
759
+ 0: "0px",
760
+ 1: "1px",
761
+ 2: "2px",
762
+ 4: "4px",
763
+ 8: "8px"
764
+ },
765
+ ringOpacity: ({ theme: e }) => ({
766
+ DEFAULT: "0.5",
767
+ ...e("opacity")
768
+ }),
769
+ ringWidth: {
770
+ DEFAULT: "3px",
771
+ 0: "0px",
772
+ 1: "1px",
773
+ 2: "2px",
774
+ 4: "4px",
775
+ 8: "8px"
776
+ },
777
+ rotate: {
778
+ 0: "0deg",
779
+ 1: "1deg",
780
+ 2: "2deg",
781
+ 3: "3deg",
782
+ 6: "6deg",
783
+ 12: "12deg",
784
+ 45: "45deg",
785
+ 90: "90deg",
786
+ 180: "180deg"
787
+ },
788
+ saturate: {
789
+ 0: "0",
790
+ 50: ".5",
791
+ 100: "1",
792
+ 150: "1.5",
793
+ 200: "2"
794
+ },
795
+ scale: {
796
+ 0: "0",
797
+ 50: ".5",
798
+ 75: ".75",
799
+ 90: ".9",
800
+ 95: ".95",
801
+ 100: "1",
802
+ 105: "1.05",
803
+ 110: "1.1",
804
+ 125: "1.25",
805
+ 150: "1.5"
806
+ },
807
+ screens: {
808
+ sm: "640px",
809
+ md: "768px",
810
+ lg: "1024px",
811
+ xl: "1280px",
812
+ "2xl": "1536px"
813
+ },
814
+ scrollMargin: ({ theme: e }) => ({
815
+ ...e("spacing")
816
+ }),
817
+ scrollPadding: ({ theme: e }) => e("spacing"),
818
+ sepia: {
819
+ 0: "0",
820
+ DEFAULT: "100%"
821
+ },
822
+ skew: {
823
+ 0: "0deg",
824
+ 1: "1deg",
825
+ 2: "2deg",
826
+ 3: "3deg",
827
+ 6: "6deg",
828
+ 12: "12deg"
829
+ },
830
+ space: ({ theme: e }) => ({
831
+ ...e("spacing")
832
+ }),
833
+ spacing: {
834
+ px: "1px",
835
+ 0: "0px",
836
+ 0.5: "0.125rem",
837
+ 1: "0.25rem",
838
+ 1.5: "0.375rem",
839
+ 2: "0.5rem",
840
+ 2.5: "0.625rem",
841
+ 3: "0.75rem",
842
+ 3.5: "0.875rem",
843
+ 4: "1rem",
844
+ 5: "1.25rem",
845
+ 6: "1.5rem",
846
+ 7: "1.75rem",
847
+ 8: "2rem",
848
+ 9: "2.25rem",
849
+ 10: "2.5rem",
850
+ 11: "2.75rem",
851
+ 12: "3rem",
852
+ 14: "3.5rem",
853
+ 16: "4rem",
854
+ 20: "5rem",
855
+ 24: "6rem",
856
+ 28: "7rem",
857
+ 32: "8rem",
858
+ 36: "9rem",
859
+ 40: "10rem",
860
+ 44: "11rem",
861
+ 48: "12rem",
862
+ 52: "13rem",
863
+ 56: "14rem",
864
+ 60: "15rem",
865
+ 64: "16rem",
866
+ 72: "18rem",
867
+ 80: "20rem",
868
+ 96: "24rem"
869
+ },
870
+ stroke: ({ theme: e }) => ({
871
+ none: "none",
872
+ ...e("colors")
873
+ }),
874
+ strokeWidth: {
875
+ 0: "0",
876
+ 1: "1",
877
+ 2: "2"
878
+ },
879
+ supports: {},
880
+ data: {},
881
+ textColor: ({ theme: e }) => e("colors"),
882
+ textDecorationColor: ({ theme: e }) => e("colors"),
883
+ textDecorationThickness: {
884
+ auto: "auto",
885
+ "from-font": "from-font",
886
+ 0: "0px",
887
+ 1: "1px",
888
+ 2: "2px",
889
+ 4: "4px",
890
+ 8: "8px"
891
+ },
892
+ textIndent: ({ theme: e }) => ({
893
+ ...e("spacing")
894
+ }),
895
+ textOpacity: ({ theme: e }) => e("opacity"),
896
+ textUnderlineOffset: {
897
+ auto: "auto",
898
+ 0: "0px",
899
+ 1: "1px",
900
+ 2: "2px",
901
+ 4: "4px",
902
+ 8: "8px"
903
+ },
904
+ transformOrigin: {
905
+ center: "center",
906
+ top: "top",
907
+ "top-right": "top right",
908
+ right: "right",
909
+ "bottom-right": "bottom right",
910
+ bottom: "bottom",
911
+ "bottom-left": "bottom left",
912
+ left: "left",
913
+ "top-left": "top left"
914
+ },
915
+ transitionDelay: {
916
+ 0: "0s",
917
+ 75: "75ms",
918
+ 100: "100ms",
919
+ 150: "150ms",
920
+ 200: "200ms",
921
+ 300: "300ms",
922
+ 500: "500ms",
923
+ 700: "700ms",
924
+ 1e3: "1000ms"
925
+ },
926
+ transitionDuration: {
927
+ DEFAULT: "150ms",
928
+ 0: "0s",
929
+ 75: "75ms",
930
+ 100: "100ms",
931
+ 150: "150ms",
932
+ 200: "200ms",
933
+ 300: "300ms",
934
+ 500: "500ms",
935
+ 700: "700ms",
936
+ 1e3: "1000ms"
937
+ },
938
+ transitionProperty: {
939
+ none: "none",
940
+ all: "all",
941
+ DEFAULT: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
942
+ colors: "color, background-color, border-color, text-decoration-color, fill, stroke",
943
+ opacity: "opacity",
944
+ shadow: "box-shadow",
945
+ transform: "transform"
946
+ },
947
+ transitionTimingFunction: {
948
+ DEFAULT: "cubic-bezier(0.4, 0, 0.2, 1)",
949
+ linear: "linear",
950
+ in: "cubic-bezier(0.4, 0, 1, 1)",
951
+ out: "cubic-bezier(0, 0, 0.2, 1)",
952
+ "in-out": "cubic-bezier(0.4, 0, 0.2, 1)"
953
+ },
954
+ translate: ({ theme: e }) => ({
955
+ ...e("spacing"),
956
+ "1/2": "50%",
957
+ "1/3": "33.333333%",
958
+ "2/3": "66.666667%",
959
+ "1/4": "25%",
960
+ "2/4": "50%",
961
+ "3/4": "75%",
962
+ full: "100%"
963
+ }),
964
+ width: ({ theme: e }) => ({
965
+ auto: "auto",
966
+ ...e("spacing"),
967
+ "1/2": "50%",
968
+ "1/3": "33.333333%",
969
+ "2/3": "66.666667%",
970
+ "1/4": "25%",
971
+ "2/4": "50%",
972
+ "3/4": "75%",
973
+ "1/5": "20%",
974
+ "2/5": "40%",
975
+ "3/5": "60%",
976
+ "4/5": "80%",
977
+ "1/6": "16.666667%",
978
+ "2/6": "33.333333%",
979
+ "3/6": "50%",
980
+ "4/6": "66.666667%",
981
+ "5/6": "83.333333%",
982
+ "1/12": "8.333333%",
983
+ "2/12": "16.666667%",
984
+ "3/12": "25%",
985
+ "4/12": "33.333333%",
986
+ "5/12": "41.666667%",
987
+ "6/12": "50%",
988
+ "7/12": "58.333333%",
989
+ "8/12": "66.666667%",
990
+ "9/12": "75%",
991
+ "10/12": "83.333333%",
992
+ "11/12": "91.666667%",
993
+ full: "100%",
994
+ screen: "100vw",
995
+ min: "min-content",
996
+ max: "max-content",
997
+ fit: "fit-content"
998
+ }),
999
+ willChange: {
1000
+ auto: "auto",
1001
+ scroll: "scroll-position",
1002
+ contents: "contents",
1003
+ transform: "transform"
1004
+ },
1005
+ zIndex: {
1006
+ auto: "auto",
1007
+ 0: "0",
1008
+ 10: "10",
1009
+ 20: "20",
1010
+ 30: "30",
1011
+ 40: "40",
1012
+ 50: "50"
1013
+ }
1014
+ },
1015
+ plugins: []
1016
+ };
1017
+ (function(e) {
1018
+ Object.defineProperty(e, "__esModule", {
1019
+ value: !0
1020
+ }), Object.defineProperty(e, "default", {
1021
+ enumerable: !0,
1022
+ get: function() {
1023
+ return o;
1024
+ }
1025
+ });
1026
+ const t = b, r = /* @__PURE__ */ n(v);
1027
+ function n(a) {
1028
+ return a && a.__esModule ? a : {
1029
+ default: a
1030
+ };
1031
+ }
1032
+ const o = (0, t.cloneDeep)(r.default.theme);
1033
+ })(f);
1034
+ let d = f;
1035
+ var E = (d.__esModule ? d : { default: d }).default;
1036
+ const g = /* @__PURE__ */ z(E), A = (e, t = "c-") => {
1037
+ const r = s(e, "bodyTextLightColor", "#64748b"), n = s(e, "bodyTextDarkColor", "#94a3b8"), o = s(e, "bodyBgLightColor", "#FFFFFF"), a = s(e, "bodyBgDarkColor", "#0f172a");
1038
+ return `${t}font-body ${t}antialiased ${t}text-[${r}] ${t}bg-[${o}] dark:${t}text-[${n}] dark:${t}bg-[${a}]`;
1039
+ }, L = (e, t = "c-") => {
1040
+ const n = e.replace(x, "").split(",").map((o) => o.split(" ").map((i) => {
1041
+ if (i === "")
1042
+ return "";
1043
+ if (c(i, "hs-") || c(i, "[--") || c(i, "paddle"))
1044
+ return i;
1045
+ if (i.includes(":")) {
1046
+ const l = i.split(":");
1047
+ return l[l.length - 1] = t + h(l), l.join(":");
1048
+ }
1049
+ return `${t}${i}`;
1050
+ }).join(" "));
1051
+ return `${x}${n.join(" , ")}`;
1052
+ }, $ = (e, t) => e.map((r) => {
1053
+ const n = {};
1054
+ return Object.keys(r).forEach((o) => {
1055
+ w(r[o], x) && (n[o] = L(r[o], t));
1056
+ }), n;
1057
+ }), U = (e, t, r = "c-") => {
1058
+ const n = A(t, r);
1059
+ return H(
1060
+ t,
1061
+ [y(JSON.stringify($(e, r)), /#styles:/g, "")],
1062
+ n.split(" ").concat(`${r}inline-block`, `${r}w-full`, `${r}h-full`)
1063
+ );
1064
+ }, q = async (e, t = "c-") => {
1065
+ const r = e.page.blocks;
1066
+ return await U(r, e.project.brandingOptions, t);
1067
+ };
1068
+ async function H(e, t, r = [], n = "c-") {
1069
+ const o = s(e, "primaryColor", "#000"), a = s(e, "secondaryColor", "#ccc"), p = s(e, "headingFont", "Inter"), i = s(e, "bodyFont", "Inter"), l = s(e, "roundedCorners", "0"), m = C({
1070
+ colors: [o, a],
1071
+ names: ["primary", "secondary"]
1072
+ });
1073
+ return u(m, "primary.DEFAULT", o), u(m, "secondary.DEFAULT", a), `${await k({
1074
+ tailwindConfig: {
1075
+ prefix: n,
1076
+ darkMode: "class",
1077
+ safelist: r,
1078
+ theme: {
1079
+ fontFamily: {
1080
+ heading: [p, ...g.fontFamily.sans],
1081
+ body: [i, ...g.fontFamily.sans]
1082
+ },
1083
+ extend: {
1084
+ borderRadius: {
1085
+ global: `${l || "0"}px`
1086
+ },
1087
+ colors: m
1088
+ }
1089
+ },
1090
+ plugins: [F, T, S, D],
1091
+ corePlugins: { preflight: !1 }
1092
+ }
1093
+ }).generateStylesFromContent(
1094
+ ` @tailwind components;
1095
+ @tailwind utilities;`,
1096
+ t
1097
+ )} .${n}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${p}",${g.fontFamily.sans.join(
1098
+ ", "
1099
+ )};}`;
1100
+ }
1101
+ export {
1102
+ L as a,
1103
+ U as b,
1104
+ q as c,
1105
+ A as g
1106
+ };