@arbidocs/react 0.3.161 → 0.3.162

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
@@ -5332,9 +5332,7 @@ function NotificationBell({
5332
5332
  const markAllRead = useNotify((s) => s.markAllRead);
5333
5333
  const markRead = useNotify((s) => s.markRead);
5334
5334
  const tone = (v) => toneClassNames?.[v] ?? DEFAULT_NOTIFY_TONE[v];
5335
- const [showAll, setShowAll] = useState(false);
5336
- const hasAmbient = notifications.some((n) => n.ambient);
5337
- const visible = showAll ? notifications : notifications.filter((n) => !n.ambient);
5335
+ const visible = notifications.filter((n) => !n.ambient);
5338
5336
  return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
5339
5337
  /* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
5340
5338
  "button",
@@ -5367,19 +5365,6 @@ function NotificationBell({
5367
5365
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-border px-3.5 py-2.5", children: [
5368
5366
  /* @__PURE__ */ jsx("p", { className: "text-sm font-semibold text-foreground", children: "Notifications" }),
5369
5367
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
5370
- hasAmbient && /* @__PURE__ */ jsx(
5371
- "button",
5372
- {
5373
- onClick: () => setShowAll((v) => !v),
5374
- "aria-pressed": showAll,
5375
- className: cn(
5376
- "text-xs font-medium transition-colors",
5377
- showAll ? "text-primary" : "text-muted-foreground hover:text-foreground"
5378
- ),
5379
- "data-testid": `${testId}-all-activity`,
5380
- children: "All activity"
5381
- }
5382
- ),
5383
5368
  unread > 0 && /* @__PURE__ */ jsxs(
5384
5369
  "button",
5385
5370
  {