@sarunyu/system-one 4.8.1 → 4.8.2

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
@@ -3879,12 +3879,6 @@ function ModalActions({
3879
3879
  )
3880
3880
  ] });
3881
3881
  }
3882
- function NotificationDivider({ label }) {
3883
- return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-4 py-2", children: [
3884
- /* @__PURE__ */ jsx("p", { className: "shrink-0 text-sm leading-5 text-subtle-text", children: label }),
3885
- /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "h-px min-w-0 flex-1 bg-divider" })
3886
- ] });
3887
- }
3888
3882
  function NotificationRow({
3889
3883
  item,
3890
3884
  onItemClick,
@@ -3954,7 +3948,6 @@ const Notification = forwardRef(
3954
3948
  badgeCount,
3955
3949
  panelWidth = 375,
3956
3950
  emptyText = "No notifications",
3957
- showGroupLabels = true,
3958
3951
  clearBadgeOnOpen = true,
3959
3952
  open,
3960
3953
  defaultOpen,
@@ -4055,19 +4048,16 @@ const Notification = forwardRef(
4055
4048
  style: { width: (mobileAlign == null ? void 0 : mobileAlign.width) ?? panelWidth },
4056
4049
  children: /* @__PURE__ */ jsxs("div", { className: "max-h-[480px] overflow-y-auto", children: [
4057
4050
  !hasItems && /* @__PURE__ */ jsx("div", { className: "px-4 py-8 text-center text-sm text-muted-foreground", children: emptyText }),
4058
- groups.map((group) => /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
4059
- showGroupLabels && group.label ? /* @__PURE__ */ jsx(NotificationDivider, { label: group.label }) : null,
4060
- /* @__PURE__ */ jsx("div", { className: "divide-y divide-divider", children: group.items.map((item) => /* @__PURE__ */ jsx(
4061
- NotificationRow,
4062
- {
4063
- item,
4064
- onItemClick: handleItemClick,
4065
- hideIndicator: clickedItemIds.has(item.id),
4066
- demoteNewBackground: wasDismissed
4067
- },
4068
- item.id
4069
- )) })
4070
- ] }, group.label))
4051
+ groups.map((group) => /* @__PURE__ */ jsx("div", { className: "w-full", children: /* @__PURE__ */ jsx("div", { className: "divide-y divide-divider", children: group.items.map((item) => /* @__PURE__ */ jsx(
4052
+ NotificationRow,
4053
+ {
4054
+ item,
4055
+ onItemClick: handleItemClick,
4056
+ hideIndicator: clickedItemIds.has(item.id),
4057
+ demoteNewBackground: wasDismissed
4058
+ },
4059
+ item.id
4060
+ )) }) }, group.label))
4071
4061
  ] })
4072
4062
  }
4073
4063
  ) })