react-resizable-panels 4.6.4 → 4.7.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.
|
@@ -189,7 +189,7 @@ export declare type Orientation = "horizontal" | "vertical";
|
|
|
189
189
|
*
|
|
190
190
|
* ⚠️ Panel elements must be direct DOM children of their parent Group elements.
|
|
191
191
|
*/
|
|
192
|
-
export declare function Panel({ children, className, collapsedSize, collapsible, defaultSize, disabled, elementRef: elementRefProp, id: idProp, maxSize, minSize, onResize: onResizeUnstable, panelRef, style, ...rest }: PanelProps): JSX.Element;
|
|
192
|
+
export declare function Panel({ children, className, collapsedSize, collapsible, defaultSize, disabled, elementRef: elementRefProp, groupResizeBehavior, id: idProp, maxSize, minSize, onResize: onResizeUnstable, panelRef, style, ...rest }: PanelProps): JSX.Element;
|
|
193
193
|
|
|
194
194
|
export declare namespace Panel {
|
|
195
195
|
var displayName: string;
|
|
@@ -276,6 +276,18 @@ export declare type PanelProps = BasePanelAttributes & {
|
|
|
276
276
|
* Ref attached to the root `HTMLDivElement`.
|
|
277
277
|
*/
|
|
278
278
|
elementRef?: Ref<HTMLDivElement | null> | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* How should this Panel behave if the parent Group is resized?
|
|
281
|
+
* Defaults to `preserve-relative-size`.
|
|
282
|
+
*
|
|
283
|
+
* - `preserve-relative-size`: Retain the current relative size (as a percentage of the Group)
|
|
284
|
+
* - `preserve-pixel-size`: Retain its current size (in pixels)
|
|
285
|
+
*
|
|
286
|
+
* ℹ️ Panel min/max size constraints may impact this behavior.
|
|
287
|
+
*
|
|
288
|
+
* ⚠️ A Group must contain at least one Panel with `preserve-relative-size` resize behavior.
|
|
289
|
+
*/
|
|
290
|
+
groupResizeBehavior?: "preserve-relative-size" | "preserve-pixel-size" | undefined;
|
|
279
291
|
/**
|
|
280
292
|
* Uniquely identifies this panel within the parent group.
|
|
281
293
|
* Falls back to `useId` when not provided.
|