react-dockable-desktop 7.4.1 → 7.5.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
@@ -6,6 +6,73 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [7.5.0] — 2026-10-04
10
+
11
+ Toolbar buttons: the library now sizes the icon inside its own buttons, and a toggle that is on
12
+ can be told from one that is off at a glance, on chrome and over panel content alike. No props were
13
+ added or removed; everything new is a CSS custom property.
14
+
15
+ ### Added
16
+
17
+ - **Icon size tokens.** `--rdd-panel-toolbar-icon-size` (`20px`) sizes icons in `RddPanelToolbar`
18
+ buttons and toggles; `--rdd-chrome-icon-size` (`22px`) sizes them in the workspace toolbar and
19
+ the sidebar rail. Icon fonts follow the button's `font-size`; SVG icons follow the token's
20
+ width and height, even when the SVG has its own `width`/`height` attributes. Apps no longer pass
21
+ a size to each icon.
22
+ - **`soft` chip tokens**: `--rdd-panel-toolbar-btn-bg`, `--rdd-panel-toolbar-btn-bg-hover`,
23
+ `--rdd-panel-toolbar-btn-border`.
24
+ - **Workspace toolbar toggle tokens**: `--rdd-toolbar-btn-toggle-active-color` and
25
+ `--rdd-toolbar-btn-toggle-active-border`, so its "on" icon and edge no longer have to follow the
26
+ sidebar tab colour.
27
+
28
+ ### Changed
29
+
30
+ - **Panel toolbar "on" state** is a solid chip with a white icon, the same in every
31
+ `buttonVariant`: in dark the accent mixed 65% with black, in light the plain accent. The icon is
32
+ `--rdd-brand-on-accent` when a brand sets it. It clears WCAG's 3:1 non-text contrast with bright
33
+ and dark accents. Before, it was a 14–15% accent tint.
34
+ - **`buttonVariant="soft"`** is a near-opaque chip (the floating-widget surface) with a hairline
35
+ edge, readable over panel content you don't control. Before, it was a 6% (dark) / 4% (light)
36
+ wash that disappeared over busy content.
37
+ - **Workspace toolbar toggle "on"**: the accent tint goes from 6–8% to 22% (dark) / 16% (light) in
38
+ every skin, with a 1px accent edge and the accent icon.
39
+ - **Icons in toolbar and rail buttons are larger by default**: 20px in panel toolbars and 22px in
40
+ the workspace toolbar and rail, where they used to render at whatever size the app gave them.
41
+
42
+ ### Fixed
43
+
44
+ - **`filled` toggles looked the same on and off**: its resting look used the active colours. It
45
+ now rests on an accent tint with an accent edge, and "on" is the solid chip.
46
+ - **vscode and macos painted a white hover tint in light mode** on panel toolbar buttons; it now
47
+ applies in dark only.
48
+ - **`buttonSize` was documented as the icon size.** It sets the button size; the icon follows
49
+ `--rdd-panel-toolbar-icon-size`.
50
+
51
+ ### Upgrading
52
+
53
+ - Remove per-icon sizes inside toolbar and rail buttons (`size={16}`, `fontSize`, inline
54
+ `width`/`height`): set `--rdd-panel-toolbar-icon-size` / `--rdd-chrome-icon-size` instead. An
55
+ inline `style` size still wins over the tokens.
56
+ - If you added shadows to keep toolbar icons readable over panel content, remove them and use
57
+ `buttonVariant="soft"` or a `frosted`/`solid` toolbar.
58
+ - If you overrode `--rdd-panel-toolbar-btn-active-color` or `-active-bg` to make "on" visible,
59
+ check whether you still need to: the default is visible in every variant now. To restyle it, see
60
+ [Styling toolbar buttons](https://felipecarrillo100.github.io/react-dockable-desktop/guide/panel-overlay#styling-toolbar-buttons).
61
+ - To get the old look back, set the tokens to their previous values, e.g.
62
+ `--rdd-toolbar-btn-toggle-active-bg: color-mix(in srgb, var(--rdd-accent-color) 8%, transparent)`.
63
+
64
+ ### Docs
65
+
66
+ - Panel Overlay guide: new "Styling toolbar buttons" section (what the library owns, icon sizes,
67
+ variants, colour tokens, recipes for your own "on" look); corrected `buttonSize`.
68
+ - Toolbar guide: token table updated for the new toggle defaults and tokens.
69
+ - Sidebar (Modals & Drawers guide): rail icons follow `--rdd-chrome-icon-size`.
70
+
71
+ ### Demo
72
+
73
+ - Spawn Tools → Toolbar Buttons: every `buttonVariant` in every state over light, dark and busy
74
+ content, with icon-size sliders.
75
+
9
76
  ## [7.4.1] — 2026-10-01
10
77
 
11
78
  Fixes from a review of 7.4.0. No API changes.
@@ -655,7 +722,8 @@ All of the above is additive and backward-compatible: every new field is optiona
655
722
 
656
723
  ---
657
724
 
658
- [Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.4.1...HEAD
725
+ [Unreleased]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.5.0...HEAD
726
+ [7.5.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.4.1...v7.5.0
659
727
  [7.4.1]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.4.0...v7.4.1
660
728
  [7.4.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.3.0...v7.4.0
661
729
  [7.3.0]: https://github.com/felipecarrillo100/react-dockable-desktop/compare/v7.2.0...v7.3.0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # React Dockable Desktop
2
2
 
3
- [![npm version](https://img.shields.io/badge/npm-v7.4.1-blue.svg)](https://www.npmjs.com/package/react-dockable-desktop)
3
+ [![npm version](https://img.shields.io/badge/npm-v7.5.0-blue.svg)](https://www.npmjs.com/package/react-dockable-desktop)
4
4
  [![TypeScript](https://img.shields.io/badge/TypeScript-first-3178c6.svg)](https://www.typescriptlang.org/)
5
5
  [![Touch Ready](https://img.shields.io/badge/touch-iPad%20%7C%20Android-success.svg)](#touch--mobile)
6
6
  [![license](https://img.shields.io/badge/license-MIT-green.svg)](#license)