@simple-builder/react 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-container-client-LGR5VYTR.mjs → build-container-client-LY4RX272.mjs} +3 -3
- package/dist/{build-container-client-RUKPEETF.js → build-container-client-RGQQTCKG.js} +72 -72
- package/dist/{builder-content-OXOVV5IS.mjs → builder-content-4TTGQUUJ.mjs} +2 -2
- package/dist/{builder-content-INPXZNAY.js → builder-content-PZYB2ILV.js} +7 -7
- package/dist/{chunk-ZTU2GIHE.mjs → chunk-2Y3J2R5O.mjs} +1 -1
- package/dist/{chunk-E7UKQIFC.js → chunk-IY3JM23H.js} +3 -3
- package/dist/{chunk-TUIRUCUM.mjs → chunk-J6SSP2IE.mjs} +2 -2
- package/dist/{chunk-WFZDXUCV.js → chunk-LLKCXOGO.js} +2 -2
- package/dist/{chunk-KVHH3UHQ.js → chunk-N6DUKS7Z.js} +5 -5
- package/dist/{chunk-6KXYNF2D.mjs → chunk-SLA7GUFF.mjs} +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { buttonVariants, Button, useBuilder } from './chunk-
|
|
4
|
-
import { cn, tv, DesignWrapper, builder, Image } from './chunk-
|
|
2
|
+
import './chunk-J6SSP2IE.mjs';
|
|
3
|
+
import { buttonVariants, Button, useBuilder } from './chunk-2Y3J2R5O.mjs';
|
|
4
|
+
import { cn, tv, DesignWrapper, builder, Image } from './chunk-SLA7GUFF.mjs';
|
|
5
5
|
import * as React12 from 'react';
|
|
6
6
|
import { ChevronDown, ChevronUp, Check, 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,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
require('./chunk-IY3JM23H.js');
|
|
5
|
+
var chunkN6DUKS7Z_js = require('./chunk-N6DUKS7Z.js');
|
|
6
|
+
var chunkLLKCXOGO_js = require('./chunk-LLKCXOGO.js');
|
|
7
7
|
var React12 = require('react');
|
|
8
8
|
var lucideReact = require('lucide-react');
|
|
9
9
|
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
@@ -55,7 +55,7 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
|
55
55
|
var AlertDialogOverlay = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
|
|
56
56
|
AlertDialogPrimitive__namespace.Overlay,
|
|
57
57
|
{
|
|
58
|
-
className:
|
|
58
|
+
className: chunkLLKCXOGO_js.cn(
|
|
59
59
|
"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",
|
|
60
60
|
className
|
|
61
61
|
),
|
|
@@ -68,7 +68,7 @@ var AlertDialogContent = React12__namespace.forwardRef(({ className, ...props },
|
|
|
68
68
|
AlertDialogPrimitive__namespace.Content,
|
|
69
69
|
{
|
|
70
70
|
ref,
|
|
71
|
-
className:
|
|
71
|
+
className: chunkLLKCXOGO_js.cn(
|
|
72
72
|
"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",
|
|
73
73
|
className
|
|
74
74
|
),
|
|
@@ -82,7 +82,7 @@ var AlertDialogFooter = ({
|
|
|
82
82
|
}) => /* @__PURE__ */ React12__namespace.createElement(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
|
-
className:
|
|
85
|
+
className: chunkLLKCXOGO_js.cn(
|
|
86
86
|
"sb-flex sb-flex-col-reverse sm:sb-flex-row sm:sb-justify-end sm:sb-space-x-2",
|
|
87
87
|
className
|
|
88
88
|
),
|
|
@@ -94,7 +94,7 @@ var AlertDialogTitle = React12__namespace.forwardRef(({ className, ...props }, r
|
|
|
94
94
|
AlertDialogPrimitive__namespace.Title,
|
|
95
95
|
{
|
|
96
96
|
ref,
|
|
97
|
-
className:
|
|
97
|
+
className: chunkLLKCXOGO_js.cn("sb-text-lg sb-font-semibold", className),
|
|
98
98
|
...props
|
|
99
99
|
}
|
|
100
100
|
));
|
|
@@ -103,7 +103,7 @@ var AlertDialogDescription = React12__namespace.forwardRef(({ className, ...prop
|
|
|
103
103
|
AlertDialogPrimitive__namespace.Description,
|
|
104
104
|
{
|
|
105
105
|
ref,
|
|
106
|
-
className:
|
|
106
|
+
className: chunkLLKCXOGO_js.cn("sb-text-sm sb-text-muted-foreground", className),
|
|
107
107
|
...props
|
|
108
108
|
}
|
|
109
109
|
));
|
|
@@ -112,7 +112,7 @@ var AlertDialogAction = React12__namespace.forwardRef(({ className, ...props },
|
|
|
112
112
|
AlertDialogPrimitive__namespace.Action,
|
|
113
113
|
{
|
|
114
114
|
ref,
|
|
115
|
-
className:
|
|
115
|
+
className: chunkLLKCXOGO_js.cn(chunkN6DUKS7Z_js.buttonVariants(), className),
|
|
116
116
|
...props
|
|
117
117
|
}
|
|
118
118
|
));
|
|
@@ -121,8 +121,8 @@ var AlertDialogCancel = React12__namespace.forwardRef(({ className, ...props },
|
|
|
121
121
|
AlertDialogPrimitive__namespace.Cancel,
|
|
122
122
|
{
|
|
123
123
|
ref,
|
|
124
|
-
className:
|
|
125
|
-
|
|
124
|
+
className: chunkLLKCXOGO_js.cn(
|
|
125
|
+
chunkN6DUKS7Z_js.buttonVariants({ variant: "outline" }),
|
|
126
126
|
"sb-mt-2 sm:sb-mt-0",
|
|
127
127
|
className
|
|
128
128
|
),
|
|
@@ -139,7 +139,7 @@ var PopoverContent = React12__namespace.forwardRef(({ className, align = "center
|
|
|
139
139
|
ref,
|
|
140
140
|
align,
|
|
141
141
|
sideOffset,
|
|
142
|
-
className:
|
|
142
|
+
className: chunkLLKCXOGO_js.cn(
|
|
143
143
|
"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",
|
|
144
144
|
className
|
|
145
145
|
),
|
|
@@ -157,15 +157,15 @@ function Calendar({
|
|
|
157
157
|
reactDayPicker.DayPicker,
|
|
158
158
|
{
|
|
159
159
|
showOutsideDays,
|
|
160
|
-
className:
|
|
160
|
+
className: chunkLLKCXOGO_js.cn("sb-p-3 sb-font-roboto", className),
|
|
161
161
|
classNames: {
|
|
162
162
|
months: "sb-flex sb-flex-col sm:sb-flex-row sb-space-y-4 sm:sb-space-x-4 sm:sb-space-y-0",
|
|
163
163
|
month: "sb-space-y-4",
|
|
164
164
|
caption: "sb-flex sb-justify-center sb-pt-1 sb-relative sb-items-center",
|
|
165
165
|
caption_label: "sb-text-sm sb-font-medium",
|
|
166
166
|
nav: "sb-space-x-1 sb-flex sb-items-center",
|
|
167
|
-
nav_button:
|
|
168
|
-
|
|
167
|
+
nav_button: chunkLLKCXOGO_js.cn(
|
|
168
|
+
chunkN6DUKS7Z_js.buttonVariants({ variant: "outline" }),
|
|
169
169
|
"sb-h-7 sb-w-7 sb-bg-transparent sb-p-0 sb-opacity-50 hover:sb-opacity-100"
|
|
170
170
|
),
|
|
171
171
|
nav_button_previous: "sb-absolute sb-left-1",
|
|
@@ -174,12 +174,12 @@ function Calendar({
|
|
|
174
174
|
head_row: "sb-flex",
|
|
175
175
|
head_cell: "sb-text-muted-foreground sb-rounded-md sb-w-8 sb-font-normal sb-text-[0.8rem]",
|
|
176
176
|
row: "sb-flex sb-w-full sb-mt-2",
|
|
177
|
-
cell:
|
|
177
|
+
cell: chunkLLKCXOGO_js.cn(
|
|
178
178
|
"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",
|
|
179
179
|
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"
|
|
180
180
|
),
|
|
181
|
-
day:
|
|
182
|
-
|
|
181
|
+
day: chunkLLKCXOGO_js.cn(
|
|
182
|
+
chunkN6DUKS7Z_js.buttonVariants({ variant: "ghost" }),
|
|
183
183
|
"sb-h-8 sb-w-8 sb-p-0 sb-font-normal aria-selected:sb-opacity-100"
|
|
184
184
|
),
|
|
185
185
|
day_range_start: "day-range-start",
|
|
@@ -215,11 +215,11 @@ var ColorPicker = (props) => {
|
|
|
215
215
|
"#FF0000"
|
|
216
216
|
];
|
|
217
217
|
return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
|
|
218
|
-
|
|
218
|
+
chunkN6DUKS7Z_js.Button,
|
|
219
219
|
{
|
|
220
220
|
variant: "outline",
|
|
221
221
|
size: "sm",
|
|
222
|
-
className:
|
|
222
|
+
className: chunkLLKCXOGO_js.cn(
|
|
223
223
|
"sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
|
|
224
224
|
!color && "sb-text-muted-foreground",
|
|
225
225
|
className
|
|
@@ -242,7 +242,7 @@ var ColorPicker = (props) => {
|
|
|
242
242
|
}
|
|
243
243
|
))));
|
|
244
244
|
};
|
|
245
|
-
var labelVariants =
|
|
245
|
+
var labelVariants = chunkLLKCXOGO_js.tv({
|
|
246
246
|
base: "sb-text-sm sb-font-medium sb-font-roboto sb-leading-none peer-disabled:sb-cursor-not-allowed peer-disabled:sb-opacity-70"
|
|
247
247
|
});
|
|
248
248
|
var Label = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
|
|
@@ -288,7 +288,7 @@ var FormItemContext = React12__namespace.createContext(
|
|
|
288
288
|
);
|
|
289
289
|
var FormItem = React12__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
290
290
|
const id = React12__namespace.useId();
|
|
291
|
-
return /* @__PURE__ */ React12__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React12__namespace.createElement("div", { ref, className:
|
|
291
|
+
return /* @__PURE__ */ React12__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React12__namespace.createElement("div", { ref, className: chunkLLKCXOGO_js.cn("sb-space-y-2", className), ...props }));
|
|
292
292
|
});
|
|
293
293
|
FormItem.displayName = "FormItem";
|
|
294
294
|
var FormLabel = React12__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -297,7 +297,7 @@ var FormLabel = React12__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
297
297
|
Label,
|
|
298
298
|
{
|
|
299
299
|
ref,
|
|
300
|
-
className:
|
|
300
|
+
className: chunkLLKCXOGO_js.cn(error && "sb-text-destructive", className),
|
|
301
301
|
htmlFor: formItemId,
|
|
302
302
|
...props
|
|
303
303
|
}
|
|
@@ -325,7 +325,7 @@ var FormDescription = React12__namespace.forwardRef(({ className, ...props }, re
|
|
|
325
325
|
{
|
|
326
326
|
ref,
|
|
327
327
|
id: formDescriptionId,
|
|
328
|
-
className:
|
|
328
|
+
className: chunkLLKCXOGO_js.cn(
|
|
329
329
|
"sb-text-sm sb-font-roboto sb-text-muted-foreground",
|
|
330
330
|
className
|
|
331
331
|
),
|
|
@@ -345,7 +345,7 @@ var FormMessage = React12__namespace.forwardRef(({ className, children, ...props
|
|
|
345
345
|
{
|
|
346
346
|
ref,
|
|
347
347
|
id: formMessageId,
|
|
348
|
-
className:
|
|
348
|
+
className: chunkLLKCXOGO_js.cn(
|
|
349
349
|
"sb-text-sm sb-font-roboto sb-font-medium sb-text-destructive",
|
|
350
350
|
className
|
|
351
351
|
),
|
|
@@ -361,7 +361,7 @@ var Input = React12__namespace.forwardRef(
|
|
|
361
361
|
"input",
|
|
362
362
|
{
|
|
363
363
|
type,
|
|
364
|
-
className:
|
|
364
|
+
className: chunkLLKCXOGO_js.cn(
|
|
365
365
|
"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",
|
|
366
366
|
className
|
|
367
367
|
),
|
|
@@ -455,8 +455,8 @@ var MediaInput = (props) => {
|
|
|
455
455
|
body: JSON.stringify({ src })
|
|
456
456
|
});
|
|
457
457
|
};
|
|
458
|
-
return /* @__PURE__ */ React12__namespace.createElement("div", { className:
|
|
459
|
-
|
|
458
|
+
return /* @__PURE__ */ React12__namespace.createElement("div", { className: chunkLLKCXOGO_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React12__namespace.createElement(MediaInputItem, { key: src, className: chunkLLKCXOGO_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React12__namespace.createElement(
|
|
459
|
+
chunkLLKCXOGO_js.Image,
|
|
460
460
|
{
|
|
461
461
|
src,
|
|
462
462
|
alt: "",
|
|
@@ -474,7 +474,7 @@ var MediaInput = (props) => {
|
|
|
474
474
|
MediaInputItem,
|
|
475
475
|
{
|
|
476
476
|
key: i,
|
|
477
|
-
className:
|
|
477
|
+
className: chunkLLKCXOGO_js.cn(
|
|
478
478
|
"sb-flex sb-h-28 sb-w-28 sb-items-center sb-justify-center",
|
|
479
479
|
props.itemClassName
|
|
480
480
|
)
|
|
@@ -484,7 +484,7 @@ var MediaInput = (props) => {
|
|
|
484
484
|
"label",
|
|
485
485
|
{
|
|
486
486
|
htmlFor: id,
|
|
487
|
-
className:
|
|
487
|
+
className: chunkLLKCXOGO_js.cn(
|
|
488
488
|
"sb-flex sb-h-28 sb-w-28 sb-cursor-pointer sb-items-center sb-justify-center sb-rounded-lg sb-border",
|
|
489
489
|
props.itemClassName
|
|
490
490
|
)
|
|
@@ -507,7 +507,7 @@ var MediaInputItem = (props) => {
|
|
|
507
507
|
return /* @__PURE__ */ React12__namespace.createElement(
|
|
508
508
|
"div",
|
|
509
509
|
{
|
|
510
|
-
className:
|
|
510
|
+
className: chunkLLKCXOGO_js.cn(
|
|
511
511
|
"sb-relative sb-h-28 sb-w-28 sb-overflow-hidden sb-rounded-lg sb-border",
|
|
512
512
|
props.className
|
|
513
513
|
)
|
|
@@ -530,7 +530,7 @@ var SelectTrigger = React12__namespace.forwardRef(({ className, children, ...pro
|
|
|
530
530
|
SelectPrimitive__namespace.Trigger,
|
|
531
531
|
{
|
|
532
532
|
ref,
|
|
533
|
-
className:
|
|
533
|
+
className: chunkLLKCXOGO_js.cn(
|
|
534
534
|
"sb-flex sb-h-10 sb-w-full sb-items-center sb-justify-between sb-rounded-md sb-border sb-border-input sb-bg-background sb-px-3 sb-py-2 sb-text-sm sb-ring-offset-background placeholder:sb-text-muted-foreground focus:sb-outline-none focus:sb-ring-2 focus:sb-ring-ring focus:sb-ring-offset-2 disabled:sb-cursor-not-allowed disabled:sb-opacity-50 [&>span]:sb-line-clamp-1",
|
|
535
535
|
className
|
|
536
536
|
),
|
|
@@ -544,7 +544,7 @@ var SelectScrollUpButton = React12__namespace.forwardRef(({ className, ...props
|
|
|
544
544
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
545
545
|
{
|
|
546
546
|
ref,
|
|
547
|
-
className:
|
|
547
|
+
className: chunkLLKCXOGO_js.cn(
|
|
548
548
|
"sb-flex sb-cursor-default sb-items-center sb-justify-center sb-py-1",
|
|
549
549
|
className
|
|
550
550
|
),
|
|
@@ -557,7 +557,7 @@ var SelectScrollDownButton = React12__namespace.forwardRef(({ className, ...prop
|
|
|
557
557
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
558
558
|
{
|
|
559
559
|
ref,
|
|
560
|
-
className:
|
|
560
|
+
className: chunkLLKCXOGO_js.cn(
|
|
561
561
|
"sb-flex sb-cursor-default sb-items-center sb-justify-center sb-py-1",
|
|
562
562
|
className
|
|
563
563
|
),
|
|
@@ -570,7 +570,7 @@ var SelectContent = React12__namespace.forwardRef(({ className, children, positi
|
|
|
570
570
|
SelectPrimitive__namespace.Content,
|
|
571
571
|
{
|
|
572
572
|
ref,
|
|
573
|
-
className:
|
|
573
|
+
className: chunkLLKCXOGO_js.cn(
|
|
574
574
|
"sb-relative sb-z-50 sb-max-h-96 sb-min-w-[8rem] sb-overflow-hidden sb-rounded-md sb-border sb-bg-popover sb-text-popover-foreground sb-shadow-md data-[state=open]:sb-animate-in data-[state=closed]:sb-animate-out data-[state=closed]:sb-fade-out-0 data-[state=open]:sb-fade-in-0 data-[state=closed]:sb-zoom-out-95 data-[state=open]:sb-zoom-in-95 data-[side=bottom]:sb-slide-in-from-top-2 data-[side=left]:sb-slide-in-from-right-2 data-[side=right]:sb-slide-in-from-left-2 data-[side=top]:sb-slide-in-from-bottom-2",
|
|
575
575
|
position === "popper" && "data-[side=bottom]:sb-translate-y-1 data-[side=left]:sb--translate-x-1 data-[side=right]:sb-translate-x-1 data-[side=top]:sb--translate-y-1",
|
|
576
576
|
className
|
|
@@ -582,7 +582,7 @@ var SelectContent = React12__namespace.forwardRef(({ className, children, positi
|
|
|
582
582
|
/* @__PURE__ */ React12__namespace.createElement(
|
|
583
583
|
SelectPrimitive__namespace.Viewport,
|
|
584
584
|
{
|
|
585
|
-
className:
|
|
585
|
+
className: chunkLLKCXOGO_js.cn(
|
|
586
586
|
"sb-p-1",
|
|
587
587
|
position === "popper" && "sb-h-[var(--radix-select-trigger-height)] sb-w-full sb-min-w-[var(--radix-select-trigger-width)]"
|
|
588
588
|
)
|
|
@@ -596,7 +596,7 @@ var SelectLabel = React12__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
596
596
|
SelectPrimitive__namespace.Label,
|
|
597
597
|
{
|
|
598
598
|
ref,
|
|
599
|
-
className:
|
|
599
|
+
className: chunkLLKCXOGO_js.cn(
|
|
600
600
|
"sb-py-1.5 sb-pl-8 sb-pr-2 sb-text-sm sb-font-semibold",
|
|
601
601
|
className
|
|
602
602
|
),
|
|
@@ -608,7 +608,7 @@ var SelectItem = React12__namespace.forwardRef(({ className, children, ...props
|
|
|
608
608
|
SelectPrimitive__namespace.Item,
|
|
609
609
|
{
|
|
610
610
|
ref,
|
|
611
|
-
className:
|
|
611
|
+
className: chunkLLKCXOGO_js.cn(
|
|
612
612
|
"sb-relative sb-flex sb-w-full sb-cursor-default sb-select-none sb-items-center sb-rounded-sm sb-py-1.5 sb-pl-8 sb-pr-2 sb-text-sm sb-outline-none focus:sb-bg-accent focus:sb-text-accent-foreground data-[disabled]:sb-pointer-events-none data-[disabled]:sb-opacity-50",
|
|
613
613
|
className
|
|
614
614
|
),
|
|
@@ -622,7 +622,7 @@ var SelectSeparator = React12__namespace.forwardRef(({ className, ...props }, re
|
|
|
622
622
|
SelectPrimitive__namespace.Separator,
|
|
623
623
|
{
|
|
624
624
|
ref,
|
|
625
|
-
className:
|
|
625
|
+
className: chunkLLKCXOGO_js.cn("sb--mx-1 sb-my-1 sb-h-px sb-bg-muted", className),
|
|
626
626
|
...props
|
|
627
627
|
}
|
|
628
628
|
));
|
|
@@ -630,7 +630,7 @@ SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
|
630
630
|
var Switch = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React12__namespace.createElement(
|
|
631
631
|
SwitchPrimitives__namespace.Root,
|
|
632
632
|
{
|
|
633
|
-
className:
|
|
633
|
+
className: chunkLLKCXOGO_js.cn(
|
|
634
634
|
"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",
|
|
635
635
|
className
|
|
636
636
|
),
|
|
@@ -640,7 +640,7 @@ var Switch = React12__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
640
640
|
/* @__PURE__ */ React12__namespace.createElement(
|
|
641
641
|
SwitchPrimitives__namespace.Thumb,
|
|
642
642
|
{
|
|
643
|
-
className:
|
|
643
|
+
className: chunkLLKCXOGO_js.cn(
|
|
644
644
|
"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"
|
|
645
645
|
)
|
|
646
646
|
}
|
|
@@ -652,7 +652,7 @@ var Textarea = React12__namespace.forwardRef(
|
|
|
652
652
|
return /* @__PURE__ */ React12__namespace.createElement(
|
|
653
653
|
"textarea",
|
|
654
654
|
{
|
|
655
|
-
className:
|
|
655
|
+
className: chunkLLKCXOGO_js.cn(
|
|
656
656
|
"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",
|
|
657
657
|
className
|
|
658
658
|
),
|
|
@@ -667,8 +667,8 @@ Textarea.displayName = "Textarea";
|
|
|
667
667
|
// src/components/container-item-form.tsx
|
|
668
668
|
var ContainerItemForm = (props) => {
|
|
669
669
|
const { item } = props;
|
|
670
|
-
const { patchItem } =
|
|
671
|
-
const component =
|
|
670
|
+
const { patchItem } = chunkN6DUKS7Z_js.useBuilder();
|
|
671
|
+
const component = chunkLLKCXOGO_js.builder.getComponent(item.component);
|
|
672
672
|
if (!component) {
|
|
673
673
|
throw new Error(
|
|
674
674
|
`[simple-builder]: Component with id ${item.component} not found in container item form component`
|
|
@@ -741,12 +741,12 @@ var RenderFormField = (props) => {
|
|
|
741
741
|
/* @__PURE__ */ React12__namespace.createElement(lucideReact.XIcon, { className: "sb-h-4 sb-w-4" })
|
|
742
742
|
))
|
|
743
743
|
), /* @__PURE__ */ React12__namespace.createElement(
|
|
744
|
-
|
|
744
|
+
chunkN6DUKS7Z_js.Button,
|
|
745
745
|
{
|
|
746
746
|
type: "button",
|
|
747
747
|
variant: "outline",
|
|
748
748
|
size: "sm",
|
|
749
|
-
className:
|
|
749
|
+
className: chunkLLKCXOGO_js.cn(
|
|
750
750
|
"sb-w-[89%] sb-border-2 sb-border-dashed sb-text-muted-foreground",
|
|
751
751
|
type === "grouped" && "sb-w-full"
|
|
752
752
|
),
|
|
@@ -817,11 +817,11 @@ var RenderInput = (props) => {
|
|
|
817
817
|
return /* @__PURE__ */ React12__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange });
|
|
818
818
|
case "date":
|
|
819
819
|
return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
|
|
820
|
-
|
|
820
|
+
chunkN6DUKS7Z_js.Button,
|
|
821
821
|
{
|
|
822
822
|
variant: "outline",
|
|
823
823
|
size: "sm",
|
|
824
|
-
className:
|
|
824
|
+
className: chunkLLKCXOGO_js.cn(
|
|
825
825
|
"sb-w-full sb-flex sb-justify-start sb-text-left sb-font-normal",
|
|
826
826
|
!field.value && "sb-text-muted-foreground"
|
|
827
827
|
)
|
|
@@ -861,7 +861,7 @@ var RenderInput = (props) => {
|
|
|
861
861
|
}
|
|
862
862
|
};
|
|
863
863
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
864
|
-
var tabsListVariants =
|
|
864
|
+
var tabsListVariants = chunkLLKCXOGO_js.tv({
|
|
865
865
|
variants: {
|
|
866
866
|
variant: {
|
|
867
867
|
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",
|
|
@@ -881,7 +881,7 @@ var TabsList = React12__namespace.forwardRef(({ variant, className, ...props },
|
|
|
881
881
|
}
|
|
882
882
|
));
|
|
883
883
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
884
|
-
var tabsTriggerVariants =
|
|
884
|
+
var tabsTriggerVariants = chunkLLKCXOGO_js.tv({
|
|
885
885
|
variants: {
|
|
886
886
|
variant: {
|
|
887
887
|
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",
|
|
@@ -905,7 +905,7 @@ var TabsContent = React12__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
905
905
|
TabsPrimitive__namespace.Content,
|
|
906
906
|
{
|
|
907
907
|
ref,
|
|
908
|
-
className:
|
|
908
|
+
className: chunkLLKCXOGO_js.cn(
|
|
909
909
|
"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",
|
|
910
910
|
className
|
|
911
911
|
),
|
|
@@ -944,11 +944,11 @@ var BackgroundPicker = (props) => {
|
|
|
944
944
|
return "solid";
|
|
945
945
|
}, [background]);
|
|
946
946
|
return /* @__PURE__ */ React12__namespace.createElement(Popover, null, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
|
|
947
|
-
|
|
947
|
+
chunkN6DUKS7Z_js.Button,
|
|
948
948
|
{
|
|
949
949
|
variant: "outline",
|
|
950
950
|
size: "sm",
|
|
951
|
-
className:
|
|
951
|
+
className: chunkLLKCXOGO_js.cn(
|
|
952
952
|
"sb-justify-start sb-text-left sb-font-normal sb-normal-case sb-w-full",
|
|
953
953
|
!background && "sb-text-muted-foreground",
|
|
954
954
|
className
|
|
@@ -1017,7 +1017,7 @@ var BackgroundPicker = (props) => {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
)))))));
|
|
1019
1019
|
};
|
|
1020
|
-
var toggleVariants =
|
|
1020
|
+
var toggleVariants = chunkLLKCXOGO_js.tv({
|
|
1021
1021
|
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",
|
|
1022
1022
|
variants: {
|
|
1023
1023
|
variant: {
|
|
@@ -1172,7 +1172,7 @@ var designSchema = zod.z.object({
|
|
|
1172
1172
|
});
|
|
1173
1173
|
var ItemDesignForm = (props) => {
|
|
1174
1174
|
const { item } = props;
|
|
1175
|
-
const component =
|
|
1175
|
+
const component = chunkLLKCXOGO_js.builder.getComponent(item.component);
|
|
1176
1176
|
if (!component) {
|
|
1177
1177
|
throw new Error(
|
|
1178
1178
|
`[simple-builder]: Component "${item.component}" not found`
|
|
@@ -1213,7 +1213,7 @@ var ItemDesignForm = (props) => {
|
|
|
1213
1213
|
mobile: getDefaultDeviceValues("mobile")
|
|
1214
1214
|
}
|
|
1215
1215
|
});
|
|
1216
|
-
const { patchItem } =
|
|
1216
|
+
const { patchItem } = chunkN6DUKS7Z_js.useBuilder();
|
|
1217
1217
|
const onSubmit = (values) => {
|
|
1218
1218
|
const { container, desktop, mobile } = values;
|
|
1219
1219
|
const dirtyFields = form.formState.dirtyFields;
|
|
@@ -1338,7 +1338,7 @@ var ScrollArea = React12__namespace.forwardRef(({ className, children, ...props
|
|
|
1338
1338
|
ScrollAreaPrimitive__namespace.Root,
|
|
1339
1339
|
{
|
|
1340
1340
|
ref,
|
|
1341
|
-
className:
|
|
1341
|
+
className: chunkLLKCXOGO_js.cn("sb-relative sb-overflow-hidden", className),
|
|
1342
1342
|
...props
|
|
1343
1343
|
},
|
|
1344
1344
|
/* @__PURE__ */ React12__namespace.createElement(ScrollAreaPrimitive__namespace.Viewport, { className: "sb-h-full sb-max-h-[80vh] sb-w-full sb-rounded-[inherit]" }, children),
|
|
@@ -1351,7 +1351,7 @@ var ScrollBar = React12__namespace.forwardRef(({ className, orientation = "verti
|
|
|
1351
1351
|
{
|
|
1352
1352
|
ref,
|
|
1353
1353
|
orientation,
|
|
1354
|
-
className:
|
|
1354
|
+
className: chunkLLKCXOGO_js.cn(
|
|
1355
1355
|
"sb-flex sb-touch-none sb-select-none sb-transition-colors",
|
|
1356
1356
|
orientation === "vertical" && "sb-h-full sb-w-2.5 sb-border-l sb-border-l-transparent sb-p-[1px]",
|
|
1357
1357
|
orientation === "horizontal" && "sb-h-2.5 sb-flex-col sb-border-t sb-border-t-transparent sb-p-[1px]",
|
|
@@ -1366,9 +1366,9 @@ ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displ
|
|
|
1366
1366
|
// src/components/container-item-toolbar.tsx
|
|
1367
1367
|
var ContainerItemToolbar = (props) => {
|
|
1368
1368
|
const { contentId, canBringUp = false, canBringDown = false } = props;
|
|
1369
|
-
const { bringUp, bringDown } =
|
|
1369
|
+
const { bringUp, bringDown } = chunkN6DUKS7Z_js.useBuilder();
|
|
1370
1370
|
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(
|
|
1371
|
-
|
|
1371
|
+
chunkN6DUKS7Z_js.Button,
|
|
1372
1372
|
{
|
|
1373
1373
|
variant: "ghost",
|
|
1374
1374
|
className: "sb-w-8 sb-h-8 sb-p-0",
|
|
@@ -1377,7 +1377,7 @@ var ContainerItemToolbar = (props) => {
|
|
|
1377
1377
|
},
|
|
1378
1378
|
/* @__PURE__ */ React12__namespace.createElement(lucideReact.ArrowUp, { className: "sb-h-5 sb-w-5" })
|
|
1379
1379
|
), /* @__PURE__ */ React12__namespace.createElement(
|
|
1380
|
-
|
|
1380
|
+
chunkN6DUKS7Z_js.Button,
|
|
1381
1381
|
{
|
|
1382
1382
|
variant: "ghost",
|
|
1383
1383
|
className: "sb-w-8 sb-h-8 sb-p-0",
|
|
@@ -1388,7 +1388,7 @@ var ContainerItemToolbar = (props) => {
|
|
|
1388
1388
|
), /* @__PURE__ */ React12__namespace.createElement(DeleteButton, { contentId })));
|
|
1389
1389
|
};
|
|
1390
1390
|
var EditButton = ({ id }) => {
|
|
1391
|
-
return /* @__PURE__ */ React12__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
|
|
1391
|
+
return /* @__PURE__ */ React12__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React12__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(chunkN6DUKS7Z_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(
|
|
1392
1392
|
PopoverContent,
|
|
1393
1393
|
{
|
|
1394
1394
|
side: "left",
|
|
@@ -1403,7 +1403,7 @@ var EditButton = ({ id }) => {
|
|
|
1403
1403
|
};
|
|
1404
1404
|
var EditPopoverInner = (props) => {
|
|
1405
1405
|
const { id } = props;
|
|
1406
|
-
const { getItem } =
|
|
1406
|
+
const { getItem } = chunkN6DUKS7Z_js.useBuilder();
|
|
1407
1407
|
const item = getItem(id);
|
|
1408
1408
|
if (!item) {
|
|
1409
1409
|
throw new Error(
|
|
@@ -1413,9 +1413,9 @@ var EditPopoverInner = (props) => {
|
|
|
1413
1413
|
return /* @__PURE__ */ React12__namespace.createElement(Tabs, null, /* @__PURE__ */ React12__namespace.createElement(TabsList, { variant: "text", defaultValue: "content" }, /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { variant: "text", value: "content" }, "Inhoud"), /* @__PURE__ */ React12__namespace.createElement(TabsTrigger, { variant: "text", value: "design" }, "Design")), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React12__namespace.createElement(ScrollArea, null, /* @__PURE__ */ React12__namespace.createElement(ContainerItemForm, { item }))), /* @__PURE__ */ React12__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React12__namespace.createElement(ItemDesignForm, { item })));
|
|
1414
1414
|
};
|
|
1415
1415
|
var DeleteButton = ({ contentId }) => {
|
|
1416
|
-
const { deleteContent } =
|
|
1416
|
+
const { deleteContent } = chunkN6DUKS7Z_js.useBuilder();
|
|
1417
1417
|
return /* @__PURE__ */ React12__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React12__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
|
|
1418
|
-
|
|
1418
|
+
chunkN6DUKS7Z_js.Button,
|
|
1419
1419
|
{
|
|
1420
1420
|
variant: "ghost",
|
|
1421
1421
|
className: "sb-w-8 sb-h-8 sb-p-0 sb-text-destructive"
|
|
@@ -1424,7 +1424,7 @@ var DeleteButton = ({ contentId }) => {
|
|
|
1424
1424
|
)), /* @__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(
|
|
1425
1425
|
AlertDialogAction,
|
|
1426
1426
|
{
|
|
1427
|
-
className:
|
|
1427
|
+
className: chunkN6DUKS7Z_js.buttonVariants({ variant: "destructive" }),
|
|
1428
1428
|
onClick: () => deleteContent(contentId)
|
|
1429
1429
|
},
|
|
1430
1430
|
"Verwijderen"
|
|
@@ -1440,7 +1440,7 @@ var BuildContainerInner = (props) => {
|
|
|
1440
1440
|
"[simple-builder]: Multiple content blocks detected when using property multiple false."
|
|
1441
1441
|
);
|
|
1442
1442
|
}
|
|
1443
|
-
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(
|
|
1443
|
+
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(chunkLLKCXOGO_js.DesignWrapper, { styles: item.styles }, chunkLLKCXOGO_js.builder.bindComponent(item, true)), /* @__PURE__ */ React12__namespace.createElement(
|
|
1444
1444
|
ContainerItemToolbar,
|
|
1445
1445
|
{
|
|
1446
1446
|
contentId: item.id,
|
|
@@ -1458,12 +1458,12 @@ var BuildContainerInner = (props) => {
|
|
|
1458
1458
|
};
|
|
1459
1459
|
var build_container_client_default = BuildContainerInner;
|
|
1460
1460
|
var AddContentButton = (props) => {
|
|
1461
|
-
const components =
|
|
1462
|
-
const { addContent } =
|
|
1461
|
+
const components = chunkLLKCXOGO_js.builder.getComponents();
|
|
1462
|
+
const { addContent } = chunkN6DUKS7Z_js.useBuilder();
|
|
1463
1463
|
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) => {
|
|
1464
1464
|
const Icon2 = component.icon ?? lucideReact.ImageIcon;
|
|
1465
1465
|
return /* @__PURE__ */ React12__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React12__namespace.createElement(
|
|
1466
|
-
|
|
1466
|
+
chunkN6DUKS7Z_js.Button,
|
|
1467
1467
|
{
|
|
1468
1468
|
variant: "ghost",
|
|
1469
1469
|
className: "sb-justify-start",
|
|
@@ -1482,11 +1482,11 @@ var AddContentButton = (props) => {
|
|
|
1482
1482
|
}))));
|
|
1483
1483
|
};
|
|
1484
1484
|
var AddContentPlaceholder = (props) => {
|
|
1485
|
-
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(
|
|
1485
|
+
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(chunkN6DUKS7Z_js.Button, { size: "sm" }, /* @__PURE__ */ React12__namespace.createElement(lucideReact.PlusIcon, { className: "sb-mr-2 sb-h-4 sb-w-4" }), "Blok Toevoegen")));
|
|
1486
1486
|
};
|
|
1487
1487
|
var AddContentDividerButton = (props) => {
|
|
1488
1488
|
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(
|
|
1489
|
-
|
|
1489
|
+
chunkN6DUKS7Z_js.Button,
|
|
1490
1490
|
{
|
|
1491
1491
|
size: "sm",
|
|
1492
1492
|
className: "sb-absolute sb-left-1/2 sb-top-1/2 sb--translate-y-1/2 sb--translate-x-1/2 sb-shadow"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuilderProvider, useBuilder, Button } from './chunk-
|
|
2
|
-
import { BuildContainer } from './chunk-
|
|
1
|
+
import { BuilderProvider, useBuilder, Button } from './chunk-2Y3J2R5O.mjs';
|
|
2
|
+
import { BuildContainer } from './chunk-SLA7GUFF.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
|
|
4
|
-
var
|
|
3
|
+
var chunkN6DUKS7Z_js = require('./chunk-N6DUKS7Z.js');
|
|
4
|
+
var chunkLLKCXOGO_js = require('./chunk-LLKCXOGO.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 } =
|
|
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(
|
|
28
|
+
const { save } = chunkN6DUKS7Z_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(chunkN6DUKS7Z_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(
|
|
34
|
+
return /* @__PURE__ */ React2__namespace.createElement(chunkN6DUKS7Z_js.BuilderProvider, { content: props.content }, /* @__PURE__ */ React2__namespace.createElement(BuilderContentInner, null));
|
|
35
35
|
};
|
|
36
36
|
var BuilderContentInner = () => {
|
|
37
|
-
const { content } =
|
|
38
|
-
return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(
|
|
37
|
+
const { content } = chunkN6DUKS7Z_js.useBuilder();
|
|
38
|
+
return /* @__PURE__ */ React2__namespace.createElement(React2__namespace.Fragment, null, /* @__PURE__ */ React2__namespace.createElement(BuilderHeader, null), /* @__PURE__ */ React2__namespace.createElement(chunkLLKCXOGO_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
|
|
3
|
+
var chunkLLKCXOGO_js = require('./chunk-LLKCXOGO.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
|
-
|
|
28
|
+
chunkLLKCXOGO_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-
|
|
39
|
+
var BuilderContent = React.lazy(() => import('./builder-content-PZYB2ILV.js'));
|
|
40
40
|
|
|
41
41
|
exports.BuilderContent = BuilderContent;
|
|
42
42
|
exports.StaticContent = StaticContent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildContainer } from './chunk-
|
|
1
|
+
import { BuildContainer } from './chunk-SLA7GUFF.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-
|
|
18
|
+
var BuilderContent = lazy(() => import('./builder-content-4TTGQUUJ.mjs'));
|
|
19
19
|
|
|
20
20
|
export { BuilderContent, StaticContent };
|
|
@@ -67,7 +67,7 @@ var builder = /* @__PURE__ */ (() => {
|
|
|
67
67
|
})();
|
|
68
68
|
var Image = (props) => {
|
|
69
69
|
if (typeof NextImage__default.default !== "undefined") {
|
|
70
|
-
return /* @__PURE__ */ React3__namespace.createElement(NextImage__default.default
|
|
70
|
+
return /* @__PURE__ */ React3__namespace.createElement(NextImage__default.default, { ...props });
|
|
71
71
|
}
|
|
72
72
|
return /* @__PURE__ */ React3__namespace.createElement("img", { ...props });
|
|
73
73
|
};
|
|
@@ -117,7 +117,7 @@ var DesignWrapper = (props) => {
|
|
|
117
117
|
`.replace(/\s\s+/g, " ")));
|
|
118
118
|
};
|
|
119
119
|
var BuildContainerInner = React3__namespace.lazy(
|
|
120
|
-
() => import('./build-container-client-
|
|
120
|
+
() => import('./build-container-client-RGQQTCKG.js')
|
|
121
121
|
);
|
|
122
122
|
var BuildContainer = (props) => {
|
|
123
123
|
const { content, edit, name } = props;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLLKCXOGO_js = require('./chunk-LLKCXOGO.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 =
|
|
59
|
+
const component = chunkLLKCXOGO_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) =>
|
|
81
|
+
setContent((content2) => chunkLLKCXOGO_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]:
|
|
91
|
+
[container]: chunkLLKCXOGO_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 =
|
|
219
|
+
var buttonVariants = chunkLLKCXOGO_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: {
|
|
@@ -43,7 +43,7 @@ var builder = /* @__PURE__ */ (() => {
|
|
|
43
43
|
})();
|
|
44
44
|
var Image = (props) => {
|
|
45
45
|
if (typeof NextImage !== "undefined") {
|
|
46
|
-
return /* @__PURE__ */ React3.createElement(NextImage
|
|
46
|
+
return /* @__PURE__ */ React3.createElement(NextImage, { ...props });
|
|
47
47
|
}
|
|
48
48
|
return /* @__PURE__ */ React3.createElement("img", { ...props });
|
|
49
49
|
};
|
|
@@ -93,7 +93,7 @@ var DesignWrapper = (props) => {
|
|
|
93
93
|
`.replace(/\s\s+/g, " ")));
|
|
94
94
|
};
|
|
95
95
|
var BuildContainerInner = React3.lazy(
|
|
96
|
-
() => import('./build-container-client-
|
|
96
|
+
() => import('./build-container-client-LY4RX272.mjs')
|
|
97
97
|
);
|
|
98
98
|
var BuildContainer = (props) => {
|
|
99
99
|
const { content, edit, name } = props;
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkIY3JM23H_js = require('./chunk-IY3JM23H.js');
|
|
4
|
+
var chunkLLKCXOGO_js = require('./chunk-LLKCXOGO.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "BuilderContent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkIY3JM23H_js.BuilderContent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "StaticContent", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkIY3JM23H_js.StaticContent; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "BuildContainer", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkLLKCXOGO_js.BuildContainer; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "builder", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkLLKCXOGO_js.builder; }
|
|
23
23
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { BuilderContent, StaticContent } from './chunk-
|
|
2
|
-
export { BuildContainer, builder } from './chunk-
|
|
1
|
+
export { BuilderContent, StaticContent } from './chunk-J6SSP2IE.mjs';
|
|
2
|
+
export { BuildContainer, builder } from './chunk-SLA7GUFF.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simple-builder/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tailwind-merge": "^2.2.0",
|
|
47
47
|
"tailwind-variants": "^0.1.20",
|
|
48
48
|
"zod": "^3.22.4",
|
|
49
|
-
"@simple-builder/server": "1.0.
|
|
49
|
+
"@simple-builder/server": "1.0.20"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=16.8.0",
|