analytica-frontend-lib 1.1.52 → 1.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -10745,12 +10745,19 @@ var NotificationHeader = ({
10745
10745
  unreadCount,
10746
10746
  variant = "modal"
10747
10747
  }) => {
10748
- return /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between", children: [
10748
+ return /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between gap-2", children: [
10749
10749
  variant === "modal" ? /* @__PURE__ */ jsx42(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Notifica\xE7\xF5es" }) : /* @__PURE__ */ jsx42("h3", { className: "text-sm font-semibold text-text-950", children: "Notifica\xE7\xF5es" }),
10750
- unreadCount > 0 && /* @__PURE__ */ jsxs35("span", { className: "px-2 py-1 bg-info-100 text-info-700 text-xs rounded-full", children: [
10751
- unreadCount,
10752
- " n\xE3o lidas"
10753
- ] })
10750
+ unreadCount > 0 && /* @__PURE__ */ jsx42(
10751
+ Badge_default,
10752
+ {
10753
+ variant: "solid",
10754
+ action: "info",
10755
+ size: "small",
10756
+ iconLeft: /* @__PURE__ */ jsx42(Bell2, { size: 12, "aria-hidden": "true", focusable: "false" }),
10757
+ className: "border-0",
10758
+ children: unreadCount === 1 ? "1 n\xE3o lida" : `${unreadCount} n\xE3o lidas`
10759
+ }
10760
+ )
10754
10761
  ] });
10755
10762
  };
10756
10763
  var SingleNotificationCard = ({
@@ -10963,18 +10970,18 @@ var NotificationCenter = ({
10963
10970
  closeOnBackdropClick: true,
10964
10971
  closeOnEscape: true,
10965
10972
  children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
10966
- /* @__PURE__ */ jsx42("div", { className: "px-0 pb-3 border-b border-border-200", children: /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between", children: [
10973
+ /* @__PURE__ */ jsxs35("div", { className: "px-0 pb-3 border-b border-border-200", children: [
10967
10974
  /* @__PURE__ */ jsx42(NotificationHeader, { unreadCount, variant: "modal" }),
10968
10975
  unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx42(
10969
10976
  "button",
10970
10977
  {
10971
10978
  type: "button",
10972
10979
  onClick: onMarkAllAsRead,
10973
- className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer",
10980
+ className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer mt-2",
10974
10981
  children: "Marcar todas como lidas"
10975
10982
  }
10976
10983
  )
10977
- ] }) }),
10984
+ ] }),
10978
10985
  /* @__PURE__ */ jsx42("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx42(
10979
10986
  NotificationList,
10980
10987
  {
@@ -11021,24 +11028,18 @@ var NotificationCenter = ({
11021
11028
  side: "bottom",
11022
11029
  align: "end",
11023
11030
  children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col", children: [
11024
- /* @__PURE__ */ jsx42("div", { className: "px-4 py-3 border-b border-border-200", children: /* @__PURE__ */ jsxs35("div", { className: "flex items-center justify-between", children: [
11025
- /* @__PURE__ */ jsx42(
11026
- NotificationHeader,
11027
- {
11028
- unreadCount,
11029
- variant: "dropdown"
11030
- }
11031
- ),
11031
+ /* @__PURE__ */ jsxs35("div", { className: "px-4 py-3 border-b border-border-200", children: [
11032
+ /* @__PURE__ */ jsx42(NotificationHeader, { unreadCount, variant: "dropdown" }),
11032
11033
  unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx42(
11033
11034
  "button",
11034
11035
  {
11035
11036
  type: "button",
11036
11037
  onClick: onMarkAllAsRead,
11037
- className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer",
11038
+ className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer mt-2",
11038
11039
  children: "Marcar todas como lidas"
11039
11040
  }
11040
11041
  )
11041
- ] }) }),
11042
+ ] }),
11042
11043
  /* @__PURE__ */ jsx42("div", { className: "max-h-[350px] overflow-y-auto", children: /* @__PURE__ */ jsx42(
11043
11044
  NotificationList,
11044
11045
  {