@meith/theme-default 0.30.0 → 0.30.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 +3 -3
- package/src/slots/footer.tsx +9 -1
- package/src/slots/forum-jump.tsx +25 -33
- 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.30.
|
|
3
|
+
"version": "0.30.1",
|
|
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.30.
|
|
24
|
-
"@meith/ui": "^0.30.
|
|
23
|
+
"@meith/theme-kit": "^0.30.1",
|
|
24
|
+
"@meith/ui": "^0.30.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.0"
|
package/src/slots/footer.tsx
CHANGED
|
@@ -8,12 +8,20 @@ export function Footer({
|
|
|
8
8
|
links,
|
|
9
9
|
timezoneLabel,
|
|
10
10
|
poweredBy,
|
|
11
|
+
regions,
|
|
11
12
|
copy,
|
|
12
13
|
}: FooterModel & { copy: SlotCopy }) {
|
|
13
14
|
const c = (key: string) => fromSlotCopy(copy, `default.footer.${key}`)
|
|
14
15
|
|
|
15
16
|
return (
|
|
16
17
|
<footer className="mt-auto border-t border-border bg-card">
|
|
18
|
+
{regions?.controls && (
|
|
19
|
+
<div
|
|
20
|
+
className={`${PAGE} flex flex-wrap items-center justify-end gap-x-6 gap-y-2 border-b border-border py-3`}
|
|
21
|
+
>
|
|
22
|
+
{regions.controls}
|
|
23
|
+
</div>
|
|
24
|
+
)}
|
|
17
25
|
<div
|
|
18
26
|
className={`${PAGE} flex flex-col gap-2 py-5 text-xs text-muted-foreground sm:flex-row sm:items-center sm:justify-between sm:gap-6`}
|
|
19
27
|
>
|
|
@@ -34,7 +42,7 @@ export function Footer({
|
|
|
34
42
|
{c('timesShownIn')} {timezoneLabel}
|
|
35
43
|
</span>
|
|
36
44
|
{poweredBy && (
|
|
37
|
-
<a href={poweredBy.href} className={MUTED_LINK}>
|
|
45
|
+
<a href={poweredBy.href} target="_blank" rel="noreferrer" className={MUTED_LINK}>
|
|
38
46
|
{poweredBy.label}
|
|
39
47
|
</a>
|
|
40
48
|
)}
|
package/src/slots/forum-jump.tsx
CHANGED
|
@@ -1,46 +1,38 @@
|
|
|
1
1
|
import type { ForumJumpModel } from '@meith/theme-kit'
|
|
2
2
|
import { buttonVariants, Label, NativeSelect } from '@meith/ui'
|
|
3
3
|
|
|
4
|
-
import { PAGE } from '../shared'
|
|
5
|
-
|
|
6
4
|
export function ForumJump({ action, field, forums, submitLabel, label }: ForumJumpModel) {
|
|
7
5
|
if (forums.length === 0) return null
|
|
8
6
|
|
|
9
7
|
const id = `forum-jump-${field}`
|
|
10
8
|
|
|
11
9
|
return (
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
className={`${PAGE} flex flex-wrap items-center gap-2 py-3 sm:justify-end`}
|
|
17
|
-
>
|
|
18
|
-
<Label htmlFor={id} className="text-xs text-muted-foreground">
|
|
19
|
-
{label}
|
|
20
|
-
</Label>
|
|
10
|
+
<form method="get" action={action} className="flex flex-wrap items-center gap-2">
|
|
11
|
+
<Label htmlFor={id} className="text-xs text-muted-foreground">
|
|
12
|
+
{label}
|
|
13
|
+
</Label>
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
15
|
+
<NativeSelect
|
|
16
|
+
id={id}
|
|
17
|
+
name={field}
|
|
18
|
+
defaultValue={forums.find((forum) => forum.isSelected)?.value ?? ''}
|
|
19
|
+
className="h-8 w-auto min-w-48 flex-1 text-xs sm:flex-none"
|
|
20
|
+
>
|
|
21
|
+
{forums.map((forum) => (
|
|
22
|
+
<option
|
|
23
|
+
key={forum.value}
|
|
24
|
+
value={forum.value}
|
|
25
|
+
disabled={forum.isCategory}
|
|
26
|
+
label={`${' '.repeat(forum.depth)}${forum.label}`}
|
|
27
|
+
>
|
|
28
|
+
{`${' '.repeat(forum.depth)}${forum.label}`}
|
|
29
|
+
</option>
|
|
30
|
+
))}
|
|
31
|
+
</NativeSelect>
|
|
39
32
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</div>
|
|
33
|
+
<button type="submit" className={buttonVariants({ variant: 'outline', size: 'sm' })}>
|
|
34
|
+
{submitLabel}
|
|
35
|
+
</button>
|
|
36
|
+
</form>
|
|
45
37
|
)
|
|
46
38
|
}
|