@mlw-packages/react-components 1.3.18 → 1.4.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/README.md +79 -18
- package/dist/index.css +103 -10
- package/dist/index.d.mts +130 -67
- package/dist/index.d.ts +130 -67
- package/dist/index.js +451 -606
- package/dist/index.mjs +435 -432
- package/package.json +11 -2
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import './index.css';
|
|
2
3
|
|
|
3
4
|
// src/components/ui/AlertDialogBase.tsx
|
|
@@ -50,13 +51,14 @@ var buttonVariantsBase = cva(
|
|
|
50
51
|
}
|
|
51
52
|
);
|
|
52
53
|
var ButtonBase = React.forwardRef(
|
|
53
|
-
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
54
|
+
({ className, variant, size, asChild = false, testid = `button-${variant ?? "default"}`, ...props }, ref) => {
|
|
54
55
|
const Comp = asChild ? Slot : "button";
|
|
55
56
|
return /* @__PURE__ */ jsx(
|
|
56
57
|
Comp,
|
|
57
58
|
{
|
|
58
59
|
className: cn(buttonVariantsBase({ variant, size, className })),
|
|
59
60
|
ref,
|
|
61
|
+
"data-testid": testid ?? `button-${variant ?? "default"}`,
|
|
60
62
|
...props
|
|
61
63
|
}
|
|
62
64
|
);
|
|
@@ -101,19 +103,20 @@ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
|
101
103
|
var AlertDialogBase = AlertDialogPrimitive.Root;
|
|
102
104
|
var AlertDialogTriggerBase = AlertDialogPrimitive.Trigger;
|
|
103
105
|
var AlertDialogPortalBase = AlertDialogPrimitive.Portal;
|
|
104
|
-
var AlertDialogOverlayBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
106
|
+
var AlertDialogOverlayBase = React2.forwardRef(({ className, testid = "alertdialog-overlay", ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
105
107
|
AlertDialogPrimitive.Overlay,
|
|
106
108
|
{
|
|
107
109
|
className: cn(
|
|
108
110
|
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
109
111
|
className
|
|
110
112
|
),
|
|
113
|
+
"data-testid": testid,
|
|
111
114
|
...props,
|
|
112
115
|
ref
|
|
113
116
|
}
|
|
114
117
|
));
|
|
115
118
|
AlertDialogOverlayBase.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
116
|
-
var AlertDialogContentBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortalBase, { children: [
|
|
119
|
+
var AlertDialogContentBase = React2.forwardRef(({ className, testid = "alertdialog-content", ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortalBase, { children: [
|
|
117
120
|
/* @__PURE__ */ jsx2(AlertDialogOverlayBase, {}),
|
|
118
121
|
/* @__PURE__ */ jsx2(
|
|
119
122
|
AlertDialogPrimitive.Content,
|
|
@@ -123,6 +126,7 @@ var AlertDialogContentBase = React2.forwardRef(({ className, ...props }, ref) =>
|
|
|
123
126
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
124
127
|
className
|
|
125
128
|
),
|
|
129
|
+
"data-testid": testid,
|
|
126
130
|
...props
|
|
127
131
|
}
|
|
128
132
|
)
|
|
@@ -156,34 +160,37 @@ var AlertDialogFooterBase = ({
|
|
|
156
160
|
}
|
|
157
161
|
);
|
|
158
162
|
AlertDialogFooterBase.displayName = "AlertDialogFooterBase";
|
|
159
|
-
var AlertDialogTitleBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
163
|
+
var AlertDialogTitleBase = React2.forwardRef(({ className, testid = "alertdialog-title", ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
160
164
|
AlertDialogPrimitive.Title,
|
|
161
165
|
{
|
|
162
166
|
ref,
|
|
163
167
|
className: cn("text-lg font-semibold", className),
|
|
168
|
+
"data-testid": testid,
|
|
164
169
|
...props
|
|
165
170
|
}
|
|
166
171
|
));
|
|
167
172
|
AlertDialogTitleBase.displayName = AlertDialogPrimitive.Title.displayName;
|
|
168
|
-
var AlertDialogDescriptionBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
173
|
+
var AlertDialogDescriptionBase = React2.forwardRef(({ className, testid = "alertdialog-description", ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
169
174
|
AlertDialogPrimitive.Description,
|
|
170
175
|
{
|
|
171
176
|
ref,
|
|
172
177
|
className: cn("text-sm text-muted-foreground", className),
|
|
178
|
+
"data-testid": testid,
|
|
173
179
|
...props
|
|
174
180
|
}
|
|
175
181
|
));
|
|
176
182
|
AlertDialogDescriptionBase.displayName = AlertDialogPrimitive.Description.displayName;
|
|
177
|
-
var AlertDialogActionBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
183
|
+
var AlertDialogActionBase = React2.forwardRef(({ className, testid = "alertdialog-action", ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
178
184
|
AlertDialogPrimitive.Action,
|
|
179
185
|
{
|
|
180
186
|
ref,
|
|
181
187
|
className: cn(buttonVariantsBase(), className),
|
|
188
|
+
"data-testid": testid,
|
|
182
189
|
...props
|
|
183
190
|
}
|
|
184
191
|
));
|
|
185
192
|
AlertDialogActionBase.displayName = AlertDialogPrimitive.Action.displayName;
|
|
186
|
-
var AlertDialogCancelBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
193
|
+
var AlertDialogCancelBase = React2.forwardRef(({ className, testid = "alertdialog-cancel", ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
187
194
|
AlertDialogPrimitive.Cancel,
|
|
188
195
|
{
|
|
189
196
|
ref,
|
|
@@ -192,6 +199,7 @@ var AlertDialogCancelBase = React2.forwardRef(({ className, ...props }, ref) =>
|
|
|
192
199
|
"mt-2 sm:mt-0",
|
|
193
200
|
className
|
|
194
201
|
),
|
|
202
|
+
"data-testid": testid,
|
|
195
203
|
...props
|
|
196
204
|
}
|
|
197
205
|
));
|
|
@@ -251,7 +259,7 @@ import { jsx as jsx4 } from "react/jsx-runtime";
|
|
|
251
259
|
var PopoverBase = PopoverPrimitive.Root;
|
|
252
260
|
var PopoverTriggerBase = PopoverPrimitive.Trigger;
|
|
253
261
|
var PopoverAnchorBase = PopoverPrimitive.Anchor;
|
|
254
|
-
var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx4(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx4(
|
|
262
|
+
var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideOffset = 4, testid: dataTestId = "popover-content", ...props }, ref) => /* @__PURE__ */ jsx4(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx4(
|
|
255
263
|
PopoverPrimitive.Content,
|
|
256
264
|
{
|
|
257
265
|
ref,
|
|
@@ -261,6 +269,7 @@ var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideO
|
|
|
261
269
|
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
262
270
|
className
|
|
263
271
|
),
|
|
272
|
+
"data-testid": dataTestId,
|
|
264
273
|
...props
|
|
265
274
|
}
|
|
266
275
|
) }));
|
|
@@ -390,19 +399,20 @@ var DialogBase = DialogPrimitive.Root;
|
|
|
390
399
|
var DialogTriggerBase = DialogPrimitive.Trigger;
|
|
391
400
|
var DialogPortalBase = DialogPrimitive.Portal;
|
|
392
401
|
var DialogCloseBase = DialogPrimitive.Close;
|
|
393
|
-
var DialogOverlayBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
402
|
+
var DialogOverlayBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-overlay", ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
394
403
|
DialogPrimitive.Overlay,
|
|
395
404
|
{
|
|
396
405
|
ref,
|
|
397
406
|
className: cn(
|
|
398
|
-
"fixed inset-0 z-50 bg-black/80
|
|
407
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
399
408
|
className
|
|
400
409
|
),
|
|
410
|
+
"data-testid": dataTestId,
|
|
401
411
|
...props
|
|
402
412
|
}
|
|
403
413
|
));
|
|
404
414
|
DialogOverlayBase.displayName = DialogPrimitive.Overlay.displayName;
|
|
405
|
-
var DialogContentBase = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortalBase, { children: [
|
|
415
|
+
var DialogContentBase = React6.forwardRef(({ className, children, testid: dataTestId = "dialog-content", ...props }, ref) => /* @__PURE__ */ jsxs3(DialogPortalBase, { children: [
|
|
406
416
|
/* @__PURE__ */ jsx6(DialogOverlayBase, {}),
|
|
407
417
|
/* @__PURE__ */ jsxs3(
|
|
408
418
|
DialogPrimitive.Content,
|
|
@@ -412,6 +422,7 @@ var DialogContentBase = React6.forwardRef(({ className, children, ...props }, re
|
|
|
412
422
|
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
413
423
|
className
|
|
414
424
|
),
|
|
425
|
+
"data-testid": dataTestId,
|
|
415
426
|
...props,
|
|
416
427
|
children: [
|
|
417
428
|
children,
|
|
@@ -424,51 +435,42 @@ var DialogContentBase = React6.forwardRef(({ className, children, ...props }, re
|
|
|
424
435
|
)
|
|
425
436
|
] }));
|
|
426
437
|
DialogContentBase.displayName = DialogPrimitive.Content.displayName;
|
|
427
|
-
var DialogHeaderBase = ({
|
|
428
|
-
className,
|
|
429
|
-
...props
|
|
430
|
-
}) => /* @__PURE__ */ jsx6(
|
|
438
|
+
var DialogHeaderBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-header", ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
431
439
|
"div",
|
|
432
440
|
{
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
),
|
|
441
|
+
ref,
|
|
442
|
+
className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className),
|
|
443
|
+
"data-testid": dataTestId,
|
|
437
444
|
...props
|
|
438
445
|
}
|
|
439
|
-
);
|
|
446
|
+
));
|
|
440
447
|
DialogHeaderBase.displayName = "DialogHeader";
|
|
441
|
-
var DialogFooterBase = ({
|
|
442
|
-
className,
|
|
443
|
-
...props
|
|
444
|
-
}) => /* @__PURE__ */ jsx6(
|
|
448
|
+
var DialogFooterBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-footer", ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
445
449
|
"div",
|
|
446
450
|
{
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
),
|
|
451
|
+
ref,
|
|
452
|
+
className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
|
|
453
|
+
"data-testid": dataTestId,
|
|
451
454
|
...props
|
|
452
455
|
}
|
|
453
|
-
);
|
|
456
|
+
));
|
|
454
457
|
DialogFooterBase.displayName = "DialogFooter";
|
|
455
|
-
var DialogTitleBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
458
|
+
var DialogTitleBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-title", ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
456
459
|
DialogPrimitive.Title,
|
|
457
460
|
{
|
|
458
461
|
ref,
|
|
459
|
-
className: cn(
|
|
460
|
-
|
|
461
|
-
className
|
|
462
|
-
),
|
|
462
|
+
className: cn("text-lg font-semibold leading-none tracking-tight", className),
|
|
463
|
+
"data-testid": dataTestId,
|
|
463
464
|
...props
|
|
464
465
|
}
|
|
465
466
|
));
|
|
466
467
|
DialogTitleBase.displayName = DialogPrimitive.Title.displayName;
|
|
467
|
-
var DialogDescriptionBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
468
|
+
var DialogDescriptionBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-description", ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
468
469
|
DialogPrimitive.Description,
|
|
469
470
|
{
|
|
470
471
|
ref,
|
|
471
472
|
className: cn("text-sm text-muted-foreground", className),
|
|
473
|
+
"data-testid": dataTestId,
|
|
472
474
|
...props
|
|
473
475
|
}
|
|
474
476
|
));
|
|
@@ -480,7 +482,7 @@ import { Label as RadixLabel } from "@radix-ui/react-label";
|
|
|
480
482
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
481
483
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
482
484
|
var LabelBase = React7.forwardRef(
|
|
483
|
-
({ className, asChild = false, ...props }, ref) => {
|
|
485
|
+
({ className, asChild = false, testid = "label-base", ...props }, ref) => {
|
|
484
486
|
const Comp = asChild ? Slot2 : "label";
|
|
485
487
|
return /* @__PURE__ */ jsx7(RadixLabel, { children: /* @__PURE__ */ jsx7(
|
|
486
488
|
Comp,
|
|
@@ -490,6 +492,7 @@ var LabelBase = React7.forwardRef(
|
|
|
490
492
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
491
493
|
className
|
|
492
494
|
),
|
|
495
|
+
"data-testid": testid,
|
|
493
496
|
...props
|
|
494
497
|
}
|
|
495
498
|
) });
|
|
@@ -513,6 +516,7 @@ var InputBase = React8.forwardRef(
|
|
|
513
516
|
labelClassname,
|
|
514
517
|
leftIcon,
|
|
515
518
|
rightIcon,
|
|
519
|
+
"data-testid": dataTestId,
|
|
516
520
|
...props
|
|
517
521
|
}, ref) => {
|
|
518
522
|
return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col w-full min-w-[150px]", children: [
|
|
@@ -535,6 +539,7 @@ var InputBase = React8.forwardRef(
|
|
|
535
539
|
className
|
|
536
540
|
),
|
|
537
541
|
ref,
|
|
542
|
+
"data-testid": dataTestId ?? "input-base",
|
|
538
543
|
...props
|
|
539
544
|
}
|
|
540
545
|
),
|
|
@@ -973,13 +978,14 @@ var DropDownMenuSubContentBase = React12.forwardRef(({ className, ...props }, re
|
|
|
973
978
|
...props
|
|
974
979
|
}
|
|
975
980
|
));
|
|
976
|
-
var DropDownMenuContentBase = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx12(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx12(
|
|
981
|
+
var DropDownMenuContentBase = React12.forwardRef(({ className, sideOffset = 4, testid: dataTestId = "dropdown-content", ...props }, ref) => /* @__PURE__ */ jsx12(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx12(
|
|
977
982
|
DropdownMenuPrimitive.Content,
|
|
978
983
|
{
|
|
979
984
|
sideOffset,
|
|
980
985
|
forceMount: true,
|
|
981
986
|
ref,
|
|
982
987
|
className: cn("z-[9999] p-0", className),
|
|
988
|
+
"data-testid": dataTestId,
|
|
983
989
|
...props,
|
|
984
990
|
children: /* @__PURE__ */ jsx12(AnimatePresence, { children: /* @__PURE__ */ jsx12(
|
|
985
991
|
motion2.div,
|
|
@@ -1195,7 +1201,7 @@ import { Command as CommandPrimitive } from "cmdk";
|
|
|
1195
1201
|
import { MagnifyingGlass } from "phosphor-react";
|
|
1196
1202
|
import { motion as motion3, AnimatePresence as AnimatePresence2 } from "framer-motion";
|
|
1197
1203
|
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1198
|
-
var CommandBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1204
|
+
var CommandBase = React13.forwardRef(({ className, testid: dataTestId = "command-base", ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1199
1205
|
CommandPrimitive,
|
|
1200
1206
|
{
|
|
1201
1207
|
ref,
|
|
@@ -1203,6 +1209,7 @@ var CommandBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1203
1209
|
"flex h-full w-full flex-col overflow-hidden rounded-md bg-background text-popover-foreground",
|
|
1204
1210
|
className
|
|
1205
1211
|
),
|
|
1212
|
+
"data-testid": dataTestId,
|
|
1206
1213
|
...props
|
|
1207
1214
|
}
|
|
1208
1215
|
));
|
|
@@ -1227,7 +1234,7 @@ var CommandDialogBase = ({ children, open, ...props }) => {
|
|
|
1227
1234
|
"command-dialog"
|
|
1228
1235
|
) }) }) });
|
|
1229
1236
|
};
|
|
1230
|
-
var CommandInputBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs9("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1237
|
+
var CommandInputBase = React13.forwardRef(({ className, testid: dataTestId = "command-input", ...props }, ref) => /* @__PURE__ */ jsxs9("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
1231
1238
|
/* @__PURE__ */ jsx15(MagnifyingGlass, { className: "mr-2 h-4 w-4 shrink-0 text-primary" }),
|
|
1232
1239
|
/* @__PURE__ */ jsx15(
|
|
1233
1240
|
CommandPrimitive.Input,
|
|
@@ -1237,23 +1244,25 @@ var CommandInputBase = React13.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1237
1244
|
"flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none text-primary placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
1238
1245
|
className
|
|
1239
1246
|
),
|
|
1247
|
+
"data-testid": dataTestId,
|
|
1240
1248
|
...props
|
|
1241
1249
|
}
|
|
1242
1250
|
)
|
|
1243
1251
|
] }));
|
|
1244
1252
|
CommandInputBase.displayName = CommandPrimitive.Input.displayName;
|
|
1245
|
-
var CommandListBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1253
|
+
var CommandListBase = React13.forwardRef(({ className, testid: dataTestId = "command-list", ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1246
1254
|
CommandPrimitive.List,
|
|
1247
1255
|
{
|
|
1248
1256
|
ref,
|
|
1249
1257
|
className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
|
|
1258
|
+
"data-testid": dataTestId,
|
|
1250
1259
|
...props
|
|
1251
1260
|
}
|
|
1252
1261
|
));
|
|
1253
1262
|
CommandListBase.displayName = CommandPrimitive.List.displayName;
|
|
1254
|
-
var CommandEmptyBase = React13.forwardRef((props, ref) => /* @__PURE__ */ jsx15(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
|
|
1263
|
+
var CommandEmptyBase = React13.forwardRef(({ testid: dataTestId = "command-empty", ...props }, ref) => /* @__PURE__ */ jsx15(CommandPrimitive.Empty, { ref, className: "py-6 text-center text-sm", "data-testid": dataTestId, ...props }));
|
|
1255
1264
|
CommandEmptyBase.displayName = CommandPrimitive.Empty.displayName;
|
|
1256
|
-
var CommandGroupBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1265
|
+
var CommandGroupBase = React13.forwardRef(({ className, testid: dataTestId = "command-group", ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1257
1266
|
CommandPrimitive.Group,
|
|
1258
1267
|
{
|
|
1259
1268
|
ref,
|
|
@@ -1261,13 +1270,14 @@ var CommandGroupBase = React13.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1261
1270
|
"overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
|
|
1262
1271
|
className
|
|
1263
1272
|
),
|
|
1273
|
+
"data-testid": dataTestId,
|
|
1264
1274
|
...props
|
|
1265
1275
|
}
|
|
1266
1276
|
));
|
|
1267
1277
|
CommandGroupBase.displayName = CommandPrimitive.Group.displayName;
|
|
1268
|
-
var CommandSeparatorBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(CommandPrimitive.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
|
|
1278
|
+
var CommandSeparatorBase = React13.forwardRef(({ className, testid: dataTestId = "command-separator", ...props }, ref) => /* @__PURE__ */ jsx15(CommandPrimitive.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), "data-testid": dataTestId, ...props }));
|
|
1269
1279
|
CommandSeparatorBase.displayName = CommandPrimitive.Separator.displayName;
|
|
1270
|
-
var CommandItemBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1280
|
+
var CommandItemBase = React13.forwardRef(({ className, testid: dataTestId = "command-item", ...props }, ref) => /* @__PURE__ */ jsx15(
|
|
1271
1281
|
CommandPrimitive.Item,
|
|
1272
1282
|
{
|
|
1273
1283
|
ref,
|
|
@@ -1275,6 +1285,7 @@ var CommandItemBase = React13.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1275
1285
|
"relative flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-all data-[disabled=true]:pointer-events-none data-[selected=true]:bg-primary data-[selected=true]:text-background data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:scale-[1.02] active:scale-[0.98]",
|
|
1276
1286
|
className
|
|
1277
1287
|
),
|
|
1288
|
+
"data-testid": dataTestId,
|
|
1278
1289
|
...props
|
|
1279
1290
|
}
|
|
1280
1291
|
));
|
|
@@ -1294,70 +1305,99 @@ function ComboboxBase({
|
|
|
1294
1305
|
handleSelection,
|
|
1295
1306
|
checkIsSelected,
|
|
1296
1307
|
searchPlaceholder,
|
|
1297
|
-
errorMessage
|
|
1308
|
+
errorMessage,
|
|
1309
|
+
testIds = {}
|
|
1298
1310
|
}) {
|
|
1299
1311
|
const [open, setOpen] = useState5(false);
|
|
1300
|
-
return /* @__PURE__ */ jsx16(
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1312
|
+
return /* @__PURE__ */ jsx16(
|
|
1313
|
+
"div",
|
|
1314
|
+
{
|
|
1315
|
+
className: "col-span-1 w-full",
|
|
1316
|
+
"data-testid": testIds.root ?? "combobox-base-root",
|
|
1317
|
+
children: /* @__PURE__ */ jsxs10(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
|
|
1318
|
+
/* @__PURE__ */ jsx16(
|
|
1319
|
+
PopoverTriggerBase,
|
|
1308
1320
|
{
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1321
|
+
asChild: true,
|
|
1322
|
+
className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]",
|
|
1323
|
+
children: /* @__PURE__ */ jsxs10(
|
|
1324
|
+
ButtonBase,
|
|
1325
|
+
{
|
|
1326
|
+
variant: "outline",
|
|
1327
|
+
role: "combobox",
|
|
1328
|
+
"aria-expanded": open,
|
|
1329
|
+
className: cn(
|
|
1330
|
+
"flex items-start gap-2 justify-between h-full",
|
|
1331
|
+
errorMessage && "border-red-500"
|
|
1332
|
+
),
|
|
1333
|
+
"data-testid": testIds.trigger ?? "combobox-trigger",
|
|
1334
|
+
children: [
|
|
1335
|
+
renderSelected,
|
|
1336
|
+
/* @__PURE__ */ jsx16(CaretDown, { size: 16, className: "mt-0.5" })
|
|
1337
|
+
]
|
|
1338
|
+
}
|
|
1339
|
+
)
|
|
1320
1340
|
}
|
|
1321
|
-
)
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
/* @__PURE__ */ jsx16(PopoverContentBase, { className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none", children: /* @__PURE__ */ jsxs10(CommandBase, { className: "dark:text-white", children: [
|
|
1325
|
-
/* @__PURE__ */ jsx16(
|
|
1326
|
-
CommandInputBase,
|
|
1327
|
-
{
|
|
1328
|
-
tabIndex: -1,
|
|
1329
|
-
placeholder: searchPlaceholder ?? "Busque uma op\xE7\xE3o..."
|
|
1330
|
-
}
|
|
1331
|
-
),
|
|
1332
|
-
/* @__PURE__ */ jsxs10(CommandListBase, { children: [
|
|
1333
|
-
/* @__PURE__ */ jsx16(CommandEmptyBase, { children: "Nenhum dado encontrado" }),
|
|
1334
|
-
/* @__PURE__ */ jsx16(CommandGroupBase, { children: items.map((item) => /* @__PURE__ */ jsxs10(
|
|
1335
|
-
CommandItemBase,
|
|
1341
|
+
),
|
|
1342
|
+
/* @__PURE__ */ jsx16(
|
|
1343
|
+
PopoverContentBase,
|
|
1336
1344
|
{
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1345
|
+
className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none",
|
|
1346
|
+
"data-testid": testIds.popover ?? "combobox-popover",
|
|
1347
|
+
children: /* @__PURE__ */ jsxs10(
|
|
1348
|
+
CommandBase,
|
|
1349
|
+
{
|
|
1350
|
+
className: "dark:text-white",
|
|
1351
|
+
"data-testid": testIds.command ?? "combobox-command",
|
|
1352
|
+
children: [
|
|
1353
|
+
/* @__PURE__ */ jsx16(
|
|
1354
|
+
CommandInputBase,
|
|
1355
|
+
{
|
|
1356
|
+
tabIndex: -1,
|
|
1357
|
+
placeholder: searchPlaceholder ?? "Busque uma op\xE7\xE3o...",
|
|
1358
|
+
"data-testid": testIds.search ?? "combobox-search"
|
|
1359
|
+
}
|
|
1360
|
+
),
|
|
1361
|
+
/* @__PURE__ */ jsxs10(CommandListBase, { "data-testid": testIds.list ?? "combobox-list", children: [
|
|
1362
|
+
/* @__PURE__ */ jsx16(CommandEmptyBase, { "data-testid": testIds.empty ?? "combobox-empty", children: "Nenhum dado encontrado" }),
|
|
1363
|
+
/* @__PURE__ */ jsx16(CommandGroupBase, { "data-testid": testIds.group ?? "combobox-group", children: items.map((item) => {
|
|
1364
|
+
const isSelected = checkIsSelected(item.value);
|
|
1365
|
+
return /* @__PURE__ */ jsxs10(
|
|
1366
|
+
CommandItemBase,
|
|
1367
|
+
{
|
|
1368
|
+
keywords: [item.label],
|
|
1369
|
+
value: item.value,
|
|
1370
|
+
onSelect: (value) => {
|
|
1371
|
+
handleSelection(value);
|
|
1372
|
+
setOpen(false);
|
|
1373
|
+
},
|
|
1374
|
+
"data-testid": testIds.option ?? "combobox-option",
|
|
1375
|
+
children: [
|
|
1376
|
+
item.label,
|
|
1377
|
+
/* @__PURE__ */ jsx16(
|
|
1378
|
+
Check3,
|
|
1379
|
+
{
|
|
1380
|
+
className: cn(
|
|
1381
|
+
"ml-auto",
|
|
1382
|
+
isSelected ? "opacity-100" : "opacity-0"
|
|
1383
|
+
),
|
|
1384
|
+
"data-testid": isSelected ? testIds.check ?? "combobox-option-check" : void 0
|
|
1385
|
+
}
|
|
1386
|
+
)
|
|
1387
|
+
]
|
|
1388
|
+
},
|
|
1389
|
+
item.value
|
|
1390
|
+
);
|
|
1391
|
+
}) })
|
|
1392
|
+
] })
|
|
1393
|
+
]
|
|
1394
|
+
}
|
|
1395
|
+
)
|
|
1396
|
+
}
|
|
1397
|
+
)
|
|
1358
1398
|
] })
|
|
1359
|
-
|
|
1360
|
-
|
|
1399
|
+
}
|
|
1400
|
+
);
|
|
1361
1401
|
}
|
|
1362
1402
|
|
|
1363
1403
|
// src/components/selects/Combobox.tsx
|
|
@@ -1370,12 +1410,20 @@ function Combobox({
|
|
|
1370
1410
|
placeholder,
|
|
1371
1411
|
searchPlaceholder,
|
|
1372
1412
|
label,
|
|
1373
|
-
labelClassname
|
|
1413
|
+
labelClassname,
|
|
1414
|
+
testIds
|
|
1374
1415
|
}) {
|
|
1375
1416
|
const selectedItem = items.find((item) => item.value === selected);
|
|
1376
1417
|
const renderSelected = useMemo(() => {
|
|
1377
|
-
return /* @__PURE__ */ jsx17(
|
|
1378
|
-
|
|
1418
|
+
return /* @__PURE__ */ jsx17(
|
|
1419
|
+
"span",
|
|
1420
|
+
{
|
|
1421
|
+
"data-testid": testIds?.selected ?? "combobox-selected",
|
|
1422
|
+
className: cn("truncate", !selectedItem && "text-gray-500"),
|
|
1423
|
+
children: selectedItem?.label ?? placeholder ?? "Selecione uma op\xE7\xE3o..."
|
|
1424
|
+
}
|
|
1425
|
+
);
|
|
1426
|
+
}, [placeholder, selectedItem, testIds?.selected]);
|
|
1379
1427
|
const checkIsSelected = useCallback(
|
|
1380
1428
|
(value) => selected == null ? false : selected == value,
|
|
1381
1429
|
[selected]
|
|
@@ -1395,7 +1443,8 @@ function Combobox({
|
|
|
1395
1443
|
renderSelected,
|
|
1396
1444
|
handleSelection,
|
|
1397
1445
|
checkIsSelected,
|
|
1398
|
-
searchPlaceholder
|
|
1446
|
+
searchPlaceholder,
|
|
1447
|
+
testIds
|
|
1399
1448
|
}
|
|
1400
1449
|
)
|
|
1401
1450
|
] });
|
|
@@ -1413,7 +1462,8 @@ function MultiCombobox({
|
|
|
1413
1462
|
placeholder,
|
|
1414
1463
|
searchPlaceholder,
|
|
1415
1464
|
label,
|
|
1416
|
-
labelClassname
|
|
1465
|
+
labelClassname,
|
|
1466
|
+
testIds = {}
|
|
1417
1467
|
}) {
|
|
1418
1468
|
const selectedItems = items.filter((item) => selected.includes(item.value));
|
|
1419
1469
|
const checkIsSelected = useCallback2(
|
|
@@ -1433,46 +1483,74 @@ function MultiCombobox({
|
|
|
1433
1483
|
);
|
|
1434
1484
|
const renderSelected = useMemo2(() => {
|
|
1435
1485
|
if (selectedItems.length === 0) {
|
|
1436
|
-
return /* @__PURE__ */ jsx18(
|
|
1486
|
+
return /* @__PURE__ */ jsx18(
|
|
1487
|
+
"span",
|
|
1488
|
+
{
|
|
1489
|
+
"data-testid": testIds.emptyPlaceholder ?? "combobox-selected-empty",
|
|
1490
|
+
className: "text-gray-500",
|
|
1491
|
+
children: placeholder ?? "Selecione uma op\xE7\xE3o..."
|
|
1492
|
+
}
|
|
1493
|
+
);
|
|
1437
1494
|
}
|
|
1438
|
-
|
|
1495
|
+
return /* @__PURE__ */ jsx18(
|
|
1439
1496
|
"div",
|
|
1440
1497
|
{
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
{
|
|
1468
|
-
items,
|
|
1469
|
-
renderSelected,
|
|
1470
|
-
handleSelection,
|
|
1471
|
-
checkIsSelected,
|
|
1472
|
-
searchPlaceholder
|
|
1498
|
+
"data-testid": testIds.selectedWrapper ?? "combobox-selected-wrapper",
|
|
1499
|
+
className: "flex w-full flex-wrap gap-2",
|
|
1500
|
+
children: selectedItems.map((item) => /* @__PURE__ */ jsxs12(
|
|
1501
|
+
"div",
|
|
1502
|
+
{
|
|
1503
|
+
className: "flex items-center gap-1 rounded-md border p-1",
|
|
1504
|
+
"data-testid": testIds.selectedItem?.(item.value) ?? `combobox-selected-${item.value}`,
|
|
1505
|
+
children: [
|
|
1506
|
+
/* @__PURE__ */ jsx18("span", { className: "whitespace-break-spaces text-xs", children: item.label }),
|
|
1507
|
+
/* @__PURE__ */ jsx18(
|
|
1508
|
+
"span",
|
|
1509
|
+
{
|
|
1510
|
+
role: "button",
|
|
1511
|
+
tabIndex: 0,
|
|
1512
|
+
onClick: (e) => {
|
|
1513
|
+
e.stopPropagation();
|
|
1514
|
+
handleSelection(item.value);
|
|
1515
|
+
},
|
|
1516
|
+
className: "cursor-pointer p-0 m-0 text-xs flex items-center justify-center hover:text-red-500 hover:scale-110 transition-all",
|
|
1517
|
+
children: /* @__PURE__ */ jsx18(X3, { size: 14 })
|
|
1518
|
+
}
|
|
1519
|
+
)
|
|
1520
|
+
]
|
|
1521
|
+
},
|
|
1522
|
+
item.value
|
|
1523
|
+
))
|
|
1473
1524
|
}
|
|
1474
|
-
)
|
|
1475
|
-
]
|
|
1525
|
+
);
|
|
1526
|
+
}, [handleSelection, placeholder, selectedItems, testIds]);
|
|
1527
|
+
return /* @__PURE__ */ jsxs12(
|
|
1528
|
+
"div",
|
|
1529
|
+
{
|
|
1530
|
+
className: cn("flex flex-col gap-1 w-full min-w-[150px]", className),
|
|
1531
|
+
"data-testid": testIds.root ?? "multi-combobox-root",
|
|
1532
|
+
children: [
|
|
1533
|
+
label && /* @__PURE__ */ jsx18(
|
|
1534
|
+
LabelBase_default,
|
|
1535
|
+
{
|
|
1536
|
+
className: labelClassname,
|
|
1537
|
+
"data-testid": testIds.label ?? "multi-combobox-label",
|
|
1538
|
+
children: label
|
|
1539
|
+
}
|
|
1540
|
+
),
|
|
1541
|
+
/* @__PURE__ */ jsx18(
|
|
1542
|
+
ComboboxBase,
|
|
1543
|
+
{
|
|
1544
|
+
items,
|
|
1545
|
+
renderSelected,
|
|
1546
|
+
handleSelection,
|
|
1547
|
+
checkIsSelected,
|
|
1548
|
+
searchPlaceholder
|
|
1549
|
+
}
|
|
1550
|
+
)
|
|
1551
|
+
]
|
|
1552
|
+
}
|
|
1553
|
+
);
|
|
1476
1554
|
}
|
|
1477
1555
|
|
|
1478
1556
|
// src/components/ui/SelectBase.tsx
|
|
@@ -1534,7 +1612,7 @@ var SelectScrollDownButtonBase = React14.forwardRef(({ className, ...props }, re
|
|
|
1534
1612
|
}
|
|
1535
1613
|
));
|
|
1536
1614
|
SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
1537
|
-
var SelectContentBase = React14.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(AnimatePresence3, { children: /* @__PURE__ */ jsx19(
|
|
1615
|
+
var SelectContentBase = React14.forwardRef(({ className, children, position = "popper", testid: dataTestId = "select-content", ...props }, ref) => /* @__PURE__ */ jsx19(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsx19(AnimatePresence3, { children: /* @__PURE__ */ jsx19(
|
|
1538
1616
|
SelectPrimitive.Content,
|
|
1539
1617
|
{
|
|
1540
1618
|
ref,
|
|
@@ -1543,6 +1621,7 @@ var SelectContentBase = React14.forwardRef(({ className, children, position = "p
|
|
|
1543
1621
|
className
|
|
1544
1622
|
),
|
|
1545
1623
|
position,
|
|
1624
|
+
"data-testid": dataTestId,
|
|
1546
1625
|
...props,
|
|
1547
1626
|
asChild: true,
|
|
1548
1627
|
children: /* @__PURE__ */ jsx19(
|
|
@@ -1648,10 +1727,11 @@ function Select({
|
|
|
1648
1727
|
groupItems,
|
|
1649
1728
|
placeholder,
|
|
1650
1729
|
onChange,
|
|
1651
|
-
errorMessage
|
|
1730
|
+
errorMessage,
|
|
1731
|
+
testIds = {}
|
|
1652
1732
|
}) {
|
|
1653
|
-
return /* @__PURE__ */ jsxs15("div", { children: [
|
|
1654
|
-
/* @__PURE__ */ jsxs15(SelectBase, { onValueChange: onChange, children: [
|
|
1733
|
+
return /* @__PURE__ */ jsxs15("div", { "data-testid": testIds.root ?? "select-root", children: [
|
|
1734
|
+
/* @__PURE__ */ jsxs15(SelectBase, { onValueChange: onChange, "data-testid": testIds.base ?? "select-base", children: [
|
|
1655
1735
|
/* @__PURE__ */ jsx21(
|
|
1656
1736
|
SelectTriggerBase,
|
|
1657
1737
|
{
|
|
@@ -1659,15 +1739,45 @@ function Select({
|
|
|
1659
1739
|
"flex h-12 w-full content-start text-lg shadow-md",
|
|
1660
1740
|
errorMessage && "border-red-500"
|
|
1661
1741
|
),
|
|
1662
|
-
|
|
1742
|
+
"data-testid": testIds.trigger ?? "select-trigger",
|
|
1743
|
+
children: /* @__PURE__ */ jsx21(
|
|
1744
|
+
SelectValueBase,
|
|
1745
|
+
{
|
|
1746
|
+
placeholder,
|
|
1747
|
+
"data-testid": testIds.value ?? "select-value"
|
|
1748
|
+
}
|
|
1749
|
+
)
|
|
1663
1750
|
}
|
|
1664
1751
|
),
|
|
1665
|
-
/* @__PURE__ */ jsx21(ScrollAreaBase, { children: /* @__PURE__ */ jsx21(SelectContentBase, { children: groupItems ? /* @__PURE__ */ jsx21(Fragment4, { children: Object.keys(groupItems).map((key) => /* @__PURE__ */ jsxs15(SelectGroupBase, { children: [
|
|
1666
|
-
/* @__PURE__ */ jsx21(SelectLabelBase, { children: key }),
|
|
1667
|
-
groupItems[key].map((item) => /* @__PURE__ */ jsx21(
|
|
1668
|
-
|
|
1752
|
+
/* @__PURE__ */ jsx21(ScrollAreaBase, { "data-testid": testIds.scrollarea ?? "select-scrollarea", children: /* @__PURE__ */ jsx21(SelectContentBase, { "data-testid": testIds.content ?? "select-content", children: groupItems ? /* @__PURE__ */ jsx21(Fragment4, { children: Object.keys(groupItems).map((key) => /* @__PURE__ */ jsxs15(SelectGroupBase, { "data-testid": testIds.group ?? "select-group", children: [
|
|
1753
|
+
/* @__PURE__ */ jsx21(SelectLabelBase, { "data-testid": testIds.label ?? "select-label", children: key }),
|
|
1754
|
+
groupItems[key].map((item) => /* @__PURE__ */ jsx21(
|
|
1755
|
+
SelectItemBase,
|
|
1756
|
+
{
|
|
1757
|
+
value: item.value,
|
|
1758
|
+
"data-testid": testIds.item?.(item.value) ?? `select-item-${item.value}`,
|
|
1759
|
+
children: item.label
|
|
1760
|
+
},
|
|
1761
|
+
item.value
|
|
1762
|
+
))
|
|
1763
|
+
] }, key)) }) : /* @__PURE__ */ jsx21(SelectGroupBase, { "data-testid": testIds.group ?? "select-group", children: items.map((item) => /* @__PURE__ */ jsx21(
|
|
1764
|
+
SelectItemBase,
|
|
1765
|
+
{
|
|
1766
|
+
value: item.value,
|
|
1767
|
+
"data-testid": testIds.item?.(item.value) ?? `select-item-${item.value}`,
|
|
1768
|
+
children: item.label
|
|
1769
|
+
},
|
|
1770
|
+
item.value
|
|
1771
|
+
)) }) }) })
|
|
1669
1772
|
] }),
|
|
1670
|
-
errorMessage && /* @__PURE__ */ jsx21(
|
|
1773
|
+
errorMessage && /* @__PURE__ */ jsx21(
|
|
1774
|
+
"p",
|
|
1775
|
+
{
|
|
1776
|
+
className: "text-sm text-red-500",
|
|
1777
|
+
"data-testid": testIds.error ?? "select-error",
|
|
1778
|
+
children: errorMessage
|
|
1779
|
+
}
|
|
1780
|
+
)
|
|
1671
1781
|
] });
|
|
1672
1782
|
}
|
|
1673
1783
|
|
|
@@ -1729,7 +1839,7 @@ CalendarBase2.displayName = "Calendar";
|
|
|
1729
1839
|
// src/components/ui/CardBase.tsx
|
|
1730
1840
|
import * as React16 from "react";
|
|
1731
1841
|
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1732
|
-
var CardBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1842
|
+
var CardBase = React16.forwardRef(({ className, testid: dataTestId = "card-base", ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1733
1843
|
"div",
|
|
1734
1844
|
{
|
|
1735
1845
|
ref,
|
|
@@ -1737,44 +1847,49 @@ var CardBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1737
1847
|
"rounded-xl border bg-card text-card-foreground shadow",
|
|
1738
1848
|
className
|
|
1739
1849
|
),
|
|
1850
|
+
"data-testid": dataTestId,
|
|
1740
1851
|
...props
|
|
1741
1852
|
}
|
|
1742
1853
|
));
|
|
1743
1854
|
CardBase.displayName = "Card";
|
|
1744
|
-
var CardHeaderBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1855
|
+
var CardHeaderBase = React16.forwardRef(({ className, testid: dataTestId = "card-header", ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1745
1856
|
"div",
|
|
1746
1857
|
{
|
|
1747
1858
|
ref,
|
|
1748
1859
|
className: cn("flex flex-col space-y-1.5 p-6", className),
|
|
1860
|
+
"data-testid": dataTestId,
|
|
1749
1861
|
...props
|
|
1750
1862
|
}
|
|
1751
1863
|
));
|
|
1752
1864
|
CardHeaderBase.displayName = "CardHeader";
|
|
1753
|
-
var CardTitleBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1865
|
+
var CardTitleBase = React16.forwardRef(({ className, testid: dataTestId = "card-title", ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1754
1866
|
"div",
|
|
1755
1867
|
{
|
|
1756
1868
|
ref,
|
|
1757
1869
|
className: cn("font-semibold leading-none tracking-tight", className),
|
|
1870
|
+
"data-testid": dataTestId,
|
|
1758
1871
|
...props
|
|
1759
1872
|
}
|
|
1760
1873
|
));
|
|
1761
1874
|
CardTitleBase.displayName = "CardTitle";
|
|
1762
|
-
var CardDescriptionBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1875
|
+
var CardDescriptionBase = React16.forwardRef(({ className, testid: dataTestId = "card-description", ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1763
1876
|
"div",
|
|
1764
1877
|
{
|
|
1765
1878
|
ref,
|
|
1766
1879
|
className: cn("text-sm text-muted-foreground", className),
|
|
1880
|
+
"data-testid": dataTestId,
|
|
1767
1881
|
...props
|
|
1768
1882
|
}
|
|
1769
1883
|
));
|
|
1770
1884
|
CardDescriptionBase.displayName = "CardDescription";
|
|
1771
|
-
var CardContentBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1885
|
+
var CardContentBase = React16.forwardRef(({ className, testid: dataTestId = "card-content", ...props }, ref) => /* @__PURE__ */ jsx23("div", { ref, className: cn("p-6 pt-0", className), "data-testid": dataTestId, ...props }));
|
|
1772
1886
|
CardContentBase.displayName = "CardContent";
|
|
1773
|
-
var CardFooterBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1887
|
+
var CardFooterBase = React16.forwardRef(({ className, testid: dataTestId = "card-footer", ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
1774
1888
|
"div",
|
|
1775
1889
|
{
|
|
1776
1890
|
ref,
|
|
1777
1891
|
className: cn("flex items-center p-6 pt-0", className),
|
|
1892
|
+
"data-testid": dataTestId,
|
|
1778
1893
|
...props
|
|
1779
1894
|
}
|
|
1780
1895
|
));
|
|
@@ -1786,7 +1901,7 @@ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
|
1786
1901
|
import { Check as Check5 } from "phosphor-react";
|
|
1787
1902
|
import { motion as motion5 } from "framer-motion";
|
|
1788
1903
|
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1789
|
-
var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1904
|
+
var CheckboxBase = React17.forwardRef(({ className, testid: dataTestId = "checkbox-base", ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
1790
1905
|
CheckboxPrimitive.Root,
|
|
1791
1906
|
{
|
|
1792
1907
|
ref,
|
|
@@ -1794,6 +1909,7 @@ var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1794
1909
|
"peer h-4 w-4 shrink-0 rounded-md border border-primary shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground transition-colors",
|
|
1795
1910
|
className
|
|
1796
1911
|
),
|
|
1912
|
+
"data-testid": dataTestId,
|
|
1797
1913
|
...props,
|
|
1798
1914
|
children: /* @__PURE__ */ jsx24(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ jsx24(
|
|
1799
1915
|
motion5.div,
|
|
@@ -1810,121 +1926,16 @@ var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1810
1926
|
));
|
|
1811
1927
|
CheckboxBase.displayName = CheckboxPrimitive.Root.displayName;
|
|
1812
1928
|
|
|
1813
|
-
// src/components/ui/FormBase.tsx
|
|
1814
|
-
import * as React18 from "react";
|
|
1815
|
-
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
1816
|
-
import {
|
|
1817
|
-
Controller,
|
|
1818
|
-
FormProvider,
|
|
1819
|
-
useFormContext
|
|
1820
|
-
} from "react-hook-form";
|
|
1821
|
-
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1822
|
-
var FormBase = FormProvider;
|
|
1823
|
-
var FormFieldBaseContext = React18.createContext(
|
|
1824
|
-
{}
|
|
1825
|
-
);
|
|
1826
|
-
var FormFieldBase = ({
|
|
1827
|
-
...props
|
|
1828
|
-
}) => {
|
|
1829
|
-
return /* @__PURE__ */ jsx25(FormFieldBaseContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx25(Controller, { ...props }) });
|
|
1830
|
-
};
|
|
1831
|
-
var useFormFieldBase = () => {
|
|
1832
|
-
const fieldContext = React18.useContext(FormFieldBaseContext);
|
|
1833
|
-
const itemContext = React18.useContext(FormItemBaseContext);
|
|
1834
|
-
const { getFieldState, formState } = useFormContext();
|
|
1835
|
-
const fieldState = getFieldState(fieldContext.name, formState);
|
|
1836
|
-
if (!fieldContext) {
|
|
1837
|
-
throw new Error("useFormFieldBase should be used within <FormFieldBase>");
|
|
1838
|
-
}
|
|
1839
|
-
const { id } = itemContext;
|
|
1840
|
-
return {
|
|
1841
|
-
id,
|
|
1842
|
-
name: fieldContext.name,
|
|
1843
|
-
FormItemId: `${id}-form-item`,
|
|
1844
|
-
FormDescriptionId: `${id}-form-item-description`,
|
|
1845
|
-
FormMessageId: `${id}-form-item-message`,
|
|
1846
|
-
...fieldState
|
|
1847
|
-
};
|
|
1848
|
-
};
|
|
1849
|
-
var FormItemBaseContext = React18.createContext(
|
|
1850
|
-
{}
|
|
1851
|
-
);
|
|
1852
|
-
var FormItemBase = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1853
|
-
const id = React18.useId();
|
|
1854
|
-
return /* @__PURE__ */ jsx25(FormItemBaseContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx25("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
1855
|
-
});
|
|
1856
|
-
FormItemBase.displayName = "FormItemBase";
|
|
1857
|
-
var FormLabelBase = React18.forwardRef(
|
|
1858
|
-
({ className, ...props }, ref) => {
|
|
1859
|
-
const { error, FormItemId } = useFormFieldBase();
|
|
1860
|
-
return /* @__PURE__ */ jsx25(
|
|
1861
|
-
LabelBase_default,
|
|
1862
|
-
{
|
|
1863
|
-
ref,
|
|
1864
|
-
className: cn(error && "text-destructive", className),
|
|
1865
|
-
htmlFor: FormItemId,
|
|
1866
|
-
...props
|
|
1867
|
-
}
|
|
1868
|
-
);
|
|
1869
|
-
}
|
|
1870
|
-
);
|
|
1871
|
-
FormLabelBase.displayName = "FormLabelBase";
|
|
1872
|
-
var FormControlBase = React18.forwardRef(({ ...props }, ref) => {
|
|
1873
|
-
const { error, FormItemId, FormDescriptionId, FormMessageId } = useFormFieldBase();
|
|
1874
|
-
return /* @__PURE__ */ jsx25(
|
|
1875
|
-
Slot3,
|
|
1876
|
-
{
|
|
1877
|
-
ref,
|
|
1878
|
-
id: FormItemId,
|
|
1879
|
-
"aria-describedby": !error ? `${FormDescriptionId}` : `${FormDescriptionId} ${FormMessageId}`,
|
|
1880
|
-
"aria-invalid": !!error,
|
|
1881
|
-
...props
|
|
1882
|
-
}
|
|
1883
|
-
);
|
|
1884
|
-
});
|
|
1885
|
-
FormControlBase.displayName = "FormControlBase";
|
|
1886
|
-
var FormDescriptionBase = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1887
|
-
const { FormDescriptionId } = useFormFieldBase();
|
|
1888
|
-
return /* @__PURE__ */ jsx25(
|
|
1889
|
-
"p",
|
|
1890
|
-
{
|
|
1891
|
-
ref,
|
|
1892
|
-
id: FormDescriptionId,
|
|
1893
|
-
className: cn("text-[0.8rem] text-muted-foreground", className),
|
|
1894
|
-
...props
|
|
1895
|
-
}
|
|
1896
|
-
);
|
|
1897
|
-
});
|
|
1898
|
-
FormDescriptionBase.displayName = "FormDescriptionBase";
|
|
1899
|
-
var FormMessageBase = React18.forwardRef(({ className, children, ...props }, ref) => {
|
|
1900
|
-
const { error, FormMessageId } = useFormFieldBase();
|
|
1901
|
-
const body = error ? String(error?.message) : children;
|
|
1902
|
-
if (!body) {
|
|
1903
|
-
return null;
|
|
1904
|
-
}
|
|
1905
|
-
return /* @__PURE__ */ jsx25(
|
|
1906
|
-
"p",
|
|
1907
|
-
{
|
|
1908
|
-
ref,
|
|
1909
|
-
id: FormMessageId,
|
|
1910
|
-
className: cn("text-[0.8rem] font-medium text-destructive", className),
|
|
1911
|
-
...props,
|
|
1912
|
-
children: body
|
|
1913
|
-
}
|
|
1914
|
-
);
|
|
1915
|
-
});
|
|
1916
|
-
FormMessageBase.displayName = "FormMessageBase";
|
|
1917
|
-
|
|
1918
1929
|
// src/components/ui/ProgressBase.tsx
|
|
1919
|
-
import * as
|
|
1930
|
+
import * as React18 from "react";
|
|
1920
1931
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
1921
|
-
import { jsx as
|
|
1922
|
-
var ProgressBase =
|
|
1932
|
+
import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1933
|
+
var ProgressBase = React18.forwardRef(({ className, value, label, leftIcon, rightIcon, ...props }, ref) => {
|
|
1923
1934
|
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
|
|
1924
|
-
label && /* @__PURE__ */
|
|
1935
|
+
label && /* @__PURE__ */ jsx25(LabelBase_default, { className: "py-2", children: label }),
|
|
1925
1936
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
|
|
1926
|
-
leftIcon && /* @__PURE__ */
|
|
1927
|
-
/* @__PURE__ */
|
|
1937
|
+
leftIcon && /* @__PURE__ */ jsx25("div", { className: "flex items-center justify-center", children: leftIcon }),
|
|
1938
|
+
/* @__PURE__ */ jsx25(
|
|
1928
1939
|
ProgressPrimitive.Root,
|
|
1929
1940
|
{
|
|
1930
1941
|
ref,
|
|
@@ -1934,7 +1945,7 @@ var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, righ
|
|
|
1934
1945
|
),
|
|
1935
1946
|
value,
|
|
1936
1947
|
...props,
|
|
1937
|
-
children: /* @__PURE__ */
|
|
1948
|
+
children: /* @__PURE__ */ jsx25(
|
|
1938
1949
|
ProgressPrimitive.Indicator,
|
|
1939
1950
|
{
|
|
1940
1951
|
className: "h-full w-full flex-1 bg-primary transition-all duration-500 ease-in-out",
|
|
@@ -1943,7 +1954,7 @@ var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, righ
|
|
|
1943
1954
|
)
|
|
1944
1955
|
}
|
|
1945
1956
|
),
|
|
1946
|
-
rightIcon && /* @__PURE__ */
|
|
1957
|
+
rightIcon && /* @__PURE__ */ jsx25("div", { className: "flex items-center justify-center", children: rightIcon })
|
|
1947
1958
|
] })
|
|
1948
1959
|
] });
|
|
1949
1960
|
});
|
|
@@ -1955,8 +1966,8 @@ var ProgressSegmentsBase = ({
|
|
|
1955
1966
|
}) => {
|
|
1956
1967
|
const filled = Math.round(value / 100 * segments);
|
|
1957
1968
|
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
|
|
1958
|
-
label && /* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */
|
|
1969
|
+
label && /* @__PURE__ */ jsx25(LabelBase_default, { className: "py-2", children: label }),
|
|
1970
|
+
/* @__PURE__ */ jsx25("div", { className: "flex gap-1 w-full", children: Array.from({ length: segments }).map((_, idx) => /* @__PURE__ */ jsx25(
|
|
1960
1971
|
"div",
|
|
1961
1972
|
{
|
|
1962
1973
|
className: cn(
|
|
@@ -1968,7 +1979,7 @@ var ProgressSegmentsBase = ({
|
|
|
1968
1979
|
)) })
|
|
1969
1980
|
] });
|
|
1970
1981
|
};
|
|
1971
|
-
var ArrowRightIcon = () => /* @__PURE__ */
|
|
1982
|
+
var ArrowRightIcon = () => /* @__PURE__ */ jsx25(
|
|
1972
1983
|
"svg",
|
|
1973
1984
|
{
|
|
1974
1985
|
className: "w-6 h-6 text-zinc-400 transition-transform duration-300 group-hover:translate-x-1",
|
|
@@ -1977,7 +1988,7 @@ var ArrowRightIcon = () => /* @__PURE__ */ jsx26(
|
|
|
1977
1988
|
strokeWidth: 2,
|
|
1978
1989
|
viewBox: "0 0 24 24",
|
|
1979
1990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1980
|
-
children: /* @__PURE__ */
|
|
1991
|
+
children: /* @__PURE__ */ jsx25("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" })
|
|
1981
1992
|
}
|
|
1982
1993
|
);
|
|
1983
1994
|
var ProgressPanelsBase = ({
|
|
@@ -1986,11 +1997,11 @@ var ProgressPanelsBase = ({
|
|
|
1986
1997
|
currentStep
|
|
1987
1998
|
}) => {
|
|
1988
1999
|
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-1 w-full", children: [
|
|
1989
|
-
label && /* @__PURE__ */
|
|
1990
|
-
/* @__PURE__ */
|
|
2000
|
+
label && /* @__PURE__ */ jsx25(LabelBase_default, { className: "py-2", children: label }),
|
|
2001
|
+
/* @__PURE__ */ jsx25("div", { className: "flex w-full gap-1 rounded-lg overflow-hidden", children: steps.map((step, idx) => {
|
|
1991
2002
|
const isActive = idx === currentStep;
|
|
1992
2003
|
const isLast = idx === steps.length - 1;
|
|
1993
|
-
return /* @__PURE__ */ jsxs16(
|
|
2004
|
+
return /* @__PURE__ */ jsxs16(React18.Fragment, { children: [
|
|
1994
2005
|
/* @__PURE__ */ jsxs16(
|
|
1995
2006
|
"div",
|
|
1996
2007
|
{
|
|
@@ -2002,12 +2013,12 @@ var ProgressPanelsBase = ({
|
|
|
2002
2013
|
),
|
|
2003
2014
|
style: { flex: "1 1 0" },
|
|
2004
2015
|
children: [
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
isActive && /* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ jsx25("span", { className: "truncate", children: step }),
|
|
2017
|
+
isActive && /* @__PURE__ */ jsx25("div", { className: "absolute bottom-0 left-0 h-1 w-full animate-pulse rounded-b-lg" })
|
|
2007
2018
|
]
|
|
2008
2019
|
}
|
|
2009
2020
|
),
|
|
2010
|
-
!isLast && /* @__PURE__ */
|
|
2021
|
+
!isLast && /* @__PURE__ */ jsx25("div", { className: "flex items-center px-2 group", children: /* @__PURE__ */ jsx25(ArrowRightIcon, {}) })
|
|
2011
2022
|
] }, idx);
|
|
2012
2023
|
}) })
|
|
2013
2024
|
] });
|
|
@@ -2018,10 +2029,10 @@ var ProgressCirclesBase = ({
|
|
|
2018
2029
|
currentStep
|
|
2019
2030
|
}) => {
|
|
2020
2031
|
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-2 w-full", children: [
|
|
2021
|
-
label && /* @__PURE__ */
|
|
2032
|
+
label && /* @__PURE__ */ jsx25("label", { className: "py-2 text-base font-semibold text-gray-700 dark:text-gray-300", children: label }),
|
|
2022
2033
|
/* @__PURE__ */ jsxs16("div", { className: "relative flex items-center justify-between w-full", children: [
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
/* @__PURE__ */
|
|
2034
|
+
/* @__PURE__ */ jsx25("div", { className: "absolute top-5 left-0 w-full h-1 bg-zinc-200 dark:bg-zinc-700" }),
|
|
2035
|
+
/* @__PURE__ */ jsx25(
|
|
2025
2036
|
"div",
|
|
2026
2037
|
{
|
|
2027
2038
|
className: "absolute top-5 left-0 h-1 bg-primary transition-all duration-300",
|
|
@@ -2038,7 +2049,7 @@ var ProgressCirclesBase = ({
|
|
|
2038
2049
|
className: "relative flex flex-col items-center w-10",
|
|
2039
2050
|
style: { zIndex: isActive ? 10 : 1 },
|
|
2040
2051
|
children: [
|
|
2041
|
-
/* @__PURE__ */
|
|
2052
|
+
/* @__PURE__ */ jsx25(
|
|
2042
2053
|
"div",
|
|
2043
2054
|
{
|
|
2044
2055
|
className: cn(
|
|
@@ -2048,7 +2059,7 @@ var ProgressCirclesBase = ({
|
|
|
2048
2059
|
children: idx + 1
|
|
2049
2060
|
}
|
|
2050
2061
|
),
|
|
2051
|
-
/* @__PURE__ */
|
|
2062
|
+
/* @__PURE__ */ jsx25("span", { className: "text-xs text-center font-medium mt-1 max-w-[80px] break-words", children: step })
|
|
2052
2063
|
]
|
|
2053
2064
|
},
|
|
2054
2065
|
idx
|
|
@@ -2059,14 +2070,14 @@ var ProgressCirclesBase = ({
|
|
|
2059
2070
|
};
|
|
2060
2071
|
|
|
2061
2072
|
// src/components/ui/SeparatorBase.tsx
|
|
2062
|
-
import * as
|
|
2073
|
+
import * as React19 from "react";
|
|
2063
2074
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
2064
2075
|
import { motion as motion6 } from "framer-motion";
|
|
2065
|
-
import { jsx as
|
|
2066
|
-
var SeparatorBase =
|
|
2076
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2077
|
+
var SeparatorBase = React19.forwardRef(
|
|
2067
2078
|
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
|
|
2068
2079
|
const isHorizontal = orientation === "horizontal";
|
|
2069
|
-
return /* @__PURE__ */
|
|
2080
|
+
return /* @__PURE__ */ jsx26(
|
|
2070
2081
|
SeparatorPrimitive.Root,
|
|
2071
2082
|
{
|
|
2072
2083
|
ref,
|
|
@@ -2074,7 +2085,7 @@ var SeparatorBase = React20.forwardRef(
|
|
|
2074
2085
|
orientation,
|
|
2075
2086
|
asChild: true,
|
|
2076
2087
|
...props,
|
|
2077
|
-
children: /* @__PURE__ */
|
|
2088
|
+
children: /* @__PURE__ */ jsx26(
|
|
2078
2089
|
motion6.div,
|
|
2079
2090
|
{
|
|
2080
2091
|
className: cn(
|
|
@@ -2094,16 +2105,16 @@ var SeparatorBase = React20.forwardRef(
|
|
|
2094
2105
|
SeparatorBase.displayName = SeparatorPrimitive.Root.displayName;
|
|
2095
2106
|
|
|
2096
2107
|
// src/components/ui/SheetBase.tsx
|
|
2097
|
-
import * as
|
|
2108
|
+
import * as React20 from "react";
|
|
2098
2109
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2099
2110
|
import { cva as cva2 } from "class-variance-authority";
|
|
2100
2111
|
import { X as X4 } from "phosphor-react";
|
|
2101
|
-
import { jsx as
|
|
2112
|
+
import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2102
2113
|
var SheetBase = SheetPrimitive.Root;
|
|
2103
2114
|
var SheetTriggerBase = SheetPrimitive.Trigger;
|
|
2104
2115
|
var SheetCloseBase = SheetPrimitive.Close;
|
|
2105
2116
|
var SheetPortalBase = SheetPrimitive.Portal;
|
|
2106
|
-
var SheetOverlayBase =
|
|
2117
|
+
var SheetOverlayBase = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
2107
2118
|
SheetPrimitive.Overlay,
|
|
2108
2119
|
{
|
|
2109
2120
|
className: cn(
|
|
@@ -2131,8 +2142,8 @@ var sheetVariants = cva2(
|
|
|
2131
2142
|
}
|
|
2132
2143
|
}
|
|
2133
2144
|
);
|
|
2134
|
-
var SheetContentBase =
|
|
2135
|
-
/* @__PURE__ */
|
|
2145
|
+
var SheetContentBase = React20.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(SheetPortalBase, { children: [
|
|
2146
|
+
/* @__PURE__ */ jsx27(SheetOverlayBase, {}),
|
|
2136
2147
|
/* @__PURE__ */ jsxs17(
|
|
2137
2148
|
SheetPrimitive.Content,
|
|
2138
2149
|
{
|
|
@@ -2141,8 +2152,8 @@ var SheetContentBase = React21.forwardRef(({ side = "right", className, children
|
|
|
2141
2152
|
...props,
|
|
2142
2153
|
children: [
|
|
2143
2154
|
/* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
2144
|
-
/* @__PURE__ */
|
|
2145
|
-
/* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ jsx27(X4, { className: "h-4 w-4" }),
|
|
2156
|
+
/* @__PURE__ */ jsx27("span", { className: "sr-only", children: "Close" })
|
|
2146
2157
|
] }),
|
|
2147
2158
|
children
|
|
2148
2159
|
]
|
|
@@ -2153,7 +2164,7 @@ SheetContentBase.displayName = SheetPrimitive.Content.displayName;
|
|
|
2153
2164
|
var SheetHeaderBase = ({
|
|
2154
2165
|
className,
|
|
2155
2166
|
...props
|
|
2156
|
-
}) => /* @__PURE__ */
|
|
2167
|
+
}) => /* @__PURE__ */ jsx27(
|
|
2157
2168
|
"div",
|
|
2158
2169
|
{
|
|
2159
2170
|
className: cn(
|
|
@@ -2167,7 +2178,7 @@ SheetHeaderBase.displayName = "SheetHeaderBase";
|
|
|
2167
2178
|
var SheetFooterBase = ({
|
|
2168
2179
|
className,
|
|
2169
2180
|
...props
|
|
2170
|
-
}) => /* @__PURE__ */
|
|
2181
|
+
}) => /* @__PURE__ */ jsx27(
|
|
2171
2182
|
"div",
|
|
2172
2183
|
{
|
|
2173
2184
|
className: cn(
|
|
@@ -2178,7 +2189,7 @@ var SheetFooterBase = ({
|
|
|
2178
2189
|
}
|
|
2179
2190
|
);
|
|
2180
2191
|
SheetFooterBase.displayName = "SheetFooterBase";
|
|
2181
|
-
var SheetTitleBase =
|
|
2192
|
+
var SheetTitleBase = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
2182
2193
|
SheetPrimitive.Title,
|
|
2183
2194
|
{
|
|
2184
2195
|
ref,
|
|
@@ -2187,7 +2198,7 @@ var SheetTitleBase = React21.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2187
2198
|
}
|
|
2188
2199
|
));
|
|
2189
2200
|
SheetTitleBase.displayName = SheetPrimitive.Title.displayName;
|
|
2190
|
-
var SheetDescriptionBase =
|
|
2201
|
+
var SheetDescriptionBase = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
2191
2202
|
SheetPrimitive.Description,
|
|
2192
2203
|
{
|
|
2193
2204
|
ref,
|
|
@@ -2198,17 +2209,17 @@ var SheetDescriptionBase = React21.forwardRef(({ className, ...props }, ref) =>
|
|
|
2198
2209
|
SheetDescriptionBase.displayName = SheetPrimitive.Description.displayName;
|
|
2199
2210
|
|
|
2200
2211
|
// src/components/ui/SidebarBase.tsx
|
|
2201
|
-
import * as
|
|
2202
|
-
import { Slot as
|
|
2212
|
+
import * as React22 from "react";
|
|
2213
|
+
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2203
2214
|
import { cva as cva3 } from "class-variance-authority";
|
|
2204
2215
|
|
|
2205
2216
|
// src/components/ui/SkeletonBase.tsx
|
|
2206
|
-
import { jsx as
|
|
2217
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2207
2218
|
function SkeletonBase({
|
|
2208
2219
|
className,
|
|
2209
2220
|
...props
|
|
2210
2221
|
}) {
|
|
2211
|
-
return /* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ jsx28(
|
|
2212
2223
|
"div",
|
|
2213
2224
|
{
|
|
2214
2225
|
className: cn("animate-pulse bg-primary/10", className),
|
|
@@ -2221,13 +2232,13 @@ function SkeletonBase({
|
|
|
2221
2232
|
import { SidebarSimple } from "phosphor-react";
|
|
2222
2233
|
|
|
2223
2234
|
// src/components/ui/TooltipBase.tsx
|
|
2224
|
-
import * as
|
|
2235
|
+
import * as React21 from "react";
|
|
2225
2236
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2226
|
-
import { jsx as
|
|
2237
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2227
2238
|
var TooltipProviderBase = TooltipPrimitive.Provider;
|
|
2228
2239
|
var TooltipBase = TooltipPrimitive.Root;
|
|
2229
2240
|
var TooltipTriggerBase = TooltipPrimitive.Trigger;
|
|
2230
|
-
var TooltipContentBase =
|
|
2241
|
+
var TooltipContentBase = React21.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx29(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx29(
|
|
2231
2242
|
TooltipPrimitive.Content,
|
|
2232
2243
|
{
|
|
2233
2244
|
ref,
|
|
@@ -2242,16 +2253,16 @@ var TooltipContentBase = React22.forwardRef(({ className, sideOffset = 4, ...pro
|
|
|
2242
2253
|
TooltipContentBase.displayName = TooltipPrimitive.Content.displayName;
|
|
2243
2254
|
|
|
2244
2255
|
// src/components/ui/SidebarBase.tsx
|
|
2245
|
-
import { jsx as
|
|
2256
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2246
2257
|
var SIDEBAR_COOKIE_NAME = "sidebar:state";
|
|
2247
2258
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
2248
2259
|
var SIDEBAR_WIDTH = "16rem";
|
|
2249
2260
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
2250
2261
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
2251
2262
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
2252
|
-
var SidebarContext =
|
|
2263
|
+
var SidebarContext = React22.createContext(null);
|
|
2253
2264
|
function UseSideBarBase() {
|
|
2254
|
-
const context =
|
|
2265
|
+
const context = React22.useContext(SidebarContext);
|
|
2255
2266
|
if (!context) {
|
|
2256
2267
|
throw new Error(
|
|
2257
2268
|
"UseSideBarBase must be used within a SidebarProviderBase."
|
|
@@ -2259,7 +2270,7 @@ function UseSideBarBase() {
|
|
|
2259
2270
|
}
|
|
2260
2271
|
return context;
|
|
2261
2272
|
}
|
|
2262
|
-
var SidebarProviderBase =
|
|
2273
|
+
var SidebarProviderBase = React22.forwardRef(
|
|
2263
2274
|
({
|
|
2264
2275
|
defaultOpen = true,
|
|
2265
2276
|
open: openProp,
|
|
@@ -2270,10 +2281,10 @@ var SidebarProviderBase = React23.forwardRef(
|
|
|
2270
2281
|
...props
|
|
2271
2282
|
}, ref) => {
|
|
2272
2283
|
const isMobile = useIsMobile();
|
|
2273
|
-
const [openMobile, setOpenMobile] =
|
|
2274
|
-
const [_open, _setOpen] =
|
|
2284
|
+
const [openMobile, setOpenMobile] = React22.useState(false);
|
|
2285
|
+
const [_open, _setOpen] = React22.useState(defaultOpen);
|
|
2275
2286
|
const open = openProp ?? _open;
|
|
2276
|
-
const setOpen =
|
|
2287
|
+
const setOpen = React22.useCallback(
|
|
2277
2288
|
(value) => {
|
|
2278
2289
|
const openState = typeof value === "function" ? value(open) : value;
|
|
2279
2290
|
if (setOpenProp) {
|
|
@@ -2285,10 +2296,10 @@ var SidebarProviderBase = React23.forwardRef(
|
|
|
2285
2296
|
},
|
|
2286
2297
|
[setOpenProp, open]
|
|
2287
2298
|
);
|
|
2288
|
-
const toggleSidebar =
|
|
2299
|
+
const toggleSidebar = React22.useCallback(() => {
|
|
2289
2300
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
2290
2301
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
2291
|
-
|
|
2302
|
+
React22.useEffect(() => {
|
|
2292
2303
|
const handleKeyDown = (event) => {
|
|
2293
2304
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
2294
2305
|
event.preventDefault();
|
|
@@ -2299,7 +2310,7 @@ var SidebarProviderBase = React23.forwardRef(
|
|
|
2299
2310
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
2300
2311
|
}, [toggleSidebar]);
|
|
2301
2312
|
const state = open ? "expanded" : "collapsed";
|
|
2302
|
-
const contextValue =
|
|
2313
|
+
const contextValue = React22.useMemo(
|
|
2303
2314
|
() => ({
|
|
2304
2315
|
state,
|
|
2305
2316
|
open,
|
|
@@ -2311,7 +2322,7 @@ var SidebarProviderBase = React23.forwardRef(
|
|
|
2311
2322
|
}),
|
|
2312
2323
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
2313
2324
|
);
|
|
2314
|
-
return /* @__PURE__ */
|
|
2325
|
+
return /* @__PURE__ */ jsx30(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx30(TooltipProviderBase, { delayDuration: 0, children: /* @__PURE__ */ jsx30(
|
|
2315
2326
|
"div",
|
|
2316
2327
|
{
|
|
2317
2328
|
style: {
|
|
@@ -2331,7 +2342,7 @@ var SidebarProviderBase = React23.forwardRef(
|
|
|
2331
2342
|
}
|
|
2332
2343
|
);
|
|
2333
2344
|
SidebarProviderBase.displayName = "SidebarProviderBase";
|
|
2334
|
-
var SidebarBase =
|
|
2345
|
+
var SidebarBase = React22.forwardRef(
|
|
2335
2346
|
({
|
|
2336
2347
|
side = "left",
|
|
2337
2348
|
variant = "sidebar",
|
|
@@ -2342,7 +2353,7 @@ var SidebarBase = React23.forwardRef(
|
|
|
2342
2353
|
}, ref) => {
|
|
2343
2354
|
const { isMobile, state, openMobile, setOpenMobile } = UseSideBarBase();
|
|
2344
2355
|
if (collapsible === "none") {
|
|
2345
|
-
return /* @__PURE__ */
|
|
2356
|
+
return /* @__PURE__ */ jsx30(
|
|
2346
2357
|
"div",
|
|
2347
2358
|
{
|
|
2348
2359
|
className: cn(
|
|
@@ -2356,7 +2367,7 @@ var SidebarBase = React23.forwardRef(
|
|
|
2356
2367
|
);
|
|
2357
2368
|
}
|
|
2358
2369
|
if (isMobile) {
|
|
2359
|
-
return /* @__PURE__ */
|
|
2370
|
+
return /* @__PURE__ */ jsx30(SheetBase, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsx30(
|
|
2360
2371
|
SheetContentBase,
|
|
2361
2372
|
{
|
|
2362
2373
|
"data-sidebar": "sidebar",
|
|
@@ -2366,7 +2377,7 @@ var SidebarBase = React23.forwardRef(
|
|
|
2366
2377
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
2367
2378
|
},
|
|
2368
2379
|
side,
|
|
2369
|
-
children: /* @__PURE__ */
|
|
2380
|
+
children: /* @__PURE__ */ jsx30("div", { className: "flex h-full w-full flex-col", children })
|
|
2370
2381
|
}
|
|
2371
2382
|
) });
|
|
2372
2383
|
}
|
|
@@ -2380,7 +2391,7 @@ var SidebarBase = React23.forwardRef(
|
|
|
2380
2391
|
"data-variant": variant,
|
|
2381
2392
|
"data-side": side,
|
|
2382
2393
|
children: [
|
|
2383
|
-
/* @__PURE__ */
|
|
2394
|
+
/* @__PURE__ */ jsx30(
|
|
2384
2395
|
"div",
|
|
2385
2396
|
{
|
|
2386
2397
|
className: cn(
|
|
@@ -2391,7 +2402,7 @@ var SidebarBase = React23.forwardRef(
|
|
|
2391
2402
|
)
|
|
2392
2403
|
}
|
|
2393
2404
|
),
|
|
2394
|
-
/* @__PURE__ */
|
|
2405
|
+
/* @__PURE__ */ jsx30(
|
|
2395
2406
|
"div",
|
|
2396
2407
|
{
|
|
2397
2408
|
className: cn(
|
|
@@ -2402,7 +2413,7 @@ var SidebarBase = React23.forwardRef(
|
|
|
2402
2413
|
className
|
|
2403
2414
|
),
|
|
2404
2415
|
...props,
|
|
2405
|
-
children: /* @__PURE__ */
|
|
2416
|
+
children: /* @__PURE__ */ jsx30(
|
|
2406
2417
|
"div",
|
|
2407
2418
|
{
|
|
2408
2419
|
"data-sidebar": "sidebar",
|
|
@@ -2418,9 +2429,9 @@ var SidebarBase = React23.forwardRef(
|
|
|
2418
2429
|
}
|
|
2419
2430
|
);
|
|
2420
2431
|
SidebarBase.displayName = "SidebarBase";
|
|
2421
|
-
var SidebarTriggerBase =
|
|
2432
|
+
var SidebarTriggerBase = React22.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
2422
2433
|
const { toggleSidebar } = UseSideBarBase();
|
|
2423
|
-
return /* @__PURE__ */
|
|
2434
|
+
return /* @__PURE__ */ jsx30("div", { children: /* @__PURE__ */ jsxs18(
|
|
2424
2435
|
ButtonBase,
|
|
2425
2436
|
{
|
|
2426
2437
|
ref,
|
|
@@ -2434,16 +2445,16 @@ var SidebarTriggerBase = React23.forwardRef(({ className, onClick, ...props }, r
|
|
|
2434
2445
|
},
|
|
2435
2446
|
...props,
|
|
2436
2447
|
children: [
|
|
2437
|
-
/* @__PURE__ */
|
|
2438
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ jsx30("span", { className: "sr-only", children: "Toggle SidebarBase" }),
|
|
2449
|
+
/* @__PURE__ */ jsx30(SidebarSimple, {})
|
|
2439
2450
|
]
|
|
2440
2451
|
}
|
|
2441
2452
|
) });
|
|
2442
2453
|
});
|
|
2443
2454
|
SidebarTriggerBase.displayName = "SidebarTriggerBase";
|
|
2444
|
-
var SidebarRailBase =
|
|
2455
|
+
var SidebarRailBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2445
2456
|
const { toggleSidebar } = UseSideBarBase();
|
|
2446
|
-
return /* @__PURE__ */
|
|
2457
|
+
return /* @__PURE__ */ jsx30(
|
|
2447
2458
|
"button",
|
|
2448
2459
|
{
|
|
2449
2460
|
ref,
|
|
@@ -2466,8 +2477,8 @@ var SidebarRailBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2466
2477
|
);
|
|
2467
2478
|
});
|
|
2468
2479
|
SidebarRailBase.displayName = "SidebarRailBase";
|
|
2469
|
-
var SidebarInsetBase =
|
|
2470
|
-
return /* @__PURE__ */
|
|
2480
|
+
var SidebarInsetBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2481
|
+
return /* @__PURE__ */ jsx30(
|
|
2471
2482
|
"main",
|
|
2472
2483
|
{
|
|
2473
2484
|
ref,
|
|
@@ -2481,8 +2492,8 @@ var SidebarInsetBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2481
2492
|
);
|
|
2482
2493
|
});
|
|
2483
2494
|
SidebarInsetBase.displayName = "SidebarInsetBase";
|
|
2484
|
-
var SidebarInputBase =
|
|
2485
|
-
return /* @__PURE__ */
|
|
2495
|
+
var SidebarInputBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2496
|
+
return /* @__PURE__ */ jsx30(
|
|
2486
2497
|
InputBase,
|
|
2487
2498
|
{
|
|
2488
2499
|
ref,
|
|
@@ -2496,8 +2507,8 @@ var SidebarInputBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2496
2507
|
);
|
|
2497
2508
|
});
|
|
2498
2509
|
SidebarInputBase.displayName = "SidebarInputBase";
|
|
2499
|
-
var SidebarHeaderBase =
|
|
2500
|
-
return /* @__PURE__ */
|
|
2510
|
+
var SidebarHeaderBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2511
|
+
return /* @__PURE__ */ jsx30(
|
|
2501
2512
|
"div",
|
|
2502
2513
|
{
|
|
2503
2514
|
ref,
|
|
@@ -2508,8 +2519,8 @@ var SidebarHeaderBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2508
2519
|
);
|
|
2509
2520
|
});
|
|
2510
2521
|
SidebarHeaderBase.displayName = "SidebarHeaderBase";
|
|
2511
|
-
var SidebarFooterBase =
|
|
2512
|
-
return /* @__PURE__ */
|
|
2522
|
+
var SidebarFooterBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2523
|
+
return /* @__PURE__ */ jsx30(
|
|
2513
2524
|
"div",
|
|
2514
2525
|
{
|
|
2515
2526
|
ref,
|
|
@@ -2520,8 +2531,8 @@ var SidebarFooterBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2520
2531
|
);
|
|
2521
2532
|
});
|
|
2522
2533
|
SidebarFooterBase.displayName = "SidebarFooterBase";
|
|
2523
|
-
var SidebarSeparatorBase =
|
|
2524
|
-
return /* @__PURE__ */
|
|
2534
|
+
var SidebarSeparatorBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2535
|
+
return /* @__PURE__ */ jsx30(
|
|
2525
2536
|
SeparatorBase,
|
|
2526
2537
|
{
|
|
2527
2538
|
ref,
|
|
@@ -2532,8 +2543,8 @@ var SidebarSeparatorBase = React23.forwardRef(({ className, ...props }, ref) =>
|
|
|
2532
2543
|
);
|
|
2533
2544
|
});
|
|
2534
2545
|
SidebarSeparatorBase.displayName = "SidebarSeparatorBase";
|
|
2535
|
-
var SidebarContentBase =
|
|
2536
|
-
return /* @__PURE__ */
|
|
2546
|
+
var SidebarContentBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2547
|
+
return /* @__PURE__ */ jsx30(
|
|
2537
2548
|
"div",
|
|
2538
2549
|
{
|
|
2539
2550
|
ref,
|
|
@@ -2547,8 +2558,8 @@ var SidebarContentBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2547
2558
|
);
|
|
2548
2559
|
});
|
|
2549
2560
|
SidebarContentBase.displayName = "SidebarContentBase";
|
|
2550
|
-
var SidebarGroupBase =
|
|
2551
|
-
return /* @__PURE__ */
|
|
2561
|
+
var SidebarGroupBase = React22.forwardRef(({ className, ...props }, ref) => {
|
|
2562
|
+
return /* @__PURE__ */ jsx30(
|
|
2552
2563
|
"div",
|
|
2553
2564
|
{
|
|
2554
2565
|
ref,
|
|
@@ -2559,9 +2570,9 @@ var SidebarGroupBase = React23.forwardRef(({ className, ...props }, ref) => {
|
|
|
2559
2570
|
);
|
|
2560
2571
|
});
|
|
2561
2572
|
SidebarGroupBase.displayName = "SidebarGroupBase";
|
|
2562
|
-
var SidebarGroupLabelBase =
|
|
2563
|
-
const Comp = asChild ?
|
|
2564
|
-
return /* @__PURE__ */
|
|
2573
|
+
var SidebarGroupLabelBase = React22.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
2574
|
+
const Comp = asChild ? Slot3 : "div";
|
|
2575
|
+
return /* @__PURE__ */ jsx30(
|
|
2565
2576
|
Comp,
|
|
2566
2577
|
{
|
|
2567
2578
|
ref,
|
|
@@ -2576,9 +2587,9 @@ var SidebarGroupLabelBase = React23.forwardRef(({ className, asChild = false, ..
|
|
|
2576
2587
|
);
|
|
2577
2588
|
});
|
|
2578
2589
|
SidebarGroupLabelBase.displayName = "SidebarGroupLabelBase";
|
|
2579
|
-
var SidebarGroupActionBase =
|
|
2580
|
-
const Comp = asChild ?
|
|
2581
|
-
return /* @__PURE__ */
|
|
2590
|
+
var SidebarGroupActionBase = React22.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
2591
|
+
const Comp = asChild ? Slot3 : "button";
|
|
2592
|
+
return /* @__PURE__ */ jsx30(
|
|
2582
2593
|
Comp,
|
|
2583
2594
|
{
|
|
2584
2595
|
ref,
|
|
@@ -2595,7 +2606,7 @@ var SidebarGroupActionBase = React23.forwardRef(({ className, asChild = false, .
|
|
|
2595
2606
|
);
|
|
2596
2607
|
});
|
|
2597
2608
|
SidebarGroupActionBase.displayName = "SidebarGroupActionBase";
|
|
2598
|
-
var SidebarGroupContentBase =
|
|
2609
|
+
var SidebarGroupContentBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2599
2610
|
"div",
|
|
2600
2611
|
{
|
|
2601
2612
|
ref,
|
|
@@ -2605,7 +2616,7 @@ var SidebarGroupContentBase = React23.forwardRef(({ className, ...props }, ref)
|
|
|
2605
2616
|
}
|
|
2606
2617
|
));
|
|
2607
2618
|
SidebarGroupContentBase.displayName = "SidebarGroupContentBase";
|
|
2608
|
-
var SidebarMenuBase =
|
|
2619
|
+
var SidebarMenuBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2609
2620
|
"ul",
|
|
2610
2621
|
{
|
|
2611
2622
|
ref,
|
|
@@ -2615,7 +2626,7 @@ var SidebarMenuBase = React23.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
2615
2626
|
}
|
|
2616
2627
|
));
|
|
2617
2628
|
SidebarMenuBase.displayName = "SidebarMenuBase";
|
|
2618
|
-
var SidebarMenuItemBase =
|
|
2629
|
+
var SidebarMenuItemBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2619
2630
|
"li",
|
|
2620
2631
|
{
|
|
2621
2632
|
ref,
|
|
@@ -2645,7 +2656,7 @@ var sidebarMenuButtonVariants = cva3(
|
|
|
2645
2656
|
}
|
|
2646
2657
|
}
|
|
2647
2658
|
);
|
|
2648
|
-
var SidebarMenuButtonBase =
|
|
2659
|
+
var SidebarMenuButtonBase = React22.forwardRef(
|
|
2649
2660
|
({
|
|
2650
2661
|
asChild = false,
|
|
2651
2662
|
isActive = false,
|
|
@@ -2655,9 +2666,9 @@ var SidebarMenuButtonBase = React23.forwardRef(
|
|
|
2655
2666
|
className,
|
|
2656
2667
|
...props
|
|
2657
2668
|
}, ref) => {
|
|
2658
|
-
const Comp = asChild ?
|
|
2669
|
+
const Comp = asChild ? Slot3 : "button";
|
|
2659
2670
|
const { isMobile, state } = UseSideBarBase();
|
|
2660
|
-
const button = /* @__PURE__ */
|
|
2671
|
+
const button = /* @__PURE__ */ jsx30(
|
|
2661
2672
|
Comp,
|
|
2662
2673
|
{
|
|
2663
2674
|
ref,
|
|
@@ -2677,8 +2688,8 @@ var SidebarMenuButtonBase = React23.forwardRef(
|
|
|
2677
2688
|
};
|
|
2678
2689
|
}
|
|
2679
2690
|
return /* @__PURE__ */ jsxs18(TooltipBase, { children: [
|
|
2680
|
-
/* @__PURE__ */
|
|
2681
|
-
/* @__PURE__ */
|
|
2691
|
+
/* @__PURE__ */ jsx30(TooltipTriggerBase, { asChild: true, children: button }),
|
|
2692
|
+
/* @__PURE__ */ jsx30(
|
|
2682
2693
|
TooltipContentBase,
|
|
2683
2694
|
{
|
|
2684
2695
|
side: "right",
|
|
@@ -2691,9 +2702,9 @@ var SidebarMenuButtonBase = React23.forwardRef(
|
|
|
2691
2702
|
}
|
|
2692
2703
|
);
|
|
2693
2704
|
SidebarMenuButtonBase.displayName = "SidebarMenuButtonBase";
|
|
2694
|
-
var SidebarMenuActionBase =
|
|
2695
|
-
const Comp = asChild ?
|
|
2696
|
-
return /* @__PURE__ */
|
|
2705
|
+
var SidebarMenuActionBase = React22.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
2706
|
+
const Comp = asChild ? Slot3 : "button";
|
|
2707
|
+
return /* @__PURE__ */ jsx30(
|
|
2697
2708
|
Comp,
|
|
2698
2709
|
{
|
|
2699
2710
|
ref,
|
|
@@ -2714,7 +2725,7 @@ var SidebarMenuActionBase = React23.forwardRef(({ className, asChild = false, sh
|
|
|
2714
2725
|
);
|
|
2715
2726
|
});
|
|
2716
2727
|
SidebarMenuActionBase.displayName = "SidebarMenuActionBase";
|
|
2717
|
-
var SidebarMenuBadgeBase =
|
|
2728
|
+
var SidebarMenuBadgeBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2718
2729
|
"div",
|
|
2719
2730
|
{
|
|
2720
2731
|
ref,
|
|
@@ -2732,8 +2743,8 @@ var SidebarMenuBadgeBase = React23.forwardRef(({ className, ...props }, ref) =>
|
|
|
2732
2743
|
}
|
|
2733
2744
|
));
|
|
2734
2745
|
SidebarMenuBadgeBase.displayName = "SidebarMenuBadgeBase";
|
|
2735
|
-
var SidebarMenuSkeletonBase =
|
|
2736
|
-
const width =
|
|
2746
|
+
var SidebarMenuSkeletonBase = React22.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
2747
|
+
const width = React22.useMemo(() => {
|
|
2737
2748
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
2738
2749
|
}, []);
|
|
2739
2750
|
return /* @__PURE__ */ jsxs18(
|
|
@@ -2744,14 +2755,14 @@ var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false,
|
|
|
2744
2755
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
2745
2756
|
...props,
|
|
2746
2757
|
children: [
|
|
2747
|
-
showIcon && /* @__PURE__ */
|
|
2758
|
+
showIcon && /* @__PURE__ */ jsx30(
|
|
2748
2759
|
SkeletonBase,
|
|
2749
2760
|
{
|
|
2750
2761
|
className: "size-4 rounded-md",
|
|
2751
2762
|
"data-sidebar": "menu-skeleton-icon"
|
|
2752
2763
|
}
|
|
2753
2764
|
),
|
|
2754
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ jsx30(
|
|
2755
2766
|
SkeletonBase,
|
|
2756
2767
|
{
|
|
2757
2768
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -2766,7 +2777,7 @@ var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false,
|
|
|
2766
2777
|
);
|
|
2767
2778
|
});
|
|
2768
2779
|
SidebarMenuSkeletonBase.displayName = "SidebarMenuSkeletonBase";
|
|
2769
|
-
var SidebarMenuSubBase =
|
|
2780
|
+
var SidebarMenuSubBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2770
2781
|
"ul",
|
|
2771
2782
|
{
|
|
2772
2783
|
ref,
|
|
@@ -2780,11 +2791,11 @@ var SidebarMenuSubBase = React23.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2780
2791
|
}
|
|
2781
2792
|
));
|
|
2782
2793
|
SidebarMenuSubBase.displayName = "SidebarMenuSubBase";
|
|
2783
|
-
var SidebarMenuSubItemBase =
|
|
2794
|
+
var SidebarMenuSubItemBase = React22.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx30("li", { ref, ...props }));
|
|
2784
2795
|
SidebarMenuSubItemBase.displayName = "SidebarMenuSubItemBase";
|
|
2785
|
-
var SidebarMenuSubButtonBase =
|
|
2786
|
-
const Comp = asChild ?
|
|
2787
|
-
return /* @__PURE__ */
|
|
2796
|
+
var SidebarMenuSubButtonBase = React22.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
2797
|
+
const Comp = asChild ? Slot3 : "a";
|
|
2798
|
+
return /* @__PURE__ */ jsx30(
|
|
2788
2799
|
Comp,
|
|
2789
2800
|
{
|
|
2790
2801
|
ref,
|
|
@@ -2806,10 +2817,10 @@ var SidebarMenuSubButtonBase = React23.forwardRef(({ asChild = false, size = "md
|
|
|
2806
2817
|
SidebarMenuSubButtonBase.displayName = "SidebarMenuSubButtonBase";
|
|
2807
2818
|
|
|
2808
2819
|
// src/components/ui/SliderBase.tsx
|
|
2809
|
-
import * as
|
|
2820
|
+
import * as React23 from "react";
|
|
2810
2821
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
2811
|
-
import { jsx as
|
|
2812
|
-
var SlideBase =
|
|
2822
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2823
|
+
var SlideBase = React23.forwardRef(
|
|
2813
2824
|
({
|
|
2814
2825
|
className,
|
|
2815
2826
|
orientation = "horizontal",
|
|
@@ -2827,7 +2838,7 @@ var SlideBase = React24.forwardRef(
|
|
|
2827
2838
|
isVertical ? "h-full " : "w-full"
|
|
2828
2839
|
),
|
|
2829
2840
|
children: [
|
|
2830
|
-
label && /* @__PURE__ */
|
|
2841
|
+
label && /* @__PURE__ */ jsx31(LabelBase_default, { className: "py-2", children: label }),
|
|
2831
2842
|
/* @__PURE__ */ jsxs19(
|
|
2832
2843
|
"div",
|
|
2833
2844
|
{
|
|
@@ -2836,7 +2847,7 @@ var SlideBase = React24.forwardRef(
|
|
|
2836
2847
|
isVertical ? "flex-col h-full" : "flex-row items-center w-full"
|
|
2837
2848
|
),
|
|
2838
2849
|
children: [
|
|
2839
|
-
leftIcon && /* @__PURE__ */
|
|
2850
|
+
leftIcon && /* @__PURE__ */ jsx31("div", { className: "flex items-center justify-center", children: leftIcon }),
|
|
2840
2851
|
/* @__PURE__ */ jsxs19(
|
|
2841
2852
|
SliderPrimitive.Root,
|
|
2842
2853
|
{
|
|
@@ -2849,14 +2860,14 @@ var SlideBase = React24.forwardRef(
|
|
|
2849
2860
|
),
|
|
2850
2861
|
...props,
|
|
2851
2862
|
children: [
|
|
2852
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ jsx31(
|
|
2853
2864
|
SliderPrimitive.Track,
|
|
2854
2865
|
{
|
|
2855
2866
|
className: cn(
|
|
2856
2867
|
"relative overflow-hidden bg-primary/20 rounded-full",
|
|
2857
2868
|
isVertical ? "w-1.5 h-full" : "h-1.5 w-full"
|
|
2858
2869
|
),
|
|
2859
|
-
children: /* @__PURE__ */
|
|
2870
|
+
children: /* @__PURE__ */ jsx31(
|
|
2860
2871
|
SliderPrimitive.Range,
|
|
2861
2872
|
{
|
|
2862
2873
|
className: cn(
|
|
@@ -2867,7 +2878,7 @@ var SlideBase = React24.forwardRef(
|
|
|
2867
2878
|
)
|
|
2868
2879
|
}
|
|
2869
2880
|
),
|
|
2870
|
-
/* @__PURE__ */
|
|
2881
|
+
/* @__PURE__ */ jsx31(
|
|
2871
2882
|
SliderPrimitive.Thumb,
|
|
2872
2883
|
{
|
|
2873
2884
|
className: cn(
|
|
@@ -2880,7 +2891,7 @@ var SlideBase = React24.forwardRef(
|
|
|
2880
2891
|
]
|
|
2881
2892
|
}
|
|
2882
2893
|
),
|
|
2883
|
-
rightIcon && /* @__PURE__ */
|
|
2894
|
+
rightIcon && /* @__PURE__ */ jsx31("div", { className: "flex items-center justify-center", children: rightIcon })
|
|
2884
2895
|
]
|
|
2885
2896
|
}
|
|
2886
2897
|
)
|
|
@@ -2900,10 +2911,10 @@ import {
|
|
|
2900
2911
|
Spinner
|
|
2901
2912
|
} from "phosphor-react";
|
|
2902
2913
|
import { Toaster as Sonner, toast as sonnertoast } from "sonner";
|
|
2903
|
-
import { jsx as
|
|
2914
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
2904
2915
|
var iconBaseClass = "w-5 h-auto";
|
|
2905
|
-
var Toaster = ({ ...props }) => {
|
|
2906
|
-
return /* @__PURE__ */
|
|
2916
|
+
var Toaster = ({ testId, ...props }) => {
|
|
2917
|
+
return /* @__PURE__ */ jsx32(
|
|
2907
2918
|
Sonner,
|
|
2908
2919
|
{
|
|
2909
2920
|
className: "toaster group",
|
|
@@ -2918,7 +2929,6 @@ var Toaster = ({ ...props }) => {
|
|
|
2918
2929
|
border-l-4
|
|
2919
2930
|
border-neutral-200
|
|
2920
2931
|
flex items-center gap-3
|
|
2921
|
-
|
|
2922
2932
|
data-[type=success]:border-l-green-500 data-[type=success]:bg-green-50 data-[type=success]:text-green-800 data-[type=success]:border-green-500
|
|
2923
2933
|
data-[type=error]:border-l-red-500 data-[type=error]:bg-red-50 data-[type=error]:text-red-800 data-[type=error]:border-red-500
|
|
2924
2934
|
data-[type=warning]:border-l-yellow-500 data-[type=warning]:bg-yellow-50 data-[type=warning]:text-yellow-800 data-[type=warning]:border-yellow-500
|
|
@@ -2944,40 +2954,40 @@ var Toaster = ({ ...props }) => {
|
|
|
2944
2954
|
`
|
|
2945
2955
|
}
|
|
2946
2956
|
},
|
|
2957
|
+
"data-testid": testId,
|
|
2947
2958
|
...props
|
|
2948
2959
|
}
|
|
2949
2960
|
);
|
|
2950
2961
|
};
|
|
2951
2962
|
var toast = {
|
|
2952
2963
|
success: (message) => sonnertoast.success(message, {
|
|
2953
|
-
icon: /* @__PURE__ */
|
|
2964
|
+
icon: /* @__PURE__ */ jsx32(CheckCircle, { className: `${iconBaseClass} text-green-600`, weight: "fill" }),
|
|
2965
|
+
className: "sonner-success"
|
|
2954
2966
|
}),
|
|
2955
2967
|
error: (message) => sonnertoast.error(message, {
|
|
2956
|
-
icon: /* @__PURE__ */
|
|
2968
|
+
icon: /* @__PURE__ */ jsx32(XCircle, { className: `${iconBaseClass} text-red-600`, weight: "fill" }),
|
|
2969
|
+
className: "sonner-error"
|
|
2957
2970
|
}),
|
|
2958
2971
|
warning: (message) => sonnertoast.warning(message, {
|
|
2959
|
-
icon: /* @__PURE__ */
|
|
2972
|
+
icon: /* @__PURE__ */ jsx32(Warning, { className: `${iconBaseClass} text-yellow-600`, weight: "fill" }),
|
|
2973
|
+
className: "sonner-warning"
|
|
2960
2974
|
}),
|
|
2961
2975
|
info: (message) => sonnertoast.info(message, {
|
|
2962
|
-
icon: /* @__PURE__ */
|
|
2976
|
+
icon: /* @__PURE__ */ jsx32(Info, { className: `${iconBaseClass} text-blue-600`, weight: "fill" }),
|
|
2977
|
+
className: "sonner-info"
|
|
2963
2978
|
}),
|
|
2964
2979
|
loading: (message) => sonnertoast(message, {
|
|
2965
|
-
icon: /* @__PURE__ */
|
|
2966
|
-
|
|
2967
|
-
{
|
|
2968
|
-
className: `${iconBaseClass} animate-spin text-neutral-500`,
|
|
2969
|
-
weight: "fill"
|
|
2970
|
-
}
|
|
2971
|
-
)
|
|
2980
|
+
icon: /* @__PURE__ */ jsx32(Spinner, { className: `${iconBaseClass} animate-spin text-neutral-500`, weight: "fill" }),
|
|
2981
|
+
className: "sonner-loading"
|
|
2972
2982
|
})
|
|
2973
2983
|
};
|
|
2974
2984
|
|
|
2975
2985
|
// src/components/ui/SwitchBase.tsx
|
|
2976
|
-
import * as
|
|
2986
|
+
import * as React24 from "react";
|
|
2977
2987
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
2978
|
-
import { jsx as
|
|
2979
|
-
var SwitchBase =
|
|
2980
|
-
return /* @__PURE__ */
|
|
2988
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
2989
|
+
var SwitchBase = React24.forwardRef(({ className, testid: dataTestId = "switch-base", ...props }, ref) => {
|
|
2990
|
+
return /* @__PURE__ */ jsx33(
|
|
2981
2991
|
SwitchPrimitives.Root,
|
|
2982
2992
|
{
|
|
2983
2993
|
...props,
|
|
@@ -2986,7 +2996,8 @@ var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
2986
2996
|
"peer relative inline-flex w-12 cursor-pointer items-center rounded-full border-2 border-transparent shadow-md transition-colors duration-300 ease-in-out focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input data-[state=checked]:shadow-[0_0_15px_4px_var(--tw-shadow-color)] data-[state=checked]:shadow-primary/30",
|
|
2987
2997
|
className
|
|
2988
2998
|
),
|
|
2989
|
-
|
|
2999
|
+
"data-testid": dataTestId,
|
|
3000
|
+
children: /* @__PURE__ */ jsx33(
|
|
2990
3001
|
SwitchPrimitives.Thumb,
|
|
2991
3002
|
{
|
|
2992
3003
|
className: cn(
|
|
@@ -3004,9 +3015,9 @@ var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
3004
3015
|
SwitchBase.displayName = SwitchPrimitives.Root.displayName;
|
|
3005
3016
|
|
|
3006
3017
|
// src/components/ui/TableBase.tsx
|
|
3007
|
-
import * as
|
|
3008
|
-
import { jsx as
|
|
3009
|
-
var TableBase =
|
|
3018
|
+
import * as React25 from "react";
|
|
3019
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3020
|
+
var TableBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx34(
|
|
3010
3021
|
"table",
|
|
3011
3022
|
{
|
|
3012
3023
|
ref,
|
|
@@ -3015,9 +3026,9 @@ var TableBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
3015
3026
|
}
|
|
3016
3027
|
) }));
|
|
3017
3028
|
TableBase.displayName = "TableBase";
|
|
3018
|
-
var TableHeaderBase =
|
|
3029
|
+
var TableHeaderBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
|
|
3019
3030
|
TableHeaderBase.displayName = "TableHeaderBase";
|
|
3020
|
-
var TableBodyBase =
|
|
3031
|
+
var TableBodyBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3021
3032
|
"tbody",
|
|
3022
3033
|
{
|
|
3023
3034
|
ref,
|
|
@@ -3026,7 +3037,7 @@ var TableBodyBase = React26.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3026
3037
|
}
|
|
3027
3038
|
));
|
|
3028
3039
|
TableBodyBase.displayName = "TableBodyBase";
|
|
3029
|
-
var TableFooterBase =
|
|
3040
|
+
var TableFooterBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3030
3041
|
"tfoot",
|
|
3031
3042
|
{
|
|
3032
3043
|
ref,
|
|
@@ -3038,7 +3049,7 @@ var TableFooterBase = React26.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3038
3049
|
}
|
|
3039
3050
|
));
|
|
3040
3051
|
TableFooterBase.displayName = "TableFooterBase";
|
|
3041
|
-
var TableRowBase =
|
|
3052
|
+
var TableRowBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3042
3053
|
"tr",
|
|
3043
3054
|
{
|
|
3044
3055
|
ref,
|
|
@@ -3050,7 +3061,7 @@ var TableRowBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3050
3061
|
}
|
|
3051
3062
|
));
|
|
3052
3063
|
TableRowBase.displayName = "TableRowBase";
|
|
3053
|
-
var TableHeadBase =
|
|
3064
|
+
var TableHeadBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3054
3065
|
"th",
|
|
3055
3066
|
{
|
|
3056
3067
|
ref,
|
|
@@ -3062,7 +3073,7 @@ var TableHeadBase = React26.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3062
3073
|
}
|
|
3063
3074
|
));
|
|
3064
3075
|
TableHeadBase.displayName = "TableHeadBase";
|
|
3065
|
-
var TableCellBase =
|
|
3076
|
+
var TableCellBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3066
3077
|
"td",
|
|
3067
3078
|
{
|
|
3068
3079
|
ref,
|
|
@@ -3074,7 +3085,7 @@ var TableCellBase = React26.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
3074
3085
|
}
|
|
3075
3086
|
));
|
|
3076
3087
|
TableCellBase.displayName = "TableCellBase";
|
|
3077
|
-
var TableCaptionBase =
|
|
3088
|
+
var TableCaptionBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3078
3089
|
"caption",
|
|
3079
3090
|
{
|
|
3080
3091
|
ref,
|
|
@@ -3085,11 +3096,11 @@ var TableCaptionBase = React26.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3085
3096
|
TableCaptionBase.displayName = "TableCaptionBase";
|
|
3086
3097
|
|
|
3087
3098
|
// src/components/ui/TabsBase.tsx
|
|
3088
|
-
import * as
|
|
3099
|
+
import * as React26 from "react";
|
|
3089
3100
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3090
|
-
import { jsx as
|
|
3101
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3091
3102
|
var TabsBase = TabsPrimitive.Root;
|
|
3092
|
-
var TabsListBase =
|
|
3103
|
+
var TabsListBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
3093
3104
|
TabsPrimitive.List,
|
|
3094
3105
|
{
|
|
3095
3106
|
ref,
|
|
@@ -3101,7 +3112,7 @@ var TabsListBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3101
3112
|
}
|
|
3102
3113
|
));
|
|
3103
3114
|
TabsListBase.displayName = TabsPrimitive.List.displayName;
|
|
3104
|
-
var TabsTriggerBase =
|
|
3115
|
+
var TabsTriggerBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
3105
3116
|
TabsPrimitive.Trigger,
|
|
3106
3117
|
{
|
|
3107
3118
|
ref,
|
|
@@ -3119,7 +3130,7 @@ var TabsTriggerBase = React27.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3119
3130
|
...props
|
|
3120
3131
|
}
|
|
3121
3132
|
));
|
|
3122
|
-
var TabsContentBase =
|
|
3133
|
+
var TabsContentBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx35(
|
|
3123
3134
|
TabsPrimitive.Content,
|
|
3124
3135
|
{
|
|
3125
3136
|
ref,
|
|
@@ -3134,10 +3145,10 @@ var TabsContentBase = React27.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3134
3145
|
TabsContentBase.displayName = TabsPrimitive.Content.displayName;
|
|
3135
3146
|
|
|
3136
3147
|
// src/components/ui/TextAreaBase.tsx
|
|
3137
|
-
import * as
|
|
3138
|
-
import { jsx as
|
|
3139
|
-
var TextAreaBase =
|
|
3140
|
-
return /* @__PURE__ */
|
|
3148
|
+
import * as React27 from "react";
|
|
3149
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3150
|
+
var TextAreaBase = React27.forwardRef(({ className, ...props }, ref) => {
|
|
3151
|
+
return /* @__PURE__ */ jsx36(
|
|
3141
3152
|
"textarea",
|
|
3142
3153
|
{
|
|
3143
3154
|
className: cn(
|
|
@@ -3332,13 +3343,6 @@ export {
|
|
|
3332
3343
|
DropDownMenuSubContentBase,
|
|
3333
3344
|
DropDownMenuSubTriggerBase,
|
|
3334
3345
|
DropDownMenuTriggerBase,
|
|
3335
|
-
FormBase,
|
|
3336
|
-
FormControlBase,
|
|
3337
|
-
FormDescriptionBase,
|
|
3338
|
-
FormFieldBase,
|
|
3339
|
-
FormItemBase,
|
|
3340
|
-
FormLabelBase,
|
|
3341
|
-
FormMessageBase,
|
|
3342
3346
|
InputBase,
|
|
3343
3347
|
LabelBase_default as LabelBase,
|
|
3344
3348
|
ModeToggleBase,
|
|
@@ -3428,7 +3432,6 @@ export {
|
|
|
3428
3432
|
buttonVariantsBase,
|
|
3429
3433
|
defaultStringConditions,
|
|
3430
3434
|
toast,
|
|
3431
|
-
useFormFieldBase,
|
|
3432
3435
|
useIsMobile,
|
|
3433
3436
|
useTheme
|
|
3434
3437
|
};
|