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