analytica-frontend-lib 1.2.13 → 1.2.15

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.
@@ -411,35 +411,175 @@ var Divider_default = Divider;
411
411
  // src/components/Table/Table.tsx
412
412
  var import_react2 = require("react");
413
413
  var import_phosphor_react2 = require("phosphor-react");
414
+
415
+ // src/components/NoSearchResult/NoSearchResult.tsx
414
416
  var import_jsx_runtime5 = require("react/jsx-runtime");
417
+ var NoSearchResult = ({ image, title, description }) => {
418
+ const displayTitle = title || "Nenhum resultado encontrado";
419
+ const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
420
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
421
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
422
+ "img",
423
+ {
424
+ src: image,
425
+ alt: "No search results",
426
+ className: "w-full h-full object-contain"
427
+ }
428
+ ) }),
429
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col items-start w-full max-w-md", children: [
430
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-row justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
431
+ Text_default,
432
+ {
433
+ as: "h2",
434
+ className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
435
+ children: displayTitle
436
+ }
437
+ ) }),
438
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Text_default, { className: "text-text-600 font-normal text-lg leading-relaxed w-full text-justify", children: displayDescription }) })
439
+ ] })
440
+ ] });
441
+ };
442
+ var NoSearchResult_default = NoSearchResult;
443
+
444
+ // src/components/Table/Table.tsx
445
+ var import_jsx_runtime6 = require("react/jsx-runtime");
415
446
  var Table = (0, import_react2.forwardRef)(
416
- ({ variant = "default", className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
417
- "div",
418
- {
419
- className: cn(
420
- "relative w-full overflow-x-auto",
421
- variant === "default" && "border border-border-200 rounded-xl"
422
- ),
423
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
424
- "table",
447
+ ({
448
+ variant = "default",
449
+ className,
450
+ children,
451
+ searchTerm,
452
+ noSearchResultImage,
453
+ noSearchResultTitle = "Nenhum resultado encontrado",
454
+ noSearchResultDescription = "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.",
455
+ emptyStateMessage = "Nenhum dado dispon\xEDvel no momento.",
456
+ emptyStateButtonText = "Adicionar item",
457
+ onEmptyStateButtonClick,
458
+ ...props
459
+ }, ref) => {
460
+ const isTableBodyEmpty = (0, import_react2.useMemo)(() => {
461
+ let foundBody = false;
462
+ let empty = true;
463
+ import_react2.Children.forEach(children, (child) => {
464
+ if ((0, import_react2.isValidElement)(child) && child.type === TableBody) {
465
+ foundBody = true;
466
+ const bodyProps = child.props;
467
+ if (import_react2.Children.count(bodyProps?.children) > 0) {
468
+ empty = false;
469
+ }
470
+ }
471
+ });
472
+ return foundBody ? empty : false;
473
+ }, [children]);
474
+ const columnCount = (0, import_react2.useMemo)(() => {
475
+ let count = 0;
476
+ import_react2.Children.forEach(children, (child) => {
477
+ if ((0, import_react2.isValidElement)(child) && child.type === TableHeader) {
478
+ const headerProps = child.props;
479
+ import_react2.Children.forEach(headerProps.children, (row) => {
480
+ if ((0, import_react2.isValidElement)(row) && row.type === TableRow) {
481
+ const rowProps = row.props;
482
+ count = import_react2.Children.count(rowProps.children);
483
+ }
484
+ });
485
+ }
486
+ });
487
+ return count || 1;
488
+ }, [children]);
489
+ const hasSearchTerm = searchTerm && searchTerm.trim() !== "";
490
+ const showNoSearchResult = hasSearchTerm && isTableBodyEmpty;
491
+ const showEmptyState = !hasSearchTerm && isTableBodyEmpty;
492
+ if (showNoSearchResult) {
493
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
494
+ "div",
425
495
  {
426
- ref,
427
496
  className: cn(
428
- "analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
429
- className
497
+ "relative w-full overflow-x-auto",
498
+ variant === "default" && "border border-border-200 rounded-xl"
430
499
  ),
431
- ...props,
432
500
  children: [
433
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("caption", { className: "sr-only", children: "My Table" }),
434
- children
501
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
502
+ "table",
503
+ {
504
+ ref,
505
+ className: cn(
506
+ "analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
507
+ className
508
+ ),
509
+ ...props,
510
+ children: import_react2.Children.map(children, (child) => {
511
+ if ((0, import_react2.isValidElement)(child) && (child.type === TableCaption || child.type === TableHeader)) {
512
+ return child;
513
+ }
514
+ return null;
515
+ })
516
+ }
517
+ ),
518
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "py-8 flex justify-center", children: noSearchResultImage ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
519
+ NoSearchResult_default,
520
+ {
521
+ image: noSearchResultImage,
522
+ title: noSearchResultTitle,
523
+ description: noSearchResultDescription
524
+ }
525
+ ) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "text-center", children: [
526
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-600 text-lg font-semibold mb-2", children: noSearchResultTitle }),
527
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-500 text-sm", children: noSearchResultDescription })
528
+ ] }) })
435
529
  ]
436
530
  }
