react-transfer-list
Advanced tools
Comparing version
import { ListComponentProps, ListItemBodyComponentProps, ListItemComponentProps } from 'components/TransferList/TransferListList'; | ||
import { FunctionComponent, HTMLProps } from 'react'; | ||
import { DraggableProps, DroppableProps, OnDragEndResponder } from 'react-beautiful-dnd'; | ||
export interface DraggableListOptions { | ||
draggable?: Omit<DraggableProps, 'draggableId' | 'index' | 'children'>; | ||
droppable?: Omit<DroppableProps, 'droppableId' | 'children'>; | ||
} | ||
export interface DraggableListProps extends Omit<HTMLProps<HTMLDivElement>, 'onDragEnd' | 'placeholder'> { | ||
@@ -13,7 +17,4 @@ ids: string[]; | ||
listId?: string; | ||
options?: { | ||
draggable?: DraggableProps; | ||
droppable?: DroppableProps; | ||
}; | ||
options?: DraggableListOptions; | ||
} | ||
export declare const DraggableList: FunctionComponent<DraggableListProps>; |
import { FunctionComponent, HTMLProps } from 'react'; | ||
import { DraggableProps, DroppableProps } from 'react-beautiful-dnd'; | ||
import { DraggableListOptions } from '../DraggableList/DraggableList'; | ||
import { ListComponentProps, ListItemBodyComponentProps, ListItemComponentProps } from './TransferListList'; | ||
@@ -11,7 +11,4 @@ export interface ReorderableListProps extends Omit<HTMLProps<HTMLDivElement>, 'onChange'> { | ||
listItemBodyComponent?: FunctionComponent<ListItemBodyComponentProps>; | ||
options?: { | ||
draggable?: DraggableProps; | ||
droppable?: DroppableProps; | ||
}; | ||
options?: DraggableListOptions; | ||
} | ||
export declare const ReorderableList: FunctionComponent<ReorderableListProps>; |
import { FunctionComponent, HTMLProps, ReactNode } from 'react'; | ||
import { DraggableProps, DroppableProps } from 'react-beautiful-dnd'; | ||
import { DraggableListOptions } from '../DraggableList/DraggableList'; | ||
export interface ListComponentProps { | ||
@@ -22,7 +22,4 @@ id: string; | ||
listItemBodyComponent?: FunctionComponent<ListItemBodyComponentProps>; | ||
options?: { | ||
draggable?: DraggableProps; | ||
droppable?: DroppableProps; | ||
}; | ||
options?: DraggableListOptions; | ||
} | ||
export declare const TransferListList: FunctionComponent<TransferListListProps>; |
{ | ||
"name": "react-transfer-list", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A Material UI based Transfer List supporting drag and drop", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2892701
025670
-0.02%