UNPKG

@lonli-lokli/react-mosaic-component

Version:
36 lines (33 loc) 864 B
import { e as MosaicPath } from '../types-D_JoxNST.js'; import 'immutability-helper'; import 'react'; type MosaicDropTargetPosition = 'top' | 'bottom' | 'left' | 'right'; declare const MosaicDropTargetPosition: { TOP: "top"; BOTTOM: "bottom"; LEFT: "left"; RIGHT: "right"; }; interface MosaicDropData { path?: MosaicPath; position?: MosaicDropTargetPosition; tabReorderIndex?: number; } interface MosaicDragItem { mosaicId: string; isTab?: boolean; tabIndex?: number; tabKey?: string | number; tabContainerPath?: MosaicPath; hideTimer?: number; } type DropInfo = { type: 'split'; position: MosaicDropTargetPosition; } | { type: 'tab-container'; } | { type: 'tab-reorder'; insertIndex: number; }; export { type DropInfo, type MosaicDragItem, type MosaicDropData, MosaicDropTargetPosition };