analytica-frontend-lib 1.2.22 → 1.2.23

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.
Files changed (39) hide show
  1. package/dist/AlertManager/index.css +20 -0
  2. package/dist/AlertManager/index.css.map +1 -1
  3. package/dist/AlertManagerView/index.js +149 -114
  4. package/dist/AlertManagerView/index.js.map +1 -1
  5. package/dist/AlertManagerView/index.mjs +149 -114
  6. package/dist/AlertManagerView/index.mjs.map +1 -1
  7. package/dist/EmptyState/index.d.mts +65 -0
  8. package/dist/EmptyState/index.d.ts +65 -0
  9. package/dist/EmptyState/index.js +185 -0
  10. package/dist/EmptyState/index.js.map +1 -0
  11. package/dist/EmptyState/index.mjs +162 -0
  12. package/dist/EmptyState/index.mjs.map +1 -0
  13. package/dist/Table/index.d.mts +1 -1
  14. package/dist/Table/index.d.ts +1 -1
  15. package/dist/Table/index.js +124 -89
  16. package/dist/Table/index.js.map +1 -1
  17. package/dist/Table/index.mjs +124 -89
  18. package/dist/Table/index.mjs.map +1 -1
  19. package/dist/TableProvider/index.css +20 -0
  20. package/dist/TableProvider/index.css.map +1 -1
  21. package/dist/TableProvider/index.d.mts +1 -1
  22. package/dist/TableProvider/index.d.ts +1 -1
  23. package/dist/TableProvider/index.js +484 -449
  24. package/dist/TableProvider/index.js.map +1 -1
  25. package/dist/TableProvider/index.mjs +484 -449
  26. package/dist/TableProvider/index.mjs.map +1 -1
  27. package/dist/{TableProvider-DyhwEkPT.d.mts → TableProvider-BnAnv3OV.d.mts} +12 -4
  28. package/dist/{TableProvider-48a6wb7j.d.ts → TableProvider-GfPlLqzg.d.ts} +12 -4
  29. package/dist/index.css +20 -0
  30. package/dist/index.css.map +1 -1
  31. package/dist/index.d.mts +3 -2
  32. package/dist/index.d.ts +3 -2
  33. package/dist/index.js +1041 -1004
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +1040 -1004
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/styles.css +20 -0
  38. package/dist/styles.css.map +1 -1
  39. package/package.json +2 -1
@@ -421,9 +421,52 @@ var NoSearchResult = ({ image, title, description }) => {
421
421
  };
422
422
  var NoSearchResult_default = NoSearchResult;
423
423
 
424
+ // src/components/EmptyState/EmptyState.tsx
425
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
426
+ var EmptyState = ({
427
+ image,
428
+ title,
429
+ description,
430
+ buttonText,
431
+ buttonIcon,
432
+ onButtonClick,
433
+ buttonVariant = "solid",
434
+ buttonAction = "primary"
435
+ }) => {
436
+ const displayTitle = title || "Nenhum dado dispon\xEDvel";
437
+ const displayDescription = description || "N\xE3o h\xE1 dados para exibir no momento.";
438
+ return /* @__PURE__ */ jsxs4("div", { className: "flex flex-col justify-center items-center gap-6 w-full min-h-[705px] bg-background rounded-xl p-6", children: [
439
+ image && /* @__PURE__ */ jsx6("img", { src: image, alt: displayTitle, className: "w-[170px] h-[150px]" }),
440
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-4 w-full max-w-[600px] px-6", children: [
441
+ /* @__PURE__ */ jsx6(
442
+ Text_default,
443
+ {
444
+ as: "h2",
445
+ className: "text-text-950 font-semibold text-3xl leading-[35px] text-center",
446
+ children: displayTitle
447
+ }
448
+ ),
449
+ /* @__PURE__ */ jsx6(Text_default, { className: "text-text-600 font-normal text-[18px] leading-[27px] text-center", children: displayDescription })
450
+ ] }),
451
+ buttonText && onButtonClick && /* @__PURE__ */ jsx6(
452
+ Button_default,
453
+ {
454
+ variant: buttonVariant,
455
+ action: buttonAction,
456
+ size: "large",
457
+ onClick: onButtonClick,
458
+ iconLeft: buttonIcon,
459
+ className: "rounded-full px-5 py-2.5",
460
+ children: buttonText
461
+ }
462
+ )
463
+ ] });
464
+ };
465
+ var EmptyState_default = EmptyState;
466
+
424
467
  // src/components/Skeleton/Skeleton.tsx
