@meith/theme-default 0.36.0 → 0.36.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 +3 -3
- package/src/copy.ts +1 -6
- package/src/messages/en.json +0 -2
- package/src/slots/board-index.tsx +8 -20
- package/src/slots/post-bit.tsx +1 -1
- package/src/theme.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meith/theme-default",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.2",
|
|
4
4
|
"description": "Meith's default theme — every slot and every token, and the reference for what a complete theme fills.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@meith/theme-kit": "^0.36.
|
|
24
|
-
"@meith/ui": "^0.36.
|
|
23
|
+
"@meith/theme-kit": "^0.36.2",
|
|
24
|
+
"@meith/ui": "^0.36.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.0"
|
package/src/copy.ts
CHANGED
|
@@ -29,12 +29,7 @@ export function announcementCopy(t: Translator): SlotCopy {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export function boardIndexCopy(t: Translator): SlotCopy {
|
|
32
|
-
return copyFor(t, [
|
|
33
|
-
'default.boardIndex.boardActivity',
|
|
34
|
-
'default.boardIndex.markAllRead',
|
|
35
|
-
'default.boardIndex.heading',
|
|
36
|
-
'default.boardIndex.description',
|
|
37
|
-
])
|
|
32
|
+
return copyFor(t, ['default.boardIndex.boardActivity', 'default.boardIndex.markAllRead'])
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
export function boardStatsCopy(t: Translator): SlotCopy {
|
package/src/messages/en.json
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
"default.announcement.posted": "Posted",
|
|
3
3
|
"default.announcement.postedBy": "Posted by",
|
|
4
4
|
"default.boardIndex.boardActivity": "Board activity",
|
|
5
|
-
"default.boardIndex.description": "Find your next conversation.",
|
|
6
|
-
"default.boardIndex.heading": "Community",
|
|
7
5
|
"default.boardIndex.markAllRead": "Mark all forums read",
|
|
8
6
|
"default.boardStats.counted": "Counted",
|
|
9
7
|
"default.boardStats.heading": "Board statistics",
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { BoardIndexModel, SlotCopy } from '@meith/theme-kit'
|
|
2
2
|
import { fromSlotCopy } from '@meith/theme-kit'
|
|
3
|
-
import {
|
|
4
|
-
buttonVariants,
|
|
5
|
-
PageDescription,
|
|
6
|
-
PageHeader,
|
|
7
|
-
PageHeaderContent,
|
|
8
|
-
PageTitle,
|
|
9
|
-
} from '@meith/ui'
|
|
3
|
+
import { buttonVariants } from '@meith/ui'
|
|
10
4
|
|
|
11
5
|
import { PAGE_BODY } from '../shared'
|
|
12
6
|
|
|
@@ -27,19 +21,13 @@ export function BoardIndex({
|
|
|
27
21
|
<div className="flex flex-col gap-3">{regions.announcements}</div>
|
|
28
22
|
)}
|
|
29
23
|
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<button type="submit" className={buttonVariants({ variant: 'ghost', size: 'sm' })}>
|
|
38
|
-
{c('markAllRead')}
|
|
39
|
-
</button>
|
|
40
|
-
</form>
|
|
41
|
-
)}
|
|
42
|
-
</PageHeader>
|
|
24
|
+
{markAllReadAction !== null && (
|
|
25
|
+
<form action={markAllReadAction} method="post" className="self-end">
|
|
26
|
+
<button type="submit" className={buttonVariants({ variant: 'ghost', size: 'sm' })}>
|
|
27
|
+
{c('markAllRead')}
|
|
28
|
+
</button>
|
|
29
|
+
</form>
|
|
30
|
+
)}
|
|
43
31
|
|
|
44
32
|
<div
|
|
45
33
|
className={
|
package/src/slots/post-bit.tsx
CHANGED
|
@@ -237,7 +237,7 @@ export function PostBit({ post, select, regions, copy }: PostBitSlotModel & { co
|
|
|
237
237
|
) : (
|
|
238
238
|
<div className={`flex-1 py-4 sm:py-5 ${BODY_X}`}>
|
|
239
239
|
<div
|
|
240
|
-
className="prose-md
|
|
240
|
+
className="prose-md text-[0.9375rem] sm:text-base"
|
|
241
241
|
dangerouslySetInnerHTML={{ __html: post.bodyHtml }}
|
|
242
242
|
/>
|
|
243
243
|
|