@simple-builder/react 1.0.11 → 1.0.13

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.
@@ -123,30 +123,14 @@
123
123
  }
124
124
  .sb-container {
125
125
  width: 100%;
126
+ margin-right: auto;
127
+ margin-left: auto;
128
+ padding-right: 2rem;
129
+ padding-left: 2rem;
126
130
  }
127
- @media (min-width: 640px) {
128
- .sb-container {
129
- max-width: 640px;
130
- }
131
- }
132
- @media (min-width: 768px) {
133
- .sb-container {
134
- max-width: 768px;
135
- }
136
- }
137
- @media (min-width: 1024px) {
138
- .sb-container {
139
- max-width: 1024px;
140
- }
141
- }
142
- @media (min-width: 1280px) {
143
- .sb-container {
144
- max-width: 1280px;
145
- }
146
- }
147
- @media (min-width: 1536px) {
131
+ @media (min-width: 1400px) {
148
132
  .sb-container {
149
- max-width: 1536px;
133
+ max-width: 1400px;
150
134
  }
151
135
  }
152
136
  .sb-pointer-events-none {
@@ -1,9 +1,9 @@
1
1
  'use client';
2
2
  'use strict';
3
3
 
4
- require('./chunk-T4HKIDFE.js');
5
- var chunkGXNKJBJA_js = require('./chunk-GXNKJBJA.js');
6
- var chunkB4NNVFW6_js = require('./chunk-B4NNVFW6.js');
4
+ require('./chunk-QNNLXAGD.js');
5
+ var chunkNKBSQAU6_js = require('./chunk-NKBSQAU6.js');
6
+ var chunkGP4CVRJO_js = require('./chunk-GP4CVRJO.js');
7
7
  var React11 = require('react');
8
8
  var lucideReact = require('lucide-react');
9
9
  var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
@@ -53,7 +53,7 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
53
53
  var AlertDialogOverlay = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11__namespace.createElement(
54
54
  AlertDialogPrimitive__namespace.Overlay,
55
55
  {
56
- className: chunkB4NNVFW6_js.cn(
56
+ className: chunkGP4CVRJO_js.cn(
57
57
  "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",
58
58
  className
59
59
  ),
@@ -66,7 +66,7 @@ var AlertDialogContent = React11__namespace.forwardRef(({ className, ...props },
66
66
  AlertDialogPrimitive__namespace.Content,
67
67
  {
68
68
  ref,
69
- className: chunkB4NNVFW6_js.cn(
69
+ className: chunkGP4CVRJO_js.cn(
70
70
  "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",
71
71
  className
72
72
  ),
@@ -80,7 +80,7 @@ var AlertDialogFooter = ({
80
80
  }) => /* @__PURE__ */ React11__namespace.createElement(
81
81
  "div",
82
82
  {
83
- className: chunkB4NNVFW6_js.cn(
83
+ className: chunkGP4CVRJO_js.cn(
84
84
  "sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
85
85
  className
86
86
  ),
@@ -92,7 +92,7 @@ var AlertDialogTitle = React11__namespace.forwardRef(({ className, ...props }, r
92
92
  AlertDialogPrimitive__namespace.Title,
93
93
  {
94
94
  ref,
95
- className: chunkB4NNVFW6_js.cn("sb-text-lg sb-font-semibold", className),
95
+ className: chunkGP4CVRJO_js.cn("sb-text-lg sb-font-semibold", className),
96
96
  ...props
97
97
  }
98
98
  ));
@@ -101,7 +101,7 @@ var AlertDialogDescription = React11__namespace.forwardRef(({ className, ...prop
101
101
  AlertDialogPrimitive__namespace.Description,
102
102
  {
103
103
  ref,
104
- className: chunkB4NNVFW6_js.cn("sb-text-sm sb-text-muted-foreground", className),
104
+ className: chunkGP4CVRJO_js.cn("sb-text-sm sb-text-muted-foreground", className),
105
105
  ...props
106
106
  }
107
107
  ));
@@ -110,7 +110,7 @@ var AlertDialogAction = React11__namespace.forwardRef(({ className, ...props },
110
110
  AlertDialogPrimitive__namespace.Action,
111
111
  {
112
112
  ref,
113
- className: chunkB4NNVFW6_js.cn(chunkGXNKJBJA_js.buttonVariants(), className),
113
+ className: chunkGP4CVRJO_js.cn(chunkNKBSQAU6_js.buttonVariants(), className),
114
114
  ...props
115
115
  }
116
116
  ));
@@ -119,8 +119,8 @@ var AlertDialogCancel = React11__namespace.forwardRef(({ className, ...props },
119
119
  AlertDialogPrimitive__namespace.Cancel,
120
120
  {
121
121
  ref,
122
- className: chunkB4NNVFW6_js.cn(
123
- chunkGXNKJBJA_js.buttonVariants({ variant: "outline" }),
122
+ className: chunkGP4CVRJO_js.cn(
123
+ chunkNKBSQAU6_js.buttonVariants({ variant: "outline" }),
124
124
  "sb-mt-2 sm:sb-mt-0",
125
125
  className
126
126
  ),
@@ -137,7 +137,7 @@ var PopoverContent = React11__namespace.forwardRef(({ className, align = "center
137
137
  ref,
138
138
  align,
139
139
  sideOffset,
140
- className: chunkB4NNVFW6_js.cn(
140
+ className: chunkGP4CVRJO_js.cn(
141
141
  "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",
142
142
  className
143
143
  ),
@@ -155,15 +155,15 @@ function Calendar({
155
155
  reactDayPicker.DayPicker,
156
156
  {
157
157
  showOutsideDays,
158
- className: chunkB4NNVFW6_js.cn("sb-p-3 sb-font-roboto", className),
158
+ className: chunkGP4CVRJO_js.cn("sb-p-3 sb-font-roboto", className),
159
159
  classNames: {
160
160
  months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
161
161
  month: "sb-space-y-4",
162
162
  caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
163
163
  caption_label: "sb-text-sm sb-font-medium",
164
164
  nav: "sb-space-x-1 sb-flex sb-items-center",
165
- nav_button: chunkB4NNVFW6_js.cn(
166
- chunkGXNKJBJA_js.buttonVariants({ variant: "outline" }),
165
+ nav_button: chunkGP4CVRJO_js.cn(
166
+ chunkNKBSQAU6_js.buttonVariants({ variant: "outline" }),
167
167
  "sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
168
168
  ),
169
169
  nav_button_previous: "sb-absolute sb-left-1",
@@ -172,12 +172,12 @@ function Calendar({
172
172
  head_row: "sb-flex",
173
173
  head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
174
174
  row: "sb-flex sb-w-full sb-mt-2",
175
- cell: chunkB4NNVFW6_js.cn(
175
+ cell: chunkGP4CVRJO_js.cn(
176
176
  "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",
177
177
  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"
178
178
  ),
179
- day: chunkB4NNVFW6_js.cn(
180
- chunkGXNKJBJA_js.buttonVariants({ variant: "ghost" }),
179
+ day: chunkGP4CVRJO_js.cn(
180
+ chunkNKBSQAU6_js.buttonVariants({ variant: "ghost" }),
181
181
  "sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
182
182
  ),
183
183
  day_range_start: "day-range-start",
@@ -213,11 +213,11 @@ var ColorPicker = (props) => {
213
213
  "#FF0000"
214
214
  ];
215
215
  return /* @__PURE__ */ React11__namespace.createElement(Popover, null, /* @__PURE__ */ React11__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React11__namespace.createElement(
216
- chunkGXNKJBJA_js.Button,
216
+ chunkNKBSQAU6_js.Button,
217
217
  {
218
218
  variant: "outline",
219
219
  size: "sm",
220
- className: chunkB4NNVFW6_js.cn(
220
+ className: chunkGP4CVRJO_js.cn(
221
221
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
222
222
  !color && "sb-text-muted-foreground",
223
223
  className
@@ -240,7 +240,7 @@ var ColorPicker = (props) => {
240
240
  }
241
241
  ))));
242
242
  };
243
- var labelVariants = chunkB4NNVFW6_js.tv({
243
+ var labelVariants = chunkGP4CVRJO_js.tv({
244
244
  base: "sb-text-sm sb-font-medium sb-font-roboto sb-leading-none peer-disabled:sb-cursor-not-allowed peer-disabled:sb-opacity-70"
245
245
  });
246
246
  var Label = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11__namespace.createElement(
@@ -286,7 +286,7 @@ var FormItemContext = React11__namespace.createContext(
286
286
  );
287
287
  var FormItem = React11__namespace.forwardRef(({ className, ...props }, ref) => {
288
288
  const id = React11__namespace.useId();
289
- return /* @__PURE__ */ React11__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React11__namespace.createElement("div", { ref, className: chunkB4NNVFW6_js.cn("sb-space-y-2", className), ...props }));
289
+ return /* @__PURE__ */ React11__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React11__namespace.createElement("div", { ref, className: chunkGP4CVRJO_js.cn("sb-space-y-2", className), ...props }));
290
290
  });
291
291
  FormItem.displayName = "FormItem";
292
292
  var FormLabel = React11__namespace.forwardRef(({ className, ...props }, ref) => {
@@ -295,7 +295,7 @@ var FormLabel = React11__namespace.forwardRef(({ className, ...props }, ref) =>
295
295
  Label,
296
296
  {
297
297
  ref,
298
- className: chunkB4NNVFW6_js.cn(error && "sb-text-destructive", className),
298
+ className: chunkGP4CVRJO_js.cn(error && "sb-text-destructive", className),
299
299
  htmlFor: formItemId,
300
300
  ...props
301
301
  }
@@ -323,7 +323,7 @@ var FormDescription = React11__namespace.forwardRef(({ className, ...props }, re
323
323
  {
324
324
  ref,
325
325
  id: formDescriptionId,
326
- className: chunkB4NNVFW6_js.cn(
326
+ className: chunkGP4CVRJO_js.cn(
327
327
  "sb-text-sm sb-font-roboto sb-text-muted-foreground",
328
328
  className
329
329
  ),
@@ -343,7 +343,7 @@ var FormMessage = React11__namespace.forwardRef(({ className, children, ...props
343
343
  {
344
344
  ref,
345
345
  id: formMessageId,
346
- className: chunkB4NNVFW6_js.cn(
346
+ className: chunkGP4CVRJO_js.cn(
347
347
  "sb-text-sm sb-font-roboto sb-font-medium sb-text-destructive",
348
348
  className
349
349
  ),
@@ -359,7 +359,7 @@ var Input = React11__namespace.forwardRef(
359
359
  "input",
360
360
  {
361
361
  type,
362
- className: chunkB4NNVFW6_js.cn(
362
+ className: chunkGP4CVRJO_js.cn(
363
363
  "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",
364
364
  className
365
365
  ),
@@ -453,8 +453,8 @@ var MediaInput = (props) => {
453
453
  body: JSON.stringify({ src })
454
454
  });
455
455
  };
456
- return /* @__PURE__ */ React11__namespace.createElement("div", { className: chunkB4NNVFW6_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React11__namespace.createElement(MediaInputItem, { key: src, className: chunkB4NNVFW6_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React11__namespace.createElement(
457
- chunkB4NNVFW6_js.Image,
456
+ return /* @__PURE__ */ React11__namespace.createElement("div", { className: chunkGP4CVRJO_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React11__namespace.createElement(MediaInputItem, { key: src, className: chunkGP4CVRJO_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React11__namespace.createElement(
457
+ chunkGP4CVRJO_js.Image,
458
458
  {
459
459
  src,
460
460
  alt: "",
@@ -472,7 +472,7 @@ var MediaInput = (props) => {
472
472
  MediaInputItem,
473
473
  {
474
474
  key: i,
475
- className: chunkB4NNVFW6_js.cn(
475
+ className: chunkGP4CVRJO_js.cn(
476
476
  "sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
477
477
  props.itemClassName
478
478
  )
@@ -482,7 +482,7 @@ var MediaInput = (props) => {
482
482
  "label",
483
483
  {
484
484
  htmlFor: id,
485
- className: chunkB4NNVFW6_js.cn(
485
+ className: chunkGP4CVRJO_js.cn(
486
486
  "sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
487
487
  props.itemClassName
488
488
  )
@@ -505,7 +505,7 @@ var MediaInputItem = (props) => {
505
505
  return /* @__PURE__ */ React11__namespace.createElement(
506
506
  "div",
507
507
  {
508
- className: chunkB4NNVFW6_js.cn(
508
+ className: chunkGP4CVRJO_js.cn(
509
509
  "sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
510
510
  props.className
511
511
  )
@@ -525,7 +525,7 @@ var MediaInputError = class extends Error {
525
525
  var Switch = React11__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React11__namespace.createElement(
526
526
  SwitchPrimitives__namespace.Root,
527
527
  {
528
- className: chunkB4NNVFW6_js.cn(
528
+ className: chunkGP4CVRJO_js.cn(
529
529
  "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",
530
530
  className
531
531
  ),
@@ -535,7 +535,7 @@ var Switch = React11__namespace.forwardRef(({ className, ...props }, ref) => /*
535
535
  /* @__PURE__ */ React11__namespace.createElement(
536
536
  SwitchPrimitives__namespace.Thumb,
537
537
  {
538
- className: chunkB4NNVFW6_js.cn(
538
+ className: chunkGP4CVRJO_js.cn(
539
539
  "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"
540
540
  )
541
541
  }
@@ -547,7 +547,7 @@ var Textarea = React11__namespace.forwardRef(
547
547
  return /* @__PURE__ */ React11__namespace.createElement(
548
548
  "textarea",
549
549
  {
550
- className: chunkB4NNVFW6_js.cn(
550
+ className: chunkGP4CVRJO_js.cn(
551
551
  "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",
552
552
  className
553
553
  ),
@@ -562,8 +562,8 @@ Textarea.displayName = "Textarea";
562
562
  // src/components/container-item-form.tsx
563
563
  var ContainerItemForm = (props) => {
564
564
  const { item } = props;
565
- const { patchItem } = chunkGXNKJBJA_js.useBuilder();
566
- const component = chunkB4NNVFW6_js.builder.getComponent(item.component);
565
+ const { patchItem } = chunkNKBSQAU6_js.useBuilder();
566
+ const component = chunkGP4CVRJO_js.builder.getComponent(item.component);
567
567
  if (!component) {
568
568
  throw new Error(
569
569
  `[simple-builder]: Component with id ${item.component} not found in container item form component`
@@ -636,12 +636,12 @@ var RenderFormField = (props) => {
636
636
  /* @__PURE__ */ React11__namespace.createElement(lucideReact.XIcon, { className: "sb-h-4 sb-w-4" })
637
637
  ))
638
638
  ), /* @__PURE__ */ React11__namespace.createElement(
639
- chunkGXNKJBJA_js.Button,
639
+ chunkNKBSQAU6_js.Button,
640
640
  {
641
641
  type: "button",
642
642
  variant: "outline",
643
643
  size: "sm",
644
- className: chunkB4NNVFW6_js.cn(
644
+ className: chunkGP4CVRJO_js.cn(
645
645
  "sb-w-[89%] sb-border-2 sb-border-dashed sb-text-muted-foreground",
646
646
  type === "grouped" && "sb-w-full"
647
647
  ),
@@ -710,11 +710,11 @@ var RenderInput = (props) => {
710
710
  return /* @__PURE__ */ React11__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange });
711
711
  case "date":
712
712
  return /* @__PURE__ */ React11__namespace.createElement(Popover, null, /* @__PURE__ */ React11__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React11__namespace.createElement(
713
- chunkGXNKJBJA_js.Button,
713
+ chunkNKBSQAU6_js.Button,
714
714
  {
715
715
  variant: "outline",
716
716
  size: "sm",
717
- className: chunkB4NNVFW6_js.cn(
717
+ className: chunkGP4CVRJO_js.cn(
718
718
  "sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
719
719
  !field.value && "sb-text-muted-foreground"
720
720
  )
@@ -753,7 +753,7 @@ var RenderInput = (props) => {
753
753
  }
754
754
  };
755
755
  var Tabs = TabsPrimitive__namespace.Root;
756
- var tabsListVariants = chunkB4NNVFW6_js.tv({
756
+ var tabsListVariants = chunkGP4CVRJO_js.tv({
757
757
  variants: {
758
758
  variant: {
759
759
  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",
@@ -773,7 +773,7 @@ var TabsList = React11__namespace.forwardRef(({ variant, className, ...props },
773
773
  }
774
774
  ));
775
775
  TabsList.displayName = TabsPrimitive__namespace.List.displayName;
776
- var tabsTriggerVariants = chunkB4NNVFW6_js.tv({
776
+ var tabsTriggerVariants = chunkGP4CVRJO_js.tv({
777
777
  variants: {
778
778
  variant: {
779
779
  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",
@@ -797,7 +797,7 @@ var TabsContent = React11__namespace.forwardRef(({ className, ...props }, ref) =
797
797
  TabsPrimitive__namespace.Content,
798
798
  {
799
799
  ref,
800
- className: chunkB4NNVFW6_js.cn(
800
+ className: chunkGP4CVRJO_js.cn(
801
801
  "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",
802
802
  className
803
803
  ),
@@ -836,11 +836,11 @@ var BackgroundPicker = (props) => {
836
836
  return "solid";
837
837
  }, [background]);
838
838
  return /* @__PURE__ */ React11__namespace.createElement(Popover, null, /* @__PURE__ */ React11__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React11__namespace.createElement(
839
- chunkGXNKJBJA_js.Button,
839
+ chunkNKBSQAU6_js.Button,
840
840
  {
841
841
  variant: "outline",
842
842
  size: "sm",
843
- className: chunkB4NNVFW6_js.cn(
843
+ className: chunkGP4CVRJO_js.cn(
844
844
  "sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
845
845
  !background && "sb-text-muted-foreground",
846
846
  className
@@ -909,7 +909,7 @@ var BackgroundPicker = (props) => {
909
909
  }
910
910
  )))))));
911
911
  };
912
- var toggleVariants = chunkB4NNVFW6_js.tv({
912
+ var toggleVariants = chunkGP4CVRJO_js.tv({
913
913
  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",
914
914
  variants: {
915
915
  variant: {
@@ -1064,7 +1064,7 @@ var designSchema = zod.z.object({
1064
1064
  });
1065
1065
  var ItemDesignForm = (props) => {
1066
1066
  const { item } = props;
1067
- const component = chunkB4NNVFW6_js.builder.getComponent(item.component);
1067
+ const component = chunkGP4CVRJO_js.builder.getComponent(item.component);
1068
1068
  if (!component) {
1069
1069
  throw new Error(
1070
1070
  `[simple-builder]: Component "${item.component}" not found`
@@ -1105,7 +1105,7 @@ var ItemDesignForm = (props) => {
1105
1105
  mobile: getDefaultDeviceValues("mobile")
1106
1106
  }
1107
1107
  });
1108
- const { patchItem } = chunkGXNKJBJA_js.useBuilder();
1108
+ const { patchItem } = chunkNKBSQAU6_js.useBuilder();
1109
1109
  const onSubmit = (values) => {
1110
1110
  const { container, desktop, mobile } = values;
1111
1111
  const dirtyFields = form.formState.dirtyFields;
@@ -1230,7 +1230,7 @@ var ScrollArea = React11__namespace.forwardRef(({ className, children, ...props
1230
1230
  ScrollAreaPrimitive__namespace.Root,
1231
1231
  {
1232
1232
  ref,
1233
- className: chunkB4NNVFW6_js.cn("sb-relative sb-overflow-hidden", className),
1233
+ className: chunkGP4CVRJO_js.cn("sb-relative sb-overflow-hidden", className),
1234
1234
  ...props
1235
1235
  },
1236
1236
  /* @__PURE__ */ React11__namespace.createElement(ScrollAreaPrimitive__namespace.Viewport, { className: "sb-h-full sb-max-h-[80vh] sb-w-full sb-rounded-[inherit]" }, children),
@@ -1243,7 +1243,7 @@ var ScrollBar = React11__namespace.forwardRef(({ className, orientation = "verti
1243
1243
  {
1244
1244
  ref,
1245
1245
  orientation,
1246
- className: chunkB4NNVFW6_js.cn(
1246
+ className: chunkGP4CVRJO_js.cn(
1247
1247
  "sb-flex sb-touch-none sb-select-none sb-transition-colors",
1248
1248
  orientation === "vertical" && "sb-h-full sb-w-2.5 sb-border-l sb-border-l-transparent sb-p-[1px]",
1249
1249
  orientation === "horizontal" && "sb-h-2.5 sb-flex-col sb-border-t sb-border-t-transparent sb-p-[1px]",
@@ -1258,9 +1258,9 @@ ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displ
1258
1258
  // src/components/container-item-toolbar.tsx
1259
1259
  var ContainerItemToolbar = (props) => {
1260
1260
  const { contentId, canBringUp = false, canBringDown = false } = props;
1261
- const { bringUp, bringDown } = chunkGXNKJBJA_js.useBuilder();
1261
+ const { bringUp, bringDown } = chunkNKBSQAU6_js.useBuilder();
1262
1262
  return /* @__PURE__ */ React11__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__ */ React11__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__ */ React11__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React11__namespace.createElement(
1263
- chunkGXNKJBJA_js.Button,
1263
+ chunkNKBSQAU6_js.Button,
1264
1264
  {
1265
1265
  variant: "ghost",
1266
1266
  className: "sb-w-8 sb-h-8 sb-p-0",
@@ -1269,7 +1269,7 @@ var ContainerItemToolbar = (props) => {
1269
1269
  },
1270
1270
  /* @__PURE__ */ React11__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
1271
1271
  ), /* @__PURE__ */ React11__namespace.createElement(
1272
- chunkGXNKJBJA_js.Button,
1272
+ chunkNKBSQAU6_js.Button,
1273
1273
  {
1274
1274
  variant: "ghost",
1275
1275
  className: "sb-w-8 sb-h-8 sb-p-0",
@@ -1280,7 +1280,7 @@ var ContainerItemToolbar = (props) => {
1280
1280
  ), /* @__PURE__ */ React11__namespace.createElement(DeleteButton, { contentId })));
1281
1281
  };
1282
1282
  var EditButton = ({ id }) => {
1283
- return /* @__PURE__ */ React11__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React11__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React11__namespace.createElement(chunkGXNKJBJA_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React11__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React11__namespace.createElement(
1283
+ return /* @__PURE__ */ React11__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React11__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React11__namespace.createElement(chunkNKBSQAU6_js.Button, { variant: "ghost", className: "sb-w-8 sb-h-8 sb-p-0" }, /* @__PURE__ */ React11__namespace.createElement(lucideReact.Edit2Icon, { className: "sb-h-5 sb-w-5" }))), /* @__PURE__ */ React11__namespace.createElement(
1284
1284
  PopoverContent,
1285
1285
  {
1286
1286
  side: "left",
@@ -1295,7 +1295,7 @@ var EditButton = ({ id }) => {
1295
1295
  };
1296
1296
  var EditPopoverInner = (props) => {
1297
1297
  const { id } = props;
1298
- const { getItem } = chunkGXNKJBJA_js.useBuilder();
1298
+ const { getItem } = chunkNKBSQAU6_js.useBuilder();
1299
1299
  const item = getItem(id);
1300
1300
  if (!item) {
1301
1301
  throw new Error(
@@ -1305,9 +1305,9 @@ var EditPopoverInner = (props) => {
1305
1305
  return /* @__PURE__ */ React11__namespace.createElement(Tabs, null, /* @__PURE__ */ React11__namespace.createElement(TabsList, { variant: "text", defaultValue: "content" }, /* @__PURE__ */ React11__namespace.createElement(TabsTrigger, { variant: "text", value: "content" }, "Inhoud"), /* @__PURE__ */ React11__namespace.createElement(TabsTrigger, { variant: "text", value: "design" }, "Design")), /* @__PURE__ */ React11__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React11__namespace.createElement(ScrollArea, null, /* @__PURE__ */ React11__namespace.createElement(ContainerItemForm, { item }))), /* @__PURE__ */ React11__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React11__namespace.createElement(ItemDesignForm, { item })));
1306
1306
  };
1307
1307
  var DeleteButton = ({ contentId }) => {
1308
- const { deleteContent } = chunkGXNKJBJA_js.useBuilder();
1308
+ const { deleteContent } = chunkNKBSQAU6_js.useBuilder();
1309
1309
  return /* @__PURE__ */ React11__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React11__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React11__namespace.createElement(
1310
- chunkGXNKJBJA_js.Button,
1310
+ chunkNKBSQAU6_js.Button,
1311
1311
  {
1312
1312
  variant: "ghost",
1313
1313
  className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
@@ -1316,7 +1316,7 @@ var DeleteButton = ({ contentId }) => {
1316
1316
  )), /* @__PURE__ */ React11__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React11__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React11__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React11__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React11__namespace.createElement(
1317
1317
  AlertDialogAction,
1318
1318
  {
1319
- className: chunkGXNKJBJA_js.buttonVariants({ variant: "destructive" }),
1319
+ className: chunkNKBSQAU6_js.buttonVariants({ variant: "destructive" }),
1320
1320
  onClick: () => deleteContent(contentId)
1321
1321
  },
1322
1322
  "Verwijderen"
@@ -1332,7 +1332,7 @@ var BuildContainerInner = (props) => {
1332
1332
  "[simple-builder]: Multiple content blocks detected when using property multiple false."
1333
1333
  );
1334
1334
  }
1335
- return /* @__PURE__ */ React11__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React11__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React11__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React11__namespace.createElement(React11__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React11__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React11__namespace.createElement(chunkB4NNVFW6_js.DesignWrapper, { styles: item.styles }, chunkB4NNVFW6_js.builder.bindComponent(item, true)), /* @__PURE__ */ React11__namespace.createElement(
1335
+ return /* @__PURE__ */ React11__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React11__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React11__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React11__namespace.createElement(React11__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React11__namespace.createElement("div", { className: "sb-relative sb-container-item" }, /* @__PURE__ */ React11__namespace.createElement(chunkGP4CVRJO_js.DesignWrapper, { styles: item.styles }, chunkGP4CVRJO_js.builder.bindComponent(item, true)), /* @__PURE__ */ React11__namespace.createElement(
1336
1336
  ContainerItemToolbar,
1337
1337
  {
1338
1338
  contentId: item.id,
@@ -1350,12 +1350,12 @@ var BuildContainerInner = (props) => {
1350
1350
  };
1351
1351
  var build_container_client_default = BuildContainerInner;
1352
1352
  var AddContentButton = (props) => {
1353
- const components = chunkB4NNVFW6_js.builder.getComponents();
1354
- const { addContent } = chunkGXNKJBJA_js.useBuilder();
1353
+ const components = chunkGP4CVRJO_js.builder.getComponents();
1354
+ const { addContent } = chunkNKBSQAU6_js.useBuilder();
1355
1355
  return /* @__PURE__ */ React11__namespace.createElement(Popover, null, /* @__PURE__ */ React11__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React11__namespace.createElement(PopoverContent, { className: "sb-p-1" }, /* @__PURE__ */ React11__namespace.createElement("div", { className: "sb-grid sb-grid-cols-2 sb-gap-2" }, components.map((component) => {
1356
1356
  const Icon = component.icon ?? lucideReact.ImageIcon;
1357
1357
  return /* @__PURE__ */ React11__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React11__namespace.createElement(
1358
- chunkGXNKJBJA_js.Button,
1358
+ chunkNKBSQAU6_js.Button,
1359
1359
  {
1360
1360
  variant: "ghost",
1361
1361
  className: "sb-justify-start",
@@ -1374,11 +1374,11 @@ var AddContentButton = (props) => {
1374
1374
  }))));
1375
1375
  };
1376
1376
  var AddContentPlaceholder = (props) => {
1377
- return /* @__PURE__ */ React11__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React11__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React11__namespace.createElement(chunkGXNKJBJA_js.Button, { size: "sm" }, /* @__PURE__ */ React11__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1377
+ return /* @__PURE__ */ React11__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React11__namespace.createElement("div", { className: "sb-flex sb-justify-center sb-bg-primary/50 p-4" }, /* @__PURE__ */ React11__namespace.createElement(chunkNKBSQAU6_js.Button, { size: "sm" }, /* @__PURE__ */ React11__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
1378
1378
  };
1379
1379
  var AddContentDividerButton = (props) => {
1380
1380
  return /* @__PURE__ */ React11__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React11__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__ */ React11__namespace.createElement(
1381
- chunkGXNKJBJA_js.Button,
1381
+ chunkNKBSQAU6_js.Button,
1382
1382
  {
1383
1383
  size: "sm",
1384
1384
  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-QCZCJQPC.mjs';
3
- import { buttonVariants, Button, useBuilder } from './chunk-ADR6VCSK.mjs';
4
- import { cn, tv, DesignWrapper, builder, Image } from './chunk-44UFVNJG.mjs';
2
+ import './chunk-BP6PJZIZ.mjs';
3
+ import { buttonVariants, Button, useBuilder } from './chunk-2PY5SZFT.mjs';
4
+ import { cn, tv, DesignWrapper, builder, Image } from './chunk-LEULOM72.mjs';
5
5
  import * as React11 from 'react';
6
6
  import { PlusIcon, ArrowUp, ArrowDown, Edit2Icon, Trash2Icon, ImageIcon, XIcon, PlusCircleIcon, CalendarIcon, MonitorIcon, SmartphoneIcon, ChevronLeftIcon, ChevronRightIcon, PaintbrushIcon, Loader2Icon, AlignHorizontalSpaceAroundIcon, AlignHorizontalJustifyStartIcon, ScanIcon } from 'lucide-react';
7
7
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkGXNKJBJA_js = require('./chunk-GXNKJBJA.js');
4
- var chunkB4NNVFW6_js = require('./chunk-B4NNVFW6.js');
3
+ var chunkNKBSQAU6_js = require('./chunk-NKBSQAU6.js');
4
+ var chunkGP4CVRJO_js = require('./chunk-GP4CVRJO.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 } = chunkGXNKJBJA_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(chunkGXNKJBJA_js.Button, { variant: "ghost", size: "sm", onClick: save }, "Opslaan")));
28
+ const { save } = chunkNKBSQAU6_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(chunkNKBSQAU6_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(chunkGXNKJBJA_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
34
+ return /* @__PURE__ */ React2__namespace.createElement(chunkNKBSQAU6_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
35
35
  };
36
36
  var BuilderContentInner = () => {
37
- const { content } = chunkGXNKJBJA_js.useBuilder();
38
- return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunkB4NNVFW6_js.BuildContainer, { name: "root", edit: true, multiple: true, content }));
37
+ const { content } = chunkNKBSQAU6_js.useBuilder();
38
+ return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunkGP4CVRJO_js.BuildContainer, { name: "root", edit: true, multiple: true, content }));
39
39
  };
40
40
  var builder_content_default = BuilderContent;
41
41
 
@@ -1,5 +1,5 @@
1
- import { BuilderProvider, useBuilder, Button } from './chunk-ADR6VCSK.mjs';
2
- import { BuildContainer } from './chunk-44UFVNJG.mjs';
1
+ import { BuilderProvider, useBuilder, Button } from './chunk-2PY5SZFT.mjs';
2
+ import { BuildContainer } from './chunk-LEULOM72.mjs';
3
3
  import * as React2 from 'react';
4
4
 
5
5
  var BuilderHeader = () => {
@@ -123,30 +123,14 @@
123
123
  }
124
124
  .sb-container {
125
125
  width: 100%;
126
+ margin-right: auto;
127
+ margin-left: auto;
128
+ padding-right: 2rem;
129
+ padding-left: 2rem;
126
130
  }
127
- @media (min-width: 640px) {
128
- .sb-container {
129
- max-width: 640px;
130
- }
131
- }
132
- @media (min-width: 768px) {
133
- .sb-container {
134
- max-width: 768px;
135
- }
136
- }
137
- @media (min-width: 1024px) {
138
- .sb-container {
139
- max-width: 1024px;
140
- }
141
- }
142
- @media (min-width: 1280px) {
143
- .sb-container {
144
- max-width: 1280px;
145
- }
146
- }
147
- @media (min-width: 1536px) {
131
+ @media (min-width: 1400px) {
148
132
  .sb-container {
149
- max-width: 1536px;
133
+ max-width: 1400px;
150
134
  }
151
135
  }
152
136
  .sb-pointer-events-none {
@@ -1,4 +1,4 @@
1
- import { tv, builder, insertAt } from './chunk-44UFVNJG.mjs';
1
+ import { tv, builder, insertAt } from './chunk-LEULOM72.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-44UFVNJG.mjs';
1
+ import { BuildContainer } from './chunk-LEULOM72.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-S6T7RZEC.mjs'));
18
+ var BuilderContent = lazy(() => import('./builder-content-O76OYDYN.mjs'));
19
19
 
20
20
  export { BuilderContent, StaticContent };
@@ -103,7 +103,7 @@ var DesignWrapper = (props) => {
103
103
  fill: true,
104
104
  className: "sb-object-cover sb-absolute sb-inset-0 sb-pointer-events-none sb--z-[1]"
105
105
  }
106
- ), container ? /* @__PURE__ */ React3__namespace.createElement("div", { className: "sb-container sb-mx-auto sb-px-4" }, children) : children, /* @__PURE__ */ React3__namespace.createElement("style", null, `
106
+ ), container ? /* @__PURE__ */ React3__namespace.createElement("div", { className: "sb-container sb-mx-auto" }, children) : children, /* @__PURE__ */ React3__namespace.createElement("style", null, `
107
107
  #${id} {
108
108
  ${Object.entries(props.styles?.desktop ?? {}).map(([key, value]) => `${key}: ${value};`).join(" ")}
109
109
  }
@@ -116,7 +116,7 @@ var DesignWrapper = (props) => {
116
116
  `.replace(/\s\s+/g, " ")));
117
117
  };
118
118
  var BuildContainerInner = React3__namespace.lazy(
119
- () => import('./build-container-client-QWYPV2WG.js')
119
+ () => import('./build-container-client-SEAT672S.js')
120
120
  );
121
121
  var BuildContainer = (props) => {
122
122
  const { content, edit, name } = props;
@@ -79,7 +79,7 @@ var DesignWrapper = (props) => {
79
79
  fill: true,
80
80
  className: "sb-object-cover sb-absolute sb-inset-0 sb-pointer-events-none sb--z-[1]"
81
81
  }
82
- ), container ? /* @__PURE__ */ React3.createElement("div", { className: "sb-container sb-mx-auto sb-px-4" }, children) : children, /* @__PURE__ */ React3.createElement("style", null, `
82
+ ), container ? /* @__PURE__ */ React3.createElement("div", { className: "sb-container sb-mx-auto" }, children) : children, /* @__PURE__ */ React3.createElement("style", null, `
83
83
  #${id} {
84
84
  ${Object.entries(props.styles?.desktop ?? {}).map(([key, value]) => `${key}: ${value};`).join(" ")}
85
85
  }
@@ -92,7 +92,7 @@ var DesignWrapper = (props) => {
92
92
  `.replace(/\s\s+/g, " ")));
93
93
  };
94
94
  var BuildContainerInner = React3.lazy(
95
- () => import('./build-container-client-N3S3PJV6.mjs')
95
+ () => import('./build-container-client-WS5CHAV7.mjs')
96
96
  );
97
97
  var BuildContainer = (props) => {
98
98
  const { content, edit, name } = props;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkB4NNVFW6_js = require('./chunk-B4NNVFW6.js');
3
+ var chunkGP4CVRJO_js = require('./chunk-GP4CVRJO.js');
4
4
  var React = require('react');
5
5
  var reactSlot = require('@radix-ui/react-slot');
6
6
 
@@ -56,7 +56,7 @@ var BuilderProvider = (props) => {
56
56
  );
57
57
  const addContent = React__namespace.useCallback(
58
58
  (name, container, parent, index = 0) => {
59
- const component = chunkB4NNVFW6_js.builder.getComponent(name);
59
+ const component = chunkGP4CVRJO_js.builder.getComponent(name);
60
60
  if (!component) {
61
61
  throw new Error(`[simple-builder]: Component "${name}" not found`);
62
62
  }
@@ -78,7 +78,7 @@ var BuilderProvider = (props) => {
78
78
  }
79
79
  };
80
80
  if (!parent) {
81
- setContent((content2) => chunkB4NNVFW6_js.insertAt(content2, index, entry));
81
+ setContent((content2) => chunkGP4CVRJO_js.insertAt(content2, index, entry));
82
82
  return;
83
83
  }
84
84
  setContent(
@@ -88,7 +88,7 @@ var BuilderProvider = (props) => {
88
88
  ...item,
89
89
  content: {
90
90
  ...item.content,
91
- [container]: chunkB4NNVFW6_js.insertAt(item.content?.[container], index, entry)
91
+ [container]: chunkGP4CVRJO_js.insertAt(item.content?.[container], index, entry)
92
92
  }
93
93
  };
94
94
  }
@@ -216,7 +216,7 @@ var findRecursive = (items, predicate, key = "content") => {
216
216
  }
217
217
  }
218
218
  };
219
- var buttonVariants = chunkB4NNVFW6_js.tv({
219
+ var buttonVariants = chunkGP4CVRJO_js.tv({
220
220
  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",
221
221
  variants: {
222
222
  variant: {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkB4NNVFW6_js = require('./chunk-B4NNVFW6.js');
3
+ var chunkGP4CVRJO_js = require('./chunk-GP4CVRJO.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
- chunkB4NNVFW6_js.BuildContainer,
28
+ chunkGP4CVRJO_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-FHSGBL2M.js'));
39
+ var BuilderContent = React.lazy(() => import('./builder-content-FXMV6TNF.js'));
40
40
 
41
41
  exports.BuilderContent = BuilderContent;
42
42
  exports.StaticContent = StaticContent;
package/dist/index.css CHANGED
@@ -123,30 +123,14 @@
123
123
  }
124
124
  .sb-container {
125
125
  width: 100%;
126
+ margin-right: auto;
127
+ margin-left: auto;
128
+ padding-right: 2rem;
129
+ padding-left: 2rem;
126
130
  }
127
- @media (min-width: 640px) {
128
- .sb-container {
129
- max-width: 640px;
130
- }
131
- }
132
- @media (min-width: 768px) {
133
- .sb-container {
134
- max-width: 768px;
135
- }
136
- }
137
- @media (min-width: 1024px) {
138
- .sb-container {
139
- max-width: 1024px;
140
- }
141
- }
142
- @media (min-width: 1280px) {
143
- .sb-container {
144
- max-width: 1280px;
145
- }
146
- }
147
- @media (min-width: 1536px) {
131
+ @media (min-width: 1400px) {
148
132
  .sb-container {
149
- max-width: 1536px;
133
+ max-width: 1400px;
150
134
  }
151
135
  }
152
136
  .sb-pointer-events-none {
package/dist/index.js CHANGED
@@ -1,23 +1,23 @@
1
1
  'use strict';
2
2
 
3
- var chunkT4HKIDFE_js = require('./chunk-T4HKIDFE.js');
4
- var chunkB4NNVFW6_js = require('./chunk-B4NNVFW6.js');
3
+ var chunkQNNLXAGD_js = require('./chunk-QNNLXAGD.js');
4
+ var chunkGP4CVRJO_js = require('./chunk-GP4CVRJO.js');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "BuilderContent", {
9
9
  enumerable: true,
10
- get: function () { return chunkT4HKIDFE_js.BuilderContent; }
10
+ get: function () { return chunkQNNLXAGD_js.BuilderContent; }
11
11
  });
12
12
  Object.defineProperty(exports, "StaticContent", {
13
13
  enumerable: true,
14
- get: function () { return chunkT4HKIDFE_js.StaticContent; }
14
+ get: function () { return chunkQNNLXAGD_js.StaticContent; }
15
15
  });
16
16
  Object.defineProperty(exports, "BuildContainer", {
17
17
  enumerable: true,
18
- get: function () { return chunkB4NNVFW6_js.BuildContainer; }
18
+ get: function () { return chunkGP4CVRJO_js.BuildContainer; }
19
19
  });
20
20
  Object.defineProperty(exports, "builder", {
21
21
  enumerable: true,
22
- get: function () { return chunkB4NNVFW6_js.builder; }
22
+ get: function () { return chunkGP4CVRJO_js.builder; }
23
23
  });
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { BuilderContent, StaticContent } from './chunk-QCZCJQPC.mjs';
2
- export { BuildContainer, builder } from './chunk-44UFVNJG.mjs';
1
+ export { BuilderContent, StaticContent } from './chunk-BP6PJZIZ.mjs';
2
+ export { BuildContainer, builder } from './chunk-LEULOM72.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-builder/react",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
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",
@@ -45,7 +45,7 @@
45
45
  "tailwind-merge": "^2.2.0",
46
46
  "tailwind-variants": "^0.1.20",
47
47
  "zod": "^3.22.4",
48
- "@simple-builder/server": "1.0.11"
48
+ "@simple-builder/server": "1.0.13"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.8.0",