@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/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import './index.css';
2
3
  "use strict";
3
4
  var __create = Object.create;
@@ -91,13 +92,6 @@ __export(index_exports, {
91
92
  DropDownMenuSubContentBase: () => DropDownMenuSubContentBase,
92
93
  DropDownMenuSubTriggerBase: () => DropDownMenuSubTriggerBase,
93
94
  DropDownMenuTriggerBase: () => DropDownMenuTriggerBase,
94
- FormBase: () => FormBase,
95
- FormControlBase: () => FormControlBase,
96
- FormDescriptionBase: () => FormDescriptionBase,
97
- FormFieldBase: () => FormFieldBase,
98
- FormItemBase: () => FormItemBase,
99
- FormLabelBase: () => FormLabelBase,
100
- FormMessageBase: () => FormMessageBase,
101
95
  InputBase: () => InputBase,
102
96
  LabelBase: () => LabelBase_default,
103
97
  ModeToggleBase: () => ModeToggleBase,
@@ -187,7 +181,6 @@ __export(index_exports, {
187
181
  buttonVariantsBase: () => buttonVariantsBase,
188
182
  defaultStringConditions: () => defaultStringConditions,
189
183
  toast: () => toast,
190
- useFormFieldBase: () => useFormFieldBase,
191
184
  useIsMobile: () => useIsMobile,
192
185
  useTheme: () => useTheme
193
186
  });
@@ -243,13 +236,14 @@ var buttonVariantsBase = (0, import_class_variance_authority.cva)(
243
236
  }
244
237
  );
245
238
  var ButtonBase = React.forwardRef(
246
- ({ className, variant, size, asChild = false, ...props }, ref) => {
239
+ ({ className, variant, size, asChild = false, testid = `button-${variant ?? "default"}`, ...props }, ref) => {
247
240
  const Comp = asChild ? import_react_slot.Slot : "button";
248
241
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
249
242
  Comp,
250
243
  {
251
244
  className: cn(buttonVariantsBase({ variant, size, className })),
252
245
  ref,
246
+ "data-testid": testid ?? `button-${variant ?? "default"}`,
253
247
  ...props
254
248
  }
255
249
  );
@@ -294,19 +288,20 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
294
288
  var AlertDialogBase = AlertDialogPrimitive.Root;
295
289
  var AlertDialogTriggerBase = AlertDialogPrimitive.Trigger;
296
290
  var AlertDialogPortalBase = AlertDialogPrimitive.Portal;
297
- var AlertDialogOverlayBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
291
+ var AlertDialogOverlayBase = React2.forwardRef(({ className, testid = "alertdialog-overlay", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
298
292
  AlertDialogPrimitive.Overlay,
299
293
  {
300
294
  className: cn(
301
295
  "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",
302
296
  className
303
297
  ),
298
+ "data-testid": testid,
304
299
  ...props,
305
300
  ref
306
301
  }
307
302
  ));
308
303
  AlertDialogOverlayBase.displayName = AlertDialogPrimitive.Overlay.displayName;
309
- var AlertDialogContentBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AlertDialogPortalBase, { children: [
304
+ var AlertDialogContentBase = React2.forwardRef(({ className, testid = "alertdialog-content", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(AlertDialogPortalBase, { children: [
310
305
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AlertDialogOverlayBase, {}),
311
306
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
312
307
  AlertDialogPrimitive.Content,
@@ -316,6 +311,7 @@ var AlertDialogContentBase = React2.forwardRef(({ className, ...props }, ref) =>
316
311
  "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",
317
312
  className
318
313
  ),
314
+ "data-testid": testid,
319
315
  ...props
320
316
  }
321
317
  )
@@ -349,34 +345,37 @@ var AlertDialogFooterBase = ({
349
345
  }
350
346
  );
351
347
  AlertDialogFooterBase.displayName = "AlertDialogFooterBase";
352
- var AlertDialogTitleBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
348
+ var AlertDialogTitleBase = React2.forwardRef(({ className, testid = "alertdialog-title", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
353
349
  AlertDialogPrimitive.Title,
354
350
  {
355
351
  ref,
356
352
  className: cn("text-lg font-semibold", className),
353
+ "data-testid": testid,
357
354
  ...props
358
355
  }
359
356
  ));
360
357
  AlertDialogTitleBase.displayName = AlertDialogPrimitive.Title.displayName;
361
- var AlertDialogDescriptionBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
358
+ var AlertDialogDescriptionBase = React2.forwardRef(({ className, testid = "alertdialog-description", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
362
359
  AlertDialogPrimitive.Description,
363
360
  {
364
361
  ref,
365
362
  className: cn("text-sm text-muted-foreground", className),
363
+ "data-testid": testid,
366
364
  ...props
367
365
  }
368
366
  ));
369
367
  AlertDialogDescriptionBase.displayName = AlertDialogPrimitive.Description.displayName;
370
- var AlertDialogActionBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
368
+ var AlertDialogActionBase = React2.forwardRef(({ className, testid = "alertdialog-action", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
371
369
  AlertDialogPrimitive.Action,
372
370
  {
373
371
  ref,
374
372
  className: cn(buttonVariantsBase(), className),
373
+ "data-testid": testid,
375
374
  ...props
376
375
  }
377
376
  ));
378
377
  AlertDialogActionBase.displayName = AlertDialogPrimitive.Action.displayName;
379
- var AlertDialogCancelBase = React2.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
378
+ var AlertDialogCancelBase = React2.forwardRef(({ className, testid = "alertdialog-cancel", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
380
379
  AlertDialogPrimitive.Cancel,
381
380
  {
382
381
  ref,
@@ -385,6 +384,7 @@ var AlertDialogCancelBase = React2.forwardRef(({ className, ...props }, ref) =>
385
384
  "mt-2 sm:mt-0",
386
385
  className
387
386
  ),
387
+ "data-testid": testid,
388
388
  ...props
389
389
  }
390
390
  ));
@@ -444,7 +444,7 @@ var import_jsx_runtime4 = require("react/jsx-runtime");
444
444
  var PopoverBase = PopoverPrimitive.Root;
445
445
  var PopoverTriggerBase = PopoverPrimitive.Trigger;
446
446
  var PopoverAnchorBase = PopoverPrimitive.Anchor;
447
- var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
447
+ var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideOffset = 4, testid: dataTestId = "popover-content", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
448
448
  PopoverPrimitive.Content,
449
449
  {
450
450
  ref,
@@ -454,6 +454,7 @@ var PopoverContentBase = React4.forwardRef(({ className, align = "center", sideO
454
454
  "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",
455
455
  className
456
456
  ),
457
+ "data-testid": dataTestId,
457
458
  ...props
458
459
  }
459
460
  ) }));
@@ -583,19 +584,20 @@ var DialogBase = DialogPrimitive.Root;
583
584
  var DialogTriggerBase = DialogPrimitive.Trigger;
584
585
  var DialogPortalBase = DialogPrimitive.Portal;
585
586
  var DialogCloseBase = DialogPrimitive.Close;
586
- var DialogOverlayBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
587
+ var DialogOverlayBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-overlay", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
587
588
  DialogPrimitive.Overlay,
588
589
  {
589
590
  ref,
590
591
  className: cn(
591
- "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",
592
+ "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",
592
593
  className
593
594
  ),
595
+ "data-testid": dataTestId,
594
596
  ...props
595
597
  }
596
598
  ));
597
599
  DialogOverlayBase.displayName = DialogPrimitive.Overlay.displayName;
598
- var DialogContentBase = React6.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DialogPortalBase, { children: [
600
+ var DialogContentBase = React6.forwardRef(({ className, children, testid: dataTestId = "dialog-content", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(DialogPortalBase, { children: [
599
601
  /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogOverlayBase, {}),
600
602
  /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
601
603
  DialogPrimitive.Content,
@@ -605,6 +607,7 @@ var DialogContentBase = React6.forwardRef(({ className, children, ...props }, re
605
607
  "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",
606
608
  className
607
609
  ),
610
+ "data-testid": dataTestId,
608
611
  ...props,
609
612
  children: [
610
613
  children,
@@ -617,51 +620,42 @@ var DialogContentBase = React6.forwardRef(({ className, children, ...props }, re
617
620
  )
618
621
  ] }));
619
622
  DialogContentBase.displayName = DialogPrimitive.Content.displayName;
620
- var DialogHeaderBase = ({
621
- className,
622
- ...props
623
- }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
623
+ var DialogHeaderBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-header", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
624
624
  "div",
625
625
  {
626
- className: cn(
627
- "flex flex-col space-y-1.5 text-center sm:text-left",
628
- className
629
- ),
626
+ ref,
627
+ className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className),
628
+ "data-testid": dataTestId,
630
629
  ...props
631
630
  }
632
- );
631
+ ));
633
632
  DialogHeaderBase.displayName = "DialogHeader";
634
- var DialogFooterBase = ({
635
- className,
636
- ...props
637
- }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
633
+ var DialogFooterBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-footer", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
638
634
  "div",
639
635
  {
640
- className: cn(
641
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
642
- className
643
- ),
636
+ ref,
637
+ className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className),
638
+ "data-testid": dataTestId,
644
639
  ...props
645
640
  }
646
- );
641
+ ));
647
642
  DialogFooterBase.displayName = "DialogFooter";
648
- var DialogTitleBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
643
+ var DialogTitleBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-title", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
649
644
  DialogPrimitive.Title,
650
645
  {
651
646
  ref,
652
- className: cn(
653
- "text-lg font-semibold leading-none tracking-tight",
654
- className
655
- ),
647
+ className: cn("text-lg font-semibold leading-none tracking-tight", className),
648
+ "data-testid": dataTestId,
656
649
  ...props
657
650
  }
658
651
  ));
659
652
  DialogTitleBase.displayName = DialogPrimitive.Title.displayName;
660
- var DialogDescriptionBase = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
653
+ var DialogDescriptionBase = React6.forwardRef(({ className, testid: dataTestId = "dialog-description", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
661
654
  DialogPrimitive.Description,
662
655
  {
663
656
  ref,
664
657
  className: cn("text-sm text-muted-foreground", className),
658
+ "data-testid": dataTestId,
665
659
  ...props
666
660
  }
667
661
  ));
@@ -673,7 +667,7 @@ var import_react_label = require("@radix-ui/react-label");
673
667
  var import_react_slot2 = require("@radix-ui/react-slot");
674
668
  var import_jsx_runtime7 = require("react/jsx-runtime");
675
669
  var LabelBase = React7.forwardRef(
676
- ({ className, asChild = false, ...props }, ref) => {
670
+ ({ className, asChild = false, testid = "label-base", ...props }, ref) => {
677
671
  const Comp = asChild ? import_react_slot2.Slot : "label";
678
672
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_react_label.Label, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
679
673
  Comp,
@@ -683,6 +677,7 @@ var LabelBase = React7.forwardRef(
683
677
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
684
678
  className
685
679
  ),
680
+ "data-testid": testid,
686
681
  ...props
687
682
  }
688
683
  ) });
@@ -706,6 +701,7 @@ var InputBase = React8.forwardRef(
706
701
  labelClassname,
707
702
  leftIcon,
708
703
  rightIcon,
704
+ "data-testid": dataTestId,
709
705
  ...props
710
706
  }, ref) => {
711
707
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col w-full min-w-[150px]", children: [
@@ -728,6 +724,7 @@ var InputBase = React8.forwardRef(
728
724
  className
729
725
  ),
730
726
  ref,
727
+ "data-testid": dataTestId ?? "input-base",
731
728
  ...props
732
729
  }
733
730
  ),
@@ -1166,13 +1163,14 @@ var DropDownMenuSubContentBase = React12.forwardRef(({ className, ...props }, re
1166
1163
  ...props
1167
1164
  }
1168
1165
  ));
1169
- var DropDownMenuContentBase = React12.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1166
+ var DropDownMenuContentBase = React12.forwardRef(({ className, sideOffset = 4, testid: dataTestId = "dropdown-content", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1170
1167
  DropdownMenuPrimitive.Content,
1171
1168
  {
1172
1169
  sideOffset,
1173
1170
  forceMount: true,
1174
1171
  ref,
1175
1172
  className: cn("z-[9999] p-0", className),
1173
+ "data-testid": dataTestId,
1176
1174
  ...props,
1177
1175
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_framer_motion2.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1178
1176
  import_framer_motion2.motion.div,
@@ -1388,7 +1386,7 @@ var import_cmdk = require("cmdk");
1388
1386
  var import_phosphor_react7 = require("phosphor-react");
1389
1387
  var import_framer_motion3 = require("framer-motion");
1390
1388
  var import_jsx_runtime15 = require("react/jsx-runtime");
1391
- var CommandBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1389
+ var CommandBase = React13.forwardRef(({ className, testid: dataTestId = "command-base", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1392
1390
  import_cmdk.Command,
1393
1391
  {
1394
1392
  ref,
@@ -1396,6 +1394,7 @@ var CommandBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PUR
1396
1394
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-background text-popover-foreground",
1397
1395
  className
1398
1396
  ),
1397
+ "data-testid": dataTestId,
1399
1398
  ...props
1400
1399
  }
1401
1400
  ));
@@ -1420,7 +1419,7 @@ var CommandDialogBase = ({ children, open, ...props }) => {
1420
1419
  "command-dialog"
1421
1420
  ) }) }) });
1422
1421
  };
1423
- var CommandInputBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1422
+ var CommandInputBase = React13.forwardRef(({ className, testid: dataTestId = "command-input", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
1424
1423
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_phosphor_react7.MagnifyingGlass, { className: "mr-2 h-4 w-4 shrink-0 text-primary" }),
1425
1424
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1426
1425
  import_cmdk.Command.Input,
@@ -1430,23 +1429,25 @@ var CommandInputBase = React13.forwardRef(({ className, ...props }, ref) => /* @
1430
1429
  "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",
1431
1430
  className
1432
1431
  ),
1432
+ "data-testid": dataTestId,
1433
1433
  ...props
1434
1434
  }
1435
1435
  )
1436
1436
  ] }));
1437
1437
  CommandInputBase.displayName = import_cmdk.Command.Input.displayName;
1438
- var CommandListBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1438
+ var CommandListBase = React13.forwardRef(({ className, testid: dataTestId = "command-list", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1439
1439
  import_cmdk.Command.List,
1440
1440
  {
1441
1441
  ref,
1442
1442
  className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className),
1443
+ "data-testid": dataTestId,
1443
1444
  ...props
1444
1445
  }
1445
1446
  ));
1446
1447
  CommandListBase.displayName = import_cmdk.Command.List.displayName;
1447
- var CommandEmptyBase = React13.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", ...props }));
1448
+ var CommandEmptyBase = React13.forwardRef(({ testid: dataTestId = "command-empty", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk.Command.Empty, { ref, className: "py-6 text-center text-sm", "data-testid": dataTestId, ...props }));
1448
1449
  CommandEmptyBase.displayName = import_cmdk.Command.Empty.displayName;
1449
- var CommandGroupBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1450
+ var CommandGroupBase = React13.forwardRef(({ className, testid: dataTestId = "command-group", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1450
1451
  import_cmdk.Command.Group,
1451
1452
  {
1452
1453
  ref,
@@ -1454,13 +1455,14 @@ var CommandGroupBase = React13.forwardRef(({ className, ...props }, ref) => /* @
1454
1455
  "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",
1455
1456
  className
1456
1457
  ),
1458
+ "data-testid": dataTestId,
1457
1459
  ...props
1458
1460
  }
1459
1461
  ));
1460
1462
  CommandGroupBase.displayName = import_cmdk.Command.Group.displayName;
1461
- var CommandSeparatorBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk.Command.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), ...props }));
1463
+ var CommandSeparatorBase = React13.forwardRef(({ className, testid: dataTestId = "command-separator", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_cmdk.Command.Separator, { ref, className: cn("-mx-1 h-px bg-border", className), "data-testid": dataTestId, ...props }));
1462
1464
  CommandSeparatorBase.displayName = import_cmdk.Command.Separator.displayName;
1463
- var CommandItemBase = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1465
+ var CommandItemBase = React13.forwardRef(({ className, testid: dataTestId = "command-item", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1464
1466
  import_cmdk.Command.Item,
1465
1467
  {
1466
1468
  ref,
@@ -1468,6 +1470,7 @@ var CommandItemBase = React13.forwardRef(({ className, ...props }, ref) => /* @_
1468
1470
  "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]",
1469
1471
  className
1470
1472
  ),
1473
+ "data-testid": dataTestId,
1471
1474
  ...props
1472
1475
  }
1473
1476
  ));
@@ -1487,70 +1490,99 @@ function ComboboxBase({
1487
1490
  handleSelection,
1488
1491
  checkIsSelected,
1489
1492
  searchPlaceholder,
1490
- errorMessage
1493
+ errorMessage,
1494
+ testIds = {}
1491
1495
  }) {
1492
1496
  const [open, setOpen] = (0, import_react4.useState)(false);
1493
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "col-span-1 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
1494
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1495
- PopoverTriggerBase,
1496
- {
1497
- asChild: true,
1498
- className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]",
1499
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1500
- ButtonBase,
1497
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1498
+ "div",
1499
+ {
1500
+ className: "col-span-1 w-full",
1501
+ "data-testid": testIds.root ?? "combobox-base-root",
1502
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(PopoverBase, { open, onOpenChange: setOpen, modal: true, children: [
1503
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1504
+ PopoverTriggerBase,
1501
1505
  {
1502
- variant: "outline",
1503
- role: "combobox",
1504
- "aria-expanded": open,
1505
- className: cn(
1506
- "flex items-start gap-2 justify-between h-full",
1507
- errorMessage && "border-red-500"
1508
- ),
1509
- children: [
1510
- renderSelected,
1511
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react8.CaretDown, { size: 16, className: "mt-0.5" })
1512
- ]
1506
+ asChild: true,
1507
+ className: "flex w-full justify-between dark:bg-[hsl(231,15%,19%)]",
1508
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1509
+ ButtonBase,
1510
+ {
1511
+ variant: "outline",
1512
+ role: "combobox",
1513
+ "aria-expanded": open,
1514
+ className: cn(
1515
+ "flex items-start gap-2 justify-between h-full",
1516
+ errorMessage && "border-red-500"
1517
+ ),
1518
+ "data-testid": testIds.trigger ?? "combobox-trigger",
1519
+ children: [
1520
+ renderSelected,
1521
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react8.CaretDown, { size: 16, className: "mt-0.5" })
1522
+ ]
1523
+ }
1524
+ )
1513
1525
  }
1514
- )
1515
- }
1516
- ),
1517
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(PopoverContentBase, { className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CommandBase, { className: "dark:text-white", children: [
1518
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1519
- CommandInputBase,
1520
- {
1521
- tabIndex: -1,
1522
- placeholder: searchPlaceholder ?? "Busque uma op\xE7\xE3o..."
1523
- }
1524
- ),
1525
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CommandListBase, { children: [
1526
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandEmptyBase, { children: "Nenhum dado encontrado" }),
1527
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandGroupBase, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1528
- CommandItemBase,
1526
+ ),
1527
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1528
+ PopoverContentBase,
1529
1529
  {
1530
- keywords: [item.label],
1531
- value: item.value,
1532
- onSelect: (value) => {
1533
- handleSelection(value);
1534
- setOpen(false);
1535
- },
1536
- children: [
1537
- item.label,
1538
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1539
- import_phosphor_react8.Check,
1540
- {
1541
- className: cn(
1542
- "ml-auto",
1543
- checkIsSelected(item.value) ? "opacity-100" : "opacity-0"
1544
- )
1545
- }
1546
- )
1547
- ]
1548
- },
1549
- item.value
1550
- )) })
1530
+ className: "max-h-[--radix-popover-content-available-height] w-[--radix-popover-trigger-width] p-0 border-none",
1531
+ "data-testid": testIds.popover ?? "combobox-popover",
1532
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1533
+ CommandBase,
1534
+ {
1535
+ className: "dark:text-white",
1536
+ "data-testid": testIds.command ?? "combobox-command",
1537
+ children: [
1538
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1539
+ CommandInputBase,
1540
+ {
1541
+ tabIndex: -1,
1542
+ placeholder: searchPlaceholder ?? "Busque uma op\xE7\xE3o...",
1543
+ "data-testid": testIds.search ?? "combobox-search"
1544
+ }
1545
+ ),
1546
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(CommandListBase, { "data-testid": testIds.list ?? "combobox-list", children: [
1547
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandEmptyBase, { "data-testid": testIds.empty ?? "combobox-empty", children: "Nenhum dado encontrado" }),
1548
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CommandGroupBase, { "data-testid": testIds.group ?? "combobox-group", children: items.map((item) => {
1549
+ const isSelected = checkIsSelected(item.value);
1550
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
1551
+ CommandItemBase,
1552
+ {
1553
+ keywords: [item.label],
1554
+ value: item.value,
1555
+ onSelect: (value) => {
1556
+ handleSelection(value);
1557
+ setOpen(false);
1558
+ },
1559
+ "data-testid": testIds.option ?? "combobox-option",
1560
+ children: [
1561
+ item.label,
1562
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1563
+ import_phosphor_react8.Check,
1564
+ {
1565
+ className: cn(
1566
+ "ml-auto",
1567
+ isSelected ? "opacity-100" : "opacity-0"
1568
+ ),
1569
+ "data-testid": isSelected ? testIds.check ?? "combobox-option-check" : void 0
1570
+ }
1571
+ )
1572
+ ]
1573
+ },
1574
+ item.value
1575
+ );
1576
+ }) })
1577
+ ] })
1578
+ ]
1579
+ }
1580
+ )
1581
+ }
1582
+ )
1551
1583
  ] })
1552
- ] }) })
1553
- ] }) });
1584
+ }
1585
+ );
1554
1586
  }
1555
1587
 
1556
1588
  // src/components/selects/Combobox.tsx
@@ -1563,12 +1595,20 @@ function Combobox({
1563
1595
  placeholder,
1564
1596
  searchPlaceholder,
1565
1597
  label,
1566
- labelClassname
1598
+ labelClassname,
1599
+ testIds
1567
1600
  }) {
1568
1601
  const selectedItem = items.find((item) => item.value === selected);
1569
1602
  const renderSelected = (0, import_react5.useMemo)(() => {
1570
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: cn("truncate", !selectedItem && "text-gray-500"), children: selectedItem?.label ?? placeholder ?? "Selecione uma op\xE7\xE3o..." });
1571
- }, [placeholder, selectedItem]);
1603
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1604
+ "span",
1605
+ {
1606
+ "data-testid": testIds?.selected ?? "combobox-selected",
1607
+ className: cn("truncate", !selectedItem && "text-gray-500"),
1608
+ children: selectedItem?.label ?? placeholder ?? "Selecione uma op\xE7\xE3o..."
1609
+ }
1610
+ );
1611
+ }, [placeholder, selectedItem, testIds?.selected]);
1572
1612
  const checkIsSelected = (0, import_react5.useCallback)(
1573
1613
  (value) => selected == null ? false : selected == value,
1574
1614
  [selected]
@@ -1588,7 +1628,8 @@ function Combobox({
1588
1628
  renderSelected,
1589
1629
  handleSelection,
1590
1630
  checkIsSelected,
1591
- searchPlaceholder
1631
+ searchPlaceholder,
1632
+ testIds
1592
1633
  }
1593
1634
  )
1594
1635
  ] });
@@ -1606,7 +1647,8 @@ function MultiCombobox({
1606
1647
  placeholder,
1607
1648
  searchPlaceholder,
1608
1649
  label,
1609
- labelClassname
1650
+ labelClassname,
1651
+ testIds = {}
1610
1652
  }) {
1611
1653
  const selectedItems = items.filter((item) => selected.includes(item.value));
1612
1654
  const checkIsSelected = (0, import_react6.useCallback)(
@@ -1626,46 +1668,74 @@ function MultiCombobox({
1626
1668
  );
1627
1669
  const renderSelected = (0, import_react6.useMemo)(() => {
1628
1670
  if (selectedItems.length === 0) {
1629
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-gray-500", children: placeholder ?? "Selecione uma op\xE7\xE3o..." });
1671
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1672
+ "span",
1673
+ {
1674
+ "data-testid": testIds.emptyPlaceholder ?? "combobox-selected-empty",
1675
+ className: "text-gray-500",
1676
+ children: placeholder ?? "Selecione uma op\xE7\xE3o..."
1677
+ }
1678
+ );
1630
1679
  }
1631
- const items2 = selectedItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1680
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1632
1681
  "div",
1633
1682
  {
1634
- className: "flex items-center gap-1 rounded-md border p-1",
1635
- children: [
1636
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "whitespace-break-spaces text-xs", children: item.label }),
1637
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1638
- "span",
1639
- {
1640
- role: "button",
1641
- tabIndex: 0,
1642
- onClick: (e) => {
1643
- e.stopPropagation();
1644
- handleSelection(item.value);
1645
- },
1646
- className: "cursor-pointer p-0 m-0 text-xs flex items-center justify-center hover:text-red-500 hover:scale-110 transition-all",
1647
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.X, { size: 14 })
1648
- }
1649
- )
1650
- ]
1651
- },
1652
- item.value
1653
- ));
1654
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex w-full flex-wrap gap-2", children: items2 });
1655
- }, [handleSelection, placeholder, selectedItems]);
1656
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: cn("flex flex-col gap-1 w-full min-w-[150px]", className), children: [
1657
- label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(LabelBase_default, { className: labelClassname, children: label }),
1658
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1659
- ComboboxBase,
1660
- {
1661
- items,
1662
- renderSelected,
1663
- handleSelection,
1664
- checkIsSelected,
1665
- searchPlaceholder
1683
+ "data-testid": testIds.selectedWrapper ?? "combobox-selected-wrapper",
1684
+ className: "flex w-full flex-wrap gap-2",
1685
+ children: selectedItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1686
+ "div",
1687
+ {
1688
+ className: "flex items-center gap-1 rounded-md border p-1",
1689
+ "data-testid": testIds.selectedItem?.(item.value) ?? `combobox-selected-${item.value}`,
1690
+ children: [
1691
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "whitespace-break-spaces text-xs", children: item.label }),
1692
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1693
+ "span",
1694
+ {
1695
+ role: "button",
1696
+ tabIndex: 0,
1697
+ onClick: (e) => {
1698
+ e.stopPropagation();
1699
+ handleSelection(item.value);
1700
+ },
1701
+ className: "cursor-pointer p-0 m-0 text-xs flex items-center justify-center hover:text-red-500 hover:scale-110 transition-all",
1702
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.X, { size: 14 })
1703
+ }
1704
+ )
1705
+ ]
1706
+ },
1707
+ item.value
1708
+ ))
1666
1709
  }
1667
- )
1668
- ] });
1710
+ );
1711
+ }, [handleSelection, placeholder, selectedItems, testIds]);
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
1713
+ "div",
1714
+ {
1715
+ className: cn("flex flex-col gap-1 w-full min-w-[150px]", className),
1716
+ "data-testid": testIds.root ?? "multi-combobox-root",
1717
+ children: [
1718
+ label && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1719
+ LabelBase_default,
1720
+ {
1721
+ className: labelClassname,
1722
+ "data-testid": testIds.label ?? "multi-combobox-label",
1723
+ children: label
1724
+ }
1725
+ ),
1726
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1727
+ ComboboxBase,
1728
+ {
1729
+ items,
1730
+ renderSelected,
1731
+ handleSelection,
1732
+ checkIsSelected,
1733
+ searchPlaceholder
1734
+ }
1735
+ )
1736
+ ]
1737
+ }
1738
+ );
1669
1739
  }
1670
1740
 
1671
1741
  // src/components/ui/SelectBase.tsx
@@ -1727,7 +1797,7 @@ var SelectScrollDownButtonBase = React14.forwardRef(({ className, ...props }, re
1727
1797
  }
1728
1798
  ));
1729
1799
  SelectScrollDownButtonBase.displayName = SelectPrimitive.ScrollDownButton.displayName;
1730
- var SelectContentBase = React14.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_framer_motion4.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1800
+ var SelectContentBase = React14.forwardRef(({ className, children, position = "popper", testid: dataTestId = "select-content", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_framer_motion4.AnimatePresence, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1731
1801
  SelectPrimitive.Content,
1732
1802
  {
1733
1803
  ref,
@@ -1736,6 +1806,7 @@ var SelectContentBase = React14.forwardRef(({ className, children, position = "p
1736
1806
  className
1737
1807
  ),
1738
1808
  position,
1809
+ "data-testid": dataTestId,
1739
1810
  ...props,
1740
1811
  asChild: true,
1741
1812
  children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
@@ -1841,10 +1912,11 @@ function Select({
1841
1912
  groupItems,
1842
1913
  placeholder,
1843
1914
  onChange,
1844
- errorMessage
1915
+ errorMessage,
1916
+ testIds = {}
1845
1917
  }) {
1846
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { children: [
1847
- /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SelectBase, { onValueChange: onChange, children: [
1918
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-testid": testIds.root ?? "select-root", children: [
1919
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SelectBase, { onValueChange: onChange, "data-testid": testIds.base ?? "select-base", children: [
1848
1920
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1849
1921
  SelectTriggerBase,
1850
1922
  {
@@ -1852,15 +1924,45 @@ function Select({
1852
1924
  "flex h-12 w-full content-start text-lg shadow-md",
1853
1925
  errorMessage && "border-red-500"
1854
1926
  ),
1855
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectValueBase, { placeholder })
1927
+ "data-testid": testIds.trigger ?? "select-trigger",
1928
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1929
+ SelectValueBase,
1930
+ {
1931
+ placeholder,
1932
+ "data-testid": testIds.value ?? "select-value"
1933
+ }
1934
+ )
1856
1935
  }
1857
1936
  ),
1858
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ScrollAreaBase, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContentBase, { children: groupItems ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: Object.keys(groupItems).map((key) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SelectGroupBase, { children: [
1859
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectLabelBase, { children: key }),
1860
- groupItems[key].map((item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItemBase, { value: item.value, children: item.label }, item.value))
1861
- ] }, key)) }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectGroupBase, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectItemBase, { value: item.value, children: item.label }, item.value)) }) }) })
1937
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ScrollAreaBase, { "data-testid": testIds.scrollarea ?? "select-scrollarea", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectContentBase, { "data-testid": testIds.content ?? "select-content", children: groupItems ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: Object.keys(groupItems).map((key) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(SelectGroupBase, { "data-testid": testIds.group ?? "select-group", children: [
1938
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectLabelBase, { "data-testid": testIds.label ?? "select-label", children: key }),
1939
+ groupItems[key].map((item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1940
+ SelectItemBase,
1941
+ {
1942
+ value: item.value,
1943
+ "data-testid": testIds.item?.(item.value) ?? `select-item-${item.value}`,
1944
+ children: item.label
1945
+ },
1946
+ item.value
1947
+ ))
1948
+ ] }, key)) }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectGroupBase, { "data-testid": testIds.group ?? "select-group", children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1949
+ SelectItemBase,
1950
+ {
1951
+ value: item.value,
1952
+ "data-testid": testIds.item?.(item.value) ?? `select-item-${item.value}`,
1953
+ children: item.label
1954
+ },
1955
+ item.value
1956
+ )) }) }) })
1862
1957
  ] }),
1863
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-sm text-red-500", children: errorMessage })
1958
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1959
+ "p",
1960
+ {
1961
+ className: "text-sm text-red-500",
1962
+ "data-testid": testIds.error ?? "select-error",
1963
+ children: errorMessage
1964
+ }
1965
+ )
1864
1966
  ] });
1865
1967
  }
1866
1968
 
@@ -1922,7 +2024,7 @@ CalendarBase2.displayName = "Calendar";
1922
2024
  // src/components/ui/CardBase.tsx
1923
2025
  var React16 = __toESM(require("react"));
1924
2026
  var import_jsx_runtime23 = require("react/jsx-runtime");
1925
- var CardBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2027
+ var CardBase = React16.forwardRef(({ className, testid: dataTestId = "card-base", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1926
2028
  "div",
1927
2029
  {
1928
2030
  ref,
@@ -1930,44 +2032,49 @@ var CardBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__
1930
2032
  "rounded-xl border bg-card text-card-foreground shadow",
1931
2033
  className
1932
2034
  ),
2035
+ "data-testid": dataTestId,
1933
2036
  ...props
1934
2037
  }
1935
2038
  ));
1936
2039
  CardBase.displayName = "Card";
1937
- var CardHeaderBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2040
+ var CardHeaderBase = React16.forwardRef(({ className, testid: dataTestId = "card-header", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1938
2041
  "div",
1939
2042
  {
1940
2043
  ref,
1941
2044
  className: cn("flex flex-col space-y-1.5 p-6", className),
2045
+ "data-testid": dataTestId,
1942
2046
  ...props
1943
2047
  }
1944
2048
  ));
1945
2049
  CardHeaderBase.displayName = "CardHeader";
1946
- var CardTitleBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2050
+ var CardTitleBase = React16.forwardRef(({ className, testid: dataTestId = "card-title", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1947
2051
  "div",
1948
2052
  {
1949
2053
  ref,
1950
2054
  className: cn("font-semibold leading-none tracking-tight", className),
2055
+ "data-testid": dataTestId,
1951
2056
  ...props
1952
2057
  }
1953
2058
  ));
1954
2059
  CardTitleBase.displayName = "CardTitle";
1955
- var CardDescriptionBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2060
+ var CardDescriptionBase = React16.forwardRef(({ className, testid: dataTestId = "card-description", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1956
2061
  "div",
1957
2062
  {
1958
2063
  ref,
1959
2064
  className: cn("text-sm text-muted-foreground", className),
2065
+ "data-testid": dataTestId,
1960
2066
  ...props
1961
2067
  }
1962
2068
  ));
1963
2069
  CardDescriptionBase.displayName = "CardDescription";
1964
- var CardContentBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, className: cn("p-6 pt-0", className), ...props }));
2070
+ var CardContentBase = React16.forwardRef(({ className, testid: dataTestId = "card-content", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { ref, className: cn("p-6 pt-0", className), "data-testid": dataTestId, ...props }));
1965
2071
  CardContentBase.displayName = "CardContent";
1966
- var CardFooterBase = React16.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2072
+ var CardFooterBase = React16.forwardRef(({ className, testid: dataTestId = "card-footer", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
1967
2073
  "div",
1968
2074
  {
1969
2075
  ref,
1970
2076
  className: cn("flex items-center p-6 pt-0", className),
2077
+ "data-testid": dataTestId,
1971
2078
  ...props
1972
2079
  }
1973
2080
  ));
@@ -1979,7 +2086,7 @@ var CheckboxPrimitive = __toESM(require("@radix-ui/react-checkbox"));
1979
2086
  var import_phosphor_react12 = require("phosphor-react");
1980
2087
  var import_framer_motion5 = require("framer-motion");
1981
2088
  var import_jsx_runtime24 = require("react/jsx-runtime");
1982
- var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2089
+ var CheckboxBase = React17.forwardRef(({ className, testid: dataTestId = "checkbox-base", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1983
2090
  CheckboxPrimitive.Root,
1984
2091
  {
1985
2092
  ref,
@@ -1987,6 +2094,7 @@ var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
1987
2094
  "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",
1988
2095
  className
1989
2096
  ),
2097
+ "data-testid": dataTestId,
1990
2098
  ...props,
1991
2099
  children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(CheckboxPrimitive.Indicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
1992
2100
  import_framer_motion5.motion.div,
@@ -2003,117 +2111,16 @@ var CheckboxBase = React17.forwardRef(({ className, ...props }, ref) => /* @__PU
2003
2111
  ));
2004
2112
  CheckboxBase.displayName = CheckboxPrimitive.Root.displayName;
2005
2113
 
2006
- // src/components/ui/FormBase.tsx
2007
- var React18 = __toESM(require("react"));
2008
- var import_react_slot3 = require("@radix-ui/react-slot");
2009
- var import_react_hook_form = require("react-hook-form");
2010
- var import_jsx_runtime25 = require("react/jsx-runtime");
2011
- var FormBase = import_react_hook_form.FormProvider;
2012
- var FormFieldBaseContext = React18.createContext(
2013
- {}
2014
- );
2015
- var FormFieldBase = ({
2016
- ...props
2017
- }) => {
2018
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FormFieldBaseContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_hook_form.Controller, { ...props }) });
2019
- };
2020
- var useFormFieldBase = () => {
2021
- const fieldContext = React18.useContext(FormFieldBaseContext);
2022
- const itemContext = React18.useContext(FormItemBaseContext);
2023
- const { getFieldState, formState } = (0, import_react_hook_form.useFormContext)();
2024
- const fieldState = getFieldState(fieldContext.name, formState);
2025
- if (!fieldContext) {
2026
- throw new Error("useFormFieldBase should be used within <FormFieldBase>");
2027
- }
2028
- const { id } = itemContext;
2029
- return {
2030
- id,
2031
- name: fieldContext.name,
2032
- FormItemId: `${id}-form-item`,
2033
- FormDescriptionId: `${id}-form-item-description`,
2034
- FormMessageId: `${id}-form-item-message`,
2035
- ...fieldState
2036
- };
2037
- };
2038
- var FormItemBaseContext = React18.createContext(
2039
- {}
2040
- );
2041
- var FormItemBase = React18.forwardRef(({ className, ...props }, ref) => {
2042
- const id = React18.useId();
2043
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(FormItemBaseContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ref, className: cn("space-y-2", className), ...props }) });
2044
- });
2045
- FormItemBase.displayName = "FormItemBase";
2046
- var FormLabelBase = React18.forwardRef(
2047
- ({ className, ...props }, ref) => {
2048
- const { error, FormItemId } = useFormFieldBase();
2049
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2050
- LabelBase_default,
2051
- {
2052
- ref,
2053
- className: cn(error && "text-destructive", className),
2054
- htmlFor: FormItemId,
2055
- ...props
2056
- }
2057
- );
2058
- }
2059
- );
2060
- FormLabelBase.displayName = "FormLabelBase";
2061
- var FormControlBase = React18.forwardRef(({ ...props }, ref) => {
2062
- const { error, FormItemId, FormDescriptionId, FormMessageId } = useFormFieldBase();
2063
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2064
- import_react_slot3.Slot,
2065
- {
2066
- ref,
2067
- id: FormItemId,
2068
- "aria-describedby": !error ? `${FormDescriptionId}` : `${FormDescriptionId} ${FormMessageId}`,
2069
- "aria-invalid": !!error,
2070
- ...props
2071
- }
2072
- );
2073
- });
2074
- FormControlBase.displayName = "FormControlBase";
2075
- var FormDescriptionBase = React18.forwardRef(({ className, ...props }, ref) => {
2076
- const { FormDescriptionId } = useFormFieldBase();
2077
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2078
- "p",
2079
- {
2080
- ref,
2081
- id: FormDescriptionId,
2082
- className: cn("text-[0.8rem] text-muted-foreground", className),
2083
- ...props
2084
- }
2085
- );
2086
- });
2087
- FormDescriptionBase.displayName = "FormDescriptionBase";
2088
- var FormMessageBase = React18.forwardRef(({ className, children, ...props }, ref) => {
2089
- const { error, FormMessageId } = useFormFieldBase();
2090
- const body = error ? String(error?.message) : children;
2091
- if (!body) {
2092
- return null;
2093
- }
2094
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2095
- "p",
2096
- {
2097
- ref,
2098
- id: FormMessageId,
2099
- className: cn("text-[0.8rem] font-medium text-destructive", className),
2100
- ...props,
2101
- children: body
2102
- }
2103
- );
2104
- });
2105
- FormMessageBase.displayName = "FormMessageBase";
2106
-
2107
2114
  // src/components/ui/ProgressBase.tsx
2108
- var React19 = __toESM(require("react"));
2115
+ var React18 = __toESM(require("react"));
2109
2116
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"));
2110
- var import_jsx_runtime26 = require("react/jsx-runtime");
2111
- var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, rightIcon, ...props }, ref) => {
2112
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
2113
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LabelBase_default, { className: "py-2", children: label }),
2114
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex items-center gap-2", children: [
2115
- leftIcon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex items-center justify-center", children: leftIcon }),
2116
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2117
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2118
+ var ProgressBase = React18.forwardRef(({ className, value, label, leftIcon, rightIcon, ...props }, ref) => {
2119
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
2120
+ label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(LabelBase_default, { className: "py-2", children: label }),
2121
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex items-center gap-2", children: [
2122
+ leftIcon && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center justify-center", children: leftIcon }),
2123
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2117
2124
  ProgressPrimitive.Root,
2118
2125
  {
2119
2126
  ref,
@@ -2123,7 +2130,7 @@ var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, righ
2123
2130
  ),
2124
2131
  value,
2125
2132
  ...props,
2126
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2133
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2127
2134
  ProgressPrimitive.Indicator,
2128
2135
  {
2129
2136
  className: "h-full w-full flex-1 bg-primary transition-all duration-500 ease-in-out",
@@ -2132,7 +2139,7 @@ var ProgressBase = React19.forwardRef(({ className, value, label, leftIcon, righ
2132
2139
  )
2133
2140
  }
2134
2141
  ),
2135
- rightIcon && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex items-center justify-center", children: rightIcon })
2142
+ rightIcon && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center justify-center", children: rightIcon })
2136
2143
  ] })
2137
2144
  ] });
2138
2145
  });
@@ -2143,9 +2150,9 @@ var ProgressSegmentsBase = ({
2143
2150
  value
2144
2151
  }) => {
2145
2152
  const filled = Math.round(value / 100 * segments);
2146
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
2147
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LabelBase_default, { className: "py-2", children: label }),
2148
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex gap-1 w-full", children: Array.from({ length: segments }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2153
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-1 w-full min-w-[150px]", children: [
2154
+ label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(LabelBase_default, { className: "py-2", children: label }),
2155
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex gap-1 w-full", children: Array.from({ length: segments }).map((_, idx) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2149
2156
  "div",
2150
2157
  {
2151
2158
  className: cn(
@@ -2157,7 +2164,7 @@ var ProgressSegmentsBase = ({
2157
2164
  )) })
2158
2165
  ] });
2159
2166
  };
2160
- var ArrowRightIcon = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2167
+ var ArrowRightIcon = () => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2161
2168
  "svg",
2162
2169
  {
2163
2170
  className: "w-6 h-6 text-zinc-400 transition-transform duration-300 group-hover:translate-x-1",
@@ -2166,7 +2173,7 @@ var ArrowRightIcon = () => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2166
2173
  strokeWidth: 2,
2167
2174
  viewBox: "0 0 24 24",
2168
2175
  xmlns: "http://www.w3.org/2000/svg",
2169
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" })
2176
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" })
2170
2177
  }
2171
2178
  );
2172
2179
  var ProgressPanelsBase = ({
@@ -2174,13 +2181,13 @@ var ProgressPanelsBase = ({
2174
2181
  steps,
2175
2182
  currentStep
2176
2183
  }) => {
2177
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-1 w-full", children: [
2178
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(LabelBase_default, { className: "py-2", children: label }),
2179
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex w-full gap-1 rounded-lg overflow-hidden", children: steps.map((step, idx) => {
2184
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-1 w-full", children: [
2185
+ label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(LabelBase_default, { className: "py-2", children: label }),
2186
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex w-full gap-1 rounded-lg overflow-hidden", children: steps.map((step, idx) => {
2180
2187
  const isActive = idx === currentStep;
2181
2188
  const isLast = idx === steps.length - 1;
2182
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(React19.Fragment, { children: [
2183
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2189
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(React18.Fragment, { children: [
2190
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2184
2191
  "div",
2185
2192
  {
2186
2193
  className: cn(
@@ -2191,12 +2198,12 @@ var ProgressPanelsBase = ({
2191
2198
  ),
2192
2199
  style: { flex: "1 1 0" },
2193
2200
  children: [
2194
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "truncate", children: step }),
2195
- isActive && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute bottom-0 left-0 h-1 w-full animate-pulse rounded-b-lg" })
2201
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "truncate", children: step }),
2202
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute bottom-0 left-0 h-1 w-full animate-pulse rounded-b-lg" })
2196
2203
  ]
2197
2204
  }
2198
2205
  ),
2199
- !isLast && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex items-center px-2 group", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(ArrowRightIcon, {}) })
2206
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-center px-2 group", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(ArrowRightIcon, {}) })
2200
2207
  ] }, idx);
2201
2208
  }) })
2202
2209
  ] });
@@ -2206,11 +2213,11 @@ var ProgressCirclesBase = ({
2206
2213
  steps,
2207
2214
  currentStep
2208
2215
  }) => {
2209
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
2210
- label && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("label", { className: "py-2 text-base font-semibold text-gray-700 dark:text-gray-300", children: label }),
2211
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "relative flex items-center justify-between w-full", children: [
2212
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "absolute top-5 left-0 w-full h-1 bg-zinc-200 dark:bg-zinc-700" }),
2213
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2216
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
2217
+ label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("label", { className: "py-2 text-base font-semibold text-gray-700 dark:text-gray-300", children: label }),
2218
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "relative flex items-center justify-between w-full", children: [
2219
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute top-5 left-0 w-full h-1 bg-zinc-200 dark:bg-zinc-700" }),
2220
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2214
2221
  "div",
2215
2222
  {
2216
2223
  className: "absolute top-5 left-0 h-1 bg-primary transition-all duration-300",
@@ -2221,13 +2228,13 @@ var ProgressCirclesBase = ({
2221
2228
  ),
2222
2229
  steps.map((step, idx) => {
2223
2230
  const isActive = idx <= currentStep;
2224
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2231
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2225
2232
  "div",
2226
2233
  {
2227
2234
  className: "relative flex flex-col items-center w-10",
2228
2235
  style: { zIndex: isActive ? 10 : 1 },
2229
2236
  children: [
2230
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2237
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2231
2238
  "div",
2232
2239
  {
2233
2240
  className: cn(
@@ -2237,7 +2244,7 @@ var ProgressCirclesBase = ({
2237
2244
  children: idx + 1
2238
2245
  }
2239
2246
  ),
2240
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-xs text-center font-medium mt-1 max-w-[80px] break-words", children: step })
2247
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-xs text-center font-medium mt-1 max-w-[80px] break-words", children: step })
2241
2248
  ]
2242
2249
  },
2243
2250
  idx
@@ -2248,14 +2255,14 @@ var ProgressCirclesBase = ({
2248
2255
  };
2249
2256
 
2250
2257
  // src/components/ui/SeparatorBase.tsx
2251
- var React20 = __toESM(require("react"));
2258
+ var React19 = __toESM(require("react"));
2252
2259
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"));
2253
2260
  var import_framer_motion6 = require("framer-motion");
2254
- var import_jsx_runtime27 = require("react/jsx-runtime");
2255
- var SeparatorBase = React20.forwardRef(
2261
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2262
+ var SeparatorBase = React19.forwardRef(
2256
2263
  ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => {
2257
2264
  const isHorizontal = orientation === "horizontal";
2258
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2265
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2259
2266
  SeparatorPrimitive.Root,
2260
2267
  {
2261
2268
  ref,
@@ -2263,7 +2270,7 @@ var SeparatorBase = React20.forwardRef(
2263
2270
  orientation,
2264
2271
  asChild: true,
2265
2272
  ...props,
2266
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2273
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2267
2274
  import_framer_motion6.motion.div,
2268
2275
  {
2269
2276
  className: cn(
@@ -2283,16 +2290,16 @@ var SeparatorBase = React20.forwardRef(
2283
2290
  SeparatorBase.displayName = SeparatorPrimitive.Root.displayName;
2284
2291
 
2285
2292
  // src/components/ui/SheetBase.tsx
2286
- var React21 = __toESM(require("react"));
2293
+ var React20 = __toESM(require("react"));
2287
2294
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"));
2288
2295
  var import_class_variance_authority2 = require("class-variance-authority");
2289
2296
  var import_phosphor_react13 = require("phosphor-react");
2290
- var import_jsx_runtime28 = require("react/jsx-runtime");
2297
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2291
2298
  var SheetBase = SheetPrimitive.Root;
2292
2299
  var SheetTriggerBase = SheetPrimitive.Trigger;
2293
2300
  var SheetCloseBase = SheetPrimitive.Close;
2294
2301
  var SheetPortalBase = SheetPrimitive.Portal;
2295
- var SheetOverlayBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2302
+ var SheetOverlayBase = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2296
2303
  SheetPrimitive.Overlay,
2297
2304
  {
2298
2305
  className: cn(
@@ -2320,18 +2327,18 @@ var sheetVariants = (0, import_class_variance_authority2.cva)(
2320
2327
  }
2321
2328
  }
2322
2329
  );
2323
- var SheetContentBase = React21.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(SheetPortalBase, { children: [
2324
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(SheetOverlayBase, {}),
2325
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
2330
+ var SheetContentBase = React20.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(SheetPortalBase, { children: [
2331
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SheetOverlayBase, {}),
2332
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
2326
2333
  SheetPrimitive.Content,
2327
2334
  {
2328
2335
  ref,
2329
2336
  className: cn(sheetVariants({ side }), className),
2330
2337
  ...props,
2331
2338
  children: [
2332
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(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: [
2333
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_phosphor_react13.X, { className: "h-4 w-4" }),
2334
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "sr-only", children: "Close" })
2339
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(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: [
2340
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_phosphor_react13.X, { className: "h-4 w-4" }),
2341
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "sr-only", children: "Close" })
2335
2342
  ] }),
2336
2343
  children
2337
2344
  ]
@@ -2342,7 +2349,7 @@ SheetContentBase.displayName = SheetPrimitive.Content.displayName;
2342
2349
  var SheetHeaderBase = ({
2343
2350
  className,
2344
2351
  ...props
2345
- }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2352
+ }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2346
2353
  "div",
2347
2354
  {
2348
2355
  className: cn(
@@ -2356,7 +2363,7 @@ SheetHeaderBase.displayName = "SheetHeaderBase";
2356
2363
  var SheetFooterBase = ({
2357
2364
  className,
2358
2365
  ...props
2359
- }) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2366
+ }) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2360
2367
  "div",
2361
2368
  {
2362
2369
  className: cn(
@@ -2367,7 +2374,7 @@ var SheetFooterBase = ({
2367
2374
  }
2368
2375
  );
2369
2376
  SheetFooterBase.displayName = "SheetFooterBase";
2370
- var SheetTitleBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2377
+ var SheetTitleBase = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2371
2378
  SheetPrimitive.Title,
2372
2379
  {
2373
2380
  ref,
@@ -2376,7 +2383,7 @@ var SheetTitleBase = React21.forwardRef(({ className, ...props }, ref) => /* @__
2376
2383
  }
2377
2384
  ));
2378
2385
  SheetTitleBase.displayName = SheetPrimitive.Title.displayName;
2379
- var SheetDescriptionBase = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2386
+ var SheetDescriptionBase = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2380
2387
  SheetPrimitive.Description,
2381
2388
  {
2382
2389
  ref,
@@ -2387,17 +2394,17 @@ var SheetDescriptionBase = React21.forwardRef(({ className, ...props }, ref) =>
2387
2394
  SheetDescriptionBase.displayName = SheetPrimitive.Description.displayName;
2388
2395
 
2389
2396
  // src/components/ui/SidebarBase.tsx
2390
- var React23 = __toESM(require("react"));
2391
- var import_react_slot4 = require("@radix-ui/react-slot");
2397
+ var React22 = __toESM(require("react"));
2398
+ var import_react_slot3 = require("@radix-ui/react-slot");
2392
2399
  var import_class_variance_authority3 = require("class-variance-authority");
2393
2400
 
2394
2401
  // src/components/ui/SkeletonBase.tsx
2395
- var import_jsx_runtime29 = require("react/jsx-runtime");
2402
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2396
2403
  function SkeletonBase({
2397
2404
  className,
2398
2405
  ...props
2399
2406
  }) {
2400
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2407
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2401
2408
  "div",
2402
2409
  {
2403
2410
  className: cn("animate-pulse bg-primary/10", className),
@@ -2410,13 +2417,13 @@ function SkeletonBase({
2410
2417
  var import_phosphor_react14 = require("phosphor-react");
2411
2418
 
2412
2419
  // src/components/ui/TooltipBase.tsx
2413
- var React22 = __toESM(require("react"));
2420
+ var React21 = __toESM(require("react"));
2414
2421
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
2415
- var import_jsx_runtime30 = require("react/jsx-runtime");
2422
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2416
2423
  var TooltipProviderBase = TooltipPrimitive.Provider;
2417
2424
  var TooltipBase = TooltipPrimitive.Root;
2418
2425
  var TooltipTriggerBase = TooltipPrimitive.Trigger;
2419
- var TooltipContentBase = React22.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2426
+ var TooltipContentBase = React21.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2420
2427
  TooltipPrimitive.Content,
2421
2428
  {
2422
2429
  ref,
@@ -2431,16 +2438,16 @@ var TooltipContentBase = React22.forwardRef(({ className, sideOffset = 4, ...pro
2431
2438
  TooltipContentBase.displayName = TooltipPrimitive.Content.displayName;
2432
2439
 
2433
2440
  // src/components/ui/SidebarBase.tsx
2434
- var import_jsx_runtime31 = require("react/jsx-runtime");
2441
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2435
2442
  var SIDEBAR_COOKIE_NAME = "sidebar:state";
2436
2443
  var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
2437
2444
  var SIDEBAR_WIDTH = "16rem";
2438
2445
  var SIDEBAR_WIDTH_MOBILE = "18rem";
2439
2446
  var SIDEBAR_WIDTH_ICON = "3rem";
2440
2447
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
2441
- var SidebarContext = React23.createContext(null);
2448
+ var SidebarContext = React22.createContext(null);
2442
2449
  function UseSideBarBase() {
2443
- const context = React23.useContext(SidebarContext);
2450
+ const context = React22.useContext(SidebarContext);
2444
2451
  if (!context) {
2445
2452
  throw new Error(
2446
2453
  "UseSideBarBase must be used within a SidebarProviderBase."
@@ -2448,7 +2455,7 @@ function UseSideBarBase() {
2448
2455
  }
2449
2456
  return context;
2450
2457
  }
2451
- var SidebarProviderBase = React23.forwardRef(
2458
+ var SidebarProviderBase = React22.forwardRef(
2452
2459
  ({
2453
2460
  defaultOpen = true,
2454
2461
  open: openProp,
@@ -2459,10 +2466,10 @@ var SidebarProviderBase = React23.forwardRef(
2459
2466
  ...props
2460
2467
  }, ref) => {
2461
2468
  const isMobile = useIsMobile();
2462
- const [openMobile, setOpenMobile] = React23.useState(false);
2463
- const [_open, _setOpen] = React23.useState(defaultOpen);
2469
+ const [openMobile, setOpenMobile] = React22.useState(false);
2470
+ const [_open, _setOpen] = React22.useState(defaultOpen);
2464
2471
  const open = openProp ?? _open;
2465
- const setOpen = React23.useCallback(
2472
+ const setOpen = React22.useCallback(
2466
2473
  (value) => {
2467
2474
  const openState = typeof value === "function" ? value(open) : value;
2468
2475
  if (setOpenProp) {
@@ -2474,10 +2481,10 @@ var SidebarProviderBase = React23.forwardRef(
2474
2481
  },
2475
2482
  [setOpenProp, open]
2476
2483
  );
2477
- const toggleSidebar = React23.useCallback(() => {
2484
+ const toggleSidebar = React22.useCallback(() => {
2478
2485
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
2479
2486
  }, [isMobile, setOpen, setOpenMobile]);
2480
- React23.useEffect(() => {
2487
+ React22.useEffect(() => {
2481
2488
  const handleKeyDown = (event) => {
2482
2489
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
2483
2490
  event.preventDefault();
@@ -2488,7 +2495,7 @@ var SidebarProviderBase = React23.forwardRef(
2488
2495
  return () => window.removeEventListener("keydown", handleKeyDown);
2489
2496
  }, [toggleSidebar]);
2490
2497
  const state = open ? "expanded" : "collapsed";
2491
- const contextValue = React23.useMemo(
2498
+ const contextValue = React22.useMemo(
2492
2499
  () => ({
2493
2500
  state,
2494
2501
  open,
@@ -2500,7 +2507,7 @@ var SidebarProviderBase = React23.forwardRef(
2500
2507
  }),
2501
2508
  [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
2502
2509
  );
2503
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipProviderBase, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2510
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TooltipProviderBase, { delayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2504
2511
  "div",
2505
2512
  {
2506
2513
  style: {
@@ -2520,7 +2527,7 @@ var SidebarProviderBase = React23.forwardRef(
2520
2527
  }
2521
2528
  );
2522
2529
  SidebarProviderBase.displayName = "SidebarProviderBase";
2523
- var SidebarBase = React23.forwardRef(
2530
+ var SidebarBase = React22.forwardRef(
2524
2531
  ({
2525
2532
  side = "left",
2526
2533
  variant = "sidebar",
@@ -2531,7 +2538,7 @@ var SidebarBase = React23.forwardRef(
2531
2538
  }, ref) => {
2532
2539
  const { isMobile, state, openMobile, setOpenMobile } = UseSideBarBase();
2533
2540
  if (collapsible === "none") {
2534
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2541
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2535
2542
  "div",
2536
2543
  {
2537
2544
  className: cn(
@@ -2545,7 +2552,7 @@ var SidebarBase = React23.forwardRef(
2545
2552
  );
2546
2553
  }
2547
2554
  if (isMobile) {
2548
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(SheetBase, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2555
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(SheetBase, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2549
2556
  SheetContentBase,
2550
2557
  {
2551
2558
  "data-sidebar": "sidebar",
@@ -2555,11 +2562,11 @@ var SidebarBase = React23.forwardRef(
2555
2562
  "--sidebar-width": SIDEBAR_WIDTH_MOBILE
2556
2563
  },
2557
2564
  side,
2558
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex h-full w-full flex-col", children })
2565
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex h-full w-full flex-col", children })
2559
2566
  }
2560
2567
  ) });
2561
2568
  }
2562
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2569
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
2563
2570
  "div",
2564
2571
  {
2565
2572
  ref,
@@ -2569,7 +2576,7 @@ var SidebarBase = React23.forwardRef(
2569
2576
  "data-variant": variant,
2570
2577
  "data-side": side,
2571
2578
  children: [
2572
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2579
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2573
2580
  "div",
2574
2581
  {
2575
2582
  className: cn(
@@ -2580,7 +2587,7 @@ var SidebarBase = React23.forwardRef(
2580
2587
  )
2581
2588
  }
2582
2589
  ),
2583
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2590
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2584
2591
  "div",
2585
2592
  {
2586
2593
  className: cn(
@@ -2591,7 +2598,7 @@ var SidebarBase = React23.forwardRef(
2591
2598
  className
2592
2599
  ),
2593
2600
  ...props,
2594
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2601
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2595
2602
  "div",
2596
2603
  {
2597
2604
  "data-sidebar": "sidebar",
@@ -2607,9 +2614,9 @@ var SidebarBase = React23.forwardRef(
2607
2614
  }
2608
2615
  );
2609
2616
  SidebarBase.displayName = "SidebarBase";
2610
- var SidebarTriggerBase = React23.forwardRef(({ className, onClick, ...props }, ref) => {
2617
+ var SidebarTriggerBase = React22.forwardRef(({ className, onClick, ...props }, ref) => {
2611
2618
  const { toggleSidebar } = UseSideBarBase();
2612
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2619
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
2613
2620
  ButtonBase,
2614
2621
  {
2615
2622
  ref,
@@ -2623,16 +2630,16 @@ var SidebarTriggerBase = React23.forwardRef(({ className, onClick, ...props }, r
2623
2630
  },
2624
2631
  ...props,
2625
2632
  children: [
2626
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "sr-only", children: "Toggle SidebarBase" }),
2627
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_phosphor_react14.SidebarSimple, {})
2633
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "sr-only", children: "Toggle SidebarBase" }),
2634
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_phosphor_react14.SidebarSimple, {})
2628
2635
  ]
2629
2636
  }
2630
2637
  ) });
2631
2638
  });
2632
2639
  SidebarTriggerBase.displayName = "SidebarTriggerBase";
2633
- var SidebarRailBase = React23.forwardRef(({ className, ...props }, ref) => {
2640
+ var SidebarRailBase = React22.forwardRef(({ className, ...props }, ref) => {
2634
2641
  const { toggleSidebar } = UseSideBarBase();
2635
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2642
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2636
2643
  "button",
2637
2644
  {
2638
2645
  ref,
@@ -2655,8 +2662,8 @@ var SidebarRailBase = React23.forwardRef(({ className, ...props }, ref) => {
2655
2662
  );
2656
2663
  });
2657
2664
  SidebarRailBase.displayName = "SidebarRailBase";
2658
- var SidebarInsetBase = React23.forwardRef(({ className, ...props }, ref) => {
2659
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2665
+ var SidebarInsetBase = React22.forwardRef(({ className, ...props }, ref) => {
2666
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2660
2667
  "main",
2661
2668
  {
2662
2669
  ref,
@@ -2670,8 +2677,8 @@ var SidebarInsetBase = React23.forwardRef(({ className, ...props }, ref) => {
2670
2677
  );
2671
2678
  });
2672
2679
  SidebarInsetBase.displayName = "SidebarInsetBase";
2673
- var SidebarInputBase = React23.forwardRef(({ className, ...props }, ref) => {
2674
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2680
+ var SidebarInputBase = React22.forwardRef(({ className, ...props }, ref) => {
2681
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2675
2682
  InputBase,
2676
2683
  {
2677
2684
  ref,
@@ -2685,8 +2692,8 @@ var SidebarInputBase = React23.forwardRef(({ className, ...props }, ref) => {
2685
2692
  );
2686
2693
  });
2687
2694
  SidebarInputBase.displayName = "SidebarInputBase";
2688
- var SidebarHeaderBase = React23.forwardRef(({ className, ...props }, ref) => {
2689
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2695
+ var SidebarHeaderBase = React22.forwardRef(({ className, ...props }, ref) => {
2696
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2690
2697
  "div",
2691
2698
  {
2692
2699
  ref,
@@ -2697,8 +2704,8 @@ var SidebarHeaderBase = React23.forwardRef(({ className, ...props }, ref) => {
2697
2704
  );
2698
2705
  });
2699
2706
  SidebarHeaderBase.displayName = "SidebarHeaderBase";
2700
- var SidebarFooterBase = React23.forwardRef(({ className, ...props }, ref) => {
2701
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2707
+ var SidebarFooterBase = React22.forwardRef(({ className, ...props }, ref) => {
2708
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2702
2709
  "div",
2703
2710
  {
2704
2711
  ref,
@@ -2709,8 +2716,8 @@ var SidebarFooterBase = React23.forwardRef(({ className, ...props }, ref) => {
2709
2716
  );
2710
2717
  });
2711
2718
  SidebarFooterBase.displayName = "SidebarFooterBase";
2712
- var SidebarSeparatorBase = React23.forwardRef(({ className, ...props }, ref) => {
2713
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2719
+ var SidebarSeparatorBase = React22.forwardRef(({ className, ...props }, ref) => {
2720
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2714
2721
  SeparatorBase,
2715
2722
  {
2716
2723
  ref,
@@ -2721,8 +2728,8 @@ var SidebarSeparatorBase = React23.forwardRef(({ className, ...props }, ref) =>
2721
2728
  );
2722
2729
  });
2723
2730
  SidebarSeparatorBase.displayName = "SidebarSeparatorBase";
2724
- var SidebarContentBase = React23.forwardRef(({ className, ...props }, ref) => {
2725
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2731
+ var SidebarContentBase = React22.forwardRef(({ className, ...props }, ref) => {
2732
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2726
2733
  "div",
2727
2734
  {
2728
2735
  ref,
@@ -2736,8 +2743,8 @@ var SidebarContentBase = React23.forwardRef(({ className, ...props }, ref) => {
2736
2743
  );
2737
2744
  });
2738
2745
  SidebarContentBase.displayName = "SidebarContentBase";
2739
- var SidebarGroupBase = React23.forwardRef(({ className, ...props }, ref) => {
2740
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2746
+ var SidebarGroupBase = React22.forwardRef(({ className, ...props }, ref) => {
2747
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2741
2748
  "div",
2742
2749
  {
2743
2750
  ref,
@@ -2748,9 +2755,9 @@ var SidebarGroupBase = React23.forwardRef(({ className, ...props }, ref) => {
2748
2755
  );
2749
2756
  });
2750
2757
  SidebarGroupBase.displayName = "SidebarGroupBase";
2751
- var SidebarGroupLabelBase = React23.forwardRef(({ className, asChild = false, ...props }, ref) => {
2752
- const Comp = asChild ? import_react_slot4.Slot : "div";
2753
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2758
+ var SidebarGroupLabelBase = React22.forwardRef(({ className, asChild = false, ...props }, ref) => {
2759
+ const Comp = asChild ? import_react_slot3.Slot : "div";
2760
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2754
2761
  Comp,
2755
2762
  {
2756
2763
  ref,
@@ -2765,9 +2772,9 @@ var SidebarGroupLabelBase = React23.forwardRef(({ className, asChild = false, ..
2765
2772
  );
2766
2773
  });
2767
2774
  SidebarGroupLabelBase.displayName = "SidebarGroupLabelBase";
2768
- var SidebarGroupActionBase = React23.forwardRef(({ className, asChild = false, ...props }, ref) => {
2769
- const Comp = asChild ? import_react_slot4.Slot : "button";
2770
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2775
+ var SidebarGroupActionBase = React22.forwardRef(({ className, asChild = false, ...props }, ref) => {
2776
+ const Comp = asChild ? import_react_slot3.Slot : "button";
2777
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2771
2778
  Comp,
2772
2779
  {
2773
2780
  ref,
@@ -2784,7 +2791,7 @@ var SidebarGroupActionBase = React23.forwardRef(({ className, asChild = false, .
2784
2791
  );
2785
2792
  });
2786
2793
  SidebarGroupActionBase.displayName = "SidebarGroupActionBase";
2787
- var SidebarGroupContentBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2794
+ var SidebarGroupContentBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2788
2795
  "div",
2789
2796
  {
2790
2797
  ref,
@@ -2794,7 +2801,7 @@ var SidebarGroupContentBase = React23.forwardRef(({ className, ...props }, ref)
2794
2801
  }
2795
2802
  ));
2796
2803
  SidebarGroupContentBase.displayName = "SidebarGroupContentBase";
2797
- var SidebarMenuBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2804
+ var SidebarMenuBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2798
2805
  "ul",
2799
2806
  {
2800
2807
  ref,
@@ -2804,7 +2811,7 @@ var SidebarMenuBase = React23.forwardRef(({ className, ...props }, ref) => /* @_
2804
2811
  }
2805
2812
  ));
2806
2813
  SidebarMenuBase.displayName = "SidebarMenuBase";
2807
- var SidebarMenuItemBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2814
+ var SidebarMenuItemBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2808
2815
  "li",
2809
2816
  {
2810
2817
  ref,
@@ -2834,7 +2841,7 @@ var sidebarMenuButtonVariants = (0, import_class_variance_authority3.cva)(
2834
2841
  }
2835
2842
  }
2836
2843
  );
2837
- var SidebarMenuButtonBase = React23.forwardRef(
2844
+ var SidebarMenuButtonBase = React22.forwardRef(
2838
2845
  ({
2839
2846
  asChild = false,
2840
2847
  isActive = false,
@@ -2844,9 +2851,9 @@ var SidebarMenuButtonBase = React23.forwardRef(
2844
2851
  className,
2845
2852
  ...props
2846
2853
  }, ref) => {
2847
- const Comp = asChild ? import_react_slot4.Slot : "button";
2854
+ const Comp = asChild ? import_react_slot3.Slot : "button";
2848
2855
  const { isMobile, state } = UseSideBarBase();
2849
- const button = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2856
+ const button = /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2850
2857
  Comp,
2851
2858
  {
2852
2859
  ref,
@@ -2865,9 +2872,9 @@ var SidebarMenuButtonBase = React23.forwardRef(
2865
2872
  children: tooltip
2866
2873
  };
2867
2874
  }
2868
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(TooltipBase, { children: [
2869
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(TooltipTriggerBase, { asChild: true, children: button }),
2870
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2875
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(TooltipBase, { children: [
2876
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(TooltipTriggerBase, { asChild: true, children: button }),
2877
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2871
2878
  TooltipContentBase,
2872
2879
  {
2873
2880
  side: "right",
@@ -2880,9 +2887,9 @@ var SidebarMenuButtonBase = React23.forwardRef(
2880
2887
  }
2881
2888
  );
2882
2889
  SidebarMenuButtonBase.displayName = "SidebarMenuButtonBase";
2883
- var SidebarMenuActionBase = React23.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
2884
- const Comp = asChild ? import_react_slot4.Slot : "button";
2885
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2890
+ var SidebarMenuActionBase = React22.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
2891
+ const Comp = asChild ? import_react_slot3.Slot : "button";
2892
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2886
2893
  Comp,
2887
2894
  {
2888
2895
  ref,
@@ -2903,7 +2910,7 @@ var SidebarMenuActionBase = React23.forwardRef(({ className, asChild = false, sh
2903
2910
  );
2904
2911
  });
2905
2912
  SidebarMenuActionBase.displayName = "SidebarMenuActionBase";
2906
- var SidebarMenuBadgeBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2913
+ var SidebarMenuBadgeBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2907
2914
  "div",
2908
2915
  {
2909
2916
  ref,
@@ -2921,11 +2928,11 @@ var SidebarMenuBadgeBase = React23.forwardRef(({ className, ...props }, ref) =>
2921
2928
  }
2922
2929
  ));
2923
2930
  SidebarMenuBadgeBase.displayName = "SidebarMenuBadgeBase";
2924
- var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false, ...props }, ref) => {
2925
- const width = React23.useMemo(() => {
2931
+ var SidebarMenuSkeletonBase = React22.forwardRef(({ className, showIcon = false, ...props }, ref) => {
2932
+ const width = React22.useMemo(() => {
2926
2933
  return `${Math.floor(Math.random() * 40) + 50}%`;
2927
2934
  }, []);
2928
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
2935
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
2929
2936
  "div",
2930
2937
  {
2931
2938
  ref,
@@ -2933,14 +2940,14 @@ var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false,
2933
2940
  className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
2934
2941
  ...props,
2935
2942
  children: [
2936
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2943
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2937
2944
  SkeletonBase,
2938
2945
  {
2939
2946
  className: "size-4 rounded-md",
2940
2947
  "data-sidebar": "menu-skeleton-icon"
2941
2948
  }
2942
2949
  ),
2943
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2950
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2944
2951
  SkeletonBase,
2945
2952
  {
2946
2953
  className: "h-4 max-w-[--skeleton-width] flex-1",
@@ -2955,7 +2962,7 @@ var SidebarMenuSkeletonBase = React23.forwardRef(({ className, showIcon = false,
2955
2962
  );
2956
2963
  });
2957
2964
  SidebarMenuSkeletonBase.displayName = "SidebarMenuSkeletonBase";
2958
- var SidebarMenuSubBase = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2965
+ var SidebarMenuSubBase = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2959
2966
  "ul",
2960
2967
  {
2961
2968
  ref,
@@ -2969,11 +2976,11 @@ var SidebarMenuSubBase = React23.forwardRef(({ className, ...props }, ref) => /*
2969
2976
  }
2970
2977
  ));
2971
2978
  SidebarMenuSubBase.displayName = "SidebarMenuSubBase";
2972
- var SidebarMenuSubItemBase = React23.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("li", { ref, ...props }));
2979
+ var SidebarMenuSubItemBase = React22.forwardRef(({ ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", { ref, ...props }));
2973
2980
  SidebarMenuSubItemBase.displayName = "SidebarMenuSubItemBase";
2974
- var SidebarMenuSubButtonBase = React23.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
2975
- const Comp = asChild ? import_react_slot4.Slot : "a";
2976
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2981
+ var SidebarMenuSubButtonBase = React22.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
2982
+ const Comp = asChild ? import_react_slot3.Slot : "a";
2983
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2977
2984
  Comp,
2978
2985
  {
2979
2986
  ref,
@@ -2995,10 +3002,10 @@ var SidebarMenuSubButtonBase = React23.forwardRef(({ asChild = false, size = "md
2995
3002
  SidebarMenuSubButtonBase.displayName = "SidebarMenuSubButtonBase";
2996
3003
 
2997
3004
  // src/components/ui/SliderBase.tsx
2998
- var React24 = __toESM(require("react"));
3005
+ var React23 = __toESM(require("react"));
2999
3006
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"));
3000
- var import_jsx_runtime32 = require("react/jsx-runtime");
3001
- var SlideBase = React24.forwardRef(
3007
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3008
+ var SlideBase = React23.forwardRef(
3002
3009
  ({
3003
3010
  className,
3004
3011
  orientation = "horizontal",
@@ -3008,7 +3015,7 @@ var SlideBase = React24.forwardRef(
3008
3015
  ...props
3009
3016
  }, ref) => {
3010
3017
  const isVertical = orientation === "vertical";
3011
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3018
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3012
3019
  "div",
3013
3020
  {
3014
3021
  className: cn(
@@ -3016,8 +3023,8 @@ var SlideBase = React24.forwardRef(
3016
3023
  isVertical ? "h-full " : "w-full"
3017
3024
  ),
3018
3025
  children: [
3019
- label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(LabelBase_default, { className: "py-2", children: label }),
3020
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3026
+ label && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LabelBase_default, { className: "py-2", children: label }),
3027
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3021
3028
  "div",
3022
3029
  {
3023
3030
  className: cn(
@@ -3025,8 +3032,8 @@ var SlideBase = React24.forwardRef(
3025
3032
  isVertical ? "flex-col h-full" : "flex-row items-center w-full"
3026
3033
  ),
3027
3034
  children: [
3028
- leftIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-center justify-center", children: leftIcon }),
3029
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
3035
+ leftIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center justify-center", children: leftIcon }),
3036
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3030
3037
  SliderPrimitive.Root,
3031
3038
  {
3032
3039
  ref,
@@ -3038,14 +3045,14 @@ var SlideBase = React24.forwardRef(
3038
3045
  ),
3039
3046
  ...props,
3040
3047
  children: [
3041
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3048
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3042
3049
  SliderPrimitive.Track,
3043
3050
  {
3044
3051
  className: cn(
3045
3052
  "relative overflow-hidden bg-primary/20 rounded-full",
3046
3053
  isVertical ? "w-1.5 h-full" : "h-1.5 w-full"
3047
3054
  ),
3048
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3055
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3049
3056
  SliderPrimitive.Range,
3050
3057
  {
3051
3058
  className: cn(
@@ -3056,7 +3063,7 @@ var SlideBase = React24.forwardRef(
3056
3063
  )
3057
3064
  }
3058
3065
  ),
3059
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3066
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3060
3067
  SliderPrimitive.Thumb,
3061
3068
  {
3062
3069
  className: cn(
@@ -3069,7 +3076,7 @@ var SlideBase = React24.forwardRef(
3069
3076
  ]
3070
3077
  }
3071
3078
  ),
3072
- rightIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "flex items-center justify-center", children: rightIcon })
3079
+ rightIcon && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center justify-center", children: rightIcon })
3073
3080
  ]
3074
3081
  }
3075
3082
  )
@@ -3083,10 +3090,10 @@ SlideBase.displayName = "SlideBase";
3083
3090
  // src/components/ui/SonnerBase.tsx
3084
3091
  var import_phosphor_react15 = require("phosphor-react");
3085
3092
  var import_sonner = require("sonner");
3086
- var import_jsx_runtime33 = require("react/jsx-runtime");
3093
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3087
3094
  var iconBaseClass = "w-5 h-auto";
3088
- var Toaster = ({ ...props }) => {
3089
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3095
+ var Toaster = ({ testId, ...props }) => {
3096
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3090
3097
  import_sonner.Toaster,
3091
3098
  {
3092
3099
  className: "toaster group",
@@ -3101,7 +3108,6 @@ var Toaster = ({ ...props }) => {
3101
3108
  border-l-4
3102
3109
  border-neutral-200
3103
3110
  flex items-center gap-3
3104
-
3105
3111
  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
3106
3112
  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
3107
3113
  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
@@ -3127,40 +3133,40 @@ var Toaster = ({ ...props }) => {
3127
3133
  `
3128
3134
  }
3129
3135
  },
3136
+ "data-testid": testId,
3130
3137
  ...props
3131
3138
  }
3132
3139
  );
3133
3140
  };
3134
3141
  var toast = {
3135
3142
  success: (message) => import_sonner.toast.success(message, {
3136
- icon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_phosphor_react15.CheckCircle, { className: `${iconBaseClass} text-green-600`, weight: "fill" })
3143
+ icon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_phosphor_react15.CheckCircle, { className: `${iconBaseClass} text-green-600`, weight: "fill" }),
3144
+ className: "sonner-success"
3137
3145
  }),
3138
3146
  error: (message) => import_sonner.toast.error(message, {
3139
- icon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_phosphor_react15.XCircle, { className: `${iconBaseClass} text-red-600`, weight: "fill" })
3147
+ icon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_phosphor_react15.XCircle, { className: `${iconBaseClass} text-red-600`, weight: "fill" }),
3148
+ className: "sonner-error"
3140
3149
  }),
3141
3150
  warning: (message) => import_sonner.toast.warning(message, {
3142
- icon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_phosphor_react15.Warning, { className: `${iconBaseClass} text-yellow-600`, weight: "fill" })
3151
+ icon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_phosphor_react15.Warning, { className: `${iconBaseClass} text-yellow-600`, weight: "fill" }),
3152
+ className: "sonner-warning"
3143
3153
  }),
3144
3154
  info: (message) => import_sonner.toast.info(message, {
3145
- icon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_phosphor_react15.Info, { className: `${iconBaseClass} text-blue-600`, weight: "fill" })
3155
+ icon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_phosphor_react15.Info, { className: `${iconBaseClass} text-blue-600`, weight: "fill" }),
3156
+ className: "sonner-info"
3146
3157
  }),
3147
3158
  loading: (message) => (0, import_sonner.toast)(message, {
3148
- icon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3149
- import_phosphor_react15.Spinner,
3150
- {
3151
- className: `${iconBaseClass} animate-spin text-neutral-500`,
3152
- weight: "fill"
3153
- }
3154
- )
3159
+ icon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_phosphor_react15.Spinner, { className: `${iconBaseClass} animate-spin text-neutral-500`, weight: "fill" }),
3160
+ className: "sonner-loading"
3155
3161
  })
3156
3162
  };
3157
3163
 
3158
3164
  // src/components/ui/SwitchBase.tsx
3159
- var React25 = __toESM(require("react"));
3165
+ var React24 = __toESM(require("react"));
3160
3166
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"));
3161
- var import_jsx_runtime34 = require("react/jsx-runtime");
3162
- var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
3163
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3167
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3168
+ var SwitchBase = React24.forwardRef(({ className, testid: dataTestId = "switch-base", ...props }, ref) => {
3169
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3164
3170
  SwitchPrimitives.Root,
3165
3171
  {
3166
3172
  ...props,
@@ -3169,7 +3175,8 @@ var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
3169
3175
  "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",
3170
3176
  className
3171
3177
  ),
3172
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3178
+ "data-testid": dataTestId,
3179
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3173
3180
  SwitchPrimitives.Thumb,
3174
3181
  {
3175
3182
  className: cn(
@@ -3187,9 +3194,9 @@ var SwitchBase = React25.forwardRef(({ className, ...props }, ref) => {
3187
3194
  SwitchBase.displayName = SwitchPrimitives.Root.displayName;
3188
3195
 
3189
3196
  // src/components/ui/TableBase.tsx
3190
- var React26 = __toESM(require("react"));
3191
- var import_jsx_runtime35 = require("react/jsx-runtime");
3192
- var TableBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3197
+ var React25 = __toESM(require("react"));
3198
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3199
+ var TableBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3193
3200
  "table",
3194
3201
  {
3195
3202
  ref,
@@ -3198,9 +3205,9 @@ var TableBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE_
3198
3205
  }
3199
3206
  ) }));
3200
3207
  TableBase.displayName = "TableBase";
3201
- var TableHeaderBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
3208
+ var TableHeaderBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("thead", { ref, className: cn("[&_tr]:border-b", className), ...props }));
3202
3209
  TableHeaderBase.displayName = "TableHeaderBase";
3203
- var TableBodyBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3210
+ var TableBodyBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3204
3211
  "tbody",
3205
3212
  {
3206
3213
  ref,
@@ -3209,7 +3216,7 @@ var TableBodyBase = React26.forwardRef(({ className, ...props }, ref) => /* @__P
3209
3216
  }
3210
3217
  ));
3211
3218
  TableBodyBase.displayName = "TableBodyBase";
3212
- var TableFooterBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3219
+ var TableFooterBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3213
3220
  "tfoot",
3214
3221
  {
3215
3222
  ref,
@@ -3221,7 +3228,7 @@ var TableFooterBase = React26.forwardRef(({ className, ...props }, ref) => /* @_
3221
3228
  }
3222
3229
  ));
3223
3230
  TableFooterBase.displayName = "TableFooterBase";
3224
- var TableRowBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3231
+ var TableRowBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3225
3232
  "tr",
3226
3233
  {
3227
3234
  ref,
@@ -3233,7 +3240,7 @@ var TableRowBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PU
3233
3240
  }
3234
3241
  ));
3235
3242
  TableRowBase.displayName = "TableRowBase";
3236
- var TableHeadBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3243
+ var TableHeadBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3237
3244
  "th",
3238
3245
  {
3239
3246
  ref,
@@ -3245,7 +3252,7 @@ var TableHeadBase = React26.forwardRef(({ className, ...props }, ref) => /* @__P
3245
3252
  }
3246
3253
  ));
3247
3254
  TableHeadBase.displayName = "TableHeadBase";
3248
- var TableCellBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3255
+ var TableCellBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3249
3256
  "td",
3250
3257
  {
3251
3258
  ref,
@@ -3257,7 +3264,7 @@ var TableCellBase = React26.forwardRef(({ className, ...props }, ref) => /* @__P
3257
3264
  }
3258
3265
  ));
3259
3266
  TableCellBase.displayName = "TableCellBase";
3260
- var TableCaptionBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3267
+ var TableCaptionBase = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3261
3268
  "caption",
3262
3269
  {
3263
3270
  ref,
@@ -3268,11 +3275,11 @@ var TableCaptionBase = React26.forwardRef(({ className, ...props }, ref) => /* @
3268
3275
  TableCaptionBase.displayName = "TableCaptionBase";
3269
3276
 
3270
3277
  // src/components/ui/TabsBase.tsx
3271
- var React27 = __toESM(require("react"));
3278
+ var React26 = __toESM(require("react"));
3272
3279
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
3273
- var import_jsx_runtime36 = require("react/jsx-runtime");
3280
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3274
3281
  var TabsBase = TabsPrimitive.Root;
3275
- var TabsListBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3282
+ var TabsListBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3276
3283
  TabsPrimitive.List,
3277
3284
  {
3278
3285
  ref,
@@ -3284,7 +3291,7 @@ var TabsListBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PU
3284
3291
  }
3285
3292
  ));
3286
3293
  TabsListBase.displayName = TabsPrimitive.List.displayName;
3287
- var TabsTriggerBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3294
+ var TabsTriggerBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3288
3295
  TabsPrimitive.Trigger,
3289
3296
  {
3290
3297
  ref,
@@ -3302,7 +3309,7 @@ var TabsTriggerBase = React27.forwardRef(({ className, ...props }, ref) => /* @_
3302
3309
  ...props
3303
3310
  }
3304
3311
  ));
3305
- var TabsContentBase = React27.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3312
+ var TabsContentBase = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3306
3313
  TabsPrimitive.Content,
3307
3314
  {
3308
3315
  ref,
@@ -3317,10 +3324,10 @@ var TabsContentBase = React27.forwardRef(({ className, ...props }, ref) => /* @_
3317
3324
  TabsContentBase.displayName = TabsPrimitive.Content.displayName;
3318
3325
 
3319
3326
  // src/components/ui/TextAreaBase.tsx
3320
- var React28 = __toESM(require("react"));
3321
- var import_jsx_runtime37 = require("react/jsx-runtime");
3322
- var TextAreaBase = React28.forwardRef(({ className, ...props }, ref) => {
3323
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3327
+ var React27 = __toESM(require("react"));
3328
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3329
+ var TextAreaBase = React27.forwardRef(({ className, ...props }, ref) => {
3330
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3324
3331
  "textarea",
3325
3332
  {
3326
3333
  className: cn(
@@ -3454,165 +3461,3 @@ function buildFilterSummary(filter, availableFilters) {
3454
3461
  }
3455
3462
  return `${foundFilter.filterName} ${foundCondition.conditionName} '${value}'`;
3456
3463
  }
3457
- // Annotate the CommonJS export names for ESM import in node:
3458
- 0 && (module.exports = {
3459
- AlertDialogActionBase,
3460
- AlertDialogBase,
3461
- AlertDialogCancelBase,
3462
- AlertDialogContentBase,
3463
- AlertDialogDescriptionBase,
3464
- AlertDialogFooterBase,
3465
- AlertDialogHeaderBase,
3466
- AlertDialogOverlayBase,
3467
- AlertDialogPortalBase,
3468
- AlertDialogTitleBase,
3469
- AlertDialogTriggerBase,
3470
- AvatarBase,
3471
- AvatarFallbackBase,
3472
- AvatarImageBase,
3473
- ButtonBase,
3474
- ButtonGroupBase,
3475
- CalendarBase,
3476
- CardBase,
3477
- CardContentBase,
3478
- CardDescriptionBase,
3479
- CardFooterBase,
3480
- CardHeaderBase,
3481
- CardTitleBase,
3482
- CheckboxBase,
3483
- Combobox,
3484
- CommandBase,
3485
- CommandDialogBase,
3486
- CommandEmptyBase,
3487
- CommandGroupBase,
3488
- CommandInputBase,
3489
- CommandItemBase,
3490
- CommandListBase,
3491
- CommandSeparatorBase,
3492
- CommandShortcutBase,
3493
- DateTimePicker,
3494
- DialogBase,
3495
- DialogCloseBase,
3496
- DialogContentBase,
3497
- DialogDescriptionBase,
3498
- DialogFooterBase,
3499
- DialogHeaderBase,
3500
- DialogOverlayBase,
3501
- DialogPortalBase,
3502
- DialogTitleBase,
3503
- DialogTriggerBase,
3504
- DropDownMenuBase,
3505
- DropDownMenuCheckboxItemBase,
3506
- DropDownMenuContentBase,
3507
- DropDownMenuGroupBase,
3508
- DropDownMenuItemBase,
3509
- DropDownMenuLabelBase,
3510
- DropDownMenuPortalBase,
3511
- DropDownMenuRadioGroupBase,
3512
- DropDownMenuRadioItemBase,
3513
- DropDownMenuSeparatorBase,
3514
- DropDownMenuShortcutBase,
3515
- DropDownMenuSubBase,
3516
- DropDownMenuSubContentBase,
3517
- DropDownMenuSubTriggerBase,
3518
- DropDownMenuTriggerBase,
3519
- FormBase,
3520
- FormControlBase,
3521
- FormDescriptionBase,
3522
- FormFieldBase,
3523
- FormItemBase,
3524
- FormLabelBase,
3525
- FormMessageBase,
3526
- InputBase,
3527
- LabelBase,
3528
- ModeToggleBase,
3529
- MultiCombobox,
3530
- PopoverAnchorBase,
3531
- PopoverBase,
3532
- PopoverContentBase,
3533
- PopoverTriggerBase,
3534
- ProgressBase,
3535
- ProgressCirclesBase,
3536
- ProgressPanelsBase,
3537
- ProgressSegmentsBase,
3538
- ScrollAreaBase,
3539
- ScrollBarBase,
3540
- Select,
3541
- SelectBase,
3542
- SelectContentBase,
3543
- SelectGroupBase,
3544
- SelectItemBase,
3545
- SelectLabelBase,
3546
- SelectScrollDownButtonBase,
3547
- SelectScrollUpButtonBase,
3548
- SelectSeparatorBase,
3549
- SelectTriggerBase,
3550
- SelectValueBase,
3551
- SeparatorBase,
3552
- SheetBase,
3553
- SheetCloseBase,
3554
- SheetContentBase,
3555
- SheetDescriptionBase,
3556
- SheetFooterBase,
3557
- SheetHeaderBase,
3558
- SheetOverlayBase,
3559
- SheetPortalBase,
3560
- SheetTitleBase,
3561
- SheetTriggerBase,
3562
- SidebarBase,
3563
- SidebarContentBase,
3564
- SidebarFooterBase,
3565
- SidebarGroupActionBase,
3566
- SidebarGroupBase,
3567
- SidebarGroupContentBase,
3568
- SidebarGroupLabelBase,
3569
- SidebarHeaderBase,
3570
- SidebarInputBase,
3571
- SidebarInsetBase,
3572
- SidebarMenuActionBase,
3573
- SidebarMenuBadgeBase,
3574
- SidebarMenuBase,
3575
- SidebarMenuButtonBase,
3576
- SidebarMenuItemBase,
3577
- SidebarMenuSkeletonBase,
3578
- SidebarMenuSubBase,
3579
- SidebarMenuSubButtonBase,
3580
- SidebarMenuSubItemBase,
3581
- SidebarProviderBase,
3582
- SidebarRailBase,
3583
- SidebarSeparatorBase,
3584
- SidebarTriggerBase,
3585
- SkeletonBase,
3586
- SlideBase,
3587
- SwitchBase,
3588
- TableBase,
3589
- TableBodyBase,
3590
- TableCaptionBase,
3591
- TableCellBase,
3592
- TableFooterBase,
3593
- TableHeadBase,
3594
- TableHeaderBase,
3595
- TableRowBase,
3596
- TabsBase,
3597
- TabsContentBase,
3598
- TabsListBase,
3599
- TabsTriggerBase,
3600
- TextAreaBase,
3601
- ThemeProviderBase,
3602
- TimePicker,
3603
- TimePickerInput,
3604
- Toaster,
3605
- TooltipBase,
3606
- TooltipContentBase,
3607
- TooltipProviderBase,
3608
- TooltipTriggerBase,
3609
- UseSideBarBase,
3610
- applyfilter,
3611
- buildFilterSummary,
3612
- buttonVariantsBase,
3613
- defaultStringConditions,
3614
- toast,
3615
- useFormFieldBase,
3616
- useIsMobile,
3617
- useTheme
3618
- });