react-resizable-panels 4.5.9-alpha.0 → 4.6.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, 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, 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;
|
|
@@ -268,6 +268,10 @@ export declare type PanelProps = BasePanelAttributes & {
|
|
|
268
268
|
* Default size of Panel within its parent group; default is auto-assigned based on the total number of Panels.
|
|
269
269
|
*/
|
|
270
270
|
defaultSize?: number | string | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* When disabled, a panel cannot be resized either directly or indirectly (by resizing another panel).
|
|
273
|
+
*/
|
|
274
|
+
disabled?: boolean | undefined;
|
|
271
275
|
/**
|
|
272
276
|
* Ref attached to the root `HTMLDivElement`.
|
|
273
277
|
*/
|
|
@@ -336,7 +340,7 @@ export declare type PanelSize = {
|
|
|
336
340
|
*
|
|
337
341
|
* ℹ️ In addition to the attributes shown above, separator also renders all required [WAI-ARIA properties](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/separator_role#associated_wai-aria_roles_states_and_properties).
|
|
338
342
|
*/
|
|
339
|
-
export declare function Separator({ children, className, elementRef: elementRefProp, id: idProp, style, ...rest }: SeparatorProps): JSX.Element;
|
|
343
|
+
export declare function Separator({ children, className, disabled, elementRef: elementRefProp, id: idProp, style, ...rest }: SeparatorProps): JSX.Element;
|
|
340
344
|
|
|
341
345
|
export declare namespace Separator {
|
|
342
346
|
var displayName: string;
|
|
@@ -351,6 +355,13 @@ export declare type SeparatorProps = BaseSeparatorAttributes & {
|
|
|
351
355
|
* ⚠️ The following properties cannot be overridden: `flex-grow`, `flex-shrink`
|
|
352
356
|
*/
|
|
353
357
|
className?: string | undefined;
|
|
358
|
+
/**
|
|
359
|
+
* When disabled, the separator cannot be used to resize its neighboring panels.
|
|
360
|
+
*
|
|
361
|
+
* ℹ️ The panels may still be resized indirectly (while other panels are being resized).
|
|
362
|
+
* To prevent a panel from being resized at all, it needs to also be disabled.
|
|
363
|
+
*/
|
|
364
|
+
disabled?: boolean | undefined;
|
|
354
365
|
/**
|
|
355
366
|
* Ref attached to the root `HTMLDivElement`.
|
|
356
367
|
*/
|