@simple-builder/react 1.0.0 → 1.0.2

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkTEAHH2DG_js = require('./chunk-TEAHH2DG.js');
5
+ var chunk3S4FFEHM_js = require('./chunk-3S4FFEHM.js');
6
6
  var chunkVMHWPKU4_js = require('./chunk-VMHWPKU4.js');
7
7
  var React15 = require('react');
8
8
  var lucideReact = require('lucide-react');
@@ -56,8 +56,8 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
56
56
  var AlertDialogOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15__namespace.createElement(
57
57
  AlertDialogPrimitive__namespace.Overlay,
58
58
  {
59
- className: chunkTEAHH2DG_js.cn(
60
- "fixed inset-0 z-50 bg-sb-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
59
+ className: chunk3S4FFEHM_js.cn(
60
+ "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",
61
61
  className
62
62
  ),
63
63
  ...props,
@@ -69,8 +69,8 @@ var AlertDialogContent = React15__namespace.forwardRef(({ className, ...props },
69
69
  AlertDialogPrimitive__namespace.Content,
70
70
  {
71
71
  ref,
72
- className: chunkTEAHH2DG_js.cn(
73
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-sb-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
72
+ className: chunk3S4FFEHM_js.cn(
73
+ "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",
74
74
  className
75
75
  ),
76
76
  ...props
@@ -83,8 +83,8 @@ var AlertDialogFooter = ({
83
83
  }) => /* @__PURE__ */ React15__namespace.createElement(
84
84
  "div",
85
85
  {
86
- className: chunkTEAHH2DG_js.cn(
87
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
86
+ className: chunk3S4FFEHM_js.cn(
87
+ "sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
88
88
  className
89
89
  ),
90
90
  ...props
@@ -95,7 +95,7 @@ var AlertDialogTitle = React15__namespace.forwardRef(({ className, ...props }, r
95
95
  AlertDialogPrimitive__namespace.Title,
96
96
  {
97
97
  ref,
98
- className: chunkTEAHH2DG_js.cn("text-lg font-semibold", className),
98
+ className: chunk3S4FFEHM_js.cn("sb-text-lg sb-font-semibold", className),
99
99
  ...props
100
100
  }
101
101
  ));
@@ -104,7 +104,7 @@ var AlertDialogDescription = React15__namespace.forwardRef(({ className, ...prop
104
104
  AlertDialogPrimitive__namespace.Description,
105
105
  {
106
106
  ref,
107
- className: chunkTEAHH2DG_js.cn("text-sm text-sb-muted-foreground", className),
107
+ className: chunk3S4FFEHM_js.cn("sb-text-sm sb-text-muted-foreground", className),
108
108
  ...props
109
109
  }
110
110
  ));
@@ -113,7 +113,7 @@ var AlertDialogAction = React15__namespace.forwardRef(({ className, ...props },
113
113
  AlertDialogPrimitive__namespace.Action,
114
114
  {
115
115
  ref,
116
- className: chunkTEAHH2DG_js.cn(chunkTEAHH2DG_js.buttonVariants(), className),
116
+ className: chunk3S4FFEHM_js.cn(chunk3S4FFEHM_js.buttonVariants(), className),
117
117
  ...props
118
118
  }
119
119
  ));
@@ -122,9 +122,9 @@ var AlertDialogCancel = React15__namespace.forwardRef(({ className, ...props },
122
122
  AlertDialogPrimitive__namespace.Cancel,
123
123
  {
124
124
  ref,
125
- className: chunkTEAHH2DG_js.cn(
126
- chunkTEAHH2DG_js.buttonVariants({ variant: "outline" }),
127
- "mt-2 sm:mt-0",
125
+ className: chunk3S4FFEHM_js.cn(
126
+ chunk3S4FFEHM_js.buttonVariants({ variant: "outline" }),
127
+ "sb-mt-2 sm:sb-mt-0",
128
128
  className
129
129
  ),
130
130
  ...props
@@ -132,13 +132,13 @@ var AlertDialogCancel = React15__namespace.forwardRef(({ className, ...props },
132
132
  ));
133
133
  AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
134
134
  var labelVariants = classVarianceAuthority.cva(
135
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
135
+ "sb-text-sm sb-font-medium sb-font-roboto sb-leading-none peer-disabled:sb-cursor-not-allowed peer-disabled:sb-opacity-70"
136
136
  );
137
137
  var Label = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15__namespace.createElement(
138
138
  LabelPrimitive__namespace.Root,
139
139
  {
140
140
  ref,
141
- className: chunkTEAHH2DG_js.cn(labelVariants(), className),
141
+ className: chunk3S4FFEHM_js.cn(labelVariants(), className),
142
142
  ...props
143
143
  }
144
144
  ));
@@ -177,7 +177,7 @@ var FormItemContext = React15__namespace.createContext(
177
177
  );
178
178
  var FormItem = React15__namespace.forwardRef(({ className, ...props }, ref) => {
179
179
  const id = React15__namespace.useId();
180
- return /* @__PURE__ */ React15__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React15__namespace.createElement("div", { ref, className: chunkTEAHH2DG_js.cn("space-y-2", className), ...props }));
180
+ return /* @__PURE__ */ React15__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React15__namespace.createElement("div", { ref, className: chunk3S4FFEHM_js.cn("sb-space-y-2", className), ...props }));
181
181
  });
182
182
  FormItem.displayName = "FormItem";
183
183
  var FormLabel = React15__namespace.forwardRef(({ className, ...props }, ref) => {
@@ -186,7 +186,7 @@ var FormLabel = React15__namespace.forwardRef(({ className, ...props }, ref) =>
186
186
  Label,
187
187
  {
188
188
  ref,
189
- className: chunkTEAHH2DG_js.cn(error && "text-sb-destructive", className),
189
+ className: chunk3S4FFEHM_js.cn(error && "sb-text-destructive", className),
190
190
  htmlFor: formItemId,
191
191
  ...props
192
192
  }
@@ -214,7 +214,10 @@ var FormDescription = React15__namespace.forwardRef(({ className, ...props }, re
214
214
  {
215
215
  ref,
216
216
  id: formDescriptionId,
217
- className: chunkTEAHH2DG_js.cn("text-sm text-sb-muted-foreground", className),
217
+ className: chunk3S4FFEHM_js.cn(
218
+ "sb-text-sm sb-font-roboto sb-text-muted-foreground",
219
+ className
220
+ ),
218
221
  ...props
219
222
  }
220
223
  );
@@ -231,7 +234,10 @@ var FormMessage = React15__namespace.forwardRef(({ className, children, ...props
231
234
  {
232
235
  ref,
233
236
  id: formMessageId,
234
- className: chunkTEAHH2DG_js.cn("text-sm font-medium text-sb-destructive", className),
237
+ className: chunk3S4FFEHM_js.cn(
238
+ "sb-text-sm sb-font-roboto sb-font-medium sb-text-destructive",
239
+ className
240
+ ),
235
241
  ...props
236
242
  },
237
243
  body
@@ -247,8 +253,8 @@ var PopoverContent = React15__namespace.forwardRef(({ className, align = "center
247
253
  ref,
248
254
  align,
249
255
  sideOffset,
250
- className: chunkTEAHH2DG_js.cn(
251
- "z-50 w-72 rounded-md border bg-sb-popover p-4 text-sb-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
256
+ className: chunk3S4FFEHM_js.cn(
257
+ "sb-z-50 sb-w-72 sb-font-roboto 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",
252
258
  className
253
259
  ),
254
260
  ...props
@@ -260,7 +266,10 @@ var TabsList = React15__namespace.forwardRef(({ className, ...props }, ref) => /
260
266
  TabsPrimitive__namespace.List,
261
267
  {
262
268
  ref,
263
- className: chunkTEAHH2DG_js.cn("flex items-center border-b px-4 space-x-6", className),
269
+ className: chunk3S4FFEHM_js.cn(
270
+ "sb-flex sb-items-center sb-border-b sb-px-4 sb-space-x-6",
271
+ className
272
+ ),
264
273
  ...props
265
274
  }
266
275
  ));
@@ -269,8 +278,8 @@ var TabsTrigger = React15__namespace.forwardRef(({ className, ...props }, ref) =
269
278
  TabsPrimitive__namespace.Trigger,
270
279
  {
271
280
  ref,
272
- className: chunkTEAHH2DG_js.cn(
273
- "inline-flex items-center justify-center whitespace-nowrap py-3 text-sm font-medium transition-all focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-black border-b-2 border-transparent data-[state=active]:text-sb-foreground text-sb-muted-sb-foreground",
281
+ className: chunk3S4FFEHM_js.cn(
282
+ "sb-inline-flex sb-font-roboto sb-items-center sb-justify-center sb-whitespace-nowrap sb-py-3 sb-text-sm sb-font-medium sb-transition-all focus-visible:sb-outline-none disabled:sb-pointer-events-none disabled:sb-opacity-50 data-[state=active]:sb-border-black sb-border-b-2 sb-border-transparent data-[state=active]:sb-text-foreground sb-text-muted-foreground",
274
283
  className
275
284
  ),
276
285
  ...props
@@ -281,8 +290,8 @@ var TabsContent = React15__namespace.forwardRef(({ className, ...props }, ref) =
281
290
  TabsPrimitive__namespace.Content,
282
291
  {
283
292
  ref,
284
- className: chunkTEAHH2DG_js.cn(
285
- "ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
293
+ className: chunk3S4FFEHM_js.cn(
294
+ "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",
286
295
  className
287
296
  ),
288
297
  ...props
@@ -374,41 +383,41 @@ var MediaInput = (props) => {
374
383
  body: JSON.stringify({ src })
375
384
  });
376
385
  };
377
- return /* @__PURE__ */ React15__namespace.createElement("div", { className: chunkTEAHH2DG_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React15__namespace.createElement(MediaInputItem, { key: src, className: chunkTEAHH2DG_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React15__namespace.createElement(
386
+ return /* @__PURE__ */ React15__namespace.createElement("div", { className: chunk3S4FFEHM_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React15__namespace.createElement(MediaInputItem, { key: src, className: chunk3S4FFEHM_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React15__namespace.createElement(
378
387
  Image,
379
388
  {
380
389
  src,
381
390
  alt: "",
382
391
  fill: true,
383
- className: "absolute inset-0 object-cover pointer-events-none"
392
+ className: "sb-absolute sb-inset-0 sb-object-cover sb-pointer-events-none"
384
393
  }
385
- ), /* @__PURE__ */ React15__namespace.createElement("div", { className: "absolute right-1 top-1 z-30 flex items-center justify-end gap-3 opacity-0 transition-opacity group-hover:opacity-100" }, /* @__PURE__ */ React15__namespace.createElement(
394
+ ), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-absolute sb-right-1 sb-top-1 sb-z-30 sb-flex sb-items-center sb-justify-end sb-gap-3 sb-opacity-0 sb-transition-opacity group-hover:sb-opacity-100" }, /* @__PURE__ */ React15__namespace.createElement(
386
395
  "button",
387
396
  {
388
- className: "flex h-8 w-8 items-center justify-center rounded-full border bg-sb-secondary text-sb-secondary-foreground opacity-90 shadow transition-opacity hover:opacity-100",
397
+ className: "sb-flex sb-h-8 sb-w-8 sb-items-center sb-justify-center sb-rounded-full sb-border sb-bg-secondary sb-text-secondary-foreground sb-opacity-90 sb-shadow sb-transition-opacity hover:sb-opacity-100",
389
398
  onClick: () => handleSourceDelete(src)
390
399
  },
391
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.Trash2Icon, { className: "h-4 w-4" })
400
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.Trash2Icon, { className: "sb-h-4 sb-w-4" })
392
401
  )))), queue.map((_, i) => /* @__PURE__ */ React15__namespace.createElement(
393
402
  MediaInputItem,
394
403
  {
395
404
  key: i,
396
- className: chunkTEAHH2DG_js.cn(
397
- "flex h-28 w-28 items-center justify-center",
405
+ className: chunk3S4FFEHM_js.cn(
406
+ "sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
398
407
  props.itemClassName
399
408
  )
400
409
  },
401
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.Loader2Icon, { className: "h-6 w-6 animate-spin" })
410
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.Loader2Icon, { className: "sb-h-6 sb-w-6 sb-animate-spin" })
402
411
  )), multiple || !multiple && !sources.length && !queue.length ? /* @__PURE__ */ React15__namespace.createElement(
403
412
  "label",
404
413
  {
405
414
  htmlFor: id,
406
- className: chunkTEAHH2DG_js.cn(
407
- "flex h-28 w-28 cursor-pointer items-center justify-center rounded-lg border",
415
+ className: chunk3S4FFEHM_js.cn(
416
+ "sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
408
417
  props.itemClassName
409
418
  )
410
419
  },
411
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "h-6 w-6" }),
420
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "sb-h-6 sb-w-6" }),
412
421
  /* @__PURE__ */ React15__namespace.createElement(
413
422
  "input",
414
423
  {
@@ -417,7 +426,7 @@ var MediaInput = (props) => {
417
426
  onChange: handleFilesAdd,
418
427
  multiple,
419
428
  accept: ".png,.jpg,.jpeg,.webp,.gif,.svg",
420
- className: "hidden"
429
+ className: "sb-hidden"
421
430
  }
422
431
  )
423
432
  ) : null);
@@ -426,8 +435,8 @@ var MediaInputItem = (props) => {
426
435
  return /* @__PURE__ */ React15__namespace.createElement(
427
436
  "div",
428
437
  {
429
- className: chunkTEAHH2DG_js.cn(
430
- "relative h-28 w-28 overflow-hidden rounded-lg border",
438
+ className: chunk3S4FFEHM_js.cn(
439
+ "sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
431
440
  props.className
432
441
  )
433
442
  },
@@ -474,35 +483,35 @@ var BackgroundPicker = (props) => {
474
483
  return "solid";
475
484
  }, [background]);
476
485
  return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
477
- chunkTEAHH2DG_js.Button,
486
+ chunk3S4FFEHM_js.Button,
478
487
  {
479
488
  variant: "outline",
480
489
  size: "sm",
481
- className: chunkTEAHH2DG_js.cn(
482
- "justify-start text-left font-normal normal-case w-full",
483
- !background && "text-sb-muted-foreground",
490
+ className: chunk3S4FFEHM_js.cn(
491
+ "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
492
+ !background && "sb-text-muted-foreground",
484
493
  className
485
494
  )
486
495
  },
487
- /* @__PURE__ */ React15__namespace.createElement("div", { className: "w-full flex items-center gap-2" }, background ? /* @__PURE__ */ React15__namespace.createElement(
496
+ /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-w-full sb-flex sb-items-center sb-gap-2" }, background ? /* @__PURE__ */ React15__namespace.createElement(
488
497
  "div",
489
498
  {
490
- className: "h-4 w-4 rounded !bg-center !bg-cover transition-all border",
499
+ className: "sb-h-4 sb-w-4 sb-rounded !sb-bg-center !sb-bg-cover sb-transition-all sb-border",
491
500
  style: { background }
492
501
  }
493
- ) : /* @__PURE__ */ React15__namespace.createElement(lucideReact.PaintbrushIcon, { className: "h-4 w-4" }), /* @__PURE__ */ React15__namespace.createElement("div", { className: "truncate flex-1" }, background ? background : "Kies een achtergrond"))
494
- )), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "w-64 p-0" }, /* @__PURE__ */ React15__namespace.createElement(Tabs, { defaultValue: defaultTab }, /* @__PURE__ */ React15__namespace.createElement(TabsList, { className: "w-full" }, /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { className: "flex-1", value: "solid" }, "Solid"), /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { className: "flex-1", value: "gradient" }, "Gradient"), /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { className: "flex-1", value: "image" }, "Image")), /* @__PURE__ */ React15__namespace.createElement(
502
+ ) : /* @__PURE__ */ React15__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb-h-4 sb-w-4" }), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-truncate sb-flex-1" }, background ? background : "Kies een achtergrond"))
503
+ )), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "sb-w-64 sb-p-0" }, /* @__PURE__ */ React15__namespace.createElement(Tabs, { defaultValue: defaultTab }, /* @__PURE__ */ React15__namespace.createElement(TabsList, { className: "sb-w-full" }, /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "solid" }, "Solid"), /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "gradient" }, "Gradient"), /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { className: "sb-flex-1", value: "image" }, "Image")), /* @__PURE__ */ React15__namespace.createElement(
495
504
  TabsContent,
496
505
  {
497
506
  value: "solid",
498
- className: "data-[state=active]:flex flex-wrap gap-1 p-4"
507
+ className: "data-[state=active]:sb-flex sb-flex-wrap sb-gap-1 sb-p-4"
499
508
  },
500
509
  solids.map((s) => /* @__PURE__ */ React15__namespace.createElement(
501
510
  "div",
502
511
  {
503
512
  key: s,
504
513
  style: { background: s },
505
- className: "rounded-md h-6 w-6 cursor-pointer active:scale-105 border",
514
+ className: "sb-rounded-md sb-h-6 sb-w-6 sb-cursor-pointer active:sb-scale-105 sb-border",
506
515
  onClick: () => onBackgroundChange(s)
507
516
  }
508
517
  ))
@@ -510,7 +519,7 @@ var BackgroundPicker = (props) => {
510
519
  TabsContent,
511
520
  {
512
521
  value: "gradient",
513
- className: "data-[state=active]:flex flex-wrap gap-1 p-4"
522
+ className: "data-[state=active]:sb-flex sb-flex-wrap sb-gap-1 sb-p-4"
514
523
  },
515
524
  gradients.map((s) => /* @__PURE__ */ React15__namespace.createElement(
516
525
  "div",
@@ -521,11 +530,11 @@ var BackgroundPicker = (props) => {
521
530
  onClick: () => onBackgroundChange(s)
522
531
  }
523
532
  ))
524
- ), /* @__PURE__ */ React15__namespace.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "p-4 border-b" }, /* @__PURE__ */ React15__namespace.createElement(
533
+ ), /* @__PURE__ */ React15__namespace.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-p-4 sb-border-b" }, /* @__PURE__ */ React15__namespace.createElement(
525
534
  MediaInput,
526
535
  {
527
- className: "grid grid-cols-2 gap-1",
528
- itemClassName: "aspect-video h-auto w-full",
536
+ className: "sb-grid sb-grid-cols-2 sb-gap-1",
537
+ itemClassName: "sb-aspect-video sb-h-auto sb-w-full",
529
538
  multiple: false,
530
539
  onFilesChange: (files) => {
531
540
  if (!files.length)
@@ -537,12 +546,12 @@ var BackgroundPicker = (props) => {
537
546
  "media-input: Error: " + e?.description
538
547
  )
539
548
  }
540
- )), /* @__PURE__ */ React15__namespace.createElement("div", { className: "grid grid-cols-2 gap-1 p-4" }, images.map((s) => /* @__PURE__ */ React15__namespace.createElement(
549
+ )), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-1 sb-p-4" }, images.map((s) => /* @__PURE__ */ React15__namespace.createElement(
541
550
  "div",
542
551
  {
543
552
  key: s,
544
553
  style: { backgroundImage: s },
545
- className: "rounded-md bg-cover bg-center aspect-video w-full cursor-pointer border active:scale-105",
554
+ className: "sb-rounded-md sb-bg-cover sb-bg-center sb-aspect-video sb-w-full sb-cursor-pointer sb-border active:sb-scale-105",
546
555
  onClick: () => onBackgroundChange(s)
547
556
  }
548
557
  )))))));
@@ -557,44 +566,44 @@ function Calendar({
557
566
  reactDayPicker.DayPicker,
558
567
  {
559
568
  showOutsideDays,
560
- className: chunkTEAHH2DG_js.cn("p-3", className),
569
+ className: chunk3S4FFEHM_js.cn("sb-p-3 sb-font-roboto", className),
561
570
  classNames: {
562
- months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
563
- month: "space-y-4",
564
- caption: "flex justify-center pt-1 relative items-center",
565
- caption_label: "text-sm font-medium",
566
- nav: "space-x-1 flex items-center",
567
- nav_button: chunkTEAHH2DG_js.cn(
568
- chunkTEAHH2DG_js.buttonVariants({ variant: "outline" }),
569
- "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
571
+ months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
572
+ month: "sb-space-y-4",
573
+ caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
574
+ caption_label: "sb-text-sm sb-font-medium",
575
+ nav: "sb-space-x-1 sb-flex sb-items-center",
576
+ nav_button: chunk3S4FFEHM_js.cn(
577
+ chunk3S4FFEHM_js.buttonVariants({ variant: "outline" }),
578
+ "sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
570
579
  ),
571
- nav_button_previous: "absolute left-1",
572
- nav_button_next: "absolute right-1",
573
- table: "w-full border-collapse space-y-1",
574
- head_row: "flex",
575
- head_cell: "text-sb-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
576
- row: "flex w-full mt-2",
577
- cell: chunkTEAHH2DG_js.cn(
578
- "relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-sb-accent [&:has([aria-selected].day-outside)]:bg-sb-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",
579
- props.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
580
+ nav_button_previous: "sb-absolute sb-left-1",
581
+ nav_button_next: "sb-absolute sb-right-1",
582
+ table: "sb-w-full sb-border-collapse sb-space-y-1",
583
+ head_row: "sb-flex",
584
+ head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
585
+ row: "sb-flex sb-w-full sb-mt-2",
586
+ cell: chunk3S4FFEHM_js.cn(
587
+ "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",
588
+ 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"
580
589
  ),
581
- day: chunkTEAHH2DG_js.cn(
582
- chunkTEAHH2DG_js.buttonVariants({ variant: "ghost" }),
583
- "h-8 w-8 p-0 font-normal aria-selected:opacity-100"
590
+ day: chunk3S4FFEHM_js.cn(
591
+ chunk3S4FFEHM_js.buttonVariants({ variant: "ghost" }),
592
+ "sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
584
593
  ),
585
594
  day_range_start: "day-range-start",
586
595
  day_range_end: "day-range-end",
587
- day_selected: "bg-sb-primary text-sb-primary-foreground hover:bg-sb-primary hover:text-sb-primary-foreground focus:bg-sb-primary focus:text-sb-primary-foreground",
588
- day_today: "bg-sb-accent text-sb-accent-foreground",
589
- day_outside: "day-outside text-sb-muted-foreground opacity-50 aria-selected:bg-sb-accent/50 aria-selected:text-sb-muted-foreground aria-selected:opacity-30",
590
- day_disabled: "text-sb-muted-foreground opacity-50",
591
- day_range_middle: "aria-selected:bg-sb-accent aria-selected:text-sb-accent-foreground",
596
+ day_selected: "sb-bg-primary sb-text-primary-foreground hover:sb-bg-primary hover:sb-text-primary-foreground focus:sb-bg-primary focus:sb-text-primary-foreground",
597
+ day_today: "sb-bg-accent sb-text-accent-foreground",
598
+ day_outside: "day-outside sb-text-muted-foreground sb-opacity-50 aria-selected:sb-bg-accent/50 aria-selected:sb-text-muted-foreground aria-selected:sb-opacity-30",
599
+ day_disabled: "sb-text-muted-foreground sb-opacity-50",
600
+ day_range_middle: "aria-selected:sb-bg-accent aria-selected:sb-text-accent-foreground",
592
601
  day_hidden: "invisible",
593
602
  ...classNames
594
603
  },
595
604
  components: {
596
- IconLeft: () => /* @__PURE__ */ React15__namespace.createElement(lucideReact.ChevronLeftIcon, { className: "h-4 w-4" }),
597
- IconRight: () => /* @__PURE__ */ React15__namespace.createElement(lucideReact.ChevronRightIcon, { className: "h-4 w-4" })
605
+ IconLeft: () => /* @__PURE__ */ React15__namespace.createElement(lucideReact.ChevronLeftIcon, { className: "sb-h-4 sb-w-4" }),
606
+ IconRight: () => /* @__PURE__ */ React15__namespace.createElement(lucideReact.ChevronRightIcon, { className: "sb-h-4 sb-w-4" })
598
607
  },
599
608
  ...props
600
609
  }
@@ -615,29 +624,29 @@ var ColorPicker = (props) => {
615
624
  "#FF0000"
616
625
  ];
617
626
  return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
618
- chunkTEAHH2DG_js.Button,
627
+ chunk3S4FFEHM_js.Button,
619
628
  {
620
629
  variant: "outline",
621
630
  size: "sm",
622
- className: chunkTEAHH2DG_js.cn(
623
- "justify-start text-left font-normal normal-case w-full",
624
- !color && "text-sb-muted-foreground",
631
+ className: chunk3S4FFEHM_js.cn(
632
+ "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
633
+ !color && "sb-text-muted-foreground",
625
634
  className
626
635
  )
627
636
  },
628
- /* @__PURE__ */ React15__namespace.createElement("div", { className: "w-full flex items-center gap-2" }, color ? /* @__PURE__ */ React15__namespace.createElement(
637
+ /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-w-full sb-flex sb-items-center sb-gap-2" }, color ? /* @__PURE__ */ React15__namespace.createElement(
629
638
  "div",
630
639
  {
631
- className: "h-4 w-4 rounded !bg-center !bg-cover transition-all border",
640
+ className: "sb-h-4 sb-w-4 sb-rounded !sb-bg-center !sb-bg-cover sb-transition-all sb-border",
632
641
  style: { background: color }
633
642
  }
634
- ) : /* @__PURE__ */ React15__namespace.createElement(lucideReact.PaintbrushIcon, { className: "h-4 w-4" }), /* @__PURE__ */ React15__namespace.createElement("div", { className: "truncate flex-1" }, color ? color : "Kies een kleur"))
635
- )), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "w-64 p-4 flex flex-wrap gap-1" }, colors.map((s) => /* @__PURE__ */ React15__namespace.createElement(
643
+ ) : /* @__PURE__ */ React15__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb-h-4 sb-w-4" }), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-truncate sb-flex-1" }, color ? color : "Kies een kleur"))
644
+ )), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "sb-w-64 sb-p-4 sb-flex sb-flex-wrap sb-gap-1" }, colors.map((s) => /* @__PURE__ */ React15__namespace.createElement(
636
645
  "div",
637
646
  {
638
647
  key: s,
639
648
  style: { background: s },
640
- className: "rounded-md h-6 w-6 cursor-pointer active:scale-105 border",
649
+ className: "sb-rounded-md sb-h-6 sb-w-6 sb-cursor-pointer active:sb-scale-105 sb-border",
641
650
  onClick: () => onColorChange(s)
642
651
  }
643
652
  ))));
@@ -648,8 +657,8 @@ var Input = React15__namespace.forwardRef(
648
657
  "input",
649
658
  {
650
659
  type,
651
- className: chunkTEAHH2DG_js.cn(
652
- "flex h-8 w-full rounded-md border border-sb-input bg-sb-background px-3 py-1 text-sm ring-offset-sb-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-sb-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sb-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
660
+ className: chunk3S4FFEHM_js.cn(
661
+ "sb-flex sb-h-8 sb-w-full sb-font-roboto sb-rounded-md sb-border sb-border-input sb-bg-background sb-px-3 sb-py-1 sb-text-sm sb-ring-offset-background file:sb-border-0 file:sb-bg-transparent file:sb-text-sm file:sb-font-medium placeholder:sb-text-muted-foreground focus-visible:sb-outline-none focus-visible:sb-ring-1 focus-visible:ring-sb-ring focus-visible:sb-ring-offset-2 disabled:sb-cursor-not-allowed disabled:sb-opacity-50",
653
662
  className
654
663
  ),
655
664
  ref,
@@ -661,15 +670,15 @@ var Input = React15__namespace.forwardRef(
661
670
  Input.displayName = "Input";
662
671
  var AdvancedInput = React15__namespace.forwardRef(
663
672
  ({ prepend, append, ...props }, ref) => {
664
- return /* @__PURE__ */ React15__namespace.createElement("div", { className: "relative" }, /* @__PURE__ */ React15__namespace.createElement(Input, { ref, className: "pl-9 pr-7 text-right", ...props }), prepend && /* @__PURE__ */ React15__namespace.createElement("div", { className: "absolute top-1/2 left-3 -translate-y-1/2" }, prepend), append && /* @__PURE__ */ React15__namespace.createElement("div", { className: "absolute top-1/2 right-3 -translate-y-1/2" }, append));
673
+ return /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-relative" }, /* @__PURE__ */ React15__namespace.createElement(Input, { ref, className: "sb-pl-9 sb-pr-7 sb-text-right", ...props }), prepend && /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-absolute sb-font-roboto sb-top-1/2 sb-left-3 sb--translate-y-1/2" }, prepend), append && /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-absolute sb-font-roboto sb-top-1/2 sb-right-3 sb--translate-y-1/2" }, append));
665
674
  }
666
675
  );
667
676
  AdvancedInput.displayName = "AdvancedInput";
668
677
  var Switch = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15__namespace.createElement(
669
678
  SwitchPrimitives__namespace.Root,
670
679
  {
671
- className: chunkTEAHH2DG_js.cn(
672
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sb-ring focus-visible:ring-offset-2 focus-visible:ring-offset-sb-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-sb-primary data-[state=unchecked]:bg-sb-input",
680
+ className: chunk3S4FFEHM_js.cn(
681
+ "peer sb-inline-flex sb-h-6 sb-w-11 sb-shrink-0 sb-cursor-pointer sb-items-center sb-rounded-full sb-border-2 sb-border-transparent 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",
673
682
  className
674
683
  ),
675
684
  ...props,
@@ -678,8 +687,8 @@ var Switch = React15__namespace.forwardRef(({ className, ...props }, ref) => /*
678
687
  /* @__PURE__ */ React15__namespace.createElement(
679
688
  SwitchPrimitives__namespace.Thumb,
680
689
  {
681
- className: chunkTEAHH2DG_js.cn(
682
- "pointer-events-none block h-5 w-5 rounded-full bg-sb-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
690
+ className: chunk3S4FFEHM_js.cn(
691
+ "sb-pointer-events-none sb-block sb-h-5 sb-w-5 sb-rounded-full sb-bg-background sb-shadow-lg sb-ring-0 sb-transition-transform data-[state=checked]:sb-translate-x-5 data-[state=unchecked]:sb-translate-x-0"
683
692
  )
684
693
  }
685
694
  )
@@ -690,8 +699,8 @@ var Textarea = React15__namespace.forwardRef(
690
699
  return /* @__PURE__ */ React15__namespace.createElement(
691
700
  "textarea",
692
701
  {
693
- className: chunkTEAHH2DG_js.cn(
694
- "flex min-h-[60px] w-full rounded-md border border-sb-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-sb-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sb-ring disabled:cursor-not-allowed disabled:opacity-50",
702
+ className: chunk3S4FFEHM_js.cn(
703
+ "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",
695
704
  className
696
705
  ),
697
706
  ref,
@@ -702,17 +711,17 @@ var Textarea = React15__namespace.forwardRef(
702
711
  );
703
712
  Textarea.displayName = "Textarea";
704
713
  var toggleVariants = classVarianceAuthority.cva(
705
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-sb-background transition-colors hover:bg-sb-muted hover:text-sb-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-sb-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-sb-accent data-[state=on]:text-sb-accent-foreground",
714
+ "sb-inline-flex sb-items-center sb-justify-center sb-rounded-md sb-text-sm sb-font-medium sb-ring-offset-background sb-transition-colors hover:sb-bg-muted hover:sb-text-muted-foreground focus-visible:sb-outline-none focus-visible:sb-ring-1 focus-visible:sb-ring-ring focus-visible:sb-ring-offset-2 disabled:sb-pointer-events-none disabled:sb-opacity-50 data-[state=on]:sb-bg-accent data-[state=on]:sb-text-accent-foreground",
706
715
  {
707
716
  variants: {
708
717
  variant: {
709
- default: "bg-transparent",
710
- outline: "border border-input bg-transparent hover:bg-sb-accent hover:text-sb-accent-foreground"
718
+ default: "sb-bg-transparent",
719
+ outline: "sb-border sb-border-input sb-bg-transparent hover:sb-bg-accent hover:sb-text-accent-foreground"
711
720
  },
712
721
  size: {
713
- default: "h-10 px-3",
714
- sm: "h-9 px-2.5",
715
- lg: "h-11 px-5"
722
+ default: "sb-h-10 sb-px-3",
723
+ sm: "sb-h-9 sb-px-2.5",
724
+ lg: "sb-h-11 sb-px-5"
716
725
  }
717
726
  },
718
727
  defaultVariants: {
@@ -725,7 +734,7 @@ var Toggle = React15__namespace.forwardRef(({ className, variant, size, ...props
725
734
  TogglePrimitive__namespace.Root,
726
735
  {
727
736
  ref,
728
- className: chunkTEAHH2DG_js.cn(toggleVariants({ variant, size, className })),
737
+ className: chunk3S4FFEHM_js.cn(toggleVariants({ variant, size, className })),
729
738
  ...props
730
739
  }
731
740
  ));
@@ -734,36 +743,36 @@ Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
734
743
  // src/components/container-item-toolbar.tsx
735
744
  var ContainerItemToolbar = (props) => {
736
745
  const { contentId, canBringUp = false, canBringDown = false } = props;
737
- const { bringUp, bringDown } = chunkTEAHH2DG_js.useBuilder();
738
- return /* @__PURE__ */ React15__namespace.createElement("div", { className: "absolute z-20 top-1 right-1 rounded-md shadow flex flex-col gap-1 p-1 bg-sb-card text-sb-card-sb-foreground sb-item-toolbar opacity-0 transition-opacity" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "h-10 p-1 border border-sb-input bg-sb-background rounded-md text-sm font-medium flex gap-1 items-center justify-start" }, /* @__PURE__ */ React15__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React15__namespace.createElement(
739
- chunkTEAHH2DG_js.Button,
746
+ const { bringUp, bringDown } = chunk3S4FFEHM_js.useBuilder();
747
+ return /* @__PURE__ */ React15__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__ */ React15__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__ */ React15__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React15__namespace.createElement(
748
+ chunk3S4FFEHM_js.Button,
740
749
  {
741
750
  variant: "ghost",
742
- className: "w-8 h-8 p-0",
751
+ className: "sb-w-8 sb-h-8 sb-p-0",
743
752
  onClick: () => bringUp(contentId),
744
753
  disabled: !canBringUp
745
754
  },
746
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.ArrowUp, { className: "h-5 w-5" })
755
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
747
756
  ), /* @__PURE__ */ React15__namespace.createElement(
748
- chunkTEAHH2DG_js.Button,
757
+ chunk3S4FFEHM_js.Button,
749
758
  {
750
759
  variant: "ghost",
751
- className: "w-8 h-8 p-0",
760
+ className: "sb-w-8 sb-h-8 sb-p-0",
752
761
  onClick: () => bringDown(contentId),
753
762
  disabled: !canBringDown
754
763
  },
755
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.ArrowDown, { className: "h-5 w-5" })
764
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.ArrowDown, { className: "sb-h-5 sb-w-5" })
756
765
  ), /* @__PURE__ */ React15__namespace.createElement(DeleteButton, { contentId })));
757
766
  };
758
767
  var EditButton = ({ id }) => {
759
- return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(chunkTEAHH2DG_js.Button, { variant: "ghost", className: "w-8 h-8 p-0" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.Edit2Icon, { className: "h-5 w-5" }))), /* @__PURE__ */ React15__namespace.createElement(
768
+ return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(chunk3S4FFEHM_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React15__namespace.createElement(
760
769
  PopoverContent,
761
770
  {
762
771
  side: "left",
763
772
  align: "start",
764
773
  sideOffset: 16,
765
774
  alignOffset: -8,
766
- className: "p-0",
775
+ className: "sb-p-0",
767
776
  collisionPadding: 16
768
777
  },
769
778
  /* @__PURE__ */ React15__namespace.createElement(EditPopoverInner, { id })
@@ -771,7 +780,7 @@ var EditButton = ({ id }) => {
771
780
  };
772
781
  var EditPopoverInner = (props) => {
773
782
  const { id } = props;
774
- const { getItem } = chunkTEAHH2DG_js.useBuilder();
783
+ const { getItem } = chunk3S4FFEHM_js.useBuilder();
775
784
  const item = getItem(id);
776
785
  if (!item) {
777
786
  throw new Error(
@@ -782,7 +791,7 @@ var EditPopoverInner = (props) => {
782
791
  };
783
792
  var ContainerItemForm = (props) => {
784
793
  const { item } = props;
785
- const { patchItem } = chunkTEAHH2DG_js.useBuilder();
794
+ const { patchItem } = chunk3S4FFEHM_js.useBuilder();
786
795
  const component = chunkVMHWPKU4_js.builder.getComponent(item.component);
787
796
  if (!component) {
788
797
  throw new Error(
@@ -807,7 +816,7 @@ var ContainerItemForm = (props) => {
807
816
  const subscription = form.watch(() => form.handleSubmit(onSubmit)());
808
817
  return () => subscription.unsubscribe();
809
818
  }, [form.watch, form.handleSubmit]);
810
- return /* @__PURE__ */ React15__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React15__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "space-y-4 p-4" }, (component.inputs || []).map((input) => /* @__PURE__ */ React15__namespace.createElement(
819
+ return /* @__PURE__ */ React15__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React15__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-space-y-4 sb-p-4" }, (component.inputs || []).map((input) => /* @__PURE__ */ React15__namespace.createElement(
811
820
  FormField,
812
821
  {
813
822
  key: input.name,
@@ -840,9 +849,9 @@ var designSchema = zod.z.object({
840
849
  });
841
850
  var ItemDesignForm = (props) => {
842
851
  const { item } = props;
843
- const { patchItem } = chunkTEAHH2DG_js.useBuilder();
844
- const initialPadding = chunkTEAHH2DG_js.spacing.parse(item.styles?.padding ?? "");
845
- const initialMargin = chunkTEAHH2DG_js.spacing.parse(item.styles?.margin ?? "");
852
+ const { patchItem } = chunk3S4FFEHM_js.useBuilder();
853
+ const initialPadding = chunk3S4FFEHM_js.spacing.parse(item.styles?.padding ?? "");
854
+ const initialMargin = chunk3S4FFEHM_js.spacing.parse(item.styles?.margin ?? "");
846
855
  const form = reactHookForm.useForm({
847
856
  resolver: zod$1.zodResolver(designSchema),
848
857
  defaultValues: {
@@ -850,7 +859,7 @@ var ItemDesignForm = (props) => {
850
859
  background: item.styles?.background ?? "",
851
860
  color: item.styles?.color ?? "",
852
861
  padding: {
853
- indipendent: chunkTEAHH2DG_js.spacing.isIndipendent(
862
+ indipendent: chunk3S4FFEHM_js.spacing.isIndipendent(
854
863
  item.styles?.padding ?? ""
855
864
  ),
856
865
  horizontal: initialPadding.left,
@@ -861,7 +870,7 @@ var ItemDesignForm = (props) => {
861
870
  bottom: initialPadding.bottom
862
871
  },
863
872
  margin: {
864
- indipendent: chunkTEAHH2DG_js.spacing.isIndipendent(
873
+ indipendent: chunk3S4FFEHM_js.spacing.isIndipendent(
865
874
  item.styles?.margin ?? ""
866
875
  ),
867
876
  horizontal: initialMargin.left,
@@ -873,13 +882,10 @@ var ItemDesignForm = (props) => {
873
882
  }
874
883
  }
875
884
  });
876
- console.log("ERRORS", form.formState.errors);
877
- console.log("VALUES", form.getValues());
878
885
  const onSubmit = (values) => {
879
886
  const { container, background, color, padding: p, margin: m } = values;
880
887
  const padding = !p.indipendent ? `${p.vertical}px ${p.horizontal}px` : `${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`;
881
888
  const margin = !m.indipendent ? `${m.vertical}px ${m.horizontal}px` : `${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`;
882
- console.log("CALLING_PATCH_ITEM", "ITEM_ID: " + item.id);
883
889
  patchItem(item.id, {
884
890
  styles: {
885
891
  container,
@@ -898,7 +904,7 @@ var ItemDesignForm = (props) => {
898
904
  "padding.indipendent",
899
905
  "margin.indipendent"
900
906
  ]);
901
- return /* @__PURE__ */ React15__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React15__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "space-y-4 p-4" }, /* @__PURE__ */ React15__namespace.createElement(
907
+ return /* @__PURE__ */ React15__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React15__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-space-y-4 sb-p-4" }, /* @__PURE__ */ React15__namespace.createElement(
902
908
  FormField,
903
909
  {
904
910
  control: form.control,
@@ -929,7 +935,7 @@ var ItemDesignForm = (props) => {
929
935
  {
930
936
  control: form.control,
931
937
  name: "container",
932
- render: ({ field }) => /* @__PURE__ */ React15__namespace.createElement(FormItem, { className: "flex flex-row items-center justify-between space-y-0" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, "Volledige breedte"), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(
938
+ render: ({ field }) => /* @__PURE__ */ React15__namespace.createElement(FormItem, { className: "sb-flex sb-flex-row sb-items-center sb-justify-between sb-space-y-0" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, "Volledige breedte"), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(
933
939
  Switch,
934
940
  {
935
941
  checked: !field.value,
@@ -937,7 +943,7 @@ var ItemDesignForm = (props) => {
937
943
  }
938
944
  )), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null))
939
945
  }
940
- ), /* @__PURE__ */ React15__namespace.createElement("hr", null), /* @__PURE__ */ React15__namespace.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, "Padding"), /* @__PURE__ */ React15__namespace.createElement("div", { className: "grid grid-cols-[1fr,auto] gap-3" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "grid grid-cols-2 items-center gap-3" }, !indipendentPadding ? /* @__PURE__ */ React15__namespace.createElement(React15__namespace.Fragment, null, /* @__PURE__ */ React15__namespace.createElement(
946
+ ), /* @__PURE__ */ React15__namespace.createElement("hr", null), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, "Padding"), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-grid sb-grid-cols-[1fr,auto] sb-gap-3" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-items-center sb-gap-3" }, !indipendentPadding ? /* @__PURE__ */ React15__namespace.createElement(React15__namespace.Fragment, null, /* @__PURE__ */ React15__namespace.createElement(
941
947
  FormField,
942
948
  {
943
949
  control: form.control,
@@ -946,8 +952,8 @@ var ItemDesignForm = (props) => {
946
952
  AdvancedInput,
947
953
  {
948
954
  ...field,
949
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "h-4 w-4" }),
950
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
955
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4" }),
956
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
951
957
  }
952
958
  )))
953
959
  }
@@ -960,8 +966,8 @@ var ItemDesignForm = (props) => {
960
966
  AdvancedInput,
961
967
  {
962
968
  ...field,
963
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "h-4 w-4 rotate-90" }),
964
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
969
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
970
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
965
971
  }
966
972
  )))
967
973
  }
@@ -974,8 +980,8 @@ var ItemDesignForm = (props) => {
974
980
  AdvancedInput,
975
981
  {
976
982
  ...field,
977
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4" }),
978
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
983
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4" }),
984
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
979
985
  }
980
986
  )))
981
987
  }
@@ -988,8 +994,8 @@ var ItemDesignForm = (props) => {
988
994
  AdvancedInput,
989
995
  {
990
996
  ...field,
991
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4 rotate-90" }),
992
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
997
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
998
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
993
999
  }
994
1000
  )))
995
1001
  }
@@ -1002,8 +1008,8 @@ var ItemDesignForm = (props) => {
1002
1008
  AdvancedInput,
1003
1009
  {
1004
1010
  ...field,
1005
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4 rotate-180" }),
1006
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1011
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-180" }),
1012
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1007
1013
  }
1008
1014
  )))
1009
1015
  }
@@ -1016,12 +1022,12 @@ var ItemDesignForm = (props) => {
1016
1022
  AdvancedInput,
1017
1023
  {
1018
1024
  ...field,
1019
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4 -rotate-90" }),
1020
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1025
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb--rotate-90" }),
1026
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1021
1027
  }
1022
1028
  )))
1023
1029
  }
1024
- ))), /* @__PURE__ */ React15__namespace.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React15__namespace.createElement(
1030
+ ))), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-shrink-0" }, /* @__PURE__ */ React15__namespace.createElement(
1025
1031
  FormField,
1026
1032
  {
1027
1033
  control: form.control,
@@ -1029,16 +1035,16 @@ var ItemDesignForm = (props) => {
1029
1035
  render: ({ field }) => /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(
1030
1036
  Toggle,
1031
1037
  {
1032
- className: "shrink-0 flex w-8 h-8 p-0",
1038
+ className: "sb-shrink-0 sb-flex sb-w-8 sb-h-8 sb-p-0",
1033
1039
  variant: "outline",
1034
1040
  size: "sm",
1035
1041
  pressed: field.value,
1036
1042
  onPressedChange: field.onChange
1037
1043
  },
1038
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.ScanIcon, { className: "h-4 w-4" })
1044
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.ScanIcon, { className: "sb-h-4 sb-w-4" })
1039
1045
  ))
1040
1046
  }
1041
- ))), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null)), /* @__PURE__ */ React15__namespace.createElement("div", { className: "space-y-2" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, "Margin"), /* @__PURE__ */ React15__namespace.createElement("div", { className: "grid grid-cols-[1fr,auto] gap-3" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "grid grid-cols-2 items-center gap-3" }, !indipendentMargin ? /* @__PURE__ */ React15__namespace.createElement(React15__namespace.Fragment, null, /* @__PURE__ */ React15__namespace.createElement(
1047
+ ))), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null)), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-space-y-2" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, "Margin"), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-grid sb-grid-cols-[1fr,auto] sb-gap-3" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-items-center sb-gap-3" }, !indipendentMargin ? /* @__PURE__ */ React15__namespace.createElement(React15__namespace.Fragment, null, /* @__PURE__ */ React15__namespace.createElement(
1042
1048
  FormField,
1043
1049
  {
1044
1050
  control: form.control,
@@ -1047,8 +1053,8 @@ var ItemDesignForm = (props) => {
1047
1053
  AdvancedInput,
1048
1054
  {
1049
1055
  ...field,
1050
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "h-4 w-4" }),
1051
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1056
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4" }),
1057
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1052
1058
  }
1053
1059
  )))
