react-dockable-desktop 7.1.1 → 7.1.3

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/dist/styles.css CHANGED
@@ -11,10 +11,15 @@
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
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. */
14
+ (on :root or <body> to reach everything: menus, flyouts and toasts render into <body>). To use
15
+ the host page's font everywhere: `inherit` here on :root, or `initial` on <body>. `initial` on
16
+ a wrapper reaches only the chrome inside it; `inherit` below :root only copies this stack down. */
16
17
  --rdd-font-family: 'Outfit', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
17
18
  --rdd-font-family-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
19
+ /* Errors the library itself shows (the unregistered-panel placeholder). */
20
+ --rdd-danger-color: #dc3545;
21
+ /* Fill of placeholder boxes (a minimized panel's thumbnail when it has no live preview). */
22
+ --rdd-placeholder-bg: rgba(108, 117, 125, 0.15);
18
23
  --rdd-bg-primary: #090b11;
19
24
  --rdd-bg-workspace: #0f111a;
20
25
  --rdd-bg-panel: #141722;
@@ -219,6 +224,8 @@
219
224
  height: 100%;
220
225
  display: flex;
221
226
  flex-direction: column;
227
+ overflow: hidden;
228
+ position: relative;
222
229
  }
223
230
 
224
231
  /* Tab Headers Bar */
@@ -284,7 +291,7 @@
284
291
  background-color: var(--rdd-bg-tab-inactive) !important; /* VS Code dark background for inactive tabs */
285
292
  color: var(--rdd-text-tab-inactive) !important; /* Clear readable gray */
286
293
  border: none !important;
287
- border-right: 1px solid var(--rdd-border-panel) !important; /* crisp separator */
294
+ border-inline-end: 1px solid var(--rdd-border-panel) !important; /* crisp separator, on the reading-end side */
288
295
  padding: 0 6px 0 14px !important;
289
296
  font-size: 0.75rem;
290
297
  display: flex;
@@ -320,7 +327,7 @@
320
327
  background-color: var(--rdd-tab-bg-active-focused) !important;
321
328
  color: var(--rdd-tab-text-active-focused) !important;
322
329
  font-weight: 500;
323
- border-right: 1px solid var(--rdd-border-panel) !important;
330
+ border-inline-end: 1px solid var(--rdd-border-panel) !important;
324
331
  z-index: 2;
325
332
  }
326
333
 
@@ -341,7 +348,7 @@
341
348
  background-color: var(--rdd-tab-bg-active-unfocused) !important;
342
349
  color: var(--rdd-tab-text-active-unfocused) !important;
343
350
  font-weight: 500;
344
- border-right: 1px solid var(--rdd-border-panel) !important;
351
+ border-inline-end: 1px solid var(--rdd-border-panel) !important;
345
352
  z-index: 2;
346
353
  }
347
354
 
@@ -374,7 +381,13 @@
374
381
  display: flex;
375
382
  align-items: center;
376
383
  justify-content: center;
384
+ width: 18px;
385
+ height: 18px;
377
386
  }
387
+ /* Pushed to the tab's end when the tab has no header actions of its own. After the base rule, so
388
+ it wins over its margin-left. */
389
+ .rdd-close-tab-x--end { margin-inline-start: auto; }
390
+ .rdd-header-close-empty-group { cursor: pointer; }
378
391
 
379
392
  /* Always show close icon on active tab */
