@htmlbricks/hb-messages-topics-card 0.66.27 → 0.67.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/README.md +12 -1
- package/main.iife.js +102 -41
- package/main.iife.js.map +1 -1
- package/manifest.json +45 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## Description
|
|
4
4
|
|
|
5
|
-
Lists chat or channel previews from `chats`: avatar, title, last message snippet, derived time label, and unread `counter`
|
|
5
|
+
Lists chat or channel previews from `chats`: avatar, title, last message snippet, derived time label, and unread `counter` as a Bulma tag. Clicking a row marks it selected (`_selected`) and dispatches `select` with that chat payload for opening a thread or switching context.
|
|
6
|
+
|
|
7
|
+
## Styling (Bulma)
|
|
8
|
+
|
|
9
|
+
The component bundles **Bulma 1.x** in the shadow root: **`elements/tag`** (unread counter), with theme defaults on `:host` (`--bulma-hb-def-*`). Set public **`--bulma-*`** on `body` or `:root` so they inherit onto the host. Row hover and selected backgrounds default from **`--bulma-scheme-main-bis`** and **`--bulma-scheme-main-ter`**; override with **`--hb-topics-card-hover-background-color`** and **`--hb-topics-card-selected-background-color`** if needed. See [Bulma CSS variables](https://bulma.io/documentation/features/css-variables/).
|
|
10
|
+
|
|
11
|
+
**Shadow markup (simplified):**
|
|
12
|
+
|
|
13
|
+
- **`div.grid`** — one row per chat (click selects).
|
|
14
|
+
- **`img`**, **`div.header`** (title + time), **`div.details`** (snippet + **`span.tag.is-light.is-rounded`** counter).
|
|
15
|
+
|
|
16
|
+
**Host-level tokens (existing):** `--hb-topics-card-size`, `--hb-topics-card-padding`, derived `--hb-topics-card-double-*`, plus the selected/hover background variables above.
|
|
6
17
|
|
|
7
18
|
## Types
|
|
8
19
|
|