react-dockable-desktop 7.3.0 → 7.4.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 +647 -0
- package/README.md +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -13
- package/dist/index.d.ts +18 -13
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/styles.css +76 -8
- package/package.json +3 -2
package/dist/styles.css
CHANGED
|
@@ -888,16 +888,65 @@ body.rdd-resizing-col-active * {
|
|
|
888
888
|
background: var(--rdd-scrollbar-thumb-hover);
|
|
889
889
|
}
|
|
890
890
|
|
|
891
|
+
/* Frosted glass sits on a ::before, never on the container itself (7.4.0). A backdrop-filter
|
|
892
|
+
makes its element the containing block for position: fixed descendants, so a consumer's fixed
|
|
893
|
+
dropdown inside a frosted window, drawer, panel or panel toolbar was positioned against the container — and
|
|
894
|
+
which containers were frosted depended on the skin. The pseudo-element is not an ancestor of the
|
|
895
|
+
content, so the content keeps the viewport. Where the frost saturates, the container's background
|
|
896
|
+
moves to the same pseudo, after the filter, as it was on the element: saturate() does not commute
|
|
897
|
+
with the tint (a plain blur does, so the overlay widget keeps its own background).
|
|
898
|
+
isolation keeps the z-index: -1 pseudo inside the container, below its content. */
|
|
899
|
+
.rdd-floating-window,
|
|
900
|
+
.rdd-side-panel,
|
|
901
|
+
.rdd-panel-float,
|
|
902
|
+
.rdd-panel-toolbar[data-variant="frosted"],
|
|
903
|
+
[data-rdd-skin="macos"] .rdd-workspace-panel {
|
|
904
|
+
isolation: isolate;
|
|
905
|
+
}
|
|
906
|
+
.rdd-floating-window::before,
|
|
907
|
+
.rdd-side-panel::before,
|
|
908
|
+
.rdd-panel-float::before,
|
|
909
|
+
.rdd-panel-toolbar[data-variant="frosted"]::before,
|
|
910
|
+
[data-rdd-skin="macos"] .rdd-workspace-panel::before {
|
|
911
|
+
content: "";
|
|
912
|
+
position: absolute;
|
|
913
|
+
inset: 0;
|
|
914
|
+
z-index: -1;
|
|
915
|
+
border-radius: inherit;
|
|
916
|
+
pointer-events: none;
|
|
917
|
+
}
|
|
918
|
+
.rdd-floating-window::before { background-color: var(--rdd-window-bg); }
|
|
919
|
+
.rdd-side-panel::before { background: var(--rdd-side-panel-bg); }
|
|
920
|
+
[data-rdd-skin="macos"] .rdd-workspace-panel::before { background-color: var(--rdd-bg-panel); }
|
|
921
|
+
/* The background ran under the container's 1px border too: so does the pseudo (a maximized
|
|
922
|
+
window has no border; a frosted panel toolbar has one on its inner edge). */
|
|
923
|
+
.rdd-floating-window::before,
|
|
924
|
+
[data-rdd-skin="macos"] .rdd-workspace-panel::before {
|
|
925
|
+
inset: -1px;
|
|
926
|
+
}
|
|
927
|
+
.rdd-panel-toolbar--top[data-variant="frosted"]::before { bottom: -1px; }
|
|
928
|
+
.rdd-panel-toolbar--bottom[data-variant="frosted"]::before { top: -1px; }
|
|
929
|
+
.rdd-panel-toolbar--left[data-variant="frosted"]::before { right: -1px; }
|
|
930
|
+
.rdd-panel-toolbar--right[data-variant="frosted"]::before { left: -1px; }
|
|
931
|
+
.rdd-floating-window.rdd-maximized::before {
|
|
932
|
+
inset: 0;
|
|
933
|
+
}
|
|
934
|
+
/* The docked panel's own background is on its ::before only in macOS, the skin that frosts it. */
|
|
935
|
+
[data-rdd-skin="macos"] .rdd-workspace-panel {
|
|
936
|
+
background-color: transparent;
|
|
937
|
+
}
|
|
938
|
+
|
|
891
939
|
.rdd-floating-window {
|
|
892
940
|
display: flex;
|
|
893
941
|
flex-direction: column;
|
|
894
942
|
border-radius: calc(8px * var(--rdd-radius-scale, 1));
|
|
895
943
|
border: 1px solid var(--rdd-window-border);
|
|
896
944
|
box-shadow: var(--rdd-window-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
|
|
945
|
+
transition: box-shadow 0.2s, border-color 0.2s;
|
|
946
|
+
}
|
|
947
|
+
.rdd-floating-window::before {
|
|
897
948
|
backdrop-filter: blur(16px) saturate(180%);
|
|
898
949
|
-webkit-backdrop-filter: blur(16px) saturate(180%);
|
|
899
|
-
background-color: var(--rdd-window-bg);
|
|
900
|
-
transition: box-shadow 0.2s, border-color 0.2s;
|
|
901
950
|
}
|
|
902
951
|
|
|
903
952
|
/* Clips the content to the rounded corners, in place of the window itself — so the resize
|
|
@@ -1457,9 +1506,11 @@ body.rdd-dragging-active {
|
|
|
1457
1506
|
/* macOS structural adjustments */
|
|
1458
1507
|
[data-rdd-skin="macos"] .rdd-floating-window {
|
|
1459
1508
|
border-radius: calc(12px * var(--rdd-radius-scale, 1));
|
|
1509
|
+
border-color: var(--rdd-window-border);
|
|
1510
|
+
}
|
|
1511
|
+
[data-rdd-skin="macos"] .rdd-floating-window::before {
|
|
1460
1512
|
backdrop-filter: blur(20px) saturate(180%);
|
|
1461
1513
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
1462
|
-
border-color: var(--rdd-window-border);
|
|
1463
1514
|
}
|
|
1464
1515
|
[data-rdd-skin="macos"] .rdd-floating-window-titlebar {
|
|
1465
1516
|
border-top-left-radius: calc(12px * var(--rdd-radius-scale, 1));
|
|
@@ -1467,6 +1518,8 @@ body.rdd-dragging-active {
|
|
|
1467
1518
|
}
|
|
1468
1519
|
[data-rdd-skin="macos"] .rdd-workspace-panel {
|
|
1469
1520
|
border-radius: calc(8px * var(--rdd-radius-scale, 1));
|
|
1521
|
+
}
|
|
1522
|
+
[data-rdd-skin="macos"] .rdd-workspace-panel::before {
|
|
1470
1523
|
backdrop-filter: blur(12px) saturate(180%);
|
|
1471
1524
|
-webkit-backdrop-filter: blur(12px) saturate(180%);
|
|
1472
1525
|
}
|
|
@@ -2273,6 +2326,18 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2273
2326
|
animation: none !important;
|
|
2274
2327
|
}
|
|
2275
2328
|
|
|
2329
|
+
/* The same when the user has asked the system for less motion (7.4.0): the library's own
|
|
2330
|
+
transitions and animations stop, whatever `animations` says. The consumer's own are untouched,
|
|
2331
|
+
exactly as above. */
|
|
2332
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2333
|
+
[class*="rdd-"],
|
|
2334
|
+
[class*="rdd-"]::before,
|
|
2335
|
+
[class*="rdd-"]::after {
|
|
2336
|
+
transition: none !important;
|
|
2337
|
+
animation: none !important;
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2276
2341
|
|
|
2277
2342
|
|
|
2278
2343
|
@keyframes rdd-fade-in {
|
|
@@ -2403,9 +2468,6 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2403
2468
|
top: 0;
|
|
2404
2469
|
bottom: 0;
|
|
2405
2470
|
width: 400px;
|
|
2406
|
-
background: var(--rdd-side-panel-bg);
|
|
2407
|
-
backdrop-filter: blur(20px) saturate(180%);
|
|
2408
|
-
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
2409
2471
|
border-right: 1px solid var(--rdd-side-panel-border);
|
|
2410
2472
|
z-index: calc(var(--rdd-z-base, 1000) + 8000);
|
|
2411
2473
|
box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
|
|
@@ -2413,6 +2475,10 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2413
2475
|
display: flex;
|
|
2414
2476
|
flex-direction: column;
|
|
2415
2477
|
}
|
|
2478
|
+
.rdd-side-panel::before {
|
|
2479
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
2480
|
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
2481
|
+
}
|
|
2416
2482
|
|
|
2417
2483
|
.rdd-side-panel-right {
|
|
2418
2484
|
right: 0;
|
|
@@ -3562,7 +3628,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3562
3628
|
}
|
|
3563
3629
|
|
|
3564
3630
|
/* ── Toolbar strip variants ── */
|
|
3565
|
-
.rdd-panel-toolbar[data-variant="frosted"] {
|
|
3631
|
+
.rdd-panel-toolbar[data-variant="frosted"]::before {
|
|
3566
3632
|
background: color-mix(in srgb, var(--rdd--b-panel-toolbar-frosted-bg, rgb(15 20 30)) 55%, transparent);
|
|
3567
3633
|
backdrop-filter: blur(10px) saturate(150%);
|
|
3568
3634
|
-webkit-backdrop-filter: blur(10px) saturate(150%);
|
|
@@ -3570,7 +3636,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3570
3636
|
.rdd-panel-toolbar[data-variant="solid"] {
|
|
3571
3637
|
background: var(--rdd-bg-tab-bar, #0d0f16);
|
|
3572
3638
|
}
|
|
3573
|
-
[data-color-scheme="light"] .rdd-panel-toolbar[data-variant="frosted"] {
|
|
3639
|
+
[data-color-scheme="light"] .rdd-panel-toolbar[data-variant="frosted"]::before {
|
|
3574
3640
|
background: color-mix(in srgb, var(--rdd--b-panel-toolbar-frosted-bg, rgb(233 236 239)) 72%, transparent);
|
|
3575
3641
|
}
|
|
3576
3642
|
.rdd-panel-toolbar--top[data-variant="frosted"],
|
|
@@ -3786,6 +3852,8 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3786
3852
|
background: var(--rdd-panel-float-bg, rgba(22, 24, 34, 0.92));
|
|
3787
3853
|
border: 1px solid var(--rdd-panel-float-border, rgba(255, 255, 255, 0.1));
|
|
3788
3854
|
box-shadow: var(--rdd-panel-float-shadow, 0 4px 16px rgba(0, 0, 0, 0.35));
|
|
3855
|
+
}
|
|
3856
|
+
.rdd-panel-float::before {
|
|
3789
3857
|
backdrop-filter: blur(8px);
|
|
3790
3858
|
}
|
|
3791
3859
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dockable-desktop",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
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",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"src/index.css"
|
|
20
20
|
],
|
|
21
21
|
"files": [
|
|
22
|
-
"dist"
|
|
22
|
+
"dist",
|
|
23
|
+
"CHANGELOG.md"
|
|
23
24
|
],
|
|
24
25
|
"keywords": [
|
|
25
26
|
"react",
|