@hadoku/game-ui 0.1.77 → 0.1.79

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.
@@ -63,16 +63,24 @@
63
63
  }
64
64
 
65
65
  /* ── the Create buttons ──────────────────────────────────────────────── */
66
+ /*
67
+ * The page's own font, not the browser's button default: a game without a global `button` reset
68
+ * (bomberman) otherwise draws Create room in the UA's font beside its own text. `inline-block`
69
+ * and no underline let a game's link in `actionsExtras` wear the same class and look the same.
70
+ */
66
71
 
67
72
  .room-front__go {
73
+ display: inline-block;
68
74
  align-self: var(--room-front-go-align, flex-start);
69
75
  padding: var(--room-front-go-padding, 10px 18px);
70
76
  border: 0;
71
77
  border-radius: var(--room-front-go-radius, var(--hdk-radius));
72
78
  background: var(--color-primary);
73
79
  color: var(--color-on-primary);
80
+ font: inherit;
74
81
  font-size: var(--room-front-go-size, 14px);
75
82
  font-weight: var(--room-front-go-weight, 600);
83
+ text-decoration: none;
76
84
  cursor: pointer;
77
85
  }
78
86
 
@@ -135,7 +135,10 @@ export interface RoomFrontProps<V extends RoomFrontRoom> {
135
135
  onOpenRoom: (id: string) => void;
136
136
  /** Extra content in the list's own head row, beside the title and before Create room (a game's own filter bar, say). */
137
137
  headExtras?: ReactNode;
138
- /** Extra content beside Create room, in the same actions group (a game's own "Create event", say). */
138
+ /**
139
+ * Extra content beside Create room, in the same actions group (a game's own "Create event", say).
140
+ * A button or link given `className="room-front__go"` draws exactly as Create room does.
141
+ */
139
142
  actionsExtras?: ReactNode;
140
143
  feed?: RoomFrontFeed;
141
144
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-ui",
3
- "version": "0.1.77",
4
- "gitHead": "0639f9cc1c84111638f55d2fe7b7a5903d8ba560",
3
+ "version": "0.1.79",
4
+ "gitHead": "9a31dfdf2b46743a9a4fa13bca2e029b8874c68a",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The browser parts any hosted game shares, above ui-shell: the room shell and session, seats and looks, the room route, the front page's generic pieces (gate, polls, gallery, patch notes), the bundle slot and relay channel a game's client mounts in, settings and trim screens, the HTTP and socket helpers, and the generic components (modal, popover, avatar, action button, radio cards). Knows no game; Magic's UI (games/magic/ui) plugs in, composed by the site (apps/ui). MIT; imports only react, react-dom, socket.io-client, @wolffm/* and the platform packages.",
@@ -49,14 +49,14 @@
49
49
  "react-dom": "^19.2.8"
50
50
  },
51
51
  "dependencies": {
52
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.81",
53
- "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.81",
52
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.83",
53
+ "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.83",
54
54
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.31",
55
- "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.124",
56
- "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.124",
55
+ "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.125",
56
+ "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.125",
57
57
  "@wolffm/task-ui-components": "npm:@hadoku/task-ui-components@^4.23.44",
58
58
  "@wolffm/themes": "npm:@hadoku/themes@^5.14.13",
59
- "@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.124",
59
+ "@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.125",
60
60
  "socket.io-client": "^4.8.3",
61
61
  "zod": "4.5.4"
62
62
  },