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