@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
9 lines • 1 kB
TypeScript
import { ResizablePanelConfig, ResizablePanelState } from '../resizable_constants';
export type { ConstraintHierarchy } from './constraintResolver';
export { calculateConstraintHierarchy } from './constraintResolver';
export declare function applyPanelPixelConstraints(panel: ResizablePanelState, pixelSize: number, containerSize: number, constraintType?: 'user' | 'system'): number;
export declare function createPanelState(panelConfig: ResizablePanelConfig, containerSize: number, existingPanel?: ResizablePanelState): ResizablePanelState;
export declare function createBasicPanelStates(allPanels: ResizablePanelConfig[], containerSize: number, existingPanels?: ResizablePanelState[]): ResizablePanelState[];
export declare function shouldSkipPanelPair(beforePanel: ResizablePanelState, afterPanel: ResizablePanelState): boolean;
export declare function canResetPanelPair(beforePanel: ResizablePanelState, afterPanel: ResizablePanelState): boolean;
//# sourceMappingURL=useResizablePanelState.d.ts.map