react-dockable-desktop 5.2.2 → 5.3.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/dist/styles.css CHANGED
@@ -1892,23 +1892,46 @@ body.rdd-dragging-active {
1892
1892
  padding-top: 0;
1893
1893
  }
1894
1894
 
1895
+ /* When a footerAction is present, it owns its own bottom spacing (see .rdd-sidebar-footer-area
1896
+ below) — the strip's own bottom padding no longer applies. */
1897
+ .rdd-sidebar-tabs-strip.rdd-sidebar-tabs-strip--has-footer-action {
1898
+ padding-bottom: 0;
1899
+ }
1900
+
1895
1901
  /* Wraps `headerAction` — independent of .rdd-sidebar-tabs-list's own gap, so a consumer can
1896
- tune spacing/effective height around their button (default or fully custom-rendered) without
1897
- touching inter-tab spacing. Layout-only values, so no light/dark variant is needed. */
1902
+ tune spacing/effective height around their button(s) (default, custom-rendered, or a mix with
1903
+ real tabs) without touching inter-tab spacing. Layout-only values, so no light/dark variant is
1904
+ needed. Column + gap so multiple entries stack — visually identical to before for the single-
1905
+ entry case. */
1898
1906
  .rdd-sidebar-header-area {
1899
1907
  display: flex;
1908
+ flex-direction: column;
1900
1909
  align-items: center;
1901
- justify-content: center;
1910
+ gap: 8px;
1902
1911
  padding-top: var(--rdd-sidebar-header-area-padding-top, 8px);
1903
1912
  padding-bottom: var(--rdd-sidebar-header-area-padding-bottom, 8px);
1904
1913
  }
1905
1914
 
1906
- /* Wraps the tabs onlyowns the gap that used to live on .rdd-sidebar-tabs-strip itself. */
1915
+ /* Mirror of .rdd-sidebar-header-area for `footerAction` pinned to the bottom of the strip via
1916
+ .rdd-sidebar-tabs-list's flex: 1 below. */
1917
+ .rdd-sidebar-footer-area {
1918
+ display: flex;
1919
+ flex-direction: column;
1920
+ align-items: center;
1921
+ gap: 8px;
1922
+ padding-top: var(--rdd-sidebar-footer-area-padding-top, 8px);
1923
+ padding-bottom: var(--rdd-sidebar-footer-area-padding-bottom, 8px);
1924
+ }
1925
+
1926
+ /* Wraps the tabs only — owns the gap that used to live on .rdd-sidebar-tabs-strip itself.
1927
+ flex: 1 absorbs remaining space so a following .rdd-sidebar-footer-area is pushed to the
1928
+ bottom of the strip regardless of tab count. */
1907
1929
  .rdd-sidebar-tabs-list {
1908
1930
  display: flex;
1909
1931
  flex-direction: column;
1910
1932
  align-items: center;
1911
1933
  gap: 8px;
1934
+ flex: 1;
1912
1935
  }
1913
1936
 
1914
1937
  /* Position-specific tab strip border alignment */
@@ -2727,6 +2750,27 @@ html.rdd-no-animations [class*="rdd-"]::after {
2727
2750
  min-height: 38px;
2728
2751
  }
2729
2752
 
2753
+ /* Optional close button (showCloseButton) — an extra way to collapse the sidebar besides
2754
+ clicking the active tab's own icon again. */
2755
+ .rdd-sidebar-drawer-close-button {
2756
+ background: transparent;
2757
+ border: none;
2758
+ color: var(--sidebar-text-muted, var(--rdd-text-secondary));
2759
+ cursor: pointer;
2760
+ padding: 4px;
2761
+ display: flex;
2762
+ align-items: center;
2763
+ justify-content: center;
2764
+ border-radius: 4px;
2765
+ transition: all 0.15s ease;
2766
+ flex-shrink: 0;
2767
+ }
2768
+
2769
+ .rdd-sidebar-drawer-close-button:hover {
2770
+ background-color: var(--sidebar-btn-hover-bg);
2771
+ color: var(--sidebar-text-title);
2772
+ }
2773
+
2730
2774
  /* Sidebar drawer content body */
2731
2775
  .rdd-sidebar-drawer-body {
2732
2776
  flex-grow: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dockable-desktop",
3
- "version": "5.2.2",
3
+ "version": "5.3.0",
4
4
  "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.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",