@simple-builder/react 1.0.6 → 1.0.8

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.
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- require('./chunk-4NWAJBFM.js');
5
- var chunkTQITQHDC_js = require('./chunk-TQITQHDC.js');
6
- var chunkNVOLMEIV_js = require('./chunk-NVOLMEIV.js');
4
+ require('./chunk-MSCSJUNQ.js');
5
+ var chunkI2LWMDYD_js = require('./chunk-I2LWMDYD.js');
6
+ var chunkLJSVUW4D_js = require('./chunk-LJSVUW4D.js');
7
7
  var React15 = require('react');
8
8
  var lucideReact = require('lucide-react');
9
9
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
@@ -51,7 +51,7 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
51
51
  var AlertDialogOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15__namespace.createElement(
52
52
  AlertDialogPrimitive__namespace.Overlay,
53
53
  {
54
- className: chunkNVOLMEIV_js.cn(
54
+ className: chunkLJSVUW4D_js.cn(
55
55
  "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",
56
56
  className
57
57
  ),
@@ -64,7 +64,7 @@ var AlertDialogContent = React15__namespace.forwardRef(({ className, ...props },
64
64
  AlertDialogPrimitive__namespace.Content,
65
65
  {
66
66
  ref,
67
- className: chunkNVOLMEIV_js.cn(
67
+ className: chunkLJSVUW4D_js.cn(
68
68
  "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",
69
69
  className
70
70
  ),
@@ -78,7 +78,7 @@ var AlertDialogFooter = ({
78
78
  }) => /* @__PURE__ */ React15__namespace.createElement(
79
79
  "div",
80
80
  {
81
- className: chunkNVOLMEIV_js.cn(
81
+ className: chunkLJSVUW4D_js.cn(
82
82
  "sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
83
83
  className
84
84
  ),
@@ -90,7 +90,7 @@ var AlertDialogTitle = React15__namespace.forwardRef(({ className, ...props }, r
90
90
  AlertDialogPrimitive__namespace.Title,
91
91
  {
92
92
  ref,
93
- className: chunkNVOLMEIV_js.cn("sb-text-lg sb-font-semibold", className),
93
+ className: chunkLJSVUW4D_js.cn("sb-text-lg sb-font-semibold", className),
94
94
  ...props
95
95
  }
96
96
  ));
@@ -99,7 +99,7 @@ var AlertDialogDescription = React15__namespace.forwardRef(({ className, ...prop
99
99
  AlertDialogPrimitive__namespace.Description,
100
100
  {
101
101
  ref,
102
- className: chunkNVOLMEIV_js.cn("sb-text-sm sb-text-muted-foreground", className),
102
+ className: chunkLJSVUW4D_js.cn("sb-text-sm sb-text-muted-foreground", className),
103
103
  ...props
104
104
  }
105
105
  ));
@@ -108,7 +108,7 @@ var AlertDialogAction = React15__namespace.forwardRef(({ className, ...props },
108
108
  AlertDialogPrimitive__namespace.Action,
109
109
  {
110
110
  ref,
111
- className: chunkNVOLMEIV_js.cn(chunkTQITQHDC_js.buttonVariants(), className),
111
+ className: chunkLJSVUW4D_js.cn(chunkI2LWMDYD_js.buttonVariants(), className),
112
112
  ...props
113
113
  }
114
114
  ));
@@ -117,8 +117,8 @@ var AlertDialogCancel = React15__namespace.forwardRef(({ className, ...props },
117
117
  AlertDialogPrimitive__namespace.Cancel,
118
118
  {
119
119
  ref,
120
- className: chunkNVOLMEIV_js.cn(
121
- chunkTQITQHDC_js.buttonVariants({ variant: "outline" }),
120
+ className: chunkLJSVUW4D_js.cn(
121
+ chunkI2LWMDYD_js.buttonVariants({ variant: "outline" }),
122
122
  "sb-mt-2 sm:sb-mt-0",
123
123
  className
124
124
  ),
@@ -135,7 +135,7 @@ var PopoverContent = React15__namespace.forwardRef(({ className, align = "center
135
135
  ref,
136
136
  align,
137
137
  sideOffset,
138
- className: chunkNVOLMEIV_js.cn(
138
+ className: chunkLJSVUW4D_js.cn(
139
139
  "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",
140
140
  className
141
141
  ),
@@ -153,15 +153,15 @@ function Calendar({
153
153
  reactDayPicker.DayPicker,
154
154
  {
155
155
  showOutsideDays,
156
- className: chunkNVOLMEIV_js.cn("sb-p-3 sb-font-roboto", className),
156
+ className: chunkLJSVUW4D_js.cn("sb-p-3 sb-font-roboto", className),
157
157
  classNames: {
158
158
  months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
159
159
  month: "sb-space-y-4",
160
160
  caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
161
161
  caption_label: "sb-text-sm sb-font-medium",
162
162
  nav: "sb-space-x-1 sb-flex sb-items-center",
163
- nav_button: chunkNVOLMEIV_js.cn(
164
- chunkTQITQHDC_js.buttonVariants({ variant: "outline" }),
163
+ nav_button: chunkLJSVUW4D_js.cn(
164
+ chunkI2LWMDYD_js.buttonVariants({ variant: "outline" }),
165
165
  "sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
166
166
  ),
167
167
  nav_button_previous: "sb-absolute sb-left-1",
@@ -170,12 +170,12 @@ function Calendar({
170
170
  head_row: "sb-flex",
171
171
  head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
172
172
  row: "sb-flex sb-w-full sb-mt-2",
173
- cell: chunkNVOLMEIV_js.cn(
173
+ cell: chunkLJSVUW4D_js.cn(
174
174
  "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",
175
175
  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"
176
176
  ),
177
- day: chunkNVOLMEIV_js.cn(
178
- chunkTQITQHDC_js.buttonVariants({ variant: "ghost" }),
177
+ day: chunkLJSVUW4D_js.cn(
178
+ chunkI2LWMDYD_js.buttonVariants({ variant: "ghost" }),
179
179
  "sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
180
180
  ),
181
181
  day_range_start: "day-range-start",
@@ -211,11 +211,11 @@ var ColorPicker = (props) => {
211
211
  "#FF0000"
212
212
  ];
213
213
  return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
214
- chunkTQITQHDC_js.Button,
214
+ chunkI2LWMDYD_js.Button,
215
215
  {
216
216
  variant: "outline",
217
217
  size: "sm",
218
- className: chunkNVOLMEIV_js.cn(
218
+ className: chunkLJSVUW4D_js.cn(
219
219
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
220
220
  !color && "sb-text-muted-foreground",
221
221
  className
@@ -238,7 +238,7 @@ var ColorPicker = (props) => {
238
238
  }
239
239
  ))));
240
240
  };
241
- var labelVariants = chunkNVOLMEIV_js.tv({
241
+ var labelVariants = chunkLJSVUW4D_js.tv({
242
242
  base: "sb-text-sm sb-font-medium sb-font-roboto sb-leading-none peer-disabled:sb-cursor-not-allowed peer-disabled:sb-opacity-70"
243
243
  });
244
244
  var Label = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15__namespace.createElement(
@@ -284,7 +284,7 @@ var FormItemContext = React15__namespace.createContext(
284
284
  );
285
285
  var FormItem = React15__namespace.forwardRef(({ className, ...props }, ref) => {
286
286
  const id = React15__namespace.useId();
287
- return /* @__PURE__ */ React15__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React15__namespace.createElement("div", { ref, className: chunkNVOLMEIV_js.cn("sb-space-y-2", className), ...props }));
287
+ return /* @__PURE__ */ React15__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React15__namespace.createElement("div", { ref, className: chunkLJSVUW4D_js.cn("sb-space-y-2", className), ...props }));
288
288
  });
289
289
  FormItem.displayName = "FormItem";
290
290
  var FormLabel = React15__namespace.forwardRef(({ className, ...props }, ref) => {
@@ -293,7 +293,7 @@ var FormLabel = React15__namespace.forwardRef(({ className, ...props }, ref) =>
293
293
  Label,
294
294
  {
295
295
  ref,
296
- className: chunkNVOLMEIV_js.cn(error && "sb-text-destructive", className),
296
+ className: chunkLJSVUW4D_js.cn(error && "sb-text-destructive", className),
297
297
  htmlFor: formItemId,
298
298
  ...props
299
299
  }
@@ -321,7 +321,7 @@ var FormDescription = React15__namespace.forwardRef(({ className, ...props }, re
321
321
  {
322
322
  ref,
323
323
  id: formDescriptionId,
324
- className: chunkNVOLMEIV_js.cn(
324
+ className: chunkLJSVUW4D_js.cn(
325
325
  "sb-text-sm sb-font-roboto sb-text-muted-foreground",
326
326
  className
327
327
  ),
@@ -341,7 +341,7 @@ var FormMessage = React15__namespace.forwardRef(({ className, children, ...props
341
341
  {
342
342
  ref,
343
343
  id: formMessageId,
344
- className: chunkNVOLMEIV_js.cn(
344
+ className: chunkLJSVUW4D_js.cn(
345
345
  "sb-text-sm sb-font-roboto sb-font-medium sb-text-destructive",
346
346
  className
347
347
  ),
@@ -357,7 +357,7 @@ var Input = React15__namespace.forwardRef(
357
357
  "input",
358
358
  {
359
359
  type,
360
- className: chunkNVOLMEIV_js.cn(
360
+ className: chunkLJSVUW4D_js.cn(
361
361
  "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",
362
362
  className
363
363
  ),
@@ -451,8 +451,8 @@ var MediaInput = (props) => {
451
451
  body: JSON.stringify({ src })
452
452
  });
453
453
  };
454
- return /* @__PURE__ */ React15__namespace.createElement("div", { className: chunkNVOLMEIV_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React15__namespace.createElement(MediaInputItem, { key: src, className: chunkNVOLMEIV_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React15__namespace.createElement(
455
- chunkNVOLMEIV_js.Image,
454
+ return /* @__PURE__ */ React15__namespace.createElement("div", { className: chunkLJSVUW4D_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React15__namespace.createElement(MediaInputItem, { key: src, className: chunkLJSVUW4D_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React15__namespace.createElement(
455
+ chunkLJSVUW4D_js.Image,
456
456
  {
457
457
  src,
458
458
  alt: "",
@@ -470,7 +470,7 @@ var MediaInput = (props) => {
470
470
  MediaInputItem,
471
471
  {
472
472
  key: i,
473
- className: chunkNVOLMEIV_js.cn(
473
+ className: chunkLJSVUW4D_js.cn(
474
474
  "sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
475
475
  props.itemClassName
476
476
  )
@@ -480,7 +480,7 @@ var MediaInput = (props) => {
480
480
  "label",
481
481
  {
482
482
  htmlFor: id,
483
- className: chunkNVOLMEIV_js.cn(
483
+ className: chunkLJSVUW4D_js.cn(
484
484
  "sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
485
485
  props.itemClassName
486
486
  )
@@ -503,7 +503,7 @@ var MediaInputItem = (props) => {
503
503
  return /* @__PURE__ */ React15__namespace.createElement(
504
504
  "div",
505
505
  {
506
- className: chunkNVOLMEIV_js.cn(
506
+ className: chunkLJSVUW4D_js.cn(
507
507
  "sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
508
508
  props.className
509
509
  )
@@ -523,7 +523,7 @@ var MediaInputError = class extends Error {
523
523
  var Switch = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React15__namespace.createElement(
524
524
  SwitchPrimitives__namespace.Root,
525
525
  {
526
- className: chunkNVOLMEIV_js.cn(
526
+ className: chunkLJSVUW4D_js.cn(
527
527
  "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",
528
528
  className
529
529
  ),
@@ -533,7 +533,7 @@ var Switch = React15__namespace.forwardRef(({ className, ...props }, ref) => /*
533
533
  /* @__PURE__ */ React15__namespace.createElement(
534
534
  SwitchPrimitives__namespace.Thumb,
535
535
  {
536
- className: chunkNVOLMEIV_js.cn(
536
+ className: chunkLJSVUW4D_js.cn(
537
537
  "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"
538
538
  )
539
539
  }
@@ -545,7 +545,7 @@ var Textarea = React15__namespace.forwardRef(
545
545
  return /* @__PURE__ */ React15__namespace.createElement(
546
546
  "textarea",
547
547
  {
548
- className: chunkNVOLMEIV_js.cn(
548
+ className: chunkLJSVUW4D_js.cn(
549
549
  "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",
550
550
  className
551
551
  ),
@@ -560,8 +560,8 @@ Textarea.displayName = "Textarea";
560
560
  // src/components/container-item-form.tsx
561
561
  var ContainerItemForm = (props) => {
562
562
  const { item } = props;
563
- const { patchItem } = chunkTQITQHDC_js.useBuilder();
564
- const component = chunkNVOLMEIV_js.builder.getComponent(item.component);
563
+ const { patchItem } = chunkI2LWMDYD_js.useBuilder();
564
+ const component = chunkLJSVUW4D_js.builder.getComponent(item.component);
565
565
  if (!component) {
566
566
  throw new Error(
567
567
  `[simple-builder]: Component with id ${item.component} not found in container item form component`
@@ -610,11 +610,11 @@ var RenderInput = (props) => {
610
610
  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));
611
611
  case "date":
612
612
  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(
613
- chunkTQITQHDC_js.Button,
613
+ chunkI2LWMDYD_js.Button,
614
614
  {
615
615
  variant: "outline",
616
616
  size: "sm",
617
- className: chunkNVOLMEIV_js.cn(
617
+ className: chunkLJSVUW4D_js.cn(
618
618
  "sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
619
619
  !field.value && "sb-text-muted-foreground"
620
620
  )
@@ -653,7 +653,7 @@ var RenderInput = (props) => {
653
653
  }
654
654
  };
655
655
  var Tabs = TabsPrimitive__namespace.Root;
656
- var tabsListVariants = chunkNVOLMEIV_js.tv({
656
+ var tabsListVariants = chunkLJSVUW4D_js.tv({
657
657
  variants: {
658
658
  variant: {
659
659
  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",
@@ -673,7 +673,7 @@ var TabsList = React15__namespace.forwardRef(({ variant, className, ...props },
673
673
  }
674
674
  ));
675
675
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
676
- var tabsTriggerVariants = chunkNVOLMEIV_js.tv({
676
+ var tabsTriggerVariants = chunkLJSVUW4D_js.tv({
677
677
  variants: {
678
678
  variant: {
679
679
  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",
@@ -697,7 +697,7 @@ var TabsContent = React15__namespace.forwardRef(({ className, ...props }, ref) =
697
697
  TabsPrimitive__namespace.Content,
698
698
  {
699
699
  ref,
700
- className: chunkNVOLMEIV_js.cn(
700
+ className: chunkLJSVUW4D_js.cn(
701
701
  "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",
702
702
  className
703
703
  ),
@@ -736,11 +736,11 @@ var BackgroundPicker = (props) => {
736
736
  return "solid";
737
737
  }, [background]);
738
738
  return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
739
- chunkTQITQHDC_js.Button,
739
+ chunkI2LWMDYD_js.Button,
740
740
  {
741
741
  variant: "outline",
742
742
  size: "sm",
743
- className: chunkNVOLMEIV_js.cn(
743
+ className: chunkLJSVUW4D_js.cn(
744
744
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
745
745
  !background && "sb-text-muted-foreground",
746
746
  className
@@ -809,7 +809,7 @@ var BackgroundPicker = (props) => {
809
809
  }
810
810
  )))))));
811
811
  };
812
- var toggleVariants = chunkNVOLMEIV_js.tv({
812
+ var toggleVariants = chunkLJSVUW4D_js.tv({
813
813
  base: "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",
814
814
  variants: {
815
815
  variant: {
@@ -865,14 +865,14 @@ var designSchema = zod.z.object({
865
865
  }).passthrough();
866
866
  var ItemDesignForm = (props) => {
867
867
  const { item } = props;
868
- const component = chunkNVOLMEIV_js.builder.getComponent(item.component);
868
+ const component = chunkLJSVUW4D_js.builder.getComponent(item.component);
869
869
  if (!component) {
870
870
  throw new Error(
871
871
  `[simple-builder]: Component "${item.component}" not found`
872
872
  );
873
873
  }
874
874
  const defaults = component.defaultStyles || {};
875
- const { patchItem } = chunkTQITQHDC_js.useBuilder();
875
+ const { patchItem } = chunkI2LWMDYD_js.useBuilder();
876
876
  const [device, setDevice] = React15__namespace.useState("desktop");
877
877
  const getDefaultDesktopValue = (key, initial = "") => {
878
878
  const value = item.styles?.desktop?.[key];
@@ -903,9 +903,9 @@ var ItemDesignForm = (props) => {
903
903
  }
904
904
  };
905
905
  const getSpacingValue = (str) => {
906
- const parsed = chunkNVOLMEIV_js.spacing.parse(str);
906
+ const parsed = chunkLJSVUW4D_js.spacing.parse(str);
907
907
  return {
908
- indipendent: chunkNVOLMEIV_js.spacing.isIndipendent(str),
908
+ indipendent: chunkLJSVUW4D_js.spacing.isIndipendent(str),
909
909
  horizontal: parsed.left,
910
910
  vertical: parsed.top,
911
911
  ...parsed
@@ -932,6 +932,10 @@ var ItemDesignForm = (props) => {
932
932
  const onSubmit = (values) => {
933
933
  const { container } = values;
934
934
  const getPatchedDeviceValues = (device2 = "desktop") => {
935
+ const initital = Object.keys(item.styles?.[device2] || {}).filter((key) => !Object.keys(values[device2]).includes(key)).reduce(
936
+ (acc, key) => ({ ...acc, [key]: item.styles?.[device2][key] }),
937
+ {}
938
+ );
935
939
  return Object.entries(values[device2]).reduce((acc, [key, value]) => {
936
940
  let res = value;
937
941
  if (key === "padding" || key === "margin") {
@@ -942,13 +946,13 @@ var ItemDesignForm = (props) => {
942
946
  left: data.horizontal,
943
947
  right: data.horizontal
944
948
  };
945
- res = chunkNVOLMEIV_js.spacing.stringify(params);
949
+ res = chunkLJSVUW4D_js.spacing.stringify(params);
946
950
  }
947
951
  return {
948
952
  ...acc,
949
- ...!!res && defaults?.[device2]?.[key] !== res ? { [key]: res } : {}
953
+ ...res ? { [key]: res } : {}
950
954
  };
951
- }, {});
955
+ }, initital);
952
956
  };
953
957
  const patchedDesktopValues = getPatchedDeviceValues();
954
958
  const patchedMobileValues = getPatchedDeviceValues("mobile");
@@ -1235,9 +1239,9 @@ var ItemDesignForm = (props) => {
1235
1239
  // src/components/container-item-toolbar.tsx
1236
1240
  var ContainerItemToolbar = (props) => {
1237
1241
  const { contentId, canBringUp = false, canBringDown = false } = props;
1238
- const { bringUp, bringDown } = chunkTQITQHDC_js.useBuilder();
1242
+ const { bringUp, bringDown } = chunkI2LWMDYD_js.useBuilder();
1239
1243
  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(
1240
- chunkTQITQHDC_js.Button,
1244
+ chunkI2LWMDYD_js.Button,
1241
1245
  {
1242
1246
  variant: "ghost",
1243
1247
  className: "sb-w-8 sb-h-8 sb-p-0",
@@ -1246,7 +1250,7 @@ var ContainerItemToolbar = (props) => {
1246
1250
  },
1247
1251
  /* @__PURE__ */ React15__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
1248
1252
  ), /* @__PURE__ */ React15__namespace.createElement(
1249
- chunkTQITQHDC_js.Button,
1253
+ chunkI2LWMDYD_js.Button,
1250
1254
  {
1251
1255
  variant: "ghost",
1252
1256
  className: "sb-w-8 sb-h-8 sb-p-0",
@@ -1257,7 +1261,7 @@ var ContainerItemToolbar = (props) => {
1257
1261
  ), /* @__PURE__ */ React15__namespace.createElement(DeleteButton, { contentId })));
1258
1262
  };
1259
1263
  var EditButton = ({ id }) => {
1260
- return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(chunkTQITQHDC_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(
1264
+ return /* @__PURE__ */ React15__namespace.createElement(Popover, null, /* @__PURE__ */ React15__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(chunkI2LWMDYD_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(
1261
1265
  PopoverContent,
1262
1266
  {
1263
1267
  side: "left",
@@ -1272,7 +1276,7 @@ var EditButton = ({ id }) => {
1272
1276
  };
1273
1277
  var EditPopoverInner = (props) => {
1274
1278
  const { id } = props;
1275
- const { getItem } = chunkTQITQHDC_js.useBuilder();
1279
+ const { getItem } = chunkI2LWMDYD_js.useBuilder();
1276
1280
  const item = getItem(id);
1277
1281
  if (!item) {
1278
1282
  throw new Error(
@@ -1282,9 +1286,9 @@ var EditPopoverInner = (props) => {
1282
1286
  return /* @__PURE__ */ React15__namespace.createElement(Tabs, null, /* @__PURE__ */ React15__namespace.createElement(TabsList, { variant: "text", defaultValue: "content" }, /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { variant: "text", value: "content" }, "Inhoud"), /* @__PURE__ */ React15__namespace.createElement(TabsTrigger, { variant: "text", value: "design" }, "Design")), /* @__PURE__ */ React15__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React15__namespace.createElement(ContainerItemForm, { item })), /* @__PURE__ */ React15__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React15__namespace.createElement(ItemDesignForm, { item })));
1283
1287
  };
1284
1288
  var DeleteButton = ({ contentId }) => {
1285
- const { deleteContent } = chunkTQITQHDC_js.useBuilder();
1289
+ const { deleteContent } = chunkI2LWMDYD_js.useBuilder();
1286
1290
  return /* @__PURE__ */ React15__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React15__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
1287
- chunkTQITQHDC_js.Button,
1291
+ chunkI2LWMDYD_js.Button,
1288
1292
  {
1289
1293
  variant: "ghost",
1290
1294
  className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
@@ -1293,7 +1297,7 @@ var DeleteButton = ({ contentId }) => {
1293
1297
  )), /* @__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(
1294
1298
  AlertDialogAction,
1295
1299
  {
1296
- className: chunkTQITQHDC_js.buttonVariants({ variant: "destructive" }),
1300
+ className: chunkI2LWMDYD_js.buttonVariants({ variant: "destructive" }),
1297
1301
  onClick: () => deleteContent(contentId)
1298
1302
  },
1299
1303
  "Verwijderen"
@@ -1309,7 +1313,7 @@ var BuildContainerInner = (props) => {
1309
1313
  "[simple-builder]: Multiple content blocks detected when using property multiple false."
1310
1314
  );
1311
1315
  }
1312
- 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(chunkNVOLMEIV_js.DesignWrapper, { styles: item.styles }, chunkNVOLMEIV_js.builder.bindComponent(item, true)), /* @__PURE__ */ React15__namespace.createElement(
1316
+ 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(chunkLJSVUW4D_js.DesignWrapper, { styles: item.styles }, chunkLJSVUW4D_js.builder.bindComponent(item, true)), /* @__PURE__ */ React15__namespace.createElement(
1313
1317
  ContainerItemToolbar,
1314
1318
  {
1315
1319
  contentId: item.id,
@@ -1327,12 +1331,12 @@ var BuildContainerInner = (props) => {
1327
1331
  };
1328
1332
  var build_container_client_default = BuildContainerInner;
1329
1333
  var AddContentButton = (props) => {
1330
- const components = chunkNVOLMEIV_js.builder.getComponents();
1331
- const { addContent } = chunkTQITQHDC_js.useBuilder();
1334
+ const components = chunkLJSVUW4D_js.builder.getComponents();
1335
+ const { addContent } = chunkI2LWMDYD_js.useBuilder();
1332
1336
  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) => {
1333
1337
  const Icon = component.icon ?? lucideReact.ImageIcon;
1334
1338
  return /* @__PURE__ */ React15__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React15__namespace.createElement(
1335
- chunkTQITQHDC_js.Button,
1339
+ chunkI2LWMDYD_js.Button,
1336
1340
  {
1337
1341
  variant: "ghost",
1338
1342
  className: "sb-justify-start",
@@ -1351,11 +1355,11 @@ var AddContentButton = (props) => {
1351
1355
  }))));
1352
1356
  };
1353
1357
  var AddContentPlaceholder = (props) => {
1354
- 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(chunkTQITQHDC_js.Button, { size: "sm" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1358
+ 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(chunkI2LWMDYD_js.Button, { size: "sm" }, /* @__PURE__ */ React15__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1355
1359
  };
1356
1360
  var AddContentDividerButton = (props) => {
1357
1361
  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(
1358
- chunkTQITQHDC_js.Button,
1362
+ chunkI2LWMDYD_js.Button,
1359
1363
  {
1360
1364
  size: "sm",
1361
1365
  className: "sb-absolute sb-left-1/2 sb-top-1/2 sb--translate-y-1/2 sb--translate-x-1/2 sb-shadow"
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import './chunk-DOQHCW2T.mjs';
3
- import { buttonVariants, Button, useBuilder } from './chunk-JF244SXI.mjs';
4
- import { cn, tv, DesignWrapper, builder, Image, spacing } from './chunk-PIRC2EWS.mjs';
2
+ import './chunk-EFA2EAPD.mjs';
3
+ import { buttonVariants, Button, useBuilder } from './chunk-4Z4JII4A.mjs';
4
+ import { cn, tv, DesignWrapper, builder, Image, spacing } from './chunk-S3NVED5S.mjs';
5
5
  import * as React15 from 'react';
6
6
  import { PlusIcon, ArrowUp, ArrowDown, Edit2Icon, Trash2Icon, ImageIcon, CalendarIcon, MonitorIcon, SmartphoneIcon, AlignHorizontalSpaceAroundIcon, AlignHorizontalJustifyStartIcon, ScanIcon, ChevronLeftIcon, ChevronRightIcon, PaintbrushIcon, Loader2Icon } from 'lucide-react';
7
7
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -904,6 +904,10 @@ var ItemDesignForm = (props) => {
904
904
  const onSubmit = (values) => {
905
905
  const { container } = values;
906
906
  const getPatchedDeviceValues = (device2 = "desktop") => {
907
+ const initital = Object.keys(item.styles?.[device2] || {}).filter((key) => !Object.keys(values[device2]).includes(key)).reduce(
908
+ (acc, key) => ({ ...acc, [key]: item.styles?.[device2][key] }),
909
+ {}
910
+ );
907
911
  return Object.entries(values[device2]).reduce((acc, [key, value]) => {
908
912
  let res = value;
909
913
  if (key === "padding" || key === "margin") {
@@ -918,9 +922,9 @@ var ItemDesignForm = (props) => {
918
922
  }
919
923
  return {
920
924
  ...acc,
921
- ...!!res && defaults?.[device2]?.[key] !== res ? { [key]: res } : {}
925
+ ...res ? { [key]: res } : {}
922
926
  };
923
- }, {});
927
+ }, initital);
924
928
  };
925
929
  const patchedDesktopValues = getPatchedDeviceValues();
926
930
  const patchedMobileValues = getPatchedDeviceValues("mobile");
@@ -1,5 +1,5 @@
1
- import { BuilderProvider, useBuilder, Button } from './chunk-JF244SXI.mjs';
2
- import { BuildContainer } from './chunk-PIRC2EWS.mjs';
1
+ import { BuilderProvider, useBuilder, Button } from './chunk-4Z4JII4A.mjs';
2
+ import { BuildContainer } from './chunk-S3NVED5S.mjs';
3
3
  import * as React2 from 'react';
4
4
 
5
5
  var BuilderHeader = () => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkTQITQHDC_js = require('./chunk-TQITQHDC.js');
4
- var chunkNVOLMEIV_js = require('./chunk-NVOLMEIV.js');
3
+ var chunkI2LWMDYD_js = require('./chunk-I2LWMDYD.js');
4
+ var chunkLJSVUW4D_js = require('./chunk-LJSVUW4D.js');
5
5
  var React2 = require('react');
6
6
 
7
7
  function _interopNamespace(e) {
@@ -25,17 +25,17 @@ function _interopNamespace(e) {
25
25
  var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
26
26
 
27
27
  var BuilderHeader = () => {
28
- const { save } = chunkTQITQHDC_js.useBuilder();
29
- return /* @__PURE__ */ React2__namespace.createElement("div", { className: "sb-grid sb-grid-cols-3 sb-gap-4 sb-items-center sb-p-2 sb-shadow-lg sb-sticky sb-inset-x-0 sb-top-0 sb-bg-background sb-z-30" }, /* @__PURE__ */ React2__namespace.createElement("div", { className: "sb-flex sb-gap-4 sb-items-center" }, /* @__PURE__ */ React2__namespace.createElement(chunkTQITQHDC_js.Button, { variant: "ghost", size: "sm", onClick: save }, "Opslaan")));
28
+ const { save } = chunkI2LWMDYD_js.useBuilder();
29
+ return /* @__PURE__ */ React2__namespace.createElement("div", { className: "sb-grid sb-grid-cols-3 sb-gap-4 sb-items-center sb-p-2 sb-shadow-lg sb-sticky sb-inset-x-0 sb-top-0 sb-bg-background sb-z-30" }, /* @__PURE__ */ React2__namespace.createElement("div", { className: "sb-flex sb-gap-4 sb-items-center" }, /* @__PURE__ */ React2__namespace.createElement(chunkI2LWMDYD_js.Button, { variant: "ghost", size: "sm", onClick: save }, "Opslaan")));
30
30
  };
31
31
 
32
32
  // src/components/builder-content.tsx
33
33
  var BuilderContent = (props) => {
34
- return /* @__PURE__ */ React2__namespace.createElement(chunkTQITQHDC_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
34
+ return /* @__PURE__ */ React2__namespace.createElement(chunkI2LWMDYD_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
35
35
  };
36
36
  var BuilderContentInner = () => {
37
- const { content } = chunkTQITQHDC_js.useBuilder();
38
- return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunkNVOLMEIV_js.BuildContainer, { name: "root", edit: true, multiple: true, content }));
37
+ const { content } = chunkI2LWMDYD_js.useBuilder();
38
+ return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunkLJSVUW4D_js.BuildContainer, { name: "root", edit: true, multiple: true, content }));
39
39
  };
40
40
  var builder_content_default = BuilderContent;
41
41
 
@@ -1,4 +1,4 @@
1
- import { tv, builder, insertAt } from './chunk-PIRC2EWS.mjs';
1
+ import { tv, builder, insertAt } from './chunk-S3NVED5S.mjs';
2
2
  import * as React from 'react';
3
3
  import { Slot } from '@radix-ui/react-slot';
4
4
 
@@ -1,4 +1,4 @@
1
- import { BuildContainer } from './chunk-PIRC2EWS.mjs';
1
+ import { BuildContainer } from './chunk-S3NVED5S.mjs';
2
2
  import * as React from 'react';
3
3
  import { lazy } from 'react';
4
4
 
@@ -15,6 +15,6 @@ var StaticContent = (props) => {
15
15
  };
16
16
 
17
17
  // src/index.ts
18
- var BuilderContent = lazy(() => import('./builder-content-36BOBBAF.mjs'));
18
+ var BuilderContent = lazy(() => import('./builder-content-WVKVDIRR.mjs'));
19
19
 
20
20
  export { BuilderContent, StaticContent };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNVOLMEIV_js = require('./chunk-NVOLMEIV.js');
3
+ var chunkLJSVUW4D_js = require('./chunk-LJSVUW4D.js');
4
4
  var React = require('react');
5
5
  var reactSlot = require('@radix-ui/react-slot');
6
6
 
@@ -58,7 +58,7 @@ var BuilderProvider = (props) => {
58
58
  );
59
59
  const addContent = React__namespace.useCallback(
60
60
  (name, container, parent, index = 0) => {
61
- const component = chunkNVOLMEIV_js.builder.getComponent(name);
61
+ const component = chunkLJSVUW4D_js.builder.getComponent(name);
62
62
  if (!component) {
63
63
  throw new Error(`[simple-builder]: Component "${name}" not found`);
64
64
  }
@@ -80,7 +80,7 @@ var BuilderProvider = (props) => {
80
80
  }
81
81
  };
82
82
  if (!parent) {
83
- setContent((content2) => chunkNVOLMEIV_js.insertAt(content2, index, entry));
83
+ setContent((content2) => chunkLJSVUW4D_js.insertAt(content2, index, entry));
84
84
  return;
85
85
  }
86
86
  setContent(
@@ -90,7 +90,7 @@ var BuilderProvider = (props) => {
90
90
  ...item,
91
91
  content: {
92
92
  ...item.content,
93
- [container]: chunkNVOLMEIV_js.insertAt(item.content?.[container], index, entry)
93
+ [container]: chunkLJSVUW4D_js.insertAt(item.content?.[container], index, entry)
94
94
  }
95
95
  };
96
96
  }
@@ -218,7 +218,7 @@ var findRecursive = (items, predicate, key = "content") => {
218
218
  }
219
219
  }
220
220
  };
221
- var buttonVariants = chunkNVOLMEIV_js.tv({
221
+ var buttonVariants = chunkLJSVUW4D_js.tv({
222
222
  base: "sb-inline-flex sb-uppercase sb-font-roboto sb-items-center sb-justify-center sb-whitespace-nowrap sb-rounded-md sb-text-xs sb-font-semibold ring-offset-background sb-transition-colors focus-visible:sb-outline-none focus-visible:sb-ring-2 focus-visible:ring-ring focus-visible:sb-ring-offset-2 disabled:sb-pointer-events-none disabled:sb-opacity-50",
223
223
  variants: {
224
224
  variant: {
@@ -159,7 +159,7 @@ var DesignWrapper = (props) => {
159
159
  `.replace(/\s\s+/g, " ")));
160
160
  };
161
161
  var BuildContainerInner = React3__namespace.lazy(
162
- () => import('./build-container-client-B6ZYGDJF.js')
162
+ () => import('./build-container-client-64PFJ5XN.js')
163
163
  );
164
164
  var BuildContainer = (props) => {
165
165
  const { content, edit, name } = props;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkNVOLMEIV_js = require('./chunk-NVOLMEIV.js');
3
+ var chunkLJSVUW4D_js = require('./chunk-LJSVUW4D.js');
4
4
  var React = require('react');
5
5
 
6
6
  function _interopNamespace(e) {
@@ -25,7 +25,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
25
25
 
26
26
  var StaticContent = (props) => {
27
27
  return /* @__PURE__ */ React__namespace.createElement(
28
- chunkNVOLMEIV_js.BuildContainer,
28
+ chunkLJSVUW4D_js.BuildContainer,
29
29
  {
30
30
  name: "root",
31
31
  edit: false,
@@ -36,7 +36,7 @@ var StaticContent = (props) => {
36
36
  };
37
37
 
38
38
  // src/index.ts
39
- var BuilderContent = React.lazy(() => import('./builder-content-3LSJER2M.js'));
39
+ var BuilderContent = React.lazy(() => import('./builder-content-XAIOE6LA.js'));
40
40
 
41
41
  exports.BuilderContent = BuilderContent;
42
42
  exports.StaticContent = StaticContent;
@@ -135,7 +135,7 @@ var DesignWrapper = (props) => {
135
135
  `.replace(/\s\s+/g, " ")));
136
136
  };
137
137
  var BuildContainerInner = React3.lazy(
138
- () => import('./build-container-client-F3SDJONS.mjs')
138
+ () => import('./build-container-client-TRHCXW7W.mjs')
139
139
  );
140
140
  var BuildContainer = (props) => {
141
141
  const { content, edit, name } = props;
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunk4NWAJBFM_js = require('./chunk-4NWAJBFM.js');
4
- var chunkNVOLMEIV_js = require('./chunk-NVOLMEIV.js');
3
+ var chunkMSCSJUNQ_js = require('./chunk-MSCSJUNQ.js');
4
+ var chunkLJSVUW4D_js = require('./chunk-LJSVUW4D.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "BuilderContent", {
9
9
  enumerable: true,
10
- get: function () { return chunk4NWAJBFM_js.BuilderContent; }
10
+ get: function () { return chunkMSCSJUNQ_js.BuilderContent; }
11
11
  });
12
12
  Object.defineProperty(exports, "StaticContent", {
13
13
  enumerable: true,
14
- get: function () { return chunk4NWAJBFM_js.StaticContent; }
14
+ get: function () { return chunkMSCSJUNQ_js.StaticContent; }
15
15
  });
16
16
  Object.defineProperty(exports, "BuildContainer", {
17
17
  enumerable: true,
18
- get: function () { return chunkNVOLMEIV_js.BuildContainer; }
18
+ get: function () { return chunkLJSVUW4D_js.BuildContainer; }
19
19
  });
20
20
  Object.defineProperty(exports, "builder", {
21
21
  enumerable: true,
22
- get: function () { return chunkNVOLMEIV_js.builder; }
22
+ get: function () { return chunkLJSVUW4D_js.builder; }
23
23
  });
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { BuilderContent, StaticContent } from './chunk-DOQHCW2T.mjs';
2
- export { BuildContainer, builder } from './chunk-PIRC2EWS.mjs';
1
+ export { BuilderContent, StaticContent } from './chunk-EFA2EAPD.mjs';
2
+ export { BuildContainer, builder } from './chunk-S3NVED5S.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-builder/react",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "private": false,
5
5
  "description": "React package for the simple builder package.",
6
6
  "repository": "https://github.com/pieter-berkel/simple-builder.git",
@@ -44,7 +44,7 @@
44
44
  "tailwind-merge": "^2.2.0",
45
45
  "tailwind-variants": "^0.1.20",
46
46
  "zod": "^3.22.4",
47
- "@simple-builder/server": "1.0.6"
47
+ "@simple-builder/server": "1.0.8"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=16.8.0",