@htmlbricks/hb-dashboard-counter-lines 0.66.27 → 0.67.0

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 CHANGED
@@ -4,7 +4,17 @@
4
4
 
5
5
  ### What it does
6
6
 
7
- Vertical list of metric rows from JSON `lines`: each row shows optional Bootstrap Icon, label text, and a secondary badge value. `link.type` chooses behavior—open URI in a new tab, same-window navigation, custom `counterClick` event with a key, or a static row with no click handler.
7
+ Vertical list of metric rows from JSON `lines`: each row shows optional Bootstrap Icon, label text, and a Bulma light rounded tag for the counter value. `link.type` chooses behavior—open URI in a new tab, same-window navigation, custom `counterClick` event with a key, or a static row with no click handler.
8
+
9
+ ### Styling (Bulma)
10
+
11
+ The component bundles **Bulma 1.x** in the shadow root: **`elements/tag`** only, with theme defaults on `:host` (`--bulma-hb-def-*`). Set public **`--bulma-*`** on `body` or `:root` so they inherit onto the host. Icons remain **Bootstrap Icons** (loaded via `<svelte:head>`); use icon names in the `icon` field. See [Bulma CSS variables](https://bulma.io/documentation/features/css-variables/).
12
+
13
+ **Shadow markup (simplified):**
14
+
15
+ - **`div.item`** — row; optional click for `tab` / `page` / `event` links.
16
+ - **`div.item_content`** / **`div.text`** — label + optional **`i.bi`**.
17
+ - **`div.value.tag.is-light.is-rounded`** — counter (exposed as part **`value`**).
8
18
 
9
19
  ### Custom element
10
20
 
@@ -18,7 +28,7 @@ Vertical list of metric rows from JSON `lines`: each row shows optional Bootstra
18
28
  | `style` | string (optional) | Inline style string. |
19
29
  | `lines` | array (optional) | JSON `Line[]`: text, value, link?: `{ type: "tab" \| "page" \| "event"; uri: string }`, index?, icon?. |
20
30
 
21
- **Bootstrap `--bs-*` vars.** **Parts:** `item`, `icon`, `text`, `value`. No slots.
31
+ **Parts:** `item`, `icon`, `text`, `value`. No slots.
22
32
 
23
33
  ### Events (`CustomEvent` names)
24
34