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
@@ -440,9 +440,52 @@ var NoSearchResult = ({ image, title, description }) => {
440
440
  };
441
441
  var NoSearchResult_default = NoSearchResult;
442
442
 
443
+ // src/components/EmptyState/EmptyState.tsx
444
+ var import_jsx_runtime6 = require("react/jsx-runtime");
445
+ var EmptyState = ({
446
+ image,
447
+ title,
448
+ description,
449
+ buttonText,
450
+ buttonIcon,
451
+ onButtonClick,
452
+ buttonVariant = "solid",
453
+ buttonAction = "primary"
454
+ }) => {
455
+ const displayTitle = title || "Nenhum dado dispon\xEDvel";
456
+ const displayDescription = description || "N\xE3o h\xE1 dados para exibir no momento.";
457
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col justify-center items-center gap-6 w-full min-h-[705px] bg-background rounded-xl p-6", children: [
458
+ image && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("img", { src: image, alt: displayTitle, className: "w-[170px] h-[150px]" }),
459
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col items-center gap-4 w-full max-w-[600px] px-6", children: [
460
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
461
+ Text_default,
462
+ {
463
+ as: "h2",
464
+ className: "text-text-950 font-semibold text-3xl leading-[35px] text-center",
465
+ children: displayTitle
466
+ }
467
+ ),
468
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Text_default, { className: "text-text-600 font-normal text-[18px] leading-[27px] text-center", children: displayDescription })
469
+ ] }),
470
+ buttonText && onButtonClick && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
471
+ Button_default,
472
+ {
473
+ variant: buttonVariant,
474
+ action: buttonAction,
475
+ size: "large",
476
+ onClick: onButtonClick,
477
+ iconLeft: buttonIcon,
478
+ className: "rounded-full px-5 py-2.5",
479
+ children: buttonText
480
+ }
481
+ )
482
+ ] });
483
+ };
484
+ var EmptyState_default = EmptyState;
485
+
443
486
  // src/components/Skeleton/Skeleton.tsx
444
487
  var import_react2 = require("react");
445
- var import_jsx_runtime6 = require("react/jsx-runtime");
488
+ var import_jsx_runtime7 = require("react/jsx-runtime");
446
489
  var SKELETON_ANIMATION_CLASSES = {
447
490
  pulse: "animate-pulse",
448
491
  none: ""
@@ -479,13 +522,13 @@ var Skeleton = (0, import_react2.forwardRef)(
479
522
  height: typeof height === "number" ? `${height}px` : height
480
523
  };
481
524
  if (variant === "text" && lines > 1) {
482
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
525
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
483
526
  "div",
484
527
  {
485
528
  ref,
486
529
  className: cn("flex flex-col", spacingClass, className),
487
530
  ...props,
488
- children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
531
+ children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
489
532
  "div",
490
533
  {
491
534
  className: cn(variantClass, animationClass),
@@ -496,7 +539,7 @@ var Skeleton = (0, import_react2.forwardRef)(
496
539
  }
497
540
  );
498
541
  }
499
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
542
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
500
543
  "div",
501
544
  {
502
545
  ref,
@@ -509,11 +552,11 @@ var Skeleton = (0, import_react2.forwardRef)(
509
552
  }
510
553
  );
511
554
  var SkeletonText = (0, import_react2.forwardRef)(
512
- (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Skeleton, { ref, variant: "text", ...props })
555
+ (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Skeleton, { ref, variant: "text", ...props })
513
556
  );
514
- var SkeletonCircle = (0, import_react2.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Skeleton, { ref, variant: "circular", ...props }));
515
- var SkeletonRectangle = (0, import_react2.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Skeleton, { ref, variant: "rectangular", ...props }));
516
- var SkeletonRounded = (0, import_react2.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Skeleton, { ref, variant: "rounded", ...props }));
557
+ var SkeletonCircle = (0, import_react2.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Skeleton, { ref, variant: "circular", ...props }));
558
+ var SkeletonRectangle = (0, import_react2.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Skeleton, { ref, variant: "rectangular", ...props }));
559
+ var SkeletonRounded = (0, import_react2.forwardRef)((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Skeleton, { ref, variant: "rounded", ...props }));
517
560
  var SkeletonCard = (0, import_react2.forwardRef)(
518
561
  ({
519
562
  showAvatar = true,
@@ -524,7 +567,7 @@ var SkeletonCard = (0, import_react2.forwardRef)(
524
567
  className = "",
525
568
  ...props
526
569
  }, ref) => {
527
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
570
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
528
571
  "div",
529
572
  {
530
573
  ref,
@@ -534,16 +577,16 @@ var SkeletonCard = (0, import_react2.forwardRef)(
534
577
  ),
535
578
  ...props,
536
579
  children: [
537
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start space-x-3", children: [
538
- showAvatar && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonCircle, { width: 40, height: 40 }),
539
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex-1 space-y-2", children: [
540
- showTitle && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonText, { width: "60%", height: 20 }),
541
- showDescription && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonText, { lines, spacing: "small" })
580
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start space-x-3", children: [
581
+ showAvatar && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonCircle, { width: 40, height: 40 }),
582
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 space-y-2", children: [
583
+ showTitle && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonText, { width: "60%", height: 20 }),
584
+ showDescription && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonText, { lines, spacing: "small" })
542
585
  ] })
