@meith/theme-clubhouse 0.23.1 → 0.23.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/package.json +4 -4
- package/src/copy.ts +2 -0
- package/src/messages/en.json +2 -0
- package/src/slots/thread-row.tsx +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meith/theme-clubhouse",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.2",
|
|
4
4
|
"description": "A sports club theme for Meith — GAA, soccer, basketball — painted from the club's own two colours.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@meith/theme-default": "^0.23.
|
|
24
|
-
"@meith/theme-kit": "^0.23.
|
|
25
|
-
"@meith/ui": "^0.23.
|
|
23
|
+
"@meith/theme-default": "^0.23.2",
|
|
24
|
+
"@meith/theme-kit": "^0.23.2",
|
|
25
|
+
"@meith/ui": "^0.23.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": "^19.2.0"
|
package/src/copy.ts
CHANGED
|
@@ -179,6 +179,8 @@ export function threadRowCopy(t: Translator): SlotCopy {
|
|
|
179
179
|
'clubhouse.threadRow.latestReply',
|
|
180
180
|
'clubhouse.threadRow.locked',
|
|
181
181
|
'clubhouse.threadRow.moved',
|
|
182
|
+
'clubhouse.threadRow.deleted',
|
|
183
|
+
'clubhouse.threadRow.unapproved',
|
|
182
184
|
'clubhouse.threadRow.newPosts',
|
|
183
185
|
'clubhouse.threadRow.noRepliesYet',
|
|
184
186
|
'clubhouse.threadRow.pinned',
|
package/src/messages/en.json
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"clubhouse.subforumList.posts": "posts",
|
|
90
90
|
"clubhouse.subforumList.threads": "threads",
|
|
91
91
|
"clubhouse.subforumList.title": "Subforums",
|
|
92
|
+
"clubhouse.threadRow.deleted": "Deleted",
|
|
92
93
|
"clubhouse.threadRow.latestReply": "Latest reply",
|
|
93
94
|
"clubhouse.threadRow.locked": "Locked",
|
|
94
95
|
"clubhouse.threadRow.moved": "Moved",
|
|
@@ -97,6 +98,7 @@
|
|
|
97
98
|
"clubhouse.threadRow.pinned": "Pinned",
|
|
98
99
|
"clubhouse.threadRow.replies": "replies",
|
|
99
100
|
"clubhouse.threadRow.startedBy": "Started by",
|
|
101
|
+
"clubhouse.threadRow.unapproved": "Pending",
|
|
100
102
|
"clubhouse.threadRow.views": "views",
|
|
101
103
|
"clubhouse.threadView.lockedNoReplies": "Locked — no new replies",
|
|
102
104
|
"clubhouse.threadView.markRead": "Mark read",
|
package/src/slots/thread-row.tsx
CHANGED
|
@@ -7,10 +7,14 @@ import { HEADING, LINK, MICRO, Prefix, ReadMark, Stamp, TABLE_ROW, Tally, UserRe
|
|
|
7
7
|
export function ThreadRow({ thread, select, copy }: ThreadRowSlotModel & { copy: SlotCopy }) {
|
|
8
8
|
const c = (key: string) => fromSlotCopy(copy, `clubhouse.threadRow.${key}`)
|
|
9
9
|
|
|
10
|
+
const hidden = thread.visibility === 'deleted' || thread.visibility === 'unapproved'
|
|
11
|
+
const tint = thread.visibility === 'deleted' ? 'bg-thread-deleted/8' : 'bg-thread-unapproved/8'
|
|
12
|
+
|
|
10
13
|
return (
|
|
11
14
|
<li
|
|
12
15
|
data-unread={thread.isUnread ? '' : undefined}
|
|
13
|
-
|
|
16
|
+
data-visibility={hidden ? thread.visibility : undefined}
|
|
17
|
+
className={`${TABLE_ROW} transition-colors hover:bg-accent ${hidden ? tint : ''}`}
|
|
14
18
|
>
|
|
15
19
|
<span className="flex items-start gap-2">
|
|
16
20
|
{select !== null && (
|
|
@@ -35,6 +39,8 @@ export function ThreadRow({ thread, select, copy }: ThreadRowSlotModel & { copy:
|
|
|
35
39
|
{thread.isSticky && <Badge tone="pinned">{c('pinned')}</Badge>}
|
|
36
40
|
{thread.isLocked && <Badge tone="locked">{c('locked')}</Badge>}
|
|
37
41
|
{thread.isMoved && <Badge tone="moved">{c('moved')}</Badge>}
|
|
42
|
+
{thread.visibility === 'unapproved' && <Badge tone="unapproved">{c('unapproved')}</Badge>}
|
|
43
|
+
{thread.visibility === 'deleted' && <Badge tone="deleted">{c('deleted')}</Badge>}
|
|
38
44
|
|
|
39
45
|
<a
|
|
40
46
|
href={thread.href}
|