437
- )
531
+ );
438
532
  }
439
- )
533
+ const modifiedChildren = import_react2.Children.map(children, (child) => {
534
+ if ((0, import_react2.isValidElement)(child) && child.type === TableBody && showEmptyState) {
535
+ return (0, import_react2.cloneElement)(child, {
536
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TableRow, { variant, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TableCell, { colSpan: columnCount, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center justify-center py-12 gap-4", children: [
537
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("p", { className: "text-text-600 text-base font-normal", children: emptyStateMessage }),
538
+ onEmptyStateButtonClick && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
539
+ Button_default,
540
+ {
541
+ variant: "solid",
542
+ action: "primary",
543
+ size: "medium",
544
+ onClick: onEmptyStateButtonClick,
545
+ children: emptyStateButtonText
546
+ }
547
+ )
548
+ ] }) }) })
549
+ });
550
+ }
551
+ return child;
552
+ });
553
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
554
+ "div",
555
+ {
556
+ className: cn(
557
+ "relative w-full overflow-x-auto",
558
+ variant === "default" && "border border-border-200 rounded-xl"
559
+ ),
560
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
561
+ "table",
562
+ {
563
+ ref,
564
+ className: cn(
565
+ "analytica-table w-full caption-bottom text-sm border-separate border-spacing-0",
566
+ className
567
+ ),
568
+ ...props,
569
+ children: [
570
+ !import_react2.Children.toArray(children).some(
571
+ (child) => (0, import_react2.isValidElement)(child) && child.type === TableCaption
572
+ ) && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("caption", { className: "sr-only", children: "My Table" }),
573
+ modifiedChildren
574
+ ]
575
+ }
576
+ )
577
+ }
578
+ );
579
+ }
440
580
  );
441
581
  Table.displayName = "Table";