1054
1060
  }
@@ -1061,8 +1067,8 @@ var ItemDesignForm = (props) => {
1061
1067
  AdvancedInput,
1062
1068
  {
1063
1069
  ...field,
1064
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "h-4 w-4 rotate-90" }),
1065
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1070
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
1071
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1066
1072
  }
1067
1073
  )))
1068
1074
  }
@@ -1075,8 +1081,8 @@ var ItemDesignForm = (props) => {
1075
1081
  AdvancedInput,
1076
1082
  {
1077
1083
  ...field,
1078
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4" }),
1079
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1084
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4" }),
1085
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1080
1086
  }
1081
1087
  )))
1082
1088
  }
@@ -1089,8 +1095,8 @@ var ItemDesignForm = (props) => {
1089
1095
  AdvancedInput,
1090
1096
  {
1091
1097
  ...field,
1092
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4 rotate-90" }),
1093
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1098
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-90" }),
1099
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1094
1100
  }
1095
1101
  )))
1096
1102
  }
@@ -1103,8 +1109,8 @@ var ItemDesignForm = (props) => {
1103
1109
  AdvancedInput,
1104
1110
  {
1105
1111
  ...field,
1106
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4 rotate-180" }),
1107
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1112
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb-rotate-180" }),
1113
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1108
1114
  }
1109
1115
  )))