543
586
  ] }),
544
- showActions && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex justify-end space-x-2 mt-4", children: [
545
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonRectangle, { width: 80, height: 32 }),
546
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonRectangle, { width: 80, height: 32 })
587
+ showActions && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex justify-end space-x-2 mt-4", children: [
588
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonRectangle, { width: 80, height: 32 }),
589
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonRectangle, { width: 80, height: 32 })
547
590
  ] })
548
591
  ]
549
592
  }
@@ -560,19 +603,19 @@ var SkeletonList = (0, import_react2.forwardRef)(
560
603
  className = "",
561
604
  ...props
562
605
  }, ref) => {
563
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start space-x-3 p-3", children: [
564
- showAvatar && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonCircle, { width: 32, height: 32 }),
565
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex-1 space-y-2", children: [
566
- showTitle && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonText, { width: "40%", height: 16 }),
567
- showDescription && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SkeletonText, { lines, spacing: "small" })
606
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start space-x-3 p-3", children: [
607
+ showAvatar && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonCircle, { width: 32, height: 32 }),
608
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex-1 space-y-2", children: [
609
+ showTitle && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonText, { width: "40%", height: 16 }),
610
+ showDescription && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonText, { lines, spacing: "small" })
568
611
  ] })
569
612
  ] }, index)) });
570
613
  }
571
614
  );
