UNPKG

@atlaskit/navigation-system

Version:

Page layout and navigation components for Atlassian apps.

55 lines (54 loc) • 1.75 kB
/** * @jsxRuntime classic * @jsx jsx */ import { type MutableRefObject, type ReactNode } from 'react'; import type { LayoutAreaMode } from './layout-area-sizing-context'; type PanelLayoutShellProps = { /** * Main content rendered alongside the local panel. */ children: ReactNode; /** * Panel content or surface supplied by the caller. */ panel: ReactNode; /** * Whether the local panel is open. */ isPanelOpen: boolean; /** * Effective panel track width in pixels. */ panelWidth: number; compactPanelWidth: number; xlPanelWidth: number; xlDefaultPanelWidth: number; /** * Mount-time defaults determine the overlay cap independently of saved widths. */ defaultPanelWidth: number; compactDefaultPanelWidth: number; /** * Minimum panel width in pixels. */ panelMinWidth?: number; /** * Allocated placement. Before measurement, CSS reserves a track when both minimums fit the host. */ mode?: LayoutAreaMode; /** * Shared with the panel's resize controls so imperative resizing also updates the grid track. */ layoutRef?: MutableRefObject<HTMLDivElement | null>; /** * Enables coordinated panel motion and clips the sliding surface. */ isMotionEnabled?: boolean; testId?: string; }; /** * Grid and scrolling for Main and its local panel. Use inside navigation's Root and Main. */ export declare function PanelLayoutShell({ children, panel, isPanelOpen, panelWidth, compactPanelWidth, xlPanelWidth, xlDefaultPanelWidth, defaultPanelWidth, compactDefaultPanelWidth, panelMinWidth, mode, layoutRef, isMotionEnabled, testId, }: PanelLayoutShellProps): JSX.Element; export {};