analytica-frontend-lib 1.2.13 → 1.2.14

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