442
- var TableHeader = (0, import_react2.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
582
+ var TableHeader = (0, import_react2.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
443
583
  "thead",
444
584
  {
445
585
  ref,
@@ -449,7 +589,7 @@ var TableHeader = (0, import_react2.forwardRef)(({ className, ...props }, ref) =
449
589
  ));
450
590
  TableHeader.displayName = "TableHeader";
451
591
  var TableBody = (0, import_react2.forwardRef)(
452
- ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
592
+ ({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
453
593
  "tbody",
454
594
  {
455
595
  ref,
@@ -460,7 +600,7 @@ var TableBody = (0, import_react2.forwardRef)(
460
600
  );
461
601
  TableBody.displayName = "TableBody";
462
602
  var TableFooter = (0, import_react2.forwardRef)(
463
- ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
603
+ ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
464
604
  "tfoot",
465
605
  {
466
606
  ref,
@@ -500,14 +640,14 @@ var TableRow = (0, import_react2.forwardRef)(
500
640
  className,
501
641
  ...props
502
642
  }, ref) => {
503
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
643
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
504
644
  "tr",
505
645
  {
506
646
  ref,
507
647
  className: cn(
508
648
  "transition-colors",
509
- state !== "disabled" ? "hover:bg-muted/50" : "",
510
- clickable && state !== "disabled" ? "cursor-pointer" : "",
649
+ state === "disabled" ? "" : "hover:bg-muted/50",
650
+ state === "disabled" || !clickable ? "" : "cursor-pointer",
511
651
  VARIANT_STATES_ROW[state][variant],
512
652
  className
513
653
  ),
@@ -532,7 +672,7 @@ var TableHead = (0, import_react2.forwardRef)(
532
672
  onSort();
533
673
  }
534
674
  };
535
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
675
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
536
676
  "th",
537
677
  {
538
678
  ref,
@@ -543,11 +683,11 @@ var TableHead = (0, import_react2.forwardRef)(
543
683
  ),
544
684
  onClick: handleClick,
545
685
  ...props,
546
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-2", children: [
686
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-2", children: [
547
687
  children,
548
- sortable && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col", children: [
549
- sortDirection === "asc" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
550
- sortDirection === "desc" && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_phosphor_react2.CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
688
+ sortable && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col", children: [
689
+ sortDirection === "asc" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
690
+ sortDirection === "desc" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react2.CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
551
691
  ] })
552
692
  ] })
553
693
  }
@@ -555,7 +695,7 @@ var TableHead = (0, import_react2.forwardRef)(
555
695
  }
556
696
  );
557
697
  TableHead.displayName = "TableHead";
558
- var TableCell = (0, import_react2.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
698
+ var TableCell = (0, import_react2.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
559
699
  "td",
560
700
  {
561
701
  ref,
@@ -567,7 +707,7 @@ var TableCell = (0, import_react2.forwardRef)(({ className, ...props }, ref) =>
567
707
  }
568
708
  ));
569
709
  TableCell.displayName = "TableCell";
570
- var TableCaption = (0, import_react2.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
710
+ var TableCaption = (0, import_react2.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
571
711
  "caption",
572
712
  {
573
713
  ref,
@@ -583,7 +723,7 @@ var Table_default = Table;
583
723
 
584
724
  // src/components/Badge/Badge.tsx
585
725
  var import_phosphor_react3 = require("phosphor-react");
586
- var import_jsx_runtime6 = require("react/jsx-runtime");
726
+ var import_jsx_runtime7 = require("react/jsx-runtime");
587
727
  var VARIANT_ACTION_CLASSES2 = {
588
728
  solid: {
589
729
  error: "bg-error-background text-error-700 focus-visible:outline-none",
@@ -645,14 +785,14 @@ var Badge = ({
645
785
  const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
646
786
  const baseClassesIcon = "flex items-center";
647
787
  if (variant === "notification") {
648
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
788
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
649
789
  "div",
650
790
  {
651
791
  className: cn(baseClasses, variantClasses, sizeClasses, className),
652
792
  ...props,
653
793
  children: [
654
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_phosphor_react3.Bell, { size: 24, className: "text-current", "aria-hidden": "true" }),
655
- notificationActive && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
794
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react3.Bell, { size: 24, className: "text-current", "aria-hidden": "true" }),
795
+ notificationActive && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
656
796
  "span",
657
797
  {
658
798
  "data-testid": "notification-dot",
@@ -663,15 +803,15 @@ var Badge = ({
663
803
  }
664
804
  );
665
805
  }
666
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
806
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
667
807
  "div",
668
808
  {
669
809
  className: cn(baseClasses, variantClasses, sizeClasses, className),
670
810
  ...props,
671
811
  children: [
672
- iconLeft && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconLeft }),
812
+ iconLeft && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconLeft }),
673
813
  children,
674
- iconRight && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconRight })
814
+ iconRight && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconRight })
675
815
  ]
676
816
  }
677
817
  );
@@ -685,7 +825,7 @@ var import_phosphor_react4 = require("phosphor-react");
685
825
  var notification_default = "../notification-TD7ZFRLL.png";
686
826
 
687
827
  // src/components/AlertManagerView/AlertsManagerView.tsx
688
- var import_jsx_runtime7 = require("react/jsx-runtime");
828
+ var import_jsx_runtime8 = require("react/jsx-runtime");
689
829
  var AlertsManagerView = ({
690
830
  alertData,
691
831
  isOpen = false,
@@ -728,7 +868,7 @@ var AlertsManagerView = ({
728
868
  year: "numeric"
729
869
  });
730
870
  };
731
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
871
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
732
872
  Modal_default,
733
873
  {
734
874
  isOpen,
@@ -736,59 +876,59 @@ var AlertsManagerView = ({
736
876
  title: alertData.title,
737
877
  size: "md",
738
878
  contentClassName: "p-0",
739
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
740
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
741
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
879
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
880
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
881
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
742
882
  "img",
743
883
  {
744
884
  src: imageUrl || notification_default,
745
885
  alt: alertData.title || "Imagem do alerta"
746
886
  }
747
887
  ),
748
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col items-center text-center gap-3", children: [
749
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
750
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
888
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col items-center text-center gap-3", children: [
889
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
890
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
751
891
  ] })
752
892
  ] }),