1110
1116
  }
@@ -1117,12 +1123,12 @@ var ItemDesignForm = (props) => {
1117
1123
  AdvancedInput,
1118
1124
  {
1119
1125
  ...field,
1120
- prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "h-4 w-4 -rotate-90" }),
1121
- append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "text-sb-muted-sb-foreground" }, "px")
1126
+ prepend: /* @__PURE__ */ React15__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb-h-4 sb-w-4 sb--rotate-90" }),
1127
+ append: /* @__PURE__ */ React15__namespace.createElement("span", { className: "sb-text-muted-foreground" }, "px")
1122
1128
  }
1123
1129
  )))
1124
1130
  }
1125
- ))), /* @__PURE__ */ React15__namespace.createElement("div", { className: "shrink-0" }, /* @__PURE__ */ React15__namespace.createElement(
1131
+ ))), /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-shrink-0" }, /* @__PURE__ */ React15__namespace.createElement(
1126
1132
  FormField,
1127
1133
  {
1128
1134
  control: form.control,
@@ -1130,13 +1136,13 @@ var ItemDesignForm = (props) => {
1130
1136
  render: ({ field }) => /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(
1131
1137
  Toggle,
1132
1138
  {
1133
- className: "shrink-0 flex w-8 h-8 p-0",
1139
+ className: "sb-shrink-0 sb-flex sb-w-8 sb-h-8 sb-p-0",
1134
1140
  variant: "outline",
1135
1141
  size: "sm",
1136
1142
  pressed: field.value,
1137
1143
  onPressedChange: field.onChange
1138
1144
  },
1139
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.ScanIcon, { className: "h-4 w-4" })
1145
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.ScanIcon, { className: "sb-h-4 sb-w-4" })
1140
1146
  ))
