@simple-builder/react 1.2.4 → 1.2.6
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/{build-container-client-KI3QULNY.mjs → build-container-client-56IGH4EB.mjs} +13 -6
- package/dist/{build-container-client-DLQONPHH.mjs → build-container-client-6D4M5MV6.mjs} +8 -4
- package/dist/{build-container-client-UYQEUZU5.mjs → build-container-client-JR4HENF4.mjs} +17 -17
- package/dist/{build-container-client-BAVL356F.js → build-container-client-JS3CR4W3.js} +107 -100
- package/dist/{build-container-client-LR4UL6XD.js → build-container-client-JXYQOZHZ.js} +102 -98
- package/dist/build-container-client-OANZW6DH.mjs +2255 -0
- package/dist/build-container-client-QBXLJYQD.js +2291 -0
- package/dist/{build-container-client-XVX67J7D.js → build-container-client-QOFTIHCU.js} +110 -110
- package/dist/build-container-client-YTZ4C67E.mjs +7 -0
- package/dist/build-container-client-Z34EUPR3.js +7 -0
- package/dist/{builder-content-2CLARIDQ.js → builder-content-5K55QBEE.js} +7 -7
- package/dist/{builder-content-YOL4MKX3.mjs → builder-content-EHVMYKSR.mjs} +2 -2
- package/dist/{builder-content-Y7KZGM4Z.js → builder-content-J6G2PNIM.js} +7 -7
- package/dist/{builder-content-44DXQN5V.mjs → builder-content-JQ7BYR4W.mjs} +2 -2
- package/dist/{builder-content-P2XQRXZX.js → builder-content-LYSSA6KK.js} +7 -7
- package/dist/builder-content-MPQ7ZQN4.js +42 -0
- package/dist/{builder-content-J45ZXXEM.mjs → builder-content-OE75E24Z.mjs} +2 -2
- package/dist/builder-content-STUVQ4ME.mjs +20 -0
- package/dist/{chunk-NAY45PRQ.mjs → chunk-2DLJX5FY.mjs} +1 -1
- package/dist/{chunk-ISTZWAYI.js → chunk-2S5KDJXM.js} +5 -5
- package/dist/{chunk-TZQPIYI7.mjs → chunk-5DXQZNUR.mjs} +1 -1
- package/dist/{chunk-R7ZUBTTN.js → chunk-5N4LAZ6V.js} +3 -3
- package/dist/{chunk-Q42UV6O3.mjs → chunk-5NN2XSII.mjs} +1 -1
- package/dist/{chunk-47IWLKYO.js → chunk-5VQCJART.js} +1 -1
- package/dist/{chunk-WVO43G3J.mjs → chunk-75X4HNGS.mjs} +1 -1
- package/dist/chunk-BUELIHBX.mjs +238 -0
- package/dist/{chunk-U3LGZ4IJ.js → chunk-DMNRRIPC.js} +3 -3
- package/dist/{chunk-5EZQG6MP.mjs → chunk-EMZAPBOH.mjs} +2 -2
- package/dist/{chunk-FUIGTZRW.mjs → chunk-FN6K4WJP.mjs} +2 -2
- package/dist/{chunk-527WHDFS.mjs → chunk-HA4DTJA7.mjs} +1 -1
- package/dist/{chunk-IAIJXTFG.js → chunk-I4TPSTXB.js} +5 -5
- package/dist/{chunk-ZEA47N62.js → chunk-IACBZNOK.js} +1 -1
- package/dist/{chunk-DXQKEGLP.js → chunk-IVF3GTYS.js} +5 -5
- package/dist/{chunk-7SAGJTH2.js → chunk-ORODN5Q7.js} +1 -1
- package/dist/chunk-RCDOLMDG.js +263 -0
- package/dist/chunk-SMRPMB3V.js +153 -0
- package/dist/{chunk-F7EVAQN7.mjs → chunk-TF7VKEU2.mjs} +1 -1
- package/dist/{chunk-M2YJU6AM.js → chunk-TWGYIJD2.js} +3 -3
- package/dist/{chunk-MV72DQML.mjs → chunk-UFWIAKEA.mjs} +2 -2
- package/dist/chunk-UH23D2JA.mjs +123 -0
- package/dist/chunk-WP7KTUTL.js +42 -0
- package/dist/chunk-XULCJNV7.mjs +20 -0
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +15 -15
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use client';
|
|
3
3
|
'use client';
|
|
4
|
+
'use client';
|
|
5
|
+
'use client';
|
|
6
|
+
'use client';
|
|
4
7
|
'use strict';
|
|
5
8
|
|
|
6
|
-
require('./chunk-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
+
require('./chunk-DMNRRIPC.js');
|
|
10
|
+
var chunk2S5KDJXM_js = require('./chunk-2S5KDJXM.js');
|
|
11
|
+
var chunkIACBZNOK_js = require('./chunk-IACBZNOK.js');
|
|
9
12
|
var React25 = require('react');
|
|
10
13
|
var lucideReact = require('lucide-react');
|
|
11
14
|
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
@@ -77,7 +80,7 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
|
77
80
|
var AlertDialogOverlay = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
78
81
|
AlertDialogPrimitive__namespace.Overlay,
|
|
79
82
|
{
|
|
80
|
-
className:
|
|
83
|
+
className: chunkIACBZNOK_js.cn(
|
|
81
84
|
"sb-fixed sb-inset-0 sb-z-50 sb-bg-background/80 sb-backdrop-blur-sm data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0",
|
|
82
85
|
className
|
|
83
86
|
),
|
|
@@ -90,7 +93,7 @@ var AlertDialogContent = React25__namespace.forwardRef(({ className, ...props },
|
|
|
90
93
|
AlertDialogPrimitive__namespace.Content,
|
|
91
94
|
{
|
|
92
95
|
ref,
|
|
93
|
-
className:
|
|
96
|
+
className: chunkIACBZNOK_js.cn(
|
|
94
97
|
"sb-fixed sb-font-roboto sb-left-[50%] sb-top-[50%] sb-z-50 sb-grid sb-w-full sb-max-w-lg sb-translate-x-[-50%] sb-translate-y-[-50%] sb-gap-4 sb-border sb-bg-background sb-p-6 sb-shadow-lg sb-duration-200 data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[state=closed]:sb-slide-out-to-left-1/2 data-[state=closed]:sb-slide-out-to-top-[48%] data-[state=open]:sb-slide-in-from-left-1/2 data-[state=open]:sb-slide-in-from-top-[48%] sm:sb-rounded-lg",
|
|
95
98
|
className
|
|
96
99
|
),
|
|
@@ -104,7 +107,7 @@ var AlertDialogFooter = ({
|
|
|
104
107
|
}) => /* @__PURE__ */ React25__namespace.createElement(
|
|
105
108
|
"div",
|
|
106
109
|
{
|
|
107
|
-
className:
|
|
110
|
+
className: chunkIACBZNOK_js.cn(
|
|
108
111
|
"sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
|
|
109
112
|
className
|
|
110
113
|
),
|
|
@@ -116,7 +119,7 @@ var AlertDialogTitle = React25__namespace.forwardRef(({ className, ...props }, r
|
|
|
116
119
|
AlertDialogPrimitive__namespace.Title,
|
|
117
120
|
{
|
|
118
121
|
ref,
|
|
119
|
-
className:
|
|
122
|
+
className: chunkIACBZNOK_js.cn("sb-text-lg sb-font-semibold", className),
|
|
120
123
|
...props
|
|
121
124
|
}
|
|
122
125
|
));
|
|
@@ -125,7 +128,7 @@ var AlertDialogDescription = React25__namespace.forwardRef(({ className, ...prop
|
|
|
125
128
|
AlertDialogPrimitive__namespace.Description,
|
|
126
129
|
{
|
|
127
130
|
ref,
|
|
128
|
-
className:
|
|
131
|
+
className: chunkIACBZNOK_js.cn("sb-text-sm sb-text-muted-foreground", className),
|
|
129
132
|
...props
|
|
130
133
|
}
|
|
131
134
|
));
|
|
@@ -134,7 +137,7 @@ var AlertDialogAction = React25__namespace.forwardRef(({ className, ...props },
|
|
|
134
137
|
AlertDialogPrimitive__namespace.Action,
|
|
135
138
|
{
|
|
136
139
|
ref,
|
|
137
|
-
className:
|
|
140
|
+
className: chunkIACBZNOK_js.cn(chunk2S5KDJXM_js.buttonVariants(), className),
|
|
138
141
|
...props
|
|
139
142
|
}
|
|
140
143
|
));
|
|
@@ -143,8 +146,8 @@ var AlertDialogCancel = React25__namespace.forwardRef(({ className, ...props },
|
|
|
143
146
|
AlertDialogPrimitive__namespace.Cancel,
|
|
144
147
|
{
|
|
145
148
|
ref,
|
|
146
|
-
className:
|
|
147
|
-
|
|
149
|
+
className: chunkIACBZNOK_js.cn(
|
|
150
|
+
chunk2S5KDJXM_js.buttonVariants({ variant: "outline" }),
|
|
148
151
|
"sb-mt-2 sm:sb-mt-0",
|
|
149
152
|
className
|
|
150
153
|
),
|
|
@@ -161,7 +164,7 @@ var PopoverContent = React25__namespace.forwardRef(({ className, align = "center
|
|
|
161
164
|
ref,
|
|
162
165
|
align,
|
|
163
166
|
sideOffset,
|
|
164
|
-
className:
|
|
167
|
+
className: chunkIACBZNOK_js.cn(
|
|
165
168
|
"sb-z-50 sb-w-72 sb-rounded-md sb-border sb-bg-popover sb-p-4 sb-text-popover-foreground sb-shadow-md sb-outline-none data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[side=bottom]:sb-slide-in-from-top-2 data-[side=left]:sb-slide-in-from-right-2 data-[side=right]:sb-slide-in-from-left-2 data-[side=top]:sb-slide-in-from-bottom-2 sb-origin-[--radix-popover-content-transform-origin]",
|
|
166
169
|
className
|
|
167
170
|
),
|
|
@@ -217,7 +220,7 @@ var getOutput = (editor, format2) => {
|
|
|
217
220
|
case "json":
|
|
218
221
|
return editor.getJSON();
|
|
219
222
|
case "html":
|
|
220
|
-
return editor.isEmpty ? "" : editor.getHTML();
|
|
223
|
+
return editor.isEmpty() ? "" : editor.getHTML();
|
|
221
224
|
default:
|
|
222
225
|
return editor.getText();
|
|
223
226
|
}
|
|
@@ -244,7 +247,7 @@ var useRichTextEditor = ({
|
|
|
244
247
|
(editor2) => {
|
|
245
248
|
onUpdate?.(getOutput(editor2, output));
|
|
246
249
|
},
|
|
247
|
-
[output]
|
|
250
|
+
[output, onUpdate]
|
|
248
251
|
);
|
|
249
252
|
const handleBlur = React25.useCallback(
|
|
250
253
|
(editor2) => {
|
|
@@ -259,7 +262,7 @@ var useRichTextEditor = ({
|
|
|
259
262
|
autocomplete: "off",
|
|
260
263
|
autocorrect: "off",
|
|
261
264
|
autocapitalize: "off",
|
|
262
|
-
class:
|
|
265
|
+
class: chunkIACBZNOK_js.cn("sb-focus:outline-none", editorClassName)
|
|
263
266
|
}
|
|
264
267
|
},
|
|
265
268
|
onCreate: ({ editor: editor2 }) => handleCreate(editor2),
|
|
@@ -275,7 +278,7 @@ var DropdownMenuSubTrigger = React25__namespace.forwardRef(({ className, inset,
|
|
|
275
278
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
276
279
|
{
|
|
277
280
|
ref,
|
|
278
|
-
className:
|
|
281
|
+
className: chunkIACBZNOK_js.cn(
|
|
279
282
|
"sb-flex sb-cursor-default sb-select-none sb-items-center sb-gap-2 sb-rounded-sm sb-px-2 sb-py-1.5 sb-text-sm sb-outline-none focus:sb-bg-accent data-[state=open]:sb-bg-accent [&_svg]:sb-pointer-events-none [&_svg]:sb-size-4 [&_svg]:sb-shrink-0",
|
|
280
283
|
inset && "sb-pl-8",
|
|
281
284
|
className
|
|
@@ -290,7 +293,7 @@ var DropdownMenuSubContent = React25__namespace.forwardRef(({ className, ...prop
|
|
|
290
293
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
291
294
|
{
|
|
292
295
|
ref,
|
|
293
|
-
className:
|
|
296
|
+
className: chunkIACBZNOK_js.cn(
|
|
294
297
|
"sb-z-50 sb-min-w-[8rem] sb-overflow-hidden sb-rounded-md sb-border sb-bg-popover sb-p-1 sb-text-popover-foreground sb-shadow-lg data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[side=bottom]:sb-slide-in-from-top-2 data-[side=left]:sb-slide-in-from-right-2 data-[side=right]:sb-slide-in-from-left-2 data-[side=top]:sb-slide-in-from-bottom-2 sb-origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
295
298
|
className
|
|
296
299
|
),
|
|
@@ -303,7 +306,7 @@ var DropdownMenuContent = React25__namespace.forwardRef(({ className, sideOffset
|
|
|
303
306
|
{
|
|
304
307
|
ref,
|
|
305
308
|
sideOffset,
|
|
306
|
-
className:
|
|
309
|
+
className: chunkIACBZNOK_js.cn(
|
|
307
310
|
"sb-z-50 sb-max-h-[var(--radix-dropdown-menu-content-available-height)] sb-min-w-[8rem] sb-overflow-y-auto sb-overflow-x-hidden sb-rounded-md sb-border sb-bg-popover sb-p-1 sb-text-popover-foreground sb-shadow-md",
|
|
308
311
|
"data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[side=bottom]:sb-slide-in-from-top-2 data-[side=left]:sb-slide-in-from-right-2 data-[side=right]:sb-slide-in-from-left-2 data-[side=top]:sb-slide-in-from-bottom-2 sb-origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
309
312
|
className
|
|
@@ -316,7 +319,7 @@ var DropdownMenuItem = React25__namespace.forwardRef(({ className, inset, ...pro
|
|
|
316
319
|
DropdownMenuPrimitive__namespace.Item,
|
|
317
320
|
{
|
|
318
321
|
ref,
|
|
319
|
-
className:
|
|
322
|
+
className: chunkIACBZNOK_js.cn(
|
|
320
323
|
"sb-relative sb-flex sb-cursor-default sb-select-none sb-items-center sb-gap-2 sb-rounded-sm sb-px-2 sb-py-1.5 sb-text-sm sb-outline-none sb-transition-colors focus:sb-bg-accent focus:sb-text-accent-foreground data-[disabled]:sb-pointer-events-none data-[disabled]:sb-opacity-50 [&>svg]:sb-size-4 [&>svg]:sb-shrink-0",
|
|
321
324
|
inset && "sb-pl-8",
|
|
322
325
|
className
|
|
@@ -329,7 +332,7 @@ var DropdownMenuCheckboxItem = React25__namespace.forwardRef(({ className, child
|
|
|
329
332
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
330
333
|
{
|
|
331
334
|
ref,
|
|
332
|
-
className:
|
|
335
|
+
className: chunkIACBZNOK_js.cn(
|
|
333
336
|
"sb-relative sb-flex sb-cursor-default sb-select-none sb-items-center sb-rounded-sm sb-py-1.5 sb-pl-8 sb-pr-2 sb-text-sm sb-outline-none sb-transition-colors focus:sb-bg-accent focus:sb-text-accent-foreground data-[disabled]:sb-pointer-events-none data-[disabled]:sb-opacity-50",
|
|
334
337
|
className
|
|
335
338
|
),
|
|
@@ -344,7 +347,7 @@ var DropdownMenuRadioItem = React25__namespace.forwardRef(({ className, children
|
|
|
344
347
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
345
348
|
{
|
|
346
349
|
ref,
|
|
347
|
-
className:
|
|
350
|
+
className: chunkIACBZNOK_js.cn(
|
|
348
351
|
"sb-relative sb-flex sb-cursor-default sb-select-none sb-items-center sb-rounded-sm sb-py-1.5 sb-pl-8 sb-pr-2 sb-text-sm sb-outline-none sb-transition-colors focus:sb-bg-accent focus:sb-text-accent-foreground data-[disabled]:sb-pointer-events-none data-[disabled]:sb-opacity-50",
|
|
349
352
|
className
|
|
350
353
|
),
|
|
@@ -358,7 +361,7 @@ var DropdownMenuLabel = React25__namespace.forwardRef(({ className, inset, ...pr
|
|
|
358
361
|
DropdownMenuPrimitive__namespace.Label,
|
|
359
362
|
{
|
|
360
363
|
ref,
|
|
361
|
-
className:
|
|
364
|
+
className: chunkIACBZNOK_js.cn(
|
|
362
365
|
"sb-px-2 sb-py-1.5 sb-text-sm sb-font-semibold",
|
|
363
366
|
inset && "sb-pl-8",
|
|
364
367
|
className
|
|
@@ -371,7 +374,7 @@ var DropdownMenuSeparator = React25__namespace.forwardRef(({ className, ...props
|
|
|
371
374
|
DropdownMenuPrimitive__namespace.Separator,
|
|
372
375
|
{
|
|
373
376
|
ref,
|
|
374
|
-
className:
|
|
377
|
+
className: chunkIACBZNOK_js.cn("sb--mx-1 sb-my-1 sb-h-px sb-bg-muted", className),
|
|
375
378
|
...props
|
|
376
379
|
}
|
|
377
380
|
));
|
|
@@ -383,7 +386,7 @@ var Separator2 = React25__namespace.forwardRef(
|
|
|
383
386
|
ref,
|
|
384
387
|
decorative,
|
|
385
388
|
orientation,
|
|
386
|
-
className:
|
|
389
|
+
className: chunkIACBZNOK_js.cn(
|
|
387
390
|
"sb-shrink-0 sb-bg-border",
|
|
388
391
|
orientation === "horizontal" ? "sb-h-[1px] sb-w-full" : "sb-h-full sb-w-[1px]",
|
|
389
392
|
className
|
|
@@ -417,7 +420,7 @@ var Toggle = React25__namespace.forwardRef(({ className, variant, size, ...props
|
|
|
417
420
|
TogglePrimitive__namespace.Root,
|
|
418
421
|
{
|
|
419
422
|
ref,
|
|
420
|
-
className:
|
|
423
|
+
className: chunkIACBZNOK_js.cn(toggleVariants({ variant, size, className })),
|
|
421
424
|
...props
|
|
422
425
|
}
|
|
423
426
|
));
|
|
@@ -430,7 +433,7 @@ var ToggleGroup = React25__namespace.forwardRef(({ className, variant, size, chi
|
|
|
430
433
|
ToggleGroupPrimitive__namespace.Root,
|
|
431
434
|
{
|
|
432
435
|
ref,
|
|
433
|
-
className:
|
|
436
|
+
className: chunkIACBZNOK_js.cn("sb-flex sb-items-center sb-justify-center sb-gap-1", className),
|
|
434
437
|
...props
|
|
435
438
|
},
|
|
436
439
|
/* @__PURE__ */ React25__namespace.createElement(ToggleGroupContext.Provider, { value: { variant, size } }, children)
|
|
@@ -442,7 +445,7 @@ var ToggleGroupItem = React25__namespace.forwardRef(({ className, children, vari
|
|
|
442
445
|
ToggleGroupPrimitive__namespace.Item,
|
|
443
446
|
{
|
|
444
447
|
ref,
|
|
445
|
-
className:
|
|
448
|
+
className: chunkIACBZNOK_js.cn(
|
|
446
449
|
toggleVariants({
|
|
447
450
|
variant: context.variant || variant,
|
|
448
451
|
size: context.size || size
|
|
@@ -460,7 +463,9 @@ var PALETTES = [
|
|
|
460
463
|
inverse: "hsl(var(--background))",
|
|
461
464
|
colors: [
|
|
462
465
|
{ cssVar: "hsl(var(--foreground))" },
|
|
466
|
+
{ cssVar: "hsl(var(--primary-foreground))" },
|
|
463
467
|
{ cssVar: "hsl(var(--secondary-foreground))" },
|
|
468
|
+
{ cssVar: "hsl(var(--tertiary-foreground))" },
|
|
464
469
|
{ cssVar: "hsl(var(--muted-foreground))" },
|
|
465
470
|
{ cssVar: "hsl(var(--accent-foreground))" },
|
|
466
471
|
{ cssVar: "hsl(var(--destructive-foreground))" }
|
|
@@ -470,7 +475,9 @@ var PALETTES = [
|
|
|
470
475
|
inverse: "hsl(var(--foreground))",
|
|
471
476
|
colors: [
|
|
472
477
|
{ cssVar: "hsl(var(--background))" },
|
|
478
|
+
{ cssVar: "hsl(var(--primary))" },
|
|
473
479
|
{ cssVar: "hsl(var(--secondary))" },
|
|
480
|
+
{ cssVar: "hsl(var(--tertiary))" },
|
|
474
481
|
{ cssVar: "hsl(var(--muted))" },
|
|
475
482
|
{ cssVar: "hsl(var(--accent))" },
|
|
476
483
|
{ cssVar: "hsl(var(--destructive))" }
|
|
@@ -590,7 +597,7 @@ var ElementTool = ({ editor }) => {
|
|
|
590
597
|
DropdownMenuItem,
|
|
591
598
|
{
|
|
592
599
|
key: action.label,
|
|
593
|
-
className:
|
|
600
|
+
className: chunkIACBZNOK_js.cn({
|
|
594
601
|
"sb-bg-accent": action.level ? editor.isActive("heading", { level: action.level }) : editor.isActive("paragraph")
|
|
595
602
|
}),
|
|
596
603
|
onClick: () => handleFormatChange(action.level)
|
|
@@ -687,7 +694,7 @@ var DialogOverlay = React25__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
687
694
|
DialogPrimitive__namespace.Overlay,
|
|
688
695
|
{
|
|
689
696
|
ref,
|
|
690
|
-
className:
|
|
697
|
+
className: chunkIACBZNOK_js.cn(
|
|
691
698
|
"sb-fixed sb-inset-0 sb-z-50 sb-bg-black/80 sb- data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0",
|
|
692
699
|
className
|
|
693
700
|
),
|
|
@@ -699,7 +706,7 @@ var DialogContent = React25__namespace.forwardRef(({ className, children, ...pro
|
|
|
699
706
|
DialogPrimitive__namespace.Content,
|
|
700
707
|
{
|
|
701
708
|
ref,
|
|
702
|
-
className:
|
|
709
|
+
className: chunkIACBZNOK_js.cn(
|
|
703
710
|
"sb-fixed sb-left-[50%] sb-top-[50%] sb-z-50 sb-grid sb-w-full sb-max-w-lg sb-translate-x-[-50%] sb-translate-y-[-50%] sb-gap-4 sb-border sb-bg-background sb-p-6 sb-shadow-lg sb-duration-200 data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[state=closed]:sb-slide-out-to-left-1/2 data-[state=closed]:sb-slide-out-to-top-[48%] data-[state=open]:sb-slide-in-from-left-1/2 data-[state=open]:sb-slide-in-from-top-[48%] sm:sb-rounded-lg",
|
|
704
711
|
className
|
|
705
712
|
),
|
|
@@ -715,7 +722,7 @@ var DialogHeader = ({
|
|
|
715
722
|
}) => /* @__PURE__ */ React25__namespace.createElement(
|
|
716
723
|
"div",
|
|
717
724
|
{
|
|
718
|
-
className:
|
|
725
|
+
className: chunkIACBZNOK_js.cn(
|
|
719
726
|
"sb-flex sb-flex-col sb-space-y-1.5 sb-text-center sm:sb-text-left",
|
|
720
727
|
className
|
|
721
728
|
),
|
|
@@ -727,7 +734,7 @@ var DialogTitle = React25__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
727
734
|
DialogPrimitive__namespace.Title,
|
|
728
735
|
{
|
|
729
736
|
ref,
|
|
730
|
-
className:
|
|
737
|
+
className: chunkIACBZNOK_js.cn(
|
|
731
738
|
"sb-text-lg sb-font-semibold sb-leading-none sb-tracking-tight",
|
|
732
739
|
className
|
|
733
740
|
),
|
|
@@ -739,7 +746,7 @@ var DialogDescription = React25__namespace.forwardRef(({ className, ...props },
|
|
|
739
746
|
DialogPrimitive__namespace.Description,
|
|
740
747
|
{
|
|
741
748
|
ref,
|
|
742
|
-
className:
|
|
749
|
+
className: chunkIACBZNOK_js.cn("sb-text-sm sb-text-muted-foreground", className),
|
|
743
750
|
...props
|
|
744
751
|
}
|
|
745
752
|
));
|
|
@@ -751,7 +758,7 @@ var Label2 = React25__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
751
758
|
LabelPrimitive__namespace.Root,
|
|
752
759
|
{
|
|
753
760
|
ref,
|
|
754
|
-
className:
|
|
761
|
+
className: chunkIACBZNOK_js.cn(labelVariants(), className),
|
|
755
762
|
...props
|
|
756
763
|
}
|
|
757
764
|
));
|
|
@@ -790,7 +797,7 @@ var FormItemContext = React25__namespace.createContext(
|
|
|
790
797
|
);
|
|
791
798
|
var FormItem = React25__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
792
799
|
const id = React25__namespace.useId();
|
|
793
|
-
return /* @__PURE__ */ React25__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React25__namespace.createElement("div", { ref, className:
|
|
800
|
+
return /* @__PURE__ */ React25__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React25__namespace.createElement("div", { ref, className: chunkIACBZNOK_js.cn("sb-space-y-2", className), ...props }));
|
|
794
801
|
});
|
|
795
802
|
FormItem.displayName = "FormItem";
|
|
796
803
|
var FormLabel = React25__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -799,7 +806,7 @@ var FormLabel = React25__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
799
806
|
Label2,
|
|
800
807
|
{
|
|
801
808
|
ref,
|
|
802
|
-
className:
|
|
809
|
+
className: chunkIACBZNOK_js.cn(error && "sb-text-destructive", className),
|
|
803
810
|
htmlFor: formItemId,
|
|
804
811
|
...props
|
|
805
812
|
}
|
|
@@ -827,7 +834,7 @@ var FormDescription = React25__namespace.forwardRef(({ className, ...props }, re
|
|
|
827
834
|
{
|
|
828
835
|
ref,
|
|
829
836
|
id: formDescriptionId,
|
|
830
|
-
className:
|
|
837
|
+
className: chunkIACBZNOK_js.cn("sb-text-[0.8rem] sb-text-muted-foreground", className),
|
|
831
838
|
...props
|
|
832
839
|
}
|
|
833
840
|
);
|
|
@@ -844,7 +851,7 @@ var FormMessage = React25__namespace.forwardRef(({ className, children, ...props
|
|
|
844
851
|
{
|
|
845
852
|
ref,
|
|
846
853
|
id: formMessageId,
|
|
847
|
-
className:
|
|
854
|
+
className: chunkIACBZNOK_js.cn("sb-text-[0.8rem] sb-font-medium sb-text-destructive", className),
|
|
848
855
|
...props
|
|
849
856
|
},
|
|
850
857
|
body
|
|
@@ -857,7 +864,7 @@ var Input = React25__namespace.forwardRef(
|
|
|
857
864
|
"input",
|
|
858
865
|
{
|
|
859
866
|
type,
|
|
860
|
-
className:
|
|
867
|
+
className: chunkIACBZNOK_js.cn(
|
|
861
868
|
"sb-flex sb-h-9 sb-w-full sb-rounded-md sb-border sb-border-input sb-bg-transparent sb-px-3 sb-py-1 sb-text-base sb-shadow-sm sb-transition-colors file:sb-border-0 file:sb-bg-transparent file:sb-text-sm file:sb-font-medium file:sb-text-foreground placeholder:sb-text-muted-foreground focus-visible:sb-outline-none focus-visible:sb-ring-1 focus-visible:sb-ring-ring disabled:sb-cursor-not-allowed disabled:sb-opacity-50 md:sb-text-sm",
|
|
862
869
|
className
|
|
863
870
|
),
|
|
@@ -877,7 +884,7 @@ AdvancedInput.displayName = "AdvancedInput";
|
|
|
877
884
|
var Switch = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
878
885
|
SwitchPrimitives__namespace.Root,
|
|
879
886
|
{
|
|
880
|
-
className:
|
|
887
|
+
className: chunkIACBZNOK_js.cn(
|
|
881
888
|
"sb-peer sb-inline-flex sb-h-5 sb-w-9 sb-shrink-0 sb-cursor-pointer sb-items-center sb-rounded-full sb-border-2 sb-border-transparent sb-shadow-sm sb-transition-colors focus-visible:sb-outline-none focus-visible:sb-ring-2 focus-visible:sb-ring-ring focus-visible:sb-ring-offset-2 focus-visible:sb-ring-offset-background disabled:sb-cursor-not-allowed disabled:sb-opacity-50 data-[state=checked]:sb-bg-primary data-[state=unchecked]:sb-bg-input",
|
|
882
889
|
className
|
|
883
890
|
),
|
|
@@ -887,7 +894,7 @@ var Switch = React25__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
887
894
|
/* @__PURE__ */ React25__namespace.createElement(
|
|
888
895
|
SwitchPrimitives__namespace.Thumb,
|
|
889
896
|
{
|
|
890
|
-
className:
|
|
897
|
+
className: chunkIACBZNOK_js.cn(
|
|
891
898
|
"sb-pointer-events-none sb-block sb-h-4 sb-w-4 sb-rounded-full sb-bg-background sb-shadow-lg sb-ring-0 sb-transition-transform data-[state=checked]:sb-translate-x-4 data-[state=unchecked]:sb-translate-x-0"
|
|
892
899
|
)
|
|
893
900
|
}
|
|
@@ -976,7 +983,7 @@ var LinkForm = ({
|
|
|
976
983
|
}
|
|
977
984
|
)), /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, "Open in new tab")), /* @__PURE__ */ React25__namespace.createElement(FormMessage, null))
|
|
978
985
|
}
|
|
979
|
-
), /* @__PURE__ */ React25__namespace.createElement(
|
|
986
|
+
), /* @__PURE__ */ React25__namespace.createElement(chunk2S5KDJXM_js.Button, { type: "button", onClick: form.handleSubmit(handleSubmit) }, "Save")));
|
|
980
987
|
};
|
|
981
988
|
var actions3 = [
|
|
982
989
|
{
|
|
@@ -1031,7 +1038,7 @@ var ToolbarSection = ({
|
|
|
1031
1038
|
DropdownMenuItem,
|
|
1032
1039
|
{
|
|
1033
1040
|
key: action.label,
|
|
1034
|
-
className:
|
|
1041
|
+
className: chunkIACBZNOK_js.cn("sb-flex sb-flex-row sb-items-center sb-gap-2", {
|
|
1035
1042
|
"sb-bg-accent": action.isActive(editor)
|
|
1036
1043
|
}),
|
|
1037
1044
|
onClick: () => action.action(editor),
|
|
@@ -1046,7 +1053,7 @@ var ToolbarButton = React25__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1046
1053
|
Toggle,
|
|
1047
1054
|
{
|
|
1048
1055
|
size: "sm",
|
|
1049
|
-
className:
|
|
1056
|
+
className: chunkIACBZNOK_js.cn(
|
|
1050
1057
|
"sb-size-8 sb-p-0 data-[state=on]:sb-bg-accent",
|
|
1051
1058
|
{ "sb-bg-accent": props.pressed },
|
|
1052
1059
|
className
|
|
@@ -1070,7 +1077,7 @@ var RichTextEditor = ({
|
|
|
1070
1077
|
const editor = useRichTextEditor({
|
|
1071
1078
|
value,
|
|
1072
1079
|
onUpdate: onChange,
|
|
1073
|
-
editorClassName:
|
|
1080
|
+
editorClassName: chunkIACBZNOK_js.cn("sb-flex-1 sb-px-3 sb-py-1", editorClassName),
|
|
1074
1081
|
...props
|
|
1075
1082
|
});
|
|
1076
1083
|
if (!editor) {
|
|
@@ -1079,7 +1086,7 @@ var RichTextEditor = ({
|
|
|
1079
1086
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1080
1087
|
"div",
|
|
1081
1088
|
{
|
|
1082
|
-
className:
|
|
1089
|
+
className: chunkIACBZNOK_js.cn(
|
|
1083
1090
|
"sb-flex sb-h-auto sb-min-h-72 sb-w-full sb-flex-col sb-rounded-md sb-border sb-border-input sb-shadow-sm focus-within:sb-border-primary",
|
|
1084
1091
|
className
|
|
1085
1092
|
)
|
|
@@ -1089,8 +1096,8 @@ var RichTextEditor = ({
|
|
|
1089
1096
|
react.EditorContent,
|
|
1090
1097
|
{
|
|
1091
1098
|
editor,
|
|
1092
|
-
className:
|
|
1093
|
-
"sb-editflow
|
|
1099
|
+
className: chunkIACBZNOK_js.cn(
|
|
1100
|
+
"sb-editflow prose sb-flex sb-flex-1",
|
|
1094
1101
|
editorContentClassName
|
|
1095
1102
|
)
|
|
1096
1103
|
}
|
|
@@ -1107,15 +1114,15 @@ function Calendar({
|
|
|
1107
1114
|
reactDayPicker.DayPicker,
|
|
1108
1115
|
{
|
|
1109
1116
|
showOutsideDays,
|
|
1110
|
-
className:
|
|
1117
|
+
className: chunkIACBZNOK_js.cn("sb-p-3 sb-font-roboto", className),
|
|
1111
1118
|
classNames: {
|
|
1112
1119
|
months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
|
|
1113
1120
|
month: "sb-space-y-4",
|
|
1114
1121
|
caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
|
|
1115
1122
|
caption_label: "sb-text-sm sb-font-medium",
|
|
1116
1123
|
nav: "sb-space-x-1 sb-flex sb-items-center",
|
|
1117
|
-
nav_button:
|
|
1118
|
-
|
|
1124
|
+
nav_button: chunkIACBZNOK_js.cn(
|
|
1125
|
+
chunk2S5KDJXM_js.buttonVariants({ variant: "outline" }),
|
|
1119
1126
|
"sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
|
|
1120
1127
|
),
|
|
1121
1128
|
nav_button_previous: "sb-absolute sb-left-1",
|
|
@@ -1124,12 +1131,12 @@ function Calendar({
|
|
|
1124
1131
|
head_row: "sb-flex",
|
|
1125
1132
|
head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
|
|
1126
1133
|
row: "sb-flex sb-w-full sb-mt-2",
|
|
1127
|
-
cell:
|
|
1134
|
+
cell: chunkIACBZNOK_js.cn(
|
|
1128
1135
|
"sb-relative sb-p-0 sb-text-center sb-text-sm focus-within:sb-relative focus-within:sb-z-20 [&:has([aria-selected])]:sb-bg-accent [&:has([aria-selected].day-outside)]:sb-bg-accent/50 [&:has([aria-selected].day-range-end)]:sb-rounded-r-md",
|
|
1129
1136
|
props.mode === "range" ? "[&:has(>.day-range-end)]:sb-rounded-r-md [&:has(>.day-range-start)]:sb-rounded-l-md first:[&:has([aria-selected])]:sb-rounded-l-md last:[&:has([aria-selected])]:sb-rounded-r-md" : "[&:has([aria-selected])]:sb-rounded-md"
|
|
1130
1137
|
),
|
|
1131
|
-
day:
|
|
1132
|
-
|
|
1138
|
+
day: chunkIACBZNOK_js.cn(
|
|
1139
|
+
chunk2S5KDJXM_js.buttonVariants({ variant: "ghost" }),
|
|
1133
1140
|
"sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
|
|
1134
1141
|
),
|
|
1135
1142
|
day_range_start: "day-range-start",
|
|
@@ -1165,11 +1172,11 @@ var ColorPicker = (props) => {
|
|
|
1165
1172
|
"#FF0000"
|
|
1166
1173
|
];
|
|
1167
1174
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1168
|
-
|
|
1175
|
+
chunk2S5KDJXM_js.Button,
|
|
1169
1176
|
{
|
|
1170
1177
|
variant: "outline",
|
|
1171
1178
|
size: "sm",
|
|
1172
|
-
className:
|
|
1179
|
+
className: chunkIACBZNOK_js.cn(
|
|
1173
1180
|
"sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
|
|
1174
1181
|
!color && "sb-text-muted-foreground",
|
|
1175
1182
|
className
|
|
@@ -1269,8 +1276,8 @@ var MediaInput = (props) => {
|
|
|
1269
1276
|
body: JSON.stringify({ src })
|
|
1270
1277
|
});
|
|
1271
1278
|
};
|
|
1272
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className:
|
|
1273
|
-
|
|
1279
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", { className: chunkIACBZNOK_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React25__namespace.createElement(MediaInputItem, { key: src, className: chunkIACBZNOK_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1280
|
+
chunkIACBZNOK_js.Image,
|
|
1274
1281
|
{
|
|
1275
1282
|
src,
|
|
1276
1283
|
alt: "",
|
|
@@ -1288,7 +1295,7 @@ var MediaInput = (props) => {
|
|
|
1288
1295
|
MediaInputItem,
|
|
1289
1296
|
{
|
|
1290
1297
|
key: i,
|
|
1291
|
-
className:
|
|
1298
|
+
className: chunkIACBZNOK_js.cn(
|
|
1292
1299
|
"sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
|
|
1293
1300
|
props.itemClassName
|
|
1294
1301
|
)
|
|
@@ -1298,7 +1305,7 @@ var MediaInput = (props) => {
|
|
|
1298
1305
|
"label",
|
|
1299
1306
|
{
|
|
1300
1307
|
htmlFor: id,
|
|
1301
|
-
className:
|
|
1308
|
+
className: chunkIACBZNOK_js.cn(
|
|
1302
1309
|
"sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
|
|
1303
1310
|
props.itemClassName
|
|
1304
1311
|
)
|
|
@@ -1321,7 +1328,7 @@ var MediaInputItem = (props) => {
|
|
|
1321
1328
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1322
1329
|
"div",
|
|
1323
1330
|
{
|
|
1324
|
-
className:
|
|
1331
|
+
className: chunkIACBZNOK_js.cn(
|
|
1325
1332
|
"sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
|
|
1326
1333
|
props.className
|
|
1327
1334
|
)
|
|
@@ -1344,7 +1351,7 @@ var SelectTrigger = React25__namespace.forwardRef(({ className, children, ...pro
|
|
|
1344
1351
|
SelectPrimitive__namespace.Trigger,
|
|
1345
1352
|
{
|
|
1346
1353
|
ref,
|
|
1347
|
-
className:
|
|
1354
|
+
className: chunkIACBZNOK_js.cn(
|
|
1348
1355
|
"sb-flex sb-h-10 sb-w-full sb-items-center sb-justify-between sb-rounded-md sb-border sb-border-input sb-bg-background sb-px-3 sb-py-2 sb-text-sm sb-ring-offset-background placeholder:sb-text-muted-foreground focus:sb-outline-none focus:sb-ring-2 focus:sb-ring-ring focus:sb-ring-offset-2 disabled:sb-cursor-not-allowed disabled:sb-opacity-50 [&>span]:sb-line-clamp-1",
|
|
1349
1356
|
className
|
|
1350
1357
|
),
|
|
@@ -1358,7 +1365,7 @@ var SelectScrollUpButton = React25__namespace.forwardRef(({ className, ...props
|
|
|
1358
1365
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
1359
1366
|
{
|
|
1360
1367
|
ref,
|
|
1361
|
-
className:
|
|
1368
|
+
className: chunkIACBZNOK_js.cn(
|
|
1362
1369
|
"sb-flex sb-cursor-default sb-items-center sb-justify-center sb-py-1",
|
|
1363
1370
|
className
|
|
1364
1371
|
),
|
|
@@ -1371,7 +1378,7 @@ var SelectScrollDownButton = React25__namespace.forwardRef(({ className, ...prop
|
|
|
1371
1378
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
1372
1379
|
{
|
|
1373
1380
|
ref,
|
|
1374
|
-
className:
|
|
1381
|
+
className: chunkIACBZNOK_js.cn(
|
|
1375
1382
|
"sb-flex sb-cursor-default sb-items-center sb-justify-center sb-py-1",
|
|
1376
1383
|
className
|
|
1377
1384
|
),
|
|
@@ -1384,7 +1391,7 @@ var SelectContent = React25__namespace.forwardRef(({ className, children, positi
|
|
|
1384
1391
|
SelectPrimitive__namespace.Content,
|
|
1385
1392
|
{
|
|
1386
1393
|
ref,
|
|
1387
|
-
className:
|
|
1394
|
+
className: chunkIACBZNOK_js.cn(
|
|
1388
1395
|
"sb-relative sb-z-50 sb-max-h-96 sb-min-w-[8rem] sb-overflow-hidden sb-rounded-md sb-border sb-bg-popover sb-text-popover-foreground sb-shadow-md data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[side=bottom]:sb-slide-in-from-top-2 data-[side=left]:sb-slide-in-from-right-2 data-[side=right]:sb-slide-in-from-left-2 data-[side=top]:sb-slide-in-from-bottom-2",
|
|
1389
1396
|
position === "popper" && "data-[side=bottom]:sb-translate-y-1 data-[side=left]:sb--translate-x-1 data-[side=right]:sb-translate-x-1 data-[side=top]:sb--translate-y-1",
|
|
1390
1397
|
className
|
|
@@ -1396,7 +1403,7 @@ var SelectContent = React25__namespace.forwardRef(({ className, children, positi
|
|
|
1396
1403
|
/* @__PURE__ */ React25__namespace.createElement(
|
|
1397
1404
|
SelectPrimitive__namespace.Viewport,
|
|
1398
1405
|
{
|
|
1399
|
-
className:
|
|
1406
|
+
className: chunkIACBZNOK_js.cn(
|
|
1400
1407
|
"sb-p-1",
|
|
1401
1408
|
position === "popper" && "sb-h-[var(--radix-select-trigger-height)] sb-w-full sb-min-w-[var(--radix-select-trigger-width)]"
|
|
1402
1409
|
)
|
|
@@ -1410,7 +1417,7 @@ var SelectLabel = React25__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1410
1417
|
SelectPrimitive__namespace.Label,
|
|
1411
1418
|
{
|
|
1412
1419
|
ref,
|
|
1413
|
-
className:
|
|
1420
|
+
className: chunkIACBZNOK_js.cn(
|
|
1414
1421
|
"sb-py-1.5 sb-pl-8 sb-pr-2 sb-text-sm sb-font-semibold",
|
|
1415
1422
|
className
|
|
1416
1423
|
),
|
|
@@ -1422,7 +1429,7 @@ var SelectItem = React25__namespace.forwardRef(({ className, children, ...props
|
|
|
1422
1429
|
SelectPrimitive__namespace.Item,
|
|
1423
1430
|
{
|
|
1424
1431
|
ref,
|
|
1425
|
-
className:
|
|
1432
|
+
className: chunkIACBZNOK_js.cn(
|
|
1426
1433
|
"sb-relative sb-flex sb-w-full sb-cursor-default sb-select-none sb-items-center sb-rounded-sm sb-py-1.5 sb-pl-8 sb-pr-2 sb-text-sm sb-outline-none focus:sb-bg-accent focus:sb-text-accent-foreground data-[disabled]:sb-pointer-events-none data-[disabled]:sb-opacity-50",
|
|
1427
1434
|
className
|
|
1428
1435
|
),
|
|
@@ -1436,7 +1443,7 @@ var SelectSeparator = React25__namespace.forwardRef(({ className, ...props }, re
|
|
|
1436
1443
|
SelectPrimitive__namespace.Separator,
|
|
1437
1444
|
{
|
|
1438
1445
|
ref,
|
|
1439
|
-
className:
|
|
1446
|
+
className: chunkIACBZNOK_js.cn("sb--mx-1 sb-my-1 sb-h-px sb-bg-muted", className),
|
|
1440
1447
|
...props
|
|
1441
1448
|
}
|
|
1442
1449
|
));
|
|
@@ -1446,7 +1453,7 @@ var Textarea = React25__namespace.forwardRef(
|
|
|
1446
1453
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1447
1454
|
"textarea",
|
|
1448
1455
|
{
|
|
1449
|
-
className:
|
|
1456
|
+
className: chunkIACBZNOK_js.cn(
|
|
1450
1457
|
"sb-flex sb-min-h-[60px] sb-font-roboto sb-w-full sb-rounded-md sb-border sb-border-input sb-bg-transparent sb-px-3 sb-py-2 sb-text-sm sb-shadow-sm placeholder:sb-text-muted-foreground focus-visible:sb-outline-none focus-visible:sb-ring-1 focus-visible:sb-ring-ring disabled:sb-cursor-not-allowed disabled:sb-opacity-50",
|
|
1451
1458
|
className
|
|
1452
1459
|
),
|
|
@@ -1461,8 +1468,8 @@ Textarea.displayName = "Textarea";
|
|
|
1461
1468
|
// src/components/container-item-form.tsx
|
|
1462
1469
|
var ContainerItemForm = (props) => {
|
|
1463
1470
|
const { item } = props;
|
|
1464
|
-
const { patchItem } =
|
|
1465
|
-
const component =
|
|
1471
|
+
const { patchItem } = chunk2S5KDJXM_js.useBuilder();
|
|
1472
|
+
const component = chunkIACBZNOK_js.builder.getComponent(item.component);
|
|
1466
1473
|
if (!component) {
|
|
1467
1474
|
throw new Error(
|
|
1468
1475
|
`[simple-builder]: Component with id ${item.component} not found in container item form component`
|
|
@@ -1535,12 +1542,12 @@ var RenderFormField = (props) => {
|
|
|
1535
1542
|
/* @__PURE__ */ React25__namespace.createElement(lucideReact.XIcon, { className: "sb-h-4 sb-w-4" })
|
|
1536
1543
|
))
|
|
1537
1544
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
1538
|
-
|
|
1545
|
+
chunk2S5KDJXM_js.Button,
|
|
1539
1546
|
{
|
|
1540
1547
|
type: "button",
|
|
1541
1548
|
variant: "outline",
|
|
1542
1549
|
size: "sm",
|
|
1543
|
-
className:
|
|
1550
|
+
className: chunkIACBZNOK_js.cn(
|
|
1544
1551
|
"sb-w-[89%] sb-border-2 sb-border-dashed sb-text-muted-foreground",
|
|
1545
1552
|
type === "grouped" && "sb-w-full"
|
|
1546
1553
|
),
|
|
@@ -1566,7 +1573,7 @@ var RenderFormField = (props) => {
|
|
|
1566
1573
|
}
|
|
1567
1574
|
);
|
|
1568
1575
|
case "richText":
|
|
1569
|
-
return /* @__PURE__ */ React25__namespace.createElement(Dialog, null, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25__namespace.createElement(DialogTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1576
|
+
return /* @__PURE__ */ React25__namespace.createElement(Dialog, null, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25__namespace.createElement(DialogTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(chunk2S5KDJXM_js.Button, { variant: "outline", className: "sb-w-full" }, input.friendlyName || input.name, " bewerken"))), /* @__PURE__ */ React25__namespace.createElement(DialogContent, { className: "sb-max-w-3xl sb-p-0" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-flex sb-h-full sb-max-h-svh sb-w-full sb-flex-col sm:sb-max-h-[90svh]" }, /* @__PURE__ */ React25__namespace.createElement(DialogHeader, { className: "sb-flex-none sb-border-b sb-p-6" }, /* @__PURE__ */ React25__namespace.createElement(DialogTitle, null, input.friendlyName || input.name, " editor")), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-flex-1 sb-overflow-y-auto" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1570
1577
|
FormField,
|
|
1571
1578
|
{
|
|
1572
1579
|
key: input.name,
|
|
@@ -1621,11 +1628,11 @@ var RenderInput = (props) => {
|
|
|
1621
1628
|
return /* @__PURE__ */ React25__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange });
|
|
1622
1629
|
case "date":
|
|
1623
1630
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1624
|
-
|
|
1631
|
+
chunk2S5KDJXM_js.Button,
|
|
1625
1632
|
{
|
|
1626
1633
|
variant: "outline",
|
|
1627
1634
|
size: "sm",
|
|
1628
|
-
className:
|
|
1635
|
+
className: chunkIACBZNOK_js.cn(
|
|
1629
1636
|
"sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
|
|
1630
1637
|
!field.value && "sb-text-muted-foreground"
|
|
1631
1638
|
)
|
|
@@ -1665,7 +1672,7 @@ var RenderInput = (props) => {
|
|
|
1665
1672
|
}
|
|
1666
1673
|
};
|
|
1667
1674
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
1668
|
-
var tabsListVariants =
|
|
1675
|
+
var tabsListVariants = chunkIACBZNOK_js.tv({
|
|
1669
1676
|
variants: {
|
|
1670
1677
|
variant: {
|
|
1671
1678
|
contained: "sb-inline-flex sb-h-10 sb-items-center sb-justify-center sb-rounded-md sb-bg-muted sb-p-1 sb-text-muted-foreground",
|
|
@@ -1685,7 +1692,7 @@ var TabsList = React25__namespace.forwardRef(({ variant, className, ...props },
|
|
|
1685
1692
|
}
|
|
1686
1693
|
));
|
|
1687
1694
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
1688
|
-
var tabsTriggerVariants =
|
|
1695
|
+
var tabsTriggerVariants = chunkIACBZNOK_js.tv({
|
|
1689
1696
|
variants: {
|
|
1690
1697
|
variant: {
|
|
1691
1698
|
contained: "sb-inline-flex sb-items-center sb-justify-center sb-whitespace-nowrap sb-rounded-sm sb-px-3 sb-py-1.5 sb-text-sm sb-font-medium sb-ring-offset-background sb-transition-all focus-visible:sb-outline-none focus-visible:sb-ring-2 focus-visible:sb-ring-ring focus-visible:sb-ring-offset-2 disabled:sb-pointer-events-none disabled:sb-opacity-50 data-[state=active]:sb-bg-background data-[state=active]:sb-text-foreground data-[state=active]:sb-shadow-sm",
|
|
@@ -1709,7 +1716,7 @@ var TabsContent = React25__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1709
1716
|
TabsPrimitive__namespace.Content,
|
|
1710
1717
|
{
|
|
1711
1718
|
ref,
|
|
1712
|
-
className:
|
|
1719
|
+
className: chunkIACBZNOK_js.cn(
|
|
1713
1720
|
"sb-ring-offset-background sb-font-roboto focus-visible:sb-outline-none focus-visible:sb-ring-2 focus-visible:sb-ring-ring focus-visible:sb-ring-offset-2",
|
|
1714
1721
|
className
|
|
1715
1722
|
),
|
|
@@ -1748,11 +1755,11 @@ var BackgroundPicker = (props) => {
|
|
|
1748
1755
|
return "solid";
|
|
1749
1756
|
}, [background]);
|
|
1750
1757
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1751
|
-
|
|
1758
|
+
chunk2S5KDJXM_js.Button,
|
|
1752
1759
|
{
|
|
1753
1760
|
variant: "outline",
|
|
1754
1761
|
size: "sm",
|
|
1755
|
-
className:
|
|
1762
|
+
className: chunkIACBZNOK_js.cn(
|
|
1756
1763
|
"sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
|
|
1757
1764
|
!background && "sb-text-muted-foreground",
|
|
1758
1765
|
className
|
|
@@ -1948,7 +1955,7 @@ var designSchema = zod.z.object({
|
|
|
1948
1955
|
});
|
|
1949
1956
|
var ItemDesignForm = (props) => {
|
|
1950
1957
|
const { item } = props;
|
|
1951
|
-
const component =
|
|
1958
|
+
const component = chunkIACBZNOK_js.builder.getComponent(item.component);
|
|
1952
1959
|
if (!component) {
|
|
1953
1960
|
throw new Error(
|
|
1954
1961
|
`[simple-builder]: Component "${item.component}" not found`
|
|
@@ -1990,7 +1997,7 @@ var ItemDesignForm = (props) => {
|
|
|
1990
1997
|
mobile: getDefaultDeviceValues("mobile")
|
|
1991
1998
|
}
|
|
1992
1999
|
});
|
|
1993
|
-
const { patchItem } =
|
|
2000
|
+
const { patchItem } = chunk2S5KDJXM_js.useBuilder();
|
|
1994
2001
|
const onSubmit = (values) => {
|
|
1995
2002
|
const { container, hidden, desktop, mobile } = values;
|
|
1996
2003
|
const dirtyFields = form.formState.dirtyFields;
|
|
@@ -2123,7 +2130,7 @@ var ScrollArea = React25__namespace.forwardRef(({ className, children, ...props
|
|
|
2123
2130
|
ScrollAreaPrimitive__namespace.Root,
|
|
2124
2131
|
{
|
|
2125
2132
|
ref,
|
|
2126
|
-
className:
|
|
2133
|
+
className: chunkIACBZNOK_js.cn("sb-relative sb-overflow-hidden", className),
|
|
2127
2134
|
...props
|
|
2128
2135
|
},
|
|
2129
2136
|
/* @__PURE__ */ React25__namespace.createElement(ScrollAreaPrimitive__namespace.Viewport, { className: "sb-h-full sb-max-h-[80vh] sb-w-full sb-rounded-[inherit]" }, children),
|
|
@@ -2136,7 +2143,7 @@ var ScrollBar = React25__namespace.forwardRef(({ className, orientation = "verti
|
|
|
2136
2143
|
{
|
|
2137
2144
|
ref,
|
|
2138
2145
|
orientation,
|
|
2139
|
-
className:
|
|
2146
|
+
className: chunkIACBZNOK_js.cn(
|
|
2140
2147
|
"sb-flex sb-touch-none sb-select-none sb-transition-colors",
|
|
2141
2148
|
orientation === "vertical" && "sb-h-full sb-w-2.5 sb-border-l sb-border-l-transparent sb-p-[1px]",
|
|
2142
2149
|
orientation === "horizontal" && "sb-h-2.5 sb-flex-col sb-border-t sb-border-t-transparent sb-p-[1px]",
|
|
@@ -2151,9 +2158,9 @@ ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displ
|
|
|
2151
2158
|
// src/components/container-item-toolbar.tsx
|
|
2152
2159
|
var ContainerItemToolbar = (props) => {
|
|
2153
2160
|
const { contentId, canBringUp = false, canBringDown = false } = props;
|
|
2154
|
-
const { bringUp, bringDown } =
|
|
2161
|
+
const { bringUp, bringDown } = chunk2S5KDJXM_js.useBuilder();
|
|
2155
2162
|
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-absolute sb-z-20 sb-top-1 sb-right-1 sb-rounded-md sb-shadow sb-flex sb-flex-col sb-gap-1 sb-p-1 sb-bg-card sb-text-card-foreground sb-item-toolbar sb-opacity-0 sb-transition-opacity" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-h-10 sb-p-1 sb-border sb-border-input sb-bg-background sb-rounded-md sb-text-sm sb-font-medium sb-flex sb-gap-1 sb-items-center sb-justify-start" }, /* @__PURE__ */ React25__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React25__namespace.createElement(
|
|
2156
|
-
|
|
2163
|
+
chunk2S5KDJXM_js.Button,
|
|
2157
2164
|
{
|
|
2158
2165
|
variant: "ghost",
|
|
2159
2166
|
className: "sb-w-8 sb-h-8 sb-p-0",
|
|
@@ -2162,7 +2169,7 @@ var ContainerItemToolbar = (props) => {
|
|
|
2162
2169
|
},
|
|
2163
2170
|
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
|
|
2164
2171
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
2165
|
-
|
|
2172
|
+
chunk2S5KDJXM_js.Button,
|
|
2166
2173
|
{
|
|
2167
2174
|
variant: "ghost",
|
|
2168
2175
|
className: "sb-w-8 sb-h-8 sb-p-0",
|
|
@@ -2173,7 +2180,7 @@ var ContainerItemToolbar = (props) => {
|
|
|
2173
2180
|
), /* @__PURE__ */ React25__namespace.createElement(DeleteButton, { contentId })));
|
|
2174
2181
|
};
|
|
2175
2182
|
var EditButton = ({ id }) => {
|
|
2176
|
-
return /* @__PURE__ */ React25__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2183
|
+
return /* @__PURE__ */ React25__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(chunk2S5KDJXM_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React25__namespace.createElement(
|
|
2177
2184
|
PopoverContent,
|
|
2178
2185
|
{
|
|
2179
2186
|
side: "left",
|
|
@@ -2188,7 +2195,7 @@ var EditButton = ({ id }) => {
|
|
|
2188
2195
|
};
|
|
2189
2196
|
var EditPopoverInner = (props) => {
|
|
2190
2197
|
const { id } = props;
|
|
2191
|
-
const { getItem } =
|
|
2198
|
+
const { getItem } = chunk2S5KDJXM_js.useBuilder();
|
|
2192
2199
|
const item = getItem(id);
|
|
2193
2200
|
if (!item) {
|
|
2194
2201
|
throw new Error(
|
|
@@ -2198,9 +2205,9 @@ var EditPopoverInner = (props) => {
|
|
|
2198
2205
|
return /* @__PURE__ */ React25__namespace.createElement(Tabs, null, /* @__PURE__ */ React25__namespace.createElement(TabsList, { variant: "text", defaultValue: "content" }, /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { variant: "text", value: "content" }, "Inhoud"), /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { variant: "text", value: "design" }, "Design")), /* @__PURE__ */ React25__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React25__namespace.createElement(ScrollArea, null, /* @__PURE__ */ React25__namespace.createElement(ContainerItemForm, { item }))), /* @__PURE__ */ React25__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React25__namespace.createElement(ItemDesignForm, { item })));
|
|
2199
2206
|
};
|
|
2200
2207
|
var DeleteButton = ({ contentId }) => {
|
|
2201
|
-
const { deleteContent } =
|
|
2208
|
+
const { deleteContent } = chunk2S5KDJXM_js.useBuilder();
|
|
2202
2209
|
return /* @__PURE__ */ React25__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React25__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2203
|
-
|
|
2210
|
+
chunk2S5KDJXM_js.Button,
|
|
2204
2211
|
{
|
|
2205
2212
|
variant: "ghost",
|
|
2206
2213
|
className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
|
|
@@ -2209,7 +2216,7 @@ var DeleteButton = ({ contentId }) => {
|
|
|
2209
2216
|
)), /* @__PURE__ */ React25__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React25__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React25__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React25__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React25__namespace.createElement(
|
|
2210
2217
|
AlertDialogAction,
|
|
2211
2218
|
{
|
|
2212
|
-
className:
|
|
2219
|
+
className: chunk2S5KDJXM_js.buttonVariants({ variant: "destructive" }),
|
|
2213
2220
|
onClick: () => deleteContent(contentId)
|
|
2214
2221
|
},
|
|
2215
2222
|
"Verwijderen"
|
|
@@ -2225,7 +2232,7 @@ var BuildContainerInner = (props) => {
|
|
|
2225
2232
|
"[simple-builder]: Multiple content blocks detected when using property multiple false."
|
|
2226
2233
|
);
|
|
2227
2234
|
}
|
|
2228
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React25__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React25__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React25__namespace.createElement(React25__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2235
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React25__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React25__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React25__namespace.createElement(React25__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React25__namespace.createElement(chunkIACBZNOK_js.DesignWrapper, { building: true, styles: item.styles }, chunkIACBZNOK_js.builder.bindComponent(item, true)), /* @__PURE__ */ React25__namespace.createElement(
|
|
2229
2236
|
ContainerItemToolbar,
|
|
2230
2237
|
{
|
|
2231
2238
|
contentId: item.id,
|
|
@@ -2243,12 +2250,12 @@ var BuildContainerInner = (props) => {
|
|
|
2243
2250
|
};
|
|
2244
2251
|
var build_container_client_default = BuildContainerInner;
|
|
2245
2252
|
var AddContentButton = (props) => {
|
|
2246
|
-
const components =
|
|
2247
|
-
const { addContent } =
|
|
2253
|
+
const components = chunkIACBZNOK_js.builder.getComponents();
|
|
2254
|
+
const { addContent } = chunk2S5KDJXM_js.useBuilder();
|
|
2248
2255
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb-p-1" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-2" }, components.map((component) => {
|
|
2249
2256
|
const Icon2 = component.icon ?? lucideReact.ImageIcon;
|
|
2250
2257
|
return /* @__PURE__ */ React25__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2251
|
-
|
|
2258
|
+
chunk2S5KDJXM_js.Button,
|
|
2252
2259
|
{
|
|
2253
2260
|
variant: "ghost",
|
|
2254
2261
|
className: "sb-justify-start",
|
|
@@ -2267,11 +2274,11 @@ var AddContentButton = (props) => {
|
|
|
2267
2274
|
}))));
|
|
2268
2275
|
};
|
|
2269
2276
|
var AddContentPlaceholder = (props) => {
|
|
2270
|
-
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2277
|
+
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React25__namespace.createElement(chunk2S5KDJXM_js.Button, { size: "sm" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
|
|
2271
2278
|
};
|
|
2272
2279
|
var AddContentDividerButton = (props) => {
|
|
2273
2280
|
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-w-full sb-h-1 sb--my-[2px] sb-bg-primary sb-relative sb-z-20 sb-opacity-0 add-content-divider-button sb-transition-opacity" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2274
|
-
|
|
2281
|
+
chunk2S5KDJXM_js.Button,
|
|
2275
2282
|
{
|
|
2276
2283
|
size: "sm",
|
|
2277
2284
|
className: "sb-absolute sb-left-1/2 sb-top-1/2 sb--translate-y-1/2 sb--translate-x-1/2 sb-shadow"
|