@meith/theme-phasebook 0.2.0 → 0.3.3
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-phasebook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "A theme for Meith with a familiar social shape, built on the default theme's slots.",
|
|
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-
|
|
24
|
-
"@meith/theme-
|
|
25
|
-
"@meith/ui": "^0.
|
|
23
|
+
"@meith/theme-kit": "^0.3.3",
|
|
24
|
+
"@meith/theme-default": "^0.3.3",
|
|
25
|
+
"@meith/ui": "^0.3.3"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^19.2.0"
|
package/src/slots/panel-page.tsx
CHANGED
|
@@ -3,14 +3,20 @@ import type { PanelPageModel, PanelSectionModel } from '@meith/theme-kit'
|
|
|
3
3
|
|
|
4
4
|
import { MUTED_LINK } from '../shared'
|
|
5
5
|
|
|
6
|
-
export function PanelPage({ title, back, width, gap, regions, children }: PanelPageModel) {
|
|
6
|
+
export function PanelPage({ title, back, frame, width, gap, regions, children }: PanelPageModel) {
|
|
7
7
|
return (
|
|
8
8
|
<main
|
|
9
9
|
id="board-content"
|
|
10
10
|
tabIndex={-1}
|
|
11
11
|
className={cn(
|
|
12
12
|
'flex w-full flex-col',
|
|
13
|
-
|
|
13
|
+
frame === 'standalone'
|
|
14
|
+
? `mx-auto flex-1 px-3 py-4 sm:px-4 lg:py-6 ${
|
|
15
|
+
width === 'wide' ? 'max-w-6xl' : 'max-w-4xl'
|
|
16
|
+
}`
|
|
17
|
+
: width === 'wide'
|
|
18
|
+
? 'max-w-none'
|
|
19
|
+
: 'max-w-4xl',
|
|
14
20
|
gap === 'loose' ? 'gap-4' : 'gap-3',
|
|
15
21
|
)}
|
|
16
22
|
>
|
package/src/slots/user-panel.tsx
CHANGED
|
@@ -79,6 +79,8 @@ export function UserPanel({
|
|
|
79
79
|
links,
|
|
80
80
|
unreadNotifications,
|
|
81
81
|
unreadMessages,
|
|
82
|
+
notificationsHref,
|
|
83
|
+
messagesHref,
|
|
82
84
|
children,
|
|
83
85
|
}: UserPanelModel) {
|
|
84
86
|
if (viewer.isGuest) {
|
|
@@ -94,8 +96,6 @@ export function UserPanel({
|
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
const name = viewer.username ?? 'Signed in'
|
|
97
|
-
const hrefFor = (label: string): string | null =>
|
|
98
|
-
links.find((link) => link.label === label)?.href ?? null
|
|
99
99
|
|
|
100
100
|
return (
|
|
101
101
|
<div className="flex items-center gap-2">
|
|
@@ -107,14 +107,14 @@ export function UserPanel({
|
|
|
107
107
|
/>
|
|
108
108
|
|
|
109
109
|
{unreadNotifications > 0 && (
|
|
110
|
-
<IconButton href={
|
|
110
|
+
<IconButton href={notificationsHref ?? null} title="Notifications">
|
|
111
111
|
<BellIcon />
|
|
112
112
|
<CountBadge value={unreadNotifications} label="unread notifications" />
|
|
113
113
|
</IconButton>
|
|
114
114
|
)}
|
|
115
115
|
|
|
116
116
|
{unreadMessages > 0 && (
|
|
117
|
-
<IconButton href={
|
|
117
|
+
<IconButton href={messagesHref ?? null} title="Messages">
|
|
118
118
|
<MessageIcon />
|
|
119
119
|
<CountBadge value={unreadMessages} label="unread messages" />
|
|
120
120
|
</IconButton>
|