380
393
  .rdd-workspace-tab.rdd-active .rdd-close-tab-x {
@@ -685,6 +698,12 @@ body.rdd-resizing-col-active * {
685
698
  display: flex;
686
699
  flex-direction: column;
687
700
  gap: 0.25rem;
701
+ /* The resting place is here, not only in the fade-in's end state: with animations off there is
702
+ no keyframe, and the preview would otherwise sit on its icon. left/top are set inline. */
703
+ position: fixed;
704
+ transform: translateX(-50%) translateY(-100%);
705
+ opacity: 1;
706
+ pointer-events: auto;
688
707
  }
689
708
 
690
709
  /* Invisible bridge so mouse transitions smoothly to tooltip */
@@ -720,6 +739,20 @@ body.rdd-resizing-col-active * {
720
739
  pointer-events: none !important;
721
740
  user-select: none !important;
722
741
  }
742
+ /* A minimized panel with no live preview: a placeholder with the title's first letter. */
743
+ .rdd-taskbar-item-preview-frame--empty {
744
+ display: flex;
745
+ align-items: center;
746
+ justify-content: center;
747
+ background: var(--rdd-placeholder-bg);
748
+ border: 1px dashed var(--rdd-taskbar-item-border, rgba(255, 255, 255, 0.15));
749
+ }
750
+ .rdd-taskbar-item-preview-initial {
751
+ font-size: 2rem;
752
+ font-weight: 600;
753
+ color: var(--rdd-panel-title-color, var(--rdd-panel-text, rgba(255, 255, 255, 0.85)));
754
+ user-select: none;
755
+ }
723
756
 
724
757
  .rdd-taskbar-item-preview-host {
725
758
  transform-origin: top left;
@@ -1137,10 +1170,10 @@ body.rdd-dragging-active {
1137
1170
  }
1138
1171
 
1139
1172
  /* --- Theme Variables for Sidebar and Tabs --- */
1140
- /* Dark is the default scheme, so its tokens are defined on :root as well. <Toolbar> and <Sidebar>
1141
- sit outside the workspace element, and WindowManager mirrors only a *light* scheme onto <html>
1142
- — so with these under [data-color-scheme="dark"] alone, the toolbar and sidebar rendered with
1143
- no background, border or text colour in dark mode unless the app set the attribute itself. */
1173
+ /* Dark is the default scheme, so its tokens are defined on :root as well. <RddToolbar> and
1174
+ <RddSidebar> sit outside the workspace element and read these from <html>, where the page sets
1175
+ data-color-scheme="light" for light and usually sets nothing for dark — so with these under
1176
+ [data-color-scheme="dark"] alone, the toolbar and sidebar had no colours in dark mode. */
1144
1177
  :root,
1145
1178
  [data-color-scheme="dark"] {
1146
1179
  --rdd-sidebar-bg: #1e2024;
@@ -1183,6 +1216,7 @@ body.rdd-dragging-active {
1183
1216
  }
1184
1217
 
1185
1218
  [data-color-scheme="light"] {
1219
+ --rdd-danger-color: #b91c1c;
1186
1220
  --rdd-bg-primary: #f8f9fa;
1187
1221
  --rdd-bg-workspace: #f1f5f9;
1188
1222
  --rdd-bg-panel: #ffffff;
@@ -1505,7 +1539,7 @@ body.rdd-dragging-active {
1505
1539
  clip-path: polygon(10px 0%, calc(100% - 10px) 0%, 100% 100%, 0% 100%);
1506
1540
  padding: 0 18px !important;
1507
1541
  margin-right: -4px !important;
1508
- border-right: none !important;
1542
+ border-inline-end: none !important;
1509
1543
  }
1510
1544
  [data-rdd-skin="chrome"] .rdd-workspace-tab.rdd-active {
1511
1545
  z-index: 5;
@@ -2495,9 +2529,9 @@ html.rdd-no-animations [class*="rdd-"]::after {
2495
2529
  RTL (Right-to-Left) Support
2496
2530
  ========================================== */
2497
2531
 
2532
+ /* The separator is a logical border-inline-end (it follows direction by itself); only the
2533
+ physical padding is mirrored here. */
2498
2534
  .rdd-workspace-tab:dir(rtl) {
2499
- border-right: none !important;
2500
- border-left: 1px solid var(--rdd-border-panel) !important;
2501
2535
  padding: 0 14px 0 6px !important;
2502
2536
  }
2503
2537
 
@@ -2671,6 +2705,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
2671
2705
  .rdd-titlebar-actions {
2672
2706
  display: flex;
2673
2707
  align-items: center;
2708
+ gap: var(--rdd-header-button-gap, 4px);
2674
2709
  }
2675
2710
 
2676
2711
  /* Window custom header actions slot */
@@ -2732,12 +2767,21 @@ html.rdd-no-animations [class*="rdd-"]::after {
2732
2767
  align-items: center;
2733
2768
  justify-content: center;
2734
2769
  background: transparent;
2735
- color: #dc3545;
2770
+ color: var(--rdd-danger-color);
2771
+ border: 2px dashed var(--rdd-danger-color);
2736
2772
  font-family: var(--rdd-font-family-mono);
2737
2773
  padding: 1rem;
2738
2774
  text-align: center;
2739
2775
  box-sizing: border-box;
2740
2776
  }
2777
+ .rdd-unregistered-panel__title {
2778
+ font-weight: 700;
2779
+ margin-bottom: 0.25rem;
2780
+ }
2781
+ .rdd-unregistered-panel__key {
2782
+ font-size: 0.875rem;
2783
+ color: var(--rdd-text-secondary, #94a3b8);
2784
+ }
2741
2785
 
2742
2786
  /* Taskbar scrollable items row */
2743
2787
  .rdd-taskbar-items-container {
@@ -2796,6 +2840,16 @@ html.rdd-no-animations [class*="rdd-"]::after {
2796
2840
  flex-direction: column;
2797
2841
  gap: 0.75rem;
2798
2842
  }
2843
+ .rdd-confirmation-message {
2844
+ font-size: 0.9rem;
2845
+ color: inherit;
2846
+ line-height: 1.5;
2847
+ }
2848
+ .rdd-confirmation-divider {
2849
+ margin-top: 0.5rem;
2850
+ margin-bottom: 0.5rem;
2851
+ opacity: 0.1;
2852
+ }
2799
2853
 
2800
2854
  .rdd-confirmation-alert {
2801
2855
  display: flex;
@@ -3612,6 +3666,7 @@ html.rdd-no-animations [class*="rdd-"]::after {
3612
3666
  overflow: hidden;
3613
3667
  max-height: 300px;
3614
3668
  overflow-y: auto;
3669
+ position: fixed; /* top/left/width are set inline */
3615
3670
  }
3616
3671
 
3617
3672
  .rdd-panel-toolbar-search__group {
@@ -3909,3 +3964,23 @@ html.rdd-no-animations [class*="rdd-"]::after {
3909
3964
  outline: var(--rdd-focus-ring, 2px solid var(--rdd-accent-color));
3910
3965
  outline-offset: -2px;
3911
3966
  }
3967
+
3968
+ /* ── Fixed values that used to be inline styles (7.1.2) ─────────────────────────────────── */
3969
+ /* Icons drawn by the library: block, so they don't sit on the text baseline. */
3970
+ .rdd-svg-icon { display: block; }
3971
+ .rdd-workspace-tab-title {
3972
+ max-width: 120px;
3973
+ display: flex;
3974
+ align-items: center;
3975
+ }
3976
+ .rdd-tooltip-title-text { max-width: 140px; }
3977
+ /* After `.rdd-workspace * { scrollbar-width: thin }`, which it must beat: the tab strip scrolls
3978
+ with its own arrow buttons, not a scrollbar. */
3979
+ .rdd-tab-headers-container { scrollbar-width: none; }
3980
+ /* Starting place; the layout effect positions the submenu before paint. */
3981
+ .rdd-context-menu--submenu {
3982
+ left: 0;
3983
+ top: 0;
3984
+ }
3985
+ /* Wraps a drawer's portal without adding a box of its own. */
3986
+ .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.1",
3
+ "version": "7.1.3",
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",