572
615
  var SkeletonTable = (0, import_react2.forwardRef)(
573
616
  ({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
574
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
575
- showHeader && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
617
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { ref, className: cn("w-full", className), ...props, children: [
618
+ showHeader && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
576
619
  SkeletonText,
577
620
  {
578
621
  width: `${100 / columns}%`,
@@ -580,7 +623,7 @@ var SkeletonTable = (0, import_react2.forwardRef)(
580
623
  },
581
624
  index
582
625
  )) }),
583
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
626
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
584
627
  SkeletonText,
585
628
  {
586
629
  width: `${100 / columns}%`,
@@ -593,7 +636,7 @@ var SkeletonTable = (0, import_react2.forwardRef)(
593
636
  );
594
637
 
595
638
  // src/components/Table/Table.tsx
596
- var import_jsx_runtime7 = require("react/jsx-runtime");
639
+ var import_jsx_runtime8 = require("react/jsx-runtime");
597
640
  var renderHeaderElements = (children) => {
598
641
  return import_react3.Children.map(children, (child) => {
599
642
  if ((0, import_react3.isValidElement)(child) && (child.type === TableCaption || child.type === TableHeader)) {
@@ -607,7 +650,7 @@ var getNoSearchResultContent = (config, defaultTitle, defaultDescription) => {
607
650
  return config.component;
608
651
  }
609
652
  if (config.image) {
610
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
653
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
611
654
  NoSearchResult_default,
612
655
  {
613
656
  image: config.image,
@@ -616,39 +659,31 @@ var getNoSearchResultContent = (config, defaultTitle, defaultDescription) => {
616
659
  }
617
660
  );
618
661
  }
619
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "text-center", children: [
620
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-text-600 text-lg font-semibold mb-2", children: config.title || defaultTitle }),
621
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-text-500 text-sm", children: config.description || defaultDescription })
662
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "text-center", children: [
663
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-text-600 text-lg font-semibold mb-2", children: config.title || defaultTitle }),
664
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "text-text-500 text-sm", children: config.description || defaultDescription })
622
665
  ] });
623
666
  };
624
- var getEmptyStateContent = (config, defaultMessage, defaultButtonText, onButtonClick) => {
667
+ var getEmptyStateContent = (config, defaultTitle, defaultDescription) => {
625
668
  if (config?.component) {
626
669
  return config.component;
627
670
  }
628
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col items-center justify-center gap-4", children: [
629
- config?.image && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
630
- "img",
631
- {
632
- src: config.image,
633
- alt: "Empty state",
634
- className: "w-auto h-auto max-w-full"
635
- }
636
- ),
637
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: "text-text-600 text-base font-normal", children: config?.message || defaultMessage }),
638
- (config?.onButtonClick || onButtonClick) && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
639
- Button_default,
640
- {
641
- variant: "solid",
642
- action: "primary",
643
- size: "medium",
644
- onClick: config?.onButtonClick || onButtonClick,
645
- children: config?.buttonText || defaultButtonText
646
- }
647
- )
648
- ] });
671
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
672
+ EmptyState_default,
673
+ {
674
+ image: config?.image,
675
+ title: config?.title || defaultTitle,
676
+ description: config?.description || defaultDescription,
677
+ buttonText: config?.buttonText,
678
+ buttonIcon: config?.buttonIcon,
679
+ onButtonClick: config?.onButtonClick,
680
+ buttonVariant: config?.buttonVariant,
681
+ buttonAction: config?.buttonAction
682
+ }
683
+ );
649
684
  };
650
685
  var renderTableWrapper = (variant, tableRef, className, children, stateContent, tableProps) => {
651
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
686
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
652
687
  "div",
653
688
  {
654
689
  className: cn(
@@ -656,7 +691,7 @@ var renderTableWrapper = (variant, tableRef, className, children, stateContent,
656
691
  variant === "default" && "border border-border-200 rounded-xl"
657
692
  ),
658
693
  children: [
659
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
694
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
660
695
  "table",
661
696
  {
662
697
  ref: tableRef,
@@ -668,7 +703,7 @@ var renderTableWrapper = (variant, tableRef, className, children, stateContent,
668
703
  children: renderHeaderElements(children)
669
704
  }
670
705
  ),
671
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "py-8 flex justify-center", children: stateContent })
706
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "py-8 flex justify-center", children: stateContent })
672
707
  ]
673
708
  }
674
709
  );
@@ -691,13 +726,13 @@ var Table = (0, import_react3.forwardRef)(
691
726
  description: "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave."
692
727
  };
693
728
  const defaultEmptyState = {
694
- message: "Nenhum dado dispon\xEDvel no momento.",
695
- buttonText: "Adicionar item"
729
+ title: "Nenhum dado dispon\xEDvel",
730
+ description: "N\xE3o h\xE1 dados para exibir no momento."
696
731
  };
697
732
  const finalNoSearchResultState = noSearchResultState || defaultNoSearchResultState;
698
733
  const finalEmptyState = emptyState || defaultEmptyState;
