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.js CHANGED
@@ -10776,12 +10776,19 @@ var NotificationHeader = ({
10776
10776
  unreadCount,
10777
10777
  variant = "modal"
10778
10778
  }) => {
10779
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between", children: [
10779
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
10780
10780
  variant === "modal" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Notifica\xE7\xF5es" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("h3", { className: "text-sm font-semibold text-text-950", children: "Notifica\xE7\xF5es" }),
10781
- unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "px-2 py-1 bg-info-100 text-info-700 text-xs rounded-full", children: [
10782
- unreadCount,
10783
- " n\xE3o lidas"
10784
- ] })
10781
+ unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
10782
+ Badge_default,
10783
+ {
10784
+ variant: "solid",
10785
+ action: "info",
10786
+ size: "small",
10787
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_phosphor_react21.Bell, { size: 12, "aria-hidden": "true", focusable: "false" }),
10788
+ className: "border-0",
10789
+ children: unreadCount === 1 ? "1 n\xE3o lida" : `${unreadCount} n\xE3o lidas`
10790
+ }
10791
+ )
10785
10792
  ] });
10786
10793
  };
10787
10794
  var SingleNotificationCard = ({
@@ -10994,18 +11001,18 @@ var NotificationCenter = ({
10994
11001
  closeOnBackdropClick: true,
10995
11002
  closeOnEscape: true,
10996
11003
  children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
10997
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "px-0 pb-3 border-b border-border-200", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between", children: [
11004
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "px-0 pb-3 border-b border-border-200", children: [
10998
11005
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NotificationHeader, { unreadCount, variant: "modal" }),
10999
11006
  unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11000
11007
  "button",
11001
11008
  {
11002
11009
  type: "button",
11003
11010
  onClick: onMarkAllAsRead,
11004
- className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer",
11011
+ className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer mt-2",
11005
11012
  children: "Marcar todas como lidas"
11006
11013
  }
11007
11014
  )
11008
- ] }) }),
11015
+ ] }),
11009
11016
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11010
11017
  NotificationList,
11011
11018
  {
@@ -11052,24 +11059,18 @@ var NotificationCenter = ({
11052
11059
  side: "bottom",
11053
11060
  align: "end",
11054
11061
  children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col", children: [
11055
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "px-4 py-3 border-b border-border-200", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex items-center justify-between", children: [
11056
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11057
- NotificationHeader,
11058
- {
11059
- unreadCount,
11060
- variant: "dropdown"
11061
- }
11062
- ),
11062
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "px-4 py-3 border-b border-border-200", children: [
11063
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(NotificationHeader, { unreadCount, variant: "dropdown" }),
11063
11064
  unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11064
11065
  "button",
11065
11066
  {
11066
11067
  type: "button",
11067
11068
  onClick: onMarkAllAsRead,
11068
- className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer",
11069
+ className: "text-sm font-medium text-info-600 hover:text-info-700 cursor-pointer mt-2",
11069
11070
  children: "Marcar todas como lidas"
11070
11071
  }
11071
11072
  )
11072
- ] }) }),
11073
+ ] }),
11073
11074
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "max-h-[350px] overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
11074
11075
  NotificationList,
11075
11076
  {