@simple-builder/react 1.2.10 → 1.3.0
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-VF3DTHKE.mjs → build-container-client-5QC5KVS3.mjs} +215 -215
- package/dist/build-container-client-D2ZD6IEH.css +1964 -0
- package/dist/{build-container-client-O3HCUDB7.js → build-container-client-NXIMV3RF.js} +293 -293
- package/dist/{builder-content-325KIPAU.mjs → builder-content-3H7GF3KF.mjs} +3 -3
- package/dist/{builder-content-CUJJ3KBR.js → builder-content-BIVYFWCC.js} +7 -7
- package/dist/builder-content-NFFJ4NAB.css +1964 -0
- package/dist/{chunk-IACBZNOK.js → chunk-2CPAROZB.js} +7 -7
- package/dist/{chunk-2DLJX5FY.mjs → chunk-B5R6QY7N.mjs} +7 -7
- package/dist/{chunk-5DXQZNUR.mjs → chunk-CJGHP5Q7.mjs} +25 -19
- package/dist/{chunk-5N4LAZ6V.js → chunk-WI3YU7TV.js} +3 -3
- package/dist/{chunk-3F3TNWYK.mjs → chunk-XSG7W73Z.mjs} +2 -2
- package/dist/{chunk-6NZWMSQR.js → chunk-YKPZPQ5D.js} +29 -23
- package/dist/index.css +1920 -1486
- package/dist/index.js +6 -6
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
- package/dist/build-container-client-56IGH4EB.mjs +0 -2264
- package/dist/build-container-client-6D4M5MV6.mjs +0 -2260
- package/dist/build-container-client-6NICVHM7.css +0 -1530
- package/dist/build-container-client-7UASGAWO.mjs +0 -2265
- package/dist/build-container-client-FP6NTFZ7.js +0 -2299
- package/dist/build-container-client-IC4ZMQPB.js +0 -2301
- package/dist/build-container-client-JR4HENF4.mjs +0 -2262
- package/dist/build-container-client-JS3CR4W3.js +0 -2300
- package/dist/build-container-client-JXYQOZHZ.js +0 -2296
- package/dist/build-container-client-OANZW6DH.mjs +0 -2264
- package/dist/build-container-client-QBXLJYQD.js +0 -2300
- package/dist/build-container-client-QOFTIHCU.js +0 -2298
- package/dist/build-container-client-XNI5DVSE.mjs +0 -2280
- package/dist/build-container-client-YSPLIQZC.mjs +0 -2263
- package/dist/build-container-client-YTZ4C67E.mjs +0 -2266
- package/dist/build-container-client-Z34EUPR3.js +0 -2302
- package/dist/build-container-client-ZXB5JG67.js +0 -2316
- package/dist/builder-content-5K55QBEE.js +0 -42
- package/dist/builder-content-5K7B4FXR.js +0 -42
- package/dist/builder-content-7CYIKIWQ.mjs +0 -20
- package/dist/builder-content-EHVMYKSR.mjs +0 -20
- package/dist/builder-content-IQHALH5A.js +0 -42
- package/dist/builder-content-J6G2PNIM.js +0 -42
- package/dist/builder-content-JQ7BYR4W.mjs +0 -20
- package/dist/builder-content-KWK44AH6.mjs +0 -20
- package/dist/builder-content-LYSSA6KK.js +0 -42
- package/dist/builder-content-MPQ7ZQN4.js +0 -42
- package/dist/builder-content-OE75E24Z.mjs +0 -20
- package/dist/builder-content-P24OTLH4.css +0 -1530
- package/dist/builder-content-QFRPA4VE.js +0 -42
- package/dist/builder-content-S2ZNOULV.mjs +0 -20
- package/dist/builder-content-STUVQ4ME.mjs +0 -20
- package/dist/builder-content-WJFD3ACD.mjs +0 -20
- package/dist/builder-content-ZHXFSCT7.js +0 -42
- package/dist/chunk-2GRDEACJ.js +0 -153
- package/dist/chunk-2S5KDJXM.js +0 -263
- package/dist/chunk-2UYKRF3Y.js +0 -263
- package/dist/chunk-5NN2XSII.mjs +0 -238
- package/dist/chunk-5VQCJART.js +0 -153
- package/dist/chunk-75X4HNGS.mjs +0 -238
- package/dist/chunk-7DFHZYGR.js +0 -263
- package/dist/chunk-7J7CMYXS.mjs +0 -20
- package/dist/chunk-BUELIHBX.mjs +0 -238
- package/dist/chunk-DMNRRIPC.js +0 -42
- package/dist/chunk-EMZAPBOH.mjs +0 -20
- package/dist/chunk-FKVC2UHD.js +0 -42
- package/dist/chunk-FN6K4WJP.mjs +0 -20
- package/dist/chunk-G6MYXYJU.mjs +0 -238
- package/dist/chunk-GVPZDUDM.js +0 -42
- package/dist/chunk-HA4DTJA7.mjs +0 -123
- package/dist/chunk-I4TPSTXB.js +0 -263
- package/dist/chunk-IVF3GTYS.js +0 -263
- package/dist/chunk-JDB6GNKI.js +0 -263
- package/dist/chunk-KC4V2ZJN.mjs +0 -123
- package/dist/chunk-KS4VUS45.mjs +0 -238
- package/dist/chunk-LNSOKXFY.mjs +0 -20
- package/dist/chunk-LPZDTDBB.js +0 -153
- package/dist/chunk-NJ6FM7SJ.mjs +0 -123
- package/dist/chunk-OOIADGIA.js +0 -153
- package/dist/chunk-ORODN5Q7.js +0 -153
- package/dist/chunk-PFSFBCPI.mjs +0 -123
- package/dist/chunk-QEQT2EER.mjs +0 -238
- package/dist/chunk-RCDOLMDG.js +0 -263
- package/dist/chunk-RFPQNWBX.mjs +0 -123
- package/dist/chunk-RTB6I3Q2.js +0 -153
- package/dist/chunk-RUBQ6OAO.mjs +0 -238
- package/dist/chunk-S4IIRN4J.mjs +0 -20
- package/dist/chunk-SMRPMB3V.js +0 -153
- package/dist/chunk-TF7VKEU2.mjs +0 -123
- package/dist/chunk-TPRY6DEO.js +0 -153
- package/dist/chunk-TSIU64AJ.mjs +0 -238
- package/dist/chunk-TWGYIJD2.js +0 -42
- package/dist/chunk-UFWIAKEA.mjs +0 -20
- package/dist/chunk-UH23D2JA.mjs +0 -123
- package/dist/chunk-UYVCZD2U.mjs +0 -20
- package/dist/chunk-WP7KTUTL.js +0 -42
- package/dist/chunk-WQ376VV2.js +0 -263
- package/dist/chunk-WUYG7TZ5.js +0 -42
- package/dist/chunk-XFIY7HQO.mjs +0 -123
- package/dist/chunk-XJ4ZJCQS.js +0 -42
- package/dist/chunk-XULCJNV7.mjs +0 -20
- package/dist/chunk-YMC3DDLP.js +0 -42
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
require('./chunk-
|
|
5
|
-
var
|
|
6
|
-
var
|
|
4
|
+
require('./chunk-WI3YU7TV.js');
|
|
5
|
+
var chunkYKPZPQ5D_js = require('./chunk-YKPZPQ5D.js');
|
|
6
|
+
var chunk2CPAROZB_js = require('./chunk-2CPAROZB.js');
|
|
7
7
|
var React25 = require('react');
|
|
8
8
|
var lucideReact = require('lucide-react');
|
|
9
9
|
var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
@@ -75,8 +75,8 @@ var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
|
|
|
75
75
|
var AlertDialogOverlay = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
76
76
|
AlertDialogPrimitive__namespace.Overlay,
|
|
77
77
|
{
|
|
78
|
-
className:
|
|
79
|
-
"sb
|
|
78
|
+
className: chunk2CPAROZB_js.cn(
|
|
79
|
+
"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",
|
|
80
80
|
className
|
|
81
81
|
),
|
|
82
82
|
...props,
|
|
@@ -88,8 +88,8 @@ var AlertDialogContent = React25__namespace.forwardRef(({ className, ...props },
|
|
|
88
88
|
AlertDialogPrimitive__namespace.Content,
|
|
89
89
|
{
|
|
90
90
|
ref,
|
|
91
|
-
className:
|
|
92
|
-
"sb
|
|
91
|
+
className: chunk2CPAROZB_js.cn(
|
|
92
|
+
"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%] sb:sm:rounded-lg",
|
|
93
93
|
className
|
|
94
94
|
),
|
|
95
95
|
...props
|
|
@@ -102,8 +102,8 @@ var AlertDialogFooter = ({
|
|
|
102
102
|
}) => /* @__PURE__ */ React25__namespace.createElement(
|
|
103
103
|
"div",
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
106
|
-
"sb
|
|
105
|
+
className: chunk2CPAROZB_js.cn(
|
|
106
|
+
"sb:flex sb:flex-col-reverse sb:sm:flex-row sb:sm:justify-end sb:sm:gap-2",
|
|
107
107
|
className
|
|
108
108
|
),
|
|
109
109
|
...props
|
|
@@ -114,7 +114,7 @@ var AlertDialogTitle = React25__namespace.forwardRef(({ className, ...props }, r
|
|
|
114
114
|
AlertDialogPrimitive__namespace.Title,
|
|
115
115
|
{
|
|
116
116
|
ref,
|
|
117
|
-
className:
|
|
117
|
+
className: chunk2CPAROZB_js.cn("sb:text-lg sb:font-semibold", className),
|
|
118
118
|
...props
|
|
119
119
|
}
|
|
120
120
|
));
|
|
@@ -123,7 +123,7 @@ var AlertDialogDescription = React25__namespace.forwardRef(({ className, ...prop
|
|
|
123
123
|
AlertDialogPrimitive__namespace.Description,
|
|
124
124
|
{
|
|
125
125
|
ref,
|
|
126
|
-
className:
|
|
126
|
+
className: chunk2CPAROZB_js.cn("sb:text-sm sb:text-muted-foreground", className),
|
|
127
127
|
...props
|
|
128
128
|
}
|
|
129
129
|
));
|
|
@@ -132,7 +132,7 @@ var AlertDialogAction = React25__namespace.forwardRef(({ className, ...props },
|
|
|
132
132
|
AlertDialogPrimitive__namespace.Action,
|
|
133
133
|
{
|
|
134
134
|
ref,
|
|
135
|
-
className:
|
|
135
|
+
className: chunk2CPAROZB_js.cn(chunkYKPZPQ5D_js.buttonVariants(), className),
|
|
136
136
|
...props
|
|
137
137
|
}
|
|
138
138
|
));
|
|
@@ -141,9 +141,9 @@ var AlertDialogCancel = React25__namespace.forwardRef(({ className, ...props },
|
|
|
141
141
|
AlertDialogPrimitive__namespace.Cancel,
|
|
142
142
|
{
|
|
143
143
|
ref,
|
|
144
|
-
className:
|
|
145
|
-
|
|
146
|
-
"sb
|
|
144
|
+
className: chunk2CPAROZB_js.cn(
|
|
145
|
+
chunkYKPZPQ5D_js.buttonVariants({ variant: "outline" }),
|
|
146
|
+
"sb:mt-2 sb:sm:mt-0",
|
|
147
147
|
className
|
|
148
148
|
),
|
|
149
149
|
...props
|
|
@@ -159,8 +159,8 @@ var PopoverContent = React25__namespace.forwardRef(({ className, align = "center
|
|
|
159
159
|
ref,
|
|
160
160
|
align,
|
|
161
161
|
sideOffset,
|
|
162
|
-
className:
|
|
163
|
-
"sb
|
|
162
|
+
className: chunk2CPAROZB_js.cn(
|
|
163
|
+
"sb:z-50 sb:w-72 sb:rounded-md sb:border sb:bg-popover sb:text-popover-foreground sb:shadow-md sb:outline-hidden 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 sb:origin-(--radix-popover-content-transform-origin)",
|
|
164
164
|
className
|
|
165
165
|
),
|
|
166
166
|
...props
|
|
@@ -260,7 +260,7 @@ var useRichTextEditor = ({
|
|
|
260
260
|
autocomplete: "off",
|
|
261
261
|
autocorrect: "off",
|
|
262
262
|
autocapitalize: "off",
|
|
263
|
-
class:
|
|
263
|
+
class: chunk2CPAROZB_js.cn("sb-focus:outline-none", editorClassName)
|
|
264
264
|
}
|
|
265
265
|
},
|
|
266
266
|
onCreate: ({ editor: editor2 }) => handleCreate(editor2),
|
|
@@ -277,23 +277,23 @@ var DropdownMenuSubTrigger = React25__namespace.forwardRef(({ className, inset,
|
|
|
277
277
|
DropdownMenuPrimitive__namespace.SubTrigger,
|
|
278
278
|
{
|
|
279
279
|
ref,
|
|
280
|
-
className:
|
|
281
|
-
"sb
|
|
282
|
-
inset && "sb
|
|
280
|
+
className: chunk2CPAROZB_js.cn(
|
|
281
|
+
"sb:flex sb:cursor-default sb:select-none sb:items-center sb:gap-2 sb:rounded-sm sb:px-2 sb:py-1.5 sb:text-sm sb:outline-hidden sb:focus:bg-accent sb:data-[state=open]:bg-accent sb:[&_svg]:pointer-events-none sb:[&_svg]:size-4 sb:[&_svg]:shrink-0",
|
|
282
|
+
inset && "sb:pl-8",
|
|
283
283
|
className
|
|
284
284
|
),
|
|
285
285
|
...props
|
|
286
286
|
},
|
|
287
287
|
children,
|
|
288
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronRight, { className: "sb
|
|
288
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronRight, { className: "sb:ml-auto" })
|
|
289
289
|
));
|
|
290
290
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
|
|
291
291
|
var DropdownMenuSubContent = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
292
292
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
293
293
|
{
|
|
294
294
|
ref,
|
|
295
|
-
className:
|
|
296
|
-
"sb
|
|
295
|
+
className: chunk2CPAROZB_js.cn(
|
|
296
|
+
"sb:z-50 sb:min-w-32 sb:overflow-hidden sb:rounded-md sb:border sb:bg-popover sb:p-1 sb:text-popover-foreground sb:shadow-lg 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 sb:origin-(--radix-dropdown-menu-content-transform-origin)",
|
|
297
297
|
className
|
|
298
298
|
),
|
|
299
299
|
...props
|
|
@@ -305,9 +305,9 @@ var DropdownMenuContent = React25__namespace.forwardRef(({ className, sideOffset
|
|
|
305
305
|
{
|
|
306
306
|
ref,
|
|
307
307
|
sideOffset,
|
|
308
|
-
className:
|
|
309
|
-
"sb
|
|
310
|
-
"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 sb
|
|
308
|
+
className: chunk2CPAROZB_js.cn(
|
|
309
|
+
"sb:z-50 sb:max-h-(--radix-dropdown-menu-content-available-height) sb:min-w-32 sb:overflow-y-auto sb:overflow-x-hidden sb:rounded-md sb:border sb:bg-popover sb:p-1 sb:text-popover-foreground sb:shadow-md",
|
|
310
|
+
"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 sb:origin-(--radix-dropdown-menu-content-transform-origin)",
|
|
311
311
|
className
|
|
312
312
|
),
|
|
313
313
|
...props
|
|
@@ -318,9 +318,9 @@ var DropdownMenuItem = React25__namespace.forwardRef(({ className, inset, ...pro
|
|
|
318
318
|
DropdownMenuPrimitive__namespace.Item,
|
|
319
319
|
{
|
|
320
320
|
ref,
|
|
321
|
-
className:
|
|
322
|
-
"sb
|
|
323
|
-
inset && "sb
|
|
321
|
+
className: chunk2CPAROZB_js.cn(
|
|
322
|
+
"sb:relative sb:flex sb:cursor-default sb:select-none sb:items-center sb:gap-2 sb:rounded-sm sb:px-2 sb:py-1.5 sb:text-sm sb:outline-hidden sb:transition-colors sb:focus:bg-accent sb:focus:text-accent-foreground sb:data-disabled:pointer-events-none sb:data-disabled:opacity-50 sb:[&>svg]:size-4 sb:[&>svg]:shrink-0",
|
|
323
|
+
inset && "sb:pl-8",
|
|
324
324
|
className
|
|
325
325
|
),
|
|
326
326
|
...props
|
|
@@ -331,14 +331,14 @@ var DropdownMenuCheckboxItem = React25__namespace.forwardRef(({ className, child
|
|
|
331
331
|
DropdownMenuPrimitive__namespace.CheckboxItem,
|
|
332
332
|
{
|
|
333
333
|
ref,
|
|
334
|
-
className:
|
|
335
|
-
"sb
|
|
334
|
+
className: chunk2CPAROZB_js.cn(
|
|
335
|
+
"sb:relative sb:flex 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-hidden sb:transition-colors sb:focus:bg-accent sb:focus:text-accent-foreground sb:data-disabled:pointer-events-none sb:data-disabled:opacity-50",
|
|
336
336
|
className
|
|
337
337
|
),
|
|
338
338
|
checked,
|
|
339
339
|
...props
|
|
340
340
|
},
|
|
341
|
-
/* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
341
|
+
/* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:absolute sb:left-2 sb:flex sb:h-3.5 sb:w-3.5 sb:items-center sb:justify-center" }, /* @__PURE__ */ React25__namespace.createElement(DropdownMenuPrimitive__namespace.ItemIndicator, null, /* @__PURE__ */ React25__namespace.createElement(lucideReact.Check, { className: "sb:h-4 sb:w-4" }))),
|
|
342
342
|
children
|
|
343
343
|
));
|
|
344
344
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
|
|
@@ -346,13 +346,13 @@ var DropdownMenuRadioItem = React25__namespace.forwardRef(({ className, children
|
|
|
346
346
|
DropdownMenuPrimitive__namespace.RadioItem,
|
|
347
347
|
{
|
|
348
348
|
ref,
|
|
349
|
-
className:
|
|
350
|
-
"sb
|
|
349
|
+
className: chunk2CPAROZB_js.cn(
|
|
350
|
+
"sb:relative sb:flex 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-hidden sb:transition-colors sb:focus:bg-accent sb:focus:text-accent-foreground sb:data-disabled:pointer-events-none sb:data-disabled:opacity-50",
|
|
351
351
|
className
|
|
352
352
|
),
|
|
353
353
|
...props
|
|
354
354
|
},
|
|
355
|
-
/* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
355
|
+
/* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:absolute sb:left-2 sb:flex sb:h-3.5 sb:w-3.5 sb:items-center sb:justify-center" }, /* @__PURE__ */ React25__namespace.createElement(DropdownMenuPrimitive__namespace.ItemIndicator, null, /* @__PURE__ */ React25__namespace.createElement(lucideReact.Circle, { className: "sb:h-2 sb:w-2 sb:fill-current" }))),
|
|
356
356
|
children
|
|
357
357
|
));
|
|
358
358
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
|
|
@@ -360,9 +360,9 @@ var DropdownMenuLabel = React25__namespace.forwardRef(({ className, inset, ...pr
|
|
|
360
360
|
DropdownMenuPrimitive__namespace.Label,
|
|
361
361
|
{
|
|
362
362
|
ref,
|
|
363
|
-
className:
|
|
364
|
-
"sb
|
|
365
|
-
inset && "sb
|
|
363
|
+
className: chunk2CPAROZB_js.cn(
|
|
364
|
+
"sb:px-2 sb:py-1.5 sb:text-sm sb:font-semibold",
|
|
365
|
+
inset && "sb:pl-8",
|
|
366
366
|
className
|
|
367
367
|
),
|
|
368
368
|
...props
|
|
@@ -373,7 +373,7 @@ var DropdownMenuSeparator = React25__namespace.forwardRef(({ className, ...props
|
|
|
373
373
|
DropdownMenuPrimitive__namespace.Separator,
|
|
374
374
|
{
|
|
375
375
|
ref,
|
|
376
|
-
className:
|
|
376
|
+
className: chunk2CPAROZB_js.cn("sb:-mx-1 sb:my-1 sb:h-px sb:bg-muted", className),
|
|
377
377
|
...props
|
|
378
378
|
}
|
|
379
379
|
));
|
|
@@ -385,9 +385,9 @@ var Separator2 = React25__namespace.forwardRef(
|
|
|
385
385
|
ref,
|
|
386
386
|
decorative,
|
|
387
387
|
orientation,
|
|
388
|
-
className:
|
|
389
|
-
"sb
|
|
390
|
-
orientation === "horizontal" ? "sb
|
|
388
|
+
className: chunk2CPAROZB_js.cn(
|
|
389
|
+
"sb:shrink-0 sb:bg-border",
|
|
390
|
+
orientation === "horizontal" ? "sb:h-px sb:w-full" : "sb:h-full sb:w-px",
|
|
391
391
|
className
|
|
392
392
|
),
|
|
393
393
|
...props
|
|
@@ -396,17 +396,17 @@ var Separator2 = React25__namespace.forwardRef(
|
|
|
396
396
|
);
|
|
397
397
|
Separator2.displayName = SeparatorPrimitive__namespace.Root.displayName;
|
|
398
398
|
var toggleVariants = classVarianceAuthority.cva(
|
|
399
|
-
"sb
|
|
399
|
+
"sb:inline-flex sb:items-center sb:justify-center sb:gap-2 sb:rounded-md sb:text-sm sb:font-medium sb:transition-colors sb:hover:bg-muted sb:hover:text-muted-foreground sb:focus-visible:outline-hidden sb:focus-visible:ring-1 sb:focus-visible:ring-ring sb:disabled:pointer-events-none sb:disabled:opacity-50 sb:data-[state=on]:bg-accent sb:data-[state=on]:text-accent-foreground sb:[&_svg]:pointer-events-none sb:[&_svg]:size-4 sb:[&_svg]:shrink-0",
|
|
400
400
|
{
|
|
401
401
|
variants: {
|
|
402
402
|
variant: {
|
|
403
|
-
default: "sb
|
|
404
|
-
outline: "sb
|
|
403
|
+
default: "sb:bg-transparent",
|
|
404
|
+
outline: "sb:border sb:border-input sb:bg-transparent sb:shadow-sm sb:hover:bg-accent sb:hover:text-accent-foreground"
|
|
405
405
|
},
|
|
406
406
|
size: {
|
|
407
|
-
default: "sb
|
|
408
|
-
sm: "sb
|
|
409
|
-
lg: "sb
|
|
407
|
+
default: "sb:h-9 sb:px-2 sb:min-w-9",
|
|
408
|
+
sm: "sb:h-8 sb:px-1.5 sb:min-w-8",
|
|
409
|
+
lg: "sb:h-10 sb:px-2.5 sb:min-w-10"
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
defaultVariants: {
|
|
@@ -419,7 +419,7 @@ var Toggle = React25__namespace.forwardRef(({ className, variant, size, ...props
|
|
|
419
419
|
TogglePrimitive__namespace.Root,
|
|
420
420
|
{
|
|
421
421
|
ref,
|
|
422
|
-
className:
|
|
422
|
+
className: chunk2CPAROZB_js.cn(toggleVariants({ variant, size, className })),
|
|
423
423
|
...props
|
|
424
424
|
}
|
|
425
425
|
));
|
|
@@ -432,7 +432,7 @@ var ToggleGroup = React25__namespace.forwardRef(({ className, variant, size, chi
|
|
|
432
432
|
ToggleGroupPrimitive__namespace.Root,
|
|
433
433
|
{
|
|
434
434
|
ref,
|
|
435
|
-
className:
|
|
435
|
+
className: chunk2CPAROZB_js.cn("sb:flex sb:items-center sb:justify-center sb:gap-1", className),
|
|
436
436
|
...props
|
|
437
437
|
},
|
|
438
438
|
/* @__PURE__ */ React25__namespace.createElement(ToggleGroupContext.Provider, { value: { variant, size } }, children)
|
|
@@ -444,7 +444,7 @@ var ToggleGroupItem = React25__namespace.forwardRef(({ className, children, vari
|
|
|
444
444
|
ToggleGroupPrimitive__namespace.Item,
|
|
445
445
|
{
|
|
446
446
|
ref,
|
|
447
|
-
className:
|
|
447
|
+
className: chunk2CPAROZB_js.cn(
|
|
448
448
|
toggleVariants({
|
|
449
449
|
variant: context.variant || variant,
|
|
450
450
|
size: context.size || size
|
|
@@ -496,7 +496,7 @@ var ColorTool = ({ editor }) => {
|
|
|
496
496
|
},
|
|
497
497
|
[editor]
|
|
498
498
|
);
|
|
499
|
-
return /* @__PURE__ */ React25__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(ToolbarButton, { className: "sb
|
|
499
|
+
return /* @__PURE__ */ React25__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(ToolbarButton, { className: "sb:w-12" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
500
500
|
"svg",
|
|
501
501
|
{
|
|
502
502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -508,33 +508,33 @@ var ColorTool = ({ editor }) => {
|
|
|
508
508
|
strokeWidth: "2",
|
|
509
509
|
strokeLinecap: "round",
|
|
510
510
|
strokeLinejoin: "round",
|
|
511
|
-
className: "sb
|
|
511
|
+
className: "sb:size-5",
|
|
512
512
|
style: { color: selectedColor }
|
|
513
513
|
},
|
|
514
514
|
/* @__PURE__ */ React25__namespace.createElement("path", { d: "M4 20h16" }),
|
|
515
515
|
/* @__PURE__ */ React25__namespace.createElement("path", { d: "m6 16 6-12 6 12" }),
|
|
516
516
|
/* @__PURE__ */ React25__namespace.createElement("path", { d: "M8 12h8" })
|
|
517
|
-
), /* @__PURE__ */ React25__namespace.createElement(lu.LuChevronDown, { className: "sb
|
|
517
|
+
), /* @__PURE__ */ React25__namespace.createElement(lu.LuChevronDown, { className: "sb:size-5" }))), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { align: "start", className: "sb:w-full" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
518
518
|
ToggleGroup,
|
|
519
519
|
{
|
|
520
520
|
type: "single",
|
|
521
521
|
value: selectedColor,
|
|
522
522
|
onValueChange: handleColorChange,
|
|
523
|
-
className: "sb
|
|
523
|
+
className: "sb:flex-col sb:gap-1.5"
|
|
524
524
|
},
|
|
525
|
-
PALETTES.map((pallete, i) => /* @__PURE__ */ React25__namespace.createElement("div", { key: i, className: "sb
|
|
525
|
+
PALETTES.map((pallete, i) => /* @__PURE__ */ React25__namespace.createElement("div", { key: i, className: "sb:flex sb:gap-1.5" }, pallete.colors.map((color2, j) => /* @__PURE__ */ React25__namespace.createElement(
|
|
526
526
|
ToggleGroupItem,
|
|
527
527
|
{
|
|
528
528
|
tabIndex: 0,
|
|
529
529
|
key: j,
|
|
530
|
-
className: "sb
|
|
530
|
+
className: "sb:relative sb:size-7 sb:rounded-md sb:border sb:p-0",
|
|
531
531
|
value: color2.cssVar,
|
|
532
532
|
style: { backgroundColor: color2.cssVar }
|
|
533
533
|
},
|
|
534
534
|
selectedColor === color2.cssVar && /* @__PURE__ */ React25__namespace.createElement(
|
|
535
535
|
lu.LuCheck,
|
|
536
536
|
{
|
|
537
|
-
className: "sb
|
|
537
|
+
className: "sb:absolute sb:inset-0 sb:m-auto sb:size-6",
|
|
538
538
|
style: { color: pallete.inverse }
|
|
539
539
|
}
|
|
540
540
|
)
|
|
@@ -545,31 +545,31 @@ var formatActions = [
|
|
|
545
545
|
{
|
|
546
546
|
label: "Normal Text",
|
|
547
547
|
element: "span",
|
|
548
|
-
className: "sb
|
|
548
|
+
className: "sb:grow"
|
|
549
549
|
},
|
|
550
550
|
{
|
|
551
551
|
label: "Heading 1",
|
|
552
552
|
element: "h1",
|
|
553
553
|
level: 1,
|
|
554
|
-
className: "sb
|
|
554
|
+
className: "sb:m-0 sb:grow sb:text-3xl sb:font-extrabold"
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
557
|
label: "Heading 2",
|
|
558
558
|
element: "h2",
|
|
559
559
|
level: 2,
|
|
560
|
-
className: "sb
|
|
560
|
+
className: "sb:m-0 sb:grow sb:text-xl sb:font-bold"
|
|
561
561
|
},
|
|
562
562
|
{
|
|
563
563
|
label: "Heading 3",
|
|
564
564
|
element: "h3",
|
|
565
565
|
level: 3,
|
|
566
|
-
className: "sb
|
|
566
|
+
className: "sb:m-0 sb:grow sb:text-lg sb:font-semibold"
|
|
567
567
|
},
|
|
568
568
|
{
|
|
569
569
|
label: "Heading 4",
|
|
570
570
|
element: "h4",
|
|
571
571
|
level: 4,
|
|
572
|
-
className: "sb
|
|
572
|
+
className: "sb:m-0 sb:grow sb:text-base sb:font-semibold"
|
|
573
573
|
}
|
|
574
574
|
];
|
|
575
575
|
var ElementTool = ({ editor }) => {
|
|
@@ -587,17 +587,17 @@ var ElementTool = ({ editor }) => {
|
|
|
587
587
|
return /* @__PURE__ */ React25__namespace.createElement(DropdownMenu, null, /* @__PURE__ */ React25__namespace.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
588
588
|
ToolbarButton,
|
|
589
589
|
{
|
|
590
|
-
className: "sb
|
|
590
|
+
className: "sb:w-12 sb:data-[state=open]:bg-accent",
|
|
591
591
|
pressed: isActive
|
|
592
592
|
},
|
|
593
|
-
/* @__PURE__ */ React25__namespace.createElement(lu.LuHeading, { className: "sb
|
|
594
|
-
/* @__PURE__ */ React25__namespace.createElement(lu.LuChevronDown, { className: "sb
|
|
593
|
+
/* @__PURE__ */ React25__namespace.createElement(lu.LuHeading, { className: "sb:size-5" }),
|
|
594
|
+
/* @__PURE__ */ React25__namespace.createElement(lu.LuChevronDown, { className: "sb:size-5" })
|
|
595
595
|
)), /* @__PURE__ */ React25__namespace.createElement(DropdownMenuContent, { align: "start" }, formatActions.map(({ element: Element, ...action }) => /* @__PURE__ */ React25__namespace.createElement(
|
|
596
596
|
DropdownMenuItem,
|
|
597
597
|
{
|
|
598
598
|
key: action.label,
|
|
599
|
-
className:
|
|
600
|
-
"sb
|
|
599
|
+
className: chunk2CPAROZB_js.cn({
|
|
600
|
+
"sb:bg-accent": action.level ? editor.isActive("heading", { level: action.level }) : editor.isActive("paragraph")
|
|
601
601
|
}),
|
|
602
602
|
onClick: () => handleFormatChange(action.level)
|
|
603
603
|
},
|
|
@@ -693,8 +693,8 @@ var DialogOverlay = React25__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
693
693
|
DialogPrimitive__namespace.Overlay,
|
|
694
694
|
{
|
|
695
695
|
ref,
|
|
696
|
-
className:
|
|
697
|
-
"sb
|
|
696
|
+
className: chunk2CPAROZB_js.cn(
|
|
697
|
+
"sb:fixed sb:inset-0 sb:z-50 sb:bg-black/80 sb- 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",
|
|
698
698
|
className
|
|
699
699
|
),
|
|
700
700
|
...props
|
|
@@ -705,14 +705,14 @@ var DialogContent = React25__namespace.forwardRef(({ className, children, ...pro
|
|
|
705
705
|
DialogPrimitive__namespace.Content,
|
|
706
706
|
{
|
|
707
707
|
ref,
|
|
708
|
-
className:
|
|
709
|
-
"sb
|
|
708
|
+
className: chunk2CPAROZB_js.cn(
|
|
709
|
+
"sb:fixed 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%] sb:sm:rounded-lg",
|
|
710
710
|
className
|
|
711
711
|
),
|
|
712
712
|
...props
|
|
713
713
|
},
|
|
714
714
|
children,
|
|
715
|
-
/* @__PURE__ */ React25__namespace.createElement(DialogPrimitive__namespace.Close, { className: "sb
|
|
715
|
+
/* @__PURE__ */ React25__namespace.createElement(DialogPrimitive__namespace.Close, { className: "sb:absolute sb:right-4 sb:top-4 sb:rounded-sm sb:opacity-70 sb:ring-offset-background sb:transition-opacity sb:hover:opacity-100 sb:focus:outline-hidden sb:focus:ring-2 sb:focus:ring-ring sb:focus:ring-offset-2 sb:disabled:pointer-events-none sb:data-[state=open]:bg-accent sb:data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.X, { className: "sb:h-4 sb:w-4" }), /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:sr-only" }, "Close"))
|
|
716
716
|
)));
|
|
717
717
|
DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
718
718
|
var DialogHeader = ({
|
|
@@ -721,8 +721,8 @@ var DialogHeader = ({
|
|
|
721
721
|
}) => /* @__PURE__ */ React25__namespace.createElement(
|
|
722
722
|
"div",
|
|
723
723
|
{
|
|
724
|
-
className:
|
|
725
|
-
"sb
|
|
724
|
+
className: chunk2CPAROZB_js.cn(
|
|
725
|
+
"sb:flex sb:flex-col sb:gap-1.5 sb:text-center sb:sm:text-left",
|
|
726
726
|
className
|
|
727
727
|
),
|
|
728
728
|
...props
|
|
@@ -733,8 +733,8 @@ var DialogTitle = React25__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
733
733
|
DialogPrimitive__namespace.Title,
|
|
734
734
|
{
|
|
735
735
|
ref,
|
|
736
|
-
className:
|
|
737
|
-
"sb
|
|
736
|
+
className: chunk2CPAROZB_js.cn(
|
|
737
|
+
"sb:text-lg sb:font-semibold sb:leading-none sb:tracking-tight",
|
|
738
738
|
className
|
|
739
739
|
),
|
|
740
740
|
...props
|
|
@@ -745,19 +745,19 @@ var DialogDescription = React25__namespace.forwardRef(({ className, ...props },
|
|
|
745
745
|
DialogPrimitive__namespace.Description,
|
|
746
746
|
{
|
|
747
747
|
ref,
|
|
748
|
-
className:
|
|
748
|
+
className: chunk2CPAROZB_js.cn("sb:text-sm sb:text-muted-foreground", className),
|
|
749
749
|
...props
|
|
750
750
|
}
|
|
751
751
|
));
|
|
752
752
|
DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
753
753
|
var labelVariants = classVarianceAuthority.cva(
|
|
754
|
-
"sb
|
|
754
|
+
"sb:text-sm sb:font-medium sb:leading-none sb:peer-disabled:cursor-not-allowed sb:peer-disabled:opacity-70"
|
|
755
755
|
);
|
|
756
756
|
var Label2 = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
757
757
|
LabelPrimitive__namespace.Root,
|
|
758
758
|
{
|
|
759
759
|
ref,
|
|
760
|
-
className:
|
|
760
|
+
className: chunk2CPAROZB_js.cn(labelVariants(), className),
|
|
761
761
|
...props
|
|
762
762
|
}
|
|
763
763
|
));
|
|
@@ -796,7 +796,7 @@ var FormItemContext = React25__namespace.createContext(
|
|
|
796
796
|
);
|
|
797
797
|
var FormItem = React25__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
798
798
|
const id = React25__namespace.useId();
|
|
799
|
-
return /* @__PURE__ */ React25__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React25__namespace.createElement("div", { ref, className:
|
|
799
|
+
return /* @__PURE__ */ React25__namespace.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React25__namespace.createElement("div", { ref, className: chunk2CPAROZB_js.cn("sb:flex sb:flex-col sb:gap-2", className), ...props }));
|
|
800
800
|
});
|
|
801
801
|
FormItem.displayName = "FormItem";
|
|
802
802
|
var FormLabel = React25__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -805,7 +805,7 @@ var FormLabel = React25__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
805
805
|
Label2,
|
|
806
806
|
{
|
|
807
807
|
ref,
|
|
808
|
-
className:
|
|
808
|
+
className: chunk2CPAROZB_js.cn(error && "sb:text-destructive", className),
|
|
809
809
|
htmlFor: formItemId,
|
|
810
810
|
...props
|
|
811
811
|
}
|
|
@@ -833,7 +833,7 @@ var FormDescription = React25__namespace.forwardRef(({ className, ...props }, re
|
|
|
833
833
|
{
|
|
834
834
|
ref,
|
|
835
835
|
id: formDescriptionId,
|
|
836
|
-
className:
|
|
836
|
+
className: chunk2CPAROZB_js.cn("sb:text-[0.8rem] sb:text-muted-foreground", className),
|
|
837
837
|
...props
|
|
838
838
|
}
|
|
839
839
|
);
|
|
@@ -850,7 +850,7 @@ var FormMessage = React25__namespace.forwardRef(({ className, children, ...props
|
|
|
850
850
|
{
|
|
851
851
|
ref,
|
|
852
852
|
id: formMessageId,
|
|
853
|
-
className:
|
|
853
|
+
className: chunk2CPAROZB_js.cn("sb:text-[0.8rem] sb:font-medium sb:text-destructive", className),
|
|
854
854
|
...props
|
|
855
855
|
},
|
|
856
856
|
body
|
|
@@ -863,8 +863,8 @@ var Input = React25__namespace.forwardRef(
|
|
|
863
863
|
"input",
|
|
864
864
|
{
|
|
865
865
|
type,
|
|
866
|
-
className:
|
|
867
|
-
"sb
|
|
866
|
+
className: chunk2CPAROZB_js.cn(
|
|
867
|
+
"sb:flex sb:h-9 sb:w-full sb:rounded-md sb:border sb:border-input sb:bg-transparent sb:px-3 sb:py-1 sb:text-base sb:shadow-sm sb:transition-colors sb:file:border-0 sb:file:bg-transparent sb:file:text-sm sb:file:font-medium sb:file:text-foreground sb:placeholder:text-muted-foreground sb:focus-visible:outline-hidden sb:focus-visible:ring-1 sb:focus-visible:ring-ring sb:disabled:cursor-not-allowed sb:disabled:opacity-50 sb:md:text-sm",
|
|
868
868
|
className
|
|
869
869
|
),
|
|
870
870
|
ref,
|
|
@@ -876,15 +876,15 @@ var Input = React25__namespace.forwardRef(
|
|
|
876
876
|
Input.displayName = "Input";
|
|
877
877
|
var AdvancedInput = React25__namespace.forwardRef(
|
|
878
878
|
({ prepend, append, ...props }, ref) => {
|
|
879
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
879
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:relative" }, /* @__PURE__ */ React25__namespace.createElement(Input, { ref, className: "sb:pl-9 sb:pr-7 sb:text-right", ...props }), prepend && /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:absolute sb:font-roboto sb:top-1/2 sb:left-3 sb:-translate-y-1/2" }, prepend), append && /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:absolute sb:font-roboto sb:top-1/2 sb:right-3 sb:-translate-y-1/2" }, append));
|
|
880
880
|
}
|
|
881
881
|
);
|
|
882
882
|
AdvancedInput.displayName = "AdvancedInput";
|
|
883
883
|
var Switch = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
884
884
|
SwitchPrimitives__namespace.Root,
|
|
885
885
|
{
|
|
886
|
-
className:
|
|
887
|
-
"sb
|
|
886
|
+
className: chunk2CPAROZB_js.cn(
|
|
887
|
+
"sb:peer sb:inline-flex sb:h-5 sb:w-9 sb:shrink-0 sb:cursor-pointer sb:items-center sb:rounded-full sb:border-2 sb:border-transparent sb:shadow-sm sb:transition-colors sb:focus-visible:outline-hidden sb:focus-visible:ring-2 sb:focus-visible:ring-ring sb:focus-visible:ring-offset-2 sb:focus-visible:ring-offset-background sb:disabled:cursor-not-allowed sb:disabled:opacity-50 sb:data-[state=checked]:bg-primary sb:data-[state=unchecked]:bg-input",
|
|
888
888
|
className
|
|
889
889
|
),
|
|
890
890
|
...props,
|
|
@@ -893,8 +893,8 @@ var Switch = React25__namespace.forwardRef(({ className, ...props }, ref) => /*
|
|
|
893
893
|
/* @__PURE__ */ React25__namespace.createElement(
|
|
894
894
|
SwitchPrimitives__namespace.Thumb,
|
|
895
895
|
{
|
|
896
|
-
className:
|
|
897
|
-
"sb
|
|
896
|
+
className: chunk2CPAROZB_js.cn(
|
|
897
|
+
"sb:pointer-events-none sb:block sb:h-4 sb:w-4 sb:rounded-full sb:bg-background sb:shadow-lg sb:ring-0 sb:transition-transform sb:data-[state=checked]:translate-x-4 sb:data-[state=unchecked]:translate-x-0"
|
|
898
898
|
)
|
|
899
899
|
}
|
|
900
900
|
)
|
|
@@ -930,8 +930,8 @@ var LinkTool = ({ editor }) => {
|
|
|
930
930
|
pressed: editor.isActive("link"),
|
|
931
931
|
disabled: editor.isActive("codeBlock")
|
|
932
932
|
},
|
|
933
|
-
/* @__PURE__ */ React25__namespace.createElement(lu.LuLink2, { className: "sb
|
|
934
|
-
)), /* @__PURE__ */ React25__namespace.createElement(DialogContent, { className: "sb
|
|
933
|
+
/* @__PURE__ */ React25__namespace.createElement(lu.LuLink2, { className: "sb:size-5" })
|
|
934
|
+
)), /* @__PURE__ */ React25__namespace.createElement(DialogContent, { className: "sb:w-full sb:min-w-80" }, /* @__PURE__ */ React25__namespace.createElement(LinkForm, { onSave: handleSetLink, defaultText: text })));
|
|
935
935
|
};
|
|
936
936
|
var schema = zod.z.object({
|
|
937
937
|
url: zod.z.string().min(0),
|
|
@@ -955,7 +955,7 @@ var LinkForm = ({
|
|
|
955
955
|
const handleSubmit = (values) => {
|
|
956
956
|
onSave(values.url, values.text, values.isNewTab);
|
|
957
957
|
};
|
|
958
|
-
return /* @__PURE__ */ React25__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-
|
|
958
|
+
return /* @__PURE__ */ React25__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-6" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
959
959
|
FormField,
|
|
960
960
|
{
|
|
961
961
|
control: form.control,
|
|
@@ -974,7 +974,7 @@ var LinkForm = ({
|
|
|
974
974
|
{
|
|
975
975
|
control: form.control,
|
|
976
976
|
name: "isNewTab",
|
|
977
|
-
render: ({ field }) => /* @__PURE__ */ React25__namespace.createElement(FormItem, null, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
977
|
+
render: ({ field }) => /* @__PURE__ */ React25__namespace.createElement(FormItem, null, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:items-center sb:gap-2" }, /* @__PURE__ */ React25__namespace.createElement(FormControl, null, /* @__PURE__ */ React25__namespace.createElement(
|
|
978
978
|
Switch,
|
|
979
979
|
{
|
|
980
980
|
checked: field.value,
|
|
@@ -982,7 +982,7 @@ var LinkForm = ({
|
|
|
982
982
|
}
|
|
983
983
|
)), /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, "Open in new tab")), /* @__PURE__ */ React25__namespace.createElement(FormMessage, null))
|
|
984
984
|
}
|
|
985
|
-
), /* @__PURE__ */ React25__namespace.createElement(
|
|
985
|
+
), /* @__PURE__ */ React25__namespace.createElement(chunkYKPZPQ5D_js.Button, { type: "button", onClick: form.handleSubmit(handleSubmit) }, "Save")));
|
|
986
986
|
};
|
|
987
987
|
var actions3 = [
|
|
988
988
|
{
|
|
@@ -1008,7 +1008,7 @@ var ListTool = ({ editor }) => {
|
|
|
1008
1008
|
|
|
1009
1009
|
// src/features/rich-text-editor/components/toolbar.tsx
|
|
1010
1010
|
var Toolbar = ({ editor }) => {
|
|
1011
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1011
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:shrink-0 sb:overflow-x-auto sb:border-b sb:border-border sb:p-2" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:w-max sb:items-center sb:gap-px" }, /* @__PURE__ */ React25__namespace.createElement(ElementTool, { editor }), /* @__PURE__ */ React25__namespace.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25__namespace.createElement(FormatTool, { editor }), /* @__PURE__ */ React25__namespace.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25__namespace.createElement(ColorTool, { editor }), /* @__PURE__ */ React25__namespace.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25__namespace.createElement(ListTool, { editor }), /* @__PURE__ */ React25__namespace.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25__namespace.createElement(LinkTool, { editor }), /* @__PURE__ */ React25__namespace.createElement(InsertTool, { editor })));
|
|
1012
1012
|
};
|
|
1013
1013
|
var ToolbarSection = ({
|
|
1014
1014
|
editor,
|
|
@@ -1032,18 +1032,18 @@ var ToolbarSection = ({
|
|
|
1032
1032
|
disabled: !action.canExecute(editor),
|
|
1033
1033
|
pressed: action.isActive(editor)
|
|
1034
1034
|
},
|
|
1035
|
-
/* @__PURE__ */ React25__namespace.createElement(action.icon, { className: "sb
|
|
1036
|
-
)), dropdownActions.length > 0 && /* @__PURE__ */ React25__namespace.createElement(DropdownMenu, null, /* @__PURE__ */ React25__namespace.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(ToolbarButton, { pressed: isDropdownActive }, /* @__PURE__ */ React25__namespace.createElement(lu.LuEllipsis, { className: "sb
|
|
1035
|
+
/* @__PURE__ */ React25__namespace.createElement(action.icon, { className: "sb:size-5" })
|
|
1036
|
+
)), dropdownActions.length > 0 && /* @__PURE__ */ React25__namespace.createElement(DropdownMenu, null, /* @__PURE__ */ React25__namespace.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(ToolbarButton, { pressed: isDropdownActive }, /* @__PURE__ */ React25__namespace.createElement(lu.LuEllipsis, { className: "sb:size-5" }))), /* @__PURE__ */ React25__namespace.createElement(DropdownMenuContent, { align: "start" }, dropdownActions.map((action) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1037
1037
|
DropdownMenuItem,
|
|
1038
1038
|
{
|
|
1039
1039
|
key: action.label,
|
|
1040
|
-
className:
|
|
1041
|
-
"sb
|
|
1040
|
+
className: chunk2CPAROZB_js.cn("sb:flex sb:flex-row sb:items-center sb:gap-2", {
|
|
1041
|
+
"sb:bg-accent": action.isActive(editor)
|
|
1042
1042
|
}),
|
|
1043
1043
|
onClick: () => action.action(editor),
|
|
1044
1044
|
disabled: !action.canExecute(editor)
|
|
1045
1045
|
},
|
|
1046
|
-
/* @__PURE__ */ React25__namespace.createElement(action.icon, { className: "sb
|
|
1046
|
+
/* @__PURE__ */ React25__namespace.createElement(action.icon, { className: "sb:size-4" }),
|
|
1047
1047
|
/* @__PURE__ */ React25__namespace.createElement("span", null, action.label)
|
|
1048
1048
|
)))));
|
|
1049
1049
|
};
|
|
@@ -1052,9 +1052,9 @@ var ToolbarButton = React25__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
1052
1052
|
Toggle,
|
|
1053
1053
|
{
|
|
1054
1054
|
size: "sm",
|
|
1055
|
-
className:
|
|
1056
|
-
"sb
|
|
1057
|
-
{ "sb
|
|
1055
|
+
className: chunk2CPAROZB_js.cn(
|
|
1056
|
+
"sb:size-8 sb:p-0 sb:data-[state=on]:bg-accent",
|
|
1057
|
+
{ "sb:bg-accent": props.pressed },
|
|
1058
1058
|
className
|
|
1059
1059
|
),
|
|
1060
1060
|
ref,
|
|
@@ -1077,7 +1077,7 @@ var RichTextEditor = ({
|
|
|
1077
1077
|
const editor = useRichTextEditor({
|
|
1078
1078
|
value,
|
|
1079
1079
|
onUpdate: onChange,
|
|
1080
|
-
editorClassName:
|
|
1080
|
+
editorClassName: chunk2CPAROZB_js.cn("sb:flex-1 sb:px-3 sb:py-1", editorClassName),
|
|
1081
1081
|
...props
|
|
1082
1082
|
});
|
|
1083
1083
|
if (!editor) {
|
|
@@ -1086,8 +1086,8 @@ var RichTextEditor = ({
|
|
|
1086
1086
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1087
1087
|
"div",
|
|
1088
1088
|
{
|
|
1089
|
-
className:
|
|
1090
|
-
"sb
|
|
1089
|
+
className: chunk2CPAROZB_js.cn(
|
|
1090
|
+
"sb:flex sb:h-auto sb:min-h-72 sb:w-full sb:flex-col sb:rounded-md sb:border sb:border-input sb:shadow-sm sb:focus-within:border-primary",
|
|
1091
1091
|
className
|
|
1092
1092
|
)
|
|
1093
1093
|
},
|
|
@@ -1096,8 +1096,8 @@ var RichTextEditor = ({
|
|
|
1096
1096
|
react.EditorContent,
|
|
1097
1097
|
{
|
|
1098
1098
|
editor,
|
|
1099
|
-
className:
|
|
1100
|
-
"sb-editflow prose sb
|
|
1099
|
+
className: chunk2CPAROZB_js.cn(
|
|
1100
|
+
"sb-editflow prose sb:flex sb:flex-1",
|
|
1101
1101
|
editorContentClassName
|
|
1102
1102
|
)
|
|
1103
1103
|
}
|
|
@@ -1114,44 +1114,44 @@ function Calendar({
|
|
|
1114
1114
|
reactDayPicker.DayPicker,
|
|
1115
1115
|
{
|
|
1116
1116
|
showOutsideDays,
|
|
1117
|
-
className:
|
|
1117
|
+
className: chunk2CPAROZB_js.cn("sb:p-3 sb:font-roboto", className),
|
|
1118
1118
|
classNames: {
|
|
1119
|
-
months: "sb
|
|
1120
|
-
month: "sb-
|
|
1121
|
-
caption: "sb
|
|
1122
|
-
caption_label: "sb
|
|
1123
|
-
nav: "sb-
|
|
1124
|
-
nav_button:
|
|
1125
|
-
|
|
1126
|
-
"sb
|
|
1119
|
+
months: "sb:flex sb:flex-col sb:sm:flex-row sb:gap-y-4 sb:sm:gap-x-4 sb:sm:gap-y-0",
|
|
1120
|
+
month: "sb:gap-y-4",
|
|
1121
|
+
caption: "sb:flex sb:justify-center sb:pt-1 sb:relative sb:items-center",
|
|
1122
|
+
caption_label: "sb:text-sm sb:font-medium",
|
|
1123
|
+
nav: "sb:gap-x-1 sb:flex sb:items-center",
|
|
1124
|
+
nav_button: chunk2CPAROZB_js.cn(
|
|
1125
|
+
chunkYKPZPQ5D_js.buttonVariants({ variant: "outline" }),
|
|
1126
|
+
"sb:h-7 sb:w-7 sb:bg-transparent sb:p-0 sb:opacity-50 sb:hover:opacity-100"
|
|
1127
1127
|
),
|
|
1128
|
-
nav_button_previous: "sb
|
|
1129
|
-
nav_button_next: "sb
|
|
1130
|
-
table: "sb
|
|
1131
|
-
head_row: "sb
|
|
1132
|
-
head_cell: "sb
|
|
1133
|
-
row: "sb
|
|
1134
|
-
cell:
|
|
1135
|
-
"sb
|
|
1136
|
-
props.mode === "range" ? "[&:has(>.day-range-end)]:
|
|
1128
|
+
nav_button_previous: "sb:absolute sb:left-1",
|
|
1129
|
+
nav_button_next: "sb:absolute sb:right-1",
|
|
1130
|
+
table: "sb:w-full sb:border-collapse sb:flex sb:flex-col sb:gap-y-1",
|
|
1131
|
+
head_row: "sb:flex",
|
|
1132
|
+
head_cell: "sb:text-muted-foreground sb:rounded-md sb:w-8 sb:font-normal sb:text-[0.8rem]",
|
|
1133
|
+
row: "sb:flex sb:w-full sb:mt-2",
|
|
1134
|
+
cell: chunk2CPAROZB_js.cn(
|
|
1135
|
+
"sb:relative sb:p-0 sb:text-center sb:text-sm sb:focus-within:relative sb:focus-within:z-20 sb:[&:has([aria-selected])]:bg-accent sb:[&:has([aria-selected].day-outside)]:bg-accent/50 sb:[&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
1136
|
+
props.mode === "range" ? "sb:[&:has(>.day-range-end)]:rounded-r-md sb:[&:has(>.day-range-start)]:rounded-l-md sb:first:[&:has([aria-selected])]:rounded-l-md sb:last:[&:has([aria-selected])]:rounded-r-md" : "sb:[&:has([aria-selected])]:rounded-md"
|
|
1137
1137
|
),
|
|
1138
|
-
day:
|
|
1139
|
-
|
|
1140
|
-
"sb
|
|
1138
|
+
day: chunk2CPAROZB_js.cn(
|
|
1139
|
+
chunkYKPZPQ5D_js.buttonVariants({ variant: "ghost" }),
|
|
1140
|
+
"sb:h-8 sb:w-8 sb:p-0 sb:font-normal sb:aria-selected:opacity-100"
|
|
1141
1141
|
),
|
|
1142
1142
|
day_range_start: "day-range-start",
|
|
1143
1143
|
day_range_end: "day-range-end",
|
|
1144
|
-
day_selected: "sb
|
|
1145
|
-
day_today: "sb
|
|
1146
|
-
day_outside: "day-outside sb
|
|
1147
|
-
day_disabled: "sb
|
|
1148
|
-
day_range_middle: "aria-selected:
|
|
1144
|
+
day_selected: "sb:bg-primary sb:text-primary-foreground sb:hover:bg-primary sb:hover:text-primary-foreground sb:focus:bg-primary sb:focus:text-primary-foreground",
|
|
1145
|
+
day_today: "sb:bg-accent sb:text-accent-foreground",
|
|
1146
|
+
day_outside: "day-outside sb:text-muted-foreground sb:opacity-50 sb:aria-selected:bg-accent/50 sb:aria-selected:text-muted-foreground sb:aria-selected:opacity-30",
|
|
1147
|
+
day_disabled: "sb:text-muted-foreground sb:opacity-50",
|
|
1148
|
+
day_range_middle: "sb:aria-selected:bg-accent sb:aria-selected:text-accent-foreground",
|
|
1149
1149
|
day_hidden: "invisible",
|
|
1150
1150
|
...classNames
|
|
1151
1151
|
},
|
|
1152
1152
|
components: {
|
|
1153
|
-
IconLeft: () => /* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronLeftIcon, { className: "sb
|
|
1154
|
-
IconRight: () => /* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronRightIcon, { className: "sb
|
|
1153
|
+
IconLeft: () => /* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronLeftIcon, { className: "sb:h-4 sb:w-4" }),
|
|
1154
|
+
IconRight: () => /* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronRightIcon, { className: "sb:h-4 sb:w-4" })
|
|
1155
1155
|
},
|
|
1156
1156
|
...props
|
|
1157
1157
|
}
|
|
@@ -1172,29 +1172,29 @@ var ColorPicker = (props) => {
|
|
|
1172
1172
|
"#FF0000"
|
|
1173
1173
|
];
|
|
1174
1174
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1175
|
-
|
|
1175
|
+
chunkYKPZPQ5D_js.Button,
|
|
1176
1176
|
{
|
|
1177
1177
|
variant: "outline",
|
|
1178
1178
|
size: "sm",
|
|
1179
|
-
className:
|
|
1180
|
-
"sb
|
|
1181
|
-
!color && "sb
|
|
1179
|
+
className: chunk2CPAROZB_js.cn(
|
|
1180
|
+
"sb:justify-start sb:text-left sb:font-normal sb:normal-case sb:w-full",
|
|
1181
|
+
!color && "sb:text-muted-foreground",
|
|
1182
1182
|
className
|
|
1183
1183
|
)
|
|
1184
1184
|
},
|
|
1185
|
-
/* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1185
|
+
/* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:w-full sb:flex sb:items-center sb:gap-2" }, color ? /* @__PURE__ */ React25__namespace.createElement(
|
|
1186
1186
|
"div",
|
|
1187
1187
|
{
|
|
1188
|
-
className: "sb
|
|
1188
|
+
className: "sb:h-4 sb:w-4 sb:rounded sb:bg-center! sb:bg-cover! sb:transition-all sb:border",
|
|
1189
1189
|
style: { background: color }
|
|
1190
1190
|
}
|
|
1191
|
-
) : /* @__PURE__ */ React25__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb
|
|
1192
|
-
)), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb
|
|
1191
|
+
) : /* @__PURE__ */ React25__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb:h-4 sb:w-4" }), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:truncate sb:flex-1" }, color ? color : "Kies een kleur"))
|
|
1192
|
+
)), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb:w-64 sb:p-4 sb:flex sb:flex-wrap sb:gap-1" }, colors.map((s) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1193
1193
|
"div",
|
|
1194
1194
|
{
|
|
1195
1195
|
key: s,
|
|
1196
1196
|
style: { background: s },
|
|
1197
|
-
className: "sb
|
|
1197
|
+
className: "sb:rounded-md sb:h-6 sb:w-6 sb:cursor-pointer sb:active:scale-105 sb:border",
|
|
1198
1198
|
onClick: () => onColorChange(s)
|
|
1199
1199
|
}
|
|
1200
1200
|
))));
|
|
@@ -1276,41 +1276,41 @@ var MediaInput = (props) => {
|
|
|
1276
1276
|
body: JSON.stringify({ src })
|
|
1277
1277
|
});
|
|
1278
1278
|
};
|
|
1279
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className:
|
|
1280
|
-
|
|
1279
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", { className: chunk2CPAROZB_js.cn("flex flex-wrap gap-4", props.className) }, sources.map((src) => /* @__PURE__ */ React25__namespace.createElement(MediaInputItem, { key: src, className: chunk2CPAROZB_js.cn("group", props.itemClassName) }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1280
|
+
chunk2CPAROZB_js.Image,
|
|
1281
1281
|
{
|
|
1282
1282
|
src,
|
|
1283
1283
|
alt: "",
|
|
1284
1284
|
fill: true,
|
|
1285
|
-
className: "sb
|
|
1285
|
+
className: "sb:absolute sb:inset-0 sb:object-cover sb:pointer-events-none"
|
|
1286
1286
|
}
|
|
1287
|
-
), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1287
|
+
), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:absolute sb:right-1 sb:top-1 sb:z-30 sb:flex sb:items-center sb:justify-end sb:gap-3 sb:opacity-0 sb:transition-opacity sb:group-hover:opacity-100" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1288
1288
|
"button",
|
|
1289
1289
|
{
|
|
1290
|
-
className: "sb
|
|
1290
|
+
className: "sb:flex sb:h-8 sb:w-8 sb:items-center sb:justify-center sb:rounded-full sb:border sb:bg-secondary sb:text-secondary-foreground sb:opacity-90 sb:shadow sb:transition-opacity sb:hover:opacity-100",
|
|
1291
1291
|
onClick: () => handleSourceDelete(src)
|
|
1292
1292
|
},
|
|
1293
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.Trash2Icon, { className: "sb
|
|
1293
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.Trash2Icon, { className: "sb:h-4 sb:w-4" })
|
|
1294
1294
|
)))), queue.map((_, i) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1295
1295
|
MediaInputItem,
|
|
1296
1296
|
{
|
|
1297
1297
|
key: i,
|
|
1298
|
-
className:
|
|
1299
|
-
"sb
|
|
1298
|
+
className: chunk2CPAROZB_js.cn(
|
|
1299
|
+
"sb:flex sb:h-28 sb:w-28 sb:items-center sb:justify-center",
|
|
1300
1300
|
props.itemClassName
|
|
1301
1301
|
)
|
|
1302
1302
|
},
|
|
1303
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.Loader2Icon, { className: "sb
|
|
1303
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.Loader2Icon, { className: "sb:h-6 sb:w-6 sb:animate-spin" })
|
|
1304
1304
|
)), multiple || !multiple && !sources.length && !queue.length ? /* @__PURE__ */ React25__namespace.createElement(
|
|
1305
1305
|
"label",
|
|
1306
1306
|
{
|
|
1307
1307
|
htmlFor: id,
|
|
1308
|
-
className:
|
|
1309
|
-
"sb
|
|
1308
|
+
className: chunk2CPAROZB_js.cn(
|
|
1309
|
+
"sb:flex sb:h-28 sb:w-28 sb:cursor-pointer sb:items-center sb:justify-center sb:rounded-lg sb:border",
|
|
1310
1310
|
props.itemClassName
|
|
1311
1311
|
)
|
|
1312
1312
|
},
|
|
1313
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusIcon, { className: "sb
|
|
1313
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusIcon, { className: "sb:h-6 sb:w-6" }),
|
|
1314
1314
|
/* @__PURE__ */ React25__namespace.createElement(
|
|
1315
1315
|
"input",
|
|
1316
1316
|
{
|
|
@@ -1319,7 +1319,7 @@ var MediaInput = (props) => {
|
|
|
1319
1319
|
onChange: handleFilesAdd,
|
|
1320
1320
|
multiple,
|
|
1321
1321
|
accept: ".png,.jpg,.jpeg,.webp,.gif,.svg",
|
|
1322
|
-
className: "sb
|
|
1322
|
+
className: "sb:hidden"
|
|
1323
1323
|
}
|
|
1324
1324
|
)
|
|
1325
1325
|
) : null);
|
|
@@ -1328,8 +1328,8 @@ var MediaInputItem = (props) => {
|
|
|
1328
1328
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1329
1329
|
"div",
|
|
1330
1330
|
{
|
|
1331
|
-
className:
|
|
1332
|
-
"sb
|
|
1331
|
+
className: chunk2CPAROZB_js.cn(
|
|
1332
|
+
"sb:relative sb:h-28 sb:w-28 sb:overflow-hidden sb:rounded-lg sb:border",
|
|
1333
1333
|
props.className
|
|
1334
1334
|
)
|
|
1335
1335
|
},
|
|
@@ -1351,49 +1351,49 @@ var SelectTrigger = React25__namespace.forwardRef(({ className, children, ...pro
|
|
|
1351
1351
|
SelectPrimitive__namespace.Trigger,
|
|
1352
1352
|
{
|
|
1353
1353
|
ref,
|
|
1354
|
-
className:
|
|
1355
|
-
"sb
|
|
1354
|
+
className: chunk2CPAROZB_js.cn(
|
|
1355
|
+
"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 sb:placeholder:text-muted-foreground sb:focus:outline-hidden sb:focus:ring-2 sb:focus:ring-ring sb:focus:ring-offset-2 sb:disabled:cursor-not-allowed sb:disabled:opacity-50 sb:[&>span]:line-clamp-1",
|
|
1356
1356
|
className
|
|
1357
1357
|
),
|
|
1358
1358
|
...props
|
|
1359
1359
|
},
|
|
1360
1360
|
children,
|
|
1361
|
-
/* @__PURE__ */ React25__namespace.createElement(SelectPrimitive__namespace.Icon, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronDown, { className: "sb
|
|
1361
|
+
/* @__PURE__ */ React25__namespace.createElement(SelectPrimitive__namespace.Icon, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronDown, { className: "sb:h-4 sb:w-4 sb:opacity-50" }))
|
|
1362
1362
|
));
|
|
1363
1363
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
1364
1364
|
var SelectScrollUpButton = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1365
1365
|
SelectPrimitive__namespace.ScrollUpButton,
|
|
1366
1366
|
{
|
|
1367
1367
|
ref,
|
|
1368
|
-
className:
|
|
1369
|
-
"sb
|
|
1368
|
+
className: chunk2CPAROZB_js.cn(
|
|
1369
|
+
"sb:flex sb:cursor-default sb:items-center sb:justify-center sb:py-1",
|
|
1370
1370
|
className
|
|
1371
1371
|
),
|
|
1372
1372
|
...props
|
|
1373
1373
|
},
|
|
1374
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronUp, { className: "sb
|
|
1374
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronUp, { className: "sb:h-4 sb:w-4" })
|
|
1375
1375
|
));
|
|
1376
1376
|
SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
|
|
1377
1377
|
var SelectScrollDownButton = React25__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1378
1378
|
SelectPrimitive__namespace.ScrollDownButton,
|
|
1379
1379
|
{
|
|
1380
1380
|
ref,
|
|
1381
|
-
className:
|
|
1382
|
-
"sb
|
|
1381
|
+
className: chunk2CPAROZB_js.cn(
|
|
1382
|
+
"sb:flex sb:cursor-default sb:items-center sb:justify-center sb:py-1",
|
|
1383
1383
|
className
|
|
1384
1384
|
),
|
|
1385
1385
|
...props
|
|
1386
1386
|
},
|
|
1387
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronDown, { className: "sb
|
|
1387
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ChevronDown, { className: "sb:h-4 sb:w-4" })
|
|
1388
1388
|
));
|
|
1389
1389
|
SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
|
|
1390
1390
|
var SelectContent = React25__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(SelectPrimitive__namespace.Portal, null, /* @__PURE__ */ React25__namespace.createElement(
|
|
1391
1391
|
SelectPrimitive__namespace.Content,
|
|
1392
1392
|
{
|
|
1393
1393
|
ref,
|
|
1394
|
-
className:
|
|
1395
|
-
"sb
|
|
1396
|
-
position === "popper" && "data-[side=bottom]:
|
|
1394
|
+
className: chunk2CPAROZB_js.cn(
|
|
1395
|
+
"sb:relative sb:z-50 sb:max-h-96 sb:min-w-32 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",
|
|
1396
|
+
position === "popper" && "sb:data-[side=bottom]:translate-y-1 sb:data-[side=left]:-translate-x-1 sb:data-[side=right]:translate-x-1 sb:data-[side=top]:-translate-y-1",
|
|
1397
1397
|
className
|
|
1398
1398
|
),
|
|
1399
1399
|
position,
|
|
@@ -1403,9 +1403,9 @@ var SelectContent = React25__namespace.forwardRef(({ className, children, positi
|
|
|
1403
1403
|
/* @__PURE__ */ React25__namespace.createElement(
|
|
1404
1404
|
SelectPrimitive__namespace.Viewport,
|
|
1405
1405
|
{
|
|
1406
|
-
className:
|
|
1407
|
-
"sb
|
|
1408
|
-
position === "popper" && "sb
|
|
1406
|
+
className: chunk2CPAROZB_js.cn(
|
|
1407
|
+
"sb:p-1",
|
|
1408
|
+
position === "popper" && "sb:h-(--radix-select-trigger-height) sb:w-full sb:min-w-(--radix-select-trigger-width)"
|
|
1409
1409
|
)
|
|
1410
1410
|
},
|
|
1411
1411
|
children
|
|
@@ -1417,8 +1417,8 @@ var SelectLabel = React25__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1417
1417
|
SelectPrimitive__namespace.Label,
|
|
1418
1418
|
{
|
|
1419
1419
|
ref,
|
|
1420
|
-
className:
|
|
1421
|
-
"sb
|
|
1420
|
+
className: chunk2CPAROZB_js.cn(
|
|
1421
|
+
"sb:py-1.5 sb:pl-8 sb:pr-2 sb:text-sm sb:font-semibold",
|
|
1422
1422
|
className
|
|
1423
1423
|
),
|
|
1424
1424
|
...props
|
|
@@ -1429,13 +1429,13 @@ var SelectItem = React25__namespace.forwardRef(({ className, children, ...props
|
|
|
1429
1429
|
SelectPrimitive__namespace.Item,
|
|
1430
1430
|
{
|
|
1431
1431
|
ref,
|
|
1432
|
-
className:
|
|
1433
|
-
"sb
|
|
1432
|
+
className: chunk2CPAROZB_js.cn(
|
|
1433
|
+
"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-hidden sb:focus:bg-accent sb:focus:text-accent-foreground sb:data-disabled:pointer-events-none sb:data-disabled:opacity-50",
|
|
1434
1434
|
className
|
|
1435
1435
|
),
|
|
1436
1436
|
...props
|
|
1437
1437
|
},
|
|
1438
|
-
/* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1438
|
+
/* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:absolute sb:left-2 sb:flex sb:h-3.5 sb:w-3.5 sb:items-center sb:justify-center" }, /* @__PURE__ */ React25__namespace.createElement(SelectPrimitive__namespace.ItemIndicator, null, /* @__PURE__ */ React25__namespace.createElement(lucideReact.Check, { className: "sb:h-4 sb:w-4" }))),
|
|
1439
1439
|
/* @__PURE__ */ React25__namespace.createElement(SelectPrimitive__namespace.ItemText, null, children)
|
|
1440
1440
|
));
|
|
1441
1441
|
SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
|
|
@@ -1443,7 +1443,7 @@ var SelectSeparator = React25__namespace.forwardRef(({ className, ...props }, re
|
|
|
1443
1443
|
SelectPrimitive__namespace.Separator,
|
|
1444
1444
|
{
|
|
1445
1445
|
ref,
|
|
1446
|
-
className:
|
|
1446
|
+
className: chunk2CPAROZB_js.cn("sb:-mx-1 sb:my-1 sb:h-px sb:bg-muted", className),
|
|
1447
1447
|
...props
|
|
1448
1448
|
}
|
|
1449
1449
|
));
|
|
@@ -1453,8 +1453,8 @@ var Textarea = React25__namespace.forwardRef(
|
|
|
1453
1453
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1454
1454
|
"textarea",
|
|
1455
1455
|
{
|
|
1456
|
-
className:
|
|
1457
|
-
"sb
|
|
1456
|
+
className: chunk2CPAROZB_js.cn(
|
|
1457
|
+
"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 sb:placeholder:text-muted-foreground sb:focus-visible:outline-hidden sb:focus-visible:ring-1 sb:focus-visible:ring-ring sb:disabled:cursor-not-allowed sb:disabled:opacity-50",
|
|
1458
1458
|
className
|
|
1459
1459
|
),
|
|
1460
1460
|
ref,
|
|
@@ -1468,8 +1468,8 @@ Textarea.displayName = "Textarea";
|
|
|
1468
1468
|
// src/components/container-item-form.tsx
|
|
1469
1469
|
var ContainerItemForm = (props) => {
|
|
1470
1470
|
const { item } = props;
|
|
1471
|
-
const { patchItem } =
|
|
1472
|
-
const component =
|
|
1471
|
+
const { patchItem } = chunkYKPZPQ5D_js.useBuilder();
|
|
1472
|
+
const component = chunk2CPAROZB_js.builder.getComponent(item.component);
|
|
1473
1473
|
if (!component) {
|
|
1474
1474
|
throw new Error(
|
|
1475
1475
|
`[simple-builder]: Component with id ${item.component} not found in container item form component`
|
|
@@ -1492,7 +1492,7 @@ var ContainerItemForm = (props) => {
|
|
|
1492
1492
|
},
|
|
1493
1493
|
[patchItem, item.id]
|
|
1494
1494
|
);
|
|
1495
|
-
return /* @__PURE__ */ React25__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React25__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-
|
|
1495
|
+
return /* @__PURE__ */ React25__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React25__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4 sb:p-4" }, (component.inputs || []).map((input) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1496
1496
|
RenderFormField,
|
|
1497
1497
|
{
|
|
1498
1498
|
key: input.name,
|
|
@@ -1500,7 +1500,7 @@ var ContainerItemForm = (props) => {
|
|
|
1500
1500
|
input,
|
|
1501
1501
|
form
|
|
1502
1502
|
}
|
|
1503
|
-
)), /* @__PURE__ */ React25__namespace.createElement(
|
|
1503
|
+
)), /* @__PURE__ */ React25__namespace.createElement(chunkYKPZPQ5D_js.Button, { type: "submit", className: "w-full" }, "Opslaan"))));
|
|
1504
1504
|
};
|
|
1505
1505
|
var RenderFormField = (props) => {
|
|
1506
1506
|
const { type, input, form } = props;
|
|
@@ -1509,16 +1509,16 @@ var RenderFormField = (props) => {
|
|
|
1509
1509
|
name: input.name
|
|
1510
1510
|
});
|
|
1511
1511
|
if (input.multiple) {
|
|
1512
|
-
return /* @__PURE__ */ React25__namespace.createElement("fieldset", { className: "sb-
|
|
1512
|
+
return /* @__PURE__ */ React25__namespace.createElement("fieldset", { className: "sb:flex sb:flex-col sb:gap-2" }, /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4" }, fieldArray.fields.map(
|
|
1513
1513
|
(field, i) => type !== "grouped" ? /* @__PURE__ */ React25__namespace.createElement(
|
|
1514
1514
|
FormField,
|
|
1515
1515
|
{
|
|
1516
1516
|
key: field.id,
|
|
1517
1517
|
control: form.control,
|
|
1518
1518
|
name: `${input.name}.${i}`,
|
|
1519
|
-
render: ({ field: field2 }) => /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1519
|
+
render: ({ field: field2 }) => /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:items-center sb:gap-3" }, /* @__PURE__ */ React25__namespace.createElement(RenderInput, { field: field2, type: input.type }), /* @__PURE__ */ React25__namespace.createElement("button", { type: "button", onClick: () => fieldArray.remove(i) }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.XIcon, { className: "sb:h-4 sb:w-4" })))
|
|
1520
1520
|
}
|
|
1521
|
-
) : /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1521
|
+
) : /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:items-center sb:relative" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1522
1522
|
RenderFormField,
|
|
1523
1523
|
{
|
|
1524
1524
|
key: field.id,
|
|
@@ -1536,23 +1536,23 @@ var RenderFormField = (props) => {
|
|
|
1536
1536
|
{
|
|
1537
1537
|
type: "button",
|
|
1538
1538
|
onClick: () => fieldArray.remove(i),
|
|
1539
|
-
className: "sb
|
|
1539
|
+
className: "sb:absolute sb:top-2 sb:right-2 sb:text-foreground/70 sb:hover:text-foreground"
|
|
1540
1540
|
},
|
|
1541
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.XIcon, { className: "sb
|
|
1541
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.XIcon, { className: "sb:h-4 sb:w-4" })
|
|
1542
1542
|
))
|
|
1543
1543
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
1544
|
-
|
|
1544
|
+
chunkYKPZPQ5D_js.Button,
|
|
1545
1545
|
{
|
|
1546
1546
|
type: "button",
|
|
1547
1547
|
variant: "outline",
|
|
1548
1548
|
size: "sm",
|
|
1549
|
-
className:
|
|
1550
|
-
"sb
|
|
1551
|
-
type === "grouped" && "sb
|
|
1549
|
+
className: chunk2CPAROZB_js.cn(
|
|
1550
|
+
"sb:w-[89%] sb:border-2 sb:border-dashed sb:text-muted-foreground",
|
|
1551
|
+
type === "grouped" && "sb:w-full"
|
|
1552
1552
|
),
|
|
1553
1553
|
onClick: () => fieldArray.append(void 0)
|
|
1554
1554
|
},
|
|
1555
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusCircleIcon, { className: "sb
|
|
1555
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusCircleIcon, { className: "sb:h-4 sb:w-4" })
|
|
1556
1556
|
)));
|
|
1557
1557
|
}
|
|
1558
1558
|
switch (type) {
|
|
@@ -1572,7 +1572,7 @@ var RenderFormField = (props) => {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
);
|
|
1574
1574
|
case "richText":
|
|
1575
|
-
return /* @__PURE__ */ React25__namespace.createElement(Dialog, null, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-
|
|
1575
|
+
return /* @__PURE__ */ React25__namespace.createElement(Dialog, null, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-2" }, /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25__namespace.createElement(DialogTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(chunkYKPZPQ5D_js.Button, { variant: "outline", className: "sb:w-full", type: "button" }, input.friendlyName || input.name, " bewerken"))), /* @__PURE__ */ React25__namespace.createElement(DialogContent, { className: "sb:max-w-3xl sb:p-0" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:h-full sb:max-h-svh sb:w-full sb:flex-col sb:sm:max-h-[90svh]" }, /* @__PURE__ */ React25__namespace.createElement(DialogHeader, { className: "sb:flex-none sb:border-b sb:p-6" }, /* @__PURE__ */ React25__namespace.createElement(DialogTitle, null, input.friendlyName || input.name, " editor")), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex-1 sb:overflow-y-auto" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1576
1576
|
FormField,
|
|
1577
1577
|
{
|
|
1578
1578
|
key: input.name,
|
|
@@ -1588,11 +1588,11 @@ var RenderFormField = (props) => {
|
|
|
1588
1588
|
key: input.name,
|
|
1589
1589
|
control: form.control,
|
|
1590
1590
|
name: input.name,
|
|
1591
|
-
render: ({ field }) => /* @__PURE__ */ React25__namespace.createElement(FormItem, { className: "sb
|
|
1591
|
+
render: ({ field }) => /* @__PURE__ */ React25__namespace.createElement(FormItem, { className: "sb:flex sb:flex-row sb:items-center sb:justify-between sb:space-y-0" }, /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25__namespace.createElement(FormControl, null, /* @__PURE__ */ React25__namespace.createElement(RenderInput, { type, field })), input.helperText && /* @__PURE__ */ React25__namespace.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React25__namespace.createElement(FormMessage, null))
|
|
1592
1592
|
}
|
|
1593
1593
|
);
|
|
1594
1594
|
case "grouped":
|
|
1595
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-
|
|
1595
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-2 sb:w-full" }, input.friendlyName !== "" && /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-2 sb:p-3 sb:w-full sb:border sb:rounded-lg" }, input.inputs.map((sub) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1596
1596
|
RenderFormField,
|
|
1597
1597
|
{
|
|
1598
1598
|
key: `${input.name}.${sub.name}`,
|
|
@@ -1627,18 +1627,18 @@ var RenderInput = (props) => {
|
|
|
1627
1627
|
return /* @__PURE__ */ React25__namespace.createElement(ColorPicker, { color: field.value, onColorChange: field.onChange });
|
|
1628
1628
|
case "date":
|
|
1629
1629
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1630
|
-
|
|
1630
|
+
chunkYKPZPQ5D_js.Button,
|
|
1631
1631
|
{
|
|
1632
1632
|
variant: "outline",
|
|
1633
1633
|
size: "sm",
|
|
1634
|
-
className:
|
|
1635
|
-
"sb
|
|
1636
|
-
!field.value && "sb
|
|
1634
|
+
className: chunk2CPAROZB_js.cn(
|
|
1635
|
+
"sb:w-full sb:flex sb:justify-start sb:text-left sb:font-normal",
|
|
1636
|
+
!field.value && "sb:text-muted-foreground"
|
|
1637
1637
|
)
|
|
1638
1638
|
},
|
|
1639
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.CalendarIcon, { className: "sb
|
|
1639
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.CalendarIcon, { className: "sb:mr-2 sb:h-4 sb:w-4" }),
|
|
1640
1640
|
field.value && !Array.isArray(field.value) ? dateFns.format(field.value, "PPP") : /* @__PURE__ */ React25__namespace.createElement("span", null, "Pick a date")
|
|
1641
|
-
)), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb
|
|
1641
|
+
)), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb:w-auto sb:p-0", align: "start" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1642
1642
|
Calendar,
|
|
1643
1643
|
{
|
|
1644
1644
|
mode: "single",
|
|
@@ -1653,8 +1653,8 @@ var RenderInput = (props) => {
|
|
|
1653
1653
|
return /* @__PURE__ */ React25__namespace.createElement(
|
|
1654
1654
|
MediaInput,
|
|
1655
1655
|
{
|
|
1656
|
-
className: "sb
|
|
1657
|
-
itemClassName: "sb
|
|
1656
|
+
className: "sb:grid sb:grid-cols-2 sb:gap-1",
|
|
1657
|
+
itemClassName: "sb:aspect-video sb:h-auto sb:w-full",
|
|
1658
1658
|
multiple: false,
|
|
1659
1659
|
files: field.value ? [field.value] : [],
|
|
1660
1660
|
onFilesChange: (files) => field.onChange(files[0]),
|
|
@@ -1671,11 +1671,11 @@ var RenderInput = (props) => {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
var Tabs = TabsPrimitive__namespace.Root;
|
|
1674
|
-
var tabsListVariants =
|
|
1674
|
+
var tabsListVariants = chunk2CPAROZB_js.tv({
|
|
1675
1675
|
variants: {
|
|
1676
1676
|
variant: {
|
|
1677
|
-
contained: "sb
|
|
1678
|
-
text: "sb
|
|
1677
|
+
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",
|
|
1678
|
+
text: "sb:flex sb:items-center sb:border-b sb:px-4 sb:gap-6"
|
|
1679
1679
|
}
|
|
1680
1680
|
},
|
|
1681
1681
|
defaultVariants: {
|
|
@@ -1691,11 +1691,11 @@ var TabsList = React25__namespace.forwardRef(({ variant, className, ...props },
|
|
|
1691
1691
|
}
|
|
1692
1692
|
));
|
|
1693
1693
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
1694
|
-
var tabsTriggerVariants =
|
|
1694
|
+
var tabsTriggerVariants = chunk2CPAROZB_js.tv({
|
|
1695
1695
|
variants: {
|
|
1696
1696
|
variant: {
|
|
1697
|
-
contained: "sb
|
|
1698
|
-
text: "sb
|
|
1697
|
+
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 sb:focus-visible:outline-hidden sb:focus-visible:ring-2 sb:focus-visible:ring-ring sb:focus-visible:ring-offset-2 sb:disabled:pointer-events-none sb:disabled:opacity-50 sb:data-[state=active]:bg-background sb:data-[state=active]:text-foreground sb:data-[state=active]:shadow-sm",
|
|
1698
|
+
text: "sb:inline-flex sb:font-roboto sb:items-center sb:justify-center sb:whitespace-nowrap sb:py-3 sb:text-sm sb:font-medium sb:transition-all sb:focus-visible:outline-hidden sb:disabled:pointer-events-none sb:disabled:opacity-50 sb:data-[state=active]:border-black sb:border-b-2 sb:border-transparent sb:data-[state=active]:text-foreground sb:text-muted-foreground"
|
|
1699
1699
|
}
|
|
1700
1700
|
},
|
|
1701
1701
|
defaultVariants: {
|
|
@@ -1715,8 +1715,8 @@ var TabsContent = React25__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
1715
1715
|
TabsPrimitive__namespace.Content,
|
|
1716
1716
|
{
|
|
1717
1717
|
ref,
|
|
1718
|
-
className:
|
|
1719
|
-
"sb
|
|
1718
|
+
className: chunk2CPAROZB_js.cn(
|
|
1719
|
+
"sb:ring-offset-background sb:font-roboto sb:focus-visible:outline-hidden sb:focus-visible:ring-2 sb:focus-visible:ring-ring sb:focus-visible:ring-offset-2",
|
|
1720
1720
|
className
|
|
1721
1721
|
),
|
|
1722
1722
|
...props
|
|
@@ -1754,35 +1754,35 @@ var BackgroundPicker = (props) => {
|
|
|
1754
1754
|
return "solid";
|
|
1755
1755
|
}, [background]);
|
|
1756
1756
|
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1757
|
-
|
|
1757
|
+
chunkYKPZPQ5D_js.Button,
|
|
1758
1758
|
{
|
|
1759
1759
|
variant: "outline",
|
|
1760
1760
|
size: "sm",
|
|
1761
|
-
className:
|
|
1762
|
-
"sb
|
|
1763
|
-
!background && "sb
|
|
1761
|
+
className: chunk2CPAROZB_js.cn(
|
|
1762
|
+
"sb:justify-start sb:text-left sb:font-normal sb:normal-case sb:w-full",
|
|
1763
|
+
!background && "sb:text-muted-foreground",
|
|
1764
1764
|
className
|
|
1765
1765
|
)
|
|
1766
1766
|
},
|
|
1767
|
-
/* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1767
|
+
/* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:w-full sb:flex sb:items-center sb:gap-2" }, background ? /* @__PURE__ */ React25__namespace.createElement(
|
|
1768
1768
|
"div",
|
|
1769
1769
|
{
|
|
1770
|
-
className: "sb
|
|
1770
|
+
className: "sb:h-4 sb:w-4 sb:rounded sb:bg-center! sb:bg-cover! sb:transition-all sb:border",
|
|
1771
1771
|
style: { background }
|
|
1772
1772
|
}
|
|
1773
|
-
) : /* @__PURE__ */ React25__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb
|
|
1774
|
-
)), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb
|
|
1773
|
+
) : /* @__PURE__ */ React25__namespace.createElement(lucideReact.PaintbrushIcon, { className: "sb:h-4 sb:w-4" }), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:truncate sb:flex-1" }, background ? background : "Kies een achtergrond"))
|
|
1774
|
+
)), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb:w-64 sb:p-0" }, /* @__PURE__ */ React25__namespace.createElement(Tabs, { defaultValue: defaultTab }, /* @__PURE__ */ React25__namespace.createElement(TabsList, { className: "sb:w-full" }, /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { className: "sb:flex-1", value: "solid" }, "Solid"), /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { className: "sb:flex-1", value: "gradient" }, "Gradient"), /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { className: "sb:flex-1", value: "image" }, "Image")), /* @__PURE__ */ React25__namespace.createElement(
|
|
1775
1775
|
TabsContent,
|
|
1776
1776
|
{
|
|
1777
1777
|
value: "solid",
|
|
1778
|
-
className: "data-[state=active]:
|
|
1778
|
+
className: "sb:data-[state=active]:flex sb:flex-wrap sb:gap-1 sb:p-4"
|
|
1779
1779
|
},
|
|
1780
1780
|
solids.map((s) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1781
1781
|
"div",
|
|
1782
1782
|
{
|
|
1783
1783
|
key: s,
|
|
1784
1784
|
style: { background: s },
|
|
1785
|
-
className: "sb
|
|
1785
|
+
className: "sb:rounded-md sb:h-6 sb:w-6 sb:cursor-pointer sb:active:scale-105 sb:border",
|
|
1786
1786
|
onClick: () => onBackgroundChange(s)
|
|
1787
1787
|
}
|
|
1788
1788
|
))
|
|
@@ -1790,7 +1790,7 @@ var BackgroundPicker = (props) => {
|
|
|
1790
1790
|
TabsContent,
|
|
1791
1791
|
{
|
|
1792
1792
|
value: "gradient",
|
|
1793
|
-
className: "data-[state=active]:
|
|
1793
|
+
className: "sb:data-[state=active]:flex sb:flex-wrap sb:gap-1 sb:p-4"
|
|
1794
1794
|
},
|
|
1795
1795
|
gradients.map((s) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1796
1796
|
"div",
|
|
@@ -1801,11 +1801,11 @@ var BackgroundPicker = (props) => {
|
|
|
1801
1801
|
onClick: () => onBackgroundChange(s)
|
|
1802
1802
|
}
|
|
1803
1803
|
))
|
|
1804
|
-
), /* @__PURE__ */ React25__namespace.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1804
|
+
), /* @__PURE__ */ React25__namespace.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:p-4 sb:border-b" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1805
1805
|
MediaInput,
|
|
1806
1806
|
{
|
|
1807
|
-
className: "sb
|
|
1808
|
-
itemClassName: "sb
|
|
1807
|
+
className: "sb:grid sb:grid-cols-2 sb:gap-1",
|
|
1808
|
+
itemClassName: "sb:aspect-video sb:h-auto sb:w-full",
|
|
1809
1809
|
multiple: false,
|
|
1810
1810
|
onFilesChange: (files) => {
|
|
1811
1811
|
if (!files.length)
|
|
@@ -1817,12 +1817,12 @@ var BackgroundPicker = (props) => {
|
|
|
1817
1817
|
"media-input: Error: " + e?.description
|
|
1818
1818
|
)
|
|
1819
1819
|
}
|
|
1820
|
-
)), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1820
|
+
)), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:gap-1 sb:p-4" }, images.map((s) => /* @__PURE__ */ React25__namespace.createElement(
|
|
1821
1821
|
"div",
|
|
1822
1822
|
{
|
|
1823
1823
|
key: s,
|
|
1824
1824
|
style: { backgroundImage: s },
|
|
1825
|
-
className: "sb
|
|
1825
|
+
className: "sb:rounded-md sb:bg-cover sb:bg-center sb:aspect-video sb:w-full sb:cursor-pointer sb:border sb:active:scale-105",
|
|
1826
1826
|
onClick: () => onBackgroundChange(s)
|
|
1827
1827
|
}
|
|
1828
1828
|
)))))));
|
|
@@ -1837,14 +1837,14 @@ var SpacingInput = (props) => {
|
|
|
1837
1837
|
return;
|
|
1838
1838
|
props.onChange(stringify(value));
|
|
1839
1839
|
}, [value, props.onChange]);
|
|
1840
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1840
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:grid sb:grid-cols-[1fr_auto] sb:gap-3" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:items-center sb:gap-3" }, !indipendent ? /* @__PURE__ */ React25__namespace.createElement(React25__namespace.Fragment, null, /* @__PURE__ */ React25__namespace.createElement(
|
|
1841
1841
|
AdvancedInput,
|
|
1842
1842
|
{
|
|
1843
1843
|
value: value.left,
|
|
1844
1844
|
pattern: "\\d+",
|
|
1845
1845
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, left: +value2, right: +value2 })),
|
|
1846
|
-
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb
|
|
1847
|
-
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1846
|
+
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb:h-4 sb:w-4" }),
|
|
1847
|
+
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1848
1848
|
}
|
|
1849
1849
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
1850
1850
|
AdvancedInput,
|
|
@@ -1852,8 +1852,8 @@ var SpacingInput = (props) => {
|
|
|
1852
1852
|
value: value.top,
|
|
1853
1853
|
pattern: "\\d+",
|
|
1854
1854
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, top: +value2, bottom: +value2 })),
|
|
1855
|
-
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb
|
|
1856
|
-
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1855
|
+
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalSpaceAroundIcon, { className: "sb:h-4 sb:w-4 sb:rotate-90" }),
|
|
1856
|
+
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1857
1857
|
}
|
|
1858
1858
|
)) : /* @__PURE__ */ React25__namespace.createElement(React25__namespace.Fragment, null, /* @__PURE__ */ React25__namespace.createElement(
|
|
1859
1859
|
AdvancedInput,
|
|
@@ -1861,8 +1861,8 @@ var SpacingInput = (props) => {
|
|
|
1861
1861
|
value: value.left,
|
|
1862
1862
|
pattern: "\\d+",
|
|
1863
1863
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, left: +value2 })),
|
|
1864
|
-
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1865
|
-
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1864
|
+
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4" }),
|
|
1865
|
+
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1866
1866
|
}
|
|
1867
1867
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
1868
1868
|
AdvancedInput,
|
|
@@ -1870,8 +1870,8 @@ var SpacingInput = (props) => {
|
|
|
1870
1870
|
value: value.top,
|
|
1871
1871
|
pattern: "\\d+",
|
|
1872
1872
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, top: +value2 })),
|
|
1873
|
-
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1874
|
-
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1873
|
+
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4 sb:rotate-90" }),
|
|
1874
|
+
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1875
1875
|
}
|
|
1876
1876
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
1877
1877
|
AdvancedInput,
|
|
@@ -1879,8 +1879,8 @@ var SpacingInput = (props) => {
|
|
|
1879
1879
|
value: value.right,
|
|
1880
1880
|
pattern: "\\d+",
|
|
1881
1881
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, right: +value2 })),
|
|
1882
|
-
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1883
|
-
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1882
|
+
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4 sb:rotate-180" }),
|
|
1883
|
+
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1884
1884
|
}
|
|
1885
1885
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
1886
1886
|
AdvancedInput,
|
|
@@ -1888,19 +1888,19 @@ var SpacingInput = (props) => {
|
|
|
1888
1888
|
value: value.bottom,
|
|
1889
1889
|
pattern: "\\d+",
|
|
1890
1890
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, bottom: +value2 })),
|
|
1891
|
-
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1892
|
-
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb
|
|
1891
|
+
prepend: /* @__PURE__ */ React25__namespace.createElement(lucideReact.AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4 sb:-rotate-90" }),
|
|
1892
|
+
append: /* @__PURE__ */ React25__namespace.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1893
1893
|
}
|
|
1894
|
-
))), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
1894
|
+
))), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:shrink-0" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
1895
1895
|
Toggle,
|
|
1896
1896
|
{
|
|
1897
|
-
className: "sb
|
|
1897
|
+
className: "sb:shrink-0 sb:flex sb:w-8 sb:h-8 sb:p-0",
|
|
1898
1898
|
variant: "outline",
|
|
1899
1899
|
size: "sm",
|
|
1900
1900
|
pressed: indipendent,
|
|
1901
1901
|
onPressedChange: setIndipendent
|
|
1902
1902
|
},
|
|
1903
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ScanIcon, { className: "sb
|
|
1903
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ScanIcon, { className: "sb:h-4 sb:w-4" })
|
|
1904
1904
|
)));
|
|
1905
1905
|
};
|
|
1906
1906
|
var isIndipendent = (value) => {
|
|
@@ -1954,7 +1954,7 @@ var designSchema = zod.z.object({
|
|
|
1954
1954
|
});
|
|
1955
1955
|
var ItemDesignForm = (props) => {
|
|
1956
1956
|
const { item } = props;
|
|
1957
|
-
const component =
|
|
1957
|
+
const component = chunk2CPAROZB_js.builder.getComponent(item.component);
|
|
1958
1958
|
if (!component) {
|
|
1959
1959
|
throw new Error(
|
|
1960
1960
|
`[simple-builder]: Component "${item.component}" not found`
|
|
@@ -1996,7 +1996,7 @@ var ItemDesignForm = (props) => {
|
|
|
1996
1996
|
mobile: getDefaultDeviceValues("mobile")
|
|
1997
1997
|
}
|
|
1998
1998
|
});
|
|
1999
|
-
const { patchItem } =
|
|
1999
|
+
const { patchItem } = chunkYKPZPQ5D_js.useBuilder();
|
|
2000
2000
|
const onSubmit = React25__namespace.useCallback(
|
|
2001
2001
|
(values) => {
|
|
2002
2002
|
const { container, hidden, desktop, mobile } = values;
|
|
@@ -2039,14 +2039,14 @@ var ItemDesignForm = (props) => {
|
|
|
2039
2039
|
[patchItem, item.id, form.formState.dirtyFields]
|
|
2040
2040
|
);
|
|
2041
2041
|
const [device, setDevice] = React25__namespace.useState("desktop");
|
|
2042
|
-
return /* @__PURE__ */ React25__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React25__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-
|
|
2042
|
+
return /* @__PURE__ */ React25__namespace.createElement(Form, { ...form }, /* @__PURE__ */ React25__namespace.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4 sb:p-4" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2043
2043
|
Tabs,
|
|
2044
2044
|
{
|
|
2045
2045
|
defaultValue: device,
|
|
2046
2046
|
onValueChange: (device2) => setDevice(device2)
|
|
2047
2047
|
},
|
|
2048
|
-
/* @__PURE__ */ React25__namespace.createElement(TabsList, { className: "sb
|
|
2049
|
-
), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb-
|
|
2048
|
+
/* @__PURE__ */ React25__namespace.createElement(TabsList, { className: "sb:h-9 sb:grid sb:w-full sb:grid-cols-2" }, /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { value: "desktop", className: "sb:text-xs" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.MonitorIcon, { className: "sb:h-4 sb:w-4 sb:mr-2" }), /* @__PURE__ */ React25__namespace.createElement("span", null, "Desktop")), /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { value: "mobile", className: "sb:text-xs" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.SmartphoneIcon, { className: "sb:h-4 sb:w-4 sb:mr-2" }), /* @__PURE__ */ React25__namespace.createElement("span", null, "Mobiel")))
|
|
2049
|
+
), /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4" }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2050
2050
|
FormField,
|
|
2051
2051
|
{
|
|
2052
2052
|
control: form.control,
|
|
@@ -2086,7 +2086,7 @@ var ItemDesignForm = (props) => {
|
|
|
2086
2086
|
{
|
|
2087
2087
|
control: form.control,
|
|
2088
2088
|
name: "container",
|
|
2089
|
-
render: ({ field }) => /* @__PURE__ */ React25__namespace.createElement(FormItem, { className: "sb
|
|
2089
|
+
render: ({ field }) => /* @__PURE__ */ React25__namespace.createElement(FormItem, { className: "sb:flex sb:flex-row sb:items-center sb:justify-between sb:space-y-0" }, /* @__PURE__ */ React25__namespace.createElement(FormLabel, null, "Volledige breedte"), /* @__PURE__ */ React25__namespace.createElement(FormControl, null, /* @__PURE__ */ React25__namespace.createElement(
|
|
2090
2090
|
Switch,
|
|
2091
2091
|
{
|
|
2092
2092
|
checked: !field.value,
|
|
@@ -2122,16 +2122,16 @@ var ItemDesignForm = (props) => {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
)), /* @__PURE__ */ React25__namespace.createElement(FormMessage, null))
|
|
2124
2124
|
}
|
|
2125
|
-
)), /* @__PURE__ */ React25__namespace.createElement(
|
|
2125
|
+
)), /* @__PURE__ */ React25__namespace.createElement(chunkYKPZPQ5D_js.Button, { type: "submit", className: "w-full" }, "Opslaan"))));
|
|
2126
2126
|
};
|
|
2127
2127
|
var ScrollArea = React25__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React25__namespace.createElement(
|
|
2128
2128
|
ScrollAreaPrimitive__namespace.Root,
|
|
2129
2129
|
{
|
|
2130
2130
|
ref,
|
|
2131
|
-
className:
|
|
2131
|
+
className: chunk2CPAROZB_js.cn("sb:relative sb:overflow-hidden", className),
|
|
2132
2132
|
...props
|
|
2133
2133
|
},
|
|
2134
|
-
/* @__PURE__ */ React25__namespace.createElement(ScrollAreaPrimitive__namespace.Viewport, { className: "sb
|
|
2134
|
+
/* @__PURE__ */ React25__namespace.createElement(ScrollAreaPrimitive__namespace.Viewport, { className: "sb:h-full sb:max-h-[80vh] sb:w-full sb:rounded-[inherit]" }, children),
|
|
2135
2135
|
/* @__PURE__ */ React25__namespace.createElement(ScrollBar, null),
|
|
2136
2136
|
/* @__PURE__ */ React25__namespace.createElement(ScrollAreaPrimitive__namespace.Corner, null)
|
|
2137
2137
|
));
|
|
@@ -2141,51 +2141,51 @@ var ScrollBar = React25__namespace.forwardRef(({ className, orientation = "verti
|
|
|
2141
2141
|
{
|
|
2142
2142
|
ref,
|
|
2143
2143
|
orientation,
|
|
2144
|
-
className:
|
|
2145
|
-
"sb
|
|
2146
|
-
orientation === "vertical" && "sb
|
|
2147
|
-
orientation === "horizontal" && "sb
|
|
2144
|
+
className: chunk2CPAROZB_js.cn(
|
|
2145
|
+
"sb:flex sb:touch-none sb:select-none sb:transition-colors",
|
|
2146
|
+
orientation === "vertical" && "sb:h-full sb:w-2.5 sb:border-l sb:border-l-transparent sb:p-px",
|
|
2147
|
+
orientation === "horizontal" && "sb:h-2.5 sb:flex-col sb:border-t sb:border-t-transparent sb:p-px",
|
|
2148
2148
|
className
|
|
2149
2149
|
),
|
|
2150
2150
|
...props
|
|
2151
2151
|
},
|
|
2152
|
-
/* @__PURE__ */ React25__namespace.createElement(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "sb
|
|
2152
|
+
/* @__PURE__ */ React25__namespace.createElement(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "sb:relative sb:flex-1 sb:rounded-full sb:bg-border" })
|
|
2153
2153
|
));
|
|
2154
2154
|
ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
|
|
2155
2155
|
|
|
2156
2156
|
// src/components/container-item-toolbar.tsx
|
|
2157
2157
|
var ContainerItemToolbar = (props) => {
|
|
2158
2158
|
const { contentId, canBringUp = false, canBringDown = false } = props;
|
|
2159
|
-
const { bringUp, bringDown } =
|
|
2160
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
2161
|
-
|
|
2159
|
+
const { bringUp, bringDown } = chunkYKPZPQ5D_js.useBuilder();
|
|
2160
|
+
return /* @__PURE__ */ React25__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__ */ React25__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__ */ React25__namespace.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React25__namespace.createElement(
|
|
2161
|
+
chunkYKPZPQ5D_js.Button,
|
|
2162
2162
|
{
|
|
2163
2163
|
variant: "ghost",
|
|
2164
|
-
className: "sb
|
|
2164
|
+
className: "sb:w-8 sb:h-8 sb:p-0",
|
|
2165
2165
|
onClick: () => bringUp(contentId),
|
|
2166
2166
|
disabled: !canBringUp
|
|
2167
2167
|
},
|
|
2168
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ArrowUp, { className: "sb
|
|
2168
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ArrowUp, { className: "sb:h-5 sb:w-5" })
|
|
2169
2169
|
), /* @__PURE__ */ React25__namespace.createElement(
|
|
2170
|
-
|
|
2170
|
+
chunkYKPZPQ5D_js.Button,
|
|
2171
2171
|
{
|
|
2172
2172
|
variant: "ghost",
|
|
2173
|
-
className: "sb
|
|
2173
|
+
className: "sb:w-8 sb:h-8 sb:p-0",
|
|
2174
2174
|
onClick: () => bringDown(contentId),
|
|
2175
2175
|
disabled: !canBringDown
|
|
2176
2176
|
},
|
|
2177
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ArrowDown, { className: "sb
|
|
2177
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.ArrowDown, { className: "sb:h-5 sb:w-5" })
|
|
2178
2178
|
), /* @__PURE__ */ React25__namespace.createElement(DeleteButton, { contentId })));
|
|
2179
2179
|
};
|
|
2180
2180
|
var EditButton = ({ id }) => {
|
|
2181
|
-
return /* @__PURE__ */ React25__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2181
|
+
return /* @__PURE__ */ React25__namespace.createElement(Popover, { modal: true }, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(chunkYKPZPQ5D_js.Button, { variant: "ghost", className: "sb:w-8 sb:h-8 sb:p-0" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.Edit2Icon, { className: "sb:h-5 sb:w-5" }))), /* @__PURE__ */ React25__namespace.createElement(
|
|
2182
2182
|
PopoverContent,
|
|
2183
2183
|
{
|
|
2184
2184
|
side: "left",
|
|
2185
2185
|
align: "start",
|
|
2186
2186
|
sideOffset: 16,
|
|
2187
2187
|
alignOffset: -8,
|
|
2188
|
-
className: "sb
|
|
2188
|
+
className: "sb:p-0 sb:relative",
|
|
2189
2189
|
collisionPadding: 16
|
|
2190
2190
|
},
|
|
2191
2191
|
/* @__PURE__ */ React25__namespace.createElement(EditPopoverInner, { id })
|
|
@@ -2193,7 +2193,7 @@ var EditButton = ({ id }) => {
|
|
|
2193
2193
|
};
|
|
2194
2194
|
var EditPopoverInner = (props) => {
|
|
2195
2195
|
const { id } = props;
|
|
2196
|
-
const { getItem } =
|
|
2196
|
+
const { getItem } = chunkYKPZPQ5D_js.useBuilder();
|
|
2197
2197
|
const item = getItem(id);
|
|
2198
2198
|
if (!item) {
|
|
2199
2199
|
throw new Error(
|
|
@@ -2203,18 +2203,18 @@ var EditPopoverInner = (props) => {
|
|
|
2203
2203
|
return /* @__PURE__ */ React25__namespace.createElement(Tabs, null, /* @__PURE__ */ React25__namespace.createElement(TabsList, { variant: "text", defaultValue: "content" }, /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { variant: "text", value: "content" }, "Inhoud"), /* @__PURE__ */ React25__namespace.createElement(TabsTrigger, { variant: "text", value: "design" }, "Design")), /* @__PURE__ */ React25__namespace.createElement(TabsContent, { value: "content" }, /* @__PURE__ */ React25__namespace.createElement(ScrollArea, null, /* @__PURE__ */ React25__namespace.createElement(ContainerItemForm, { item }))), /* @__PURE__ */ React25__namespace.createElement(TabsContent, { value: "design" }, /* @__PURE__ */ React25__namespace.createElement(ItemDesignForm, { item })));
|
|
2204
2204
|
};
|
|
2205
2205
|
var DeleteButton = ({ contentId }) => {
|
|
2206
|
-
const { deleteContent } =
|
|
2206
|
+
const { deleteContent } = chunkYKPZPQ5D_js.useBuilder();
|
|
2207
2207
|
return /* @__PURE__ */ React25__namespace.createElement(AlertDialog, null, /* @__PURE__ */ React25__namespace.createElement(AlertDialogTrigger, { asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2208
|
-
|
|
2208
|
+
chunkYKPZPQ5D_js.Button,
|
|
2209
2209
|
{
|
|
2210
2210
|
variant: "ghost",
|
|
2211
|
-
className: "sb
|
|
2211
|
+
className: "sb:w-8 sb:h-8 sb:p-0 sb:text-destructive"
|
|
2212
2212
|
},
|
|
2213
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.Trash2Icon, { className: "sb
|
|
2213
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.Trash2Icon, { className: "sb:h-5 sb:w-5" })
|
|
2214
2214
|
)), /* @__PURE__ */ React25__namespace.createElement(AlertDialogContent, null, /* @__PURE__ */ React25__namespace.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React25__namespace.createElement(AlertDialogFooter, null, /* @__PURE__ */ React25__namespace.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React25__namespace.createElement(
|
|
2215
2215
|
AlertDialogAction,
|
|
2216
2216
|
{
|
|
2217
|
-
className:
|
|
2217
|
+
className: chunkYKPZPQ5D_js.buttonVariants({ variant: "destructive" }),
|
|
2218
2218
|
onClick: () => deleteContent(contentId)
|
|
2219
2219
|
},
|
|
2220
2220
|
"Verwijderen"
|
|
@@ -2230,7 +2230,7 @@ var BuildContainerInner = (props) => {
|
|
|
2230
2230
|
"[simple-builder]: Multiple content blocks detected when using property multiple false."
|
|
2231
2231
|
);
|
|
2232
2232
|
}
|
|
2233
|
-
return /* @__PURE__ */ React25__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React25__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React25__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React25__namespace.createElement(React25__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
2233
|
+
return /* @__PURE__ */ React25__namespace.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React25__namespace.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React25__namespace.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React25__namespace.createElement(React25__namespace.Fragment, { key: item.id }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:relative sb-container-item" }, /* @__PURE__ */ React25__namespace.createElement(chunk2CPAROZB_js.DesignWrapper, { building: true, styles: item.styles }, chunk2CPAROZB_js.builder.bindComponent(item, true)), /* @__PURE__ */ React25__namespace.createElement(
|
|
2234
2234
|
ContainerItemToolbar,
|
|
2235
2235
|
{
|
|
2236
2236
|
contentId: item.id,
|
|
@@ -2248,15 +2248,15 @@ var BuildContainerInner = (props) => {
|
|
|
2248
2248
|
};
|
|
2249
2249
|
var build_container_client_default = BuildContainerInner;
|
|
2250
2250
|
var AddContentButton = (props) => {
|
|
2251
|
-
const components =
|
|
2252
|
-
const { addContent } =
|
|
2253
|
-
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb
|
|
2251
|
+
const components = chunk2CPAROZB_js.builder.getComponents();
|
|
2252
|
+
const { addContent } = chunkYKPZPQ5D_js.useBuilder();
|
|
2253
|
+
return /* @__PURE__ */ React25__namespace.createElement(Popover, null, /* @__PURE__ */ React25__namespace.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25__namespace.createElement(PopoverContent, { className: "sb:p-1" }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:gap-2" }, components.map((component) => {
|
|
2254
2254
|
const Icon2 = component.icon ?? lucideReact.ImageIcon;
|
|
2255
2255
|
return /* @__PURE__ */ React25__namespace.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React25__namespace.createElement(
|
|
2256
|
-
|
|
2256
|
+
chunkYKPZPQ5D_js.Button,
|
|
2257
2257
|
{
|
|
2258
2258
|
variant: "ghost",
|
|
2259
|
-
className: "sb
|
|
2259
|
+
className: "sb:justify-start",
|
|
2260
2260
|
onClick: () => {
|
|
2261
2261
|
addContent(
|
|
2262
2262
|
component.name,
|
|
@@ -2266,22 +2266,22 @@ var AddContentButton = (props) => {
|
|
|
2266
2266
|
);
|
|
2267
2267
|
}
|
|
2268
2268
|
},
|
|
2269
|
-
/* @__PURE__ */ React25__namespace.createElement(Icon2, { className: "sb
|
|
2269
|
+
/* @__PURE__ */ React25__namespace.createElement(Icon2, { className: "sb:mr-2 sb:h-4 sb:w-4 sb:shrink-0" }),
|
|
2270
2270
|
component.friendlyName ?? component.name
|
|
2271
2271
|
));
|
|
2272
2272
|
}))));
|
|
2273
2273
|
};
|
|
2274
2274
|
var AddContentPlaceholder = (props) => {
|
|
2275
|
-
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
2275
|
+
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb:flex sb:justify-center sb:bg-primary/50 p-4" }, /* @__PURE__ */ React25__namespace.createElement(chunkYKPZPQ5D_js.Button, { size: "sm" }, /* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusIcon, { className: "sb:mr-2 sb:h-4 sb:w-4" }), "Blok Toevoegen")));
|
|
2276
2276
|
};
|
|
2277
2277
|
var AddContentDividerButton = (props) => {
|
|
2278
|
-
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__namespace.createElement("div", { className: "sb
|
|
2279
|
-
|
|
2278
|
+
return /* @__PURE__ */ React25__namespace.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25__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__ */ React25__namespace.createElement(
|
|
2279
|
+
chunkYKPZPQ5D_js.Button,
|
|
2280
2280
|
{
|
|
2281
2281
|
size: "sm",
|
|
2282
|
-
className: "sb
|
|
2282
|
+
className: "sb:absolute sb:left-1/2 sb:top-1/2 sb:-translate-y-1/2 sb:-translate-x-1/2 sb:shadow"
|
|
2283
2283
|
},
|
|
2284
|
-
/* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusIcon, { className: "sb
|
|
2284
|
+
/* @__PURE__ */ React25__namespace.createElement(lucideReact.PlusIcon, { className: "sb:mr-2 sb:h-4 sb:w-4" }),
|
|
2285
2285
|
"Blok Toevoegen"
|
|
2286
2286
|
)));
|
|
2287
2287
|
};
|