@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.cjs +10 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -20
- package/dist/index.js.map +1 -1
- package/dist/src/components/notification.d.ts +0 -2
- package/dist/src/components/notification.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3898,12 +3898,6 @@ function ModalActions({
|
|
|
3898
3898
|
)
|
|
3899
3899
|
] });
|
|
3900
3900
|
}
|
|
3901
|
-
function NotificationDivider({ label }) {
|
|
3902
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 px-4 py-2", children: [
|
|
3903
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "shrink-0 text-sm leading-5 text-subtle-text", children: label }),
|
|
3904
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { "aria-hidden": "true", className: "h-px min-w-0 flex-1 bg-divider" })
|
|
3905
|
-
] });
|
|
3906
|
-
}
|
|
3907
3901
|
function NotificationRow({
|
|
3908
3902
|
item,
|
|
3909
3903
|
onItemClick,
|
|
@@ -3973,7 +3967,6 @@ const Notification = React.forwardRef(
|
|
|
3973
3967
|
badgeCount,
|
|
3974
3968
|
panelWidth = 375,
|
|
3975
3969
|
emptyText = "No notifications",
|
|
3976
|
-
showGroupLabels = true,
|
|
3977
3970
|
clearBadgeOnOpen = true,
|
|
3978
3971
|
open,
|
|
3979
3972
|
defaultOpen,
|
|
@@ -4074,19 +4067,16 @@ const Notification = React.forwardRef(
|
|
|
4074
4067
|
style: { width: (mobileAlign == null ? void 0 : mobileAlign.width) ?? panelWidth },
|
|
4075
4068
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-h-[480px] overflow-y-auto", children: [
|
|
4076
4069
|
!hasItems && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-8 text-center text-sm text-muted-foreground", children: emptyText }),
|
|
4077
|
-
groups.map((group) => /* @__PURE__ */ jsxRuntime.
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
item.id
|
|
4088
|
-
)) })
|
|
4089
|
-
] }, group.label))
|
|
4070
|
+
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "divide-y divide-divider", children: group.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4071
|
+
NotificationRow,
|
|
4072
|
+
{
|
|
4073
|
+
item,
|
|
4074
|
+
onItemClick: handleItemClick,
|
|
4075
|
+
hideIndicator: clickedItemIds.has(item.id),
|
|
4076
|
+
demoteNewBackground: wasDismissed
|
|
4077
|
+
},
|
|
4078
|
+
item.id
|
|
4079
|
+
)) }) }, group.label))
|
|
4090
4080
|
] })
|
|
4091
4081
|
}
|
|
4092
4082
|
) })
|