1141
1147
  }
1142
1148
  ))), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null)))));
@@ -1156,18 +1162,18 @@ var RenderInput = (props) => {
1156
1162
  return /* @__PURE__ */ React15__namespace.createElement(FormItem, null, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange })), input.helperText && /* @__PURE__ */ React15__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null));
1157
1163
  case "date":
1158
1164
  return /* @__PURE__ */ React15__namespace.createElement(FormItem, null, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
1159
- chunkTEAHH2DG_js.Button,
1165
+ chunk3S4FFEHM_js.Button,
1160
1166
  {
1161
1167
  variant: "outline",
1162
1168
  size: "sm",
1163
- className: chunkTEAHH2DG_js.cn(
1164
- "w-full flex justify-start text-left font-normal",
1165
- !field.value && "text-muted-foreground"
1169
+ className: chunk3S4FFEHM_js.cn(
1170
+ "sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
1171
+ !field.value && "sb-text-muted-foreground"
1166
1172
  )
1167
1173
  },
1168
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.CalendarIcon, { className: "mr-2 h-4 w-4" }),
1174
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.CalendarIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }),
1169
1175
  field.value ? dateFns.format(field.value, "PPP") : /* @__PURE__ */ React15__namespace.createElement("span", null, "Pick a date")
1170
- )), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "w-auto p-0", align: "start" }, /* @__PURE__ */ React15__namespace.createElement(
1176
+ )), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "sb-w-auto sb-p-0", align: "start" }, /* @__PURE__ */ React15__namespace.createElement(
1171
1177
  Calendar,
1172
1178
  {
1173
1179
  mode: "single",
@@ -1177,13 +1183,13 @@ var RenderInput = (props) => {
1177
1183
  }
1178
1184
  )))), input.helperText && /* @__PURE__ */ React15__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null));