425
468
  import { forwardRef } from "react";
426
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
469
+ import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
427
470
  var SKELETON_ANIMATION_CLASSES = {
428
471
  pulse: "animate-pulse",
429
472
  none: ""
@@ -460,13 +503,13 @@ var Skeleton = forwardRef(
460
503
  height: typeof height === "number" ? `${height}px` : height
461
504
  };
462
505
  if (variant === "text" && lines > 1) {
463
- return /* @__PURE__ */ jsx6(
506
+ return /* @__PURE__ */ jsx7(
464
507
  "div",
465
508
  {
466
509
  ref,
467
510
  className: cn("flex flex-col", spacingClass, className),
468
511
  ...props,
469
- children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx6(
512
+ children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx7(
470
513
  "div",
471
514
  {
472
515
  className: cn(variantClass, animationClass),
@@ -477,7 +520,7 @@ var Skeleton = forwardRef(
477
520
  }
478
521
  );
479
522
  }
480
- return /* @__PURE__ */ jsx6(
523
+ return /* @__PURE__ */ jsx7(
481
524
  "div",
482
525
  {
483
526
  ref,
@@ -490,11 +533,11 @@ var Skeleton = forwardRef(
490
533
  }
491
534
  );
492
535
  var SkeletonText = forwardRef(
493
- (props, ref) => /* @__PURE__ */ jsx6(Skeleton, { ref, variant: "text", ...props })
536
+ (props, ref) => /* @__PURE__ */ jsx7(Skeleton, { ref, variant: "text", ...props })
494
537
  );
495
- var SkeletonCircle = forwardRef((props, ref) => /* @__PURE__ */ jsx6(Skeleton, { ref, variant: "circular", ...props }));
496
- var SkeletonRectangle = forwardRef((props, ref) => /* @__PURE__ */ jsx6(Skeleton, { ref, variant: "rectangular", ...props }));
497
- var SkeletonRounded = forwardRef((props, ref) => /* @__PURE__ */ jsx6(Skeleton, { ref, variant: "rounded", ...props }));
538
+ var SkeletonCircle = forwardRef((props, ref) => /* @__PURE__ */ jsx7(Skeleton, { ref, variant: "circular", ...props }));
539
+ var SkeletonRectangle = forwardRef((props, ref) => /* @__PURE__ */ jsx7(Skeleton, { ref, variant: "rectangular", ...props }));
540
+ var SkeletonRounded = forwardRef((props, ref) => /* @__PURE__ */ jsx7(Skeleton, { ref, variant: "rounded", ...props }));
498
541
  var SkeletonCard = forwardRef(
499
542
  ({
500
543
  showAvatar = true,
@@ -505,7 +548,7 @@ var SkeletonCard = forwardRef(
505
548
  className = "",
506
549
  ...props
507
550
  }, ref) => {
508
- return /* @__PURE__ */ jsxs4(
551
+ return /* @__PURE__ */ jsxs5(
509
552
  "div",
510
553
  {
511
554
  ref,
@@ -515,16 +558,16 @@ var SkeletonCard = forwardRef(
515
558
  ),
516
559
  ...props,
517
560
  children: [
518
- /* @__PURE__ */ jsxs4("div", { className: "flex items-start space-x-3", children: [
519
- showAvatar && /* @__PURE__ */ jsx6(SkeletonCircle, { width: 40, height: 40 }),
520
- /* @__PURE__ */ jsxs4("div", { className: "flex-1 space-y-2", children: [
521
- showTitle && /* @__PURE__ */ jsx6(SkeletonText, { width: "60%", height: 20 }),
522
- showDescription && /* @__PURE__ */ jsx6(SkeletonText, { lines, spacing: "small" })
561
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-start space-x-3", children: [
562
+ showAvatar && /* @__PURE__ */ jsx7(SkeletonCircle, { width: 40, height: 40 }),
563
+ /* @__PURE__ */ jsxs5("div", { className: "flex-1 space-y-2", children: [
564
+ showTitle && /* @__PURE__ */ jsx7(SkeletonText, { width: "60%", height: 20 }),
565
+ showDescription && /* @__PURE__ */ jsx7(SkeletonText, { lines, spacing: "small" })
523
566
  ] })
524
567
  ] }),
525
- showActions && /* @__PURE__ */ jsxs4("div", { className: "flex justify-end space-x-2 mt-4", children: [
526
- /* @__PURE__ */ jsx6(SkeletonRectangle, { width: 80, height: 32 }),
527
- /* @__PURE__ */ jsx6(SkeletonRectangle, { width: 80, height: 32 })
568
+ showActions && /* @__PURE__ */ jsxs5("div", { className: "flex justify-end space-x-2 mt-4", children: [
569
+ /* @__PURE__ */ jsx7(SkeletonRectangle, { width: 80, height: 32 }),
570
+ /* @__PURE__ */ jsx7(SkeletonRectangle, { width: 80, height: 32 })
528
571
  ] })
529
572
  ]
530
573
  }
@@ -541,19 +584,19 @@ var SkeletonList = forwardRef(
541
584
  className = "",
542
585
  ...props
543
586
  }, ref) => {
544
- return /* @__PURE__ */ jsx6("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs4("div", { className: "flex items-start space-x-3 p-3", children: [
545
- showAvatar && /* @__PURE__ */ jsx6(SkeletonCircle, { width: 32, height: 32 }),
546
- /* @__PURE__ */ jsxs4("div", { className: "flex-1 space-y-2", children: [
547
- showTitle && /* @__PURE__ */ jsx6(SkeletonText, { width: "40%", height: 16 }),
548
- showDescription && /* @__PURE__ */ jsx6(SkeletonText, { lines, spacing: "small" })
587
+ return /* @__PURE__ */ jsx7("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs5("div", { className: "flex items-start space-x-3 p-3", children: [
588
+ showAvatar && /* @__PURE__ */ jsx7(SkeletonCircle, { width: 32, height: 32 }),
589
+ /* @__PURE__ */ jsxs5("div", { className: "flex-1 space-y-2", children: [
590
+ showTitle && /* @__PURE__ */ jsx7(SkeletonText, { width: "40%", height: 16 }),
591
+ showDescription && /* @__PURE__ */ jsx7(SkeletonText, { lines, spacing: "small" })
549
592
  ] })
550
593
  ] }, index)) });
551
594
  }
552
595
  );
553
596
  var SkeletonTable = forwardRef(
554
597
  ({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
555
- return /* @__PURE__ */ jsxs4("div", { ref, className: cn("w-full", className), ...props, children: [
556
- showHeader && /* @__PURE__ */ jsx6("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ jsx6(
598
+ return /* @__PURE__ */ jsxs5("div", { ref, className: cn("w-full", className), ...props, children: [
599
+ showHeader && /* @__PURE__ */ jsx7("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ jsx7(
557
600
  SkeletonText,
558
601
  {
559
602
  width: `${100 / columns}%`,
@@ -561,7 +604,7 @@ var SkeletonTable = forwardRef(
561
604
  },
562
605
  index
563
606
  )) }),
564
- /* @__PURE__ */ jsx6("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx6("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ jsx6(
607
+ /* @__PURE__ */ jsx7("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx7("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ jsx7(
565
608
  SkeletonText,
566
609
  {
567
610
  width: `${100 / columns}%`,
@@ -574,7 +617,7 @@ var SkeletonTable = forwardRef(
574
617
  );
575
618
 
576
619
  // src/components/Table/Table.tsx
577
- import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
620
+ import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
578
621
  var renderHeaderElements = (children) => {
579
622
  return Children.map(children, (child) => {
580
623
  if (isValidElement(child) && (child.type === TableCaption || child.type === TableHeader)) {
@@ -588,7 +631,7 @@ var getNoSearchResultContent = (config, defaultTitle, defaultDescription) => {
588
631
  return config.component;
589
632
  }
590
633
  if (config.image) {
591
- return /* @__PURE__ */ jsx7(
634
+ return /* @__PURE__ */ jsx8(
592
635
  NoSearchResult_default,
593
636
  {
594
637
  image: config.image,
@@ -597,39 +640,31 @@ var getNoSearchResultContent = (config, defaultTitle, defaultDescription) => {
597
640
  }
598
641
  );
599
642
  }
600
- return /* @__PURE__ */ jsxs5("div", { className: "text-center", children: [
601
- /* @__PURE__ */ jsx7("p", { className: "text-text-600 text-lg font-semibold mb-2", children: config.title || defaultTitle }),
602
- /* @__PURE__ */ jsx7("p", { className: "text-text-500 text-sm", children: config.description || defaultDescription })
643
+ return /* @__PURE__ */ jsxs6("div", { className: "text-center", children: [
644
+ /* @__PURE__ */ jsx8("p", { className: "text-text-600 text-lg font-semibold mb-2", children: config.title || defaultTitle }),
645
+ /* @__PURE__ */ jsx8("p", { className: "text-text-500 text-sm", children: config.description || defaultDescription })
603
646
  ] });
604
647
  };
605
- var getEmptyStateContent = (config, defaultMessage, defaultButtonText, onButtonClick) => {
648
+ var getEmptyStateContent = (config, defaultTitle, defaultDescription) => {
606
649
  if (config?.component) {
607
650
  return config.component;
608
651
  }
609
- return /* @__PURE__ */ jsxs5("div", { className: "flex flex-col items-center justify-center gap-4", children: [
610
- config?.image && /* @__PURE__ */ jsx7(
611
- "img",
612
- {
613
- src: config.image,
614
- alt: "Empty state",
615
- className: "w-auto h-auto max-w-full"
616
- }
617
- ),
618
- /* @__PURE__ */ jsx7("p", { className: "text-text-600 text-base font-normal", children: config?.message || defaultMessage }),
619
- (config?.onButtonClick || onButtonClick) && /* @__PURE__ */ jsx7(
620
- Button_default,
621
- {
622
- variant: "solid",
623
- action: "primary",
624
- size: "medium",
625
- onClick: config?.onButtonClick || onButtonClick,
626
- children: config?.buttonText || defaultButtonText
627
- }
628
- )
629
- ] });
652
+ return /* @__PURE__ */ jsx8(
653
+ EmptyState_default,
654
+ {
655
+ image: config?.image,
656
+ title: config?.title || defaultTitle,
657
+ description: config?.description || defaultDescription,
658
+ buttonText: config?.buttonText,
659
+ buttonIcon: config?.buttonIcon,
660
+ onButtonClick: config?.onButtonClick,
661
+ buttonVariant: config?.buttonVariant,
662
+ buttonAction: config?.buttonAction
663
+ }
664
+ );
630
665
  };
631
666
  var renderTableWrapper = (variant, tableRef, className, children, stateContent, tableProps) => {
632
- return /* @__PURE__ */ jsxs5(
667
+ return /* @__PURE__ */ jsxs6(
633
668
  "div",
634
669
  {
635
670
  className: cn(
@@ -637,7 +672,7 @@ var renderTableWrapper = (variant, tableRef, className, children, stateContent,
637
672
  variant === "default" && "border border-border-200 rounded-xl"
638
673
  ),
639
674
  children: [
640
- /* @__PURE__ */ jsx7(
675
+ /* @__PURE__ */ jsx8(
641
676
  "table",
642
677
  {
643
678
  ref: tableRef,
@@ -649,7 +684,7 @@ var renderTableWrapper = (variant, tableRef, className, children, stateContent,
649
684
  children: renderHeaderElements(children)
650
685
  }
651
686
  ),
652
- /* @__PURE__ */ jsx7("div", { className: "py-8 flex justify-center", children: stateContent })
687
+ /* @__PURE__ */ jsx8("div", { className: "py-8 flex justify-center", children: stateContent })
653
688
  ]
654
689
  }
655
690
  );
@@ -672,13 +707,13 @@ var Table = forwardRef2(
672
707
  description: "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave."
673
708
  };
674
709
  const defaultEmptyState = {
675
- message: "Nenhum dado dispon\xEDvel no momento.",
676
- buttonText: "Adicionar item"
710
+ title: "Nenhum dado dispon\xEDvel",
711
+ description: "N\xE3o h\xE1 dados para exibir no momento."
677
712
  };
678
713
  const finalNoSearchResultState = noSearchResultState || defaultNoSearchResultState;
679
714
  const finalEmptyState = emptyState || defaultEmptyState;
680
715
  if (showLoading) {
681
- const loadingContent = loadingState?.component || /* @__PURE__ */ jsx7(SkeletonTable, { rows: 5, columns: 4, showHeader: false });
716
+ const loadingContent = loadingState?.component || /* @__PURE__ */ jsx8(SkeletonTable, { rows: 5, columns: 4, showHeader: false });
682
717
  return renderTableWrapper(
683
718
  variant,
684
719
  ref,
@@ -706,8 +741,8 @@ var Table = forwardRef2(
706
741
  if (showEmpty) {
707
742
  const emptyContent = getEmptyStateContent(
708
743
  finalEmptyState,
709
- defaultEmptyState.message || "Nenhum dado dispon\xEDvel no momento.",
710
- defaultEmptyState.buttonText || "Adicionar item"
744
+ defaultEmptyState.title || "Nenhum dado dispon\xEDvel",
745
+ defaultEmptyState.description || "N\xE3o h\xE1 dados para exibir no momento."
711
746
  );
712
747
  return renderTableWrapper(
713
748
  variant,
@@ -718,14 +753,14 @@ var Table = forwardRef2(
718
753
  props
719
754
  );
720
755
  }
721
- return /* @__PURE__ */ jsx7(
756
+ return /* @__PURE__ */ jsx8(
722
757
  "div",
723
758
  {
724
759
  className: cn(
725
760
  "relative w-full overflow-x-auto",
726
761
  variant === "default" && "border border-border-200 rounded-xl"
727
762
  ),
728
- children: /* @__PURE__ */ jsxs5(
763
+ children: /* @__PURE__ */ jsxs6(
729
764
  "table",
730
765
  {
731
766
  ref,
@@ -739,7 +774,7 @@ var Table = forwardRef2(
739
774
  children: [
740
775
  !Children.toArray(children).some(
741
776
  (child) => isValidElement(child) && child.type === TableCaption
742
- ) && /* @__PURE__ */ jsx7("caption", { className: "sr-only", children: "My Table" }),
777
+ ) && /* @__PURE__ */ jsx8("caption", { className: "sr-only", children: "My Table" }),
743
778
  children
744
779
  ]
745
780
  }
@@ -749,7 +784,7 @@ var Table = forwardRef2(
749
784
  }
750
785
  );
751
786
  Table.displayName = "Table";
752
- var TableHeader = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
787
+ var TableHeader = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
753
788
  "thead",
754
789
  {
755
790
  ref,
@@ -759,7 +794,7 @@ var TableHeader = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */
759
794
  ));
760
795
  TableHeader.displayName = "TableHeader";
761
796
  var TableBody = forwardRef2(
762
- ({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx7(
797
+ ({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ jsx8(
763
798
  "tbody",
764
799
  {
765
800
  ref,
@@ -774,7 +809,7 @@ var TableBody = forwardRef2(
774
809
  );
775
810
  TableBody.displayName = "TableBody";
776
811
  var TableFooter = forwardRef2(
777
- ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsx7(
812
+ ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ jsx8(
778
813
  "tfoot",
779
814
  {
780
815
  ref,
@@ -818,7 +853,7 @@ var TableRow = forwardRef2(
818
853
  className,
819
854
  ...props
820
855
  }, ref) => {
821
- return /* @__PURE__ */ jsx7(
856
+ return /* @__PURE__ */ jsx8(
822
857
  "tr",
823
858
  {
824
859
  ref,
@@ -850,7 +885,7 @@ var TableHead = forwardRef2(
850
885
  onSort();
851
886
  }
852
887
  };
853
- return /* @__PURE__ */ jsx7(
888
+ return /* @__PURE__ */ jsx8(
854
889
  "th",
855
890
  {
856
891
  ref,
@@ -861,11 +896,11 @@ var TableHead = forwardRef2(
861
896
  ),
862
897
  onClick: handleClick,
863
898
  ...props,
864
- children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2", children: [
899
+ children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-2", children: [
865
900
  children,
866
- sortable && /* @__PURE__ */ jsxs5("div", { className: "flex flex-col", children: [
867
- sortDirection === "asc" && /* @__PURE__ */ jsx7(CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
868
- sortDirection === "desc" && /* @__PURE__ */ jsx7(CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
901
+ sortable && /* @__PURE__ */ jsxs6("div", { className: "flex flex-col", children: [
902
+ sortDirection === "asc" && /* @__PURE__ */ jsx8(CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
903
+ sortDirection === "desc" && /* @__PURE__ */ jsx8(CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
869
904
  ] })
870
905
  ] })
871
906
  }
@@ -873,7 +908,7 @@ var TableHead = forwardRef2(
873
908
  }
874
909
  );
875
910
  TableHead.displayName = "TableHead";
876
- var TableCell = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
911
+ var TableCell = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
877
912
  "td",
878
913
  {
879
914
  ref,
@@ -885,7 +920,7 @@ var TableCell = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ js
885
920
  }
886
921
  ));
887
922
  TableCell.displayName = "TableCell";
888
- var TableCaption = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ jsx7(
923
+ var TableCaption = forwardRef2(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
889
924
  "caption",
890
925
  {
891
926
  ref,
@@ -901,7 +936,7 @@ var Table_default = Table;
901
936
 
902
937
  // src/components/Badge/Badge.tsx
903
938
  import { Bell } from "phosphor-react";
904
- import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
939
+ import { jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
905
940
  var VARIANT_ACTION_CLASSES2 = {
906
941
  solid: {
907
942
  error: "bg-error-background text-error-700 focus-visible:outline-none",
@@ -963,14 +998,14 @@ var Badge = ({
963
998
  const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
964
999
  const baseClassesIcon = "flex items-center";
965
1000
  if (variant === "notification") {
966
- return /* @__PURE__ */ jsxs6(
1001
+ return /* @__PURE__ */ jsxs7(
967
1002
  "div",
968
1003
  {
969
1004
  className: cn(baseClasses, variantClasses, sizeClasses, className),
970
1005
  ...props,
971
1006
  children: [
972
- /* @__PURE__ */ jsx8(Bell, { size: 24, className: "text-current", "aria-hidden": "true" }),
973
- notificationActive && /* @__PURE__ */ jsx8(
1007
+ /* @__PURE__ */ jsx9(Bell, { size: 24, className: "text-current", "aria-hidden": "true" }),
1008
+ notificationActive && /* @__PURE__ */ jsx9(
974
1009
  "span",
975
1010
  {
976
1011
  "data-testid": "notification-dot",
@@ -981,15 +1016,15 @@ var Badge = ({
981
1016
  }
982
1017
  );
983
1018
  }
984
- return /* @__PURE__ */ jsxs6(
1019
+ return /* @__PURE__ */ jsxs7(
985
1020
  "div",
986
1021
  {
987
1022
  className: cn(baseClasses, variantClasses, sizeClasses, className),
988
1023
  ...props,
989
1024
  children: [
990
- iconLeft && /* @__PURE__ */ jsx8("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconLeft }),
1025
+ iconLeft && /* @__PURE__ */ jsx9("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconLeft }),
991
1026
  children,
992
- iconRight && /* @__PURE__ */ jsx8("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconRight })
1027
+ iconRight && /* @__PURE__ */ jsx9("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconRight })
993
1028
  ]
994
1029
  }
995
1030
  );
@@ -998,7 +1033,7 @@ var Badge_default = Badge;
998
1033
 
999
1034
  // src/components/AlertManagerView/AlertsManagerView.tsx
1000
1035
  import { CaretLeft, CaretRight, User } from "phosphor-react";
1001
- import { Fragment, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
1036
+ import { Fragment, jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
1002
1037
  var AlertsManagerView = ({
1003
1038
  alertData,
1004
1039
  isOpen = false,
@@ -1027,7 +1062,7 @@ var AlertsManagerView = ({
1027
1062
  year: "numeric"
1028
1063
  });
1029
1064
  };
1030
- return /* @__PURE__ */ jsx9(
1065
+ return /* @__PURE__ */ jsx10(
1031
1066
  Modal_default,
1032
1067
  {
1033
1068
  isOpen,
@@ -1035,59 +1070,59 @@ var AlertsManagerView = ({
1035
1070
  title: alertData.title,
1036
1071
  size: "md",
1037
1072
  contentClassName: "p-0",
1038
- children: /* @__PURE__ */ jsx9("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ jsxs7("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
1039
- /* @__PURE__ */ jsxs7("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
1040
- (imageLink || alertData.image || defaultImage) && /* @__PURE__ */ jsx9(
1073
+ children: /* @__PURE__ */ jsx10("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ jsxs8("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
1074
+ /* @__PURE__ */ jsxs8("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
1075
+ (imageLink || alertData.image || defaultImage) && /* @__PURE__ */ jsx10(
1041
1076
  "img",
1042
1077
  {
1043
1078
  src: imageLink || alertData.image || defaultImage || void 0,
1044
1079
  alt: alertData.title || "Imagem do alerta"
1045
1080
  }
1046
1081
  ),
1047
- /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center text-center gap-3", children: [
1048
- /* @__PURE__ */ jsx9(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
1049
- /* @__PURE__ */ jsx9(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
1082
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-center text-center gap-3", children: [
1083
+ /* @__PURE__ */ jsx10(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
1084
+ /* @__PURE__ */ jsx10(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
1050
1085
  ] })
1051
1086
  ] }),
1052
- /* @__PURE__ */ jsx9(Divider_default, { className: "my-4" }),
1053
- /* @__PURE__ */ jsxs7("div", { className: "flex justify-between items-center mb-4 px-2", children: [
1054
- /* @__PURE__ */ jsx9(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
1055
- /* @__PURE__ */ jsx9(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
1087
+ /* @__PURE__ */ jsx10(Divider_default, { className: "my-4" }),
1088
+ /* @__PURE__ */ jsxs8("div", { className: "flex justify-between items-center mb-4 px-2", children: [
1089
+ /* @__PURE__ */ jsx10(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
1090
+ /* @__PURE__ */ jsx10(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
1056
1091
  ] }),
1057
- /* @__PURE__ */ jsx9(Divider_default, { className: "my-4" }),
1058
- /* @__PURE__ */ jsx9("div", { className: "mb-4", children: /* @__PURE__ */ jsxs7(Table_default, { variant: "borderless", className: "table-fixed", children: [
1059
- /* @__PURE__ */ jsx9(TableHeader, { children: /* @__PURE__ */ jsxs7(TableRow, { variant: "borderless", children: [
1060
- /* @__PURE__ */ jsx9(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
1061
- /* @__PURE__ */ jsx9(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
1092
+ /* @__PURE__ */ jsx10(Divider_default, { className: "my-4" }),
1093
+ /* @__PURE__ */ jsx10("div", { className: "mb-4", children: /* @__PURE__ */ jsxs8(Table_default, { variant: "borderless", className: "table-fixed", children: [
1094
+ /* @__PURE__ */ jsx10(TableHeader, { children: /* @__PURE__ */ jsxs8(TableRow, { variant: "borderless", children: [
1095
+ /* @__PURE__ */ jsx10(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
1096
+ /* @__PURE__ */ jsx10(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
1062
1097
  ] }) }),
1063
- /* @__PURE__ */ jsx9(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ jsxs7(TableRow, { children: [
1064
- /* @__PURE__ */ jsxs7(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
1065
- /* @__PURE__ */ jsx9("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ jsx9(User, { className: "text-primary-950", size: 18 }) }),
1098
+ /* @__PURE__ */ jsx10(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ jsxs8(TableRow, { children: [
1099
+ /* @__PURE__ */ jsxs8(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
1100
+ /* @__PURE__ */ jsx10("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ jsx10(User, { className: "text-primary-950", size: 18 }) }),
1066
1101
  recipient.name
1067
1102
  ] }),
1068
- /* @__PURE__ */ jsx9(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ jsx9("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ jsx9(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ jsx9(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
1103
+ /* @__PURE__ */ jsx10(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ jsx10("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ jsx10(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ jsx10(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
1069
1104
  ] }, recipient.id)) })
1070
1105
  ] }) }),
1071
- totalPages > 1 && /* @__PURE__ */ jsxs7("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: [
1072
- /* @__PURE__ */ jsxs7(Text_default, { size: "sm", className: "text-text-600", children: [
1106
+ totalPages > 1 && /* @__PURE__ */ jsxs8("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: [
1107
+ /* @__PURE__ */ jsxs8(Text_default, { size: "sm", className: "text-text-600", children: [
1073
1108
  "P\xE1gina ",
1074
1109
  effectiveCurrentPage,
1075
1110
  " de ",
1076
1111
  totalPages
1077
1112
  ] }),
1078
- /* @__PURE__ */ jsx9("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ jsxs7(Fragment, { children: [
1079
- /* @__PURE__ */ jsx9(
1113
+ /* @__PURE__ */ jsx10("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ jsxs8(Fragment, { children: [
1114
+ /* @__PURE__ */ jsx10(
1080
1115
  Button_default,
1081
1116
  {
1082
1117
  variant: "link",
1083
1118
  size: "extra-small",
1084
1119
  onClick: () => onPageChange(Math.max(1, effectiveCurrentPage - 1)),
1085
1120
  disabled: effectiveCurrentPage === 1,
1086
- iconLeft: /* @__PURE__ */ jsx9(CaretLeft, {}),
1121
+ iconLeft: /* @__PURE__ */ jsx10(CaretLeft, {}),
1087
1122
  children: "Anterior"
1088
1123
  }
1089
1124
  ),
1090
- /* @__PURE__ */ jsx9(
1125
+ /* @__PURE__ */ jsx10(
1091
1126
  Button_default,
1092
1127
  {
1093
1128
  variant: "link",
@@ -1096,28 +1131,28 @@ var AlertsManagerView = ({
1096
1131
  Math.min(totalPages, effectiveCurrentPage + 1)
1097
1132
  ),
1098
1133
  disabled: effectiveCurrentPage === totalPages,
1099
- iconRight: /* @__PURE__ */ jsx9(CaretRight, {}),
1134
+ iconRight: /* @__PURE__ */ jsx10(CaretRight, {}),
1100
1135
  children: "Pr\xF3ximo"
1101
1136
  }
1102
1137
  )
1103
- ] }) : /* @__PURE__ */ jsxs7(Fragment, { children: [
1104
- /* @__PURE__ */ jsx9(
1138
+ ] }) : /* @__PURE__ */ jsxs8(Fragment, { children: [
1139
+ /* @__PURE__ */ jsx10(
1105
1140
  Button_default,
1106
1141
  {
1107
1142
  variant: "link",
1108
1143
  size: "extra-small",
1109
1144
  disabled: effectiveCurrentPage === 1,
1110
- iconLeft: /* @__PURE__ */ jsx9(CaretLeft, {}),
1145
+ iconLeft: /* @__PURE__ */ jsx10(CaretLeft, {}),
1111
1146
  children: "Anterior"
1112
1147
  }
1113
1148
  ),
1114
- /* @__PURE__ */ jsx9(
1149
+ /* @__PURE__ */ jsx10(
1115
1150
  Button_default,
1116
1151
  {
1117
1152
  variant: "link",
1118
1153
  size: "extra-small",
1119
1154
  disabled: effectiveCurrentPage === totalPages,
1120
- iconRight: /* @__PURE__ */ jsx9(CaretRight, {}),
1155
+ iconRight: /* @__PURE__ */ jsx10(CaretRight, {}),
1121
1156
  children: "Pr\xF3ximo"
1122
1157
  }
1123
1158
  )