@widgetstools/react-dock-manager 0.1.5 → 0.1.7

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.
Files changed (2) hide show
  1. package/dist/styles.css +27 -29
  2. package/package.json +2 -2
package/dist/styles.css CHANGED
@@ -164,8 +164,9 @@ dock-manager *,
164
164
  user-select: none;
165
165
  font-size: 12px;
166
166
  white-space: nowrap;
167
- color: hsl(var(--dock-tab-text));
168
- border-bottom: 2px solid transparent;
167
+ color: hsl(var(--dock-text));
168
+ opacity: 0.7;
169
+ border-top: 2px solid transparent;
169
170
  margin-bottom: -1px;
170
171
  transition: color 0.15s, background-color 0.15s;
171
172
  position: relative;
@@ -184,7 +185,7 @@ dock-manager *,
184
185
  }
185
186
 
186
187
  .dock-tab:hover {
187
- color: hsl(var(--dock-tab-text-active));
188
+ opacity: 1;
188
189
  background: hsl(var(--dock-hover));
189
190
  }
190
191
 
@@ -194,12 +195,11 @@ dock-manager *,
194
195
  opacity: 0;
195
196
  }
196
197
 
197
- /* Selected tab in inactive group: bolder text + raised appearance */
198
+ /* Selected tab in inactive group: raised appearance, same opacity as other tabs */
198
199
  .dock-tab.dock-tab-selected {
199
200
  font-weight: 500;
200
- color: hsl(var(--dock-text));
201
201
  background: hsl(var(--dock-surface));
202
- border-bottom-color: hsl(var(--dock-surface));
202
+ border-top-color: hsl(var(--dock-surface));
203
203
  box-shadow: -1px 0 0 hsl(var(--dock-border)), 1px 0 0 hsl(var(--dock-border)), 0 -1px 0 hsl(var(--dock-border));
204
204
  z-index: 1;
205
205
  }
@@ -210,11 +210,11 @@ dock-manager *,
210
210
  opacity: 0;
211
211
  }
212
212
 
213
- /* Selected tab in ACTIVE group: blue text + blue underline + raised appearance */
213
+ /* Selected tab in ACTIVE group: full opacity + top border highlight */
214
214
  .dock-pane-active .dock-tab.dock-tab-selected {
215
- color: hsl(var(--dock-tab-text-active));
215
+ opacity: 1;
216
216
  background: hsl(var(--dock-surface));
217
- border-bottom-color: hsl(var(--dock-primary));
217
+ border-top-color: hsl(var(--dock-primary));
218
218
  }
219
219
 
220
220
  .dock-tab-label {
@@ -247,7 +247,7 @@ dock-manager *,
247
247
  background: hsl(var(--dock-hover));
248
248
  }
249
249
 
250
- /* Inactive pane title — uses secondary text for clear visibility */
250
+ /* Inactive pane title — same color, reduced opacity */
251
251
  .dock-panel-title {
252
252
  font-size: 12px;
253
253
  font-weight: 600;
@@ -255,12 +255,13 @@ dock-manager *,
255
255
  overflow: hidden;
256
256
  text-overflow: ellipsis;
257
257
  white-space: nowrap;
258
- color: hsl(var(--dock-text-secondary));
258
+ color: hsl(var(--dock-text));
259
+ opacity: 0.7;
259
260
  }
260
261
 
261
- /* Active pane title turns blue */
262
+ /* Active pane title full opacity */
262
263
  .dock-pane-active > .dock-panel-header > .dock-panel-title {
263
- color: hsl(var(--dock-primary));
264
+ opacity: 1;
264
265
  }
265
266
 
266
267
  .dock-content-slot {
@@ -351,16 +352,17 @@ dock-manager *,
351
352
  min-height: 32px;
352
353
  }
353
354
 
354
- /* Inactive floating title — clearly visible */
355
+ /* Inactive floating title — same color, reduced opacity */
355
356
  .dock-floating-title {
356
357
  font-size: 12px;
357
358
  font-weight: 600;
358
- color: hsl(var(--dock-text-secondary));
359
+ color: hsl(var(--dock-text));
360
+ opacity: 0.7;
359
361
  }
360
362
 
361
- /* Active floating title turns blue */
363
+ /* Active floating title full opacity */
362
364
  .dock-pane-active .dock-floating-title {
363
- color: hsl(var(--dock-primary));
365
+ opacity: 1;
364
366
  }
365
367
 
366
368
  /* Floating window titlebar buttons */
@@ -392,7 +394,7 @@ dock-manager *,
392
394
  * Active pane indicator line
393
395
  *
394
396
  * Only ONE pane is active across the entire dock manager at any time.
395
- * The active pane's header shows a blue bottom-border line (2px).
397
+ * The active pane's header shows a blue top-border line (2px).
396
398
  * This applies to docked tab groups AND floating pane title bars.
397
399
  * ══════════════════════════════════════════════════════════════════════ */
398
400
 
@@ -402,32 +404,28 @@ dock-manager *,
402
404
  position: relative;
403
405
  }
404
406
 
405
- /* Active docked pane — blue bottom border on header (single-panel only, not when tabs exist) */
406
- .dock-tab-group.dock-pane-active:not([data-has-tabs]) > .dock-panel-header {
407
- border-bottom: 2px solid hsl(var(--dock-primary));
408
- }
409
407
 
410
- /* Active pane title text turns blue */
408
+ /* Active pane title full opacity */
411
409
  .dock-tab-group.dock-pane-active > .dock-panel-header > .dock-panel-title {
412
- color: hsl(var(--dock-primary));
410
+ opacity: 1;
413
411
  }
414
412
 
415
413
  /* Floating pane — default: no indicator line */
416
414
  .dock-floating-window .dock-floating-titlebar,
417
415
  .dock-floating-window .dock-float-titlebar {
418
- border-bottom: 2px solid transparent;
416
+ border-top: 2px solid transparent;
419
417
  }
420
418
 
421
- /* Active floating pane — blue bottom border on title bar */
419
+ /* Active floating pane — blue top border on title bar */
422
420
  .dock-floating-window.dock-pane-active .dock-floating-titlebar,
423
421
  .dock-floating-window.dock-pane-active .dock-float-titlebar {
424
- border-bottom: 2px solid hsl(var(--dock-primary));
422
+ border-top: 2px solid hsl(var(--dock-primary));
425
423
  }
426
424
 
427
- /* Active floating pane title text turns blue */
425
+ /* Active floating pane title full opacity */
428
426
  .dock-floating-window.dock-pane-active .dock-floating-titlebar .dock-floating-title,
429
427
  .dock-floating-window.dock-pane-active .dock-float-titlebar .dock-float-title {
430
- color: hsl(var(--dock-primary));
428
+ opacity: 1;
431
429
  }
432
430
 
433
431
  /* ══════════════════════════════════════════════════════════════════════
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widgetstools/react-dock-manager",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "A powerful, extensible dock manager for React with drag-and-drop, floating panels, split views, tabs, and auto-hide pinnable panels.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -36,7 +36,7 @@
36
36
  "react-dom": "^18.0.0 || ^19.0.0"
37
37
  },
38
38
  "dependencies": {
39
- "@widgetstools/dock-manager-core": "0.1.5",
39
+ "@widgetstools/dock-manager-core": "0.1.7",
40
40
  "fix-dts-default-cjs-exports": "^1.0.1"
41
41
  },
42
42
  "devDependencies": {