1179
1185
  case "boolean":
1180
- return /* @__PURE__ */ React15__namespace.createElement(FormItem, { className: "flex flex-row items-center justify-between space-y-0" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(Switch, { checked: field.value, onCheckedChange: field.onChange })), input.helperText && /* @__PURE__ */ React15__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null));
1186
+ return /* @__PURE__ */ React15__namespace.createElement(FormItem, { className: "sb-flex sb-flex-row sb-items-center sb-justify-between sb-space-y-0" }, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(Switch, { checked: field.value, onCheckedChange: field.onChange })), input.helperText && /* @__PURE__ */ React15__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React15__namespace.createElement(FormMessage, null));
1181
1187
  case "file":
1182
1188
  return /* @__PURE__ */ React15__namespace.createElement(FormItem, null, /* @__PURE__ */ React15__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React15__namespace.createElement(FormControl, null, /* @__PURE__ */ React15__namespace.createElement(
1183
1189
  MediaInput,
1184
1190
  {
1185
- className: "grid grid-cols-2 gap-1",
1186
- itemClassName: "aspect-video h-auto w-full",
1191
+ className: "sb-grid sb-grid-cols-2 sb-gap-1",
1192
+ itemClassName: "sb-aspect-video sb-h-auto sb-w-full",
1187
1193
  multiple: false,
1188
1194
  onFilesChange: (files) => field.onChange(files[0]),
1189
1195
  onError: (e) => console.error(
@@ -1199,11 +1205,18 @@ var RenderInput = (props) => {
1199
1205
  }
1200
1206
  };
1201
1207
  var DeleteButton = ({ contentId }) => {
1202
- const { deleteContent } = chunkTEAHH2DG_js.useBuilder();
1203
- return /* @__PURE__ */ React15__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(chunkTEAHH2DG_js.Button, { variant: "ghost", className: "w-8 h-8 p-0 text-sb-destructive" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.Trash2Icon, { className: "h-5 w-5" }))), /* @__PURE__ */ React15__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React15__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React15__namespace.createElement(
1208
+ const { deleteContent } = chunk3S4FFEHM_js.useBuilder();
1209
+ return /* @__PURE__ */ React15__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
1210
+ chunk3S4FFEHM_js.Button,
1211
+ {
1212
+ variant: "ghost",
1213
+ className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
1214
+ },
1215
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.Trash2Icon, { className: "sb-h-5 sb-w-5" })
1216
+ )), /* @__PURE__ */ React15__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React15__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React15__namespace.createElement(
1204
1217
  AlertDialogAction,
1205
1218
  {
1206
- className: chunkTEAHH2DG_js.buttonVariants({ variant: "destructive" }),
1219
+ className: chunk3S4FFEHM_js.buttonVariants({ variant: "destructive" }),
1207
1220
  onClick: () => deleteContent(contentId)
1208
1221
  },
1209
1222
  "Verwijderen"
@@ -1217,7 +1230,7 @@ var DesignWrapper = (props) => {
1217
1230
  return /* @__PURE__ */ React15__namespace.createElement(
1218
1231
  "div",
1219
1232
  {
1220
- className: chunkTEAHH2DG_js.cn("relative", className),
1233
+ className: chunk3S4FFEHM_js.cn("sb-relative", className),
1221
1234
  style: { ...!src && { background }, ...rest }
1222
1235
  },
1223
1236
  src && /* @__PURE__ */ React15__namespace.createElement(
@@ -1226,10 +1239,10 @@ var DesignWrapper = (props) => {
1226
1239
  src,
1227
1240
  alt: "",
1228
1241
  fill: true,
1229
- className: "object-cover absolute inset-0 pointer-events-none -z-[1]"
1242
+ className: "sb-object-cover sb-absolute sb-inset-0 sb-pointer-events-none sb--z-[1]"
1230
1243
  }
1231
1244
  ),
1232
- container ? /* @__PURE__ */ React15__namespace.createElement("div", { className: "container mx-auto" }, children) : children
1245
+ container ? /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-container sb-mx-auto" }, children) : children
1233
1246
  );
1234
1247
  };
1235
1248
 
@@ -1242,7 +1255,7 @@ var BuildContainerInner = (props) => {
1242
1255
  "[simple-builder]: Multiple content blocks detected when using property multiple false."
1243
1256
  );
1244
1257
  }
1245
- return /* @__PURE__ */ React15__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React15__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React15__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React15__namespace.createElement(React15__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "relative sb-container-item" }, /* @__PURE__ */ React15__namespace.createElement(DesignWrapper, { styles: item.styles }, chunkVMHWPKU4_js.builder.bindComponent(item, true)), /* @__PURE__ */ React15__namespace.createElement(
1258
+ return /* @__PURE__ */ React15__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React15__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React15__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React15__namespace.createElement(React15__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React15__namespace.createElement(DesignWrapper, { styles: item.styles }, chunkVMHWPKU4_js.builder.bindComponent(item, true)), /* @__PURE__ */ React15__namespace.createElement(
1246
1259
  ContainerItemToolbar,
1247
1260
  {
1248
1261
  contentId: item.id,
@@ -1261,14 +1274,14 @@ var BuildContainerInner = (props) => {
1261
1274
  var build_container_client_default = BuildContainerInner;
1262
1275
  var AddContentButton = (props) => {
1263
1276
  const components = chunkVMHWPKU4_js.builder.getComponents();
1264
- const { addContent } = chunkTEAHH2DG_js.useBuilder();
1265
- return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "p-1" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "grid grid-cols-2 gap-2" }, components.map((component) => {
1277
+ const { addContent } = chunk3S4FFEHM_js.useBuilder();
1278
+ return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React15__namespace.createElement(PopoverContent, { className: "sb-p-1" }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-2" }, components.map((component) => {
1266
1279
  const Icon = component.icon ?? lucideReact.ImageIcon;
1267
1280
  return /* @__PURE__ */ React15__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
1268
- chunkTEAHH2DG_js.Button,
1281
+ chunk3S4FFEHM_js.Button,
1269
1282
  {
1270
1283
  variant: "ghost",
1271
- className: "justify-start",
1284
+ className: "sb-justify-start",
1272
1285
  onClick: () => {
1273
1286
  addContent(
1274
1287
  component.name,
@@ -1278,22 +1291,22 @@ var AddContentButton = (props) => {
1278
1291
  );
1279
1292
  }
1280
1293
  },
1281
- /* @__PURE__ */ React15__namespace.createElement(Icon, { className: "mr-2 h-4 w-4 shrink-0" }),
1294
+ /* @__PURE__ */ React15__namespace.createElement(Icon, { className: "sb-mr-2 sb-h-4 sb-w-4 sb-shrink-0" }),
1282
1295
  component.friendlyName ?? component.name
1283
1296
  ));
1284
1297
  }))));
1285
1298
  };
1286
1299
  var AddContentPlaceholder = (props) => {
1287
- return /* @__PURE__ */ React15__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "flex justify-center bg-sb-primary/50 p-4" }, /* @__PURE__ */ React15__namespace.createElement(chunkTEAHH2DG_js.Button, { size: "sm" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "mr-2 h-4 w-4" }), "Blok Toevoegen")));
1300
+ return /* @__PURE__ */ React15__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React15__namespace.createElement(chunk3S4FFEHM_js.Button, { size: "sm" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1288
1301
  };
1289
1302
  var AddContentDividerButton = (props) => {
1290
- return /* @__PURE__ */ React15__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React15__namespace.createElement("div", { className: "w-full h-1 -my-[2px] bg-sb-primary relative z-20 opacity-0 add-content-divider-button transition-opacity" }, /* @__PURE__ */ React15__namespace.createElement(
1291
- chunkTEAHH2DG_js.Button,
1303
+ return /* @__PURE__ */ React15__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React15__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__ */ React15__namespace.createElement(
1304
+ chunk3S4FFEHM_js.Button,
1292
1305
  {
1293
1306
  size: "sm",
1294
- className: "absolute left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 shadow"
1307
+ className: "sb-absolute sb-left-1/2 sb-top-1/2 sb--translate-y-1/2 sb--translate-x-1/2 sb-shadow"
1295
1308
  },
1296
- /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "mr-2 h-4 w-4" }),
1309
+ /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }),
1297
1310
  "Blok Toevoegen"
1298
1311
  )));
1299
1312
  };