@pieai/swimmer-ui-kit 2.0.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -3,7 +3,19 @@
3
3
  All notable changes to `@pieai/swimmer-ui-kit`.
4
4
  Format: [Keep a Changelog](https://keepachangelog.com); versioning: semver.
5
5
 
6
- ## Unreleased
6
+ ## 2.1.0 — 2026-09-02
7
+
8
+ ### Added
9
+
10
+ - **Opt-in clay scroll surfaces.** Product-owned overflow containers can use
11
+ `.game-ui-scroll-surface` and the four `--game-ui-scrollbar-*` semantic
12
+ tokens to share the kit's Firefox and Chromium/WebKit scrollbar treatment.
13
+
14
+ ### Changed
15
+
16
+ - **Build finalization is cross-platform.** The package build now uses a Node
17
+ script to copy the optional Tailwind bridge and remove `.DS_Store` files,
18
+ keeping the release path valid on Windows as well as POSIX hosts.
7
19
 
8
20
  ## 2.0.0
9
21
 
package/README.md CHANGED
@@ -20,7 +20,7 @@ assets may not be extracted, modified, or redistributed as a standalone pack.
20
20
  ```json
21
21
  {
22
22
  "dependencies": {
23
- "@pieai/swimmer-ui-kit": "1.0.0"
23
+ "@pieai/swimmer-ui-kit": "2.1.0"
24
24
  }
25
25
  }
26
26
  ```
@@ -69,6 +69,10 @@ import '@pieai/swimmer-ui-kit/tailwind.css';
69
69
  }
70
70
  ```
71
71
 
72
+ Product-owned overflow containers can opt into the kit's cross-browser clay
73
+ scrollbar treatment with `class="game-ui-scroll-surface"`; tune its size,
74
+ track, thumb, and hover colors through the `--game-ui-scrollbar-*` tokens.
75
+
72
76
  - **Type**: a HUD scale (`--game-ui-font-xs` … `-xxl`) plus the three things a
73
77
  HUD scale does not cover — `--game-ui-font-mono` for code, and
74
78
  `--game-ui-font-reading` / `--game-ui-line-reading` /
package/dist/index.d.ts CHANGED
@@ -422,6 +422,13 @@ export declare const CLAY_RADIUS_TOKENS: {
422
422
  readonly modal: "var(--game-ui-radius-modal)";
423
423
  };
424
424
 
425
+ export declare const CLAY_SCROLLBAR_TOKENS: {
426
+ readonly size: "var(--game-ui-scrollbar-size)";
427
+ readonly track: "var(--game-ui-scrollbar-track)";
428
+ readonly thumb: "var(--game-ui-scrollbar-thumb)";
429
+ readonly thumbHover: "var(--game-ui-scrollbar-thumb-hover)";
430
+ };
431
+
425
432
  export declare const CLAY_SEMANTIC_TOKENS: {
426
433
  readonly background: "var(--game-ui-bg)";
427
434
  readonly playfieldScrim: "var(--game-ui-playfield-scrim)";
@@ -582,6 +589,12 @@ export declare const CLAY_UI_TOKENS: {
582
589
  readonly panel: "var(--game-ui-radius-panel)";
583
590
  readonly modal: "var(--game-ui-radius-modal)";
584
591
  };
592
+ readonly scrollbars: {
593
+ readonly size: "var(--game-ui-scrollbar-size)";
594
+ readonly track: "var(--game-ui-scrollbar-track)";
595
+ readonly thumb: "var(--game-ui-scrollbar-thumb)";
596
+ readonly thumbHover: "var(--game-ui-scrollbar-thumb-hover)";
597
+ };
585
598
  readonly elevation: {
586
599
  readonly button: "var(--game-ui-shadow-button)";
587
600
  readonly panel: "var(--game-ui-shadow-panel)";
@@ -1094,6 +1107,10 @@ export declare const GAME_UI_TOKENS: {
1094
1107
  readonly panel: "var(--game-ui-shadow-panel)";
1095
1108
  readonly inset: "var(--game-ui-shadow-inset)";
1096
1109
  readonly stroke: "var(--game-ui-stroke)";
1110
+ readonly scrollbarSize: "var(--game-ui-scrollbar-size)";
1111
+ readonly scrollbarTrack: "var(--game-ui-scrollbar-track)";
1112
+ readonly scrollbarThumb: "var(--game-ui-scrollbar-thumb)";
1113
+ readonly scrollbarThumbHover: "var(--game-ui-scrollbar-thumb-hover)";
1097
1114
  readonly bead: "var(--game-ui-radius-bead)";
1098
1115
  readonly control: "var(--game-ui-radius-control)";
1099
1116
  readonly card: "var(--game-ui-radius-card)";