699
734
  if (showLoading) {
700
- const loadingContent = loadingState?.component || /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(SkeletonTable, { rows: 5, columns: 4, showHeader: false });
735
+ const loadingContent = loadingState?.component || /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SkeletonTable, { rows: 5, columns: 4, showHeader: false });
701
736
  return renderTableWrapper(
702
737
  variant,
703
738
  ref,
@@ -725,8 +760,8 @@ var Table = (0, import_react3.forwardRef)(
725
760
  if (showEmpty) {
726
761
  const emptyContent = getEmptyStateContent(
727
762
  finalEmptyState,
728
- defaultEmptyState.message || "Nenhum dado dispon\xEDvel no momento.",
729
- defaultEmptyState.buttonText || "Adicionar item"
763
+ defaultEmptyState.title || "Nenhum dado dispon\xEDvel",
764
+ defaultEmptyState.description || "N\xE3o h\xE1 dados para exibir no momento."
730
765
  );
731
766
  return renderTableWrapper(
732
767
  variant,
@@ -737,14 +772,14 @@ var Table = (0, import_react3.forwardRef)(
737
772
  props
738
773
  );
739
774
  }
740
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
775
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
741
776
  "div",
742
777
  {
743
778
  className: cn(
744
779
  "relative w-full overflow-x-auto",
745
780
  variant === "default" && "border border-border-200 rounded-xl"
746
781
  ),
747
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
782
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
748
783
  "table",
749
784
  {
750
785
  ref,
@@ -758,7 +793,7 @@ var Table = (0, import_react3.forwardRef)(
758
793
  children: [
759
794
  !import_react3.Children.toArray(children).some(
760
795
  (child) => (0, import_react3.isValidElement)(child) && child.type === TableCaption
761
- ) && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("caption", { className: "sr-only", children: "My Table" }),
796
+ ) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("caption", { className: "sr-only", children: "My Table" }),
762
797
  children
763
798
  ]
764
799
  }
@@ -768,7 +803,7 @@ var Table = (0, import_react3.forwardRef)(
768
803
  }
769
804
  );
770
805
  Table.displayName = "Table";
771
- var TableHeader = (0, import_react3.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
806
+ var TableHeader = (0, import_react3.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
772
807
  "thead",
773
808
  {
774
809
  ref,
@@ -778,7 +813,7 @@ var TableHeader = (0, import_react3.forwardRef)(({ className, ...props }, ref) =
778
813
  ));
779
814
  TableHeader.displayName = "TableHeader";
780
815
  var TableBody = (0, import_react3.forwardRef)(
781
- ({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
816
+ ({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
782
817
  "tbody",
783
818
  {
784
819
  ref,
@@ -793,7 +828,7 @@ var TableBody = (0, import_react3.forwardRef)(
793
828
  );
794
829
  TableBody.displayName = "TableBody";
795
830
  var TableFooter = (0, import_react3.forwardRef)(
796
- ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
831
+ ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
797
832
  "tfoot",
798
833
  {
799
834
  ref,
@@ -837,7 +872,7 @@ var TableRow = (0, import_react3.forwardRef)(
837
872
  className,
838
873
  ...props
839
874
  }, ref) => {
840
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
875
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
841
876
  "tr",
842
877
  {
843
878
  ref,
@@ -869,7 +904,7 @@ var TableHead = (0, import_react3.forwardRef)(
869
904
  onSort();
870
905
  }
871
906
  };
872
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
907
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
873
908
  "th",
874
909
  {
875
910
  ref,
@@ -880,11 +915,11 @@ var TableHead = (0, import_react3.forwardRef)(
880
915
  ),
881
916
  onClick: handleClick,
882
917
  ...props,
883
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center gap-2", children: [
918
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
884
919
  children,
885
- sortable && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col", children: [
886
- sortDirection === "asc" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react2.CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
887
- sortDirection === "desc" && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_phosphor_react2.CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
920
+ sortable && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col", children: [
921
+ sortDirection === "asc" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react2.CaretUp, { size: 16, weight: "fill", className: "text-text-800" }),
922
+ sortDirection === "desc" && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react2.CaretDown, { size: 16, weight: "fill", className: "text-text-800" })
888
923
  ] })
889
924
  ] })
890
925
  }
@@ -892,7 +927,7 @@ var TableHead = (0, import_react3.forwardRef)(
892
927
  }
893
928
  );
894
929
  TableHead.displayName = "TableHead";
895
- var TableCell = (0, import_react3.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
930
+ var TableCell = (0, import_react3.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
896
931
  "td",
897
932
  {
898
933
  ref,
@@ -904,7 +939,7 @@ var TableCell = (0, import_react3.forwardRef)(({ className, ...props }, ref) =>
904
939
  }
905
940
  ));
906
941
  TableCell.displayName = "TableCell";
907
- var TableCaption = (0, import_react3.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
942
+ var TableCaption = (0, import_react3.forwardRef)(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
908
943
  "caption",
909
944
  {
910
945
  ref,
@@ -920,7 +955,7 @@ var Table_default = Table;
920
955
 
921
956
  // src/components/Badge/Badge.tsx
922
957
  var import_phosphor_react3 = require("phosphor-react");
923
- var import_jsx_runtime8 = require("react/jsx-runtime");
958
+ var import_jsx_runtime9 = require("react/jsx-runtime");
924
959
  var VARIANT_ACTION_CLASSES2 = {
925
960
  solid: {
926
961
  error: "bg-error-background text-error-700 focus-visible:outline-none",
@@ -982,14 +1017,14 @@ var Badge = ({
982
1017
  const baseClasses = "inline-flex items-center justify-center rounded-xs font-normal gap-1 relative";
983
1018
  const baseClassesIcon = "flex items-center";
984
1019
  if (variant === "notification") {
985
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1020
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
986
1021
  "div",
987
1022
  {
988
1023
  className: cn(baseClasses, variantClasses, sizeClasses, className),
989
1024
  ...props,
990
1025
  children: [
991
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_phosphor_react3.Bell, { size: 24, className: "text-current", "aria-hidden": "true" }),
992
- notificationActive && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1026
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react3.Bell, { size: 24, className: "text-current", "aria-hidden": "true" }),
1027
+ notificationActive && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
993
1028
  "span",
994
1029
  {
995
1030
  "data-testid": "notification-dot",
@@ -1000,15 +1035,15 @@ var Badge = ({
1000
1035
  }
1001
1036
  );
1002
1037
  }
1003
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1038
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1004
1039
  "div",
1005
1040
  {
1006
1041
  className: cn(baseClasses, variantClasses, sizeClasses, className),
1007
1042
  ...props,
1008
1043
  children: [
1009
- iconLeft && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconLeft }),
1044
+ iconLeft && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconLeft }),
1010
1045
  children,
1011
- iconRight && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconRight })
1046
+ iconRight && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: cn(baseClassesIcon, sizeClassesIcon), children: iconRight })
1012
1047
  ]
1013
1048
  }
1014
1049
  );
@@ -1017,7 +1052,7 @@ var Badge_default = Badge;
1017
1052
 
1018
1053
  // src/components/AlertManagerView/AlertsManagerView.tsx
1019
1054
  var import_phosphor_react4 = require("phosphor-react");
1020
- var import_jsx_runtime9 = require("react/jsx-runtime");
1055
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1021
1056
  var AlertsManagerView = ({
1022
1057
  alertData,
1023
1058
  isOpen = false,
@@ -1046,7 +1081,7 @@ var AlertsManagerView = ({
1046
1081
  year: "numeric"
1047
1082
  });
1048
1083
  };
1049
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1084
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1050
1085
  Modal_default,
1051
1086
  {
1052
1087
  isOpen,
@@ -1054,59 +1089,59 @@ var AlertsManagerView = ({
1054
1089
  title: alertData.title,
1055
1090
  size: "md",
1056
1091
  contentClassName: "p-0",
1057
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
1058
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
1059
- (imageLink || alertData.image || defaultImage) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1092
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex flex-col h-[calc(100vh-8rem)] max-h-[700px]", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex-1 overflow-y-auto px-6 py-4", children: [
1093
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl mb-4", children: [
1094
+ (imageLink || alertData.image || defaultImage) && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1060
1095
  "img",
1061
1096
  {
1062
1097
  src: imageLink || alertData.image || defaultImage || void 0,
1063
1098
  alt: alertData.title || "Imagem do alerta"
1064
1099
  }
1065
1100
  ),
1066
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col items-center text-center gap-3", children: [
1067
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
1068
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
1101
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex flex-col items-center text-center gap-3", children: [
1102
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text_default, { size: "lg", weight: "semibold", children: alertData.title || "Sem T\xEDtulo" }),
1103
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: alertData.message || "Sem mensagem" })
1069
1104
  ] })
1070
1105
  ] }),