753
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Divider_default, { className: "my-4" }),
754
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex justify-between items-center mb-4 px-2", children: [
755
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
756
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
893
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Divider_default, { className: "my-4" }),
894
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex justify-between items-center mb-4 px-2", children: [
895
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
896
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
757
897
  ] }),
758
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Divider_default, { className: "my-4" }),
759
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Table_default, { variant: "borderless", className: "table-fixed", children: [
760
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TableRow, { variant: "borderless", children: [
761
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
762
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
898
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Divider_default, { className: "my-4" }),
899
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Table_default, { variant: "borderless", className: "table-fixed", children: [
900
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TableRow, { variant: "borderless", children: [
901
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
902
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
763
903
  ] }) }),
764
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TableRow, { children: [
765
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
766
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react4.User, { className: "text-primary-950", size: 18 }) }),
904
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TableRow, { children: [
905
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
906
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react4.User, { className: "text-primary-950", size: 18 }) }),
767
907
  recipient.name
768
908
  ] }),
769
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
909
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
770
910
  ] }, recipient.id)) })
771
911
  ] }) }),
772
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex justify-end items-center gap-2 bg-background-50 border border-border-200 py-3.5 px-2 rounded-b-2xl", children: [
773
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
912
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex justify-end items-center gap-2 bg-background-50 border border-border-200 py-3.5 px-2 rounded-b-2xl", children: [
913
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
774
914
  "P\xE1gina ",
775
915
  effectiveCurrentPage,
776
916
  " de ",
777
917
  totalPages
778
918
  ] }),
779
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
780
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
919
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
920
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
781
921
  Button_default,
782
922
  {
783
923
  variant: "link",
784
924
  size: "extra-small",
785
925
  onClick: () => onPageChange(Math.max(1, effectiveCurrentPage - 1)),
786
926
  disabled: effectiveCurrentPage === 1,
787
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react4.CaretLeft, {}),
927
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react4.CaretLeft, {}),
788
928
  children: "Anterior"
789
929
  }
790
930
  ),
791
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
931
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
792
932
  Button_default,
793
933
  {
794
934
  variant: "link",
@@ -797,28 +937,28 @@ var AlertsManagerView = ({
797
937
  Math.min(totalPages, effectiveCurrentPage + 1)
798
938
  ),
799
939
  disabled: effectiveCurrentPage === totalPages,
800
- iconRight: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react4.CaretRight, {}),
940
+ iconRight: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react4.CaretRight, {}),
801
941
  children: "Pr\xF3ximo"
802
942
  }
803
943
  )
804
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
805
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
944
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
945
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
806
946
  Button_default,
807
947
  {
808
948
  variant: "link",
809
949
  size: "extra-small",
810
950
  disabled: effectiveCurrentPage === 1,
811
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react4.CaretLeft, {}),
951
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react4.CaretLeft, {}),
812
952
  children: "Anterior"
813
953
  }
814
954
  ),
815
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
955
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
816
956
  Button_default,
817
957
  {
818
958
  variant: "link",
819
959
  size: "extra-small",
820
960
  disabled: effectiveCurrentPage === totalPages,
821
- iconRight: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react4.CaretRight, {}),
961
+ iconRight: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react4.CaretRight, {}),
822
962
  children: "Pr\xF3ximo"
823
963
  }
824
964
  )