react-dockable-desktop 5.2.2 → 5.3.1
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.d.cts +36 -9
- package/dist/index.d.ts +36 -9
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +53 -4
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1892,23 +1892,51 @@ 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
|
|
1897
|
-
touching inter-tab spacing. Layout-only values, so no light/dark variant is
|
|
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
|
-
|
|
1910
|
+
gap: 8px;
|
|
1911
|
+
/* Floor matching .rdd-sidebar-tab-btn's own intrinsic 44px — without it, a lone active tab
|
|
1912
|
+
(width: var(--tab-btn-active-width, 100%)) has no stable sibling to size this shrink-to-fit
|
|
1913
|
+
container against, so its 100% resolves against nothing and collapses to its icon's size. */
|
|
1914
|
+
min-width: 44px;
|
|
1902
1915
|
padding-top: var(--rdd-sidebar-header-area-padding-top, 8px);
|
|
1903
1916
|
padding-bottom: var(--rdd-sidebar-header-area-padding-bottom, 8px);
|
|
1904
1917
|
}
|
|
1905
1918
|
|
|
1906
|
-
/*
|
|
1919
|
+
/* Mirror of .rdd-sidebar-header-area for `footerAction` — pinned to the bottom of the strip via
|
|
1920
|
+
.rdd-sidebar-tabs-list's flex: 1 below. */
|
|
1921
|
+
.rdd-sidebar-footer-area {
|
|
1922
|
+
display: flex;
|
|
1923
|
+
flex-direction: column;
|
|
1924
|
+
align-items: center;
|
|
1925
|
+
gap: 8px;
|
|
1926
|
+
min-width: 44px;
|
|
1927
|
+
padding-top: var(--rdd-sidebar-footer-area-padding-top, 8px);
|
|
1928
|
+
padding-bottom: var(--rdd-sidebar-footer-area-padding-bottom, 8px);
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/* Wraps the tabs only — owns the gap that used to live on .rdd-sidebar-tabs-strip itself.
|
|
1932
|
+
flex: 1 absorbs remaining space so a following .rdd-sidebar-footer-area is pushed to the
|
|
1933
|
+
bottom of the strip regardless of tab count. */
|
|
1907
1934
|
.rdd-sidebar-tabs-list {
|
|
1908
1935
|
display: flex;
|
|
1909
1936
|
flex-direction: column;
|
|
1910
1937
|
align-items: center;
|
|
1911
1938
|
gap: 8px;
|
|
1939
|
+
flex: 1;
|
|
1912
1940
|
}
|
|
1913
1941
|
|
|
1914
1942
|
/* Position-specific tab strip border alignment */
|
|
@@ -2727,6 +2755,27 @@ html.rdd-no-animations [class*="rdd-"]::after {
|
|
|
2727
2755
|
min-height: 38px;
|
|
2728
2756
|
}
|
|
2729
2757
|
|
|
2758
|
+
/* Optional close button (showCloseButton) — an extra way to collapse the sidebar besides
|
|
2759
|
+
clicking the active tab's own icon again. */
|
|
2760
|
+
.rdd-sidebar-drawer-close-button {
|
|
2761
|
+
background: transparent;
|
|
2762
|
+
border: none;
|
|
2763
|
+
color: var(--sidebar-text-muted, var(--rdd-text-secondary));
|
|
2764
|
+
cursor: pointer;
|
|
2765
|
+
padding: 4px;
|
|
2766
|
+
display: flex;
|
|
2767
|
+
align-items: center;
|
|
2768
|
+
justify-content: center;
|
|
2769
|
+
border-radius: 4px;
|
|
2770
|
+
transition: all 0.15s ease;
|
|
2771
|
+
flex-shrink: 0;
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2774
|
+
.rdd-sidebar-drawer-close-button:hover {
|
|
2775
|
+
background-color: var(--sidebar-btn-hover-bg);
|
|
2776
|
+
color: var(--sidebar-text-title);
|
|
2777
|
+
}
|
|
2778
|
+
|
|
2730
2779
|
/* Sidebar drawer content body */
|
|
2731
2780
|
.rdd-sidebar-drawer-body {
|
|
2732
2781
|
flex-grow: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dockable-desktop",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.1",
|
|
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",
|