@simple-builder/react 1.2.10 → 1.3.1
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,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import './chunk-
|
|
3
|
-
import { buttonVariants, Button, useBuilder } from './chunk-
|
|
4
|
-
import { cn, tv, DesignWrapper, builder, Image } from './chunk-
|
|
2
|
+
import './chunk-XSG7W73Z.mjs';
|
|
3
|
+
import { buttonVariants, Button, useBuilder } from './chunk-CJGHP5Q7.mjs';
|
|
4
|
+
import { cn, tv, DesignWrapper, builder, Image } from './chunk-B5R6QY7N.mjs';
|
|
5
5
|
import * as React25 from 'react';
|
|
6
6
|
import { useCallback } from 'react';
|
|
7
7
|
import { ChevronRight, Check, Circle, X, ChevronDown, ChevronUp, PlusIcon, ArrowUp, ArrowDown, Edit2Icon, Trash2Icon, ImageIcon, XIcon, PlusCircleIcon, CalendarIcon, MonitorIcon, SmartphoneIcon, ChevronLeftIcon, ChevronRightIcon, PaintbrushIcon, Loader2Icon, AlignHorizontalSpaceAroundIcon, AlignHorizontalJustifyStartIcon, ScanIcon } from 'lucide-react';
|
|
@@ -40,7 +40,7 @@ var AlertDialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /*
|
|
|
40
40
|
AlertDialogPrimitive.Overlay,
|
|
41
41
|
{
|
|
42
42
|
className: cn(
|
|
43
|
-
"sb
|
|
43
|
+
"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",
|
|
44
44
|
className
|
|
45
45
|
),
|
|
46
46
|
...props,
|
|
@@ -53,7 +53,7 @@ var AlertDialogContent = React25.forwardRef(({ className, ...props }, ref) => /*
|
|
|
53
53
|
{
|
|
54
54
|
ref,
|
|
55
55
|
className: cn(
|
|
56
|
-
"sb
|
|
56
|
+
"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",
|
|
57
57
|
className
|
|
58
58
|
),
|
|
59
59
|
...props
|
|
@@ -67,7 +67,7 @@ var AlertDialogFooter = ({
|
|
|
67
67
|
"div",
|
|
68
68
|
{
|
|
69
69
|
className: cn(
|
|
70
|
-
"sb
|
|
70
|
+
"sb:flex sb:flex-col-reverse sb:sm:flex-row sb:sm:justify-end sb:sm:gap-2",
|
|
71
71
|
className
|
|
72
72
|
),
|
|
73
73
|
...props
|
|
@@ -78,7 +78,7 @@ var AlertDialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
78
78
|
AlertDialogPrimitive.Title,
|
|
79
79
|
{
|
|
80
80
|
ref,
|
|
81
|
-
className: cn("sb
|
|
81
|
+
className: cn("sb:text-lg sb:font-semibold", className),
|
|
82
82
|
...props
|
|
83
83
|
}
|
|
84
84
|
));
|
|
@@ -87,7 +87,7 @@ var AlertDialogDescription = React25.forwardRef(({ className, ...props }, ref) =
|
|
|
87
87
|
AlertDialogPrimitive.Description,
|
|
88
88
|
{
|
|
89
89
|
ref,
|
|
90
|
-
className: cn("sb
|
|
90
|
+
className: cn("sb:text-sm sb:text-muted-foreground", className),
|
|
91
91
|
...props
|
|
92
92
|
}
|
|
93
93
|
));
|
|
@@ -107,7 +107,7 @@ var AlertDialogCancel = React25.forwardRef(({ className, ...props }, ref) => /*
|
|
|
107
107
|
ref,
|
|
108
108
|
className: cn(
|
|
109
109
|
buttonVariants({ variant: "outline" }),
|
|
110
|
-
"sb
|
|
110
|
+
"sb:mt-2 sb:sm:mt-0",
|
|
111
111
|
className
|
|
112
112
|
),
|
|
113
113
|
...props
|
|
@@ -124,7 +124,7 @@ var PopoverContent = React25.forwardRef(({ className, align = "center", sideOffs
|
|
|
124
124
|
align,
|
|
125
125
|
sideOffset,
|
|
126
126
|
className: cn(
|
|
127
|
-
"sb
|
|
127
|
+
"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)",
|
|
128
128
|
className
|
|
129
129
|
),
|
|
130
130
|
...props
|
|
@@ -242,14 +242,14 @@ var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, .
|
|
|
242
242
|
{
|
|
243
243
|
ref,
|
|
244
244
|
className: cn(
|
|
245
|
-
"sb
|
|
246
|
-
inset && "sb
|
|
245
|
+
"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",
|
|
246
|
+
inset && "sb:pl-8",
|
|
247
247
|
className
|
|
248
248
|
),
|
|
249
249
|
...props
|
|
250
250
|
},
|
|
251
251
|
children,
|
|
252
|
-
/* @__PURE__ */ React25.createElement(ChevronRight, { className: "sb
|
|
252
|
+
/* @__PURE__ */ React25.createElement(ChevronRight, { className: "sb:ml-auto" })
|
|
253
253
|
));
|
|
254
254
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
255
255
|
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
@@ -257,7 +257,7 @@ var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) =
|
|
|
257
257
|
{
|
|
258
258
|
ref,
|
|
259
259
|
className: cn(
|
|
260
|
-
"sb
|
|
260
|
+
"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)",
|
|
261
261
|
className
|
|
262
262
|
),
|
|
263
263
|
...props
|
|
@@ -270,8 +270,8 @@ var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
270
270
|
ref,
|
|
271
271
|
sideOffset,
|
|
272
272
|
className: cn(
|
|
273
|
-
"sb
|
|
274
|
-
"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
|
|
273
|
+
"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",
|
|
274
|
+
"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)",
|
|
275
275
|
className
|
|
276
276
|
),
|
|
277
277
|
...props
|
|
@@ -283,8 +283,8 @@ var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref)
|
|
|
283
283
|
{
|
|
284
284
|
ref,
|
|
285
285
|
className: cn(
|
|
286
|
-
"sb
|
|
287
|
-
inset && "sb
|
|
286
|
+
"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",
|
|
287
|
+
inset && "sb:pl-8",
|
|
288
288
|
className
|
|
289
289
|
),
|
|
290
290
|
...props
|
|
@@ -296,13 +296,13 @@ var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checke
|
|
|
296
296
|
{
|
|
297
297
|
ref,
|
|
298
298
|
className: cn(
|
|
299
|
-
"sb
|
|
299
|
+
"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",
|
|
300
300
|
className
|
|
301
301
|
),
|
|
302
302
|
checked,
|
|
303
303
|
...props
|
|
304
304
|
},
|
|
305
|
-
/* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
305
|
+
/* @__PURE__ */ React25.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.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React25.createElement(Check, { className: "sb:h-4 sb:w-4" }))),
|
|
306
306
|
children
|
|
307
307
|
));
|
|
308
308
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
@@ -311,12 +311,12 @@ var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props
|
|
|
311
311
|
{
|
|
312
312
|
ref,
|
|
313
313
|
className: cn(
|
|
314
|
-
"sb
|
|
314
|
+
"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",
|
|
315
315
|
className
|
|
316
316
|
),
|
|
317
317
|
...props
|
|
318
318
|
},
|
|
319
|
-
/* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
319
|
+
/* @__PURE__ */ React25.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.createElement(DropdownMenuPrimitive.ItemIndicator, null, /* @__PURE__ */ React25.createElement(Circle, { className: "sb:h-2 sb:w-2 sb:fill-current" }))),
|
|
320
320
|
children
|
|
321
321
|
));
|
|
322
322
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
@@ -325,8 +325,8 @@ var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref)
|
|
|
325
325
|
{
|
|
326
326
|
ref,
|
|
327
327
|
className: cn(
|
|
328
|
-
"sb
|
|
329
|
-
inset && "sb
|
|
328
|
+
"sb:px-2 sb:py-1.5 sb:text-sm sb:font-semibold",
|
|
329
|
+
inset && "sb:pl-8",
|
|
330
330
|
className
|
|
331
331
|
),
|
|
332
332
|
...props
|
|
@@ -337,7 +337,7 @@ var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) =>
|
|
|
337
337
|
DropdownMenuPrimitive.Separator,
|
|
338
338
|
{
|
|
339
339
|
ref,
|
|
340
|
-
className: cn("sb
|
|
340
|
+
className: cn("sb:-mx-1 sb:my-1 sb:h-px sb:bg-muted", className),
|
|
341
341
|
...props
|
|
342
342
|
}
|
|
343
343
|
));
|
|
@@ -350,8 +350,8 @@ var Separator2 = React25.forwardRef(
|
|
|
350
350
|
decorative,
|
|
351
351
|
orientation,
|
|
352
352
|
className: cn(
|
|
353
|
-
"sb
|
|
354
|
-
orientation === "horizontal" ? "sb
|
|
353
|
+
"sb:shrink-0 sb:bg-border",
|
|
354
|
+
orientation === "horizontal" ? "sb:h-px sb:w-full" : "sb:h-full sb:w-px",
|
|
355
355
|
className
|
|
356
356
|
),
|
|
357
357
|
...props
|
|
@@ -360,17 +360,17 @@ var Separator2 = React25.forwardRef(
|
|
|
360
360
|
);
|
|
361
361
|
Separator2.displayName = SeparatorPrimitive.Root.displayName;
|
|
362
362
|
var toggleVariants = cva(
|
|
363
|
-
"sb
|
|
363
|
+
"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",
|
|
364
364
|
{
|
|
365
365
|
variants: {
|
|
366
366
|
variant: {
|
|
367
|
-
default: "sb
|
|
368
|
-
outline: "sb
|
|
367
|
+
default: "sb:bg-transparent",
|
|
368
|
+
outline: "sb:border sb:border-input sb:bg-transparent sb:shadow-sm sb:hover:bg-accent sb:hover:text-accent-foreground"
|
|
369
369
|
},
|
|
370
370
|
size: {
|
|
371
|
-
default: "sb
|
|
372
|
-
sm: "sb
|
|
373
|
-
lg: "sb
|
|
371
|
+
default: "sb:h-9 sb:px-2 sb:min-w-9",
|
|
372
|
+
sm: "sb:h-8 sb:px-1.5 sb:min-w-8",
|
|
373
|
+
lg: "sb:h-10 sb:px-2.5 sb:min-w-10"
|
|
374
374
|
}
|
|
375
375
|
},
|
|
376
376
|
defaultVariants: {
|
|
@@ -396,7 +396,7 @@ var ToggleGroup = React25.forwardRef(({ className, variant, size, children, ...p
|
|
|
396
396
|
ToggleGroupPrimitive.Root,
|
|
397
397
|
{
|
|
398
398
|
ref,
|
|
399
|
-
className: cn("sb
|
|
399
|
+
className: cn("sb:flex sb:items-center sb:justify-center sb:gap-1", className),
|
|
400
400
|
...props
|
|
401
401
|
},
|
|
402
402
|
/* @__PURE__ */ React25.createElement(ToggleGroupContext.Provider, { value: { variant, size } }, children)
|
|
@@ -460,7 +460,7 @@ var ColorTool = ({ editor }) => {
|
|
|
460
460
|
},
|
|
461
461
|
[editor]
|
|
462
462
|
);
|
|
463
|
-
return /* @__PURE__ */ React25.createElement(Popover, { modal: true }, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(ToolbarButton, { className: "sb
|
|
463
|
+
return /* @__PURE__ */ React25.createElement(Popover, { modal: true }, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(ToolbarButton, { className: "sb:w-12" }, /* @__PURE__ */ React25.createElement(
|
|
464
464
|
"svg",
|
|
465
465
|
{
|
|
466
466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -472,33 +472,33 @@ var ColorTool = ({ editor }) => {
|
|
|
472
472
|
strokeWidth: "2",
|
|
473
473
|
strokeLinecap: "round",
|
|
474
474
|
strokeLinejoin: "round",
|
|
475
|
-
className: "sb
|
|
475
|
+
className: "sb:size-5",
|
|
476
476
|
style: { color: selectedColor }
|
|
477
477
|
},
|
|
478
478
|
/* @__PURE__ */ React25.createElement("path", { d: "M4 20h16" }),
|
|
479
479
|
/* @__PURE__ */ React25.createElement("path", { d: "m6 16 6-12 6 12" }),
|
|
480
480
|
/* @__PURE__ */ React25.createElement("path", { d: "M8 12h8" })
|
|
481
|
-
), /* @__PURE__ */ React25.createElement(LuChevronDown, { className: "sb
|
|
481
|
+
), /* @__PURE__ */ React25.createElement(LuChevronDown, { className: "sb:size-5" }))), /* @__PURE__ */ React25.createElement(PopoverContent, { align: "start", className: "sb:w-full" }, /* @__PURE__ */ React25.createElement(
|
|
482
482
|
ToggleGroup,
|
|
483
483
|
{
|
|
484
484
|
type: "single",
|
|
485
485
|
value: selectedColor,
|
|
486
486
|
onValueChange: handleColorChange,
|
|
487
|
-
className: "sb
|
|
487
|
+
className: "sb:flex-col sb:gap-1.5"
|
|
488
488
|
},
|
|
489
|
-
PALETTES.map((pallete, i) => /* @__PURE__ */ React25.createElement("div", { key: i, className: "sb
|
|
489
|
+
PALETTES.map((pallete, i) => /* @__PURE__ */ React25.createElement("div", { key: i, className: "sb:flex sb:gap-1.5" }, pallete.colors.map((color2, j) => /* @__PURE__ */ React25.createElement(
|
|
490
490
|
ToggleGroupItem,
|
|
491
491
|
{
|
|
492
492
|
tabIndex: 0,
|
|
493
493
|
key: j,
|
|
494
|
-
className: "sb
|
|
494
|
+
className: "sb:relative sb:size-7 sb:rounded-md sb:border sb:p-0",
|
|
495
495
|
value: color2.cssVar,
|
|
496
496
|
style: { backgroundColor: color2.cssVar }
|
|
497
497
|
},
|
|
498
498
|
selectedColor === color2.cssVar && /* @__PURE__ */ React25.createElement(
|
|
499
499
|
LuCheck,
|
|
500
500
|
{
|
|
501
|
-
className: "sb
|
|
501
|
+
className: "sb:absolute sb:inset-0 sb:m-auto sb:size-6",
|
|
502
502
|
style: { color: pallete.inverse }
|
|
503
503
|
}
|
|
504
504
|
)
|
|
@@ -509,31 +509,31 @@ var formatActions = [
|
|
|
509
509
|
{
|
|
510
510
|
label: "Normal Text",
|
|
511
511
|
element: "span",
|
|
512
|
-
className: "sb
|
|
512
|
+
className: "sb:grow"
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
label: "Heading 1",
|
|
516
516
|
element: "h1",
|
|
517
517
|
level: 1,
|
|
518
|
-
className: "sb
|
|
518
|
+
className: "sb:m-0 sb:grow sb:text-3xl sb:font-extrabold"
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
521
|
label: "Heading 2",
|
|
522
522
|
element: "h2",
|
|
523
523
|
level: 2,
|
|
524
|
-
className: "sb
|
|
524
|
+
className: "sb:m-0 sb:grow sb:text-xl sb:font-bold"
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
527
|
label: "Heading 3",
|
|
528
528
|
element: "h3",
|
|
529
529
|
level: 3,
|
|
530
|
-
className: "sb
|
|
530
|
+
className: "sb:m-0 sb:grow sb:text-lg sb:font-semibold"
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
533
|
label: "Heading 4",
|
|
534
534
|
element: "h4",
|
|
535
535
|
level: 4,
|
|
536
|
-
className: "sb
|
|
536
|
+
className: "sb:m-0 sb:grow sb:text-base sb:font-semibold"
|
|
537
537
|
}
|
|
538
538
|
];
|
|
539
539
|
var ElementTool = ({ editor }) => {
|
|
@@ -551,17 +551,17 @@ var ElementTool = ({ editor }) => {
|
|
|
551
551
|
return /* @__PURE__ */ React25.createElement(DropdownMenu, null, /* @__PURE__ */ React25.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(
|
|
552
552
|
ToolbarButton,
|
|
553
553
|
{
|
|
554
|
-
className: "sb
|
|
554
|
+
className: "sb:w-12 sb:data-[state=open]:bg-accent",
|
|
555
555
|
pressed: isActive
|
|
556
556
|
},
|
|
557
|
-
/* @__PURE__ */ React25.createElement(LuHeading, { className: "sb
|
|
558
|
-
/* @__PURE__ */ React25.createElement(LuChevronDown, { className: "sb
|
|
557
|
+
/* @__PURE__ */ React25.createElement(LuHeading, { className: "sb:size-5" }),
|
|
558
|
+
/* @__PURE__ */ React25.createElement(LuChevronDown, { className: "sb:size-5" })
|
|
559
559
|
)), /* @__PURE__ */ React25.createElement(DropdownMenuContent, { align: "start" }, formatActions.map(({ element: Element, ...action }) => /* @__PURE__ */ React25.createElement(
|
|
560
560
|
DropdownMenuItem,
|
|
561
561
|
{
|
|
562
562
|
key: action.label,
|
|
563
563
|
className: cn({
|
|
564
|
-
"sb
|
|
564
|
+
"sb:bg-accent": action.level ? editor.isActive("heading", { level: action.level }) : editor.isActive("paragraph")
|
|
565
565
|
}),
|
|
566
566
|
onClick: () => handleFormatChange(action.level)
|
|
567
567
|
},
|
|
@@ -658,7 +658,7 @@ var DialogOverlay = React25.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
658
658
|
{
|
|
659
659
|
ref,
|
|
660
660
|
className: cn(
|
|
661
|
-
"sb
|
|
661
|
+
"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",
|
|
662
662
|
className
|
|
663
663
|
),
|
|
664
664
|
...props
|
|
@@ -670,13 +670,13 @@ var DialogContent = React25.forwardRef(({ className, children, ...props }, ref)
|
|
|
670
670
|
{
|
|
671
671
|
ref,
|
|
672
672
|
className: cn(
|
|
673
|
-
"sb
|
|
673
|
+
"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",
|
|
674
674
|
className
|
|
675
675
|
),
|
|
676
676
|
...props
|
|
677
677
|
},
|
|
678
678
|
children,
|
|
679
|
-
/* @__PURE__ */ React25.createElement(DialogPrimitive.Close, { className: "sb
|
|
679
|
+
/* @__PURE__ */ React25.createElement(DialogPrimitive.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.createElement(X, { className: "sb:h-4 sb:w-4" }), /* @__PURE__ */ React25.createElement("span", { className: "sb:sr-only" }, "Close"))
|
|
680
680
|
)));
|
|
681
681
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
682
682
|
var DialogHeader = ({
|
|
@@ -686,7 +686,7 @@ var DialogHeader = ({
|
|
|
686
686
|
"div",
|
|
687
687
|
{
|
|
688
688
|
className: cn(
|
|
689
|
-
"sb
|
|
689
|
+
"sb:flex sb:flex-col sb:gap-1.5 sb:text-center sb:sm:text-left",
|
|
690
690
|
className
|
|
691
691
|
),
|
|
692
692
|
...props
|
|
@@ -698,7 +698,7 @@ var DialogTitle = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
698
698
|
{
|
|
699
699
|
ref,
|
|
700
700
|
className: cn(
|
|
701
|
-
"sb
|
|
701
|
+
"sb:text-lg sb:font-semibold sb:leading-none sb:tracking-tight",
|
|
702
702
|
className
|
|
703
703
|
),
|
|
704
704
|
...props
|
|
@@ -709,13 +709,13 @@ var DialogDescription = React25.forwardRef(({ className, ...props }, ref) => /*
|
|
|
709
709
|
DialogPrimitive.Description,
|
|
710
710
|
{
|
|
711
711
|
ref,
|
|
712
|
-
className: cn("sb
|
|
712
|
+
className: cn("sb:text-sm sb:text-muted-foreground", className),
|
|
713
713
|
...props
|
|
714
714
|
}
|
|
715
715
|
));
|
|
716
716
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
717
717
|
var labelVariants = cva(
|
|
718
|
-
"sb
|
|
718
|
+
"sb:text-sm sb:font-medium sb:leading-none sb:peer-disabled:cursor-not-allowed sb:peer-disabled:opacity-70"
|
|
719
719
|
);
|
|
720
720
|
var Label2 = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
721
721
|
LabelPrimitive.Root,
|
|
@@ -760,7 +760,7 @@ var FormItemContext = React25.createContext(
|
|
|
760
760
|
);
|
|
761
761
|
var FormItem = React25.forwardRef(({ className, ...props }, ref) => {
|
|
762
762
|
const id = React25.useId();
|
|
763
|
-
return /* @__PURE__ */ React25.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React25.createElement("div", { ref, className: cn("sb-
|
|
763
|
+
return /* @__PURE__ */ React25.createElement(FormItemContext.Provider, { value: { id } }, /* @__PURE__ */ React25.createElement("div", { ref, className: cn("sb:flex sb:flex-col sb:gap-2", className), ...props }));
|
|
764
764
|
});
|
|
765
765
|
FormItem.displayName = "FormItem";
|
|
766
766
|
var FormLabel = React25.forwardRef(({ className, ...props }, ref) => {
|
|
@@ -769,7 +769,7 @@ var FormLabel = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
769
769
|
Label2,
|
|
770
770
|
{
|
|
771
771
|
ref,
|
|
772
|
-
className: cn(error && "sb
|
|
772
|
+
className: cn(error && "sb:text-destructive", className),
|
|
773
773
|
htmlFor: formItemId,
|
|
774
774
|
...props
|
|
775
775
|
}
|
|
@@ -797,7 +797,7 @@ var FormDescription = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
797
797
|
{
|
|
798
798
|
ref,
|
|
799
799
|
id: formDescriptionId,
|
|
800
|
-
className: cn("sb
|
|
800
|
+
className: cn("sb:text-[0.8rem] sb:text-muted-foreground", className),
|
|
801
801
|
...props
|
|
802
802
|
}
|
|
803
803
|
);
|
|
@@ -814,7 +814,7 @@ var FormMessage = React25.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
814
814
|
{
|
|
815
815
|
ref,
|
|
816
816
|
id: formMessageId,
|
|
817
|
-
className: cn("sb
|
|
817
|
+
className: cn("sb:text-[0.8rem] sb:font-medium sb:text-destructive", className),
|
|
818
818
|
...props
|
|
819
819
|
},
|
|
820
820
|
body
|
|
@@ -828,7 +828,7 @@ var Input = React25.forwardRef(
|
|
|
828
828
|
{
|
|
829
829
|
type,
|
|
830
830
|
className: cn(
|
|
831
|
-
"sb
|
|
831
|
+
"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",
|
|
832
832
|
className
|
|
833
833
|
),
|
|
834
834
|
ref,
|
|
@@ -840,7 +840,7 @@ var Input = React25.forwardRef(
|
|
|
840
840
|
Input.displayName = "Input";
|
|
841
841
|
var AdvancedInput = React25.forwardRef(
|
|
842
842
|
({ prepend, append, ...props }, ref) => {
|
|
843
|
-
return /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
843
|
+
return /* @__PURE__ */ React25.createElement("div", { className: "sb:relative" }, /* @__PURE__ */ React25.createElement(Input, { ref, className: "sb:pl-9 sb:pr-7 sb:text-right", ...props }), prepend && /* @__PURE__ */ React25.createElement("div", { className: "sb:absolute sb:font-roboto sb:top-1/2 sb:left-3 sb:-translate-y-1/2" }, prepend), append && /* @__PURE__ */ React25.createElement("div", { className: "sb:absolute sb:font-roboto sb:top-1/2 sb:right-3 sb:-translate-y-1/2" }, append));
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
846
|
AdvancedInput.displayName = "AdvancedInput";
|
|
@@ -848,7 +848,7 @@ var Switch = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
848
848
|
SwitchPrimitives.Root,
|
|
849
849
|
{
|
|
850
850
|
className: cn(
|
|
851
|
-
"sb
|
|
851
|
+
"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",
|
|
852
852
|
className
|
|
853
853
|
),
|
|
854
854
|
...props,
|
|
@@ -858,7 +858,7 @@ var Switch = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
858
858
|
SwitchPrimitives.Thumb,
|
|
859
859
|
{
|
|
860
860
|
className: cn(
|
|
861
|
-
"sb
|
|
861
|
+
"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"
|
|
862
862
|
)
|
|
863
863
|
}
|
|
864
864
|
)
|
|
@@ -894,8 +894,8 @@ var LinkTool = ({ editor }) => {
|
|
|
894
894
|
pressed: editor.isActive("link"),
|
|
895
895
|
disabled: editor.isActive("codeBlock")
|
|
896
896
|
},
|
|
897
|
-
/* @__PURE__ */ React25.createElement(LuLink2, { className: "sb
|
|
898
|
-
)), /* @__PURE__ */ React25.createElement(DialogContent, { className: "sb
|
|
897
|
+
/* @__PURE__ */ React25.createElement(LuLink2, { className: "sb:size-5" })
|
|
898
|
+
)), /* @__PURE__ */ React25.createElement(DialogContent, { className: "sb:w-full sb:min-w-80" }, /* @__PURE__ */ React25.createElement(LinkForm, { onSave: handleSetLink, defaultText: text })));
|
|
899
899
|
};
|
|
900
900
|
var schema = z.object({
|
|
901
901
|
url: z.string().min(0),
|
|
@@ -919,7 +919,7 @@ var LinkForm = ({
|
|
|
919
919
|
const handleSubmit = (values) => {
|
|
920
920
|
onSave(values.url, values.text, values.isNewTab);
|
|
921
921
|
};
|
|
922
|
-
return /* @__PURE__ */ React25.createElement(Form, { ...form }, /* @__PURE__ */ React25.createElement("div", { className: "sb-
|
|
922
|
+
return /* @__PURE__ */ React25.createElement(Form, { ...form }, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-6" }, /* @__PURE__ */ React25.createElement(
|
|
923
923
|
FormField,
|
|
924
924
|
{
|
|
925
925
|
control: form.control,
|
|
@@ -938,7 +938,7 @@ var LinkForm = ({
|
|
|
938
938
|
{
|
|
939
939
|
control: form.control,
|
|
940
940
|
name: "isNewTab",
|
|
941
|
-
render: ({ field }) => /* @__PURE__ */ React25.createElement(FormItem, null, /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
941
|
+
render: ({ field }) => /* @__PURE__ */ React25.createElement(FormItem, null, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:items-center sb:gap-2" }, /* @__PURE__ */ React25.createElement(FormControl, null, /* @__PURE__ */ React25.createElement(
|
|
942
942
|
Switch,
|
|
943
943
|
{
|
|
944
944
|
checked: field.value,
|
|
@@ -972,7 +972,7 @@ var ListTool = ({ editor }) => {
|
|
|
972
972
|
|
|
973
973
|
// src/features/rich-text-editor/components/toolbar.tsx
|
|
974
974
|
var Toolbar = ({ editor }) => {
|
|
975
|
-
return /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
975
|
+
return /* @__PURE__ */ React25.createElement("div", { className: "sb:shrink-0 sb:overflow-x-auto sb:border-b sb:border-border sb:p-2" }, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:w-max sb:items-center sb:gap-px" }, /* @__PURE__ */ React25.createElement(ElementTool, { editor }), /* @__PURE__ */ React25.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25.createElement(FormatTool, { editor }), /* @__PURE__ */ React25.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25.createElement(ColorTool, { editor }), /* @__PURE__ */ React25.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25.createElement(ListTool, { editor }), /* @__PURE__ */ React25.createElement(Separator2, { orientation: "vertical", className: "sb:mx-2 sb:h-7" }), /* @__PURE__ */ React25.createElement(LinkTool, { editor }), /* @__PURE__ */ React25.createElement(InsertTool, { editor })));
|
|
976
976
|
};
|
|
977
977
|
var ToolbarSection = ({
|
|
978
978
|
editor,
|
|
@@ -996,18 +996,18 @@ var ToolbarSection = ({
|
|
|
996
996
|
disabled: !action.canExecute(editor),
|
|
997
997
|
pressed: action.isActive(editor)
|
|
998
998
|
},
|
|
999
|
-
/* @__PURE__ */ React25.createElement(action.icon, { className: "sb
|
|
1000
|
-
)), dropdownActions.length > 0 && /* @__PURE__ */ React25.createElement(DropdownMenu, null, /* @__PURE__ */ React25.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(ToolbarButton, { pressed: isDropdownActive }, /* @__PURE__ */ React25.createElement(LuEllipsis, { className: "sb
|
|
999
|
+
/* @__PURE__ */ React25.createElement(action.icon, { className: "sb:size-5" })
|
|
1000
|
+
)), dropdownActions.length > 0 && /* @__PURE__ */ React25.createElement(DropdownMenu, null, /* @__PURE__ */ React25.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(ToolbarButton, { pressed: isDropdownActive }, /* @__PURE__ */ React25.createElement(LuEllipsis, { className: "sb:size-5" }))), /* @__PURE__ */ React25.createElement(DropdownMenuContent, { align: "start" }, dropdownActions.map((action) => /* @__PURE__ */ React25.createElement(
|
|
1001
1001
|
DropdownMenuItem,
|
|
1002
1002
|
{
|
|
1003
1003
|
key: action.label,
|
|
1004
|
-
className: cn("sb
|
|
1005
|
-
"sb
|
|
1004
|
+
className: cn("sb:flex sb:flex-row sb:items-center sb:gap-2", {
|
|
1005
|
+
"sb:bg-accent": action.isActive(editor)
|
|
1006
1006
|
}),
|
|
1007
1007
|
onClick: () => action.action(editor),
|
|
1008
1008
|
disabled: !action.canExecute(editor)
|
|
1009
1009
|
},
|
|
1010
|
-
/* @__PURE__ */ React25.createElement(action.icon, { className: "sb
|
|
1010
|
+
/* @__PURE__ */ React25.createElement(action.icon, { className: "sb:size-4" }),
|
|
1011
1011
|
/* @__PURE__ */ React25.createElement("span", null, action.label)
|
|
1012
1012
|
)))));
|
|
1013
1013
|
};
|
|
@@ -1017,8 +1017,8 @@ var ToolbarButton = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
1017
1017
|
{
|
|
1018
1018
|
size: "sm",
|
|
1019
1019
|
className: cn(
|
|
1020
|
-
"sb
|
|
1021
|
-
{ "sb
|
|
1020
|
+
"sb:size-8 sb:p-0 sb:data-[state=on]:bg-accent",
|
|
1021
|
+
{ "sb:bg-accent": props.pressed },
|
|
1022
1022
|
className
|
|
1023
1023
|
),
|
|
1024
1024
|
ref,
|
|
@@ -1041,7 +1041,7 @@ var RichTextEditor = ({
|
|
|
1041
1041
|
const editor = useRichTextEditor({
|
|
1042
1042
|
value,
|
|
1043
1043
|
onUpdate: onChange,
|
|
1044
|
-
editorClassName: cn("sb
|
|
1044
|
+
editorClassName: cn("sb:flex-1 sb:px-3 sb:py-1", editorClassName),
|
|
1045
1045
|
...props
|
|
1046
1046
|
});
|
|
1047
1047
|
if (!editor) {
|
|
@@ -1051,7 +1051,7 @@ var RichTextEditor = ({
|
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
className: cn(
|
|
1054
|
-
"sb
|
|
1054
|
+
"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",
|
|
1055
1055
|
className
|
|
1056
1056
|
)
|
|
1057
1057
|
},
|
|
@@ -1061,7 +1061,7 @@ var RichTextEditor = ({
|
|
|
1061
1061
|
{
|
|
1062
1062
|
editor,
|
|
1063
1063
|
className: cn(
|
|
1064
|
-
"sb-editflow prose sb
|
|
1064
|
+
"sb-editflow prose sb:flex sb:flex-1",
|
|
1065
1065
|
editorContentClassName
|
|
1066
1066
|
)
|
|
1067
1067
|
}
|
|
@@ -1078,44 +1078,44 @@ function Calendar({
|
|
|
1078
1078
|
DayPicker,
|
|
1079
1079
|
{
|
|
1080
1080
|
showOutsideDays,
|
|
1081
|
-
className: cn("sb
|
|
1081
|
+
className: cn("sb:p-3 sb:font-roboto", className),
|
|
1082
1082
|
classNames: {
|
|
1083
|
-
months: "sb
|
|
1084
|
-
month: "sb-
|
|
1085
|
-
caption: "sb
|
|
1086
|
-
caption_label: "sb
|
|
1087
|
-
nav: "sb-
|
|
1083
|
+
months: "sb:flex sb:flex-col sb:sm:flex-row sb:gap-y-4 sb:sm:gap-x-4 sb:sm:gap-y-0",
|
|
1084
|
+
month: "sb:gap-y-4",
|
|
1085
|
+
caption: "sb:flex sb:justify-center sb:pt-1 sb:relative sb:items-center",
|
|
1086
|
+
caption_label: "sb:text-sm sb:font-medium",
|
|
1087
|
+
nav: "sb:gap-x-1 sb:flex sb:items-center",
|
|
1088
1088
|
nav_button: cn(
|
|
1089
1089
|
buttonVariants({ variant: "outline" }),
|
|
1090
|
-
"sb
|
|
1090
|
+
"sb:h-7 sb:w-7 sb:bg-transparent sb:p-0 sb:opacity-50 sb:hover:opacity-100"
|
|
1091
1091
|
),
|
|
1092
|
-
nav_button_previous: "sb
|
|
1093
|
-
nav_button_next: "sb
|
|
1094
|
-
table: "sb
|
|
1095
|
-
head_row: "sb
|
|
1096
|
-
head_cell: "sb
|
|
1097
|
-
row: "sb
|
|
1092
|
+
nav_button_previous: "sb:absolute sb:left-1",
|
|
1093
|
+
nav_button_next: "sb:absolute sb:right-1",
|
|
1094
|
+
table: "sb:w-full sb:border-collapse sb:flex sb:flex-col sb:gap-y-1",
|
|
1095
|
+
head_row: "sb:flex",
|
|
1096
|
+
head_cell: "sb:text-muted-foreground sb:rounded-md sb:w-8 sb:font-normal sb:text-[0.8rem]",
|
|
1097
|
+
row: "sb:flex sb:w-full sb:mt-2",
|
|
1098
1098
|
cell: cn(
|
|
1099
|
-
"sb
|
|
1100
|
-
props.mode === "range" ? "[&:has(>.day-range-end)]:
|
|
1099
|
+
"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",
|
|
1100
|
+
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"
|
|
1101
1101
|
),
|
|
1102
1102
|
day: cn(
|
|
1103
1103
|
buttonVariants({ variant: "ghost" }),
|
|
1104
|
-
"sb
|
|
1104
|
+
"sb:h-8 sb:w-8 sb:p-0 sb:font-normal sb:aria-selected:opacity-100"
|
|
1105
1105
|
),
|
|
1106
1106
|
day_range_start: "day-range-start",
|
|
1107
1107
|
day_range_end: "day-range-end",
|
|
1108
|
-
day_selected: "sb
|
|
1109
|
-
day_today: "sb
|
|
1110
|
-
day_outside: "day-outside sb
|
|
1111
|
-
day_disabled: "sb
|
|
1112
|
-
day_range_middle: "aria-selected:
|
|
1108
|
+
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",
|
|
1109
|
+
day_today: "sb:bg-accent sb:text-accent-foreground",
|
|
1110
|
+
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",
|
|
1111
|
+
day_disabled: "sb:text-muted-foreground sb:opacity-50",
|
|
1112
|
+
day_range_middle: "sb:aria-selected:bg-accent sb:aria-selected:text-accent-foreground",
|
|
1113
1113
|
day_hidden: "invisible",
|
|
1114
1114
|
...classNames
|
|
1115
1115
|
},
|
|
1116
1116
|
components: {
|
|
1117
|
-
IconLeft: () => /* @__PURE__ */ React25.createElement(ChevronLeftIcon, { className: "sb
|
|
1118
|
-
IconRight: () => /* @__PURE__ */ React25.createElement(ChevronRightIcon, { className: "sb
|
|
1117
|
+
IconLeft: () => /* @__PURE__ */ React25.createElement(ChevronLeftIcon, { className: "sb:h-4 sb:w-4" }),
|
|
1118
|
+
IconRight: () => /* @__PURE__ */ React25.createElement(ChevronRightIcon, { className: "sb:h-4 sb:w-4" })
|
|
1119
1119
|
},
|
|
1120
1120
|
...props
|
|
1121
1121
|
}
|
|
@@ -1141,24 +1141,24 @@ var ColorPicker = (props) => {
|
|
|
1141
1141
|
variant: "outline",
|
|
1142
1142
|
size: "sm",
|
|
1143
1143
|
className: cn(
|
|
1144
|
-
"sb
|
|
1145
|
-
!color && "sb
|
|
1144
|
+
"sb:justify-start sb:text-left sb:font-normal sb:normal-case sb:w-full",
|
|
1145
|
+
!color && "sb:text-muted-foreground",
|
|
1146
1146
|
className
|
|
1147
1147
|
)
|
|
1148
1148
|
},
|
|
1149
|
-
/* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1149
|
+
/* @__PURE__ */ React25.createElement("div", { className: "sb:w-full sb:flex sb:items-center sb:gap-2" }, color ? /* @__PURE__ */ React25.createElement(
|
|
1150
1150
|
"div",
|
|
1151
1151
|
{
|
|
1152
|
-
className: "sb
|
|
1152
|
+
className: "sb:h-4 sb:w-4 sb:rounded sb:bg-center! sb:bg-cover! sb:transition-all sb:border",
|
|
1153
1153
|
style: { background: color }
|
|
1154
1154
|
}
|
|
1155
|
-
) : /* @__PURE__ */ React25.createElement(PaintbrushIcon, { className: "sb
|
|
1156
|
-
)), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb
|
|
1155
|
+
) : /* @__PURE__ */ React25.createElement(PaintbrushIcon, { className: "sb:h-4 sb:w-4" }), /* @__PURE__ */ React25.createElement("div", { className: "sb:truncate sb:flex-1" }, color ? color : "Kies een kleur"))
|
|
1156
|
+
)), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb:w-64 sb:p-4 sb:flex sb:flex-wrap sb:gap-1" }, colors.map((s) => /* @__PURE__ */ React25.createElement(
|
|
1157
1157
|
"div",
|
|
1158
1158
|
{
|
|
1159
1159
|
key: s,
|
|
1160
1160
|
style: { background: s },
|
|
1161
|
-
className: "sb
|
|
1161
|
+
className: "sb:rounded-md sb:h-6 sb:w-6 sb:cursor-pointer sb:active:scale-105 sb:border",
|
|
1162
1162
|
onClick: () => onColorChange(s)
|
|
1163
1163
|
}
|
|
1164
1164
|
))));
|
|
@@ -1246,35 +1246,35 @@ var MediaInput = (props) => {
|
|
|
1246
1246
|
src,
|
|
1247
1247
|
alt: "",
|
|
1248
1248
|
fill: true,
|
|
1249
|
-
className: "sb
|
|
1249
|
+
className: "sb:absolute sb:inset-0 sb:object-cover sb:pointer-events-none"
|
|
1250
1250
|
}
|
|
1251
|
-
), /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1251
|
+
), /* @__PURE__ */ React25.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.createElement(
|
|
1252
1252
|
"button",
|
|
1253
1253
|
{
|
|
1254
|
-
className: "sb
|
|
1254
|
+
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",
|
|
1255
1255
|
onClick: () => handleSourceDelete(src)
|
|
1256
1256
|
},
|
|
1257
|
-
/* @__PURE__ */ React25.createElement(Trash2Icon, { className: "sb
|
|
1257
|
+
/* @__PURE__ */ React25.createElement(Trash2Icon, { className: "sb:h-4 sb:w-4" })
|
|
1258
1258
|
)))), queue.map((_, i) => /* @__PURE__ */ React25.createElement(
|
|
1259
1259
|
MediaInputItem,
|
|
1260
1260
|
{
|
|
1261
1261
|
key: i,
|
|
1262
1262
|
className: cn(
|
|
1263
|
-
"sb
|
|
1263
|
+
"sb:flex sb:h-28 sb:w-28 sb:items-center sb:justify-center",
|
|
1264
1264
|
props.itemClassName
|
|
1265
1265
|
)
|
|
1266
1266
|
},
|
|
1267
|
-
/* @__PURE__ */ React25.createElement(Loader2Icon, { className: "sb
|
|
1267
|
+
/* @__PURE__ */ React25.createElement(Loader2Icon, { className: "sb:h-6 sb:w-6 sb:animate-spin" })
|
|
1268
1268
|
)), multiple || !multiple && !sources.length && !queue.length ? /* @__PURE__ */ React25.createElement(
|
|
1269
1269
|
"label",
|
|
1270
1270
|
{
|
|
1271
1271
|
htmlFor: id,
|
|
1272
1272
|
className: cn(
|
|
1273
|
-
"sb
|
|
1273
|
+
"sb:flex sb:h-28 sb:w-28 sb:cursor-pointer sb:items-center sb:justify-center sb:rounded-lg sb:border",
|
|
1274
1274
|
props.itemClassName
|
|
1275
1275
|
)
|
|
1276
1276
|
},
|
|
1277
|
-
/* @__PURE__ */ React25.createElement(PlusIcon, { className: "sb
|
|
1277
|
+
/* @__PURE__ */ React25.createElement(PlusIcon, { className: "sb:h-6 sb:w-6" }),
|
|
1278
1278
|
/* @__PURE__ */ React25.createElement(
|
|
1279
1279
|
"input",
|
|
1280
1280
|
{
|
|
@@ -1283,7 +1283,7 @@ var MediaInput = (props) => {
|
|
|
1283
1283
|
onChange: handleFilesAdd,
|
|
1284
1284
|
multiple,
|
|
1285
1285
|
accept: ".png,.jpg,.jpeg,.webp,.gif,.svg",
|
|
1286
|
-
className: "sb
|
|
1286
|
+
className: "sb:hidden"
|
|
1287
1287
|
}
|
|
1288
1288
|
)
|
|
1289
1289
|
) : null);
|
|
@@ -1293,7 +1293,7 @@ var MediaInputItem = (props) => {
|
|
|
1293
1293
|
"div",
|
|
1294
1294
|
{
|
|
1295
1295
|
className: cn(
|
|
1296
|
-
"sb
|
|
1296
|
+
"sb:relative sb:h-28 sb:w-28 sb:overflow-hidden sb:rounded-lg sb:border",
|
|
1297
1297
|
props.className
|
|
1298
1298
|
)
|
|
1299
1299
|
},
|
|
@@ -1316,13 +1316,13 @@ var SelectTrigger = React25.forwardRef(({ className, children, ...props }, ref)
|
|
|
1316
1316
|
{
|
|
1317
1317
|
ref,
|
|
1318
1318
|
className: cn(
|
|
1319
|
-
"sb
|
|
1319
|
+
"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",
|
|
1320
1320
|
className
|
|
1321
1321
|
),
|
|
1322
1322
|
...props
|
|
1323
1323
|
},
|
|
1324
1324
|
children,
|
|
1325
|
-
/* @__PURE__ */ React25.createElement(SelectPrimitive.Icon, { asChild: true }, /* @__PURE__ */ React25.createElement(ChevronDown, { className: "sb
|
|
1325
|
+
/* @__PURE__ */ React25.createElement(SelectPrimitive.Icon, { asChild: true }, /* @__PURE__ */ React25.createElement(ChevronDown, { className: "sb:h-4 sb:w-4 sb:opacity-50" }))
|
|
1326
1326
|
));
|
|
1327
1327
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
1328
1328
|
var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
@@ -1330,12 +1330,12 @@ var SelectScrollUpButton = React25.forwardRef(({ className, ...props }, ref) =>
|
|
|
1330
1330
|
{
|
|
1331
1331
|
ref,
|
|
1332
1332
|
className: cn(
|
|
1333
|
-
"sb
|
|
1333
|
+
"sb:flex sb:cursor-default sb:items-center sb:justify-center sb:py-1",
|
|
1334
1334
|
className
|
|
1335
1335
|
),
|
|
1336
1336
|
...props
|
|
1337
1337
|
},
|
|
1338
|
-
/* @__PURE__ */ React25.createElement(ChevronUp, { className: "sb
|
|
1338
|
+
/* @__PURE__ */ React25.createElement(ChevronUp, { className: "sb:h-4 sb:w-4" })
|
|
1339
1339
|
));
|
|
1340
1340
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
1341
1341
|
var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ React25.createElement(
|
|
@@ -1343,12 +1343,12 @@ var SelectScrollDownButton = React25.forwardRef(({ className, ...props }, ref) =
|
|
|
1343
1343
|
{
|
|
1344
1344
|
ref,
|
|
1345
1345
|
className: cn(
|
|
1346
|
-
"sb
|
|
1346
|
+
"sb:flex sb:cursor-default sb:items-center sb:justify-center sb:py-1",
|
|
1347
1347
|
className
|
|
1348
1348
|
),
|
|
1349
1349
|
...props
|
|
1350
1350
|
},
|
|
1351
|
-
/* @__PURE__ */ React25.createElement(ChevronDown, { className: "sb
|
|
1351
|
+
/* @__PURE__ */ React25.createElement(ChevronDown, { className: "sb:h-4 sb:w-4" })
|
|
1352
1352
|
));
|
|
1353
1353
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1354
1354
|
var SelectContent = React25.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ React25.createElement(SelectPrimitive.Portal, null, /* @__PURE__ */ React25.createElement(
|
|
@@ -1356,8 +1356,8 @@ var SelectContent = React25.forwardRef(({ className, children, position = "poppe
|
|
|
1356
1356
|
{
|
|
1357
1357
|
ref,
|
|
1358
1358
|
className: cn(
|
|
1359
|
-
"sb
|
|
1360
|
-
position === "popper" && "data-[side=bottom]:
|
|
1359
|
+
"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",
|
|
1360
|
+
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",
|
|
1361
1361
|
className
|
|
1362
1362
|
),
|
|
1363
1363
|
position,
|
|
@@ -1368,8 +1368,8 @@ var SelectContent = React25.forwardRef(({ className, children, position = "poppe
|
|
|
1368
1368
|
SelectPrimitive.Viewport,
|
|
1369
1369
|
{
|
|
1370
1370
|
className: cn(
|
|
1371
|
-
"sb
|
|
1372
|
-
position === "popper" && "sb
|
|
1371
|
+
"sb:p-1",
|
|
1372
|
+
position === "popper" && "sb:h-(--radix-select-trigger-height) sb:w-full sb:min-w-(--radix-select-trigger-width)"
|
|
1373
1373
|
)
|
|
1374
1374
|
},
|
|
1375
1375
|
children
|
|
@@ -1382,7 +1382,7 @@ var SelectLabel = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1382
1382
|
{
|
|
1383
1383
|
ref,
|
|
1384
1384
|
className: cn(
|
|
1385
|
-
"sb
|
|
1385
|
+
"sb:py-1.5 sb:pl-8 sb:pr-2 sb:text-sm sb:font-semibold",
|
|
1386
1386
|
className
|
|
1387
1387
|
),
|
|
1388
1388
|
...props
|
|
@@ -1394,12 +1394,12 @@ var SelectItem = React25.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1394
1394
|
{
|
|
1395
1395
|
ref,
|
|
1396
1396
|
className: cn(
|
|
1397
|
-
"sb
|
|
1397
|
+
"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",
|
|
1398
1398
|
className
|
|
1399
1399
|
),
|
|
1400
1400
|
...props
|
|
1401
1401
|
},
|
|
1402
|
-
/* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1402
|
+
/* @__PURE__ */ React25.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.createElement(SelectPrimitive.ItemIndicator, null, /* @__PURE__ */ React25.createElement(Check, { className: "sb:h-4 sb:w-4" }))),
|
|
1403
1403
|
/* @__PURE__ */ React25.createElement(SelectPrimitive.ItemText, null, children)
|
|
1404
1404
|
));
|
|
1405
1405
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
@@ -1407,7 +1407,7 @@ var SelectSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1407
1407
|
SelectPrimitive.Separator,
|
|
1408
1408
|
{
|
|
1409
1409
|
ref,
|
|
1410
|
-
className: cn("sb
|
|
1410
|
+
className: cn("sb:-mx-1 sb:my-1 sb:h-px sb:bg-muted", className),
|
|
1411
1411
|
...props
|
|
1412
1412
|
}
|
|
1413
1413
|
));
|
|
@@ -1418,7 +1418,7 @@ var Textarea = React25.forwardRef(
|
|
|
1418
1418
|
"textarea",
|
|
1419
1419
|
{
|
|
1420
1420
|
className: cn(
|
|
1421
|
-
"sb
|
|
1421
|
+
"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",
|
|
1422
1422
|
className
|
|
1423
1423
|
),
|
|
1424
1424
|
ref,
|
|
@@ -1456,7 +1456,7 @@ var ContainerItemForm = (props) => {
|
|
|
1456
1456
|
},
|
|
1457
1457
|
[patchItem, item.id]
|
|
1458
1458
|
);
|
|
1459
|
-
return /* @__PURE__ */ React25.createElement(Form, { ...form }, /* @__PURE__ */ React25.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25.createElement("div", { className: "sb-
|
|
1459
|
+
return /* @__PURE__ */ React25.createElement(Form, { ...form }, /* @__PURE__ */ React25.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4 sb:p-4" }, (component.inputs || []).map((input) => /* @__PURE__ */ React25.createElement(
|
|
1460
1460
|
RenderFormField,
|
|
1461
1461
|
{
|
|
1462
1462
|
key: input.name,
|
|
@@ -1473,16 +1473,16 @@ var RenderFormField = (props) => {
|
|
|
1473
1473
|
name: input.name
|
|
1474
1474
|
});
|
|
1475
1475
|
if (input.multiple) {
|
|
1476
|
-
return /* @__PURE__ */ React25.createElement("fieldset", { className: "sb-
|
|
1476
|
+
return /* @__PURE__ */ React25.createElement("fieldset", { className: "sb:flex sb:flex-col sb:gap-2" }, /* @__PURE__ */ React25.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4" }, fieldArray.fields.map(
|
|
1477
1477
|
(field, i) => type !== "grouped" ? /* @__PURE__ */ React25.createElement(
|
|
1478
1478
|
FormField,
|
|
1479
1479
|
{
|
|
1480
1480
|
key: field.id,
|
|
1481
1481
|
control: form.control,
|
|
1482
1482
|
name: `${input.name}.${i}`,
|
|
1483
|
-
render: ({ field: field2 }) => /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1483
|
+
render: ({ field: field2 }) => /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:items-center sb:gap-3" }, /* @__PURE__ */ React25.createElement(RenderInput, { field: field2, type: input.type }), /* @__PURE__ */ React25.createElement("button", { type: "button", onClick: () => fieldArray.remove(i) }, /* @__PURE__ */ React25.createElement(XIcon, { className: "sb:h-4 sb:w-4" })))
|
|
1484
1484
|
}
|
|
1485
|
-
) : /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1485
|
+
) : /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:items-center sb:relative" }, /* @__PURE__ */ React25.createElement(
|
|
1486
1486
|
RenderFormField,
|
|
1487
1487
|
{
|
|
1488
1488
|
key: field.id,
|
|
@@ -1500,9 +1500,9 @@ var RenderFormField = (props) => {
|
|
|
1500
1500
|
{
|
|
1501
1501
|
type: "button",
|
|
1502
1502
|
onClick: () => fieldArray.remove(i),
|
|
1503
|
-
className: "sb
|
|
1503
|
+
className: "sb:absolute sb:top-2 sb:right-2 sb:text-foreground/70 sb:hover:text-foreground"
|
|
1504
1504
|
},
|
|
1505
|
-
/* @__PURE__ */ React25.createElement(XIcon, { className: "sb
|
|
1505
|
+
/* @__PURE__ */ React25.createElement(XIcon, { className: "sb:h-4 sb:w-4" })
|
|
1506
1506
|
))
|
|
1507
1507
|
), /* @__PURE__ */ React25.createElement(
|
|
1508
1508
|
Button,
|
|
@@ -1511,12 +1511,12 @@ var RenderFormField = (props) => {
|
|
|
1511
1511
|
variant: "outline",
|
|
1512
1512
|
size: "sm",
|
|
1513
1513
|
className: cn(
|
|
1514
|
-
"sb
|
|
1515
|
-
type === "grouped" && "sb
|
|
1514
|
+
"sb:w-[89%] sb:border-2 sb:border-dashed sb:text-muted-foreground",
|
|
1515
|
+
type === "grouped" && "sb:w-full"
|
|
1516
1516
|
),
|
|
1517
1517
|
onClick: () => fieldArray.append(void 0)
|
|
1518
1518
|
},
|
|
1519
|
-
/* @__PURE__ */ React25.createElement(PlusCircleIcon, { className: "sb
|
|
1519
|
+
/* @__PURE__ */ React25.createElement(PlusCircleIcon, { className: "sb:h-4 sb:w-4" })
|
|
1520
1520
|
)));
|
|
1521
1521
|
}
|
|
1522
1522
|
switch (type) {
|
|
@@ -1536,7 +1536,7 @@ var RenderFormField = (props) => {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
);
|
|
1538
1538
|
case "richText":
|
|
1539
|
-
return /* @__PURE__ */ React25.createElement(Dialog, null, /* @__PURE__ */ React25.createElement("div", { className: "sb-
|
|
1539
|
+
return /* @__PURE__ */ React25.createElement(Dialog, null, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-2" }, /* @__PURE__ */ React25.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25.createElement(DialogTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(Button, { variant: "outline", className: "sb:w-full", type: "button" }, input.friendlyName || input.name, " bewerken"))), /* @__PURE__ */ React25.createElement(DialogContent, { className: "sb:max-w-3xl sb:p-0" }, /* @__PURE__ */ React25.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.createElement(DialogHeader, { className: "sb:flex-none sb:border-b sb:p-6" }, /* @__PURE__ */ React25.createElement(DialogTitle, null, input.friendlyName || input.name, " editor")), /* @__PURE__ */ React25.createElement("div", { className: "sb:flex-1 sb:overflow-y-auto" }, /* @__PURE__ */ React25.createElement(
|
|
1540
1540
|
FormField,
|
|
1541
1541
|
{
|
|
1542
1542
|
key: input.name,
|
|
@@ -1552,11 +1552,11 @@ var RenderFormField = (props) => {
|
|
|
1552
1552
|
key: input.name,
|
|
1553
1553
|
control: form.control,
|
|
1554
1554
|
name: input.name,
|
|
1555
|
-
render: ({ field }) => /* @__PURE__ */ React25.createElement(FormItem, { className: "sb
|
|
1555
|
+
render: ({ field }) => /* @__PURE__ */ React25.createElement(FormItem, { className: "sb:flex sb:flex-row sb:items-center sb:justify-between sb:space-y-0" }, /* @__PURE__ */ React25.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25.createElement(FormControl, null, /* @__PURE__ */ React25.createElement(RenderInput, { type, field })), input.helperText && /* @__PURE__ */ React25.createElement(FormDescription, null, input.helperText), /* @__PURE__ */ React25.createElement(FormMessage, null))
|
|
1556
1556
|
}
|
|
1557
1557
|
);
|
|
1558
1558
|
case "grouped":
|
|
1559
|
-
return /* @__PURE__ */ React25.createElement("div", { className: "sb-
|
|
1559
|
+
return /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-2 sb:w-full" }, input.friendlyName !== "" && /* @__PURE__ */ React25.createElement(FormLabel, null, input.friendlyName || input.name), /* @__PURE__ */ React25.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.createElement(
|
|
1560
1560
|
RenderFormField,
|
|
1561
1561
|
{
|
|
1562
1562
|
key: `${input.name}.${sub.name}`,
|
|
@@ -1596,13 +1596,13 @@ var RenderInput = (props) => {
|
|
|
1596
1596
|
variant: "outline",
|
|
1597
1597
|
size: "sm",
|
|
1598
1598
|
className: cn(
|
|
1599
|
-
"sb
|
|
1600
|
-
!field.value && "sb
|
|
1599
|
+
"sb:w-full sb:flex sb:justify-start sb:text-left sb:font-normal",
|
|
1600
|
+
!field.value && "sb:text-muted-foreground"
|
|
1601
1601
|
)
|
|
1602
1602
|
},
|
|
1603
|
-
/* @__PURE__ */ React25.createElement(CalendarIcon, { className: "sb
|
|
1603
|
+
/* @__PURE__ */ React25.createElement(CalendarIcon, { className: "sb:mr-2 sb:h-4 sb:w-4" }),
|
|
1604
1604
|
field.value && !Array.isArray(field.value) ? format(field.value, "PPP") : /* @__PURE__ */ React25.createElement("span", null, "Pick a date")
|
|
1605
|
-
)), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb
|
|
1605
|
+
)), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb:w-auto sb:p-0", align: "start" }, /* @__PURE__ */ React25.createElement(
|
|
1606
1606
|
Calendar,
|
|
1607
1607
|
{
|
|
1608
1608
|
mode: "single",
|
|
@@ -1617,8 +1617,8 @@ var RenderInput = (props) => {
|
|
|
1617
1617
|
return /* @__PURE__ */ React25.createElement(
|
|
1618
1618
|
MediaInput,
|
|
1619
1619
|
{
|
|
1620
|
-
className: "sb
|
|
1621
|
-
itemClassName: "sb
|
|
1620
|
+
className: "sb:grid sb:grid-cols-2 sb:gap-1",
|
|
1621
|
+
itemClassName: "sb:aspect-video sb:h-auto sb:w-full",
|
|
1622
1622
|
multiple: false,
|
|
1623
1623
|
files: field.value ? [field.value] : [],
|
|
1624
1624
|
onFilesChange: (files) => field.onChange(files[0]),
|
|
@@ -1638,8 +1638,8 @@ var Tabs = TabsPrimitive.Root;
|
|
|
1638
1638
|
var tabsListVariants = tv({
|
|
1639
1639
|
variants: {
|
|
1640
1640
|
variant: {
|
|
1641
|
-
contained: "sb
|
|
1642
|
-
text: "sb
|
|
1641
|
+
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",
|
|
1642
|
+
text: "sb:flex sb:items-center sb:border-b sb:px-4 sb:gap-6"
|
|
1643
1643
|
}
|
|
1644
1644
|
},
|
|
1645
1645
|
defaultVariants: {
|
|
@@ -1658,8 +1658,8 @@ TabsList.displayName = TabsPrimitive.List.displayName;
|
|
|
1658
1658
|
var tabsTriggerVariants = tv({
|
|
1659
1659
|
variants: {
|
|
1660
1660
|
variant: {
|
|
1661
|
-
contained: "sb
|
|
1662
|
-
text: "sb
|
|
1661
|
+
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",
|
|
1662
|
+
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"
|
|
1663
1663
|
}
|
|
1664
1664
|
},
|
|
1665
1665
|
defaultVariants: {
|
|
@@ -1680,7 +1680,7 @@ var TabsContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1680
1680
|
{
|
|
1681
1681
|
ref,
|
|
1682
1682
|
className: cn(
|
|
1683
|
-
"sb
|
|
1683
|
+
"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",
|
|
1684
1684
|
className
|
|
1685
1685
|
),
|
|
1686
1686
|
...props
|
|
@@ -1723,30 +1723,30 @@ var BackgroundPicker = (props) => {
|
|
|
1723
1723
|
variant: "outline",
|
|
1724
1724
|
size: "sm",
|
|
1725
1725
|
className: cn(
|
|
1726
|
-
"sb
|
|
1727
|
-
!background && "sb
|
|
1726
|
+
"sb:justify-start sb:text-left sb:font-normal sb:normal-case sb:w-full",
|
|
1727
|
+
!background && "sb:text-muted-foreground",
|
|
1728
1728
|
className
|
|
1729
1729
|
)
|
|
1730
1730
|
},
|
|
1731
|
-
/* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1731
|
+
/* @__PURE__ */ React25.createElement("div", { className: "sb:w-full sb:flex sb:items-center sb:gap-2" }, background ? /* @__PURE__ */ React25.createElement(
|
|
1732
1732
|
"div",
|
|
1733
1733
|
{
|
|
1734
|
-
className: "sb
|
|
1734
|
+
className: "sb:h-4 sb:w-4 sb:rounded sb:bg-center! sb:bg-cover! sb:transition-all sb:border",
|
|
1735
1735
|
style: { background }
|
|
1736
1736
|
}
|
|
1737
|
-
) : /* @__PURE__ */ React25.createElement(PaintbrushIcon, { className: "sb
|
|
1738
|
-
)), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb
|
|
1737
|
+
) : /* @__PURE__ */ React25.createElement(PaintbrushIcon, { className: "sb:h-4 sb:w-4" }), /* @__PURE__ */ React25.createElement("div", { className: "sb:truncate sb:flex-1" }, background ? background : "Kies een achtergrond"))
|
|
1738
|
+
)), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb:w-64 sb:p-0" }, /* @__PURE__ */ React25.createElement(Tabs, { defaultValue: defaultTab }, /* @__PURE__ */ React25.createElement(TabsList, { className: "sb:w-full" }, /* @__PURE__ */ React25.createElement(TabsTrigger, { className: "sb:flex-1", value: "solid" }, "Solid"), /* @__PURE__ */ React25.createElement(TabsTrigger, { className: "sb:flex-1", value: "gradient" }, "Gradient"), /* @__PURE__ */ React25.createElement(TabsTrigger, { className: "sb:flex-1", value: "image" }, "Image")), /* @__PURE__ */ React25.createElement(
|
|
1739
1739
|
TabsContent,
|
|
1740
1740
|
{
|
|
1741
1741
|
value: "solid",
|
|
1742
|
-
className: "data-[state=active]:
|
|
1742
|
+
className: "sb:data-[state=active]:flex sb:flex-wrap sb:gap-1 sb:p-4"
|
|
1743
1743
|
},
|
|
1744
1744
|
solids.map((s) => /* @__PURE__ */ React25.createElement(
|
|
1745
1745
|
"div",
|
|
1746
1746
|
{
|
|
1747
1747
|
key: s,
|
|
1748
1748
|
style: { background: s },
|
|
1749
|
-
className: "sb
|
|
1749
|
+
className: "sb:rounded-md sb:h-6 sb:w-6 sb:cursor-pointer sb:active:scale-105 sb:border",
|
|
1750
1750
|
onClick: () => onBackgroundChange(s)
|
|
1751
1751
|
}
|
|
1752
1752
|
))
|
|
@@ -1754,7 +1754,7 @@ var BackgroundPicker = (props) => {
|
|
|
1754
1754
|
TabsContent,
|
|
1755
1755
|
{
|
|
1756
1756
|
value: "gradient",
|
|
1757
|
-
className: "data-[state=active]:
|
|
1757
|
+
className: "sb:data-[state=active]:flex sb:flex-wrap sb:gap-1 sb:p-4"
|
|
1758
1758
|
},
|
|
1759
1759
|
gradients.map((s) => /* @__PURE__ */ React25.createElement(
|
|
1760
1760
|
"div",
|
|
@@ -1765,11 +1765,11 @@ var BackgroundPicker = (props) => {
|
|
|
1765
1765
|
onClick: () => onBackgroundChange(s)
|
|
1766
1766
|
}
|
|
1767
1767
|
))
|
|
1768
|
-
), /* @__PURE__ */ React25.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1768
|
+
), /* @__PURE__ */ React25.createElement(TabsContent, { value: "image" }, /* @__PURE__ */ React25.createElement("div", { className: "sb:p-4 sb:border-b" }, /* @__PURE__ */ React25.createElement(
|
|
1769
1769
|
MediaInput,
|
|
1770
1770
|
{
|
|
1771
|
-
className: "sb
|
|
1772
|
-
itemClassName: "sb
|
|
1771
|
+
className: "sb:grid sb:grid-cols-2 sb:gap-1",
|
|
1772
|
+
itemClassName: "sb:aspect-video sb:h-auto sb:w-full",
|
|
1773
1773
|
multiple: false,
|
|
1774
1774
|
onFilesChange: (files) => {
|
|
1775
1775
|
if (!files.length)
|
|
@@ -1781,12 +1781,12 @@ var BackgroundPicker = (props) => {
|
|
|
1781
1781
|
"media-input: Error: " + e?.description
|
|
1782
1782
|
)
|
|
1783
1783
|
}
|
|
1784
|
-
)), /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1784
|
+
)), /* @__PURE__ */ React25.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:gap-1 sb:p-4" }, images.map((s) => /* @__PURE__ */ React25.createElement(
|
|
1785
1785
|
"div",
|
|
1786
1786
|
{
|
|
1787
1787
|
key: s,
|
|
1788
1788
|
style: { backgroundImage: s },
|
|
1789
|
-
className: "sb
|
|
1789
|
+
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",
|
|
1790
1790
|
onClick: () => onBackgroundChange(s)
|
|
1791
1791
|
}
|
|
1792
1792
|
)))))));
|
|
@@ -1801,14 +1801,14 @@ var SpacingInput = (props) => {
|
|
|
1801
1801
|
return;
|
|
1802
1802
|
props.onChange(stringify(value));
|
|
1803
1803
|
}, [value, props.onChange]);
|
|
1804
|
-
return /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1804
|
+
return /* @__PURE__ */ React25.createElement("div", { className: "sb:grid sb:grid-cols-[1fr_auto] sb:gap-3" }, /* @__PURE__ */ React25.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:items-center sb:gap-3" }, !indipendent ? /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(
|
|
1805
1805
|
AdvancedInput,
|
|
1806
1806
|
{
|
|
1807
1807
|
value: value.left,
|
|
1808
1808
|
pattern: "\\d+",
|
|
1809
1809
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, left: +value2, right: +value2 })),
|
|
1810
|
-
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalSpaceAroundIcon, { className: "sb
|
|
1811
|
-
append: /* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1810
|
+
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalSpaceAroundIcon, { className: "sb:h-4 sb:w-4" }),
|
|
1811
|
+
append: /* @__PURE__ */ React25.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1812
1812
|
}
|
|
1813
1813
|
), /* @__PURE__ */ React25.createElement(
|
|
1814
1814
|
AdvancedInput,
|
|
@@ -1816,8 +1816,8 @@ var SpacingInput = (props) => {
|
|
|
1816
1816
|
value: value.top,
|
|
1817
1817
|
pattern: "\\d+",
|
|
1818
1818
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, top: +value2, bottom: +value2 })),
|
|
1819
|
-
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalSpaceAroundIcon, { className: "sb
|
|
1820
|
-
append: /* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1819
|
+
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalSpaceAroundIcon, { className: "sb:h-4 sb:w-4 sb:rotate-90" }),
|
|
1820
|
+
append: /* @__PURE__ */ React25.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1821
1821
|
}
|
|
1822
1822
|
)) : /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement(
|
|
1823
1823
|
AdvancedInput,
|
|
@@ -1825,8 +1825,8 @@ var SpacingInput = (props) => {
|
|
|
1825
1825
|
value: value.left,
|
|
1826
1826
|
pattern: "\\d+",
|
|
1827
1827
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, left: +value2 })),
|
|
1828
|
-
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1829
|
-
append: /* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1828
|
+
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4" }),
|
|
1829
|
+
append: /* @__PURE__ */ React25.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1830
1830
|
}
|
|
1831
1831
|
), /* @__PURE__ */ React25.createElement(
|
|
1832
1832
|
AdvancedInput,
|
|
@@ -1834,8 +1834,8 @@ var SpacingInput = (props) => {
|
|
|
1834
1834
|
value: value.top,
|
|
1835
1835
|
pattern: "\\d+",
|
|
1836
1836
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, top: +value2 })),
|
|
1837
|
-
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1838
|
-
append: /* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1837
|
+
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4 sb:rotate-90" }),
|
|
1838
|
+
append: /* @__PURE__ */ React25.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1839
1839
|
}
|
|
1840
1840
|
), /* @__PURE__ */ React25.createElement(
|
|
1841
1841
|
AdvancedInput,
|
|
@@ -1843,8 +1843,8 @@ var SpacingInput = (props) => {
|
|
|
1843
1843
|
value: value.right,
|
|
1844
1844
|
pattern: "\\d+",
|
|
1845
1845
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, right: +value2 })),
|
|
1846
|
-
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1847
|
-
append: /* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1846
|
+
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4 sb:rotate-180" }),
|
|
1847
|
+
append: /* @__PURE__ */ React25.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1848
1848
|
}
|
|
1849
1849
|
), /* @__PURE__ */ React25.createElement(
|
|
1850
1850
|
AdvancedInput,
|
|
@@ -1852,19 +1852,19 @@ var SpacingInput = (props) => {
|
|
|
1852
1852
|
value: value.bottom,
|
|
1853
1853
|
pattern: "\\d+",
|
|
1854
1854
|
onChange: ({ target: { value: value2 } }) => setValue((prev) => ({ ...prev, bottom: +value2 })),
|
|
1855
|
-
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb
|
|
1856
|
-
append: /* @__PURE__ */ React25.createElement("span", { className: "sb
|
|
1855
|
+
prepend: /* @__PURE__ */ React25.createElement(AlignHorizontalJustifyStartIcon, { className: "sb:h-4 sb:w-4 sb:-rotate-90" }),
|
|
1856
|
+
append: /* @__PURE__ */ React25.createElement("span", { className: "sb:text-muted-foreground" }, "px")
|
|
1857
1857
|
}
|
|
1858
|
-
))), /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
1858
|
+
))), /* @__PURE__ */ React25.createElement("div", { className: "sb:shrink-0" }, /* @__PURE__ */ React25.createElement(
|
|
1859
1859
|
Toggle,
|
|
1860
1860
|
{
|
|
1861
|
-
className: "sb
|
|
1861
|
+
className: "sb:shrink-0 sb:flex sb:w-8 sb:h-8 sb:p-0",
|
|
1862
1862
|
variant: "outline",
|
|
1863
1863
|
size: "sm",
|
|
1864
1864
|
pressed: indipendent,
|
|
1865
1865
|
onPressedChange: setIndipendent
|
|
1866
1866
|
},
|
|
1867
|
-
/* @__PURE__ */ React25.createElement(ScanIcon, { className: "sb
|
|
1867
|
+
/* @__PURE__ */ React25.createElement(ScanIcon, { className: "sb:h-4 sb:w-4" })
|
|
1868
1868
|
)));
|
|
1869
1869
|
};
|
|
1870
1870
|
var isIndipendent = (value) => {
|
|
@@ -2003,14 +2003,14 @@ var ItemDesignForm = (props) => {
|
|
|
2003
2003
|
[patchItem, item.id, form.formState.dirtyFields]
|
|
2004
2004
|
);
|
|
2005
2005
|
const [device, setDevice] = React25.useState("desktop");
|
|
2006
|
-
return /* @__PURE__ */ React25.createElement(Form, { ...form }, /* @__PURE__ */ React25.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25.createElement("div", { className: "sb-
|
|
2006
|
+
return /* @__PURE__ */ React25.createElement(Form, { ...form }, /* @__PURE__ */ React25.createElement("form", { onSubmit: form.handleSubmit(onSubmit) }, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4 sb:p-4" }, /* @__PURE__ */ React25.createElement(
|
|
2007
2007
|
Tabs,
|
|
2008
2008
|
{
|
|
2009
2009
|
defaultValue: device,
|
|
2010
2010
|
onValueChange: (device2) => setDevice(device2)
|
|
2011
2011
|
},
|
|
2012
|
-
/* @__PURE__ */ React25.createElement(TabsList, { className: "sb
|
|
2013
|
-
), /* @__PURE__ */ React25.createElement("div", { className: "sb-
|
|
2012
|
+
/* @__PURE__ */ React25.createElement(TabsList, { className: "sb:h-9 sb:grid sb:w-full sb:grid-cols-2" }, /* @__PURE__ */ React25.createElement(TabsTrigger, { value: "desktop", className: "sb:text-xs" }, /* @__PURE__ */ React25.createElement(MonitorIcon, { className: "sb:h-4 sb:w-4 sb:mr-2" }), /* @__PURE__ */ React25.createElement("span", null, "Desktop")), /* @__PURE__ */ React25.createElement(TabsTrigger, { value: "mobile", className: "sb:text-xs" }, /* @__PURE__ */ React25.createElement(SmartphoneIcon, { className: "sb:h-4 sb:w-4 sb:mr-2" }), /* @__PURE__ */ React25.createElement("span", null, "Mobiel")))
|
|
2013
|
+
), /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:flex-col sb:gap-4" }, /* @__PURE__ */ React25.createElement(
|
|
2014
2014
|
FormField,
|
|
2015
2015
|
{
|
|
2016
2016
|
control: form.control,
|
|
@@ -2050,7 +2050,7 @@ var ItemDesignForm = (props) => {
|
|
|
2050
2050
|
{
|
|
2051
2051
|
control: form.control,
|
|
2052
2052
|
name: "container",
|
|
2053
|
-
render: ({ field }) => /* @__PURE__ */ React25.createElement(FormItem, { className: "sb
|
|
2053
|
+
render: ({ field }) => /* @__PURE__ */ React25.createElement(FormItem, { className: "sb:flex sb:flex-row sb:items-center sb:justify-between sb:space-y-0" }, /* @__PURE__ */ React25.createElement(FormLabel, null, "Volledige breedte"), /* @__PURE__ */ React25.createElement(FormControl, null, /* @__PURE__ */ React25.createElement(
|
|
2054
2054
|
Switch,
|
|
2055
2055
|
{
|
|
2056
2056
|
checked: !field.value,
|
|
@@ -2092,10 +2092,10 @@ var ScrollArea = React25.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2092
2092
|
ScrollAreaPrimitive.Root,
|
|
2093
2093
|
{
|
|
2094
2094
|
ref,
|
|
2095
|
-
className: cn("sb
|
|
2095
|
+
className: cn("sb:relative sb:overflow-hidden", className),
|
|
2096
2096
|
...props
|
|
2097
2097
|
},
|
|
2098
|
-
/* @__PURE__ */ React25.createElement(ScrollAreaPrimitive.Viewport, { className: "sb
|
|
2098
|
+
/* @__PURE__ */ React25.createElement(ScrollAreaPrimitive.Viewport, { className: "sb:h-full sb:max-h-[80vh] sb:w-full sb:rounded-[inherit]" }, children),
|
|
2099
2099
|
/* @__PURE__ */ React25.createElement(ScrollBar, null),
|
|
2100
2100
|
/* @__PURE__ */ React25.createElement(ScrollAreaPrimitive.Corner, null)
|
|
2101
2101
|
));
|
|
@@ -2106,14 +2106,14 @@ var ScrollBar = React25.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
2106
2106
|
ref,
|
|
2107
2107
|
orientation,
|
|
2108
2108
|
className: cn(
|
|
2109
|
-
"sb
|
|
2110
|
-
orientation === "vertical" && "sb
|
|
2111
|
-
orientation === "horizontal" && "sb
|
|
2109
|
+
"sb:flex sb:touch-none sb:select-none sb:transition-colors",
|
|
2110
|
+
orientation === "vertical" && "sb:h-full sb:w-2.5 sb:border-l sb:border-l-transparent sb:p-px",
|
|
2111
|
+
orientation === "horizontal" && "sb:h-2.5 sb:flex-col sb:border-t sb:border-t-transparent sb:p-px",
|
|
2112
2112
|
className
|
|
2113
2113
|
),
|
|
2114
2114
|
...props
|
|
2115
2115
|
},
|
|
2116
|
-
/* @__PURE__ */ React25.createElement(ScrollAreaPrimitive.ScrollAreaThumb, { className: "sb
|
|
2116
|
+
/* @__PURE__ */ React25.createElement(ScrollAreaPrimitive.ScrollAreaThumb, { className: "sb:relative sb:flex-1 sb:rounded-full sb:bg-border" })
|
|
2117
2117
|
));
|
|
2118
2118
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
2119
2119
|
|
|
@@ -2121,35 +2121,35 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
|
2121
2121
|
var ContainerItemToolbar = (props) => {
|
|
2122
2122
|
const { contentId, canBringUp = false, canBringDown = false } = props;
|
|
2123
2123
|
const { bringUp, bringDown } = useBuilder();
|
|
2124
|
-
return /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
2124
|
+
return /* @__PURE__ */ React25.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.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.createElement(EditButton, { id: contentId }), /* @__PURE__ */ React25.createElement(
|
|
2125
2125
|
Button,
|
|
2126
2126
|
{
|
|
2127
2127
|
variant: "ghost",
|
|
2128
|
-
className: "sb
|
|
2128
|
+
className: "sb:w-8 sb:h-8 sb:p-0",
|
|
2129
2129
|
onClick: () => bringUp(contentId),
|
|
2130
2130
|
disabled: !canBringUp
|
|
2131
2131
|
},
|
|
2132
|
-
/* @__PURE__ */ React25.createElement(ArrowUp, { className: "sb
|
|
2132
|
+
/* @__PURE__ */ React25.createElement(ArrowUp, { className: "sb:h-5 sb:w-5" })
|
|
2133
2133
|
), /* @__PURE__ */ React25.createElement(
|
|
2134
2134
|
Button,
|
|
2135
2135
|
{
|
|
2136
2136
|
variant: "ghost",
|
|
2137
|
-
className: "sb
|
|
2137
|
+
className: "sb:w-8 sb:h-8 sb:p-0",
|
|
2138
2138
|
onClick: () => bringDown(contentId),
|
|
2139
2139
|
disabled: !canBringDown
|
|
2140
2140
|
},
|
|
2141
|
-
/* @__PURE__ */ React25.createElement(ArrowDown, { className: "sb
|
|
2141
|
+
/* @__PURE__ */ React25.createElement(ArrowDown, { className: "sb:h-5 sb:w-5" })
|
|
2142
2142
|
), /* @__PURE__ */ React25.createElement(DeleteButton, { contentId })));
|
|
2143
2143
|
};
|
|
2144
2144
|
var EditButton = ({ id }) => {
|
|
2145
|
-
return /* @__PURE__ */ React25.createElement(Popover, { modal: true }, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(Button, { variant: "ghost", className: "sb
|
|
2145
|
+
return /* @__PURE__ */ React25.createElement(Popover, { modal: true }, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, /* @__PURE__ */ React25.createElement(Button, { variant: "ghost", className: "sb:w-8 sb:h-8 sb:p-0" }, /* @__PURE__ */ React25.createElement(Edit2Icon, { className: "sb:h-5 sb:w-5" }))), /* @__PURE__ */ React25.createElement(
|
|
2146
2146
|
PopoverContent,
|
|
2147
2147
|
{
|
|
2148
2148
|
side: "left",
|
|
2149
2149
|
align: "start",
|
|
2150
2150
|
sideOffset: 16,
|
|
2151
2151
|
alignOffset: -8,
|
|
2152
|
-
className: "sb
|
|
2152
|
+
className: "sb:p-0 sb:relative",
|
|
2153
2153
|
collisionPadding: 16
|
|
2154
2154
|
},
|
|
2155
2155
|
/* @__PURE__ */ React25.createElement(EditPopoverInner, { id })
|
|
@@ -2172,9 +2172,9 @@ var DeleteButton = ({ contentId }) => {
|
|
|
2172
2172
|
Button,
|
|
2173
2173
|
{
|
|
2174
2174
|
variant: "ghost",
|
|
2175
|
-
className: "sb
|
|
2175
|
+
className: "sb:w-8 sb:h-8 sb:p-0 sb:text-destructive"
|
|
2176
2176
|
},
|
|
2177
|
-
/* @__PURE__ */ React25.createElement(Trash2Icon, { className: "sb
|
|
2177
|
+
/* @__PURE__ */ React25.createElement(Trash2Icon, { className: "sb:h-5 sb:w-5" })
|
|
2178
2178
|
)), /* @__PURE__ */ React25.createElement(AlertDialogContent, null, /* @__PURE__ */ React25.createElement(AlertDialogDescription, null, "Weet je zeker dat je dit blok wilt verwijderen?"), /* @__PURE__ */ React25.createElement(AlertDialogFooter, null, /* @__PURE__ */ React25.createElement(AlertDialogCancel, null, "Annuleren"), /* @__PURE__ */ React25.createElement(
|
|
2179
2179
|
AlertDialogAction,
|
|
2180
2180
|
{
|
|
@@ -2194,7 +2194,7 @@ var BuildContainerInner = (props) => {
|
|
|
2194
2194
|
"[simple-builder]: Multiple content blocks detected when using property multiple false."
|
|
2195
2195
|
);
|
|
2196
2196
|
}
|
|
2197
|
-
return /* @__PURE__ */ React25.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React25.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React25.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React25.createElement(React25.Fragment, { key: item.id }, /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
2197
|
+
return /* @__PURE__ */ React25.createElement("div", null, items.length <= 0 ? /* @__PURE__ */ React25.createElement(AddContentPlaceholder, { parent: id, container: name, index: 0 }) : multiple && /* @__PURE__ */ React25.createElement(AddContentDividerButton, { parent: id, container: name, index: 0 }), items.map((item, i) => /* @__PURE__ */ React25.createElement(React25.Fragment, { key: item.id }, /* @__PURE__ */ React25.createElement("div", { className: "sb:relative sb-container-item" }, /* @__PURE__ */ React25.createElement(DesignWrapper, { building: true, styles: item.styles }, builder.bindComponent(item, true)), /* @__PURE__ */ React25.createElement(
|
|
2198
2198
|
ContainerItemToolbar,
|
|
2199
2199
|
{
|
|
2200
2200
|
contentId: item.id,
|
|
@@ -2214,13 +2214,13 @@ var build_container_client_default = BuildContainerInner;
|
|
|
2214
2214
|
var AddContentButton = (props) => {
|
|
2215
2215
|
const components = builder.getComponents();
|
|
2216
2216
|
const { addContent } = useBuilder();
|
|
2217
|
-
return /* @__PURE__ */ React25.createElement(Popover, null, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb
|
|
2217
|
+
return /* @__PURE__ */ React25.createElement(Popover, null, /* @__PURE__ */ React25.createElement(PopoverTrigger, { asChild: true }, props.children), /* @__PURE__ */ React25.createElement(PopoverContent, { className: "sb:p-1" }, /* @__PURE__ */ React25.createElement("div", { className: "sb:grid sb:grid-cols-2 sb:gap-2" }, components.map((component) => {
|
|
2218
2218
|
const Icon2 = component.icon ?? ImageIcon;
|
|
2219
2219
|
return /* @__PURE__ */ React25.createElement(PopoverClose, { key: component.name, asChild: true }, /* @__PURE__ */ React25.createElement(
|
|
2220
2220
|
Button,
|
|
2221
2221
|
{
|
|
2222
2222
|
variant: "ghost",
|
|
2223
|
-
className: "sb
|
|
2223
|
+
className: "sb:justify-start",
|
|
2224
2224
|
onClick: () => {
|
|
2225
2225
|
addContent(
|
|
2226
2226
|
component.name,
|
|
@@ -2230,22 +2230,22 @@ var AddContentButton = (props) => {
|
|
|
2230
2230
|
);
|
|
2231
2231
|
}
|
|
2232
2232
|
},
|
|
2233
|
-
/* @__PURE__ */ React25.createElement(Icon2, { className: "sb
|
|
2233
|
+
/* @__PURE__ */ React25.createElement(Icon2, { className: "sb:mr-2 sb:h-4 sb:w-4 sb:shrink-0" }),
|
|
2234
2234
|
component.friendlyName ?? component.name
|
|
2235
2235
|
));
|
|
2236
2236
|
}))));
|
|
2237
2237
|
};
|
|
2238
2238
|
var AddContentPlaceholder = (props) => {
|
|
2239
|
-
return /* @__PURE__ */ React25.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
2239
|
+
return /* @__PURE__ */ React25.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25.createElement("div", { className: "sb:flex sb:justify-center sb:bg-primary/50 p-4" }, /* @__PURE__ */ React25.createElement(Button, { size: "sm" }, /* @__PURE__ */ React25.createElement(PlusIcon, { className: "sb:mr-2 sb:h-4 sb:w-4" }), "Blok Toevoegen")));
|
|
2240
2240
|
};
|
|
2241
2241
|
var AddContentDividerButton = (props) => {
|
|
2242
|
-
return /* @__PURE__ */ React25.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25.createElement("div", { className: "sb
|
|
2242
|
+
return /* @__PURE__ */ React25.createElement(AddContentButton, { ...props }, /* @__PURE__ */ React25.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.createElement(
|
|
2243
2243
|
Button,
|
|
2244
2244
|
{
|
|
2245
2245
|
size: "sm",
|
|
2246
|
-
className: "sb
|
|
2246
|
+
className: "sb:absolute sb:left-1/2 sb:top-1/2 sb:-translate-y-1/2 sb:-translate-x-1/2 sb:shadow"
|
|
2247
2247
|
},
|
|
2248
|
-
/* @__PURE__ */ React25.createElement(PlusIcon, { className: "sb
|
|
2248
|
+
/* @__PURE__ */ React25.createElement(PlusIcon, { className: "sb:mr-2 sb:h-4 sb:w-4" }),
|
|
2249
2249
|
"Blok Toevoegen"
|
|
2250
2250
|
)));
|
|
2251
2251
|
};
|