1071
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider_default, { className: "my-4" }),
1072
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex justify-between items-center mb-4 px-2", children: [
1073
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
1074
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
1106
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Divider_default, { className: "my-4" }),
1107
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex justify-between items-center mb-4 px-2", children: [
1108
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-700", children: "Enviado em" }),
1109
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text_default, { size: "sm", weight: "medium", className: "text-text-900", children: formatDate(alertData.sentAt) })
1075
1110
  ] }),
1076
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider_default, { className: "my-4" }),
1077
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Table_default, { variant: "borderless", className: "table-fixed", children: [
1078
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(TableRow, { variant: "borderless", children: [
1079
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
1080
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
1111
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Divider_default, { className: "my-4" }),
1112
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Table_default, { variant: "borderless", className: "table-fixed", children: [
1113
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(TableRow, { variant: "borderless", children: [
1114
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TableHead, { className: "py-2 px-3.5 text-start", children: "Destinat\xE1rio" }),
1115
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TableHead, { className: "py-2 px-3.5 w-[120px] text-start", children: "Status" })
1081
1116
  ] }) }),
1082
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(TableRow, { children: [
1083
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
1084
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react4.User, { className: "text-primary-950", size: 18 }) }),
1117
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TableBody, { variant: "borderless", children: paginatedRecipients.map((recipient) => /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(TableRow, { children: [
1118
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(TableCell, { className: "py-2 px-3.5 flex flex-row gap-2 text-start truncate", children: [
1119
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "rounded-full size-6 bg-primary-100 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react4.User, { className: "text-primary-950", size: 18 }) }),
1085
1120
  recipient.name
1086
1121
  ] }),
1087
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
1122
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TableCell, { className: "py-2 px-3.5 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex justify-center items-center gap-1", children: recipient.status === "viewed" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Badge_default, { variant: "solid", action: "success", children: "Visualizado" }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Badge_default, { variant: "solid", action: "error", children: "Pendente" }) }) })
1088
1123
  ] }, recipient.id)) })
