react-dockable-desktop 7.1.0 → 7.1.2
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 +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/styles.css +188 -57
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
--rdd-styles-loaded: 1; /* sentinel — checked at mount to detect missing CSS import */
|
|
11
11
|
--rdd-z-base: 1000; /* base for floating windows + all chrome overlays; override via WindowManagerProvider's zIndexBase */
|
|
12
12
|
/* Fonts for the library's own chrome — tabs, title bars, toolbar, sidebar, menus, toasts, drawers,
|
|
13
|
-
modals. Neither Outfit nor Inter is loaded by the library: load one yourself, or override this
|
|
14
|
-
|
|
13
|
+
modals. Neither Outfit nor Inter is loaded by the library: load one yourself, or override this
|
|
14
|
+
(on any ancestor of the workspace). To use the host page's font: `inherit` here on :root, or
|
|
15
|
+
`initial` on any ancestor — `inherit` below :root only copies this stack down. */
|
|
15
16
|
--rdd-font-family: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
16
17
|
--rdd-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
18
|
+
/* Errors the library itself shows (the unregistered-panel placeholder). */
|
|
19
|
+
--rdd-danger-color: #dc3545;
|
|
20
|
+
/* Fill of placeholder boxes (a minimized panel's thumbnail when it has no live preview). */
|
|
21
|
+
--rdd-placeholder-bg: rgba(108, 117, 125, 0.15);
|
|
17
22
|
--rdd-bg-primary: #090b11;
|
|
18
23
|
--rdd-bg-workspace: #0f111a;
|
|
19
24
|
--rdd-bg-panel: #141722;
|
|
@@ -168,6 +173,47 @@
|
|
|
168
173
|
-webkit-font-smoothing: antialiased;
|
|
169
174
|
}
|
|
170
175
|
|
|
176
|
+
/* Structural layout (it was inline styles until 7.1.1, so a host rule couldn't override it). */
|
|
177
|
+
.rdd-workspace {
|
|
178
|
+
display: flex;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
position: relative;
|
|
181
|
+
width: 100%;
|
|
182
|
+
height: 100%;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
user-select: none;
|
|
185
|
+
}
|
|
186
|
+
/* Focusable from script only (tabindex="-1"): where keyboard focus goes when the last tab it was
|
|
187
|
+
on closes. The workspace itself shows no ring. */
|
|
188
|
+
.rdd-workspace:focus { outline: none; }
|
|
189
|
+
.rdd-workspace-viewport {
|
|
190
|
+
flex-grow: 1;
|
|
191
|
+
width: 100%;
|
|
192
|
+
position: relative;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
}
|
|
195
|
+
.rdd-workspace-grid-host {
|
|
196
|
+
width: 100%;
|
|
197
|
+
height: 100%;
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
position: relative;
|
|
200
|
+
}
|
|
201
|
+
.rdd-floating-window-body {
|
|
202
|
+
flex-grow: 1;
|
|
203
|
+
width: 100%;
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
position: relative;
|
|
206
|
+
isolation: isolate;
|
|
207
|
+
}
|
|
208
|
+
/* A panel's preserved DOM: the slot it is shown in, the element kept across moves, and the
|
|
209
|
+
wrapper its content renders into. */
|
|
210
|
+
.rdd-panel-dom-host,
|
|
211
|
+
.rdd-panel-dom,
|
|
212
|
+
.rdd-panel-content {
|
|
213
|
+
width: 100%;
|
|
214
|
+
height: 100%;
|
|
215
|
+
}
|
|
216
|
+
|
|
171
217
|
/* Workspace Panel Container */
|
|
172
218
|
.rdd-workspace-panel {
|
|
173
219
|
background-color: var(--rdd-bg-panel);
|
|
@@ -177,10 +223,13 @@
|
|
|
177
223
|
height: 100%;
|
|
178
224
|
display: flex;
|
|
179
225
|
flex-direction: column;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
position: relative;
|
|
180
228
|
}
|
|
181
229
|
|
|
182
230
|
/* Tab Headers Bar */
|
|
183
231
|
.rdd-workspace-tab-bar {
|
|
232
|
+
min-height: 38px;
|
|
184
233
|
background-color: var(--rdd-bg-tab-bar);
|
|
185
234
|
border-bottom: 1px solid var(--rdd-border-panel);
|
|
186
235
|
padding: 0 4px;
|
|
@@ -331,7 +380,13 @@
|
|
|
331
380
|
display: flex;
|
|
332
381
|
align-items: center;
|
|
333
382
|
justify-content: center;
|
|
383
|
+
width: 18px;
|
|
384
|
+
height: 18px;
|
|
334
385
|
}
|
|
386
|
+
/* Pushed to the tab's end when the tab has no header actions of its own. After the base rule, so
|
|
387
|
+
it wins over its margin-left. */
|
|
388
|
+
.rdd-close-tab-x--end { margin-inline-start: auto; }
|
|
389
|
+
.rdd-header-close-empty-group { cursor: pointer; }
|
|
335
390
|
|
|
336
391
|
/* Always show close icon on active tab */
|
|
337
392
|
.rdd-workspace-tab.rdd-active .rdd-close-tab-x {
|
|
@@ -388,14 +443,16 @@
|
|
|
388
443
|
min-width: 0;
|
|
389
444
|
overflow: hidden;
|
|
390
445
|
}
|
|
391
|
-
/* Collapses the tab strip by animating its width
|
|
392
|
-
|
|
446
|
+
/* Collapses the tab strip by animating its width to 0. The strip inside must not clip, so the
|
|
447
|
+
active tab's negative margin can reach into the drawer border. */
|
|
393
448
|
.rdd-sidebar-strip-wrap {
|
|
449
|
+
width: 56px;
|
|
394
450
|
height: 100%;
|
|
395
451
|
overflow: hidden;
|
|
396
452
|
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
397
453
|
flex-shrink: 0;
|
|
398
454
|
}
|
|
455
|
+
.rdd-sidebar-strip-wrap--collapsed { width: 0; }
|
|
399
456
|
.rdd-sidebar-pane {
|
|
400
457
|
flex-direction: column;
|
|
401
458
|
height: 100%;
|
|
@@ -567,8 +624,14 @@ body.rdd-resizing-col-active * {
|
|
|
567
624
|
/* macOS/Win11 Glassmorphic Taskbar */
|
|
568
625
|
.rdd-taskbar-glassmorphic-item {
|
|
569
626
|
background: var(--rdd-taskbar-item-bg) !important;
|
|
570
|
-
|
|
571
|
-
|
|
627
|
+
/* 6px: the value that has always shown (an inline style used to override the 12px here). */
|
|
628
|
+
backdrop-filter: blur(6px);
|
|
629
|
+
-webkit-backdrop-filter: blur(6px);
|
|
630
|
+
scroll-snap-align: start;
|
|
631
|
+
width: 38px;
|
|
632
|
+
height: 38px;
|
|
633
|
+
position: relative;
|
|
634
|
+
padding: 0;
|
|
572
635
|
border: 1px solid var(--rdd-taskbar-item-border) !important;
|
|
573
636
|
color: var(--rdd-taskbar-item-text) !important;
|
|
574
637
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
@@ -606,9 +669,11 @@ body.rdd-resizing-col-active * {
|
|
|
606
669
|
}
|
|
607
670
|
|
|
608
671
|
@keyframes rdd-tooltip-fade-in {
|
|
672
|
+
/* Fades in from just above its resting place, so it never passes over the icon under it: a
|
|
673
|
+
click there would press on the preview and release on the icon, and neither would get it. */
|
|
609
674
|
from {
|
|
610
675
|
opacity: 0;
|
|
611
|
-
transform: translateX(-50%) translateY(-
|
|
676
|
+
transform: translateX(-50%) translateY(calc(-100% - 6px));
|
|
612
677
|
}
|
|
613
678
|
to {
|
|
614
679
|
opacity: 1;
|
|
@@ -632,6 +697,12 @@ body.rdd-resizing-col-active * {
|
|
|
632
697
|
display: flex;
|
|
633
698
|
flex-direction: column;
|
|
634
699
|
gap: 0.25rem;
|
|
700
|
+
/* The resting place is here, not only in the fade-in's end state: with animations off there is
|
|
701
|
+
no keyframe, and the preview would otherwise sit on its icon. left/top are set inline. */
|
|
702
|
+
position: fixed;
|
|
703
|
+
transform: translateX(-50%) translateY(-100%);
|
|
704
|
+
opacity: 1;
|
|
705
|
+
pointer-events: auto;
|
|
635
706
|
}
|
|
636
707
|
|
|
637
708
|
/* Invisible bridge so mouse transitions smoothly to tooltip */
|
|
@@ -641,7 +712,7 @@ body.rdd-resizing-col-active * {
|
|
|
641
712
|
top: 100%;
|
|
642
713
|
left: 0;
|
|
643
714
|
width: 100%;
|
|
644
|
-
height:
|
|
715
|
+
height: 8px; /* the preview sits 8px above the icon: the bridge ends exactly at its top edge */
|
|
645
716
|
background: transparent;
|
|
646
717
|
}
|
|
647
718
|
|
|
@@ -667,6 +738,20 @@ body.rdd-resizing-col-active * {
|
|
|
667
738
|
pointer-events: none !important;
|
|
668
739
|
user-select: none !important;
|
|
669
740
|
}
|
|
741
|
+
/* A minimized panel with no live preview: a placeholder with the title's first letter. */
|
|
742
|
+
.rdd-taskbar-item-preview-frame--empty {
|
|
743
|
+
display: flex;
|
|
744
|
+
align-items: center;
|
|
745
|
+
justify-content: center;
|
|
746
|
+
background: var(--rdd-placeholder-bg);
|
|
747
|
+
border: 1px dashed var(--rdd-taskbar-item-border, rgba(255, 255, 255, 0.15));
|
|
748
|
+
}
|
|
749
|
+
.rdd-taskbar-item-preview-initial {
|
|
750
|
+
font-size: 2rem;
|
|
751
|
+
font-weight: 600;
|
|
752
|
+
color: var(--rdd-panel-title-color, var(--rdd-panel-text, rgba(255, 255, 255, 0.85)));
|
|
753
|
+
user-select: none;
|
|
754
|
+
}
|
|
670
755
|
|
|
671
756
|
.rdd-taskbar-item-preview-host {
|
|
672
757
|
transform-origin: top left;
|
|
@@ -915,7 +1000,7 @@ body.rdd-resizing-col-active * {
|
|
|
915
1000
|
opacity: 0.6;
|
|
916
1001
|
}
|
|
917
1002
|
|
|
918
|
-
|
|
1003
|
+
.rdd-context-menu__chevron:dir(rtl) {
|
|
919
1004
|
margin-left: 0;
|
|
920
1005
|
margin-right: auto;
|
|
921
1006
|
padding-left: 0;
|
|
@@ -923,7 +1008,7 @@ body.rdd-resizing-col-active * {
|
|
|
923
1008
|
transform: scaleX(-1);
|
|
924
1009
|
}
|
|
925
1010
|
|
|
926
|
-
|
|
1011
|
+
.rdd-context-menu__checkbox:dir(rtl) {
|
|
927
1012
|
margin-left: 0;
|
|
928
1013
|
margin-right: auto;
|
|
929
1014
|
padding-left: 0;
|
|
@@ -1130,6 +1215,7 @@ body.rdd-dragging-active {
|
|
|
1130
1215
|
}
|
|
1131
1216
|
|
|
1132
1217
|
[data-color-scheme="light"] {
|
|
1218
|
+
--rdd-danger-color: #b91c1c;
|
|
1133
1219
|
--rdd-bg-primary: #f8f9fa;
|
|
1134
1220
|
--rdd-bg-workspace: #f1f5f9;
|
|
1135
1221
|
--rdd-bg-panel: #ffffff;
|
|
@@ -1959,6 +2045,8 @@ body.rdd-dragging-active {
|
|
|
1959
2045
|
}
|
|
1960
2046
|
|
|
1961
2047
|
.rdd-sidebar-tabs-strip {
|
|
2048
|
+
width: 56px;
|
|
2049
|
+
height: 100%;
|
|
1962
2050
|
background-color: var(--rdd-sidebar-tabs-bg) !important;
|
|
1963
2051
|
display: flex;
|
|
1964
2052
|
flex-direction: column;
|
|
@@ -2406,10 +2494,10 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2406
2494
|
border-style: solid;
|
|
2407
2495
|
}
|
|
2408
2496
|
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2497
|
+
.rdd-corner-zone--top-right:dir(rtl) { right: auto; left: 0; }
|
|
2498
|
+
.rdd-corner-zone--top-left:dir(rtl) { left: auto; right: 0; }
|
|
2499
|
+
.rdd-corner-zone--bottom-right:dir(rtl) { right: auto; left: 0; }
|
|
2500
|
+
.rdd-corner-zone--bottom-left:dir(rtl) { left: auto; right: 0; }
|
|
2413
2501
|
|
|
2414
2502
|
|
|
2415
2503
|
/*
|
|
@@ -2440,37 +2528,37 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2440
2528
|
RTL (Right-to-Left) Support
|
|
2441
2529
|
========================================== */
|
|
2442
2530
|
|
|
2443
|
-
|
|
2531
|
+
.rdd-workspace-tab:dir(rtl) {
|
|
2444
2532
|
border-right: none !important;
|
|
2445
2533
|
border-left: 1px solid var(--rdd-border-panel) !important;
|
|
2446
2534
|
padding: 0 14px 0 6px !important;
|
|
2447
2535
|
}
|
|
2448
2536
|
|
|
2449
|
-
|
|
2537
|
+
.rdd-workspace-tab.rdd-drag-hover-left:dir(rtl) {
|
|
2450
2538
|
box-shadow: 3px 0 0 0 var(--rdd-accent-color, #38bdf8),
|
|
2451
2539
|
10px 0 10px -2px var(--rdd-accent-glow, rgba(56,189,248,0.35));
|
|
2452
2540
|
}
|
|
2453
|
-
|
|
2541
|
+
.rdd-workspace-tab.rdd-drag-hover-right:dir(rtl) {
|
|
2454
2542
|
box-shadow: -3px 0 0 0 var(--rdd-accent-color, #38bdf8),
|
|
2455
2543
|
-10px 0 10px -2px var(--rdd-accent-glow, rgba(56,189,248,0.35));
|
|
2456
2544
|
}
|
|
2457
2545
|
|
|
2458
|
-
|
|
2546
|
+
.rdd-workspace-tab > .rdd-text-truncate:dir(rtl) {
|
|
2459
2547
|
margin-right: 0 !important;
|
|
2460
2548
|
margin-left: 12px !important;
|
|
2461
2549
|
}
|
|
2462
2550
|
|
|
2463
|
-
|
|
2551
|
+
.rdd-workspace-tab-icon:dir(rtl) {
|
|
2464
2552
|
margin-right: 0 !important;
|
|
2465
2553
|
margin-left: 6px !important;
|
|
2466
2554
|
}
|
|
2467
2555
|
|
|
2468
|
-
|
|
2556
|
+
.rdd-tab-header-actions:dir(rtl) {
|
|
2469
2557
|
margin-left: 0 !important;
|
|
2470
2558
|
margin-right: auto !important;
|
|
2471
2559
|
}
|
|
2472
2560
|
|
|
2473
|
-
|
|
2561
|
+
.rdd-close-tab-x:dir(rtl) {
|
|
2474
2562
|
margin-left: 0 !important;
|
|
2475
2563
|
margin-right: auto !important;
|
|
2476
2564
|
}
|
|
@@ -2478,36 +2566,36 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2478
2566
|
/* Floating window title bar RTL — inherited direction:rtl on the titlebar flex container
|
|
2479
2567
|
moves buttons (last in DOM) to the LEFT and title (first in DOM) to the RIGHT.
|
|
2480
2568
|
No explicit row-reverse needed; only prevent the button group from reordering internally. */
|
|
2481
|
-
|
|
2569
|
+
.rdd-titlebar-actions:dir(rtl) { flex-direction: row; }
|
|
2482
2570
|
|
|
2483
2571
|
/* Side Panels transitions slide-in direction */
|
|
2484
|
-
|
|
2572
|
+
.rdd-side-panel-left:dir(rtl) {
|
|
2485
2573
|
left: auto !important;
|
|
2486
2574
|
right: 0 !important;
|
|
2487
2575
|
transform: translateX(100%) !important;
|
|
2488
2576
|
}
|
|
2489
|
-
|
|
2577
|
+
.rdd-side-panel-left.rdd-side-panel-visible:dir(rtl) {
|
|
2490
2578
|
transform: translateX(0) !important;
|
|
2491
2579
|
border-right: none !important;
|
|
2492
2580
|
border-left: 1px solid var(--rdd-border-panel, #3c3c3c) !important;
|
|
2493
2581
|
}
|
|
2494
2582
|
|
|
2495
|
-
|
|
2583
|
+
.rdd-side-panel-right:dir(rtl) {
|
|
2496
2584
|
right: auto !important;
|
|
2497
2585
|
left: 0 !important;
|
|
2498
2586
|
transform: translateX(-100%) !important;
|
|
2499
2587
|
}
|
|
2500
|
-
|
|
2588
|
+
.rdd-side-panel-right.rdd-side-panel-visible:dir(rtl) {
|
|
2501
2589
|
transform: translateX(0) !important;
|
|
2502
2590
|
border-left: none !important;
|
|
2503
2591
|
border-right: 1px solid var(--rdd-border-panel, #3c3c3c) !important;
|
|
2504
2592
|
}
|
|
2505
2593
|
|
|
2506
2594
|
/* Minimize Taskbar adjustments */
|
|
2507
|
-
|
|
2595
|
+
.rdd-taskbar-footer-container:dir(rtl) {
|
|
2508
2596
|
flex-direction: row-reverse !important;
|
|
2509
2597
|
}
|
|
2510
|
-
|
|
2598
|
+
.rdd-taskbar-item-icon:dir(rtl) {
|
|
2511
2599
|
margin-right: 0 !important;
|
|
2512
2600
|
margin-left: 4px !important;
|
|
2513
2601
|
}
|
|
@@ -2516,22 +2604,22 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2516
2604
|
Dots must stay on the LEFT in both LTR and RTL (real macOS behavior).
|
|
2517
2605
|
In RTL context flex-direction:row flows items right-to-left, so
|
|
2518
2606
|
DOM [title][buttons] → title at RIGHT, buttons at LEFT. */
|
|
2519
|
-
[
|
|
2607
|
+
[data-rdd-skin="macos"] .rdd-floating-window-titlebar:dir(rtl) {
|
|
2520
2608
|
flex-direction: row !important;
|
|
2521
2609
|
}
|
|
2522
2610
|
/* Title: pack icon+text toward the visual right (flex-start = right in RTL) */
|
|
2523
|
-
[
|
|
2611
|
+
[data-rdd-skin="macos"] .rdd-floating-window-titlebar .rdd-floating-window-title:dir(rtl) {
|
|
2524
2612
|
justify-content: flex-start !important;
|
|
2525
2613
|
}
|
|
2526
2614
|
/* Button group: keep dots in correct visual order (Red → Yellow → Green, close at far left).
|
|
2527
2615
|
direction:rtl (inherited) + flex-direction:row = right-to-left → DOM first item (more) at right,
|
|
2528
2616
|
last item (close) at left. */
|
|
2529
|
-
[
|
|
2617
|
+
[data-rdd-skin="macos"] .rdd-floating-window-titlebar .rdd-titlebar-actions:dir(rtl) {
|
|
2530
2618
|
flex-direction: row !important;
|
|
2531
2619
|
}
|
|
2532
2620
|
|
|
2533
2621
|
/* Mirror close-button margins for macOS tabs under RTL */
|
|
2534
|
-
[
|
|
2622
|
+
[data-rdd-skin="macos"] .rdd-close-tab-x:dir(rtl) {
|
|
2535
2623
|
margin-left: 0 !important;
|
|
2536
2624
|
margin-right: 2px !important;
|
|
2537
2625
|
}
|
|
@@ -2541,60 +2629,60 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2541
2629
|
.left strips move visually to the RIGHT and .right strips to the LEFT.
|
|
2542
2630
|
All physical border-left/border-right and box-shadow directions must swap. */
|
|
2543
2631
|
|
|
2544
|
-
|
|
2632
|
+
.rdd-sidebar-tabs-strip.rdd-left:dir(rtl) {
|
|
2545
2633
|
border-left: 1px solid var(--rdd-sidebar-border) !important;
|
|
2546
2634
|
border-right: none !important;
|
|
2547
2635
|
}
|
|
2548
|
-
|
|
2636
|
+
.rdd-sidebar-tabs-strip.rdd-right:dir(rtl) {
|
|
2549
2637
|
border-right: 1px solid var(--rdd-sidebar-border) !important;
|
|
2550
2638
|
border-left: none !important;
|
|
2551
2639
|
}
|
|
2552
2640
|
|
|
2553
|
-
|
|
2641
|
+
.rdd-sidebar-tabs-strip.rdd-left .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2554
2642
|
border-left: none !important;
|
|
2555
2643
|
border-right: var(--rdd-tab-accent-bar-width, 3px) solid var(--rdd-tab-icon-active) !important;
|
|
2556
2644
|
margin-left: -2px !important;
|
|
2557
2645
|
margin-right: 0 !important;
|
|
2558
2646
|
}
|
|
2559
|
-
|
|
2647
|
+
.rdd-sidebar-tabs-strip.rdd-right .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2560
2648
|
border-right: none !important;
|
|
2561
2649
|
border-left: var(--rdd-tab-accent-bar-width, 3px) solid var(--rdd-tab-icon-active) !important;
|
|
2562
2650
|
margin-right: -2px !important;
|
|
2563
2651
|
margin-left: 0 !important;
|
|
2564
2652
|
}
|
|
2565
2653
|
|
|
2566
|
-
|
|
2654
|
+
.rdd-sidebar-content-drawer.rdd-left:dir(rtl) {
|
|
2567
2655
|
border-left: 1px solid var(--rdd-sidebar-border) !important;
|
|
2568
2656
|
border-right: none !important;
|
|
2569
2657
|
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.12);
|
|
2570
2658
|
}
|
|
2571
|
-
|
|
2659
|
+
.rdd-sidebar-content-drawer.rdd-right:dir(rtl) {
|
|
2572
2660
|
border-right: 1px solid var(--rdd-sidebar-border) !important;
|
|
2573
2661
|
border-left: none !important;
|
|
2574
2662
|
box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
|
|
2575
2663
|
}
|
|
2576
2664
|
|
|
2577
2665
|
/* obsidian & tokyo — flip the inset glow X offset sign */
|
|
2578
|
-
[
|
|
2666
|
+
[data-rdd-skin="obsidian"] .rdd-sidebar-tabs-strip.rdd-left .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2579
2667
|
box-shadow: var(--rdd-tab-btn-active-shadow), inset -3px 0 8px rgba(255, 255, 255, 0.08) !important;
|
|
2580
2668
|
}
|
|
2581
|
-
[
|
|
2669
|
+
[data-rdd-skin="obsidian"] .rdd-sidebar-tabs-strip.rdd-right .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2582
2670
|
box-shadow: var(--rdd-tab-btn-active-shadow), inset 3px 0 8px rgba(255, 255, 255, 0.08) !important;
|
|
2583
2671
|
}
|
|
2584
|
-
[
|
|
2672
|
+
[data-rdd-skin="tokyo"] .rdd-sidebar-tabs-strip.rdd-left .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2585
2673
|
box-shadow: var(--rdd-tab-btn-active-shadow), inset -3px 0 12px rgba(122, 162, 247, 0.18) !important;
|
|
2586
2674
|
}
|
|
2587
|
-
[
|
|
2675
|
+
[data-rdd-skin="tokyo"] .rdd-sidebar-tabs-strip.rdd-right .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2588
2676
|
box-shadow: var(--rdd-tab-btn-active-shadow), inset 3px 0 12px rgba(122, 162, 247, 0.18) !important;
|
|
2589
2677
|
}
|
|
2590
2678
|
|
|
2591
2679
|
/* chrome — swap the capsule border-radius when strips change sides */
|
|
2592
|
-
[
|
|
2680
|
+
[data-rdd-skin="chrome"] .rdd-sidebar-tabs-strip.rdd-left .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2593
2681
|
border-radius: 10px 0 0 10px !important;
|
|
2594
2682
|
margin-left: 0 !important;
|
|
2595
2683
|
margin-right: 0 !important;
|
|
2596
2684
|
}
|
|
2597
|
-
[
|
|
2685
|
+
[data-rdd-skin="chrome"] .rdd-sidebar-tabs-strip.rdd-right .rdd-sidebar-tab-btn.rdd-active:dir(rtl) {
|
|
2598
2686
|
border-radius: 0 10px 10px 0 !important;
|
|
2599
2687
|
margin-right: 0 !important;
|
|
2600
2688
|
margin-left: 0 !important;
|
|
@@ -2616,6 +2704,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2616
2704
|
.rdd-titlebar-actions {
|
|
2617
2705
|
display: flex;
|
|
2618
2706
|
align-items: center;
|
|
2707
|
+
gap: var(--rdd-header-button-gap, 4px);
|
|
2619
2708
|
}
|
|
2620
2709
|
|
|
2621
2710
|
/* Window custom header actions slot */
|
|
@@ -2640,6 +2729,8 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2640
2729
|
flex-grow: 1;
|
|
2641
2730
|
width: 100%;
|
|
2642
2731
|
height: 100%;
|
|
2732
|
+
position: relative;
|
|
2733
|
+
overflow: hidden;
|
|
2643
2734
|
}
|
|
2644
2735
|
|
|
2645
2736
|
/* Empty workspace section placeholder text */
|
|
@@ -2675,12 +2766,21 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2675
2766
|
align-items: center;
|
|
2676
2767
|
justify-content: center;
|
|
2677
2768
|
background: transparent;
|
|
2678
|
-
color:
|
|
2769
|
+
color: var(--rdd-danger-color);
|
|
2770
|
+
border: 2px dashed var(--rdd-danger-color);
|
|
2679
2771
|
font-family: var(--rdd-font-family-mono);
|
|
2680
2772
|
padding: 1rem;
|
|
2681
2773
|
text-align: center;
|
|
2682
2774
|
box-sizing: border-box;
|
|
2683
2775
|
}
|
|
2776
|
+
.rdd-unregistered-panel__title {
|
|
2777
|
+
font-weight: 700;
|
|
2778
|
+
margin-bottom: 0.25rem;
|
|
2779
|
+
}
|
|
2780
|
+
.rdd-unregistered-panel__key {
|
|
2781
|
+
font-size: 0.875rem;
|
|
2782
|
+
color: var(--rdd-text-secondary, #94a3b8);
|
|
2783
|
+
}
|
|
2684
2784
|
|
|
2685
2785
|
/* Taskbar scrollable items row */
|
|
2686
2786
|
.rdd-taskbar-items-container {
|
|
@@ -2739,6 +2839,16 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2739
2839
|
flex-direction: column;
|
|
2740
2840
|
gap: 0.75rem;
|
|
2741
2841
|
}
|
|
2842
|
+
.rdd-confirmation-message {
|
|
2843
|
+
font-size: 0.9rem;
|
|
2844
|
+
color: inherit;
|
|
2845
|
+
line-height: 1.5;
|
|
2846
|
+
}
|
|
2847
|
+
.rdd-confirmation-divider {
|
|
2848
|
+
margin-top: 0.5rem;
|
|
2849
|
+
margin-bottom: 0.5rem;
|
|
2850
|
+
opacity: 0.1;
|
|
2851
|
+
}
|
|
2742
2852
|
|
|
2743
2853
|
.rdd-confirmation-alert {
|
|
2744
2854
|
display: flex;
|
|
@@ -3006,12 +3116,12 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3006
3116
|
.rdd-toolbar-group-flyout.rdd-top { transform-origin: top left; }
|
|
3007
3117
|
.rdd-toolbar-group-flyout.rdd-bottom { transform-origin: bottom left; }
|
|
3008
3118
|
/* RTL: physical sides swap, so animation origin flips horizontally */
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3119
|
+
.rdd-toolbar-group-flyout.rdd-left:dir(rtl) { transform-origin: top right; }
|
|
3120
|
+
.rdd-toolbar-group-flyout.rdd-right:dir(rtl) { transform-origin: top left; }
|
|
3121
|
+
.rdd-toolbar-group-flyout.rdd-top:dir(rtl) { transform-origin: top right; }
|
|
3122
|
+
.rdd-toolbar-group-flyout.rdd-bottom:dir(rtl) { transform-origin: bottom right; }
|
|
3013
3123
|
|
|
3014
|
-
|
|
3124
|
+
.rdd-toolbar-group-flyout-label:dir(rtl) {
|
|
3015
3125
|
text-align: right;
|
|
3016
3126
|
}
|
|
3017
3127
|
|
|
@@ -3555,6 +3665,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3555
3665
|
overflow: hidden;
|
|
3556
3666
|
max-height: 300px;
|
|
3557
3667
|
overflow-y: auto;
|
|
3668
|
+
position: fixed; /* top/left/width are set inline */
|
|
3558
3669
|
}
|
|
3559
3670
|
|
|
3560
3671
|
.rdd-panel-toolbar-search__group {
|
|
@@ -3731,12 +3842,12 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3731
3842
|
.rdd-panel-float-dropzone--bottom-left { bottom: 8px; left: 8px; }
|
|
3732
3843
|
.rdd-panel-float-dropzone--bottom-right { bottom: 8px; right: 8px; }
|
|
3733
3844
|
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3845
|
+
.rdd-panel-float-dropzone--top-right:dir(rtl) { right: auto; left: 8px; }
|
|
3846
|
+
.rdd-panel-float-dropzone--top-left:dir(rtl) { left: auto; right: 8px; }
|
|
3847
|
+
.rdd-panel-float-dropzone--bottom-right:dir(rtl) { right: auto; left: 8px; }
|
|
3848
|
+
.rdd-panel-float-dropzone--bottom-left:dir(rtl) { left: auto; right: 8px; }
|
|
3738
3849
|
|
|
3739
|
-
|
|
3850
|
+
.rdd-panel-float__title:dir(rtl) { text-align: right; }
|
|
3740
3851
|
|
|
3741
3852
|
/* ── Toast ── */
|
|
3742
3853
|
|
|
@@ -3838,8 +3949,8 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3838
3949
|
@keyframes rdd-toast-shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
3839
3950
|
|
|
3840
3951
|
/* Toast RTL: flip icon/body order and progress bar collapse direction */
|
|
3841
|
-
|
|
3842
|
-
|
|
3952
|
+
.rdd-toast:dir(rtl) { flex-direction: row-reverse; }
|
|
3953
|
+
.rdd-toast__progress:dir(rtl) { transform-origin: right; }
|
|
3843
3954
|
|
|
3844
3955
|
/* ==========================================================================
|
|
3845
3956
|
KEYBOARD FOCUS
|
|
@@ -3852,3 +3963,23 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3852
3963
|
outline: var(--rdd-focus-ring, 2px solid var(--rdd-accent-color));
|
|
3853
3964
|
outline-offset: -2px;
|
|
3854
3965
|
}
|
|
3966
|
+
|
|
3967
|
+
/* ── Fixed values that used to be inline styles (7.1.2) ─────────────────────────────────── */
|
|
3968
|
+
/* Icons drawn by the library: block, so they don't sit on the text baseline. */
|
|
3969
|
+
.rdd-svg-icon { display: block; }
|
|
3970
|
+
.rdd-workspace-tab-title {
|
|
3971
|
+
max-width: 120px;
|
|
3972
|
+
display: flex;
|
|
3973
|
+
align-items: center;
|
|
3974
|
+
}
|
|
3975
|
+
.rdd-tooltip-title-text { max-width: 140px; }
|
|
3976
|
+
/* After `.rdd-workspace * { scrollbar-width: thin }`, which it must beat: the tab strip scrolls
|
|
3977
|
+
with its own arrow buttons, not a scrollbar. */
|
|
3978
|
+
.rdd-tab-headers-container { scrollbar-width: none; }
|
|
3979
|
+
/* Starting place; the layout effect positions the submenu before paint. */
|
|
3980
|
+
.rdd-context-menu--submenu {
|
|
3981
|
+
left: 0;
|
|
3982
|
+
top: 0;
|
|
3983
|
+
}
|
|
3984
|
+
/* Wraps a drawer's portal without adding a box of its own. */
|
|
3985
|
+
.rdd-side-panel-anchor { display: contents; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dockable-desktop",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A premium, state-of-the-art window manager and dockable layout engine for React. Supports fluid grid splits, tabbed groups, floating resizable windows, zero-unmount state preservation, context menus, and internationalization.",
|
|
6
6
|
"main": "dist/index.cjs",
|