@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meith/theme-default",
3
- "version": "0.30.0",
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.0",
24
- "@meith/ui": "^0.30.0"
23
+ "@meith/theme-kit": "^0.30.1",
24
+ "@meith/ui": "^0.30.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.0"
@@ -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
  )}
@@ -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
- <div className="border-t border-border bg-card">
13
- <form
14
- method="get"
15
- action={action}
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
- <NativeSelect
23
- id={id}
24
- name={field}
25
- defaultValue={forums.find((forum) => forum.isSelected)?.value ?? ''}
26
- className="h-8 w-auto min-w-48 flex-1 text-xs sm:flex-none"
27
- >
28
- {forums.map((forum) => (
29
- <option
30
- key={forum.value}
31
- value={forum.value}
32
- disabled={forum.isCategory}
33
- label={`${' '.repeat(forum.depth)}${forum.label}`}
34
- >
35
- {`${' '.repeat(forum.depth)}${forum.label}`}
36
- </option>
37
- ))}
38
- </NativeSelect>
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
- <button type="submit" className={buttonVariants({ variant: 'outline', size: 'sm' })}>
41
- {submitLabel}
42
- </button>
43
- </form>
44
- </div>
33
+ <button type="submit" className={buttonVariants({ variant: 'outline', size: 'sm' })}>
34
+ {submitLabel}
35
+ </button>
36
+ </form>
45
37
  )
46
38
  }
package/src/theme.ts CHANGED
@@ -70,7 +70,7 @@ import { WhoIsOnline } from './slots/who-is-online'
70
70
  export const defaultTheme = defineTheme({
71
71
  key: 'default',
72
72
  title: 'Default',
73
- version: '0.30.0',
73
+ version: '0.30.1',
74
74
  slots: {
75
75
  Shell,
76
76
  Header,