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