react-resizable-panels 4.18.0 → 4.18.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.
|
@@ -1367,12 +1367,14 @@ export declare type TabCloseButtonProps = ButtonHTMLAttributes<HTMLButtonElement
|
|
|
1367
1367
|
|
|
1368
1368
|
/**
|
|
1369
1369
|
* Edge (or center) of a tabset's content area.
|
|
1370
|
+
*
|
|
1371
|
+
* ℹ️ Edges are sides of the screen, so in a right-to-left layout (e.g. within `dir="rtl"`), "left" is after the tabset in its split's `children`.
|
|
1370
1372
|
*/
|
|
1371
1373
|
export declare type TabDropRegion = "bottom" | "center" | "left" | "right" | "top";
|
|
1372
1374
|
|
|
1373
1375
|
/**
|
|
1374
1376
|
* Where a dragged tab can be dropped:
|
|
1375
|
-
* - At an `index` within a tabset's tab list
|
|
1377
|
+
* - At an `index` within a tabset's tab list (in the order of its `tabs`, which run from right to left in a right-to-left layout)
|
|
1376
1378
|
* - Within a `region` of a tabset's content area; edges split the tabset, and the center adds the tab to it
|
|
1377
1379
|
*/
|
|
1378
1380
|
export declare type TabDropTarget = {
|
|
@@ -1951,6 +1953,8 @@ export declare interface WorkspaceImperativeHandle<TabData = unknown, TabsetData
|
|
|
1951
1953
|
*
|
|
1952
1954
|
* ℹ️ The space is measured along the tab list: its width, or its height if its tabs are placed on the left or right
|
|
1953
1955
|
* (or the tabset is collapsed to a vertical strip).
|
|
1956
|
+
* If the tab list can't shrink any further (e.g. it's 0px wide, beside a toolbar that doesn't shrink), the amount the header's content
|
|
1957
|
+
* overflows the header is subtracted too, so it's still how much space a toolbar needs to free up.
|
|
1954
1958
|
*
|
|
1955
1959
|
* ℹ️ The tab list's `--tab-list-free-space` custom property has the same value (e.g. "120px").
|
|
1956
1960
|
*
|
|
@@ -1969,11 +1973,14 @@ export declare interface WorkspaceImperativeHandle<TabData = unknown, TabsetData
|
|
|
1969
1973
|
maximizeTabset: (tabsetId: string) => void;
|
|
1970
1974
|
/**
|
|
1971
1975
|
* Move a tab to a position within a tabset's tab list, or to a region of a tabset's content area.
|
|
1976
|
+
*
|
|
1977
|
+
* ℹ️ The `"left"` and `"right"` regions are sides of the screen (so they're mirrored in right-to-left layouts).
|
|
1972
1978
|
*/
|
|
1973
1979
|
moveTab: (tabId: string, target: TabDropTarget) => void;
|
|
1974
1980
|
/**
|
|
1975
1981
|
* Move a tabset beside another tabset (by dropping it onto a region at the edge of that tabset's content area),
|
|
1976
1982
|
* or move its tabs into another tabset (at an `index` within its tab list, or onto the `"center"` of its content area).
|
|
1983
|
+
* The `"left"` and `"right"` regions are sides of the screen (so they're mirrored in right-to-left layouts).
|
|
1977
1984
|
*
|
|
1978
1985
|
* ℹ️ When its tabs are moved, the emptied tabset is removed (unless it has the `keepWhenEmpty` flag).
|
|
1979
1986
|
*/
|
|
@@ -2260,6 +2267,10 @@ export declare type WorkspaceProps<TabData = unknown, TabsetData = unknown> = Om
|
|
|
2260
2267
|
*
|
|
2261
2268
|
* ℹ️ Elements within a tabset have a `data-tab-placement` attribute, which can be used for styling (e.g. rotating tabs on the left or right).
|
|
2262
2269
|
*
|
|
2270
|
+
* ℹ️ "left" and "right" are the start and end of the tabset (its header is rendered before or after its content),
|
|
2271
|
+
* so in a right-to-left layout (e.g. within `dir="rtl"`) tabs placed on the "left" are on the right;
|
|
2272
|
+
* styles for them should use logical properties (e.g. `border-inline-end` rather than `border-right`).
|
|
2273
|
+
*
|
|
2263
2274
|
* ℹ️ Tabsets can override this with the `tabPlacement` field of their model node.
|
|
2264
2275
|
*
|
|
2265
2276
|
* @default "top"
|