@meith/theme-midnight 0.10.0 → 0.11.0
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/package.json +3 -3
- package/src/slots/user-panel.tsx +16 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meith/theme-midnight",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "A dark theme for Meith, built on the default theme's slots.",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"repository": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@meith/theme-default": "^0.
|
|
24
|
-
"@meith/theme-kit": "^0.
|
|
23
|
+
"@meith/theme-default": "^0.11.0",
|
|
24
|
+
"@meith/theme-kit": "^0.11.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.0"
|
package/src/slots/user-panel.tsx
CHANGED
|
@@ -8,6 +8,7 @@ export function UserPanel({
|
|
|
8
8
|
unreadMessages,
|
|
9
9
|
notificationsHref,
|
|
10
10
|
messagesHref,
|
|
11
|
+
regions,
|
|
11
12
|
children,
|
|
12
13
|
copy,
|
|
13
14
|
}: UserPanelModel & { copy: SlotCopy }) {
|
|
@@ -19,16 +20,21 @@ export function UserPanel({
|
|
|
19
20
|
{viewer.isGuest ? c('guest') : (viewer.username ?? c('signedIn'))}
|
|
20
21
|
</span>
|
|
21
22
|
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
{regions?.notifications ?? (
|
|
24
|
+
<>
|
|
25
|
+
{unreadNotifications.value > 0 && (
|
|
26
|
+
<a href={notificationsHref} className="text-accent hover:underline">
|
|
27
|
+
[{unreadNotifications.label} {c('new')}]
|
|
28
|
+
<span className="sr-only"> {c('notificationsSrOnly')}</span>
|
|
29
|
+
</a>
|
|
30
|
+
)}
|
|
31
|
+
{unreadMessages.value > 0 && (
|
|
32
|
+
<a href={messagesHref} className="text-accent hover:underline">
|
|
33
|
+
[{unreadMessages.label} {c('pm')}]
|
|
34
|
+
<span className="sr-only"> {c('messagesSrOnly')}</span>
|
|
35
|
+
</a>
|
|
36
|
+
)}
|
|
37
|
+
</>
|
|
32
38
|
)}
|
|
33
39
|
|
|
34
40
|
{links.map((link) => (
|