@simple-builder/react 1.0.4 → 1.0.5

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-KOBGFPWB.js');
5
- var chunkXEMUNFCV_js = require('./chunk-XEMUNFCV.js');
6
- var chunkJ36K7WVK_js = require('./chunk-J36K7WVK.js');
4
+ require('./chunk-2CKQ5QRQ.js');
5
+ var chunkPJOHRI67_js = require('./chunk-PJOHRI67.js');
6
+ var chunk5YLARMT3_js = require('./chunk-5YLARMT3.js');
7
7
  var React12 = require('react');
8
8
  var lucideReact = require('lucide-react');
9
9
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
@@ -52,7 +52,7 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
52
52
  var AlertDialogOverlay = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
53
53
  AlertDialogPrimitive__namespace.Overlay,
54
54
  {
55
- className: chunkJ36K7WVK_js.cn(
55
+ className: chunk5YLARMT3_js.cn(
56
56
  "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",
57
57
  className
58
58
  ),
@@ -65,7 +65,7 @@ var AlertDialogContent = React12__namespace.forwardRef(({ className, ...props },
65
65
  AlertDialogPrimitive__namespace.Content,
66
66
  {
67
67
  ref,
68
- className: chunkJ36K7WVK_js.cn(
68
+ className: chunk5YLARMT3_js.cn(
69
69
  "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",
70
70
  className
71
71
  ),
@@ -79,7 +79,7 @@ var AlertDialogFooter = ({
79
79
  }) => /* @__PURE__ */ React12__namespace.createElement(
80
80
  "div",
81
81
  {
82
- className: chunkJ36K7WVK_js.cn(
82
+ className: chunk5YLARMT3_js.cn(
83
83
  "sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
84
84
  className
85
85
  ),
@@ -91,7 +91,7 @@ var AlertDialogTitle = React12__namespace.forwardRef(({ className, ...props }, r
91
91
  AlertDialogPrimitive__namespace.Title,
92
92
  {
93
93
  ref,
94
- className: chunkJ36K7WVK_js.cn("sb-text-lg sb-font-semibold", className),
94
+ className: chunk5YLARMT3_js.cn("sb-text-lg sb-font-semibold", className),
95
95
  ...props
96
96
  }
97
97
  ));
@@ -100,7 +100,7 @@ var AlertDialogDescription = React12__namespace.forwardRef(({ className, ...prop
100
100
  AlertDialogPrimitive__namespace.Description,
101
101
  {
102
102
  ref,
103
- className: chunkJ36K7WVK_js.cn("sb-text-sm sb-text-muted-foreground", className),
103
+ className: chunk5YLARMT3_js.cn("sb-text-sm sb-text-muted-foreground", className),
104
104
  ...props
105
105
  }
106
106
  ));
@@ -109,7 +109,7 @@ var AlertDialogAction = React12__namespace.forwardRef(({ className, ...props },
109
109
  AlertDialogPrimitive__namespace.Action,
110
110
  {
111
111
  ref,
112
- className: chunkJ36K7WVK_js.cn(chunkXEMUNFCV_js.buttonVariants(), className),
112
+ className: chunk5YLARMT3_js.cn(chunkPJOHRI67_js.buttonVariants(), className),
113
113
  ...props
114
114
  }
115
115
  ));
@@ -118,8 +118,8 @@ var AlertDialogCancel = React12__namespace.forwardRef(({ className, ...props },
118
118
  AlertDialogPrimitive__namespace.Cancel,
119
119
  {
120
120
  ref,
121
- className: chunkJ36K7WVK_js.cn(
122
- chunkXEMUNFCV_js.buttonVariants({ variant: "outline" }),
121
+ className: chunk5YLARMT3_js.cn(
122
+ chunkPJOHRI67_js.buttonVariants({ variant: "outline" }),
123
123
  "sb-mt-2 sm:sb-mt-0",
124
124
  className
125
125
  ),
@@ -136,7 +136,7 @@ var PopoverContent = React12__namespace.forwardRef(({ className, align = "center
136
136
  ref,
137
137
  align,
138
138
  sideOffset,
139
- className: chunkJ36K7WVK_js.cn(
139
+ className: chunk5YLARMT3_js.cn(
140
140
  "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",
141
141
  className
142
142
  ),
@@ -151,7 +151,7 @@ var Label = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @
151
151
  LabelPrimitive__namespace.Root,
152
152
  {
153
153
  ref,
154
- className: chunkJ36K7WVK_js.cn(labelVariants(), className),
154
+ className: chunk5YLARMT3_js.cn(labelVariants(), className),
155
155
  ...props
156
156
  }
157
157
  ));
@@ -190,7 +190,7 @@ var FormItemContext = React12__namespace.createContext(
190
190
  );
191
191
  var FormItem = React12__namespace.forwardRef(({ className, ...props }, ref) => {
192
192
  const id = React12__namespace.useId();
193
- return /* @__PURE__ */ React12__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React12__namespace.createElement("div", { ref, className: chunkJ36K7WVK_js.cn("sb-space-y-2", className), ...props }));
193
+ return /* @__PURE__ */ React12__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React12__namespace.createElement("div", { ref, className: chunk5YLARMT3_js.cn("sb-space-y-2", className), ...props }));
194
194
  });
195
195
  FormItem.displayName = "FormItem";
196
196
  var FormLabel = React12__namespace.forwardRef(({ className, ...props }, ref) => {
@@ -199,7 +199,7 @@ var FormLabel = React12__namespace.forwardRef(({ className, ...props }, ref) =>
199
199
  Label,
200
200
  {
201
201
  ref,
202
- className: chunkJ36K7WVK_js.cn(error && "sb-text-destructive", className),
202
+ className: chunk5YLARMT3_js.cn(error && "sb-text-destructive", className),
203
203
  htmlFor: formItemId,
204
204
  ...props
205
205
  }
@@ -227,7 +227,7 @@ var FormDescription = React12__namespace.forwardRef(({ className, ...props }, re
227
227
  {
228
228
  ref,
229
229
  id: formDescriptionId,
230
- className: chunkJ36K7WVK_js.cn(
230
+ className: chunk5YLARMT3_js.cn(
231
231
  "sb-text-sm sb-font-roboto sb-text-muted-foreground",
232
232
  className
233
233
  ),
@@ -247,7 +247,7 @@ var FormMessage = React12__namespace.forwardRef(({ className, children, ...props
247
247
  {
248
248
  ref,
249
249
  id: formMessageId,
250
- className: chunkJ36K7WVK_js.cn(
250
+ className: chunk5YLARMT3_js.cn(
251
251
  "sb-text-sm sb-font-roboto sb-font-medium sb-text-destructive",
252
252
  className
253
253
  ),
@@ -262,7 +262,7 @@ var TabsList = React12__namespace.forwardRef(({ className, ...props }, ref) => /
262
262
  TabsPrimitive__namespace.List,
263
263
  {
264
264
  ref,
265
- className: chunkJ36K7WVK_js.cn(
265
+ className: chunk5YLARMT3_js.cn(
266
266
  "sb-flex sb-items-center sb-border-b sb-px-4 sb-space-x-6",
267
267
  className
268
268
  ),
@@ -274,7 +274,7 @@ var TabsTrigger = React12__namespace.forwardRef(({ className, ...props }, ref) =
274
274
  TabsPrimitive__namespace.Trigger,
275
275
  {
276
276
  ref,
277
- className: chunkJ36K7WVK_js.cn(
277
+ className: chunk5YLARMT3_js.cn(
278
278
  "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",
279
279
  className
280
280
  ),
@@ -286,7 +286,7 @@ var TabsContent = React12__namespace.forwardRef(({ className, ...props }, ref) =
286
286
  TabsPrimitive__namespace.Content,
287
287
  {
288
288
  ref,
289
- className: chunkJ36K7WVK_js.cn(
289
+ className: chunk5YLARMT3_js.cn(
290
290
  "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",
291
291
  className
292
292
  ),
@@ -371,8 +371,8 @@ var MediaInput = (props) => {
371
371
  body: JSON.stringify({ src })
372
372
  });
373
373
  };
374
- return /* @__PURE__ */ React12__namespace.createElement("div", { className: chunkJ36K7WVK_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React12__namespace.createElement(MediaInputItem, { key: src, className: chunkJ36K7WVK_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React12__namespace.createElement(
375
- chunkJ36K7WVK_js.Image,
374
+ return /* @__PURE__ */ React12__namespace.createElement("div", { className: chunk5YLARMT3_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React12__namespace.createElement(MediaInputItem, { key: src, className: chunk5YLARMT3_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React12__namespace.createElement(
375
+ chunk5YLARMT3_js.Image,
376
376
  {
377
377
  src,
378
378
  alt: "",
@@ -390,7 +390,7 @@ var MediaInput = (props) => {
390
390
  MediaInputItem,
391
391
  {
392
392
  key: i,
393
- className: chunkJ36K7WVK_js.cn(
393
+ className: chunk5YLARMT3_js.cn(
394
394
  "sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
395
395
  props.itemClassName
396
396
  )
@@ -400,7 +400,7 @@ var MediaInput = (props) => {
400
400
  "label",
401
401
  {
402
402
  htmlFor: id,
403
- className: chunkJ36K7WVK_js.cn(
403
+ className: chunk5YLARMT3_js.cn(
404
404
  "sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
405
405
  props.itemClassName
406
406
  )
@@ -423,7 +423,7 @@ var MediaInputItem = (props) => {
423
423
  return /* @__PURE__ */ React12__namespace.createElement(
424
424
  "div",
425
425
  {
426
- className: chunkJ36K7WVK_js.cn(
426
+ className: chunk5YLARMT3_js.cn(
427
427
  "sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
428
428
  props.className
429
429
  )
@@ -471,11 +471,11 @@ var BackgroundPicker = (props) => {
471
471
  return "solid";
472
472
  }, [background]);
473
473
  return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
474
- chunkXEMUNFCV_js.Button,
474
+ chunkPJOHRI67_js.Button,
475
475
  {
476
476
  variant: "outline",
477
477
  size: "sm",
478
- className: chunkJ36K7WVK_js.cn(
478
+ className: chunk5YLARMT3_js.cn(
479
479
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
480
480
  !background && "sb-text-muted-foreground",
481
481
  className
@@ -558,11 +558,11 @@ var ColorPicker = (props) => {
558
558
  "#FF0000"
559
559
  ];
560
560
  return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
561
- chunkXEMUNFCV_js.Button,
561
+ chunkPJOHRI67_js.Button,
562
562
  {
563
563
  variant: "outline",
564
564
  size: "sm",
565
- className: chunkJ36K7WVK_js.cn(
565
+ className: chunk5YLARMT3_js.cn(
566
566
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
567
567
  !color && "sb-text-muted-foreground",
568
568
  className
@@ -591,7 +591,7 @@ var Input = React12__namespace.forwardRef(
591
591
  "input",
592
592
  {
593
593
  type,
594
- className: chunkJ36K7WVK_js.cn(
594
+ className: chunk5YLARMT3_js.cn(
595
595
  "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",
596
596
  className
597
597
  ),
@@ -611,7 +611,7 @@ AdvancedInput.displayName = "AdvancedInput";
611
611
  var Switch = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
612
612
  SwitchPrimitives__namespace.Root,
613
613
  {
614
- className: chunkJ36K7WVK_js.cn(
614
+ className: chunk5YLARMT3_js.cn(
615
615
  "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",
616
616
  className
617
617
  ),
@@ -621,7 +621,7 @@ var Switch = React12__namespace.forwardRef(({ className, ...props }, ref) => /*
621
621
  /* @__PURE__ */ React12__namespace.createElement(
622
622
  SwitchPrimitives__namespace.Thumb,
623
623
  {
624
- className: chunkJ36K7WVK_js.cn(
624
+ className: chunk5YLARMT3_js.cn(
625
625
  "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"
626
626
  )
627
627
  }
@@ -652,7 +652,7 @@ var Toggle = React12__namespace.forwardRef(({ className, variant, size, ...props
652
652
  TogglePrimitive__namespace.Root,
653
653
  {
654
654
  ref,
655
- className: chunkJ36K7WVK_js.cn(toggleVariants({ variant, size, className })),
655
+ className: chunk5YLARMT3_js.cn(toggleVariants({ variant, size, className })),
656
656
  ...props
657
657
  }
658
658
  ));
@@ -679,20 +679,21 @@ var designSchema = zod.z.object({
679
679
  color: zod.z.string(),
680
680
  padding: spacingSchema,
681
681
  margin: spacingSchema
682
- });
682
+ }).passthrough();
683
683
  var ItemDesignForm = (props) => {
684
684
  const { item } = props;
685
- const { patchItem } = chunkXEMUNFCV_js.useBuilder();
686
- const initialPadding = chunkJ36K7WVK_js.spacing.parse(item.styles?.padding ?? "");
687
- const initialMargin = chunkJ36K7WVK_js.spacing.parse(item.styles?.margin ?? "");
685
+ const { patchItem } = chunkPJOHRI67_js.useBuilder();
686
+ const initialPadding = chunk5YLARMT3_js.spacing.parse(item.styles?.padding ?? "");
687
+ const initialMargin = chunk5YLARMT3_js.spacing.parse(item.styles?.margin ?? "");
688
688
  const form = reactHookForm.useForm({
689
689
  resolver: zod$1.zodResolver(designSchema),
690
690
  defaultValues: {
691
+ ...item.styles,
691
692
  container: item.styles?.container ?? true,
692
693
  background: item.styles?.background ?? "",
693
694
  color: item.styles?.color ?? "",
694
695
  padding: {
695
- indipendent: chunkJ36K7WVK_js.spacing.isIndipendent(
696
+ indipendent: chunk5YLARMT3_js.spacing.isIndipendent(
696
697
  item.styles?.padding ?? ""
697
698
  ),
698
699
  horizontal: initialPadding.left,
@@ -703,7 +704,7 @@ var ItemDesignForm = (props) => {
703
704
  bottom: initialPadding.bottom
704
705
  },
705
706
  margin: {
706
- indipendent: chunkJ36K7WVK_js.spacing.isIndipendent(
707
+ indipendent: chunk5YLARMT3_js.spacing.isIndipendent(
707
708
  item.styles?.margin ?? ""
708
709
  ),
709
710
  horizontal: initialMargin.left,
@@ -716,16 +717,14 @@ var ItemDesignForm = (props) => {
716
717
  }
717
718
  });
718
719
  const onSubmit = (values) => {
719
- const { container, background, color, padding: p, margin: m } = values;
720
+ const { padding: p, margin: m, ...rest } = values;
720
721
  const padding = !p.indipendent ? `${p.vertical}px ${p.horizontal}px` : `${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`;
721
722
  const margin = !m.indipendent ? `${m.vertical}px ${m.horizontal}px` : `${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`;
722
723
  patchItem(item.id, {
723
724
  styles: {
724
- container,
725
- background,
726
- color,
727
725
  padding,
728
- margin
726
+ margin,
727
+ ...rest
729
728
  }
730
729
  });
731
730
  };
@@ -990,15 +989,15 @@ function Calendar({
990
989
  reactDayPicker.DayPicker,
991
990
  {
992
991
  showOutsideDays,
993
- className: chunkJ36K7WVK_js.cn("sb-p-3 sb-font-roboto", className),
992
+ className: chunk5YLARMT3_js.cn("sb-p-3 sb-font-roboto", className),
994
993
  classNames: {
995
994
  months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
996
995
  month: "sb-space-y-4",
997
996
  caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
998
997
  caption_label: "sb-text-sm sb-font-medium",
999
998
  nav: "sb-space-x-1 sb-flex sb-items-center",
1000
- nav_button: chunkJ36K7WVK_js.cn(
1001
- chunkXEMUNFCV_js.buttonVariants({ variant: "outline" }),
999
+ nav_button: chunk5YLARMT3_js.cn(
1000
+ chunkPJOHRI67_js.buttonVariants({ variant: "outline" }),
1002
1001
  "sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
1003
1002
  ),
1004
1003
  nav_button_previous: "sb-absolute sb-left-1",
@@ -1007,12 +1006,12 @@ function Calendar({
1007
1006
  head_row: "sb-flex",
1008
1007
  head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
1009
1008
  row: "sb-flex sb-w-full sb-mt-2",
1010
- cell: chunkJ36K7WVK_js.cn(
1009
+ cell: chunk5YLARMT3_js.cn(
1011
1010
  "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",
1012
1011
  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"
1013
1012
  ),
1014
- day: chunkJ36K7WVK_js.cn(
1015
- chunkXEMUNFCV_js.buttonVariants({ variant: "ghost" }),
1013
+ day: chunk5YLARMT3_js.cn(
1014
+ chunkPJOHRI67_js.buttonVariants({ variant: "ghost" }),
1016
1015
  "sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
1017
1016
  ),
1018
1017
  day_range_start: "day-range-start",
@@ -1039,7 +1038,7 @@ var Textarea = React12__namespace.forwardRef(
1039
1038
  return /* @__PURE__ */ React12__namespace.createElement(
1040
1039
  "textarea",
1041
1040
  {
1042
- className: chunkJ36K7WVK_js.cn(
1041
+ className: chunk5YLARMT3_js.cn(
1043
1042
  "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",
1044
1043
  className
1045
1044
  ),
@@ -1054,8 +1053,8 @@ Textarea.displayName = "Textarea";
1054
1053
  // src/components/container-item-form.tsx
1055
1054
  var ContainerItemForm = (props) => {
1056
1055
  const { item } = props;
1057
- const { patchItem } = chunkXEMUNFCV_js.useBuilder();
1058
- const component = chunkJ36K7WVK_js.builder.getComponent(item.component);
1056
+ const { patchItem } = chunkPJOHRI67_js.useBuilder();
1057
+ const component = chunk5YLARMT3_js.builder.getComponent(item.component);
1059
1058
  if (!component) {
1060
1059
  throw new Error(
1061
1060
  `[simple-builder]: Component with id ${item.component} not found in container item form component`
@@ -1104,11 +1103,11 @@ var RenderInput = (props) => {
1104
1103
  return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange })), input.helperText && /* @__PURE__ */ React12__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React12__namespace.createElement(FormMessage, null));
1105
1104
  case "date":
1106
1105
  return /* @__PURE__ */ React12__namespace.createElement(FormItem, null, /* @__PURE__ */ React12__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React12__namespace.createElement(FormControl, null, /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
1107
- chunkXEMUNFCV_js.Button,
1106
+ chunkPJOHRI67_js.Button,
1108
1107
  {
1109
1108
  variant: "outline",
1110
1109
  size: "sm",
1111
- className: chunkJ36K7WVK_js.cn(
1110
+ className: chunk5YLARMT3_js.cn(
1112
1111
  "sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
1113
1112
  !field.value && "sb-text-muted-foreground"
1114
1113
  )
@@ -1150,9 +1149,9 @@ var RenderInput = (props) => {
1150
1149
  // src/components/container-item-toolbar.tsx
1151
1150
  var ContainerItemToolbar = (props) => {
1152
1151
  const { contentId, canBringUp = false, canBringDown = false } = props;
1153
- const { bringUp, bringDown } = chunkXEMUNFCV_js.useBuilder();
1152
+ const { bringUp, bringDown } = chunkPJOHRI67_js.useBuilder();
1154
1153
  return /* @__PURE__ */ React12__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__ */ React12__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__ */ React12__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React12__namespace.createElement(
1155
- chunkXEMUNFCV_js.Button,
1154
+ chunkPJOHRI67_js.Button,
1156
1155
  {
1157
1156
  variant: "ghost",
1158
1157
  className: "sb-w-8 sb-h-8 sb-p-0",
@@ -1161,7 +1160,7 @@ var ContainerItemToolbar = (props) => {
1161
1160
  },
1162
1161
  /* @__PURE__ */ React12__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
1163
1162
  ), /* @__PURE__ */ React12__namespace.createElement(
1164
- chunkXEMUNFCV_js.Button,
1163
+ chunkPJOHRI67_js.Button,
1165
1164
  {
1166
1165
  variant: "ghost",
1167
1166
  className: "sb-w-8 sb-h-8 sb-p-0",
@@ -1172,7 +1171,7 @@ var ContainerItemToolbar = (props) => {
1172
1171
  ), /* @__PURE__ */ React12__namespace.createElement(DeleteButton, { contentId })));
1173
1172
  };
1174
1173
  var EditButton = ({ id }) => {
1175
- return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(chunkXEMUNFCV_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React12__namespace.createElement(
1174
+ return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(chunkPJOHRI67_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React12__namespace.createElement(
1176
1175
  PopoverContent,
1177
1176
  {
1178
1177
  side: "left",
@@ -1187,7 +1186,7 @@ var EditButton = ({ id }) => {
1187
1186
  };
1188
1187
  var EditPopoverInner = (props) => {
1189
1188
  const { id } = props;
1190
- const { getItem } = chunkXEMUNFCV_js.useBuilder();
1189
+ const { getItem } = chunkPJOHRI67_js.useBuilder();
1191
1190
  const item = getItem(id);
1192
1191
  if (!item) {
1193
1192
  throw new Error(
@@ -1197,9 +1196,9 @@ var EditPopoverInner = (props) => {
1197
1196
  return /* @__PURE__ */ React12__namespace.createElement(Tabs, null, /* @__PURE__ */ React12__namespace.createElement(TabsList, { defaultValue: "content" }, /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { value: "content" }, "Inhoud"), /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { value: "design" }, "Design")), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React12__namespace.createElement(ContainerItemForm, { item })), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React12__namespace.createElement(ItemDesignForm, { item })));
1198
1197
  };
1199
1198
  var DeleteButton = ({ contentId }) => {
1200
- const { deleteContent } = chunkXEMUNFCV_js.useBuilder();
1199
+ const { deleteContent } = chunkPJOHRI67_js.useBuilder();
1201
1200
  return /* @__PURE__ */ React12__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
1202
- chunkXEMUNFCV_js.Button,
1201
+ chunkPJOHRI67_js.Button,
1203
1202
  {
1204
1203
  variant: "ghost",
1205
1204
  className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
@@ -1208,7 +1207,7 @@ var DeleteButton = ({ contentId }) => {
1208
1207
  )), /* @__PURE__ */ React12__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React12__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React12__namespace.createElement(
1209
1208
  AlertDialogAction,
1210
1209
  {
1211
- className: chunkXEMUNFCV_js.buttonVariants({ variant: "destructive" }),
1210
+ className: chunkPJOHRI67_js.buttonVariants({ variant: "destructive" }),
1212
1211
  onClick: () => deleteContent(contentId)
1213
1212
  },
1214
1213
  "Verwijderen"
@@ -1224,7 +1223,7 @@ var BuildContainerInner = (props) => {
1224
1223
  "[simple-builder]: Multiple content blocks detected when using property multiple false."
1225
1224
  );
1226
1225
  }
1227
- return /* @__PURE__ */ React12__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React12__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React12__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React12__namespace.createElement(chunkJ36K7WVK_js.DesignWrapper, { styles: item.styles }, chunkJ36K7WVK_js.builder.bindComponent(item, true)), /* @__PURE__ */ React12__namespace.createElement(
1226
+ return /* @__PURE__ */ React12__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React12__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React12__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React12__namespace.createElement(React12__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React12__namespace.createElement(chunk5YLARMT3_js.DesignWrapper, { styles: item.styles }, chunk5YLARMT3_js.builder.bindComponent(item, true)), /* @__PURE__ */ React12__namespace.createElement(
1228
1227
  ContainerItemToolbar,
1229
1228
  {
1230
1229
  contentId: item.id,
@@ -1242,12 +1241,12 @@ var BuildContainerInner = (props) => {
1242
1241
  };
1243
1242
  var build_container_client_default = BuildContainerInner;
1244
1243
  var AddContentButton = (props) => {
1245
- const components = chunkJ36K7WVK_js.builder.getComponents();
1246
- const { addContent } = chunkXEMUNFCV_js.useBuilder();
1244
+ const components = chunk5YLARMT3_js.builder.getComponents();
1245
+ const { addContent } = chunkPJOHRI67_js.useBuilder();
1247
1246
  return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React12__namespace.createElement(PopoverContent, { className: "sb-p-1" }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-2" }, components.map((component) => {
1248
1247
  const Icon = component.icon ?? lucideReact.ImageIcon;
1249
1248
  return /* @__PURE__ */ React12__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
1250
- chunkXEMUNFCV_js.Button,
1249
+ chunkPJOHRI67_js.Button,
1251
1250
  {
1252
1251
  variant: "ghost",
1253
1252
  className: "sb-justify-start",
@@ -1266,11 +1265,11 @@ var AddContentButton = (props) => {
1266
1265
  }))));
1267
1266
  };
1268
1267
  var AddContentPlaceholder = (props) => {
1269
- return /* @__PURE__ */ React12__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React12__namespace.createElement(chunkXEMUNFCV_js.Button, { size: "sm" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1268
+ return /* @__PURE__ */ React12__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React12__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React12__namespace.createElement(chunkPJOHRI67_js.Button, { size: "sm" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1270
1269
  };
1271
1270
  var AddContentDividerButton = (props) => {
1272
1271
  return /* @__PURE__ */ React12__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React12__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__ */ React12__namespace.createElement(
1273
- chunkXEMUNFCV_js.Button,
1272
+ chunkPJOHRI67_js.Button,
1274
1273
  {
1275
1274
  size: "sm",
1276
1275
  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-NP2NHVJP.mjs';
3
- import { buttonVariants, Button, useBuilder } from './chunk-EQMVGJ6X.mjs';
4
- import { cn, DesignWrapper, builder, spacing, Image } from './chunk-BSE6WW6Q.mjs';
2
+ import './chunk-5IFB55LU.mjs';
3
+ import { buttonVariants, Button, useBuilder } from './chunk-V2LC2Z4Q.mjs';
4
+ import { cn, DesignWrapper, builder, spacing, Image } from './chunk-XHPQBTIC.mjs';
5
5
  import * as React12 from 'react';
6
6
  import { PlusIcon, ArrowUp, ArrowDown, Edit2Icon, Trash2Icon, ImageIcon, AlignHorizontalSpaceAroundIcon, AlignHorizontalJustifyStartIcon, ScanIcon, CalendarIcon, Loader2Icon, PaintbrushIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react';
7
7
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -651,7 +651,7 @@ var designSchema = z.object({
651
651
  color: z.string(),
652
652
  padding: spacingSchema,
653
653
  margin: spacingSchema
654
- });
654
+ }).passthrough();
655
655
  var ItemDesignForm = (props) => {
656
656
  const { item } = props;
657
657
  const { patchItem } = useBuilder();
@@ -660,6 +660,7 @@ var ItemDesignForm = (props) => {
660
660
  const form = useForm({
661
661
  resolver: zodResolver(designSchema),
662
662
  defaultValues: {
663
+ ...item.styles,
663
664
  container: item.styles?.container ?? true,
664
665
  background: item.styles?.background ?? "",
665
666
  color: item.styles?.color ?? "",
@@ -688,16 +689,14 @@ var ItemDesignForm = (props) => {
688
689
  }
689
690
  });
690
691
  const onSubmit = (values) => {
691
- const { container, background, color, padding: p, margin: m } = values;
692
+ const { padding: p, margin: m, ...rest } = values;
692
693
  const padding = !p.indipendent ? `${p.vertical}px ${p.horizontal}px` : `${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`;
693
694
  const margin = !m.indipendent ? `${m.vertical}px ${m.horizontal}px` : `${m.top}px ${m.right}px ${m.bottom}px ${m.left}px`;
694
695
  patchItem(item.id, {
695
696
  styles: {
696
- container,
697
- background,
698
- color,
699
697
  padding,
700
- margin
698
+ margin,
699
+ ...rest
701
700
  }
702
701
  });
703
702
  };
@@ -1,5 +1,5 @@
1
- import { BuilderProvider, useBuilder, Button } from './chunk-EQMVGJ6X.mjs';
2
- import { BuildContainer } from './chunk-BSE6WW6Q.mjs';
1
+ import { BuilderProvider, useBuilder, Button } from './chunk-V2LC2Z4Q.mjs';
2
+ import { BuildContainer } from './chunk-XHPQBTIC.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 chunkXEMUNFCV_js = require('./chunk-XEMUNFCV.js');
4
- var chunkJ36K7WVK_js = require('./chunk-J36K7WVK.js');
3
+ var chunkPJOHRI67_js = require('./chunk-PJOHRI67.js');
4
+ var chunk5YLARMT3_js = require('./chunk-5YLARMT3.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 } = chunkXEMUNFCV_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(chunkXEMUNFCV_js.Button, { variant: "ghost", size: "sm", onClick: save }, "Opslaan")));
28
+ const { save } = chunkPJOHRI67_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(chunkPJOHRI67_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(chunkXEMUNFCV_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
34
+ return /* @__PURE__ */ React2__namespace.createElement(chunkPJOHRI67_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
35
35
  };
36
36
  var BuilderContentInner = () => {
37
- const { content } = chunkXEMUNFCV_js.useBuilder();
38
- return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunkJ36K7WVK_js.BuildContainer, { name: "root", edit: true, multiple: true, content }));
37
+ const { content } = chunkPJOHRI67_js.useBuilder();
38
+ return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunk5YLARMT3_js.BuildContainer, { name: "root", edit: true, multiple: true, content }));
39
39
  };
40
40
  var builder_content_default = BuilderContent;
41
41
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ36K7WVK_js = require('./chunk-J36K7WVK.js');
3
+ var chunk5YLARMT3_js = require('./chunk-5YLARMT3.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
- chunkJ36K7WVK_js.BuildContainer,
28
+ chunk5YLARMT3_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-QNCUQJUB.js'));
39
+ var BuilderContent = React.lazy(() => import('./builder-content-RAITJRFM.js'));
40
40
 
41
41
  exports.BuilderContent = BuilderContent;
42
42
  exports.StaticContent = StaticContent;
@@ -1,4 +1,4 @@
1
- import { BuildContainer } from './chunk-BSE6WW6Q.mjs';
1
+ import { BuildContainer } from './chunk-XHPQBTIC.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-GELONUMY.mjs'));
18
+ var BuilderContent = lazy(() => import('./builder-content-2ZCDLKAI.mjs'));
19
19
 
20
20
  export { BuilderContent, StaticContent };
@@ -125,7 +125,7 @@ var DesignWrapper = (props) => {
125
125
  );
126
126
  };
127
127
  var BuildContainerInner = React3__namespace.lazy(
128
- () => import('./build-container-client-PDM3LRIQ.js')
128
+ () => import('./build-container-client-DKP66XWJ.js')
129
129
  );
130
130
  var BuildContainer = (props) => {
131
131
  const { content, edit, name } = props;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ36K7WVK_js = require('./chunk-J36K7WVK.js');
3
+ var chunk5YLARMT3_js = require('./chunk-5YLARMT3.js');
4
4
  var React = require('react');
5
5
  var reactSlot = require('@radix-ui/react-slot');
6
6
  var classVarianceAuthority = require('class-variance-authority');
@@ -59,7 +59,7 @@ var BuilderProvider = (props) => {
59
59
  );
60
60
  const addContent = React__namespace.useCallback(
61
61
  (name, container, parent, index = 0) => {
62
- const component = chunkJ36K7WVK_js.builder.getComponent(name);
62
+ const component = chunk5YLARMT3_js.builder.getComponent(name);
63
63
  if (!component) {
64
64
  throw new Error(`[simple-builder]: Component "${name}" not found`);
65
65
  }
@@ -81,7 +81,7 @@ var BuilderProvider = (props) => {
81
81
  }
82
82
  };
83
83
  if (!parent) {
84
- setContent((content2) => chunkJ36K7WVK_js.insertAt(content2, index, entry));
84
+ setContent((content2) => chunk5YLARMT3_js.insertAt(content2, index, entry));
85
85
  return;
86
86
  }
87
87
  setContent(
@@ -91,7 +91,7 @@ var BuilderProvider = (props) => {
91
91
  ...item,
92
92
  content: {
93
93
  ...item.content,
94
- [container]: chunkJ36K7WVK_js.insertAt(item.content?.[container], index, entry)
94
+ [container]: chunk5YLARMT3_js.insertAt(item.content?.[container], index, entry)
95
95
  }
96
96
  };
97
97
  }
@@ -246,7 +246,7 @@ var Button = React__namespace.forwardRef(
246
246
  return /* @__PURE__ */ React__namespace.createElement(
247
247
  Comp,
248
248
  {
249
- className: chunkJ36K7WVK_js.cn(buttonVariants({ variant, size, className })),
249
+ className: chunk5YLARMT3_js.cn(buttonVariants({ variant, size, className })),
250
250
  ref,
251
251
  ...props
252
252
  }
@@ -1,4 +1,4 @@
1
- import { cn, builder, insertAt } from './chunk-BSE6WW6Q.mjs';
1
+ import { cn, builder, insertAt } from './chunk-XHPQBTIC.mjs';
2
2
  import * as React from 'react';
3
3
  import { Slot } from '@radix-ui/react-slot';
4
4
  import { cva } from 'class-variance-authority';
@@ -101,7 +101,7 @@ var DesignWrapper = (props) => {
101
101
  );
102
102
  };
103
103
  var BuildContainerInner = React3.lazy(
104
- () => import('./build-container-client-Y55WZE6M.mjs')
104
+ () => import('./build-container-client-VVBART5S.mjs')
105
105
  );
106
106
  var BuildContainer = (props) => {
107
107
  const { content, edit, name } = props;
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunkKOBGFPWB_js = require('./chunk-KOBGFPWB.js');
4
- var chunkJ36K7WVK_js = require('./chunk-J36K7WVK.js');
3
+ var chunk2CKQ5QRQ_js = require('./chunk-2CKQ5QRQ.js');
4
+ var chunk5YLARMT3_js = require('./chunk-5YLARMT3.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "BuilderContent", {
9
9
  enumerable: true,
10
- get: function () { return chunkKOBGFPWB_js.BuilderContent; }
10
+ get: function () { return chunk2CKQ5QRQ_js.BuilderContent; }
11
11
  });
12
12
  Object.defineProperty(exports, "StaticContent", {
13
13
  enumerable: true,
14
- get: function () { return chunkKOBGFPWB_js.StaticContent; }
14
+ get: function () { return chunk2CKQ5QRQ_js.StaticContent; }
15
15
  });
16
16
  Object.defineProperty(exports, "BuildContainer", {
17
17
  enumerable: true,
18
- get: function () { return chunkJ36K7WVK_js.BuildContainer; }
18
+ get: function () { return chunk5YLARMT3_js.BuildContainer; }
19
19
  });
20
20
  Object.defineProperty(exports, "builder", {
21
21
  enumerable: true,
22
- get: function () { return chunkJ36K7WVK_js.builder; }
22
+ get: function () { return chunk5YLARMT3_js.builder; }
23
23
  });
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { BuilderContent, StaticContent } from './chunk-NP2NHVJP.mjs';
2
- export { BuildContainer, builder } from './chunk-BSE6WW6Q.mjs';
1
+ export { BuilderContent, StaticContent } from './chunk-5IFB55LU.mjs';
2
+ export { BuildContainer, builder } from './chunk-XHPQBTIC.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-builder/react",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
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
  "server-only": "^0.0.1",
45
45
  "tailwind-merge": "^2.2.0",
46
46
  "zod": "^3.22.4",
47
- "@simple-builder/server": "1.0.4"
47
+ "@simple-builder/server": "1.0.5"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "react": ">=16.8.0",