@meith/theme-raidframe 0.3.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-raidframe",
3
- "version": "0.3.0",
3
+ "version": "0.3.3",
4
4
  "description": "A gaming theme for Meith — guild, raid and match boards — 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-kit": "^0.3.0",
24
- "@meith/theme-default": "^0.3.0",
25
- "@meith/ui": "^0.3.0"
23
+ "@meith/theme-default": "^0.3.3",
24
+ "@meith/ui": "^0.3.3",
25
+ "@meith/theme-kit": "^0.3.3"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.2.0"
@@ -13,7 +13,7 @@ export function CategoryBlock({ category, children }: CategoryBlockModel) {
13
13
  </p>
14
14
  )}
15
15
 
16
- <table className="w-full border-collapse text-sm">
16
+ <table className="w-full table-fixed border-collapse text-sm">
17
17
  <thead>
18
18
  <tr className={`${MICRO} text-left`}>
19
19
  <th scope="col" className="px-3 py-1.5 font-semibold">
@@ -8,12 +8,23 @@ const LABEL: Record<PanelKind, string> = {
8
8
  admincp: 'control panel',
9
9
  }
10
10
 
11
- export function PanelPage({ panel, title, back, width, gap, regions, children }: PanelPageModel) {
11
+ export function PanelPage({
12
+ panel,
13
+ title,
14
+ back,
15
+ frame,
16
+ width,
17
+ gap,
18
+ regions,
19
+ children,
20
+ }: PanelPageModel) {
12
21
  return (
13
22
  <main
14
23
  id="board-content"
15
24
  tabIndex={-1}
16
- className={`flex w-full flex-col p-4 ${width === 'wide' ? 'max-w-none' : 'max-w-4xl'} ${
25
+ className={`flex w-full flex-col p-4 ${
26
+ frame === 'standalone' ? 'mx-auto flex-1' : ''
27
+ } ${width === 'wide' ? 'max-w-none' : 'max-w-4xl'} ${
17
28
  gap === 'loose' ? 'gap-6' : 'gap-4'
18
29
  }`}
19
30
  >
@@ -27,6 +27,8 @@ export function UserPanel({
27
27
  links,
28
28
  unreadNotifications,
29
29
  unreadMessages,
30
+ notificationsHref,
31
+ messagesHref,
30
32
  children,
31
33
  }: UserPanelModel) {
32
34
  if (viewer.isGuest) {
@@ -42,10 +44,6 @@ export function UserPanel({
42
44
  }
43
45
 
44
46
  const name = viewer.username ?? 'signed in'
45
- const hrefFor = (label: string): string | null =>
46
- links.find((link) => link.label === label)?.href ?? null
47
- const notificationsHref = hrefFor('Notifications')
48
- const messagesHref = hrefFor('Messages')
49
47
 
50
48
  return (
51
49
  <div className="flex flex-wrap items-center gap-2">
@@ -58,7 +56,7 @@ export function UserPanel({
58
56
 
59
57
  {unreadNotifications > 0 && (
60
58
  <a
61
- href={notificationsHref ?? undefined}
59
+ href={notificationsHref}
62
60
  className={`${COUNT} border-primary/60 bg-primary/15 text-primary hover:border-primary`}
63
61
  >
64
62
  {unreadNotifications} new
@@ -66,7 +64,7 @@ export function UserPanel({
66
64
  )}
67
65
  {unreadMessages > 0 && (
68
66
  <a
69
- href={messagesHref ?? undefined}
67
+ href={messagesHref}
70
68
  className={`${COUNT} border-forum-unread/60 bg-forum-unread/15 text-forum-unread hover:border-forum-unread`}
71
69
  >
72
70
  {unreadMessages} pm