@meith/theme-clubhouse 0.10.0 → 0.11.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/theme-clubhouse",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "A sports club theme for Meith — GAA, soccer, basketball — painted from the club's own two colours.",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-default": "^0.10.0",
24
- "@meith/theme-kit": "^0.10.0",
25
- "@meith/ui": "^0.10.0"
23
+ "@meith/theme-default": "^0.11.1",
24
+ "@meith/theme-kit": "^0.11.1",
25
+ "@meith/ui": "^0.11.1"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.2.0"
@@ -36,6 +36,7 @@ export function UserPanel({
36
36
  unreadMessages,
37
37
  notificationsHref,
38
38
  messagesHref,
39
+ regions,
39
40
  children,
40
41
  copy,
41
42
  }: UserPanelModel & { copy: SlotCopy }) {
@@ -74,19 +75,23 @@ export function UserPanel({
74
75
  />
75
76
 
76
77
  <div className="flex min-w-0 items-center gap-2">
77
- {unreadNotifications.value > 0 && (
78
- <Count href={notificationsHref} className="bg-primary text-primary-foreground">
79
- {unreadNotifications.label}
80
- <span className="sr-only"> {c('unreadNotifications')}</span>
81
- <span aria-hidden="true">{c('new')}</span>
82
- </Count>
83
- )}
84
- {unreadMessages.value > 0 && (
85
- <Count href={messagesHref} className="border border-border text-foreground">
86
- {unreadMessages.label}
87
- <span className="sr-only"> {c('unreadMessages')}</span>
88
- <span aria-hidden="true">{c('unread')}</span>
89
- </Count>
78
+ {regions?.notifications ?? (
79
+ <>
80
+ {unreadNotifications.value > 0 && (
81
+ <Count href={notificationsHref} className="bg-primary text-primary-foreground">
82
+ {unreadNotifications.label}
83
+ <span className="sr-only"> {c('unreadNotifications')}</span>
84
+ <span aria-hidden="true">{c('new')}</span>
85
+ </Count>
86
+ )}
87
+ {unreadMessages.value > 0 && (
88
+ <Count href={messagesHref} className="border border-border text-foreground">
89
+ {unreadMessages.label}
90
+ <span className="sr-only"> {c('unreadMessages')}</span>
91
+ <span aria-hidden="true">{c('unread')}</span>
92
+ </Count>
93
+ )}
94
+ </>
90
95
  )}
91
96
 
92
97
  <span data-account="menu" className="flex min-w-0 items-center">