1089
1124
  ] }) }),
1090
- totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime9.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: [
1091
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
1125
+ totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime10.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: [
1126
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
1092
1127
  "P\xE1gina ",
1093
1128
  effectiveCurrentPage,
1094
1129
  " de ",
1095
1130
  totalPages
1096
1131
  ] }),
1097
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
1098
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1132
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex gap-2", children: onPageChange ? /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
1133
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1099
1134
  Button_default,
1100
1135
  {
1101
1136
  variant: "link",
1102
1137
  size: "extra-small",
1103
1138
  onClick: () => onPageChange(Math.max(1, effectiveCurrentPage - 1)),
1104
1139
  disabled: effectiveCurrentPage === 1,
1105
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react4.CaretLeft, {}),
1140
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react4.CaretLeft, {}),
1106
1141
  children: "Anterior"
1107
1142
  }
1108
1143
  ),
1109
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1144
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1110
1145
  Button_default,
1111
1146
  {
1112
1147
  variant: "link",
@@ -1115,28 +1150,28 @@ var AlertsManagerView = ({
1115
1150
  Math.min(totalPages, effectiveCurrentPage + 1)
1116
1151
  ),
1117
1152
  disabled: effectiveCurrentPage === totalPages,
1118
- iconRight: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react4.CaretRight, {}),
1153
+ iconRight: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react4.CaretRight, {}),
1119
1154
  children: "Pr\xF3ximo"
1120
1155
  }
1121
1156
  )
1122
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
1123
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1157
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
1158
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1124
1159
  Button_default,
1125
1160
  {
1126
1161
  variant: "link",
1127
1162
  size: "extra-small",
1128
1163
  disabled: effectiveCurrentPage === 1,
1129
- iconLeft: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react4.CaretLeft, {}),
1164
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react4.CaretLeft, {}),
1130
1165
  children: "Anterior"
1131
1166
  }
1132
1167
  ),
1133
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1168
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1134
1169
  Button_default,
1135
1170
  {
1136
1171
  variant: "link",
1137
1172
  size: "extra-small",
1138
1173
  disabled: effectiveCurrentPage === totalPages,
1139
- iconRight: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_phosphor_react4.CaretRight, {}),
1174
+ iconRight: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_phosphor_react4.CaretRight, {}),
1140
1175
  children: "Pr\xF3ximo"
1141
1176
  }
1142
1177
  )