react-dockable-desktop 7.1.1 → 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 +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +75 -1
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
`initial` on any ancestor — `inherit` below :root only copies this stack down. */
|
|
16
16
|
--rdd-font-family: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
17
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);
|
|
18
22
|
--rdd-bg-primary: #090b11;
|
|
19
23
|
--rdd-bg-workspace: #0f111a;
|
|
20
24
|
--rdd-bg-panel: #141722;
|
|
@@ -219,6 +223,8 @@
|
|
|
219
223
|
height: 100%;
|
|
220
224
|
display: flex;
|
|
221
225
|
flex-direction: column;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
position: relative;
|
|
222
228
|
}
|
|
223
229
|
|
|
224
230
|
/* Tab Headers Bar */
|
|
@@ -374,7 +380,13 @@
|
|
|
374
380
|
display: flex;
|
|
375
381
|
align-items: center;
|
|
376
382
|
justify-content: center;
|
|
383
|
+
width: 18px;
|
|
384
|
+
height: 18px;
|
|
377
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; }
|
|
378
390
|
|
|
379
391
|
/* Always show close icon on active tab */
|
|
380
392
|
.rdd-workspace-tab.rdd-active .rdd-close-tab-x {
|
|
@@ -685,6 +697,12 @@ body.rdd-resizing-col-active * {
|
|
|
685
697
|
display: flex;
|
|
686
698
|
flex-direction: column;
|
|
687
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;
|
|
688
706
|
}
|
|
689
707
|
|
|
690
708
|
/* Invisible bridge so mouse transitions smoothly to tooltip */
|
|
@@ -720,6 +738,20 @@ body.rdd-resizing-col-active * {
|
|
|
720
738
|
pointer-events: none !important;
|
|
721
739
|
user-select: none !important;
|
|
722
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
|
+
}
|
|
723
755
|
|
|
724
756
|
.rdd-taskbar-item-preview-host {
|
|
725
757
|
transform-origin: top left;
|
|
@@ -1183,6 +1215,7 @@ body.rdd-dragging-active {
|
|
|
1183
1215
|
}
|
|
1184
1216
|
|
|
1185
1217
|
[data-color-scheme="light"] {
|
|
1218
|
+
--rdd-danger-color: #b91c1c;
|
|
1186
1219
|
--rdd-bg-primary: #f8f9fa;
|
|
1187
1220
|
--rdd-bg-workspace: #f1f5f9;
|
|
1188
1221
|
--rdd-bg-panel: #ffffff;
|
|
@@ -2671,6 +2704,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2671
2704
|
.rdd-titlebar-actions {
|
|
2672
2705
|
display: flex;
|
|
2673
2706
|
align-items: center;
|
|
2707
|
+
gap: var(--rdd-header-button-gap, 4px);
|
|
2674
2708
|
}
|
|
2675
2709
|
|
|
2676
2710
|
/* Window custom header actions slot */
|
|
@@ -2732,12 +2766,21 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2732
2766
|
align-items: center;
|
|
2733
2767
|
justify-content: center;
|
|
2734
2768
|
background: transparent;
|
|
2735
|
-
color:
|
|
2769
|
+
color: var(--rdd-danger-color);
|
|
2770
|
+
border: 2px dashed var(--rdd-danger-color);
|
|
2736
2771
|
font-family: var(--rdd-font-family-mono);
|
|
2737
2772
|
padding: 1rem;
|
|
2738
2773
|
text-align: center;
|
|
2739
2774
|
box-sizing: border-box;
|
|
2740
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
|
+
}
|
|
2741
2784
|
|
|
2742
2785
|
/* Taskbar scrollable items row */
|
|
2743
2786
|
.rdd-taskbar-items-container {
|
|
@@ -2796,6 +2839,16 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2796
2839
|
flex-direction: column;
|
|
2797
2840
|
gap: 0.75rem;
|
|
2798
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
|
+
}
|
|
2799
2852
|
|
|
2800
2853
|
.rdd-confirmation-alert {
|
|
2801
2854
|
display: flex;
|
|
@@ -3612,6 +3665,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3612
3665
|
overflow: hidden;
|
|
3613
3666
|
max-height: 300px;
|
|
3614
3667
|
overflow-y: auto;
|
|
3668
|
+
position: fixed; /* top/left/width are set inline */
|
|
3615
3669
|
}
|
|
3616
3670
|
|
|
3617
3671
|
.rdd-panel-toolbar-search__group {
|
|
@@ -3909,3 +3963,23 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
3909
3963
|
outline: var(--rdd-focus-ring, 2px solid var(--rdd-accent-color));
|
|
3910
3964
|
outline-offset: -2px;
|
|
3911
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",
|